@archieai/ui 2.2.0 → 2.3.0

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 (49) hide show
  1. package/dist/{Search-XtroVPea.js → Search-C1T-JBpA.js} +589 -596
  2. package/dist/Search-C1T-JBpA.js.map +1 -0
  3. package/dist/{Search-DR0PlkBC.cjs → Search-DLihqDRO.cjs} +2 -2
  4. package/dist/Search-DLihqDRO.cjs.map +1 -0
  5. package/dist/components/molecules/Button/Button.d.ts.map +1 -1
  6. package/dist/components/molecules/Button/Button.styles.d.ts +2 -2
  7. package/dist/components/molecules/Button/Button.styles.d.ts.map +1 -1
  8. package/dist/components/molecules/Checkbox/Checkbox.d.ts +2 -1
  9. package/dist/components/molecules/Checkbox/Checkbox.d.ts.map +1 -1
  10. package/dist/components/molecules/Checkbox/Checkbox.styles.d.ts +2 -2
  11. package/dist/components/molecules/Checkbox/Checkbox.styles.d.ts.map +1 -1
  12. package/dist/components/molecules/Chip/Chip.d.ts +3 -2
  13. package/dist/components/molecules/Chip/Chip.d.ts.map +1 -1
  14. package/dist/components/molecules/Chip/Chip.types.d.ts +42 -1
  15. package/dist/components/molecules/Chip/Chip.types.d.ts.map +1 -1
  16. package/dist/components/molecules/Chip/index.d.ts +1 -1
  17. package/dist/components/molecules/Chip/index.d.ts.map +1 -1
  18. package/dist/components/molecules/EmptyState/EmptyState.d.ts +46 -3
  19. package/dist/components/molecules/EmptyState/EmptyState.d.ts.map +1 -1
  20. package/dist/components/molecules/Input/Input.d.ts +16 -2
  21. package/dist/components/molecules/Input/Input.d.ts.map +1 -1
  22. package/dist/components/molecules/Radio/Radio.d.ts +39 -0
  23. package/dist/components/molecules/Radio/Radio.d.ts.map +1 -0
  24. package/dist/components/molecules/Radio/Radio.styles.d.ts +20 -0
  25. package/dist/components/molecules/Radio/Radio.styles.d.ts.map +1 -0
  26. package/dist/components/molecules/Radio/index.d.ts +3 -0
  27. package/dist/components/molecules/Radio/index.d.ts.map +1 -0
  28. package/dist/components/molecules/Skeleton/Skeleton.d.ts +34 -0
  29. package/dist/components/molecules/Skeleton/Skeleton.d.ts.map +1 -0
  30. package/dist/components/molecules/Skeleton/index.d.ts +3 -0
  31. package/dist/components/molecules/Skeleton/index.d.ts.map +1 -0
  32. package/dist/components/molecules/TextArea/TextArea.d.ts +6 -1
  33. package/dist/components/molecules/TextArea/TextArea.d.ts.map +1 -1
  34. package/dist/components/molecules/Toast/Toast.d.ts +2 -0
  35. package/dist/components/molecules/Toast/Toast.d.ts.map +1 -1
  36. package/dist/icons.cjs +1 -1
  37. package/dist/icons.cjs.map +1 -1
  38. package/dist/icons.js +215 -209
  39. package/dist/icons.js.map +1 -1
  40. package/dist/index.cjs +11 -11
  41. package/dist/index.cjs.map +1 -1
  42. package/dist/index.d.ts +11 -7
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +2868 -2310
  45. package/dist/index.js.map +1 -1
  46. package/dist/styles.css +1 -1
  47. package/package.json +1 -1
  48. package/dist/Search-DR0PlkBC.cjs.map +0 -1
  49. package/dist/Search-XtroVPea.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("react"),q=require("framer-motion"),i=require("./Search-DR0PlkBC.cjs"),xa=require("@radix-ui/react-tabs"),ce=require("sonner"),fa=require("@radix-ui/react-tooltip"),ua=require("@radix-ui/react-dialog"),ga=require("@radix-ui/react-visually-hidden");function Ye(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const o in r)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}return t.default=r,Object.freeze(t)}const Be=Ye(j),Se=Ye(xa),Ce=Ye(fa),pe=Ye(ua),Gr=Ye(ga),ma={font:"'Geist', system-ui, sans-serif",monoFont:"'Geist Mono', monospace",bodySize:16,bodyLineHeight:24,bodyWeight:300,headingWeight:600,buttonHeight:{sm:32,md:40,lg:48},inputHeight:40,radii:{sm:4,md:6,lg:8,xl:12},shadows:{sm:"0 1px 2px rgba(0,0,0,0.05)",md:"0 4px 6px rgba(0,0,0,0.07)",lg:"0 10px 20px rgba(0,0,0,0.1)"},spacing:[0,4,8,12,16,24,32,48,64],animation:{duration:"150ms",easing:"ease"}},ha={font:"-apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, sans-serif",monoFont:"'SF Mono', 'Menlo', monospace",bodySize:13,bodyLineHeight:18,bodyWeight:400,headingWeight:600,buttonHeight:{sm:22,md:28,lg:32},inputHeight:22,radii:{sm:4,md:6,lg:10,xl:14},shadows:{sm:"0 0.5px 1px rgba(0,0,0,0.04)",md:"0 2px 8px rgba(0,0,0,0.06)",lg:"0 8px 24px rgba(0,0,0,0.08)"},spacing:[0,4,8,12,16,20,24,32,40],animation:{duration:"300ms",easing:"cubic-bezier(0.2, 0.8, 0.2, 1)"}},ba={font:"'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif",monoFont:"'Cascadia Code', 'Consolas', monospace",bodySize:14,bodyLineHeight:20,bodyWeight:400,headingWeight:600,buttonHeight:{sm:24,md:32,lg:40},inputHeight:32,radii:{sm:2,md:4,lg:6,xl:8},shadows:{sm:"0 1px 2px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.06)",md:"0 2px 4px rgba(0,0,0,0.1), 0 0 1px rgba(0,0,0,0.06)",lg:"0 8px 16px rgba(0,0,0,0.14), 0 0 1px rgba(0,0,0,0.06)"},spacing:[0,2,4,8,12,16,24,32,48],animation:{duration:"250ms",easing:"cubic-bezier(0.1, 0.9, 0.2, 1)"}},Tr={web:ma,mac:ha,windows:ba},va="archie",ya="web",ja="Archie",wa="Clean, professional, fintech. An AI accounting assistant that feels trustworthy, precise, and modern. Think premium SaaS — spacious layouts, subtle shadows, confident typography. Designed for accountants who need clarity and speed.",Ca={primary:{200:"#d6f4ff",400:"#6aeafd",800:"#15b1cd",1e3:"#022e40"},accent:{200:"#fff2e2",800:"#ff6f00",1e3:"#e15713"},neutral:{50:"#fafafc",100:"#f5f6fa",200:"#e5e7f0",600:"#8c92af",800:"#595f7a",1e3:"#000626",white:"#ffffff"},status:{error:"#fb6060","error-bg":"#ffecec",success:"#71d481","success-bg":"#e2f7e5",warning:"#8f6c1a","warning-bg":"#fff2e2"},entity:{mint:{bg:"#DAFBE1",text:"#15803D"},sky:{bg:"#E0F2FF",text:"#0369A1"},lavender:{bg:"#E4E4F8",text:"#6D28D9"},rose:{bg:"#FEE2E5",text:"#BE123C"},peach:{bg:"#FFE5D2",text:"#C2410C"},teal:{bg:"#ccfbf1",text:"#0d9488"}}},Sa={heading:{family:"Geist",weights:"600, 700",style:"Sans-serif, clean, modern — confident and precise"},body:{family:"Geist",weights:"400, 500, 600"},scale:[{name:"display",size:"48px",weight:"700",lineHeight:"1.1"},{name:"h1",size:"36px",weight:"700",lineHeight:"1.2"},{name:"h2",size:"28px",weight:"600",lineHeight:"1.25"},{name:"h3",size:"22px",weight:"600",lineHeight:"1.3"},{name:"h4",size:"18px",weight:"600",lineHeight:"1.4"},{name:"body",size:"15px",weight:"400",lineHeight:"1.5"},{name:"small",size:"13px",weight:"400",lineHeight:"1.43"},{name:"x-small",size:"11px",weight:"400",lineHeight:"1.33"},{name:"column-header",size:"10px",weight:"700",lineHeight:"1.6"},{name:"tag",size:"10px",weight:"500",lineHeight:"1.6"}]},ka={sm:"0 1px 2px rgba(0,0,0,0.05)",md:"0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.07)",lg:"0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.08)",xl:"0 20px 25px rgba(0,0,0,0.08), 0 8px 10px rgba(0,0,0,0.08)"},Na=[4,8,12,16,20,24,32,40,48,64],za={sm:4,md:6,lg:8,xl:12,"2xl":16,full:9999},Ta={sidebar:"60px icon rail (240px expanded), navy #022e40 background",content:"flexible, chat-container max-width: 720px",windowSize:"1440x900",platform:{windowChrome:"browser"}},$a=`33-component @archieai/ui library (CVA + Radix + Framer Motion):
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("react"),q=require("framer-motion"),c=require("./Search-DLihqDRO.cjs"),Na=require("@radix-ui/react-tabs"),ie=require("sonner"),za=require("@radix-ui/react-tooltip"),Ta=require("@radix-ui/react-dialog"),La=require("@radix-ui/react-visually-hidden");function Ze(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const o in r)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(t,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}return t.default=r,Object.freeze(t)}const Be=Ze(j),ke=Ze(Na),Ce=Ze(za),pe=Ze(Ta),qr=Ze(La),$a={font:"'Geist', system-ui, sans-serif",monoFont:"'Geist Mono', monospace",bodySize:16,bodyLineHeight:24,bodyWeight:300,headingWeight:600,buttonHeight:{sm:32,md:40,lg:48},inputHeight:40,radii:{sm:4,md:6,lg:8,xl:12},shadows:{sm:"0 1px 2px rgba(0,0,0,0.05)",md:"0 4px 6px rgba(0,0,0,0.07)",lg:"0 10px 20px rgba(0,0,0,0.1)"},spacing:[0,4,8,12,16,24,32,48,64],animation:{duration:"150ms",easing:"ease"}},Aa={font:"-apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, sans-serif",monoFont:"'SF Mono', 'Menlo', monospace",bodySize:13,bodyLineHeight:18,bodyWeight:400,headingWeight:600,buttonHeight:{sm:22,md:28,lg:32},inputHeight:22,radii:{sm:4,md:6,lg:10,xl:14},shadows:{sm:"0 0.5px 1px rgba(0,0,0,0.04)",md:"0 2px 8px rgba(0,0,0,0.06)",lg:"0 8px 24px rgba(0,0,0,0.08)"},spacing:[0,4,8,12,16,20,24,32,40],animation:{duration:"300ms",easing:"cubic-bezier(0.2, 0.8, 0.2, 1)"}},Ma={font:"'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif",monoFont:"'Cascadia Code', 'Consolas', monospace",bodySize:14,bodyLineHeight:20,bodyWeight:400,headingWeight:600,buttonHeight:{sm:24,md:32,lg:40},inputHeight:32,radii:{sm:2,md:4,lg:6,xl:8},shadows:{sm:"0 1px 2px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.06)",md:"0 2px 4px rgba(0,0,0,0.1), 0 0 1px rgba(0,0,0,0.06)",lg:"0 8px 16px rgba(0,0,0,0.14), 0 0 1px rgba(0,0,0,0.06)"},spacing:[0,2,4,8,12,16,24,32,48],animation:{duration:"250ms",easing:"cubic-bezier(0.1, 0.9, 0.2, 1)"}},$r={web:$a,mac:Aa,windows:Ma},Ra="archie",Fa="web",Ia="Archie",Ba="Clean, professional, fintech. An AI accounting assistant that feels trustworthy, precise, and modern. Think premium SaaS — spacious layouts, subtle shadows, confident typography. Designed for accountants who need clarity and speed.",Da={primary:{200:"#d6f4ff",400:"#6aeafd",800:"#15b1cd",1e3:"#022e40"},accent:{200:"#fff2e2",800:"#ff6f00",1e3:"#e15713"},neutral:{50:"#fafafc",100:"#f5f6fa",200:"#e5e7f0",600:"#8c92af",800:"#595f7a",1e3:"#000626",white:"#ffffff"},status:{error:"#fb6060","error-bg":"#ffecec",success:"#71d481","success-bg":"#e2f7e5",warning:"#8f6c1a","warning-bg":"#fff2e2"},entity:{mint:{bg:"#DAFBE1",text:"#15803D"},sky:{bg:"#E0F2FF",text:"#0369A1"},lavender:{bg:"#E4E4F8",text:"#6D28D9"},rose:{bg:"#FEE2E5",text:"#BE123C"},peach:{bg:"#FFE5D2",text:"#C2410C"},teal:{bg:"#ccfbf1",text:"#0d9488"}}},Ea={heading:{family:"Geist",weights:"600, 700",style:"Sans-serif, clean, modern — confident and precise"},body:{family:"Geist",weights:"400, 500, 600"},scale:[{name:"display",size:"48px",weight:"700",lineHeight:"1.1"},{name:"h1",size:"36px",weight:"700",lineHeight:"1.2"},{name:"h2",size:"28px",weight:"600",lineHeight:"1.25"},{name:"h3",size:"22px",weight:"600",lineHeight:"1.3"},{name:"h4",size:"18px",weight:"600",lineHeight:"1.4"},{name:"body",size:"15px",weight:"400",lineHeight:"1.5"},{name:"small",size:"13px",weight:"400",lineHeight:"1.43"},{name:"x-small",size:"11px",weight:"400",lineHeight:"1.33"},{name:"column-header",size:"10px",weight:"700",lineHeight:"1.6"},{name:"tag",size:"10px",weight:"500",lineHeight:"1.6"}]},Pa={sm:"0 1px 2px rgba(0,0,0,0.05)",md:"0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.07)",lg:"0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.08)",xl:"0 20px 25px rgba(0,0,0,0.08), 0 8px 10px rgba(0,0,0,0.08)"},Wa=[4,8,12,16,20,24,32,40,48,64],Va={sm:4,md:6,lg:8,xl:12,"2xl":16,full:9999},Ha={sidebar:"60px icon rail (240px expanded), navy #022e40 background",content:"flexible, chat-container max-width: 720px",windowSize:"1440x900",platform:{windowChrome:"browser"}},_a=`33-component @archieai/ui library (CVA + Radix + Framer Motion):
2
2
  ATOMS: Avatar (circular/square, sm/lg), StatusIndicator, Typography (display/h1-h4/body/small/tiny/x-small/tag), Logos (LogoA, SignatureA, FullLogo), Icons (305 SVG icons)
3
3
  MOLECULES: Button (primary/secondary/tertiary/cta/danger, brand/neutral tone, sm/md/lg), Input, TextArea, Checkbox, Toggle (sm/md/lg), RangeInput, Dropdown, Tabs (TabsList/TabsTrigger/TabsContent), Chip (file/template/client/agent/workstream), Tag, Breadcrumbs, ProgressBar, CircularProgress, LoadingSpinner, MessageBubble (assistant/user), Toast (info/success/warning/error/prompt), StatusMessage, Timestamp, FileIcon, SidebarItem, Tooltip, Modal, ArtifactCard (normal/hover/generating/error), DataAccordion, CopyButton, AutopilotAction
4
4
  ORGANISMS: ConversationHeader, Modal (full)
@@ -9,7 +9,7 @@ Key patterns:
9
9
  - Active nav: teal #15b1cd left border + light teal bg
10
10
  - Sidebar: narrow icon rail with icon + label, navy #022e40 background
11
11
  - Status badges: colored entity palette (mint/sky/lavender/rose/peach/teal)
12
- - Two Inbox layout: My Inbox (human attention) + Archie's Inbox (AI supervisory dashboard)`,La="Archie/Web",$r={id:va,platform:ya,name:ja,personality:wa,colors:Ca,typography:Sa,shadows:ka,spacing:Na,radii:za,layout:Ta,components:$a,figmaCollectionPrefix:La},Ma="archie",Aa="mac",Ra="Archie",Fa="Clean, professional, fintech for native macOS. Archie as a first-class Mac citizen — feels at home on macOS with vibrancy, native controls, and the same trustworthy precision. Sidebar adapts to macOS conventions while keeping Archie's teal/navy identity.",Ba={primary:{200:"#d6f4ff",400:"#6aeafd",800:"#15b1cd",1e3:"#022e40"},accent:{200:"#fff2e2",800:"#ff6f00",1e3:"#e15713"},neutral:{50:"#fafafc",100:"#f5f6fa",200:"#e5e7f0",600:"#8c92af",800:"#595f7a",1e3:"#000626",white:"#ffffff"},status:{error:"#fb6060","error-bg":"#ffecec",success:"#71d481","success-bg":"#e2f7e5",warning:"#8f6c1a","warning-bg":"#fff2e2"},entity:{mint:{bg:"#DAFBE1",text:"#15803D"},sky:{bg:"#E0F2FF",text:"#0369A1"},lavender:{bg:"#E4E4F8",text:"#6D28D9"},rose:{bg:"#FEE2E5",text:"#BE123C"},peach:{bg:"#FFE5D2",text:"#C2410C"},teal:{bg:"#ccfbf1",text:"#0d9488"}}},Da={heading:{family:"Geist",weights:"600, 700",style:"Sans-serif, clean, modern — confident and precise, feels native on macOS"},body:{family:"Geist",weights:"400, 500, 600"},scale:[{name:"display",size:"40px",weight:"700",lineHeight:"1.1"},{name:"h1",size:"28px",weight:"700",lineHeight:"1.2"},{name:"h2",size:"22px",weight:"600",lineHeight:"1.25"},{name:"h3",size:"18px",weight:"600",lineHeight:"1.3"},{name:"h4",size:"15px",weight:"600",lineHeight:"1.4"},{name:"body",size:"13px",weight:"400",lineHeight:"1.5"},{name:"small",size:"12px",weight:"400",lineHeight:"1.43"},{name:"x-small",size:"11px",weight:"400",lineHeight:"1.33"},{name:"column-header",size:"10px",weight:"700",lineHeight:"1.6"},{name:"tag",size:"10px",weight:"500",lineHeight:"1.6"}]},Ia={sm:"0 1px 2px rgba(0,0,0,0.05)",md:"0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.07)",lg:"0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.08)",xl:"0 20px 25px rgba(0,0,0,0.08), 0 8px 10px rgba(0,0,0,0.08)"},Ea=[4,8,12,16,20,24,32,40,48,64],Wa={sm:4,md:6,lg:8,xl:12,"2xl":16,full:9999},Pa={sidebar:"52px icon rail (220px expanded), navy #022e40 background with vibrancy",content:"flexible, max-width: 680px for conversation area",windowSize:"1512x982",platform:{windowChrome:"macos-native",vibrancy:!0,trafficLights:{x:16,y:12,size:12},titleBarHeight:28,toolbarHeight:44}},Va=`Archie macOS components (SwiftUI/AppKit native + Geist-branded elements):
12
+ - Two Inbox layout: My Inbox (human attention) + Archie's Inbox (AI supervisory dashboard)`,Oa="Archie/Web",Ar={id:Ra,platform:Fa,name:Ia,personality:Ba,colors:Da,typography:Ea,shadows:Pa,spacing:Wa,radii:Va,layout:Ha,components:_a,figmaCollectionPrefix:Oa},Ga="archie",Ua="mac",Ya="Archie",Za="Clean, professional, fintech for native macOS. Archie as a first-class Mac citizen — feels at home on macOS with vibrancy, native controls, and the same trustworthy precision. Sidebar adapts to macOS conventions while keeping Archie's teal/navy identity.",Ka={primary:{200:"#d6f4ff",400:"#6aeafd",800:"#15b1cd",1e3:"#022e40"},accent:{200:"#fff2e2",800:"#ff6f00",1e3:"#e15713"},neutral:{50:"#fafafc",100:"#f5f6fa",200:"#e5e7f0",600:"#8c92af",800:"#595f7a",1e3:"#000626",white:"#ffffff"},status:{error:"#fb6060","error-bg":"#ffecec",success:"#71d481","success-bg":"#e2f7e5",warning:"#8f6c1a","warning-bg":"#fff2e2"},entity:{mint:{bg:"#DAFBE1",text:"#15803D"},sky:{bg:"#E0F2FF",text:"#0369A1"},lavender:{bg:"#E4E4F8",text:"#6D28D9"},rose:{bg:"#FEE2E5",text:"#BE123C"},peach:{bg:"#FFE5D2",text:"#C2410C"},teal:{bg:"#ccfbf1",text:"#0d9488"}}},Xa={heading:{family:"Geist",weights:"600, 700",style:"Sans-serif, clean, modern — confident and precise, feels native on macOS"},body:{family:"Geist",weights:"400, 500, 600"},scale:[{name:"display",size:"40px",weight:"700",lineHeight:"1.1"},{name:"h1",size:"28px",weight:"700",lineHeight:"1.2"},{name:"h2",size:"22px",weight:"600",lineHeight:"1.25"},{name:"h3",size:"18px",weight:"600",lineHeight:"1.3"},{name:"h4",size:"15px",weight:"600",lineHeight:"1.4"},{name:"body",size:"13px",weight:"400",lineHeight:"1.5"},{name:"small",size:"12px",weight:"400",lineHeight:"1.43"},{name:"x-small",size:"11px",weight:"400",lineHeight:"1.33"},{name:"column-header",size:"10px",weight:"700",lineHeight:"1.6"},{name:"tag",size:"10px",weight:"500",lineHeight:"1.6"}]},qa={sm:"0 1px 2px rgba(0,0,0,0.05)",md:"0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.07)",lg:"0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.08)",xl:"0 20px 25px rgba(0,0,0,0.08), 0 8px 10px rgba(0,0,0,0.08)"},Ja=[4,8,12,16,20,24,32,40,48,64],Qa={sm:4,md:6,lg:8,xl:12,"2xl":16,full:9999},en={sidebar:"52px icon rail (220px expanded), navy #022e40 background with vibrancy",content:"flexible, max-width: 680px for conversation area",windowSize:"1512x982",platform:{windowChrome:"macos-native",vibrancy:!0,trafficLights:{x:16,y:12,size:12},titleBarHeight:28,toolbarHeight:44}},rn=`Archie macOS components (SwiftUI/AppKit native + Geist-branded elements):
13
13
  NATIVE SHELL: macOSWindowChrome (title bar + traffic lights), macOSToolbar (toolbar area), macOSSidebar (vibrancy sidebar)
14
14
  INBOX: InboxRow (email/notification item), InboxFilter (category tabs), InboxBadge (unread count)
15
15
  AI PANEL: ArchieMessage (AI response bubble), HumanMessage (user bubble), TypingIndicator, ActionCard (AI action requiring approval)
@@ -22,17 +22,17 @@ Key macOS patterns:
22
22
  - Active nav item: teal #15b1cd fill + white icon
23
23
  - Content area: plain white #ffffff (no vibrancy)
24
24
  - Two Inbox layout: sidebar nav item per inbox, split-view pane on right
25
- - Minimum touch/click target: 28x28px (macOS guideline)`,Ha="Archie/Mac",Pt={id:Ma,platform:Aa,name:Ra,personality:Fa,colors:Ba,typography:Da,shadows:Ia,spacing:Ea,radii:Wa,layout:Pa,components:Va,figmaCollectionPrefix:Ha},_a="martha",Oa="web",Ga="Martha",Ua="Warm, editorial, craftsperson. The feeling of a master artisan's studio — confident, considered, precise. Not corporate. Not cold. Tactile and human. A workspace that feels like a well-worn leather notebook.",Ya={primary:{50:"#FDF5F3",100:"#FCE8E4",200:"#F9D0C8",300:"#F5B1A4",400:"#E69180",500:"#D97F6F",600:"#C66656",700:"#A54E41",800:"#7D3A30",900:"#562821"},accent:{50:"#FDF9EF",100:"#FBF1D9",200:"#F7E3B3",300:"#F1D288",400:"#E8C163",500:"#E0B666",600:"#D4A54E",700:"#B88C3A",800:"#8F6B2C",900:"#654C1F"},neutral:{50:"#FDFCFA",100:"#FBFAF8",200:"#F5F1EC",300:"#E8E0D5",400:"#D4CBBD",500:"#A39686",600:"#6B5D52",700:"#44403C",800:"#2F241B",900:"#1C1917"},status:{success:"#52A560",warning:"#E8A93A",error:"#C0392B",info:"#6B9BD1"},entity:{mint:{bg:"#DAFBE1",text:"#15803D"},sky:{bg:"#E0F2FF",text:"#0369A1"},lavender:{bg:"#E4E4F8",text:"#6D28D9"},rose:{bg:"#FEE2E5",text:"#BE123C"},peach:{bg:"#FFE5D2",text:"#C2410C"}}},Ka={heading:{family:"Geist",weights:"600, 700",style:"Sans-serif, clean, modern — warm and considered, never corporate"},body:{family:"Geist",weights:"400, 500"},scale:[{name:"display-xl",size:"48px",weight:"700",lineHeight:"1.1"},{name:"display-lg",size:"36px",weight:"700",lineHeight:"1.15"},{name:"heading-lg",size:"28px",weight:"600",lineHeight:"1.3"},{name:"heading-md",size:"20px",weight:"600",lineHeight:"1.35"},{name:"heading-sm",size:"16px",weight:"600",lineHeight:"1.4"},{name:"body-lg",size:"16px",weight:"400",lineHeight:"1.5"},{name:"body-md",size:"14px",weight:"400",lineHeight:"1.5"},{name:"body-sm",size:"12px",weight:"400",lineHeight:"1.5"},{name:"caption",size:"11px",weight:"500",lineHeight:"1.4"},{name:"overline",size:"10px",weight:"600",lineHeight:"1.4"}]},Za={sm:"0 1px 2px rgba(47,36,27,0.06)",md:"0 4px 8px rgba(47,36,27,0.08)",lg:"0 12px 24px rgba(47,36,27,0.12)",xl:"0 20px 25px rgba(47,36,27,0.15)",glow:"0 8px 24px rgba(217,127,111,0.35)","coral-ring":"0 0 0 3px rgba(217,127,111,0.2)","gold-ring":"0 0 0 3px rgba(224,182,102,0.2)","error-ring":"0 0 0 3px rgba(192,57,43,0.2)"},Xa=[4,8,12,16,20,24,32,40,48,64],qa={sm:4,md:6,lg:8,xl:12,"2xl":16,full:9999},Ja={sidebar:"240–260px full sidebar, neutral-100 background",content:"flexible",windowSize:"1440x900",platform:{windowChrome:"browser"}},Qa=`21-component Warm Atelier library:
25
+ - Minimum touch/click target: 28x28px (macOS guideline)`,tn="Archie/Mac",Yt={id:Ga,platform:Ua,name:Ya,personality:Za,colors:Ka,typography:Xa,shadows:qa,spacing:Ja,radii:Qa,layout:en,components:rn,figmaCollectionPrefix:tn},on="martha",an="web",nn="Martha",sn="Warm, editorial, craftsperson. The feeling of a master artisan's studio — confident, considered, precise. Not corporate. Not cold. Tactile and human. A workspace that feels like a well-worn leather notebook.",ln={primary:{50:"#FDF5F3",100:"#FCE8E4",200:"#F9D0C8",300:"#F5B1A4",400:"#E69180",500:"#D97F6F",600:"#C66656",700:"#A54E41",800:"#7D3A30",900:"#562821"},accent:{50:"#FDF9EF",100:"#FBF1D9",200:"#F7E3B3",300:"#F1D288",400:"#E8C163",500:"#E0B666",600:"#D4A54E",700:"#B88C3A",800:"#8F6B2C",900:"#654C1F"},neutral:{50:"#FDFCFA",100:"#FBFAF8",200:"#F5F1EC",300:"#E8E0D5",400:"#D4CBBD",500:"#A39686",600:"#6B5D52",700:"#44403C",800:"#2F241B",900:"#1C1917"},status:{success:"#52A560",warning:"#E8A93A",error:"#C0392B",info:"#6B9BD1"},entity:{mint:{bg:"#DAFBE1",text:"#15803D"},sky:{bg:"#E0F2FF",text:"#0369A1"},lavender:{bg:"#E4E4F8",text:"#6D28D9"},rose:{bg:"#FEE2E5",text:"#BE123C"},peach:{bg:"#FFE5D2",text:"#C2410C"}}},cn={heading:{family:"Geist",weights:"600, 700",style:"Sans-serif, clean, modern — warm and considered, never corporate"},body:{family:"Geist",weights:"400, 500"},scale:[{name:"display-xl",size:"48px",weight:"700",lineHeight:"1.1"},{name:"display-lg",size:"36px",weight:"700",lineHeight:"1.15"},{name:"heading-lg",size:"28px",weight:"600",lineHeight:"1.3"},{name:"heading-md",size:"20px",weight:"600",lineHeight:"1.35"},{name:"heading-sm",size:"16px",weight:"600",lineHeight:"1.4"},{name:"body-lg",size:"16px",weight:"400",lineHeight:"1.5"},{name:"body-md",size:"14px",weight:"400",lineHeight:"1.5"},{name:"body-sm",size:"12px",weight:"400",lineHeight:"1.5"},{name:"caption",size:"11px",weight:"500",lineHeight:"1.4"},{name:"overline",size:"10px",weight:"600",lineHeight:"1.4"}]},dn={sm:"0 1px 2px rgba(47,36,27,0.06)",md:"0 4px 8px rgba(47,36,27,0.08)",lg:"0 12px 24px rgba(47,36,27,0.12)",xl:"0 20px 25px rgba(47,36,27,0.15)",glow:"0 8px 24px rgba(217,127,111,0.35)","coral-ring":"0 0 0 3px rgba(217,127,111,0.2)","gold-ring":"0 0 0 3px rgba(224,182,102,0.2)","error-ring":"0 0 0 3px rgba(192,57,43,0.2)"},pn=[4,8,12,16,20,24,32,40,48,64],xn={sm:4,md:6,lg:8,xl:12,"2xl":16,full:9999},fn={sidebar:"240–260px full sidebar, neutral-100 background",content:"flexible",windowSize:"1440x900",platform:{windowChrome:"browser"}},un=`21-component Warm Atelier library:
26
26
  Button (primary/secondary/ghost/destructive/outline, sm/md/lg)
27
27
  Card, Input, TextArea, Select, Checkbox, Toggle
28
28
  Avatar (xs/sm/md/lg/xl), Badge (default/coral/gold/success/warning/error/info)
29
- Modal, Sidebar, NavItem, Tab, Table, Breadcrumb, Tooltip, Divider, Skeleton, ProgressBar`,en="Warm Atelier",Vt={id:_a,platform:Oa,name:Ga,personality:Ua,colors:Ya,typography:Ka,shadows:Za,spacing:Xa,radii:qa,layout:Ja,components:Qa,figmaCollectionPrefix:en},rn="martha",tn="mac",on="Martha",an="Warm, editorial, craftsperson on native macOS. Martha as a first-class Mac citizen — the same artisan warmth but respecting macOS design language. Coral and warm neutrals with macOS vibrancy. Feels like a premium creative tool.",nn={primary:{50:"#FDF5F3",100:"#FCE8E4",200:"#F9D0C8",300:"#F5B1A4",400:"#E69180",500:"#D97F6F",600:"#C66656",700:"#A54E41",800:"#7D3A30",900:"#562821"},accent:{50:"#FDF9EF",100:"#FBF1D9",200:"#F7E3B3",300:"#F1D288",400:"#E8C163",500:"#E0B666",600:"#D4A54E",700:"#B88C3A",800:"#8F6B2C",900:"#654C1F"},neutral:{50:"#FDFCFA",100:"#FBFAF8",200:"#F5F1EC",300:"#E8E0D5",400:"#D4CBBD",500:"#A39686",600:"#6B5D52",700:"#44403C",800:"#2F241B",900:"#1C1917"},status:{success:"#52A560",warning:"#E8A93A",error:"#C0392B",info:"#6B9BD1"},entity:{mint:{bg:"#DAFBE1",text:"#15803D"},sky:{bg:"#E0F2FF",text:"#0369A1"},lavender:{bg:"#E4E4F8",text:"#6D28D9"},rose:{bg:"#FEE2E5",text:"#BE123C"},peach:{bg:"#FFE5D2",text:"#C2410C"}}},sn={heading:{family:"Geist",weights:"600, 700",style:"Sans-serif, clean, modern — warm and editorial, never corporate"},body:{family:"Geist",weights:"400, 500"},scale:[{name:"display-xl",size:"36px",weight:"700",lineHeight:"1.1"},{name:"display-lg",size:"28px",weight:"700",lineHeight:"1.15"},{name:"heading-lg",size:"22px",weight:"600",lineHeight:"1.3"},{name:"heading-md",size:"17px",weight:"600",lineHeight:"1.35"},{name:"heading-sm",size:"14px",weight:"600",lineHeight:"1.4"},{name:"body-lg",size:"14px",weight:"400",lineHeight:"1.5"},{name:"body-md",size:"13px",weight:"400",lineHeight:"1.5"},{name:"body-sm",size:"12px",weight:"400",lineHeight:"1.5"},{name:"caption",size:"11px",weight:"500",lineHeight:"1.4"},{name:"overline",size:"10px",weight:"600",lineHeight:"1.4"}]},ln={sm:"0 1px 2px rgba(47,36,27,0.06)",md:"0 4px 8px rgba(47,36,27,0.08)",lg:"0 12px 24px rgba(47,36,27,0.12)",xl:"0 20px 25px rgba(47,36,27,0.15)",glow:"0 8px 24px rgba(217,127,111,0.35)","coral-ring":"0 0 0 3px rgba(217,127,111,0.2)","gold-ring":"0 0 0 3px rgba(224,182,102,0.2)","error-ring":"0 0 0 3px rgba(192,57,43,0.2)"},cn=[4,8,12,16,20,24,32,40,48,64],dn={sm:4,md:6,lg:8,xl:12,"2xl":16,full:9999},pn={sidebar:"240px full sidebar with vibrancy, neutral-100/warm background",content:"flexible, editor max-width: 720px",windowSize:"1512x982",platform:{windowChrome:"macos-native",vibrancy:!0,trafficLights:{x:16,y:12,size:12},titleBarHeight:28,toolbarHeight:48}},xn=`21-component Warm Atelier library (macOS native shell variants):
29
+ Modal, Sidebar, NavItem, Tab, Table, Breadcrumb, Tooltip, Divider, Skeleton, ProgressBar`,gn="Warm Atelier",Zt={id:on,platform:an,name:nn,personality:sn,colors:ln,typography:cn,shadows:dn,spacing:pn,radii:xn,layout:fn,components:un,figmaCollectionPrefix:gn},mn="martha",hn="mac",bn="Martha",vn="Warm, editorial, craftsperson on native macOS. Martha as a first-class Mac citizen — the same artisan warmth but respecting macOS design language. Coral and warm neutrals with macOS vibrancy. Feels like a premium creative tool.",yn={primary:{50:"#FDF5F3",100:"#FCE8E4",200:"#F9D0C8",300:"#F5B1A4",400:"#E69180",500:"#D97F6F",600:"#C66656",700:"#A54E41",800:"#7D3A30",900:"#562821"},accent:{50:"#FDF9EF",100:"#FBF1D9",200:"#F7E3B3",300:"#F1D288",400:"#E8C163",500:"#E0B666",600:"#D4A54E",700:"#B88C3A",800:"#8F6B2C",900:"#654C1F"},neutral:{50:"#FDFCFA",100:"#FBFAF8",200:"#F5F1EC",300:"#E8E0D5",400:"#D4CBBD",500:"#A39686",600:"#6B5D52",700:"#44403C",800:"#2F241B",900:"#1C1917"},status:{success:"#52A560",warning:"#E8A93A",error:"#C0392B",info:"#6B9BD1"},entity:{mint:{bg:"#DAFBE1",text:"#15803D"},sky:{bg:"#E0F2FF",text:"#0369A1"},lavender:{bg:"#E4E4F8",text:"#6D28D9"},rose:{bg:"#FEE2E5",text:"#BE123C"},peach:{bg:"#FFE5D2",text:"#C2410C"}}},jn={heading:{family:"Geist",weights:"600, 700",style:"Sans-serif, clean, modern — warm and editorial, never corporate"},body:{family:"Geist",weights:"400, 500"},scale:[{name:"display-xl",size:"36px",weight:"700",lineHeight:"1.1"},{name:"display-lg",size:"28px",weight:"700",lineHeight:"1.15"},{name:"heading-lg",size:"22px",weight:"600",lineHeight:"1.3"},{name:"heading-md",size:"17px",weight:"600",lineHeight:"1.35"},{name:"heading-sm",size:"14px",weight:"600",lineHeight:"1.4"},{name:"body-lg",size:"14px",weight:"400",lineHeight:"1.5"},{name:"body-md",size:"13px",weight:"400",lineHeight:"1.5"},{name:"body-sm",size:"12px",weight:"400",lineHeight:"1.5"},{name:"caption",size:"11px",weight:"500",lineHeight:"1.4"},{name:"overline",size:"10px",weight:"600",lineHeight:"1.4"}]},wn={sm:"0 1px 2px rgba(47,36,27,0.06)",md:"0 4px 8px rgba(47,36,27,0.08)",lg:"0 12px 24px rgba(47,36,27,0.12)",xl:"0 20px 25px rgba(47,36,27,0.15)",glow:"0 8px 24px rgba(217,127,111,0.35)","coral-ring":"0 0 0 3px rgba(217,127,111,0.2)","gold-ring":"0 0 0 3px rgba(224,182,102,0.2)","error-ring":"0 0 0 3px rgba(192,57,43,0.2)"},Cn=[4,8,12,16,20,24,32,40,48,64],Sn={sm:4,md:6,lg:8,xl:12,"2xl":16,full:9999},kn={sidebar:"240px full sidebar with vibrancy, neutral-100/warm background",content:"flexible, editor max-width: 720px",windowSize:"1512x982",platform:{windowChrome:"macos-native",vibrancy:!0,trafficLights:{x:16,y:12,size:12},titleBarHeight:28,toolbarHeight:48}},Nn=`21-component Warm Atelier library (macOS native shell variants):
30
30
  Button (primary/secondary/ghost/destructive/outline, sm/md/lg)
31
31
  Card, Input, TextArea, Select, Checkbox, Toggle
32
32
  Avatar (xs/sm/md/lg/xl), Badge (default/coral/gold/success/warning/error/info)
33
33
  Modal, Sidebar, NavItem, Tab, Table, Breadcrumb, Tooltip, Divider, Skeleton, ProgressBar
34
- macOSWindowChrome, macOSToolbar, macOSSidebar (Desktop only — NSVisualEffectView vibrancy)`,fn="Warm Atelier/Mac",Ht={id:rn,platform:tn,name:on,personality:an,colors:nn,typography:sn,shadows:ln,spacing:cn,radii:dn,layout:pn,components:xn,figmaCollectionPrefix:fn},un={archie:{web:$r,mac:Pt},martha:{web:Vt,mac:Ht}},gn=$r,mn=Pt,hn=Vt,bn=Ht,_t=$r,Lr=j.createContext({platform:"web",brand:null});function Ot(r){return{display:"contents","--archie-btn-sm":`${r.buttonHeight.sm}px`,"--archie-btn-md":`${r.buttonHeight.md}px`,"--archie-btn-lg":`${r.buttonHeight.lg}px`,"--archie-input-h":`${r.inputHeight}px`,"--archie-radius-sm":`${r.radii.sm}px`,"--archie-radius-md":`${r.radii.md}px`,"--archie-radius-lg":`${r.radii.lg}px`,"--archie-radius-xl":`${r.radii.xl}px`,"--archie-shadow-sm":r.shadows.sm,"--archie-shadow-md":r.shadows.md,"--archie-shadow-lg":r.shadows.lg,"--archie-anim-duration":r.animation.duration,"--archie-anim-easing":r.animation.easing,"--archie-font":r.font,"--archie-mono-font":r.monoFont,"--archie-body-size":`${r.bodySize}px`,"--archie-body-lh":`${r.bodyLineHeight}px`,"--archie-body-weight":`${r.bodyWeight}`,"--archie-heading-weight":`${r.headingWeight}`}}function vn({platform:r="web",brand:t=null,children:o}){const a=Tr[r],n=j.useMemo(()=>Ot(a),[a]);return e.jsx(Lr.Provider,{value:{platform:r,brand:t},children:e.jsx("div",{style:n,children:o})})}function Gt(){return j.useContext(Lr).platform}function Ut(){return j.useContext(Lr).brand}function Yt(){const r=Gt();return Tr[r]}function ee(r,t,o){if(!r)return o;for(const a of t){const n=r[a];if(n)return n}return o}function Kt(){var a,n,s,l,c;const r=Ut(),t=Yt(),o=(r??_t).colors??{};return{primary:ee(o.primary,["800","500"],"#15b1cd"),primaryDeep:ee(o.primary,["1000","900","800"],"#022e40"),primaryLight:ee(o.primary,["200","100"],"#d6f4ff"),accent:ee(o.accent,["800","500"],"#ff6f00"),accentLight:ee(o.accent,["200","100"],"#fff2e2"),n1000:ee(o.neutral,["1000","900"],"#000626"),n800:ee(o.neutral,["800"],"#595f7a"),n600:ee(o.neutral,["600"],"#8c92af"),n500:ee(o.neutral,["500"],"#a1a7c4"),n400:ee(o.neutral,["400"],"#b5b9d1"),n300:ee(o.neutral,["300"],"#cdd0e0"),n200:ee(o.neutral,["200"],"#e5e7f0"),n100:ee(o.neutral,["100"],"#f5f6fa"),n50:ee(o.neutral,["50"],"#fafafc"),white:((a=o.neutral)==null?void 0:a.white)??"#ffffff",error:((n=o.status)==null?void 0:n.error)??"#fb6060",errorBg:((s=o.status)==null?void 0:s["error-bg"])??"#ffecec",success:((l=o.status)==null?void 0:l.success)??"#71d481",successBg:((c=o.status)==null?void 0:c["success-bg"])??"#e2f7e5",font:t.font,monoFont:t.monoFont,bodySize:t.bodySize,bodyLineHeight:t.bodyLineHeight,bodyWeight:t.bodyWeight,headingWeight:t.headingWeight,buttonHeight:t.buttonHeight,inputHeight:t.inputHeight,shadow:t.shadows.sm,shadowMd:t.shadows.md,shadowLg:t.shadows.lg,radiusSm:t.radii.sm,radiusMd:t.radii.md,radiusLg:t.radii.lg,radiusXl:t.radii.xl,animDuration:t.animation.duration,animEasing:t.animation.easing}}function Zt(r){var t,o,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r)){var n=r.length;for(t=0;t<n;t++)r[t]&&(o=Zt(r[t]))&&(a&&(a+=" "),a+=o)}else for(o in r)r[o]&&(a&&(a+=" "),a+=o);return a}function Xt(){for(var r,t,o=0,a="",n=arguments.length;o<n;o++)(r=arguments[o])&&(t=Zt(r))&&(a&&(a+=" "),a+=t);return a}const Mr="-",yn=r=>{const t=wn(r),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=r;return{getClassGroupId:l=>{const c=l.split(Mr);return c[0]===""&&c.length!==1&&c.shift(),qt(c,t)||jn(l)},getConflictingClassGroupIds:(l,c)=>{const d=o[l]||[];return c&&a[l]?[...d,...a[l]]:d}}},qt=(r,t)=>{var l;if(r.length===0)return t.classGroupId;const o=r[0],a=t.nextPart.get(o),n=a?qt(r.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;const s=r.join(Mr);return(l=t.validators.find(({validator:c})=>c(s)))==null?void 0:l.classGroupId},Ur=/^\[(.+)\]$/,jn=r=>{if(Ur.test(r)){const t=Ur.exec(r)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},wn=r=>{const{theme:t,classGroups:o}=r,a={nextPart:new Map,validators:[]};for(const n in o)Cr(o[n],a,n,t);return a},Cr=(r,t,o,a)=>{r.forEach(n=>{if(typeof n=="string"){const s=n===""?t:Yr(t,n);s.classGroupId=o;return}if(typeof n=="function"){if(Cn(n)){Cr(n(a),t,o,a);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([s,l])=>{Cr(l,Yr(t,s),o,a)})})},Yr=(r,t)=>{let o=r;return t.split(Mr).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Cn=r=>r.isThemeGetter,Sn=r=>{if(r<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map;const n=(s,l)=>{o.set(s,l),t++,t>r&&(t=0,a=o,o=new Map)};return{get(s){let l=o.get(s);if(l!==void 0)return l;if((l=a.get(s))!==void 0)return n(s,l),l},set(s,l){o.has(s)?o.set(s,l):n(s,l)}}},Sr="!",kr=":",kn=kr.length,Nn=r=>{const{prefix:t,experimentalParseClassName:o}=r;let a=n=>{const s=[];let l=0,c=0,d=0,x;for(let m=0;m<n.length;m++){let h=n[m];if(l===0&&c===0){if(h===kr){s.push(n.slice(d,m)),d=m+kn;continue}if(h==="/"){x=m;continue}}h==="["?l++:h==="]"?l--:h==="("?c++:h===")"&&c--}const p=s.length===0?n:n.substring(d),f=zn(p),u=f!==p,g=x&&x>d?x-d:void 0;return{modifiers:s,hasImportantModifier:u,baseClassName:f,maybePostfixModifierPosition:g}};if(t){const n=t+kr,s=a;a=l=>l.startsWith(n)?s(l.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(o){const n=a;a=s=>o({className:s,parseClassName:n})}return a},zn=r=>r.endsWith(Sr)?r.substring(0,r.length-1):r.startsWith(Sr)?r.substring(1):r,Tn=r=>{const t=Object.fromEntries(r.orderSensitiveModifiers.map(a=>[a,!0]));return a=>{if(a.length<=1)return a;const n=[];let s=[];return a.forEach(l=>{l[0]==="["||t[l]?(n.push(...s.sort(),l),s=[]):s.push(l)}),n.push(...s.sort()),n}},$n=r=>({cache:Sn(r.cacheSize),parseClassName:Nn(r),sortModifiers:Tn(r),...yn(r)}),Ln=/\s+/,Mn=(r,t)=>{const{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:s}=t,l=[],c=r.trim().split(Ln);let d="";for(let x=c.length-1;x>=0;x-=1){const p=c[x],{isExternal:f,modifiers:u,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:h}=o(p);if(f){d=p+(d.length>0?" "+d:d);continue}let v=!!h,w=a(v?m.substring(0,h):m);if(!w){if(!v){d=p+(d.length>0?" "+d:d);continue}if(w=a(m),!w){d=p+(d.length>0?" "+d:d);continue}v=!1}const N=s(u).join(":"),L=g?N+Sr:N,T=L+w;if(l.includes(T))continue;l.push(T);const C=n(w,v);for(let z=0;z<C.length;++z){const D=C[z];l.push(L+D)}d=p+(d.length>0?" "+d:d)}return d};function An(){let r=0,t,o,a="";for(;r<arguments.length;)(t=arguments[r++])&&(o=Jt(t))&&(a&&(a+=" "),a+=o);return a}const Jt=r=>{if(typeof r=="string")return r;let t,o="";for(let a=0;a<r.length;a++)r[a]&&(t=Jt(r[a]))&&(o&&(o+=" "),o+=t);return o};function Rn(r,...t){let o,a,n,s=l;function l(d){const x=t.reduce((p,f)=>f(p),r());return o=$n(x),a=o.cache.get,n=o.cache.set,s=c,c(d)}function c(d){const x=a(d);if(x)return x;const p=Mn(d,o);return n(d,p),p}return function(){return s(An.apply(null,arguments))}}const X=r=>{const t=o=>o[r]||[];return t.isThemeGetter=!0,t},Qt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,eo=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fn=/^\d+\/\d+$/,Bn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,In=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,En=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ze=r=>Fn.test(r),W=r=>!!r&&!Number.isNaN(Number(r)),me=r=>!!r&&Number.isInteger(Number(r)),gr=r=>r.endsWith("%")&&W(r.slice(0,-1)),xe=r=>Bn.test(r),Pn=()=>!0,Vn=r=>Dn.test(r)&&!In.test(r),ro=()=>!1,Hn=r=>En.test(r),_n=r=>Wn.test(r),On=r=>!A(r)&&!R(r),Gn=r=>Ee(r,ao,ro),A=r=>Qt.test(r),we=r=>Ee(r,no,Vn),mr=r=>Ee(r,Xn,W),Kr=r=>Ee(r,to,ro),Un=r=>Ee(r,oo,_n),Je=r=>Ee(r,so,Hn),R=r=>eo.test(r),Ve=r=>We(r,no),Yn=r=>We(r,qn),Zr=r=>We(r,to),Kn=r=>We(r,ao),Zn=r=>We(r,oo),Qe=r=>We(r,so,!0),Ee=(r,t,o)=>{const a=Qt.exec(r);return a?a[1]?t(a[1]):o(a[2]):!1},We=(r,t,o=!1)=>{const a=eo.exec(r);return a?a[1]?t(a[1]):o:!1},to=r=>r==="position"||r==="percentage",oo=r=>r==="image"||r==="url",ao=r=>r==="length"||r==="size"||r==="bg-size",no=r=>r==="length",Xn=r=>r==="number",qn=r=>r==="family-name",so=r=>r==="shadow",Jn=()=>{const r=X("color"),t=X("font"),o=X("text"),a=X("font-weight"),n=X("tracking"),s=X("leading"),l=X("breakpoint"),c=X("container"),d=X("spacing"),x=X("radius"),p=X("shadow"),f=X("inset-shadow"),u=X("text-shadow"),g=X("drop-shadow"),m=X("blur"),h=X("perspective"),v=X("aspect"),w=X("ease"),N=X("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...T(),R,A],z=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],$=()=>[R,A,d],F=()=>[ze,"full","auto",...$()],S=()=>[me,"none","subgrid",R,A],k=()=>["auto",{span:["full",me,R,A]},me,R,A],B=()=>[me,"auto",R,A],P=()=>["auto","min","max","fr",R,A],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],E=()=>["auto",...$()],O=()=>[ze,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],M=()=>[r,R,A],I=()=>[...T(),Zr,Kr,{position:[R,A]}],_=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",Kn,Gn,{size:[R,A]}],te=()=>[gr,Ve,we],K=()=>["","none","full",x,R,A],U=()=>["",W,Ve,we],se=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[W,gr,Zr,Kr],ye=()=>["","none",m,R,A],ke=()=>["none",W,R,A],ge=()=>["none",W,R,A],je=()=>[W,R,A],Ne=()=>[ze,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xe],breakpoint:[xe],color:[Pn],container:[xe],"drop-shadow":[xe],ease:["in","out","in-out"],font:[On],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xe],shadow:[xe],spacing:["px",W],text:[xe],"text-shadow":[xe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ze,A,R,v]}],container:["container"],columns:[{columns:[W,A,R,c]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[me,"auto",R,A]}],basis:[{basis:[ze,"full","auto",c,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,ze,"auto","initial","none",A]}],grow:[{grow:["",W,R,A]}],shrink:[{shrink:["",W,R,A]}],order:[{order:[me,"first","last","none",R,A]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[c,"screen",...O()]}],"min-w":[{"min-w":[c,"screen","none",...O()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",o,Ve,we]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,R,mr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gr,A]}],"font-family":[{font:[Yn,A,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,R,A]}],"line-clamp":[{"line-clamp":[W,"none",R,mr]}],leading:[{leading:[s,...$()]}],"list-image":[{"list-image":["none",R,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",R,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",R,we]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[W,"auto",R,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",R,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",R,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:_()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},me,R,A],radial:["",R,A],conic:[me,R,A]},Zn,Un]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,R,A]}],"outline-w":[{outline:["",W,Ve,we]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",p,Qe,Je]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",f,Qe,Je]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[W,we]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",u,Qe,Je]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[W,R,A]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":Z()}],"mask-image-linear-to-pos":[{"mask-linear-to":Z()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":Z()}],"mask-image-t-to-pos":[{"mask-t-to":Z()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":Z()}],"mask-image-r-to-pos":[{"mask-r-to":Z()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":Z()}],"mask-image-b-to-pos":[{"mask-b-to":Z()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":Z()}],"mask-image-l-to-pos":[{"mask-l-to":Z()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":Z()}],"mask-image-x-to-pos":[{"mask-x-to":Z()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":Z()}],"mask-image-y-to-pos":[{"mask-y-to":Z()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[R,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":Z()}],"mask-image-radial-to-pos":[{"mask-radial-to":Z()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":Z()}],"mask-image-conic-to-pos":[{"mask-conic-to":Z()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:_()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",R,A]}],filter:[{filter:["","none",R,A]}],blur:[{blur:ye()}],brightness:[{brightness:[W,R,A]}],contrast:[{contrast:[W,R,A]}],"drop-shadow":[{"drop-shadow":["","none",g,Qe,Je]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",W,R,A]}],"hue-rotate":[{"hue-rotate":[W,R,A]}],invert:[{invert:["",W,R,A]}],saturate:[{saturate:[W,R,A]}],sepia:[{sepia:["",W,R,A]}],"backdrop-filter":[{"backdrop-filter":["","none",R,A]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[W,R,A]}],"backdrop-contrast":[{"backdrop-contrast":[W,R,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,R,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,R,A]}],"backdrop-invert":[{"backdrop-invert":["",W,R,A]}],"backdrop-opacity":[{"backdrop-opacity":[W,R,A]}],"backdrop-saturate":[{"backdrop-saturate":[W,R,A]}],"backdrop-sepia":[{"backdrop-sepia":["",W,R,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",R,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",R,A]}],ease:[{ease:["linear","initial",w,R,A]}],delay:[{delay:[W,R,A]}],animate:[{animate:["none",N,R,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,R,A]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:je()}],"skew-x":[{"skew-x":je()}],"skew-y":[{"skew-y":je()}],transform:[{transform:[R,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ne()}],"translate-x":[{"translate-x":Ne()}],"translate-y":[{"translate-y":Ne()}],"translate-z":[{"translate-z":Ne()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",R,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",R,A]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[W,Ve,we,mr]}],stroke:[{stroke:["none",...M()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Qn=Rn(Jn);function y(...r){return Qn(Xt(r))}const Xr=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,qr=Xt,b=(r,t)=>o=>{var a;if((t==null?void 0:t.variants)==null)return qr(r,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:n,defaultVariants:s}=t,l=Object.keys(n).map(x=>{const p=o==null?void 0:o[x],f=s==null?void 0:s[x];if(p===null)return null;const u=Xr(p)||Xr(f);return n[x][u]}),c=o&&Object.entries(o).reduce((x,p)=>{let[f,u]=p;return u===void 0||(x[f]=u),x},{}),d=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((x,p)=>{let{class:f,className:u,...g}=p;return Object.entries(g).every(m=>{let[h,v]=m;return Array.isArray(v)?v.includes({...s,...c}[h]):{...s,...c}[h]===v})?[...x,f,u]:x},[]);return qr(r,l,d,o==null?void 0:o.class,o==null?void 0:o.className)},es=b("relative inline-flex items-center justify-center shrink-0 overflow-hidden",{variants:{shape:{circular:"rounded-full",square:""},size:{small:"size-[16px]",md:"size-[24px]",big:"size-[32px]"}},compoundVariants:[{shape:"square",size:"small",className:"rounded-[4px]"},{shape:"square",size:"md",className:"rounded-[6px]"},{shape:"square",size:"big",className:"rounded-[8px]"}],defaultVariants:{shape:"circular",size:"small"}}),rs=b('font-["Geist",system-ui,sans-serif] font-normal text-center text-[var(--color-blue-800)]',{variants:{size:{small:"text-[8px] leading-[16px]",md:"text-[12px] leading-[20px]",big:"text-[16px] leading-[24px]"}},defaultVariants:{size:"small"}}),ts=b("absolute inset-0 w-full h-full object-cover"),os=r=>{const t=r.trim().split(/\s+/);return t.length>=2?(t[0][0]+t[1][0]).toUpperCase():r.slice(0,2).toUpperCase()},as=(r,t)=>`https://picsum.photos/seed/${r}/${t}/${t}`,xr=j.forwardRef(({className:r,type:t="text",shape:o="circular",size:a="small",initials:n="AR",src:s,alt:l="Avatar",fallbackInitials:c,...d},x)=>{const[p,f]=j.useState(!1),u=j.useMemo(()=>Math.floor(Math.random()*1e3),[]),m=s||as(u,a==="big"?64:a==="md"?48:32),h=p&&c?c:n,v=t==="image"&&!p,w=()=>{f(!0)},N={backgroundImage:"linear-gradient(90deg, rgba(21, 177, 205, 0.08) 0%, rgba(21, 177, 205, 0.08) 100%), linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%)"};return e.jsx("div",{ref:x,className:y(es({shape:o,size:a}),r),style:v?void 0:N,role:"img","aria-label":l,...d,children:v?e.jsx("img",{src:m,alt:l,className:y(ts()),onError:w}):e.jsx("span",{className:y(rs({size:a})),children:os(h)})})});xr.displayName="Avatar";const ns=b("relative inline-flex items-center justify-center shrink-0",{variants:{size:{small:"w-2 h-2",medium:"w-3 h-3",large:"w-4 h-4"}},defaultVariants:{size:"medium"}}),ss=b("w-full h-full rounded-full",{variants:{variant:{success:"bg-[var(--color-green-1000)]",warning:"bg-[var(--color-orange-800)]",error:"bg-[var(--color-red-1000)]",info:"bg-[var(--color-blue-800)]",neutral:"bg-[var(--color-gray-600)]"}},defaultVariants:{variant:"neutral"}}),ls=b("absolute w-full h-full rounded-full opacity-75 animate-ping",{variants:{variant:{success:"bg-[var(--color-green-1000)]",warning:"bg-[var(--color-orange-800)]",error:"bg-[var(--color-red-1000)]",info:"bg-[var(--color-blue-800)]",neutral:"bg-[var(--color-gray-600)]"}},defaultVariants:{variant:"neutral"}}),is={success:"Success status",warning:"Warning status",error:"Error status",info:"Info status",neutral:"Neutral status"},Ar=j.forwardRef(({className:r,variant:t="neutral",size:o="medium",animated:a=!1,...n},s)=>e.jsxs("div",{ref:s,role:"status","aria-label":is[t],className:y(ns({size:o}),r),...n,children:[a&&e.jsx("span",{className:ls({variant:t})}),e.jsx("span",{className:ss({variant:t})})]}));Ar.displayName="StatusIndicator";const cs=b("inline-flex items-center px-2 py-[2px] rounded-full text-[11px] font-semibold whitespace-nowrap tabular-nums",{variants:{direction:{up:"bg-[var(--color-green-200)] text-[var(--color-green-1000)]",down:"bg-[var(--color-red-200)] text-[var(--color-red-1000)]",flat:"bg-[var(--color-gray-100)] text-[var(--color-gray-800)]",warning:"bg-[var(--color-orange-200)] text-[var(--color-amber-1000)]"}},defaultVariants:{direction:"flat"}});function ds({value:r,direction:t,className:o}){return e.jsx("span",{className:y(cs({direction:t}),o),style:{fontFamily:"Geist Mono, ui-monospace, monospace"},children:r})}const ps=b("inline-flex items-center gap-[5px] px-[10px] py-[3px] rounded-full text-[11px] font-semibold whitespace-nowrap",{variants:{variant:{success:"bg-[var(--color-green-200)] text-[var(--color-green-1000)]",warning:"bg-[#fef9c3] text-[#854d0e]",error:"bg-[var(--color-red-200)] text-[var(--color-red-1000)]",info:"bg-[var(--color-blue-200)] text-[var(--color-blue-1000)]",neutral:"bg-[var(--color-gray-100)] text-[var(--color-gray-800)]"}},defaultVariants:{variant:"neutral"}});function xs({label:r,variant:t="neutral",showDot:o,icon:a,className:n}){return e.jsxs("span",{className:y(ps({variant:t}),n),children:[a?e.jsx("span",{className:"flex items-center shrink-0",children:a}):o?e.jsx("span",{className:"w-[6px] h-[6px] rounded-full bg-current shrink-0"}):null,r]})}function fs({number:r,onClick:t,className:o}){return e.jsxs("sup",{id:`fnref-${r}`,className:y("text-[10px] font-semibold text-[var(--color-blue-800)] cursor-pointer select-none leading-none",t&&"hover:text-[var(--color-blue-1000)] transition-colors duration-150",o),title:`See footnote ${r}`,onClick:()=>t==null?void 0:t(r),"aria-label":`Footnote ${r}`,children:["[",r,"]"]})}const us={up:"var(--color-green-1000)",down:"var(--color-red-1000)",flat:"var(--color-gray-600)"};function gs(r){if(r.length<2)return"flat";const t=r[r.length-1].value-r[0].value;return t>0?"up":t<0?"down":"flat"}function ms({data:r,direction:t,width:o=80,height:a=24,showLastDot:n=!0,className:s}){if(r.length<2)return null;const l=t??gs(r),c=us[l],d=r.map(T=>T.value),x=Math.min(...d),f=Math.max(...d)-x||1,u=2,g=o-u*2,m=a-u*2,h=r.map((T,C)=>{const z=u+C/(r.length-1)*g,D=u+m-(T.value-x)/f*m;return`${z},${D}`}),v=h.join(" "),w=h[h.length-1].split(","),N=parseFloat(w[0]),L=parseFloat(w[1]);return e.jsxs("svg",{width:o,height:a,viewBox:`0 0 ${o} ${a}`,className:y("overflow-visible",s),"aria-hidden":"true",role:"img",children:[e.jsx("polyline",{points:v,fill:"none",stroke:c,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n&&e.jsx("circle",{cx:N,cy:L,r:2.5,fill:c})]})}const hs={display:"typography-display",h1:"typography-h1",h2:"typography-h2",h3:"typography-h3",h4:"typography-h4",h5:"typography-h5",small:"typography-small",tiny:"typography-tiny","x-small":"typography-x-small","column-header":"typography-column-header",tag:"typography-tag"},bs={display:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",small:"p",tiny:"p","x-small":"p","column-header":"span",tag:"span"},vs={primary:"text-[var(--color-gray-1000)]",secondary:"text-[var(--color-gray-600)]",inherit:""},ys={thin:"font-thin",extralight:"font-extralight",light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"},js={sans:"!font-body",mono:"!font-mono"},Ke=({variant:r,as:t,children:o,className:a,color:n="primary",weight:s,fontFamily:l})=>{const c=t||bs[r],d=hs[r],x=vs[n],p=s?ys[s]:"",f=l?js[l]:"";return e.jsx(c,{className:y(d,x,p,f,a),children:o})},ws={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},Rr=({size:r=256,colorVariant:t="dark",...o})=>{const a=ws[t];return e.jsxs("svg",{...o,width:r,height:r,viewBox:"0 0 256 256",fill:"none",children:[e.jsx("path",{d:"M35.2761 209.996L27.7832 218.211H11V227H79.5141V218.211H53.3838L48.1047 212.422L62.2011 175.529H138.132L151.434 212.289L146.041 218.211H120.914V227H206.306V218.211H192.664L187.404 212.441L115.029 30H79.7412L81.3306 34.872L93.5916 64.7535M46.0234 218.211H45.9098L46.9127 215.575L46.0234 218.211ZM126.496 162.633H73.9891L69.4858 157.703L97.7164 88.5402H103.223L113.383 113.951L126.269 146.182L130.923 157.818L126.515 162.652L126.496 162.633ZM131.548 159.06H131.567L133.024 162.652L131.548 159.06Z",fill:a}),e.jsx("path",{d:"M233.477 227C239.841 227 245 221.791 245 215.365C245 208.938 239.841 203.729 233.477 203.729C227.113 203.729 221.954 208.938 221.954 215.365C221.954 221.791 227.113 227 233.477 227Z",fill:a})]})};Rr.displayName="LogoA";const Cs={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},lo=({size:r=163,colorVariant:t="dark",...o})=>{const a=Cs[t],n=603/163,s=typeof r=="number"?r:parseFloat(r),l=s*n;return e.jsxs("svg",{...o,width:l,height:s,viewBox:"0 0 603 163",fill:"none",children:[e.jsxs("g",{clipPath:"url(#clip0_full_logo)",children:[e.jsx("path",{d:"M303.686 142.03C284.282 142.03 267.966 127.819 267.966 105.332C267.966 84.0925 278.722 69.1137 300.637 67.9807L314.384 93.9439H326.694V59.4543H301.96C284.723 59.4543 270.554 65.5226 260.642 75.2972C250.537 85.2639 244.862 99.0905 244.862 114.3C244.862 142.702 267.506 163.019 293.025 163.019C314.615 163.019 330.107 148.156 332.733 127.416C326.406 136.365 315.727 142.049 303.724 142.049L303.686 142.03Z",fill:a}),e.jsx("path",{d:"M481.48 48.6811C490.204 48.6811 497.183 41.4797 497.183 32.9534C497.183 24.427 490.204 17.2256 481.48 17.2256C472.756 17.2256 465.547 24.2157 465.547 32.9534C465.547 41.691 472.526 48.6811 481.48 48.6811Z",fill:a}),e.jsx("path",{d:"M570.942 141.588C550.868 141.588 534.724 126.072 534.724 102.912V101.376H603C603 78.8691 587.949 59.4351 562.87 59.4351C536.047 59.4351 513.787 84.7838 513.787 112.533C513.787 140.282 534.513 163 561.336 163C581.622 163 598.859 150.114 602.348 126.955C594.487 137.229 583.367 141.588 570.942 141.588ZM558.94 69.9202C570.501 69.9202 578.132 79.0996 578.132 92.6381H535.606C538.654 78.005 548.049 69.9202 558.94 69.9202Z",fill:a}),e.jsx("path",{d:"M198.233 79.0995V57.2459L155.476 73.204L172.502 86.5313V148.866L168.073 153.667H146.81L84.8802 0H55.8901L57.7691 4.53204L67.8351 28.8438L19.9402 146.984L13.7856 153.667H0V160.811H56.2736V153.667H34.8187L30.4855 148.962L42.0662 118.947H104.437L115.366 148.847L110.937 153.667H90.3062V160.811H221.26V153.667H198.233V89.1622L213.725 78.0242L230.961 91.2362H240.088V59.4543H230.079C217.118 59.4543 204.847 64.6585 198.233 79.1188V79.0995ZM28.7791 153.667H28.6641L29.4885 151.516L28.7599 153.667H28.7791ZM51.7487 108.462L48.0483 104.448L71.2288 48.1818H75.7537L84.094 68.8448L94.6777 95.0577L98.4932 104.525L94.8694 108.462H51.7487ZM99.0109 105.543H99.03L100.219 108.462L99.0109 105.543Z",fill:a}),e.jsx("path",{d:"M495.668 153.667V57.2459L452.911 73.204L469.918 86.5313V148.866L465.489 153.667H443.344L438.934 148.885V91.5627C438.934 72.7816 429.328 59.4543 411.229 59.4543H407.394C392.995 59.4543 382.737 68.1919 374.895 76.2766H374.799V1.92035L328.764 16.7839L349.05 29.6695V148.866L344.64 153.667H333.404V160.811H390.253V153.667H379.229L374.819 148.866V84.3421C379.401 80.6358 385.728 76.6991 392.707 76.6991C406.014 76.6991 413.223 84.5726 413.223 98.5528V148.866L408.794 153.667H399.706V160.811H514.745V153.667H495.687H495.668Z",fill:a})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_full_logo",children:e.jsx("rect",{width:"603",height:"163",fill:"white"})})})]})};lo.displayName="FullLogo";const Ss={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},Fr=({size:r=329,colorVariant:t="dark",animated:o=!1,animationDuration:a=2,animationDelay:n=0,...s})=>{const l=Ss[t],c=j.useId(),d=2800;return o?e.jsxs("svg",{...s,width:r,height:r,viewBox:"0 0 329 329",fill:"none",children:[e.jsx("style",{children:`
35
- @keyframes drawSignature-${c.replace(/:/g,"")} {
34
+ macOSWindowChrome, macOSToolbar, macOSSidebar (Desktop only — NSVisualEffectView vibrancy)`,zn="Warm Atelier/Mac",Kt={id:mn,platform:hn,name:bn,personality:vn,colors:yn,typography:jn,shadows:wn,spacing:Cn,radii:Sn,layout:kn,components:Nn,figmaCollectionPrefix:zn},Tn={archie:{web:Ar,mac:Yt},martha:{web:Zt,mac:Kt}},Ln=Ar,$n=Yt,An=Zt,Mn=Kt,Xt=Ar,Mr=j.createContext({platform:"web",brand:null});function qt(r){return{display:"contents","--archie-btn-sm":`${r.buttonHeight.sm}px`,"--archie-btn-md":`${r.buttonHeight.md}px`,"--archie-btn-lg":`${r.buttonHeight.lg}px`,"--archie-input-h":`${r.inputHeight}px`,"--archie-radius-sm":`${r.radii.sm}px`,"--archie-radius-md":`${r.radii.md}px`,"--archie-radius-lg":`${r.radii.lg}px`,"--archie-radius-xl":`${r.radii.xl}px`,"--archie-shadow-sm":r.shadows.sm,"--archie-shadow-md":r.shadows.md,"--archie-shadow-lg":r.shadows.lg,"--archie-anim-duration":r.animation.duration,"--archie-anim-easing":r.animation.easing,"--archie-font":r.font,"--archie-mono-font":r.monoFont,"--archie-body-size":`${r.bodySize}px`,"--archie-body-lh":`${r.bodyLineHeight}px`,"--archie-body-weight":`${r.bodyWeight}`,"--archie-heading-weight":`${r.headingWeight}`}}function Rn({platform:r="web",brand:t=null,children:o}){const a=$r[r],n=j.useMemo(()=>qt(a),[a]);return e.jsx(Mr.Provider,{value:{platform:r,brand:t},children:e.jsx("div",{style:n,children:o})})}function Jt(){return j.useContext(Mr).platform}function Qt(){return j.useContext(Mr).brand}function eo(){const r=Jt();return $r[r]}function ee(r,t,o){if(!r)return o;for(const a of t){const n=r[a];if(n)return n}return o}function Rr(){var a,n,s,l,i;const r=Qt(),t=eo(),o=(r??Xt).colors??{};return{primary:ee(o.primary,["800","500"],"#15b1cd"),primaryDeep:ee(o.primary,["1000","900","800"],"#022e40"),primaryLight:ee(o.primary,["200","100"],"#d6f4ff"),accent:ee(o.accent,["800","500"],"#ff6f00"),accentLight:ee(o.accent,["200","100"],"#fff2e2"),n1000:ee(o.neutral,["1000","900"],"#000626"),n800:ee(o.neutral,["800"],"#595f7a"),n600:ee(o.neutral,["600"],"#8c92af"),n500:ee(o.neutral,["500"],"#a1a7c4"),n400:ee(o.neutral,["400"],"#b5b9d1"),n300:ee(o.neutral,["300"],"#cdd0e0"),n200:ee(o.neutral,["200"],"#e5e7f0"),n100:ee(o.neutral,["100"],"#f5f6fa"),n50:ee(o.neutral,["50"],"#fafafc"),white:((a=o.neutral)==null?void 0:a.white)??"#ffffff",error:((n=o.status)==null?void 0:n.error)??"#fb6060",errorBg:((s=o.status)==null?void 0:s["error-bg"])??"#ffecec",success:((l=o.status)==null?void 0:l.success)??"#71d481",successBg:((i=o.status)==null?void 0:i["success-bg"])??"#e2f7e5",font:t.font,monoFont:t.monoFont,bodySize:t.bodySize,bodyLineHeight:t.bodyLineHeight,bodyWeight:t.bodyWeight,headingWeight:t.headingWeight,buttonHeight:t.buttonHeight,inputHeight:t.inputHeight,shadow:t.shadows.sm,shadowMd:t.shadows.md,shadowLg:t.shadows.lg,radiusSm:t.radii.sm,radiusMd:t.radii.md,radiusLg:t.radii.lg,radiusXl:t.radii.xl,animDuration:t.animation.duration,animEasing:t.animation.easing}}function ro(r){var t,o,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r)){var n=r.length;for(t=0;t<n;t++)r[t]&&(o=ro(r[t]))&&(a&&(a+=" "),a+=o)}else for(o in r)r[o]&&(a&&(a+=" "),a+=o);return a}function to(){for(var r,t,o=0,a="",n=arguments.length;o<n;o++)(r=arguments[o])&&(t=ro(r))&&(a&&(a+=" "),a+=t);return a}const Fr="-",Fn=r=>{const t=Bn(r),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=r;return{getClassGroupId:l=>{const i=l.split(Fr);return i[0]===""&&i.length!==1&&i.shift(),oo(i,t)||In(l)},getConflictingClassGroupIds:(l,i)=>{const d=o[l]||[];return i&&a[l]?[...d,...a[l]]:d}}},oo=(r,t)=>{var l;if(r.length===0)return t.classGroupId;const o=r[0],a=t.nextPart.get(o),n=a?oo(r.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;const s=r.join(Fr);return(l=t.validators.find(({validator:i})=>i(s)))==null?void 0:l.classGroupId},Jr=/^\[(.+)\]$/,In=r=>{if(Jr.test(r)){const t=Jr.exec(r)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Bn=r=>{const{theme:t,classGroups:o}=r,a={nextPart:new Map,validators:[]};for(const n in o)kr(o[n],a,n,t);return a},kr=(r,t,o,a)=>{r.forEach(n=>{if(typeof n=="string"){const s=n===""?t:Qr(t,n);s.classGroupId=o;return}if(typeof n=="function"){if(Dn(n)){kr(n(a),t,o,a);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([s,l])=>{kr(l,Qr(t,s),o,a)})})},Qr=(r,t)=>{let o=r;return t.split(Fr).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Dn=r=>r.isThemeGetter,En=r=>{if(r<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map;const n=(s,l)=>{o.set(s,l),t++,t>r&&(t=0,a=o,o=new Map)};return{get(s){let l=o.get(s);if(l!==void 0)return l;if((l=a.get(s))!==void 0)return n(s,l),l},set(s,l){o.has(s)?o.set(s,l):n(s,l)}}},Nr="!",zr=":",Pn=zr.length,Wn=r=>{const{prefix:t,experimentalParseClassName:o}=r;let a=n=>{const s=[];let l=0,i=0,d=0,x;for(let m=0;m<n.length;m++){let h=n[m];if(l===0&&i===0){if(h===zr){s.push(n.slice(d,m)),d=m+Pn;continue}if(h==="/"){x=m;continue}}h==="["?l++:h==="]"?l--:h==="("?i++:h===")"&&i--}const p=s.length===0?n:n.substring(d),f=Vn(p),u=f!==p,g=x&&x>d?x-d:void 0;return{modifiers:s,hasImportantModifier:u,baseClassName:f,maybePostfixModifierPosition:g}};if(t){const n=t+zr,s=a;a=l=>l.startsWith(n)?s(l.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(o){const n=a;a=s=>o({className:s,parseClassName:n})}return a},Vn=r=>r.endsWith(Nr)?r.substring(0,r.length-1):r.startsWith(Nr)?r.substring(1):r,Hn=r=>{const t=Object.fromEntries(r.orderSensitiveModifiers.map(a=>[a,!0]));return a=>{if(a.length<=1)return a;const n=[];let s=[];return a.forEach(l=>{l[0]==="["||t[l]?(n.push(...s.sort(),l),s=[]):s.push(l)}),n.push(...s.sort()),n}},_n=r=>({cache:En(r.cacheSize),parseClassName:Wn(r),sortModifiers:Hn(r),...Fn(r)}),On=/\s+/,Gn=(r,t)=>{const{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:s}=t,l=[],i=r.trim().split(On);let d="";for(let x=i.length-1;x>=0;x-=1){const p=i[x],{isExternal:f,modifiers:u,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:h}=o(p);if(f){d=p+(d.length>0?" "+d:d);continue}let b=!!h,w=a(b?m.substring(0,h):m);if(!w){if(!b){d=p+(d.length>0?" "+d:d);continue}if(w=a(m),!w){d=p+(d.length>0?" "+d:d);continue}b=!1}const S=s(u).join(":"),T=g?S+Nr:S,L=T+w;if(l.includes(L))continue;l.push(L);const C=n(w,b);for(let z=0;z<C.length;++z){const I=C[z];l.push(T+I)}d=p+(d.length>0?" "+d:d)}return d};function Un(){let r=0,t,o,a="";for(;r<arguments.length;)(t=arguments[r++])&&(o=ao(t))&&(a&&(a+=" "),a+=o);return a}const ao=r=>{if(typeof r=="string")return r;let t,o="";for(let a=0;a<r.length;a++)r[a]&&(t=ao(r[a]))&&(o&&(o+=" "),o+=t);return o};function Yn(r,...t){let o,a,n,s=l;function l(d){const x=t.reduce((p,f)=>f(p),r());return o=_n(x),a=o.cache.get,n=o.cache.set,s=i,i(d)}function i(d){const x=a(d);if(x)return x;const p=Gn(d,o);return n(d,p),p}return function(){return s(Un.apply(null,arguments))}}const X=r=>{const t=o=>o[r]||[];return t.isThemeGetter=!0,t},no=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,so=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zn=/^\d+\/\d+$/,Kn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Jn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Qn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Te=r=>Zn.test(r),P=r=>!!r&&!Number.isNaN(Number(r)),me=r=>!!r&&Number.isInteger(Number(r)),hr=r=>r.endsWith("%")&&P(r.slice(0,-1)),xe=r=>Kn.test(r),es=()=>!0,rs=r=>Xn.test(r)&&!qn.test(r),lo=()=>!1,ts=r=>Jn.test(r),os=r=>Qn.test(r),as=r=>!M(r)&&!R(r),ns=r=>Pe(r,po,lo),M=r=>no.test(r),we=r=>Pe(r,xo,rs),br=r=>Pe(r,ds,P),et=r=>Pe(r,io,lo),ss=r=>Pe(r,co,os),er=r=>Pe(r,fo,ts),R=r=>so.test(r),He=r=>We(r,xo),ls=r=>We(r,ps),rt=r=>We(r,io),is=r=>We(r,po),cs=r=>We(r,co),rr=r=>We(r,fo,!0),Pe=(r,t,o)=>{const a=no.exec(r);return a?a[1]?t(a[1]):o(a[2]):!1},We=(r,t,o=!1)=>{const a=so.exec(r);return a?a[1]?t(a[1]):o:!1},io=r=>r==="position"||r==="percentage",co=r=>r==="image"||r==="url",po=r=>r==="length"||r==="size"||r==="bg-size",xo=r=>r==="length",ds=r=>r==="number",ps=r=>r==="family-name",fo=r=>r==="shadow",xs=()=>{const r=X("color"),t=X("font"),o=X("text"),a=X("font-weight"),n=X("tracking"),s=X("leading"),l=X("breakpoint"),i=X("container"),d=X("spacing"),x=X("radius"),p=X("shadow"),f=X("inset-shadow"),u=X("text-shadow"),g=X("drop-shadow"),m=X("blur"),h=X("perspective"),b=X("aspect"),w=X("ease"),S=X("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...L(),R,M],z=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],$=()=>[R,M,d],F=()=>[Te,"full","auto",...$()],k=()=>[me,"none","subgrid",R,M],N=()=>["auto",{span:["full",me,R,M]},me,R,M],B=()=>[me,"auto",R,M],W=()=>["auto","min","max","fr",R,M],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],E=()=>["auto",...$()],O=()=>[Te,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],A=()=>[r,R,M],D=()=>[...L(),rt,et,{position:[R,M]}],_=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",is,ns,{size:[R,M]}],te=()=>[hr,He,we],Z=()=>["","none","full",x,R,M],U=()=>["",P,He,we],se=()=>["solid","dashed","dotted","double"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[P,hr,rt,et],ye=()=>["","none",m,R,M],Ne=()=>["none",P,R,M],ge=()=>["none",P,R,M],je=()=>[P,R,M],ze=()=>[Te,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xe],breakpoint:[xe],color:[es],container:[xe],"drop-shadow":[xe],ease:["in","out","in-out"],font:[as],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xe],shadow:[xe],spacing:["px",P],text:[xe],"text-shadow":[xe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Te,M,R,b]}],container:["container"],columns:[{columns:[P,M,R,i]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[me,"auto",R,M]}],basis:[{basis:[Te,"full","auto",i,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[P,Te,"auto","initial","none",M]}],grow:[{grow:["",P,R,M]}],shrink:[{shrink:["",P,R,M]}],order:[{order:[me,"first","last","none",R,M]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[i,"screen",...O()]}],"min-w":[{"min-w":[i,"screen","none",...O()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",o,He,we]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,R,br]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hr,M]}],"font-family":[{font:[ls,M,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,R,M]}],"line-clamp":[{"line-clamp":[P,"none",R,br]}],leading:[{leading:[s,...$()]}],"list-image":[{"list-image":["none",R,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",R,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[P,"from-font","auto",R,we]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[P,"auto",R,M]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",R,M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",R,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:_()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},me,R,M],radial:["",R,M],conic:[me,R,M]},cs,ss]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[P,R,M]}],"outline-w":[{outline:["",P,He,we]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",p,rr,er]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",f,rr,er]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[P,we]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",u,rr,er]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[P,R,M]}],"mix-blend":[{"mix-blend":[...Q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[P]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[R,M]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":L()}],"mask-image-conic-pos":[{"mask-conic":[P]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:_()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",R,M]}],filter:[{filter:["","none",R,M]}],blur:[{blur:ye()}],brightness:[{brightness:[P,R,M]}],contrast:[{contrast:[P,R,M]}],"drop-shadow":[{"drop-shadow":["","none",g,rr,er]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",P,R,M]}],"hue-rotate":[{"hue-rotate":[P,R,M]}],invert:[{invert:["",P,R,M]}],saturate:[{saturate:[P,R,M]}],sepia:[{sepia:["",P,R,M]}],"backdrop-filter":[{"backdrop-filter":["","none",R,M]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[P,R,M]}],"backdrop-contrast":[{"backdrop-contrast":[P,R,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",P,R,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[P,R,M]}],"backdrop-invert":[{"backdrop-invert":["",P,R,M]}],"backdrop-opacity":[{"backdrop-opacity":[P,R,M]}],"backdrop-saturate":[{"backdrop-saturate":[P,R,M]}],"backdrop-sepia":[{"backdrop-sepia":["",P,R,M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",R,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[P,"initial",R,M]}],ease:[{ease:["linear","initial",w,R,M]}],delay:[{delay:[P,R,M]}],animate:[{animate:["none",S,R,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,R,M]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:je()}],"skew-x":[{"skew-x":je()}],"skew-y":[{"skew-y":je()}],transform:[{transform:[R,M,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ze()}],"translate-x":[{"translate-x":ze()}],"translate-y":[{"translate-y":ze()}],"translate-z":[{"translate-z":ze()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",R,M]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",R,M]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[P,He,we,br]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},fs=Yn(xs);function y(...r){return fs(to(r))}const tt=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,ot=to,v=(r,t)=>o=>{var a;if((t==null?void 0:t.variants)==null)return ot(r,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:n,defaultVariants:s}=t,l=Object.keys(n).map(x=>{const p=o==null?void 0:o[x],f=s==null?void 0:s[x];if(p===null)return null;const u=tt(p)||tt(f);return n[x][u]}),i=o&&Object.entries(o).reduce((x,p)=>{let[f,u]=p;return u===void 0||(x[f]=u),x},{}),d=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((x,p)=>{let{class:f,className:u,...g}=p;return Object.entries(g).every(m=>{let[h,b]=m;return Array.isArray(b)?b.includes({...s,...i}[h]):{...s,...i}[h]===b})?[...x,f,u]:x},[]);return ot(r,l,d,o==null?void 0:o.class,o==null?void 0:o.className)},us=v("relative inline-flex items-center justify-center shrink-0 overflow-hidden",{variants:{shape:{circular:"rounded-full",square:""},size:{small:"size-[16px]",md:"size-[24px]",big:"size-[32px]"}},compoundVariants:[{shape:"square",size:"small",className:"rounded-[4px]"},{shape:"square",size:"md",className:"rounded-[6px]"},{shape:"square",size:"big",className:"rounded-[8px]"}],defaultVariants:{shape:"circular",size:"small"}}),gs=v('font-["Geist",system-ui,sans-serif] font-normal text-center text-[var(--color-blue-800)]',{variants:{size:{small:"text-[8px] leading-[16px]",md:"text-[12px] leading-[20px]",big:"text-[16px] leading-[24px]"}},defaultVariants:{size:"small"}}),ms=v("absolute inset-0 w-full h-full object-cover"),hs=r=>{const t=r.trim().split(/\s+/);return t.length>=2?(t[0][0]+t[1][0]).toUpperCase():r.slice(0,2).toUpperCase()},bs=(r,t)=>`https://picsum.photos/seed/${r}/${t}/${t}`,ur=j.forwardRef(({className:r,type:t="text",shape:o="circular",size:a="small",initials:n="AR",src:s,alt:l="Avatar",fallbackInitials:i,...d},x)=>{const[p,f]=j.useState(!1),u=j.useMemo(()=>Math.floor(Math.random()*1e3),[]),m=s||bs(u,a==="big"?64:a==="md"?48:32),h=p&&i?i:n,b=t==="image"&&!p,w=()=>{f(!0)},S={backgroundImage:"linear-gradient(90deg, rgba(21, 177, 205, 0.08) 0%, rgba(21, 177, 205, 0.08) 100%), linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%)"};return e.jsx("div",{ref:x,className:y(us({shape:o,size:a}),r),style:b?void 0:S,role:"img","aria-label":l,...d,children:b?e.jsx("img",{src:m,alt:l,className:y(ms()),onError:w}):e.jsx("span",{className:y(gs({size:a})),children:hs(h)})})});ur.displayName="Avatar";const vs=v("relative inline-flex items-center justify-center shrink-0",{variants:{size:{small:"w-2 h-2",medium:"w-3 h-3",large:"w-4 h-4"}},defaultVariants:{size:"medium"}}),ys=v("w-full h-full rounded-full",{variants:{variant:{success:"bg-[var(--color-green-1000)]",warning:"bg-[var(--color-orange-800)]",error:"bg-[var(--color-red-1000)]",info:"bg-[var(--color-blue-800)]",neutral:"bg-[var(--color-gray-600)]"}},defaultVariants:{variant:"neutral"}}),js=v("absolute w-full h-full rounded-full opacity-75 animate-ping",{variants:{variant:{success:"bg-[var(--color-green-1000)]",warning:"bg-[var(--color-orange-800)]",error:"bg-[var(--color-red-1000)]",info:"bg-[var(--color-blue-800)]",neutral:"bg-[var(--color-gray-600)]"}},defaultVariants:{variant:"neutral"}}),ws={success:"Success status",warning:"Warning status",error:"Error status",info:"Info status",neutral:"Neutral status"},Ir=j.forwardRef(({className:r,variant:t="neutral",size:o="medium",animated:a=!1,...n},s)=>e.jsxs("div",{ref:s,role:"status","aria-label":ws[t],className:y(vs({size:o}),r),...n,children:[a&&e.jsx("span",{className:js({variant:t})}),e.jsx("span",{className:ys({variant:t})})]}));Ir.displayName="StatusIndicator";const Cs=v("inline-flex items-center px-2 py-[2px] rounded-full text-[11px] font-semibold whitespace-nowrap tabular-nums",{variants:{direction:{up:"bg-[var(--color-green-200)] text-[var(--color-green-1000)]",down:"bg-[var(--color-red-200)] text-[var(--color-red-1000)]",flat:"bg-[var(--color-gray-100)] text-[var(--color-gray-800)]",warning:"bg-[var(--color-orange-200)] text-[var(--color-amber-1000)]"}},defaultVariants:{direction:"flat"}});function Ss({value:r,direction:t,className:o}){return e.jsx("span",{className:y(Cs({direction:t}),o),style:{fontFamily:"Geist Mono, ui-monospace, monospace"},children:r})}const ks=v("inline-flex items-center gap-[5px] px-[10px] py-[3px] rounded-full text-[11px] font-semibold whitespace-nowrap",{variants:{variant:{success:"bg-[var(--color-green-200)] text-[var(--color-green-1000)]",warning:"bg-[#fef9c3] text-[#854d0e]",error:"bg-[var(--color-red-200)] text-[var(--color-red-1000)]",info:"bg-[var(--color-blue-200)] text-[var(--color-blue-1000)]",neutral:"bg-[var(--color-gray-100)] text-[var(--color-gray-800)]"}},defaultVariants:{variant:"neutral"}});function Ns({label:r,variant:t="neutral",showDot:o,icon:a,className:n}){return e.jsxs("span",{className:y(ks({variant:t}),n),children:[a?e.jsx("span",{className:"flex items-center shrink-0",children:a}):o?e.jsx("span",{className:"w-[6px] h-[6px] rounded-full bg-current shrink-0"}):null,r]})}function zs({number:r,onClick:t,className:o}){return e.jsxs("sup",{id:`fnref-${r}`,className:y("text-[10px] font-semibold text-[var(--color-blue-800)] cursor-pointer select-none leading-none",t&&"hover:text-[var(--color-blue-1000)] transition-colors duration-150",o),title:`See footnote ${r}`,onClick:()=>t==null?void 0:t(r),"aria-label":`Footnote ${r}`,children:["[",r,"]"]})}const Ts={up:"var(--color-green-1000)",down:"var(--color-red-1000)",flat:"var(--color-gray-600)"};function Ls(r){if(r.length<2)return"flat";const t=r[r.length-1].value-r[0].value;return t>0?"up":t<0?"down":"flat"}function $s({data:r,direction:t,width:o=80,height:a=24,showLastDot:n=!0,className:s}){if(r.length<2)return null;const l=t??Ls(r),i=Ts[l],d=r.map(L=>L.value),x=Math.min(...d),f=Math.max(...d)-x||1,u=2,g=o-u*2,m=a-u*2,h=r.map((L,C)=>{const z=u+C/(r.length-1)*g,I=u+m-(L.value-x)/f*m;return`${z},${I}`}),b=h.join(" "),w=h[h.length-1].split(","),S=parseFloat(w[0]),T=parseFloat(w[1]);return e.jsxs("svg",{width:o,height:a,viewBox:`0 0 ${o} ${a}`,className:y("overflow-visible",s),"aria-hidden":"true",role:"img",children:[e.jsx("polyline",{points:b,fill:"none",stroke:i,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n&&e.jsx("circle",{cx:S,cy:T,r:2.5,fill:i})]})}const As={display:"typography-display",h1:"typography-h1",h2:"typography-h2",h3:"typography-h3",h4:"typography-h4",h5:"typography-h5",small:"typography-small",tiny:"typography-tiny","x-small":"typography-x-small","column-header":"typography-column-header",tag:"typography-tag"},Ms={display:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",small:"p",tiny:"p","x-small":"p","column-header":"span",tag:"span"},Rs={primary:"text-[var(--color-gray-1000)]",secondary:"text-[var(--color-gray-600)]",inherit:""},Fs={thin:"font-thin",extralight:"font-extralight",light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"},Is={sans:"!font-body",mono:"!font-mono"},Ke=({variant:r,as:t,children:o,className:a,color:n="primary",weight:s,fontFamily:l})=>{const i=t||Ms[r],d=As[r],x=Rs[n],p=s?Fs[s]:"",f=l?Is[l]:"";return e.jsx(i,{className:y(d,x,p,f,a),children:o})},Bs={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},Br=({size:r=256,colorVariant:t="dark",...o})=>{const a=Bs[t];return e.jsxs("svg",{...o,width:r,height:r,viewBox:"0 0 256 256",fill:"none",children:[e.jsx("path",{d:"M35.2761 209.996L27.7832 218.211H11V227H79.5141V218.211H53.3838L48.1047 212.422L62.2011 175.529H138.132L151.434 212.289L146.041 218.211H120.914V227H206.306V218.211H192.664L187.404 212.441L115.029 30H79.7412L81.3306 34.872L93.5916 64.7535M46.0234 218.211H45.9098L46.9127 215.575L46.0234 218.211ZM126.496 162.633H73.9891L69.4858 157.703L97.7164 88.5402H103.223L113.383 113.951L126.269 146.182L130.923 157.818L126.515 162.652L126.496 162.633ZM131.548 159.06H131.567L133.024 162.652L131.548 159.06Z",fill:a}),e.jsx("path",{d:"M233.477 227C239.841 227 245 221.791 245 215.365C245 208.938 239.841 203.729 233.477 203.729C227.113 203.729 221.954 208.938 221.954 215.365C221.954 221.791 227.113 227 233.477 227Z",fill:a})]})};Br.displayName="LogoA";const Ds={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},uo=({size:r=163,colorVariant:t="dark",...o})=>{const a=Ds[t],n=603/163,s=typeof r=="number"?r:parseFloat(r),l=s*n;return e.jsxs("svg",{...o,width:l,height:s,viewBox:"0 0 603 163",fill:"none",children:[e.jsxs("g",{clipPath:"url(#clip0_full_logo)",children:[e.jsx("path",{d:"M303.686 142.03C284.282 142.03 267.966 127.819 267.966 105.332C267.966 84.0925 278.722 69.1137 300.637 67.9807L314.384 93.9439H326.694V59.4543H301.96C284.723 59.4543 270.554 65.5226 260.642 75.2972C250.537 85.2639 244.862 99.0905 244.862 114.3C244.862 142.702 267.506 163.019 293.025 163.019C314.615 163.019 330.107 148.156 332.733 127.416C326.406 136.365 315.727 142.049 303.724 142.049L303.686 142.03Z",fill:a}),e.jsx("path",{d:"M481.48 48.6811C490.204 48.6811 497.183 41.4797 497.183 32.9534C497.183 24.427 490.204 17.2256 481.48 17.2256C472.756 17.2256 465.547 24.2157 465.547 32.9534C465.547 41.691 472.526 48.6811 481.48 48.6811Z",fill:a}),e.jsx("path",{d:"M570.942 141.588C550.868 141.588 534.724 126.072 534.724 102.912V101.376H603C603 78.8691 587.949 59.4351 562.87 59.4351C536.047 59.4351 513.787 84.7838 513.787 112.533C513.787 140.282 534.513 163 561.336 163C581.622 163 598.859 150.114 602.348 126.955C594.487 137.229 583.367 141.588 570.942 141.588ZM558.94 69.9202C570.501 69.9202 578.132 79.0996 578.132 92.6381H535.606C538.654 78.005 548.049 69.9202 558.94 69.9202Z",fill:a}),e.jsx("path",{d:"M198.233 79.0995V57.2459L155.476 73.204L172.502 86.5313V148.866L168.073 153.667H146.81L84.8802 0H55.8901L57.7691 4.53204L67.8351 28.8438L19.9402 146.984L13.7856 153.667H0V160.811H56.2736V153.667H34.8187L30.4855 148.962L42.0662 118.947H104.437L115.366 148.847L110.937 153.667H90.3062V160.811H221.26V153.667H198.233V89.1622L213.725 78.0242L230.961 91.2362H240.088V59.4543H230.079C217.118 59.4543 204.847 64.6585 198.233 79.1188V79.0995ZM28.7791 153.667H28.6641L29.4885 151.516L28.7599 153.667H28.7791ZM51.7487 108.462L48.0483 104.448L71.2288 48.1818H75.7537L84.094 68.8448L94.6777 95.0577L98.4932 104.525L94.8694 108.462H51.7487ZM99.0109 105.543H99.03L100.219 108.462L99.0109 105.543Z",fill:a}),e.jsx("path",{d:"M495.668 153.667V57.2459L452.911 73.204L469.918 86.5313V148.866L465.489 153.667H443.344L438.934 148.885V91.5627C438.934 72.7816 429.328 59.4543 411.229 59.4543H407.394C392.995 59.4543 382.737 68.1919 374.895 76.2766H374.799V1.92035L328.764 16.7839L349.05 29.6695V148.866L344.64 153.667H333.404V160.811H390.253V153.667H379.229L374.819 148.866V84.3421C379.401 80.6358 385.728 76.6991 392.707 76.6991C406.014 76.6991 413.223 84.5726 413.223 98.5528V148.866L408.794 153.667H399.706V160.811H514.745V153.667H495.687H495.668Z",fill:a})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_full_logo",children:e.jsx("rect",{width:"603",height:"163",fill:"white"})})})]})};uo.displayName="FullLogo";const Es={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},Dr=({size:r=329,colorVariant:t="dark",animated:o=!1,animationDuration:a=2,animationDelay:n=0,...s})=>{const l=Es[t],i=j.useId(),d=2800;return o?e.jsxs("svg",{...s,width:r,height:r,viewBox:"0 0 329 329",fill:"none",children:[e.jsx("style",{children:`
35
+ @keyframes drawSignature-${i.replace(/:/g,"")} {
36
36
  0% {
37
37
  stroke-dashoffset: var(--path-length);
38
38
  fill-opacity: 0;
@@ -46,7 +46,7 @@ macOSWindowChrome, macOSToolbar, macOSSidebar (Desktop only — NSVisualEffectVi
46
46
  fill-opacity: 1;
47
47
  }
48
48
  }
49
- @keyframes drawDot-${c.replace(/:/g,"")} {
49
+ @keyframes drawDot-${i.replace(/:/g,"")} {
50
50
  0% {
51
51
  opacity: 0;
52
52
  transform: scale(0);
@@ -56,10 +56,10 @@ macOSWindowChrome, macOSToolbar, macOSSidebar (Desktop only — NSVisualEffectVi
56
56
  transform: scale(1);
57
57
  }
58
58
  }
59
- `}),e.jsx("path",{d:"M239.997 257.024C239.13 256.261 238.348 255.328 237.671 254.268C236.994 253.208 236.55 252.126 236.359 251.066C236.169 250.006 236.359 249.179 236.93 248.585C239.659 245.277 243.233 242.118 247.696 239.107C252.138 236.095 256.601 234.59 261.063 234.59C263.2 234.59 264.595 235.375 265.293 236.922C265.97 238.47 266.309 240.018 266.309 241.587C266.309 244.302 265.568 246.443 264.13 247.991C262.692 249.539 260.831 250.854 258.61 251.914C256.389 252.996 254.062 253.907 251.63 254.692C249.198 255.455 247.04 256.24 245.095 257.024L242.768 258.191C241.795 258.191 240.886 257.809 239.997 257.024Z",fill:l,style:{transformOrigin:"252px 247px",animation:`drawDot-${c.replace(/:/g,"")} 0.3s ease-out ${n+a*.9}s forwards`,opacity:0}}),e.jsx("path",{d:"M308.102 176.765C306.453 175.663 304.126 174.963 301.123 174.687C298.119 174.411 294.46 174.433 290.167 174.772C285.873 175.111 281.008 175.578 275.594 176.193C273.648 176.405 271.829 176.617 270.179 176.808L245.793 180.942C242.091 181.536 239.003 182.003 236.486 182.406C233.969 182.808 231.558 182.702 229.232 182.13L193.572 185.777C193.952 184.293 194.587 182.893 195.517 181.6C196.469 180.243 197.548 179.161 198.711 178.398C205.099 169.068 211.254 160.056 217.176 151.299C223.077 142.562 228.639 134.102 233.885 125.959L234.752 121.888L253.936 88.6814C253.936 87.3243 254.422 86.2641 255.395 85.4795C256.368 84.7162 257.045 83.4439 257.425 81.7051L260.344 73.2445C260.915 71.6966 261.465 70.0426 261.93 68.2826C262.417 66.5439 262.671 64.5082 262.671 62.1757C262.671 60.8186 262.459 59.1223 262.1 57.0866C261.698 55.051 261.084 53.1426 260.217 51.4038C259.35 49.6438 258.271 48.1595 257.024 46.8872C255.776 45.615 254.168 45 252.243 45C250.89 45 249.388 45.3817 247.738 46.1663C246.089 46.9509 244.439 47.9263 242.789 49.0925C241.139 50.2588 239.595 51.4674 238.136 52.7397C236.677 54.012 235.471 55.0298 234.498 55.7932L207.468 81.7263L206.008 82.5957L192.641 96.2939C192.429 96.2939 192.112 96.3999 191.626 96.5907C191.139 96.7816 190.801 96.8876 190.61 96.8876L122.04 164.763C120.094 164.763 117.493 163.894 114.193 162.134C110.915 160.374 107.023 159.505 102.56 159.505C101.587 159.505 100.53 159.802 99.3666 160.374C98.2033 160.947 97.3361 161.243 96.7439 161.243C95.9613 161.243 95.2422 160.798 94.5654 159.929C93.8885 159.059 92.7887 158.635 91.2236 158.635C86.5704 159.611 83.567 160.183 82.2134 160.374C80.8597 160.586 79.9714 160.671 79.5907 160.671C77.6448 159.886 76.397 159.696 75.8047 160.098C75.2125 160.501 74.7472 160.777 74.3453 160.968C73.7743 160.586 72.3149 160.247 69.9883 159.95C67.6617 159.674 65.5255 159.505 63.6008 159.505C60.682 159.505 56.6634 159.611 51.5449 159.802C46.4053 159.992 41.3715 160.629 36.4434 161.689C31.5153 162.749 27.2005 164.488 23.5203 166.926C19.8401 169.365 18 172.8 18 177.274C18 181.155 18.9518 184.462 20.8976 187.177C22.8435 189.912 25.3181 192.223 28.3215 194.174C31.3249 196.125 34.6667 197.524 38.3469 198.394C42.0271 199.263 45.6016 199.709 49.0915 199.709C51.2277 200.281 53.1524 200.09 54.9079 199.136C54.6964 199.136 55.7328 199.369 57.9536 199.857C60.1744 200.345 62.9451 200.79 66.2235 201.172C69.523 201.553 72.9494 201.999 76.545 202.465C80.1195 202.953 83.0806 203.207 85.4071 203.207L59.5399 232.915L54.0196 239.319C52.8563 240.294 52.4333 241.948 52.7294 244.281C53.0043 246.613 53.6389 247.779 54.6118 247.779C57.1287 247.779 60.3225 246.083 64.193 242.69C68.0636 239.297 72.1457 235.163 76.397 230.307C80.6694 225.451 84.9207 220.51 89.1931 215.464C93.4444 210.417 97.2303 206.24 100.53 202.932C100.911 202.932 101.312 202.974 101.693 203.08C102.074 203.165 102.455 203.228 102.856 203.228C115.822 203.228 127.878 202.847 139.045 202.062C150.192 201.299 160.407 200.896 169.692 200.896C166.985 205.37 164.066 209.929 160.978 214.594C157.89 219.259 154.591 224.115 151.101 229.162L127.285 264.701C125.932 266.842 124.726 268.984 123.648 271.104C122.569 273.225 122.061 275.366 122.061 277.508C122.061 279.056 122.59 280.371 123.648 281.431C124.705 282.491 125.826 283.042 126.989 283.042C129.316 283.042 131.346 282.364 133.081 281.007C134.815 279.65 136.613 278.038 138.453 276.193C140.293 274.349 142.197 272.44 144.121 270.511C146.046 268.56 148.373 267.012 151.08 265.846L182.467 237.007C182.658 236.414 183.102 235.777 183.758 235.12C184.434 234.442 185.259 233.615 186.232 232.639L197.273 223.33C200.192 220.807 202.941 217.881 205.543 214.573C208.166 211.286 209.477 209.145 209.477 208.169C209.477 206.027 208.229 204.967 205.712 204.967C205.331 204.967 204.697 205.116 203.83 205.413C202.962 205.709 201.947 206.346 200.784 207.3L156.896 248.076L146.152 255.646L149.049 251.575C149.832 250.218 151.186 248.034 153.132 245.023C155.056 242.012 157.192 238.725 159.519 235.12C161.846 231.537 164.32 227.805 166.943 223.903C169.566 220.022 172.019 216.418 174.367 213.11C176.693 209.823 178.724 207.045 180.458 204.819C182.193 202.592 183.44 201.278 184.223 200.875C184.604 200.684 185.386 200.493 186.55 200.302C186.803 200.281 187.121 200.281 187.374 200.239L196.871 199.433C201.672 199.009 206.304 198.161 210.746 196.931C215.166 195.68 219.798 194.853 224.6 194.407C226.122 194.301 228.893 193.983 232.891 193.474C236.909 192.965 241.266 192.393 245.941 191.757C250.615 191.142 254.993 190.527 259.075 189.912C263.157 189.297 265.991 188.852 267.599 188.555C269.206 188.258 270.602 188.025 271.787 187.834C272.971 187.664 274.431 187.516 276.165 187.41C276.313 187.41 276.503 187.177 276.651 187.134L281.579 186.583C284.435 186.265 286.888 186.095 288.961 186.095C291.013 186.095 292.514 186.18 293.445 186.392C292.726 188.152 292.112 189.361 291.563 190.039C291.034 190.718 290.59 191.142 290.23 191.333C289.871 191.524 289.659 191.672 289.596 191.757C289.532 191.842 289.532 192.181 289.596 192.796C289.807 194.768 291.647 195.531 295.116 195.15C295.708 195.086 296.491 194.81 297.421 194.323C298.352 193.835 299.325 193.305 300.319 192.732C301.313 192.16 302.286 191.545 303.195 190.909C304.126 190.272 304.782 189.7 305.184 189.191C306.072 188.937 307.299 188.046 308.885 186.477C310.45 184.929 311.169 183.402 311 181.875C310.746 179.628 309.794 177.931 308.145 176.829L308.102 176.765ZM96.7227 190.039C76.5662 189.276 60.9781 188.088 49.9375 186.54C38.8968 184.993 31.5364 181.981 27.8562 177.507C28.6388 176.15 31.3884 175.026 36.1473 174.157C40.885 173.288 46.0246 172.567 51.5449 171.973C57.0653 171.379 62.1414 170.955 66.7946 170.679C71.4477 170.383 74.0704 170.234 74.6415 170.234H79.2946C88.6009 170.807 96.0882 171.4 101.82 171.973C107.531 172.545 111.549 173.033 113.876 173.436L96.7227 190.039ZM147.146 188.576C136.592 188.958 125.488 189.255 113.876 189.446C115.23 187.495 117.366 184.971 120.263 181.875C123.182 178.78 126.376 175.472 129.845 171.973C133.335 168.474 137.015 164.891 140.885 161.201C144.756 157.511 148.436 154.013 151.926 150.705L172.273 129.14C172.654 127.973 173.33 127.401 174.303 127.401L184.181 118.092C185.154 117.71 186.55 116.629 188.411 114.89C190.251 113.151 192.176 111.201 194.206 109.08C196.237 106.96 198.182 104.818 200.023 102.676C201.863 100.535 203.259 98.902 204.231 97.7146L211.211 93.0496C213.919 90.3354 216.541 87.706 219.058 85.1827C221.575 82.6593 224.092 80.3268 226.609 78.1852L231.262 73.5202C233.99 70.9968 236.74 68.8128 239.553 66.968C242.345 65.1232 246.279 62.727 251.313 59.822V63.0239C251.313 66.3318 250.551 70.1062 248.986 74.3896C247.421 78.6729 245.877 82.3625 244.333 85.4583L184.181 180.137C182.446 181.494 180.881 183.445 179.528 185.968C168.487 187.325 157.679 188.194 147.125 188.597L147.146 188.576Z",stroke:l,strokeWidth:"2",fill:l,style:{"--path-length":d,strokeDasharray:d,strokeDashoffset:d,fillOpacity:0,animation:`drawSignature-${c.replace(/:/g,"")} ${a}s ease-out ${n}s forwards`}})]}):e.jsxs("svg",{...s,width:r,height:r,viewBox:"0 0 329 329",fill:"none",children:[e.jsx("path",{d:"M239.997 257.024C239.13 256.261 238.348 255.328 237.671 254.268C236.994 253.208 236.55 252.126 236.359 251.066C236.169 250.006 236.359 249.179 236.93 248.585C239.659 245.277 243.233 242.118 247.696 239.107C252.138 236.095 256.601 234.59 261.063 234.59C263.2 234.59 264.595 235.375 265.293 236.922C265.97 238.47 266.309 240.018 266.309 241.587C266.309 244.302 265.568 246.443 264.13 247.991C262.692 249.539 260.831 250.854 258.61 251.914C256.389 252.996 254.062 253.907 251.63 254.692C249.198 255.455 247.04 256.24 245.095 257.024L242.768 258.191C241.795 258.191 240.886 257.809 239.997 257.024Z",fill:l}),e.jsx("path",{d:"M308.102 176.765C306.453 175.663 304.126 174.963 301.123 174.687C298.119 174.411 294.46 174.433 290.167 174.772C285.873 175.111 281.008 175.578 275.594 176.193C273.648 176.405 271.829 176.617 270.179 176.808L245.793 180.942C242.091 181.536 239.003 182.003 236.486 182.406C233.969 182.808 231.558 182.702 229.232 182.13L193.572 185.777C193.952 184.293 194.587 182.893 195.517 181.6C196.469 180.243 197.548 179.161 198.711 178.398C205.099 169.068 211.254 160.056 217.176 151.299C223.077 142.562 228.639 134.102 233.885 125.959L234.752 121.888L253.936 88.6814C253.936 87.3243 254.422 86.2641 255.395 85.4795C256.368 84.7162 257.045 83.4439 257.425 81.7051L260.344 73.2445C260.915 71.6966 261.465 70.0426 261.93 68.2826C262.417 66.5439 262.671 64.5082 262.671 62.1757C262.671 60.8186 262.459 59.1223 262.1 57.0866C261.698 55.051 261.084 53.1426 260.217 51.4038C259.35 49.6438 258.271 48.1595 257.024 46.8872C255.776 45.615 254.168 45 252.243 45C250.89 45 249.388 45.3817 247.738 46.1663C246.089 46.9509 244.439 47.9263 242.789 49.0925C241.139 50.2588 239.595 51.4674 238.136 52.7397C236.677 54.012 235.471 55.0298 234.498 55.7932L207.468 81.7263L206.008 82.5957L192.641 96.2939C192.429 96.2939 192.112 96.3999 191.626 96.5907C191.139 96.7816 190.801 96.8876 190.61 96.8876L122.04 164.763C120.094 164.763 117.493 163.894 114.193 162.134C110.915 160.374 107.023 159.505 102.56 159.505C101.587 159.505 100.53 159.802 99.3666 160.374C98.2033 160.947 97.3361 161.243 96.7439 161.243C95.9613 161.243 95.2422 160.798 94.5654 159.929C93.8885 159.059 92.7887 158.635 91.2236 158.635C86.5704 159.611 83.567 160.183 82.2134 160.374C80.8597 160.586 79.9714 160.671 79.5907 160.671C77.6448 159.886 76.397 159.696 75.8047 160.098C75.2125 160.501 74.7472 160.777 74.3453 160.968C73.7743 160.586 72.3149 160.247 69.9883 159.95C67.6617 159.674 65.5255 159.505 63.6008 159.505C60.682 159.505 56.6634 159.611 51.5449 159.802C46.4053 159.992 41.3715 160.629 36.4434 161.689C31.5153 162.749 27.2005 164.488 23.5203 166.926C19.8401 169.365 18 172.8 18 177.274C18 181.155 18.9518 184.462 20.8976 187.177C22.8435 189.912 25.3181 192.223 28.3215 194.174C31.3249 196.125 34.6667 197.524 38.3469 198.394C42.0271 199.263 45.6016 199.709 49.0915 199.709C51.2277 200.281 53.1524 200.09 54.9079 199.136C54.6964 199.136 55.7328 199.369 57.9536 199.857C60.1744 200.345 62.9451 200.79 66.2235 201.172C69.523 201.553 72.9494 201.999 76.545 202.465C80.1195 202.953 83.0806 203.207 85.4071 203.207L59.5399 232.915L54.0196 239.319C52.8563 240.294 52.4333 241.948 52.7294 244.281C53.0043 246.613 53.6389 247.779 54.6118 247.779C57.1287 247.779 60.3225 246.083 64.193 242.69C68.0636 239.297 72.1457 235.163 76.397 230.307C80.6694 225.451 84.9207 220.51 89.1931 215.464C93.4444 210.417 97.2303 206.24 100.53 202.932C100.911 202.932 101.312 202.974 101.693 203.08C102.074 203.165 102.455 203.228 102.856 203.228C115.822 203.228 127.878 202.847 139.045 202.062C150.192 201.299 160.407 200.896 169.692 200.896C166.985 205.37 164.066 209.929 160.978 214.594C157.89 219.259 154.591 224.115 151.101 229.162L127.285 264.701C125.932 266.842 124.726 268.984 123.648 271.104C122.569 273.225 122.061 275.366 122.061 277.508C122.061 279.056 122.59 280.371 123.648 281.431C124.705 282.491 125.826 283.042 126.989 283.042C129.316 283.042 131.346 282.364 133.081 281.007C134.815 279.65 136.613 278.038 138.453 276.193C140.293 274.349 142.197 272.44 144.121 270.511C146.046 268.56 148.373 267.012 151.08 265.846L182.467 237.007C182.658 236.414 183.102 235.777 183.758 235.12C184.434 234.442 185.259 233.615 186.232 232.639L197.273 223.33C200.192 220.807 202.941 217.881 205.543 214.573C208.166 211.286 209.477 209.145 209.477 208.169C209.477 206.027 208.229 204.967 205.712 204.967C205.331 204.967 204.697 205.116 203.83 205.413C202.962 205.709 201.947 206.346 200.784 207.3L156.896 248.076L146.152 255.646L149.049 251.575C149.832 250.218 151.186 248.034 153.132 245.023C155.056 242.012 157.192 238.725 159.519 235.12C161.846 231.537 164.32 227.805 166.943 223.903C169.566 220.022 172.019 216.418 174.367 213.11C176.693 209.823 178.724 207.045 180.458 204.819C182.193 202.592 183.44 201.278 184.223 200.875C184.604 200.684 185.386 200.493 186.55 200.302C186.803 200.281 187.121 200.281 187.374 200.239L196.871 199.433C201.672 199.009 206.304 198.161 210.746 196.931C215.166 195.68 219.798 194.853 224.6 194.407C226.122 194.301 228.893 193.983 232.891 193.474C236.909 192.965 241.266 192.393 245.941 191.757C250.615 191.142 254.993 190.527 259.075 189.912C263.157 189.297 265.991 188.852 267.599 188.555C269.206 188.258 270.602 188.025 271.787 187.834C272.971 187.664 274.431 187.516 276.165 187.41C276.313 187.41 276.503 187.177 276.651 187.134L281.579 186.583C284.435 186.265 286.888 186.095 288.961 186.095C291.013 186.095 292.514 186.18 293.445 186.392C292.726 188.152 292.112 189.361 291.563 190.039C291.034 190.718 290.59 191.142 290.23 191.333C289.871 191.524 289.659 191.672 289.596 191.757C289.532 191.842 289.532 192.181 289.596 192.796C289.807 194.768 291.647 195.531 295.116 195.15C295.708 195.086 296.491 194.81 297.421 194.323C298.352 193.835 299.325 193.305 300.319 192.732C301.313 192.16 302.286 191.545 303.195 190.909C304.126 190.272 304.782 189.7 305.184 189.191C306.072 188.937 307.299 188.046 308.885 186.477C310.45 184.929 311.169 183.402 311 181.875C310.746 179.628 309.794 177.931 308.145 176.829L308.102 176.765ZM96.7227 190.039C76.5662 189.276 60.9781 188.088 49.9375 186.54C38.8968 184.993 31.5364 181.981 27.8562 177.507C28.6388 176.15 31.3884 175.026 36.1473 174.157C40.885 173.288 46.0246 172.567 51.5449 171.973C57.0653 171.379 62.1414 170.955 66.7946 170.679C71.4477 170.383 74.0704 170.234 74.6415 170.234H79.2946C88.6009 170.807 96.0882 171.4 101.82 171.973C107.531 172.545 111.549 173.033 113.876 173.436L96.7227 190.039ZM147.146 188.576C136.592 188.958 125.488 189.255 113.876 189.446C115.23 187.495 117.366 184.971 120.263 181.875C123.182 178.78 126.376 175.472 129.845 171.973C133.335 168.474 137.015 164.891 140.885 161.201C144.756 157.511 148.436 154.013 151.926 150.705L172.273 129.14C172.654 127.973 173.33 127.401 174.303 127.401L184.181 118.092C185.154 117.71 186.55 116.629 188.411 114.89C190.251 113.151 192.176 111.201 194.206 109.08C196.237 106.96 198.182 104.818 200.023 102.676C201.863 100.535 203.259 98.902 204.231 97.7146L211.211 93.0496C213.919 90.3354 216.541 87.706 219.058 85.1827C221.575 82.6593 224.092 80.3268 226.609 78.1852L231.262 73.5202C233.99 70.9968 236.74 68.8128 239.553 66.968C242.345 65.1232 246.279 62.727 251.313 59.822V63.0239C251.313 66.3318 250.551 70.1062 248.986 74.3896C247.421 78.6729 245.877 82.3625 244.333 85.4583L184.181 180.137C182.446 181.494 180.881 183.445 179.528 185.968C168.487 187.325 157.679 188.194 147.125 188.597L147.146 188.576Z",fill:l})]})};Fr.displayName="SignatureA";const ks=b("group relative flex items-center rounded-[8px] border box-border cursor-pointer w-full overflow-hidden isolate transition-[border-color] duration-300",{variants:{status:{normal:"bg-[var(--color-white)] border-[var(--color-gray-200)]",hover:"border-[var(--color-blue-800)]",generating:"bg-[var(--color-white)] border-[var(--color-gray-200)] cursor-default",error:"border-[var(--color-red-1000)]"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:""}},defaultVariants:{status:"normal",disabled:!1}}),Ns=b("absolute inset-0 -z-10 transition-opacity duration-300",{variants:{status:{normal:"opacity-0 group-hover:opacity-100",hover:"opacity-100",generating:"opacity-0",error:"opacity-100"}},defaultVariants:{status:"normal"}}),zs=b("absolute inset-0",{variants:{status:{normal:"bg-[var(--color-blue-200)]",hover:"bg-[var(--color-blue-200)]",generating:"",error:"bg-[var(--color-red-200)]"}},defaultVariants:{status:"normal"}}),hr=b("flex gap-2 h-[75px] shrink-0",{variants:{status:{normal:"p-2 items-end",hover:"p-2 items-end",generating:"px-4 py-2 items-center",error:"px-4 py-2 items-center"}},defaultVariants:{status:"normal"}}),Ts=b("relative -bottom-2 w-[60px] h-[66px] bg-[var(--color-gray-50)] border border-[var(--color-gray-200)] border-b-0 rounded-t-[4px] overflow-hidden transition-transform duration-300 group-hover:opacity-90 group-hover:shadow-sm"),$s=b("w-full h-full bg-[var(--color-blue-200)]/30 p-2 space-y-2 flex flex-col items-start justify-start gap-1"),Ls=b("h-1 bg-[var(--color-gray-200)] rounded-full origin-left"),Ms=b("flex flex-col gap-[4px] grow items-start p-4 min-w-0"),As=b("font-medium text-[14px] leading-[20px] text-[var(--color-blue-1000)]"),Rs=b("text-[12px] leading-[16px] text-[var(--color-gray-600)]"),Fs=b("px-4 overflow-hidden flex items-center w-[56px] relative"),Bs=b("absolute w-6 h-6 text-[var(--color-blue-800)]"),Ds=b("w-6 h-6 text-[var(--color-gray-200)]"),Is=b("w-4 h-4 shrink-0 transition-all duration-300",{variants:{status:{normal:"text-[var(--color-blue-1000)] group-hover:text-[var(--color-blue-800)] group-hover:translate-x-0.5",hover:"text-[var(--color-blue-800)] translate-x-0.5",generating:"text-[var(--color-gray-600)] animate-spin",error:"text-[var(--color-blue-1000)] group-hover:rotate-[-20deg]"}},defaultVariants:{status:"normal"}}),Es=b("w-4 h-4 shrink-0 text-[var(--color-red-1000)] transition-transform duration-300 group-hover:scale-110"),Ws={rest:{scaleX:1},hover:{scaleX:[0,1]}},Ps={rest:{x:0},hover:{x:4}},Vs={rest:{x:-20,opacity:0},hover:{x:0,opacity:1}},Hs={rest:{x:0,opacity:1},hover:{x:20,opacity:0}},_s=[100,66,75,50],io=j.forwardRef(({title:r,subtitle:t,status:o,onClick:a,onActionClick:n,className:s,disabled:l=!1},c)=>{const[d,x]=j.useState(!1),p=o||(d&&!l?"hover":"normal"),f=j.useMemo(()=>p==="generating"||p==="error"?"rest":d?"hover":"rest",[p,d]),u=j.useCallback(()=>{!o&&!l&&x(!0)},[o,l]),g=j.useCallback(()=>{!o&&!l&&x(!1)},[o,l]),m=j.useCallback(()=>{!l&&a&&a()},[l,a]),h=j.useCallback(L=>{L.stopPropagation(),!l&&n&&n()},[l,n]),v=j.useCallback(L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),m())},[m]),w=()=>p==="generating"?e.jsx("div",{className:hr({status:"generating"}),children:e.jsx(i.Loader,{size:16,className:"text-[var(--color-gray-600)] animate-spin"})}):p==="error"?e.jsx("div",{className:hr({status:"error"}),children:e.jsx(i.TriangleAlert,{size:16,className:Es()})}):e.jsx("div",{className:hr({status:p}),children:e.jsx("div",{className:Ts(),children:e.jsx(q.motion.div,{className:$s(),variants:{rest:{},hover:{transition:{staggerChildren:.1}}},children:_s.map((L,T)=>e.jsx(q.motion.div,{className:Ls(),style:{width:`${L}%`},variants:Ws,transition:{duration:.4,ease:"easeInOut"}},T))})})}),N=()=>p==="generating"?null:p==="error"?e.jsx("button",{type:"button",onClick:h,className:"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] focus-visible:ring-offset-2 rounded-sm","aria-label":"Retry",children:e.jsx(i.RotateCcw,{size:16,className:Is({status:"error"})})}):e.jsxs(e.Fragment,{children:[e.jsx(q.motion.div,{className:Bs(),variants:Vs,transition:{duration:.3,ease:"backOut"},children:e.jsx(i.ArrowUp,{size:24,className:"rotate-90"})}),e.jsx(q.motion.div,{className:Ds(),variants:Hs,transition:{duration:.3},children:e.jsx(i.ArrowUp,{size:24,className:"rotate-90"})})]});return e.jsxs(q.motion.div,{ref:c,role:"button",tabIndex:l?-1:0,className:y(ks({status:p,disabled:l}),s),onClick:m,onKeyDown:v,onMouseEnter:u,onMouseLeave:g,"aria-disabled":l,"aria-label":`${r} - ${t}${p==="error"?" - Error occurred":""}${p==="generating"?" - Generating":""}`,initial:"rest",whileHover:"hover",animate:f,children:[e.jsx("div",{className:Ns({status:p}),children:e.jsx("div",{className:zs({status:p})})}),w(),e.jsxs(q.motion.div,{className:Ms(),variants:Ps,children:[e.jsx("p",{className:As(),title:r,children:r}),e.jsx("p",{className:Rs(),title:t,children:t})]}),e.jsx("div",{className:Fs(),children:N()})]})});io.displayName="ArtifactCard";const Os=b("flex items-center flex-wrap gap-2",{variants:{size:{small:"text-[0.875rem] leading-[1.25rem]",medium:"text-[1rem] leading-[1.5rem]"}},defaultVariants:{size:"medium"}}),er=b("inline-flex items-center gap-2 transition-colors duration-200 rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2",{variants:{state:{default:"text-[var(--color-gray-600)] hover:text-[var(--color-blue-1000)] cursor-pointer",active:"text-[var(--color-blue-1000)] font-medium cursor-default",inactive:"text-[var(--color-gray-600)] cursor-default"}},defaultVariants:{state:"default"}}),Gs=b("text-[var(--color-gray-600)] flex items-center justify-center"),co=({items:r,separator:t=e.jsx(i.ChevronRight,{size:16}),className:o,size:a="medium"})=>e.jsx("nav",{"aria-label":"Breadcrumb",className:y(Os({size:a}),o),children:e.jsx("ol",{className:"flex items-center flex-wrap gap-2",children:r.map((n,s)=>{const l=s===r.length-1;let c;return l?c=e.jsxs("span",{className:er({state:"active"}),"aria-current":"page",children:[n.icon,n.label]}):n.href?c=e.jsxs("a",{href:n.href,className:er({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):n.onClick?c=e.jsxs("button",{type:"button",className:er({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):c=e.jsxs("span",{className:er({state:"inactive"}),children:[n.icon,n.label]}),e.jsxs("li",{className:"flex items-center gap-2",children:[c,!l&&e.jsx("span",{className:Gs(),"aria-hidden":"true",children:t})]},`${n.label}-${s}`)})})}),Us={sm:"h-[var(--archie-btn-sm)] px-3 text-xs gap-1.5 rounded-[var(--archie-radius-md)]",default:"h-[var(--archie-btn-md)] px-4 text-sm gap-2 rounded-[var(--archie-radius-lg)]",lg:"h-[var(--archie-btn-lg)] px-6 text-base gap-2.5 rounded-[var(--archie-radius-lg)]",icon:"h-[var(--archie-btn-md)] w-[var(--archie-btn-md)] rounded-[var(--archie-radius-lg)]"},De=j.forwardRef(({variant:r="default",size:t="default",loading:o=!1,disabled:a,leftIcon:n,rightIcon:s,startIcon:l,endIcon:c,children:d,className:x,style:p,onMouseEnter:f,onMouseLeave:u,...g},m)=>{const h=Kt(),v=a||o,w=n??l,N=s??c,L={default:{background:h.primary,color:h.white},secondary:{background:h.white,color:h.primaryDeep,border:`1px solid ${h.n200}`},outline:{background:"transparent",color:h.primaryDeep,border:`1px solid ${h.n200}`},ghost:{background:"transparent",color:h.n800},destructive:{background:h.error,color:h.white},link:{background:"transparent",color:h.primary,padding:0,height:"auto"}},T=z=>{r==="link"?z.currentTarget.style.textDecoration="underline":z.currentTarget.style.opacity="0.85",f==null||f(z)},C=z=>{r==="link"?z.currentTarget.style.textDecoration="none":z.currentTarget.style.opacity="1",u==null||u(z)};return e.jsxs("button",{ref:m,className:y("inline-flex items-center justify-center font-light transition-all duration-[var(--archie-anim-duration)] ease-[var(--archie-anim-easing)] cursor-pointer",Us[t],v&&"opacity-50 cursor-not-allowed pointer-events-none",x),style:{...L[r],fontFamily:h.font,...r==="link"?{textDecoration:"none"}:{},...p},disabled:v,onMouseEnter:T,onMouseLeave:C,...g,children:[o?e.jsx("svg",{className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:e.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}):w?e.jsx("span",{className:"shrink-0",children:w}):null,d,!o&&N&&e.jsx("span",{className:"shrink-0",children:N})]})});De.displayName="Button";const Ys=b("flex items-center justify-center shrink-0 rounded-[2px]",{variants:{size:{sm:"p-1",md:"p-1.5",lg:"p-2 rounded-[4px]"}},defaultVariants:{size:"sm"}}),po={txt:{background:"#f5f6fa",iconColor:"#8c92af",icon:i.FileText},docx:{background:"#E0F2FF",iconColor:"#0369A1",icon:i.FileText},doc:{background:"#E0F2FF",iconColor:"#0369A1",icon:i.FileText},pdf:{background:"#ffecec",iconColor:"#fb6060",icon:i.Pdf},csv:{background:"#e2f7e5",iconColor:"#71d481",icon:i.Grid},xlsx:{background:"#e2f7e5",iconColor:"#71d481",icon:i.Grid},xls:{background:"#e2f7e5",iconColor:"#71d481",icon:i.Grid},json:{background:"#fff2e2",iconColor:"#e15713",icon:i.Code},js:{background:"#fff2e2",iconColor:"#ff6f00",icon:i.Code},ts:{background:"#E0F2FF",iconColor:"#0369A1",icon:i.Code},md:{background:"#f5f6fa",iconColor:"#8c92af",icon:i.Code},pptx:{background:"#FFE5D2",iconColor:"#C2410C",icon:i.WhiteboardView},ppt:{background:"#FFE5D2",iconColor:"#C2410C",icon:i.WhiteboardView},zip:{background:"#f5f6fa",iconColor:"#8c92af",icon:i.Archive},rar:{background:"#f5f6fa",iconColor:"#8c92af",icon:i.Archive},"7z":{background:"#f5f6fa",iconColor:"#8c92af",icon:i.Archive},mp4:{background:"#FEE2E5",iconColor:"#BE123C",icon:i.Video},mov:{background:"#FEE2E5",iconColor:"#BE123C",icon:i.Video},avi:{background:"#FEE2E5",iconColor:"#BE123C",icon:i.Video},mp3:{background:"#E4E4F8",iconColor:"#6D28D9",icon:i.Volume2},wav:{background:"#E4E4F8",iconColor:"#6D28D9",icon:i.Volume2}},Ks={background:"#f5f6fa",iconColor:"#8c92af",icon:i.FileText},xo=r=>{if(!r)return"";const t=r.lastIndexOf(".");return t<=0?"":r.slice(t+1).toLowerCase()},fo=r=>{const t=xo(r);return po[t]||Ks},Zs={sm:12,md:16,lg:24},Br=j.forwardRef(({filename:r,size:t="sm",className:o},a)=>{const n=fo(r),s=n.icon,l=Zs[t];return e.jsx("div",{ref:a,className:y(Ys({size:t}),o),style:{backgroundColor:n.background,color:n.iconColor},children:e.jsx(s,{size:l,color:n.iconColor,className:"shrink-0"})})});Br.displayName="FileIcon";const Xs=b("relative inline-flex items-center px-1 py-1 gap-1 rounded-[5px] border overflow-hidden transition-colors",{variants:{status:{none:"",uploading:"border-[var(--color-gray-600)] bg-[var(--color-gray-50)]",processing:"border-[var(--color-gray-600)] bg-[var(--color-gray-50)]",done:"border-[var(--color-gray-200)] bg-[var(--color-white)]",error:"border-[var(--color-gray-200)] bg-[var(--color-white)]"}},defaultVariants:{status:"done"}}),Jr=b("truncate text-[0.75rem] leading-[1rem] font-normal",{variants:{status:{none:"",uploading:"text-[var(--color-gray-600)]",processing:"text-[var(--color-gray-800)]",done:"text-[var(--color-gray-800)]",error:"text-[var(--color-gray-800)]"}},defaultVariants:{status:"done"}}),br=b("shrink-0",{variants:{status:{uploading:"text-[var(--color-blue-800)]",processing:"text-[var(--color-blue-800)]",done:"text-[var(--color-gray-600)]",error:"text-[var(--color-red-1000)]"}},defaultVariants:{status:"done"}}),qs=b("absolute top-0 left-0 bottom-0 bg-[var(--color-gray-200)] z-0 rounded-bl-[4px] rounded-tl-[4px]",{variants:{status:{uploading:"opacity-100",processing:"opacity-100",done:"opacity-0",error:"opacity-0"}},defaultVariants:{status:"uploading"}}),Te=b("flex items-center justify-center shrink-0 p-1 rounded-[2px]",{variants:{variant:{file:"",template:"bg-[var(--color-entity-sky)]",client:"",agent:"bg-[var(--color-entity-sky)]",workstream:"bg-[var(--color-entity-sky)]",status:"",skill:"",autopilot:""}},defaultVariants:{variant:"file"}});var oe=(r=>(r.Uploading="uploading",r.Processing="processing",r.Done="done",r.Error="error",r))(oe||{});const uo=({onClick:r})=>{const t=o=>{o.stopPropagation(),r()};return e.jsx(q.motion.button,{onClick:t,className:"absolute -top-[6px] -right-[6px] hidden group-hover:flex items-center justify-center bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[8px] p-[2px] focus:outline-none focus:ring-2 focus:ring-[var(--color-blue-800)] shrink-0 z-20","aria-label":"Remove",initial:{scale:0,opacity:0},whileInView:{scale:1,opacity:1},whileHover:{scale:1.1},whileTap:{scale:.95},transition:{scale:{type:"spring",stiffness:400,damping:17},opacity:{duration:.2}},children:e.jsx(i.X,{size:10,className:"text-[var(--color-gray-800)]"})})};uo.displayName="ChipDeleteButton";const Js="sm",Qs=r=>{if(r.type==="file"){const t=r.status??oe.Done;return{filename:r.filename,showFileIcon:t===oe.Done}}return r.type==="fileMention"?{filename:r.filename,showFileIcon:!0}:null},go=({chipProps:r})=>{const{type:t}=r,o=Qs(r);if(o!=null&&o.showFileIcon)return e.jsx(Br,{filename:o.filename,size:Js});if(t==="file"){const{status:a=oe.Done}=r,n=a===oe.Uploading,s=a===oe.Processing,l=a===oe.Error,c=n?"uploading":s?"processing":"error";return e.jsxs("div",{className:y(Te({variant:"status"}),l&&"bg-[var(--color-red-200)]"),children:[n&&e.jsx(i.ArrowUp,{size:12,className:br({status:c})}),s&&e.jsx(i.Loader,{size:12,className:y(br({status:c}),"animate-spin")}),l&&e.jsx(i.TriangleAlert,{size:12,className:br({status:c})})]})}return t==="templateMention"?e.jsx("div",{className:Te({variant:"template"}),children:e.jsx(i.FileText,{size:12,className:"text-[var(--color-gray-600)]"})}):t==="clientMention"?e.jsx(xr,{type:"text",initials:r.name,size:"small",shape:"circular"}):t==="agentMention"?r.iconSrc?e.jsx("img",{src:r.iconSrc,alt:"","aria-hidden":"true",className:"w-5 h-5 rounded-[3px] object-cover shrink-0"}):e.jsx("div",{className:Te({variant:"agent"}),children:e.jsx(i.Cpu,{size:12,className:"text-[var(--color-gray-600)]"})}):t==="workstreamMention"?e.jsx("div",{className:Te({variant:"workstream"}),children:e.jsx(i.WorkStream,{size:12,className:"text-[var(--color-gray-600)]"})}):t==="skill"?e.jsx("div",{className:Te({variant:"skill"}),style:{backgroundColor:"var(--color-blue-800-bg)"},children:e.jsx(i.FileText,{size:12,style:{color:"var(--color-blue-800)"}})}):t==="autopilot"?e.jsx("div",{className:Te({variant:"autopilot"}),style:{backgroundColor:"var(--color-blue-800-bg)"},children:e.jsx(i.Layout,{size:12,style:{color:"var(--color-gray-600)"}})}):null};go.displayName="ChipLeadingContent";const el=(r,t=20)=>{if(r.length<=t)return r;const o=r.lastIndexOf(".");if(o===-1||o===0)return r.slice(0,t-1)+"…";const a=r.slice(0,o),n=r.slice(o);if(n.length>=t-3)return r.slice(0,t-1)+"…";const s=t-n.length-1;return s<3?r.slice(0,t-1)+"…":a.slice(0,s)+"…"+n},rl=r=>{switch(r.type){case"file":case"fileMention":return el(r.filename);case"templateMention":case"clientMention":case"agentMention":case"workstreamMention":case"skill":case"autopilot":return r.name}},tl=r=>{switch(r.type){case"file":case"fileMention":return r.filename;case"templateMention":case"clientMention":case"agentMention":case"workstreamMention":case"skill":case"autopilot":return r.name}},ol={skill:{borderColor:"var(--color-blue-800)",backgroundColor:"var(--color-blue-800-bg)"},autopilot:{borderColor:"var(--color-gray-200)",backgroundColor:"var(--color-gray-100)"}},al={skill:{color:"var(--color-blue-800)"},autopilot:{color:"var(--color-gray-600)"}},mo=r=>{const{type:t,className:o,onDelete:a}=r,n=t==="file"?r.status??oe.Done:oe.Done,s=n===oe.Uploading,l=n===oe.Processing,c=t==="file"?r.progress??0:0,d=(s||l)&&t==="file",x=a&&!s&&!l,p=rl(r),f=tl(r),u=t==="agentMention"?r.labelContent:void 0,g=t==="skill"||t==="autopilot",m=g?"none":n,h=g?"none":n,v=g?ol[t]:void 0,w=g?al[t]:void 0;return e.jsxs("div",{className:"relative inline-block group",children:[e.jsxs("div",{className:y(Xs({status:m}),o),style:v,children:[d&&e.jsx(q.motion.div,{className:qs({status:n}),initial:{width:"0%"},animate:{width:`${c}%`},transition:{duration:.3,ease:"easeOut"}}),e.jsxs("div",{className:"relative z-10 flex items-center gap-1 pr-1",children:[e.jsx(go,{chipProps:r}),u?e.jsx("span",{className:Jr({status:h}),style:w,title:f,children:u}):e.jsx("span",{className:Jr({status:h}),style:w,title:f,children:p})]})]}),x&&e.jsx(uo,{onClick:a})]})};mo.displayName="Chip";const nl=b("inline-flex items-center gap-2 cursor-pointer select-none group disabled:cursor-not-allowed disabled:opacity-50 w-fit",{variants:{size:{medium:"text-[1rem] leading-[1.5rem] gap-2",small:"gap-1"}},defaultVariants:{size:"medium"}}),sl=b("flex items-center justify-center transition-colors duration-[var(--archie-anim-duration)] ease-[var(--archie-anim-easing)] rounded-[2px] border shrink-0 peer-focus-visible:ring-2 peer-focus-visible:ring-[var(--color-blue-200)] peer-focus-visible:ring-offset-1",{variants:{checked:{true:"bg-[var(--color-blue-800)] border-[var(--color-blue-800)] text-white",false:"bg-white border-[var(--color-gray-200)] group-hover:border-[var(--color-gray-600)]"},indeterminate:{true:"bg-[var(--color-blue-800)] border-[var(--color-blue-800)]",false:""},size:{medium:"w-[16px] h-[16px]",small:"w-[12px] h-[12px]"}},defaultVariants:{checked:!1,indeterminate:!1,size:"medium"}}),ll="sr-only peer",ho=j.forwardRef(({className:r,checked:t,defaultChecked:o,onChange:a,label:n,size:s="medium",disabled:l,indeterminate:c=!1,...d},x)=>{const[p,f]=j.useState(o||!1),u=t!==void 0,g=u?t:p,m=j.useRef(null);j.useEffect(()=>{const w=m.current;w&&(w.indeterminate=c)},[c]);const h=w=>{m.current=w,typeof x=="function"?x(w):x&&(x.current=w)},v=w=>{u||f(w.target.checked),a==null||a(w)};return e.jsxs("label",{className:nl({size:s,className:r}),children:[e.jsx("input",{type:"checkbox",className:ll,ref:h,checked:u?t:void 0,defaultChecked:u?void 0:o,onChange:v,disabled:l,...d}),e.jsx("span",{className:sl({checked:!!g,indeterminate:c,size:s}),children:c&&!g?e.jsx("span",{className:"w-2 h-0.5 rounded-full bg-white"}):e.jsx(i.Check,{size:s==="medium"?12:8,strokeWidth:3,className:y("text-white transition-opacity duration-200",g?"opacity-100":"opacity-0")})}),n&&e.jsx(Ke,{as:"span",variant:s==="medium"?"small":"x-small",color:"secondary",children:n})]})});ho.displayName="Checkbox";const il=b("relative inline-flex items-center justify-center",{variants:{size:{xs:"w-[18px] h-[18px]",small:"w-[24px] h-[24px]",medium:"w-[32px] h-[32px]",large:"w-[40px] h-[40px]"}},defaultVariants:{size:"medium"}}),cl=b("transform"),dl=b("stroke-[var(--color-gray-200)]"),pl=b("transition-[stroke-dashoffset] duration-300 ease-in-out",{variants:{variant:{default:"stroke-[var(--color-blue-800)]",success:"stroke-[var(--color-green-1000)]",warning:"stroke-[var(--color-orange-800)]",error:"stroke-[var(--color-red-1000)]"}},defaultVariants:{variant:"default"}}),xl=b("absolute inset-0 flex items-center justify-center font-medium text-[var(--color-gray-800)]",{variants:{size:{xs:"text-[6px]",small:"text-[8px]",medium:"text-[10px]",large:"text-[12px]"}},defaultVariants:{size:"medium"}}),fl={xs:18,small:24,medium:32,large:40},bo=j.forwardRef(({className:r,value:t=0,max:o=100,size:a="medium",variant:n="default",showLabel:s=!0,labelFormatter:l,strokeWidth:c=3,...d},x)=>{const p=Math.min(Math.max(t/o*100,0),100),f=fl[a],u=(f-c)/2,g=2*Math.PI*u,m=g-p/100*g,h=l?l(t,o):`${Math.round(t)}`;return e.jsxs("div",{ref:x,className:y(il({size:a}),r),role:"progressbar","aria-valuemin":0,"aria-valuemax":o,"aria-valuenow":t,...d,children:[e.jsxs("svg",{className:cl(),width:f,height:f,viewBox:`0 0 ${f} ${f}`,children:[e.jsx("circle",{className:dl(),cx:f/2,cy:f/2,r:u,fill:"none",strokeWidth:c}),e.jsx("circle",{className:pl({variant:n}),cx:f/2,cy:f/2,r:u,fill:"none",strokeWidth:c,strokeLinecap:"round",strokeDasharray:g,strokeDashoffset:m,transform:`rotate(-90 ${f/2} ${f/2})`})]}),s&&e.jsx("span",{className:xl({size:a}),children:h})]})});bo.displayName="CircularProgress";function ul(r,t){j.useEffect(()=>{const o=a=>{const n=r==null?void 0:r.current;!n||n.contains(a.target)||t(a)};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[r,t])}const gl=b("absolute top-full left-0 z-50 w-full min-w-[200px] overflow-hidden rounded-[var(--archie-radius-lg)] border border-[var(--color-gray-200)] bg-[var(--color-white)] [box-shadow:var(--archie-shadow-lg)] focus:outline-none",{variants:{align:{start:"left-0",end:"right-0 left-auto",center:"left-1/2 -translate-x-1/2"},attached:{true:"mt-0 rounded-t-none border-t-0",false:"mt-2"}},defaultVariants:{align:"start",attached:!1}}),ml=b("flex w-full cursor-pointer items-center px-3 py-2 text-[0.875rem] text-[var(--color-gray-800)] transition-colors hover:bg-[var(--color-gray-50)] focus:bg-[var(--color-blue-200)] focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--color-blue-200)] disabled:pointer-events-none disabled:opacity-50",{variants:{active:{true:"bg-[var(--color-blue-200)] text-[var(--color-blue-1000)]"},variant:{default:"",destructive:"text-[var(--color-red-1000)] hover:bg-[var(--color-red-200)] focus:bg-[var(--color-red-200)]"}},defaultVariants:{variant:"default",active:!1}}),hl=b("w-full px-3 py-1 text-[0.625rem] font-bold text-[var(--color-gray-600)] uppercase tracking-wider select-none"),bl=b("w-full h-px bg-[var(--color-gray-200)] my-1"),vo=j.createContext(void 0),fr=()=>{const r=j.useContext(vo);if(!r)throw new Error("useDropdown must be used within a Dropdown");return r},yo=({children:r,defaultOpen:t=!1,open:o,onOpenChange:a,className:n,...s})=>{const[l,c]=j.useState(t),d=o!==void 0,x=d?o:l,p=j.useRef(null),f=()=>{const g=!x;d||c(g),a==null||a(g)},u=()=>{d||c(!1),a==null||a(!1)};return ul(p,u),e.jsx(vo.Provider,{value:{isOpen:x,toggle:f,close:u},children:e.jsx("div",{ref:p,className:y("relative w-full text-left",n),...s,children:r})})};yo.displayName="Dropdown";const jo=j.forwardRef(({className:r,children:t,onClick:o,chevronIcon:a=!1,...n},s)=>{const{toggle:l,isOpen:c}=fr(),d=x=>{l(),o==null||o(x)};return e.jsxs("div",{ref:s,className:y("cursor-pointer w-full relative overflow-visible",r),onClick:d,"aria-haspopup":"true","aria-expanded":c,...n,children:[t,a&&e.jsx(q.motion.span,{animate:{rotate:c?180:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:"absolute right-3 top-1/2 -translate-y-1/2 z-20 pointer-events-none text-[var(--color-gray-600)]",children:e.jsx(i.ChevronDown,{size:16})})]})});jo.displayName="DropdownTrigger";const wo=j.forwardRef(({className:r,align:t="start",attached:o=!1,children:a,...n},s)=>{const{isOpen:l}=fr();return e.jsx(q.AnimatePresence,{children:l&&e.jsx(q.motion.div,{ref:s,initial:{opacity:0,y:-4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.98},transition:{duration:.2,ease:[.16,1,.3,1]},style:{transformOrigin:"top center"},className:y(gl({align:t,attached:o}),r),...n,children:a})})});wo.displayName="DropdownContent";const Co=j.forwardRef(({className:r,active:t,variant:o,closeOnSelect:a=!0,children:n,onClick:s,...l},c)=>{const{close:d}=fr(),x=p=>{s==null||s(p),a&&d()};return e.jsx("div",{ref:c,className:y(ml({active:t,variant:o}),r),onClick:x,role:"menuitem",...l,children:n})});Co.displayName="DropdownItem";const vl=j.forwardRef(({className:r,children:t,...o},a)=>e.jsx("div",{ref:a,className:y(hl(),r),...o,children:t}));vl.displayName="DropdownLabel";const yl=j.forwardRef(({className:r,animated:t=!1,animationDelay:o=.2,...a},n)=>t?e.jsx("div",{ref:n,className:y("h-px my-1 overflow-hidden",r),...a,children:e.jsx(q.motion.div,{className:"h-full bg-[var(--color-gray-200)]",initial:{width:0},animate:{width:"100%"},transition:{duration:.3,ease:[.16,1,.3,1],delay:o}})}):e.jsx("div",{ref:n,className:y(bl(),r),...a}));yl.displayName="DropdownSeparator";const jl=b("w-full bg-[var(--color-white)] border border-solid rounded-[var(--archie-radius-lg)] font-normal transition-colors duration-[var(--archie-anim-duration)] box-border focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50",{variants:{status:{default:"border-[var(--color-gray-200)] text-[var(--color-gray-600)] placeholder:text-[var(--color-gray-600)] hover:border-[var(--color-gray-500)] focus:border-[var(--color-blue-1000)] focus:text-[var(--color-blue-1000)]",error:"border-[var(--color-red-1000)] text-[var(--color-red-1000)] placeholder:text-[var(--color-red-1000)] focus:border-[var(--color-red-1000)]",success:"border-[var(--color-green-1000)] text-[var(--color-green-1000)] placeholder:text-[var(--color-green-1000)] focus:border-[var(--color-green-1000)]"},size:{medium:"px-4 py-4 text-[1rem] leading-[1.5rem]",small:"px-3 py-2 text-[0.875rem] leading-[1.25rem]",tiny:"p-2 text-[0.75rem] leading-[1rem]",micro:"px-1.5 py-1 text-[0.6875rem] leading-[0.875rem]"}},defaultVariants:{status:"default",size:"medium"}}),wl=b("relative w-full",{variants:{size:{medium:"",small:"",tiny:"",micro:""}},defaultVariants:{size:"medium"}}),Qr=b("absolute top-1/2 -translate-y-1/2 pointer-events-none flex items-center justify-center",{variants:{status:{default:"text-[var(--color-gray-600)]",error:"text-[var(--color-red-1000)]",success:"text-[var(--color-green-1000)]"},position:{start:"",end:""},size:{medium:"size-[24px]",small:"size-[16px]",tiny:"size-[16px]",micro:"size-[14px]"}},compoundVariants:[{position:"start",size:"medium",className:"left-4"},{position:"start",size:"small",className:"left-3"},{position:"start",size:"tiny",className:"left-2"},{position:"start",size:"micro",className:"left-1.5"},{position:"end",size:"medium",className:"right-4"},{position:"end",size:"small",className:"right-3"},{position:"end",size:"tiny",className:"right-2"},{position:"end",size:"micro",className:"right-1.5"}],defaultVariants:{status:"default",size:"medium",position:"end"}}),Cl=b("text-[var(--color-red-1000)]",{variants:{size:{medium:"text-[0.875rem] leading-[1.25rem]",small:"text-[0.75rem] leading-[1rem]",tiny:"text-[0.75rem] leading-[1rem]",micro:"text-[0.6875rem] leading-[0.875rem]"}},defaultVariants:{size:"medium"}}),So=j.forwardRef(({className:r,status:t="default",size:o="medium",startIcon:a,endIcon:n,disabled:s,error:l,label:c,hint:d,...x},p)=>{const f=j.useId(),u=l?"error":t,g={medium:"pl-12",small:"pl-9",tiny:"pl-8",micro:"pl-7"},m={medium:"pr-12",small:"pr-9",tiny:"pr-8",micro:"pr-7"};return e.jsxs("div",{className:"flex flex-col gap-1",children:[c&&e.jsx("label",{className:"text-[11px] font-semibold text-[var(--color-gray-800)]",children:c}),e.jsxs("div",{className:wl({size:o}),children:[a&&e.jsx("span",{className:Qr({status:u,size:o,position:"start"}),children:a}),e.jsx("input",{ref:p,className:y(jl({status:u,size:o}),a&&g[o],n&&m[o],r),disabled:s,"aria-invalid":!!l,"aria-describedby":l?f:void 0,...x}),n&&e.jsx("span",{className:Qr({status:u,size:o,position:"end"}),children:n})]}),l&&e.jsx("span",{id:f,className:Cl({size:o}),role:"alert",children:l}),!l&&d&&e.jsx("span",{className:"text-[11px] text-[var(--color-gray-600)]",children:d})]})});So.displayName="Input";const Sl=b("flex flex-col items-center justify-center"),kl=b("relative",{variants:{size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"}},defaultVariants:{size:"lg"}}),Nl=b("absolute inset-0 rounded-full border-4 border-transparent animate-spin",{variants:{color:{primary:"border-t-[var(--color-blue-800)]",secondary:"border-t-[var(--color-gray-600)]"}},defaultVariants:{color:"primary"}}),zl=b("mt-4 typography-small",{variants:{color:{primary:"text-[var(--color-gray-1000)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{color:"muted"}}),Tl=({size:r="lg",color:t="primary",text:o,textColor:a="muted",className:n})=>e.jsxs("div",{className:y(Sl(),n),children:[e.jsx("div",{className:kl({size:r}),children:e.jsx("div",{className:Nl({color:t})})}),o&&e.jsx("p",{className:zl({color:a}),children:o})]}),vr=b("relative flex flex-col w-full max-w-[668px] transition-colors duration-200 group",{variants:{variant:{user:"",assistant:"",system:"",loader:""},alignment:{left:"items-start",center:"items-center",right:"items-end"},isEditing:{true:"items-stretch",false:""}},compoundVariants:[{variant:"user",alignment:void 0,isEditing:!1,className:"items-end"},{variant:"assistant",alignment:void 0,isEditing:!1,className:"items-start"},{variant:"system",alignment:void 0,className:"items-start"},{variant:"loader",alignment:void 0,className:"items-start"}],defaultVariants:{variant:"user",isEditing:!1}}),$l=b("flex gap-[12px] items-start w-full"),Ll=b("flex flex-col flex-1 min-w-0"),et=b("flex flex-col w-full transition-colors duration-200",{variants:{variant:{user:"[background-image:linear-gradient(var(--color-white),var(--color-white)),linear-gradient(180deg,#B9BCCB_0%,#E5E7F0_100%)] [background-origin:padding-box,border-box] [background-clip:padding-box,border-box] border border-transparent rounded-[16px] p-[16px] overflow-clip shadow-[0px_4px_6px_-2px_rgba(0,0,0,0.03),0px_12px_16px_-4px_rgba(0,0,0,0.05)]",assistant:"bg-transparent px-[8px] pb-[8px] gap-[8px]",system:"bg-transparent gap-[8px]",loader:"bg-transparent gap-[24px]"},isSticky:{true:"shadow-[0px_8px_16px_-4px_rgba(0,0,0,0.1),0px_4px_8px_-4px_rgba(0,0,0,0.06)]",false:""},withTimer:{true:"",false:""}},compoundVariants:[{variant:"assistant",withTimer:!0,className:"bg-white p-[16px] rounded-[4px]"},{variant:"user",withTimer:!0,className:"bg-[var(--color-gray-100)] [background-image:none] border-0 rounded-[4px] shadow-none overflow-visible"}],defaultVariants:{variant:"user",isSticky:!1,withTimer:!1}}),Ml=b("flex w-full",{variants:{variant:{user:"flex-col gap-[8px]",assistant:"flex-col gap-[8px]",system:"flex-row items-center gap-[8px]",loader:"flex-col items-start"}},defaultVariants:{variant:"user"}}),Al=b("typography-h4 text-[var(--color-blue-1000)]"),rt=b("typography-small",{variants:{variant:{user:"text-[var(--color-blue-1000)]",assistant:"text-[var(--color-blue-1000)]",system:"text-[var(--color-gray-600)]",loader:""}},defaultVariants:{variant:"user"}}),tt=b("flex gap-[8px] p-[4px] rounded-[4px] transition-opacity duration-200",{variants:{variant:{user:"",assistant:"",system:"hidden",loader:"hidden"}},defaultVariants:{variant:"user"}}),Rl=b(["flex","gap-[8px]","opacity-0","group-hover:opacity-100","transition-opacity","duration-200"]),Fl=b("p-1 rounded-[4px] text-[var(--color-gray-400)] hover:text-[var(--color-gray-800)] hover:drop-shadow-[0_1px_2px_rgba(0,0,0,0.05)] transition-all duration-200 focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-1 disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:text-[var(--color-gray-400)] disabled:hover:drop-shadow-none",{variants:{isActive:{true:"text-[var(--color-blue-800)]",false:""}},defaultVariants:{isActive:!1}}),Bl=b("flex items-start justify-center shrink-0 pt-[4px]"),Dl=b("flex items-center justify-center size-[32px] rounded-full bg-[var(--color-blue-1000)]"),Il=b("text-[12px] text-[var(--color-gray-600)] mt-[4px]"),El=b("flex items-center justify-center"),Wl=b("relative overflow-hidden flex items-center gap-[8px] py-[2px] select-none"),Pl=b(["absolute -inset-y-2 -inset-x-4","animate-shimmer","bg-[linear-gradient(90deg,transparent_0%,transparent_35%,rgba(255,255,255,0.4)_50%,transparent_65%,transparent_100%)]","blur-[1px]","z-10 pointer-events-none"]),Vl=b(["relative shrink-0 flex items-center justify-center","text-[var(--color-gray-600)]","animate-signal-rhythm","origin-center"]),Hl=b(["absolute inset-0","bg-[var(--color-blue-200)]","rounded-full","opacity-0","animate-ping-slow","-z-10"]),_l=b(["flex","flex-col","w-full","bg-[var(--color-white)]","rounded-[16px]","border","border-[var(--color-blue-800)]","p-[16px]","gap-[8px]","transition-colors","duration-200"]),Ol=b(["w-full","min-h-[60px]","bg-transparent","border-none","resize-none","typography-small","text-[var(--color-blue-1000)]","placeholder:text-[var(--color-gray-600)]","focus:outline-none","disabled:opacity-50","disabled:cursor-not-allowed"]),Gl=b(["text-[12px]","leading-[16px]","text-[var(--color-gray-600)]"]),Ul=b("flex items-center gap-[8px]"),Yl=b("overflow-clip shrink-0 size-[24px]"),Kl=b("text-[14px] leading-[20px] font-semibold text-[var(--color-blue-1000)] whitespace-nowrap"),Zl=b("text-[14px] leading-[20px] text-[var(--color-gray-400)] whitespace-nowrap"),Xl=b(["flex","items-center","gap-[4px]"]),ot=b(["p-[4px]","rounded-[4px]","text-[var(--color-gray-400)]","transition-colors","duration-200","hover:text-[var(--color-gray-800)]","hover:bg-[var(--color-gray-100)]","disabled:opacity-30","disabled:cursor-not-allowed","disabled:hover:bg-transparent","disabled:hover:text-[var(--color-gray-400)]","focus-visible:ring-2","focus-visible:ring-[var(--color-blue-200)]","focus-visible:ring-offset-1"]),ql=b(["text-[12px]","leading-[16px]","text-[var(--color-gray-600)]","font-normal","tabular-nums","select-none","min-w-[32px]","text-center"]),yr=r=>{const t=typeof r=="string"?new Date(r):r,a=new Date().getTime()-t.getTime(),n=Math.floor(a/6e4);if(n<1)return"Just now";if(n===1)return"1 minute ago";if(n<60)return`${n} minutes ago`;const s=Math.floor(n/60);return s===1?"1 hour ago":s<24?`${s} hours ago`:t.toLocaleDateString()};function Jl(r){const[t,o]=j.useState(()=>r?yr(r):"");return j.useEffect(()=>{if(!r){o("");return}o(yr(r));const a=setInterval(()=>{o(yr(r))},3e4);return()=>clearInterval(a)},[r]),t}const Ql=[],ei=typeof navigator<"u"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ri=ei?"⌘+Enter to save, Esc to cancel":"Ctrl+Enter to save, Esc to cancel",ti=r=>{const t=typeof r=="string"?new Date(r):r,a=new Date().getTime()-t.getTime(),n=Math.floor(a/6e4);if(n<1)return"Just now";if(n<60)return`${n} min ago`;const s=Math.floor(n/60);return s<24?`${s}h ago`:t.toLocaleDateString()},Ae=j.memo(({onClick:r,icon:t,label:o,className:a,isActive:n=!1,disabled:s=!1,showSuccessFeedback:l=!1,successIcon:c=i.Check,successDuration:d=2e3})=>{const[x,p]=j.useState(!1),f=j.useCallback(async()=>{if(!(!r||s))try{await r(),l&&(p(!0),setTimeout(()=>p(!1),d))}catch(g){console.error("Action failed:",g)}},[r,s,l,d]),u=x?c:t;return e.jsx("button",{className:y(Fl({isActive:n||x}),a),onClick:f,type:"button","aria-label":x?"Success":o,disabled:s,children:e.jsx(u,{size:12})})});Ae.displayName="ActionButton";const ko=j.memo(({branchInfo:r,onPrevious:t,onNext:o,isLoading:a=!1})=>{const n=r.currentIndex>1,s=r.currentIndex<r.totalBranches;return r.totalBranches<=1?null:e.jsxs("div",{className:y(Xl()),children:[e.jsx("button",{type:"button",className:y(ot()),onClick:t,disabled:!n||a,"aria-label":"Previous version",children:e.jsx(i.ChevronLeft,{size:14})}),e.jsxs("span",{className:y(ql()),children:[r.currentIndex," / ",r.totalBranches]}),e.jsx("button",{type:"button",className:y(ot()),onClick:o,disabled:!s||a,"aria-label":"Next version",children:e.jsx(i.ChevronRight,{size:14})})]})});ko.displayName="BranchNavigator";const oi=()=>{const[r,t]=j.useState(0);return j.useEffect(()=>{const o=setInterval(()=>{t(a=>a+1)},2500);return()=>clearInterval(o)},[]),e.jsx("div",{className:y(El()),children:e.jsx(Fr,{size:28,colorVariant:"lightTeal",animated:!0,animationDuration:2},r)})},No=j.forwardRef(({className:r,variant:t="user",heading:o,children:a,isLoading:n,timestamp:s,hideAvatar:l=!1,showTimestamp:c=!1,isSticky:d=!1,isInitialPrompt:x=!1,alignment:p,actions:f=Ql,enableCopy:u=!1,copyIcon:g,onCopySuccess:m,enableEdit:h=!1,isEditing:v,initialEditContent:w,onEditStart:N,onEditCancel:L,onEditSave:T,isSaving:C=!1,branchInfo:z,onPreviousBranch:D,onNextBranch:$,isBranchLoading:F=!1,withTimer:S=!1,senderName:k,senderAvatar:B,senderTime:P,...V},H)=>{const E=Jl(S&&!P?s:void 0),O=P||E,M=j.useRef(null),I=j.useRef(null),[_,ue]=j.useState(!1),[te,K]=j.useState(!1),[U,se]=j.useState(w??""),Q=v??te,Z=p??(t==="user"?x?"center":"right":"left"),ye=j.useCallback(()=>M.current?M.current.innerText:typeof a=="string"?a:"",[a]),ke=j.useCallback(()=>{if(v===void 0){const G=w??ye();se(G),K(!0)}N==null||N()},[w,ye,v,N]),ge=j.useCallback(()=>{v===void 0&&K(!1),se(""),L==null||L()},[v,L]),je=j.useCallback(async()=>{if(!(!(U!=null&&U.trim())||C)&&U.trim()!==(w==null?void 0:w.trim()))try{await(T==null?void 0:T(U)),v===void 0&&K(!1),se("")}catch(G){console.error("Failed to save edit:",G)}},[U,C,T,v,w]),Ne=j.useCallback(G=>{G.key==="Escape"?ge():G.key==="Enter"&&(G.metaKey||G.ctrlKey)&&(G.preventDefault(),je())},[ge,je]),Pr=j.useRef(!1),Vr=j.useRef(w);j.useEffect(()=>{Vr.current=w},[w]),j.useEffect(()=>{const G=Pr.current;if(Pr.current=Q,Q&&!G){const Pe=w||Vr.current||ye()||"";se(Pe)}else!Q&&G&&se("")},[Q,w,ye]),j.useEffect(()=>{if(Q&&I.current){I.current.focus();const G=I.current.value.length;I.current.setSelectionRange(G,G)}},[Q]);const da=j.useCallback(async()=>{if(!M.current)return;const G=M.current.innerText;try{navigator.clipboard&&navigator.clipboard.writeText?(await navigator.clipboard.writeText(G),ue(!0),m==null||m(),setTimeout(()=>{ue(!1)},2e3)):console.warn("Clipboard API not available")}catch(Pe){console.error("Failed to copy:",Pe)}},[m]),pa=j.useCallback(G=>{se(G.target.value)},[]),Hr=j.useMemo(()=>f.length>0||u||h&&t==="user",[f.length,u,h,t]),_r=j.useMemo(()=>!d&&!Q&&(t==="user"||t==="assistant")&&Hr,[d,Q,t,Hr]),Or=j.useMemo(()=>!Q&&z&&z.totalBranches>1&&t==="user",[Q,z,t]);return t==="loader"||n?e.jsx("div",{ref:H,className:y(vr({variant:"loader",alignment:"left",isEditing:!1}),r),...V,children:e.jsx("div",{className:y(et({variant:"loader",isSticky:d})),children:e.jsx(oi,{})})}):Q&&t==="user"?e.jsxs("div",{ref:H,className:y(vr({variant:t,alignment:"right",isEditing:!0}),"group",r),...V,children:[e.jsx("div",{className:y(_l()),children:e.jsx("textarea",{ref:I,value:U,onChange:pa,onKeyDown:Ne,className:y(Ol()),placeholder:"Edit your message...",disabled:C,"aria-label":"Edit message"})}),e.jsxs("div",{className:y(tt({variant:t}),"opacity-100 justify-between"),children:[e.jsx("span",{className:y(Gl()),children:ri}),e.jsxs("div",{className:"flex",children:[e.jsx(Ae,{onClick:je,icon:i.Check,label:"Save",disabled:C||!(U!=null&&U.trim())||U.trim()===(w==null?void 0:w.trim())}),e.jsx(Ae,{onClick:ge,icon:i.X,label:"Cancel",disabled:C})]})]})]}):e.jsxs("div",{ref:H,className:y(vr({variant:t,alignment:Z,isEditing:!1}),"group",r),...V,children:[S&&k&&e.jsxs("div",{className:y(Ul()),children:[B&&e.jsx("div",{className:y(Yl()),children:B}),e.jsx("span",{className:y(Kl()),children:k}),O&&e.jsx("span",{className:y(Zl()),children:O})]}),e.jsxs("div",{className:y($l()),children:[!S&&!l&&t==="assistant"&&e.jsx("div",{className:y(Bl()),children:e.jsx("div",{className:y(Dl()),children:e.jsx(Rr,{size:20,colorVariant:"lightTeal"})})}),e.jsxs("div",{className:y(Ll()),children:[e.jsx("div",{className:y(et({variant:t,isSticky:d,withTimer:S})),children:e.jsx("div",{className:y(Ml({variant:t})),ref:M,children:t==="system"?e.jsxs("div",{className:y(Wl()),children:[e.jsx("div",{className:y(Pl())}),e.jsxs("div",{className:y(Vl()),children:[e.jsx(i.Activity,{size:16}),e.jsx("div",{className:y(Hl())})]}),e.jsx("span",{className:y(rt({variant:t})),children:a})]}):e.jsxs(e.Fragment,{children:[t==="assistant"&&o&&e.jsx("h4",{className:y(Al()),children:o}),e.jsx("div",{className:y(rt({variant:t})),children:a})]})})}),c&&s&&e.jsx("div",{className:y(Il()),children:ti(s)}),(_r||Or)&&e.jsxs("div",{className:y(tt({variant:t}),"justify-between"),children:[e.jsx("div",{className:y(Rl()),children:_r&&e.jsxs(e.Fragment,{children:[u&&g&&e.jsx(Ae,{onClick:da,icon:_?i.Check:g,label:_?"Copied":"Copy",isActive:_}),h&&t==="user"&&e.jsx(Ae,{onClick:ke,icon:i.Edit2,label:"Edit"}),f.map((G,Pe)=>e.jsx(Ae,{onClick:G.onClick,icon:G.icon,label:G.label,isActive:G.isActive,showSuccessFeedback:G.showSuccessFeedback,successIcon:G.successIcon,successDuration:G.successDuration},`${G.label}-${Pe}`))]})}),Or&&z&&e.jsx(ko,{branchInfo:z,onPrevious:D,onNext:$,isLoading:F})]})]})]})]})});No.displayName="MessageBubble";const ai=b("w-full overflow-hidden rounded-full bg-[var(--color-gray-200)]",{variants:{size:{small:"h-1",medium:"h-2",large:"h-3"}},defaultVariants:{size:"medium"}}),ni=b("h-full w-full flex-1 transition-all duration-300 ease-in-out rounded-full",{variants:{variant:{default:"bg-[var(--color-blue-800)]",success:"bg-[var(--color-green-1000)]",error:"bg-[var(--color-red-1000)]",warning:"bg-[var(--color-amber-1000)]"}},defaultVariants:{variant:"default"}}),si=b("flex justify-between mb-2 text-[var(--color-gray-800)]",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),zo=j.forwardRef(({className:r,value:t=0,max:o=100,variant:a="default",size:n="medium",showValueLabel:s=!1,label:l,valueFormatter:c,...d},x)=>{const p=Math.min(Math.max(t/o*100,0),100),f=c?c(t,o):`${Math.round(p)}%`;return e.jsxs("div",{ref:x,className:y("w-full",r),role:"progressbar","aria-valuemin":0,"aria-valuemax":o,"aria-valuenow":t,...d,children:[(l||s)&&e.jsxs("div",{className:si({size:n}),children:[l&&e.jsx("span",{className:"font-medium",children:l}),s&&e.jsx("span",{className:"ml-auto",children:f})]}),e.jsx("div",{className:ai({size:n}),children:e.jsx("div",{className:ni({variant:a}),style:{transform:`translateX(-${100-p}%)`}})})]})});zo.displayName="ProgressBar";const li=b(["w-full h-2 rounded-lg appearance-none cursor-pointer","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","[&::-webkit-slider-thumb]:appearance-none","[&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5","[&::-webkit-slider-thumb]:bg-[var(--color-white)]","[&::-webkit-slider-thumb]:border-2","[&::-webkit-slider-thumb]:rounded-full","[&::-webkit-slider-thumb]:shadow-sm","[&::-webkit-slider-thumb]:transition-all [&::-webkit-slider-thumb]:duration-200","[&::-webkit-slider-thumb]:hover:scale-110","[&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5","[&::-moz-range-thumb]:bg-[var(--color-white)]","[&::-moz-range-thumb]:border-2","[&::-moz-range-thumb]:rounded-full","[&::-moz-range-thumb]:shadow-sm","[&::-moz-range-thumb]:transition-all [&::-moz-range-thumb]:duration-200","[&::-moz-range-thumb]:hover:scale-110"].join(" "),{variants:{variant:{cyan:["focus-visible:ring-[var(--color-blue-200)]","[&::-webkit-slider-thumb]:border-[var(--color-gray-200)] [&::-webkit-slider-thumb]:hover:border-[var(--color-blue-800)]","[&::-moz-range-thumb]:border-[var(--color-gray-200)] [&::-moz-range-thumb]:hover:border-[var(--color-blue-800)]"],orange:["focus-visible:ring-[var(--color-orange-200)]","[&::-webkit-slider-thumb]:border-[var(--color-gray-200)] [&::-webkit-slider-thumb]:hover:border-[var(--color-orange-800)]","[&::-moz-range-thumb]:border-[var(--color-gray-200)] [&::-moz-range-thumb]:hover:border-[var(--color-orange-800)]"]},animated:{true:["[&::-webkit-slider-thumb]:animate-pulse","[&::-moz-range-thumb]:animate-pulse"],false:[]}},defaultVariants:{variant:"cyan",animated:!1}}),To=j.forwardRef(({className:r,variant:t="cyan",animated:o=!1,style:a,...n},s)=>{const{min:l=0,max:c=100,value:d,defaultValue:x}=n,p=Number(d??x??0),f=Number(l),u=Number(c),g=Math.min(Math.max((p-f)*100/(u-f),0),100),m=t==="orange"?"var(--color-orange-800)":"var(--color-blue-800)",h=`linear-gradient(to right, ${m} 0%, ${m} ${g}%, var(--color-gray-200) ${g}%, var(--color-gray-200) 100%)`;return e.jsx("input",{ref:s,type:"range",className:y(li({variant:t,animated:o}),r),style:{background:h,...a},...n})});To.displayName="RangeInput";const ii=b("box-border flex cursor-pointer transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2",{variants:{type:{collapsed:"flex-col items-center justify-center w-[64px] py-[6px] px-[4px] gap-[4px] rounded-[4px]",expanded:"flex-row items-center w-full h-[32px] px-[4px] py-[6px] gap-[8px] rounded-[4px]"},variant:{default:"text-[var(--color-gray-800)] hover:bg-[var(--color-gray-100)]",active:"text-[var(--color-blue-800)] bg-[var(--color-blue-200)]",brand:"h-[44px] rounded-[24px] bg-transparent hover:bg-transparent"},heightAuto:{true:"h-auto"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none"}},compoundVariants:[{type:"collapsed",variant:"active",className:"bg-[var(--color-blue-200)]"}],defaultVariants:{type:"expanded",variant:"default",heightAuto:!1,disabled:!1}}),ci=b("relative shrink-0 flex items-center justify-center",{variants:{type:{collapsed:"size-[16px]",expanded:"size-[16px]"},variant:{default:"text-[var(--color-gray-800)]",active:"text-[var(--color-blue-800)]",brand:"text-[var(--color-blue-1000)] size-[24px]"},heightAuto:{true:"size-auto"}},defaultVariants:{type:"expanded",variant:"default",heightAuto:!1}}),di=b("font-normal whitespace-nowrap shrink-0",{variants:{type:{collapsed:"text-[8px] leading-[10px] text-center min-w-full",expanded:"text-[14px] leading-[20px]"},variant:{default:"text-[var(--color-gray-800)]",active:"text-[var(--color-blue-800)]",brand:"hidden"}},defaultVariants:{type:"expanded",variant:"default"}}),$o=j.forwardRef(({className:r,icon:t,label:o,isCollapsed:a=!1,isActive:n=!1,variant:s="default",heightAuto:l=!1,disabled:c=!1,onClick:d,children:x,...p},f)=>{const u=a?"collapsed":"expanded",g=n?"active":s,m=v=>{c||d&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),d())},h=()=>{c||d==null||d()};return e.jsxs("div",{ref:f,className:y(ii({type:u,variant:g,heightAuto:l,disabled:c}),r),role:"button",tabIndex:c?-1:0,"aria-label":o,"aria-disabled":c,onClick:h,onKeyDown:m,...p,children:[t&&e.jsx("div",{className:y(ci({type:u,variant:g,heightAuto:l})),children:t}),(s!=="brand"||!a)&&e.jsx("span",{className:y(di({type:u,variant:g})),children:o})]})});$o.displayName="SidebarItem";const pi=b("inline-flex items-center justify-center rounded-[4px] whitespace-nowrap transition-colors duration-200 box-border",{variants:{variant:{default:"border border-[var(--color-gray-200)] bg-[var(--color-gray-100)] px-2 py-[2px] text-[var(--color-gray-800)] gap-1",collaborator:"border border-[var(--color-gray-200)] bg-[var(--color-gray-100)] px-2 py-[2px] text-[var(--color-gray-800)] gap-1",indicator:"bg-[var(--color-gray-100)] px-[2px] h-[12px] gap-[4px] text-[var(--color-gray-600)]",highlight:"border border-[var(--color-blue-800)] bg-[var(--color-blue-800-subtle)] px-2 py-[2px] text-[var(--color-blue-1000)] gap-1",error:"bg-[var(--color-red-200)] px-[2px] h-[12px] gap-[4px] text-[var(--color-red-1000)]"}},defaultVariants:{variant:"default"}}),xi=b("w-4 h-4 rounded-full object-cover shrink-0"),at=b("flex items-center justify-center shrink-0"),Ie=j.forwardRef(({className:r,variant:t="default",startIcon:o,endIcon:a,avatarSrc:n,onDelete:s,children:l,...c},d)=>e.jsxs("div",{ref:d,className:y(s&&"relative group",pi({variant:t}),r),...c,children:[n&&e.jsx("img",{src:n,alt:"avatar",className:xi()}),o&&e.jsx("span",{className:at(),children:o}),e.jsx(Ke,{variant:"tag",color:"inherit",className:"whitespace-nowrap",children:l}),a&&e.jsx("span",{className:at(),children:a}),s&&e.jsx(q.motion.button,{onClick:x=>{x.stopPropagation(),s()},className:"absolute -top-[6px] -right-[6px] hidden group-hover:flex items-center justify-center bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[8px] p-[2px] focus:outline-none focus:ring-2 focus:ring-[var(--color-blue-800)] shrink-0 z-20","aria-label":"Remove",initial:{scale:0,opacity:0},whileInView:{scale:1,opacity:1},whileHover:{scale:1.1},whileTap:{scale:.95},transition:{scale:{type:"spring",stiffness:400,damping:17},opacity:{duration:.2}},children:e.jsx(i.X,{size:10,className:"text-[var(--color-gray-800)]"})})]}));Ie.displayName="Tag";const fi=b("inline-flex items-center justify-start bg-transparent p-0 w-full",{variants:{variant:{default:"",underline:"border-b border-[var(--color-gray-200)] [&>button]:-mb-px",pills:"bg-[var(--color-gray-200)] rounded p-0.5 gap-1 w-auto",segmented:"bg-[var(--color-gray-100)] rounded-lg p-[3px] gap-[2px] w-auto","filter-pills":"gap-1.5 flex-wrap w-auto"}},defaultVariants:{variant:"default"}}),ui=b("inline-flex items-center justify-center whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 transition-colors cursor-pointer group shrink-0",{variants:{variant:{default:'p-2 font-["Geist",system-ui,sans-serif] text-[10px] leading-4 font-normal border-b border-[var(--color-gray-200)] text-[var(--color-gray-600)] data-[state=active]:text-[var(--color-blue-1000)] data-[state=active]:border-[var(--color-blue-1000)] data-[state=inactive]:hover:bg-[var(--color-gray-100)] gap-2',underline:'p-2 font-["Geist",system-ui,sans-serif] text-[10px] leading-4 font-normal border-b border-[var(--color-gray-200)] text-[var(--color-gray-600)] data-[state=active]:text-[var(--color-blue-1000)] data-[state=active]:border-[var(--color-blue-1000)] data-[state=inactive]:hover:bg-[var(--color-gray-100)] gap-2',pills:"px-2 h-6 rounded font-body text-xs leading-4 font-light text-[var(--color-blue-1000)] border border-transparent data-[state=active]:bg-[var(--color-white)] data-[state=active]:border-[var(--color-gray-200)] data-[state=active]:shadow-sm data-[state=inactive]:hover:bg-[var(--color-gray-100)]",segmented:"py-[5px] px-3 rounded-md text-xs font-normal text-[var(--color-gray-600)] data-[state=active]:bg-[var(--color-white)] data-[state=active]:text-[var(--color-gray-1000)] data-[state=active]:font-semibold data-[state=active]:shadow-sm data-[state=inactive]:hover:text-[var(--color-gray-800)]","filter-pills":"py-1 px-3 rounded-full text-xs font-medium text-[var(--color-gray-600)] border border-[var(--color-gray-200)] data-[state=active]:bg-[rgba(21,177,205,0.09)] data-[state=active]:text-[var(--color-blue-800)] data-[state=active]:border-[rgba(21,177,205,0.25)] data-[state=inactive]:hover:bg-[var(--color-gray-100)] capitalize"}},defaultVariants:{variant:"default"}}),gi=b("mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2"),mi=b("flex items-center gap-[2px]"),nt=b("group-data-[state=active]:text-[var(--color-blue-1000)]"),Lo=Be.createContext("default"),hi=Se.Root,Mo=Be.forwardRef(({className:r,variant:t="default",...o},a)=>e.jsx(Lo.Provider,{value:t,children:e.jsx(Se.List,{ref:a,className:y(fi({variant:t}),r),...o})}));Mo.displayName=Se.List.displayName;const Ao=Be.forwardRef(({className:r,children:t,errorCount:o,configurationCount:a,...n},s)=>{const l=Be.useContext(Lo);return e.jsxs(Se.Trigger,{ref:s,className:y(ui({variant:l}),r),...n,children:[t,l!=="pills"&&(a!==void 0||o!==void 0)&&e.jsxs("div",{className:mi(),children:[a!==void 0&&e.jsx(Ie,{variant:"indicator",startIcon:e.jsx(i.Settings,{size:10,className:"text-[#15B1CD]"}),className:nt(),children:a}),o!==void 0&&e.jsx(Ie,{variant:"indicator",startIcon:e.jsx(i.TriangleAlert,{size:10,className:"text-[#FB6060]"}),className:nt(),children:o})]})]})});Ao.displayName=Se.Trigger.displayName;const Ro=Be.forwardRef(({className:r,...t},o)=>e.jsx(Se.Content,{ref:o,className:y(gi(),r),...t}));Ro.displayName=Se.Content.displayName;const bi=b("w-full bg-[var(--color-white)] border border-solid rounded-[var(--archie-radius-lg)] font-normal transition-colors duration-[var(--archie-anim-duration)] box-border focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 min-h-[80px]",{variants:{status:{default:"border-[var(--color-gray-200)] text-[var(--color-gray-600)] placeholder:text-[var(--color-gray-600)] hover:border-[var(--color-gray-500)] focus:border-[var(--color-blue-1000)] focus:text-[var(--color-blue-1000)]",error:"border-[var(--color-red-1000)] text-[var(--color-red-1000)] placeholder:text-[var(--color-red-1000)] focus:border-[var(--color-red-1000)]",success:"border-[var(--color-green-1000)] text-[var(--color-green-1000)] placeholder:text-[var(--color-green-1000)] focus:border-[var(--color-green-1000)]"},size:{medium:"px-4 py-4 text-[1rem] leading-[1.5rem]",small:"px-3 py-2 text-[0.875rem] leading-[1.25rem]",tiny:"p-2 text-[0.75rem] leading-[1rem]"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{status:"default",size:"medium",resize:"vertical"}}),vi=b("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),Fo=j.forwardRef(({className:r,status:t="default",size:o="medium",resize:a="vertical",disabled:n,label:s,hint:l,...c},d)=>e.jsxs("div",{className:"flex flex-col gap-1",children:[s&&e.jsx("label",{className:"text-[11px] font-semibold text-[var(--color-gray-800)]",children:s}),e.jsx("div",{className:vi({size:o}),children:e.jsx("textarea",{ref:d,className:y(bi({status:t,size:o,resize:a}),r),disabled:n,...c})}),l&&e.jsx("span",{className:"text-[11px] text-[var(--color-gray-600)]",children:l})]}));Fo.displayName="TextArea";const yi=b("inline-flex items-center gap-1 font-sans whitespace-nowrap",{variants:{size:{small:"text-[0.625rem] leading-[1rem]",medium:"text-[0.75rem] leading-[1rem]",large:"text-[0.875rem] leading-[1.25rem]"},variant:{default:"text-[var(--color-gray-600)]",primary:"text-[var(--color-gray-800)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{size:"medium",variant:"default"}}),ji=b("flex items-center justify-center shrink-0",{variants:{size:{small:"[&>svg]:w-[10px] [&>svg]:h-[10px]",medium:"[&>svg]:w-[12px] [&>svg]:h-[12px]",large:"[&>svg]:w-[14px] [&>svg]:h-[14px]"}},defaultVariants:{size:"medium"}}),wi=(r,t)=>{const o=t.getTime()-r.getTime(),a=Math.floor(o/1e3),n=Math.floor(a/60),s=Math.floor(n/60),l=Math.floor(s/24),c=Math.floor(l/7),d=Math.floor(l/30),x=Math.floor(l/365),p=o<0,f=Math.abs(a),u=Math.abs(n),g=Math.abs(s),m=Math.abs(l),h=Math.abs(c),v=Math.abs(d),w=Math.abs(x),N=(L,T)=>{const C=L===1?"":"s";return p?`in ${L} ${T}${C}`:`${L} ${T}${C} ago`};return f<60?"just now":u<60?N(u,"minute"):g<24?N(g,"hour"):m===1?p?"tomorrow":"yesterday":m<7?N(m,"day"):h<4?N(h,"week"):v<12?N(v,"month"):N(w,"year")},Ci=(r,t,o)=>{switch(t){case"relative":return wi(r,new Date);case"short":return r.toLocaleDateString(o,{month:"short",day:"numeric",year:"numeric"});case"long":return r.toLocaleDateString(o,{month:"long",day:"numeric",year:"numeric"});case"time":return r.toLocaleTimeString(o,{hour:"numeric",minute:"2-digit",hour12:!0});case"datetime":return r.toLocaleDateString(o,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0});default:return r.toLocaleDateString(o)}},Si=r=>r instanceof Date?r:typeof r=="number"?new Date(r):new Date(r),Bo=j.forwardRef(({className:r,date:t,format:o="relative",size:a="medium",variant:n="default",showIcon:s=!1,locale:l="en-US",...c},d)=>{const x=j.useMemo(()=>Si(t),[t]),p=j.useMemo(()=>Ci(x,o,l),[x,o,l]),f=j.useMemo(()=>x.toISOString(),[x]),u=n==="primary"?"var(--color-gray-800)":"var(--color-gray-600)",g=a==="small"?10:a==="large"?14:12;return e.jsxs("time",{ref:d,dateTime:f,className:y(yi({size:a,variant:n}),r),...c,children:[s&&e.jsx("span",{className:ji({size:a}),children:e.jsx(i.ClockHistory,{size:g,color:u})}),p]})});Bo.displayName="Timestamp";const ki=b("flex min-w-[420px] w-fit max-w-[850px] pl-4 pr-3 py-3 rounded-[var(--archie-radius-xl)] [box-shadow:var(--archie-shadow-lg)] border pointer-events-auto gap-2 relative items-center bg-white",{variants:{variant:{info:"bg-[linear-gradient(90deg,rgba(21,177,205,0.08)_0%,rgba(21,177,205,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-blue-800)]",success:"bg-[linear-gradient(90deg,rgba(113,212,129,0.08)_0%,rgba(113,212,129,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-green-1000)]",warning:"bg-[linear-gradient(90deg,rgba(242,229,40,0.08)_0%,rgba(242,229,40,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-orange-800)]",error:"bg-[linear-gradient(90deg,rgba(251,96,96,0.08)_0%,rgba(251,96,96,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-red-1000)]",prompt:"bg-[var(--color-gray-50)] border-[var(--color-blue-1000)]",loading:"bg-[linear-gradient(90deg,rgba(21,177,205,0.06)_0%,rgba(21,177,205,0.06)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-blue-800)]"}},defaultVariants:{variant:"info"}}),Ni=b("flex-shrink-0",{variants:{variant:{info:"text-[var(--color-blue-800)]",success:"text-[var(--color-green-1000)]",warning:"text-[var(--color-orange-800)]",error:"text-[var(--color-red-1000)]",prompt:"text-[var(--color-blue-1000)]",loading:"text-[var(--color-blue-800)]"}},defaultVariants:{variant:"info"}}),zi=b("flex flex-col gap-0.5 flex-1 min-w-0 overflow-hidden"),Ti=b("font-bold text-[var(--color-blue-1000)] text-[0.75rem] leading-normal whitespace-nowrap"),$i=b("font-normal text-[var(--color-gray-600)] text-[0.6875rem] leading-normal line-clamp-2"),Li=b("flex items-center gap-2 shrink-0"),Mi=b("w-[1px] self-stretch flex-shrink-0 bg-current",{variants:{variant:{info:"text-[var(--color-blue-800)]",success:"text-[var(--color-green-1000)]",warning:"text-[var(--color-orange-800)]",error:"text-[var(--color-red-1000)]",prompt:"text-[var(--color-blue-1000)]",loading:"text-[var(--color-blue-800)]"}},defaultVariants:{variant:"info"}}),Ai=b("p-0 bg-transparent border-none text-[var(--color-blue-1000)] hover:opacity-70 transition-opacity flex items-center justify-center w-4 h-4 shrink-0 cursor-pointer rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2"),Ri={info:i.Info,success:i.CheckCircle,warning:i.TriangleAlert,error:i.AlertCircle,prompt:i.Sparks,loading:null},Fi={info:"var(--color-blue-800)",success:"var(--color-green-1000)",warning:"var(--color-orange-800)",error:"var(--color-red-1000)",prompt:"var(--color-blue-800)",loading:"var(--color-blue-800)"},be=({id:r,variant:t="info",title:o,description:a,icon:n,action:s,secondaryAction:l,onClose:c})=>{const d=Ri[t],x=Fi[t],p=()=>{c&&c(),r&&ce.toast.dismiss(r)},f=g=>m=>{g(m),r&&ce.toast.dismiss(r)},u=()=>n||(t==="loading"?e.jsx("svg",{className:"animate-spin",width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:e.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:x,strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"28",strokeDashoffset:"8"})}):t==="success"?e.jsx(i.CheckCircle,{size:16,color:x}):t==="error"?e.jsx(i.AlertCircle,{size:16,color:x}):t==="prompt"?e.jsx(i.Sparks,{size:16,color:x}):d?e.jsx(d,{size:16}):null);return e.jsxs("div",{className:y(ki({variant:t})),role:"alert",children:[e.jsx("div",{className:Ni({variant:t}),children:u()}),e.jsxs("div",{className:zi(),children:[e.jsx("span",{className:Ti(),children:o}),a&&e.jsx("span",{className:$i(),children:a})]}),e.jsx("div",{className:Mi({variant:t})}),e.jsxs("div",{className:Li(),children:[l&&e.jsx(De,{onClick:f(l.onClick),variant:"ghost",size:"sm",leftIcon:l.icon||e.jsx(i.Trash,{size:13,color:"currentColor"}),className:"w-auto",children:l.label}),s&&e.jsx(De,{onClick:f(s.onClick),variant:"default",size:"sm",leftIcon:s.icon||e.jsx(i.Check,{size:13,color:"currentColor"}),className:"w-auto",children:s.label}),e.jsx("button",{onClick:p,className:Ai(),"aria-label":"Close",children:e.jsx(i.X,{size:16})})]})]})},Bi=({position:r="bottom-right",offset:t=24,gap:o=8,width:a,...n})=>e.jsx(ce.Toaster,{position:r,offset:t,gap:o,toastOptions:{unstyled:!0,classNames:{toast:y("bg-transparent p-0",a?"":"w-auto")},style:a?{width:typeof a=="number"?`${a}px`:a}:void 0},...n}),Di={success:(r,t,o)=>ce.toast.custom(a=>e.jsx(be,{id:a,variant:"success",title:r,description:t,action:o})),error:(r,t,o)=>ce.toast.custom(a=>e.jsx(be,{id:a,variant:"error",title:r,description:t,action:o})),warning:(r,t,o)=>ce.toast.custom(a=>e.jsx(be,{id:a,variant:"warning",title:r,description:t,action:o})),info:(r,t,o)=>ce.toast.custom(a=>e.jsx(be,{id:a,variant:"info",title:r,description:t,action:o})),prompt:(r,t,o,a)=>ce.toast.custom(n=>e.jsx(be,{id:n,variant:"prompt",title:r,description:t,action:o,secondaryAction:a})),loading:(r,t)=>ce.toast.custom(o=>e.jsx(be,{id:o,variant:"loading",title:r,description:t})),custom:r=>ce.toast.custom(t=>e.jsx(be,{id:t,...r}))},Ii=b("flex items-center justify-between w-full",{variants:{size:{s:"h-10",m:"min-h-[48px]",l:"min-h-[48px]"}},defaultVariants:{size:"l"}}),Ei=b("select-none",{variants:{size:{s:"text-[var(--color-blue-1000)]",m:"font-medium text-[var(--color-gray-1000)]",l:"font-medium text-[var(--color-gray-1000)]"}},defaultVariants:{size:"l"}}),Wi=b("relative inline-flex shrink-0 cursor-pointer items-center rounded-full transition-colors duration-[var(--archie-anim-duration)] ease-[var(--archie-anim-easing)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{enabled:{true:"bg-[var(--color-blue-800)]",false:"bg-[var(--color-gray-200)]"},size:{s:"h-4 w-7",m:"h-5 w-9",l:"h-6 w-11"}},defaultVariants:{enabled:!1,size:"l"}}),Pi=b("pointer-events-none inline-block transform rounded-full bg-white ring-0 transition duration-[var(--archie-anim-duration)] ease-[var(--archie-anim-easing)]",{variants:{enabled:{true:"",false:""},size:{s:"h-3 w-3 shadow-sm",m:"h-4 w-4 shadow",l:"h-5 w-5 shadow-lg"}},compoundVariants:[{enabled:!1,size:"s",class:"translate-x-0.5"},{enabled:!0,size:"s",class:"translate-x-[14px]"},{enabled:!1,size:"m",class:"translate-x-0.5"},{enabled:!0,size:"m",class:"translate-x-[18px]"},{enabled:!1,size:"l",class:"translate-x-0.5"},{enabled:!0,size:"l",class:"translate-x-[22px]"}],defaultVariants:{enabled:!1,size:"l"}}),Vi=b("font-bold uppercase text-[var(--color-gray-600)]",{variants:{size:{s:"text-[10px] w-5",m:"text-[10px] w-5",l:"text-xs w-6"}},defaultVariants:{size:"l"}}),Hi={s:"x-small",m:"small",l:"small"},Do=j.forwardRef(({enabled:r,onChange:t,label:o,size:a="l",showStatusLabel:n=!1,className:s,disabled:l,...c},d)=>e.jsxs("div",{className:y(Ii({size:a}),s),children:[o&&e.jsx(Ke,{variant:Hi[a],className:Ei({size:a}),children:o}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{ref:d,type:"button",role:"switch","aria-checked":r,disabled:l,onClick:()=>!l&&t(!r),className:Wi({enabled:r,size:a}),...c,children:e.jsx("span",{className:Pi({enabled:r,size:a})})}),n&&e.jsx("span",{className:Vi({size:a}),children:r?"ON":"OFF"})]})]}));Do.displayName="Toggle";const _i=b("flex items-center justify-between w-full gap-2 min-h-[20px]"),Oi=b("text-xs font-normal font-sans leading-4 whitespace-nowrap",{variants:{status:{success:"text-[var(--color-gray-800)]",warning:"text-[var(--color-gray-800)]",error:"text-[var(--color-gray-800)]",info:"text-[var(--color-gray-800)]",neutral:"text-[var(--color-gray-800)]",loading:"text-[var(--color-gray-800)]"}},defaultVariants:{status:"neutral"}}),Gi={success:"var(--color-green-1000)",warning:"var(--color-orange-800)",error:"var(--color-red-1000)",info:"var(--color-blue-800)",neutral:"var(--color-gray-600)",loading:"var(--color-blue-800)"},Io=j.forwardRef(({className:r,status:t="neutral",message:o,...a},n)=>{const s=t==="loading"?"info":t,l=Gi[t],c=()=>t==="loading"?e.jsx(i.Loader,{size:16,color:l,className:"animate-spin"}):t==="success"?e.jsx(i.CheckCircle,{size:16,color:l}):t==="warning"?e.jsx(i.TriangleAlert,{size:16,color:l}):t==="error"?e.jsx(i.AlertCircle,{size:16,color:l}):t==="info"?e.jsx(i.Info,{size:16,color:l}):null;return e.jsxs("div",{ref:n,className:y(_i(),r),...a,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ar,{variant:s,size:"small"}),e.jsx("span",{className:Oi({status:t}),children:o})]}),e.jsx("div",{className:"w-4 h-4 flex items-center justify-center",children:c()})]})});Io.displayName="StatusMessage";const Ui=b("inline-flex items-center px-[10px] py-[3px] rounded-full text-[11px] font-semibold whitespace-nowrap shrink-0",{variants:{status:{draft:"bg-[var(--color-gray-200)] text-[var(--color-gray-800)]",provisional:"bg-[#fef9c3] text-[#854d0e]",final:"bg-[var(--color-green-200)] text-[var(--color-green-1000)]"}},defaultVariants:{status:"draft"}}),Yi={draft:"Draft",provisional:"Provisional",final:"Final"};function Ki({title:r,subtitle:t,period:o,asAtDate:a,generatedAt:n,status:s,renderMode:l="web",className:c}){const d=l==="pdf",x=l==="excel",p=l==="web"&&s,f=l==="web"&&n,u=d?"12px 16px":x?"8px":"20px 24px",g=d?"18px":"20px";return e.jsxs("div",{className:y("flex items-start justify-between gap-4 bg-[var(--color-white)] border-b border-[var(--color-gray-200)]",c),style:{padding:u},children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("h1",{className:"m-0 font-bold leading-[1.25] text-[var(--color-gray-1000)]",style:{fontSize:g},children:r}),t&&e.jsx("p",{className:"m-0 text-[13px] text-[var(--color-gray-800)]",children:t}),e.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[o&&e.jsx("span",{className:"text-[12px] text-[var(--color-gray-600)]",children:o}),a&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-[12px] text-[var(--color-gray-200)]",children:"·"}),e.jsxs("span",{className:"text-[12px] text-[var(--color-gray-600)]",children:["As at ",a]})]}),o&&f&&e.jsx("span",{className:"text-[12px] text-[var(--color-gray-200)]",children:"·"}),f&&e.jsxs("span",{className:"text-[12px] text-[var(--color-gray-600)]",children:["Generated ",n]})]})]}),p&&e.jsx("span",{className:Ui({status:s}),children:Yi[s]??s})]})}const Zi={2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"},rr={up:"var(--color-green-1000)",down:"var(--color-red-1000)",flat:"var(--color-gray-800)",warning:"var(--color-amber-1000)"},tr="Geist Mono, ui-monospace, monospace";function Xi({items:r,columns:t=4,renderMode:o="web",className:a}){if(o==="pdf"||o==="excel")return e.jsx("table",{className:y(a),style:{width:"100%",borderCollapse:"collapse",border:o==="pdf"?"1px solid var(--color-gray-200)":void 0},children:e.jsx("tbody",{children:e.jsx("tr",{children:r.map((s,l)=>e.jsxs("td",{style:{padding:"8px 12px",verticalAlign:"top",borderRight:l<r.length-1?"1px solid var(--color-gray-200)":void 0},children:[e.jsx("div",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-gray-600)"},children:s.label}),e.jsx("div",{style:{fontSize:16,fontWeight:300,fontFamily:tr,fontVariantNumeric:"tabular-nums",letterSpacing:"-0.02em",color:"var(--color-gray-1000)",lineHeight:1.3,marginTop:2},children:s.value}),s.delta&&e.jsx("div",{style:{fontSize:11,fontWeight:600,fontFamily:tr,color:rr[s.deltaDir??"flat"]??rr.flat,marginTop:1},children:s.delta})]},l))})})});const n=Zi[t]??"grid-cols-4";return e.jsx("div",{className:y(`grid ${n} gap-3`,a),children:r.map((s,l)=>e.jsxs("div",{className:"bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-xl flex flex-col gap-1.5",style:{padding:"18px 20px"},children:[e.jsx("div",{className:"text-[10px] font-bold uppercase tracking-[0.08em] text-[var(--color-gray-600)]",children:s.label}),e.jsx("div",{className:"text-[22px] font-light leading-none text-[var(--color-gray-1000)]",style:{fontFamily:tr,fontVariantNumeric:"tabular-nums",letterSpacing:"-0.02em"},children:s.value}),s.delta&&e.jsx("div",{className:"text-[11px] font-semibold",style:{fontFamily:tr,color:rr[s.deltaDir??"flat"]??rr.flat},children:s.delta})]},l))})}const st={up:"var(--color-green-1000)",down:"var(--color-red-1000)",flat:"var(--color-gray-800)",warning:"var(--color-amber-1000)"};function qi({label:r,value:t,delta:o,deltaDir:a="flat",subtext:n,renderMode:s="web",className:l}){const c=s==="pdf",d=c?"20px":"28px",x=c?"12px 16px":"18px 20px";return e.jsxs("div",{className:y("bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-xl flex flex-col gap-1.5",l),style:{padding:x},children:[e.jsx("div",{className:"text-[10px] font-bold uppercase tracking-[0.08em] text-[var(--color-gray-600)]",children:r}),e.jsx("div",{className:"font-light leading-none text-[var(--color-gray-1000)]",style:{fontSize:d,fontFamily:"Geist Mono, ui-monospace, monospace",fontVariantNumeric:"tabular-nums",letterSpacing:"-0.02em"},children:t}),o&&e.jsx("div",{className:"text-[12px] font-semibold",style:{fontFamily:"Geist Mono, ui-monospace, monospace",color:st[a]??st.flat},children:o}),n&&e.jsx("div",{className:"text-[11px] text-[var(--color-gray-600)]",children:n})]})}function Ji({title:r,body:t,actions:o,renderMode:a="web",className:n}){const s=a==="web"&&o&&o.length>0,l=a==="pdf"?"16px 20px":"20px 24px";return e.jsxs("div",{className:y("bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-xl flex flex-col gap-3",n),style:{padding:l},children:[r&&e.jsx("h3",{className:"m-0 text-[15px] font-semibold text-[var(--color-gray-1000)]",children:r}),t&&e.jsx("p",{className:"m-0 text-[13px] leading-[1.6] text-[var(--color-gray-800)]",children:t}),s&&e.jsx("div",{className:"flex gap-2 flex-wrap",children:o.map((c,d)=>e.jsx("button",{onClick:c.onClick,className:"px-4 py-1.5 border border-[var(--color-gray-200)] rounded-lg bg-[var(--color-gray-50)] text-[var(--color-gray-1000)] text-[13px] font-medium cursor-pointer hover:bg-[var(--color-gray-100)] transition-colors duration-150",children:c.label},d))})]})}const Qi=b("flex gap-3 rounded-[10px] border items-start",{variants:{variant:{info:"bg-[var(--color-blue-200)] border-[var(--color-blue-400)]",success:"bg-[#f0fdf4] border-[#bbf7d0]",warning:"bg-[#fefce8] border-[#fde68a]",error:"bg-[var(--color-red-200)] border-[#fecaca]"}},defaultVariants:{variant:"info"}}),ec={info:"ℹ",success:"✓",warning:"⚠",error:"✕"},lt={info:"#1e40af",success:"#166534",warning:"#854d0e",error:"#991b1b"},it={info:"#3b82f6",success:"#16a34a",warning:"#d97706",error:"#dc2626"},rc={info:"var(--color-blue-400)",success:"#bbf7d0",warning:"#fde68a",error:"#fecaca"};function tc({variant:r="info",title:t,message:o,action:a,renderMode:n="web",className:s}){const l=n==="web"&&a,c=n==="pdf"?"10px 14px":"12px 16px";return e.jsxs("div",{className:y(Qi({variant:r}),s),style:{padding:c},children:[e.jsx("span",{className:"text-[14px] shrink-0 mt-[1px]",style:{color:it[r]},children:ec[r]}),e.jsxs("div",{className:"flex-1 flex flex-col gap-[2px]",children:[e.jsx("span",{className:"text-[13px] font-semibold",style:{color:lt[r]},children:t}),o&&e.jsx("span",{className:"text-[12px]",style:{color:it[r]},children:o})]}),l&&e.jsx("button",{onClick:a.onClick,className:"text-[12px] font-medium cursor-pointer bg-transparent shrink-0",style:{padding:"4px 12px",border:`1px solid ${rc[r]}`,borderRadius:6,color:lt[r]},children:a.label})]})}function oc({title:r,description:t,action:o,className:a}){return e.jsxs("div",{className:y("flex flex-col items-center justify-center gap-3 text-center",a),style:{padding:"48px 24px"},children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-gray-50)] border border-[var(--color-gray-200)] flex items-center justify-center text-[18px] text-[var(--color-gray-600)]",children:"○"}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("h3",{className:"m-0 text-[15px] font-semibold text-[var(--color-gray-1000)]",children:r}),t&&e.jsx("p",{className:"m-0 text-[13px] text-[var(--color-gray-800)]",style:{maxWidth:360},children:t})]}),o&&e.jsx("button",{onClick:o.onClick,className:"px-5 py-2 border-none rounded-lg bg-[var(--color-blue-1000)] text-[var(--color-white)] text-[13px] font-semibold cursor-pointer hover:opacity-90 transition-opacity duration-150",children:o.label})]})}const or={up:"var(--color-green-1000)",down:"var(--color-red-1000)",flat:"var(--color-gray-800)"},ct="Geist Mono, ui-monospace, monospace";function ac({items:r,renderMode:t="web",className:o}){return t==="pdf"||t==="excel"?e.jsx("div",{className:y("flex items-center gap-4 flex-wrap",o),style:{padding:"6px 0",fontSize:12,color:"var(--color-gray-800)"},children:r.map((a,n)=>e.jsxs("span",{style:{whiteSpace:"nowrap"},children:[e.jsxs("span",{style:{fontWeight:600,color:"var(--color-gray-600)",marginRight:4},children:[a.label,":"]}),e.jsx("span",{style:{fontFamily:ct,fontVariantNumeric:"tabular-nums",fontWeight:600,color:or[a.direction??"flat"]??or.flat},children:a.value}),n<r.length-1&&e.jsx("span",{style:{margin:"0 4px",color:"var(--color-gray-400)"},children:"|"})]},n))}):e.jsx("div",{className:y("flex items-stretch bg-[var(--color-gray-50)] border border-[var(--color-gray-200)] rounded-lg overflow-hidden",o),children:r.map((a,n)=>e.jsxs("div",{className:"flex-1 flex flex-col gap-1",style:{padding:"12px 16px",borderLeft:n>0?"1px solid var(--color-gray-200)":void 0},children:[e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.08em] text-[var(--color-gray-600)]",children:a.label}),e.jsx("span",{className:"text-[16px] font-semibold",style:{fontFamily:ct,fontVariantNumeric:"tabular-nums",color:or[a.direction??"flat"]??or.flat},children:a.value})]},n))})}const nc={default:"bg-[var(--color-white)] border border-[var(--color-gray-200)]",highlighted:"bg-[var(--color-gray-50)] border border-[var(--color-gray-200)]",audit:"bg-[#fffbeb] border border-[#fde68a]"};function sc({content:r,author:t,authorRole:o,date:a,sectionLabel:n,expandable:s=!1,defaultExpanded:l=!0,variant:c="default",renderMode:d="web",className:x}){const[p,f]=j.useState(l),g=d==="web"&&s&&r.length>200;return e.jsxs("div",{className:y("rounded-xl flex flex-col gap-3",nc[c],x),style:{padding:d==="pdf"?"12px 16px":"16px 20px"},children:[n&&e.jsx("p",{className:"m-0 text-[10px] font-bold uppercase tracking-[0.08em] text-[var(--color-gray-600)]",children:n}),e.jsx("p",{className:y("m-0 text-[13px] leading-[1.65] text-[var(--color-gray-800)]",!p&&g&&"line-clamp-3"),children:r}),g&&e.jsx("button",{onClick:()=>f(m=>!m),className:"self-start text-[12px] font-medium text-[var(--color-blue-800)] hover:text-[var(--color-blue-1000)] cursor-pointer transition-colors duration-150 bg-transparent border-none p-0",children:p?"Show less":"Read more"}),(t||a)&&e.jsxs("div",{className:"flex items-center gap-2 pt-1 border-t border-[var(--color-gray-200)] mt-1 flex-wrap",children:[t&&e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:"w-5 h-5 rounded-full bg-[var(--color-blue-1000)] flex items-center justify-center text-[9px] font-bold text-[var(--color-white)] shrink-0","aria-hidden":"true",children:t.split(" ").map(m=>m[0]).join("").slice(0,2).toUpperCase()}),e.jsx("span",{className:"text-[12px] font-medium text-[var(--color-gray-1000)]",children:t}),o&&e.jsxs("span",{className:"text-[12px] text-[var(--color-gray-600)]",children:["· ",o]})]}),a&&e.jsx("span",{className:"text-[12px] text-[var(--color-gray-600)] ml-auto",children:a})]})]})}function lc({label:r,description:t,sectionNumber:o,children:a,noBorder:n=!1,renderMode:s="web",className:l}){const c=s==="pdf",x=c||s==="excel";return e.jsxs("section",{className:y("flex flex-col",x?"gap-2":"gap-4",!n&&(x?"border-t border-[var(--color-gray-200)] pt-4":"border-t border-[var(--color-gray-200)] pt-6"),l),children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("h2",{className:"m-0 uppercase flex items-center gap-2",style:{fontSize:c?11:13,fontWeight:700,color:"var(--color-gray-1000)",letterSpacing:"0.08em",borderLeft:c?"3px solid var(--color-blue-800)":void 0,paddingLeft:c?8:void 0},children:[o&&e.jsx("span",{className:"tabular-nums",children:o}),r]}),t&&e.jsx("p",{className:"m-0 text-[13px] text-[var(--color-gray-800)]",children:t})]}),a&&e.jsx("div",{className:y("flex flex-col",x?"gap-2":"gap-4"),children:a})]})}const ic={month:"Monthly",quarter:"Quarterly",year:"Annual",custom:"Custom"},dt="inline-flex items-center justify-center w-7 h-7 rounded-md border border-[var(--color-gray-200)] bg-[var(--color-white)] text-[var(--color-gray-800)] hover:bg-[var(--color-gray-100)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors duration-150 cursor-pointer";function cc({current:r,available:t=[],format:o,availableFormats:a=[],onPeriodChange:n,onFormatChange:s,hasPrev:l=!0,hasNext:c=!1,compact:d=!1,className:x}){const p=t.findIndex(g=>g.id===r.id),f=()=>{if(!l)return;const g=p>0?t[p-1]:null;g&&(n==null||n(g.id))},u=()=>{if(!c)return;const g=p<t.length-1?t[p+1]:null;g&&(n==null||n(g.id))};return e.jsxs("div",{className:y("flex items-center gap-2 flex-wrap",d?"gap-1":"gap-2",x),children:[e.jsx("button",{className:dt,disabled:!l,onClick:f,"aria-label":"Previous period",title:"Previous period",children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M7.5 2L3.5 6L7.5 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),t.length>1?e.jsx("select",{className:y("border border-[var(--color-gray-200)] rounded-md bg-[var(--color-white)] text-[var(--color-gray-1000)] font-medium cursor-pointer hover:bg-[var(--color-gray-100)] transition-colors duration-150 appearance-none text-center",d?"text-[12px] px-2 py-1":"text-[13px] px-3 py-1.5"),value:r.id,onChange:g=>n==null?void 0:n(g.target.value),"aria-label":"Select period",children:t.map(g=>e.jsx("option",{value:g.id,children:g.label},g.id))}):e.jsx("span",{className:y("font-semibold text-[var(--color-gray-1000)] min-w-[80px] text-center",d?"text-[12px]":"text-[13px]"),children:r.label}),e.jsx("button",{className:dt,disabled:!c,onClick:u,"aria-label":"Next period",title:"Next period",children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M4.5 2L8.5 6L4.5 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),a.length>1&&o&&e.jsx("div",{className:"flex items-center border border-[var(--color-gray-200)] rounded-md overflow-hidden bg-[var(--color-white)]",role:"group","aria-label":"Period format",children:a.map(g=>e.jsx("button",{onClick:()=>s==null?void 0:s(g),className:y("cursor-pointer transition-colors duration-150",d?"px-2 py-1 text-[11px]":"px-3 py-1.5 text-[12px]",g===o?"bg-[var(--color-gray-1000)] text-[var(--color-white)] font-semibold":"text-[var(--color-gray-800)] hover:bg-[var(--color-gray-100)]"),"aria-pressed":g===o,children:ic[g]},g))})]})}const dc=b("flex items-center",{variants:{variant:{default:"border border-[var(--color-gray-200)] rounded-md overflow-hidden bg-[var(--color-white)]",pills:"gap-1"}},defaultVariants:{variant:"default"}}),pc=b("cursor-pointer transition-colors duration-150 font-medium whitespace-nowrap disabled:opacity-40 disabled:cursor-not-allowed",{variants:{variant:{default:"px-3 py-1.5 text-[12px]",pills:"px-3 py-1 text-[12px] rounded-full border"},active:{true:"",false:""}},compoundVariants:[{variant:"default",active:!0,className:"bg-[var(--color-gray-1000)] text-[var(--color-white)]"},{variant:"default",active:!1,className:"text-[var(--color-gray-800)] hover:bg-[var(--color-gray-100)]"},{variant:"pills",active:!0,className:"bg-[var(--color-blue-1000)] border-[var(--color-blue-1000)] text-[var(--color-white)]"},{variant:"pills",active:!1,className:"bg-[var(--color-white)] border-[var(--color-gray-200)] text-[var(--color-gray-800)] hover:bg-[var(--color-gray-100)]"}],defaultVariants:{variant:"default",active:!1}});function xc({modes:r,activeMode:t,onModeChange:o,variant:a="default",compact:n=!1,className:s}){return e.jsx("div",{className:y(dc({variant:a}),s),role:"group","aria-label":"Comparison mode",children:r.map(l=>{const c=l.id===t,d=n&&l.shortLabel?l.shortLabel:l.label;return e.jsx("button",{onClick:()=>!l.disabled&&(o==null?void 0:o(l.id)),disabled:l.disabled,className:pc({variant:a,active:c}),"aria-pressed":c,children:d},l.id)})})}const fc={pdf:{label:"PDF",icon:"⬇"},excel:{label:"Excel",icon:"⬇"},csv:{label:"CSV",icon:"⬇"},print:{label:"Print",icon:"⎙"}};function uc({actions:r,label:t,size:o="md",className:a}){const n=y("inline-flex items-center gap-1.5 border border-[var(--color-gray-200)] rounded-md bg-[var(--color-white)] text-[var(--color-gray-800)] font-medium cursor-pointer hover:bg-[var(--color-gray-100)] active:bg-[var(--color-gray-200)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors duration-150",o==="sm"?"px-2 py-1 text-[11px]":"px-3 py-1.5 text-[12px]");return e.jsxs("div",{className:y("flex items-center gap-2 flex-wrap",a),children:[t&&e.jsx("span",{className:"text-[12px] text-[var(--color-gray-600)] font-medium mr-1",children:t}),r.map(s=>{const l=fc[s.format],c=s.label??l.label;return e.jsxs("button",{onClick:s.onClick,disabled:s.disabled,className:n,"aria-label":`Export as ${c}`,children:[e.jsx("span",{"aria-hidden":"true",className:"text-[var(--color-gray-600)]",children:l.icon}),c]},s.format)})]})}const gc={draft:{label:"Draft",bg:"var(--color-gray-200)",color:"var(--color-gray-800)"},reviewed:{label:"Reviewed",bg:"#fef9c3",color:"#854d0e"},"signed-off":{label:"Signed Off",bg:"var(--color-green-200)",color:"var(--color-green-1000)"},filed:{label:"Filed",bg:"var(--color-blue-200)",color:"var(--color-blue-1000)"}};function mc({firmName:r,preparedBy:t,reviewedBy:o,date:a,reference:n,status:s="draft",renderMode:l="web",className:c}){const d=gc[s],x=l==="web";return e.jsxs("div",{className:y("flex items-start justify-between gap-6 border-t border-[var(--color-gray-200)] pt-4 mt-2",c),children:[e.jsxs("div",{className:"flex flex-col gap-1.5",children:[r&&e.jsx("p",{className:"m-0 text-[13px] font-semibold text-[var(--color-gray-1000)]",children:r}),n&&e.jsx("p",{className:"m-0 text-[11px] text-[var(--color-gray-600)] uppercase tracking-[0.06em]",children:n}),e.jsxs("div",{className:"flex items-center gap-4 mt-0.5 flex-wrap",children:[t&&e.jsxs("span",{className:"text-[12px] text-[var(--color-gray-800)]",children:[e.jsx("span",{className:"text-[var(--color-gray-600)] mr-1",children:"Prepared by"}),t]}),o&&e.jsxs("span",{className:"text-[12px] text-[var(--color-gray-800)]",children:[e.jsx("span",{className:"text-[var(--color-gray-600)] mr-1",children:"Reviewed by"}),o]}),a&&e.jsx("span",{className:"text-[12px] text-[var(--color-gray-600)]",children:a})]})]}),x&&e.jsx("span",{className:"inline-flex items-center px-[10px] py-[3px] rounded-full text-[11px] font-semibold whitespace-nowrap shrink-0",style:{background:d.bg,color:d.color},children:d.label})]})}function hc({footnotes:r,className:t}){return r.length===0?null:e.jsxs("div",{className:y("border-t border-[var(--color-gray-200)] pt-4 flex flex-col gap-1.5",t),"aria-label":"Footnotes",children:[e.jsx("p",{className:"m-0 text-[10px] font-bold uppercase tracking-[0.08em] text-[var(--color-gray-600)] mb-1",children:"Notes"}),r.map(o=>e.jsxs("div",{id:`fn-${o.number}`,className:"flex items-start gap-2",children:[e.jsxs("span",{className:"text-[11px] font-semibold text-[var(--color-blue-800)] shrink-0 w-5 text-right tabular-nums",children:["[",o.number,"]"]}),e.jsx("p",{className:"m-0 text-[12px] text-[var(--color-gray-800)] leading-[1.5]",children:o.text})]},o.number))]})}const bc=b("flex items-center justify-between w-full gap-2 min-h-[20px]"),vc=b("flex items-center gap-2"),yc=b("text-[12px] font-normal font-sans leading-[16px]",{variants:{status:{running:"text-[var(--color-gray-800)]",completed:"text-[var(--color-gray-800)]",stopped:"text-[var(--color-blue-800)]"}},defaultVariants:{status:"running"}}),pt=b("w-4 h-4 flex items-center justify-center shrink-0"),jc={running:"var(--color-gray-800)",completed:"var(--color-gray-800)",stopped:"var(--color-blue-800)"},wc={running:"var(--color-gray-800)",completed:"var(--color-green-1000)",stopped:"var(--color-blue-800)"},Eo=j.forwardRef(({className:r,status:t="running",message:o,...a},n)=>{const s=jc[t],l=wc[t],c=()=>t==="completed"?e.jsx(i.CheckCircle,{size:16,color:l}):t==="stopped"?e.jsx(i.Hand,{size:16,color:l}):e.jsx(i.Pause,{size:16,color:l});return e.jsxs("div",{ref:n,className:y(bc(),r),...a,children:[e.jsxs("div",{className:vc(),children:[e.jsx("div",{className:pt(),children:e.jsx(i.Hexagon,{size:16,color:s})}),e.jsx("span",{className:yc({status:t}),children:o})]}),e.jsx("div",{className:pt(),children:c()})]})});Eo.displayName="AutopilotAction";const Cc={default:"text-[var(--color-gray-600)] hover:bg-[var(--color-gray-200)]",accent:"text-[var(--color-blue-800)] hover:opacity-80",bordered:"border border-[rgba(0,13,77,0.45)] rounded-lg px-2 py-1 text-[rgba(0,9,51,0.65)] hover:bg-[rgba(0,13,77,0.05)]",tertiary:"border border-[var(--color-blue-800)] rounded-lg px-2 py-1 text-[var(--color-blue-800)] hover:bg-[var(--color-blue-50)]"};function Wo({text:r,label:t,variant:o="default",className:a=""}){const[n,s]=j.useState(!1),l=async d=>{d.stopPropagation(),await navigator.clipboard.writeText(r),s(!0),setTimeout(()=>s(!1),2e3)},c=o==="accent"||o==="tertiary"?"text-[var(--color-blue-800)]":"text-[var(--color-gray-500)]";return e.jsx("button",{onClick:l,className:`flex items-center gap-1.5 px-2 py-1 rounded text-xs ${Cc[o]} transition-colors ${a}`,children:n?e.jsxs(e.Fragment,{children:[t?"Copied":null,e.jsx(i.Check,{size:13,className:c})]}):e.jsxs(e.Fragment,{children:[t??null,e.jsx(i.Clipboard,{size:13})]})})}function Sc({title:r,badge:t,copyText:o,open:a,onOpenChange:n,defaultOpen:s=!1,children:l,className:c,variant:d="default"}){const[x,p]=j.useState(s),f=a!==void 0,u=f?a:x,g=d==="compact",m=()=>{const h=!u;f||p(h),n==null||n(h)};return e.jsxs("div",{className:`rounded-lg border border-[var(--color-gray-200)] bg-white overflow-hidden transition-colors hover:border-[var(--color-blue-800)] ${c??""}`,children:[e.jsxs("button",{type:"button",onClick:m,className:`w-full flex items-center justify-between transition-colors text-left ${g?"px-3 py-2":"px-2 py-1"}`,children:[e.jsxs("div",{className:`flex items-center ${g?"gap-[7px]":"gap-3"}`,children:[e.jsx("span",{className:"text-[var(--color-blue-1000)] flex-shrink-0 transition-transform duration-200",style:{transform:u?"rotate(90deg)":"rotate(0deg)"},children:e.jsx(i.ChevronRight,{size:g?20:16})}),e.jsx("span",{className:`text-[var(--color-blue-1000)] ${g?"text-xs leading-4 font-normal":"text-sm font-semibold"}`,children:r}),t!==void 0&&(g?e.jsx("span",{className:"text-[10px] leading-none rounded bg-[var(--color-blue-1000)] text-white px-1.5 py-0.5",children:t}):e.jsxs("span",{className:"inline-flex items-center gap-1 bg-[var(--color-gray-100)] text-[var(--color-gray-600)] rounded px-[2px] py-[2px] text-[10px] leading-none",children:[e.jsx(i.Settings,{size:14,className:"text-[var(--color-gray-600)]"}),t]}))]}),o&&e.jsx("div",{className:"flex-shrink-0",onClick:h=>h.stopPropagation(),children:e.jsx(Wo,{text:o,label:"Copy",variant:g?"accent":"default"})})]}),e.jsx("div",{className:"grid transition-[grid-template-rows] duration-200 ease-in-out motion-reduce:transition-none",style:{gridTemplateRows:u?"1fr":"0fr",contain:"layout style",willChange:"grid-template-rows"},children:e.jsx("div",{className:"overflow-hidden min-h-0",children:e.jsx("div",{className:`${u?"border-t border-[var(--color-gray-200)]":""} p-2`,children:l})})})]})}const kc=b("z-50 rounded-[4px] px-3 py-3 shadow-[0px_8px_8px_-4px_rgba(0,0,0,0.04),0px_20px_24px_-4px_rgba(0,0,0,0.08)] max-w-[var(--radix-tooltip-content-available-width)] origin-[var(--radix-tooltip-content-transform-origin)]",{variants:{variant:{default:"bg-[var(--color-blue-1000)] text-[var(--color-gray-50)]",light:"bg-[var(--color-gray-50)] text-[var(--color-gray-1000)]"}},defaultVariants:{variant:"default"}}),Nc=b("",{variants:{variant:{default:"fill-[var(--color-blue-1000)]",light:"fill-[var(--color-gray-50)]"}},defaultVariants:{variant:"default"}}),zc=({delayDuration:r=0,...t})=>e.jsx(Ce.Provider,{delayDuration:r,...t}),Tc=Ce.Root,$c=Ce.Trigger,Po=Be.forwardRef(({className:r,sideOffset:t=4,children:o,variant:a,...n},s)=>e.jsx(Ce.Portal,{children:e.jsx(Ce.Content,{ref:s,sideOffset:t,asChild:!0,className:y(kc({variant:a}),r),...n,children:e.jsxs(q.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[e.jsx(Ke,{variant:"x-small",color:"inherit",className:"font-normal relative z-10",children:o}),e.jsx(Ce.Arrow,{className:Nc({variant:a})})]})})}));Po.displayName=Ce.Content.displayName;const Lc=b("w-full h-[48px] box-border flex items-center justify-between px-[16px] py-[12px] bg-[var(--color-white)] border-b border-[var(--color-gray-200)]"),Mc=b("flex items-center gap-[12px] h-[24px]"),Ac=b("flex items-center gap-[12px] h-[24px] rounded-[8px]"),xt=b("flex items-center justify-center size-[16px] overflow-hidden text-[var(--color-gray-800)] hover:text-[var(--color-blue-800)] transition-colors bg-transparent border-none cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] rounded-sm disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:text-[var(--color-gray-800)]",{variants:{disabled:{true:"opacity-50 cursor-not-allowed hover:text-[var(--color-gray-800)]"}},defaultVariants:{disabled:!1}}),Rc=b("flex items-center gap-[8px]"),Fc=b("flex items-center"),Vo=j.forwardRef(({className:r,breadcrumbs:t,tags:o=[],collaborators:a=[],onAddTag:n,onAddCollaborator:s,tagsOverflowCount:l=0,addTagDisabled:c=!1,addCollaboratorDisabled:d=!1,...x},p)=>e.jsxs("div",{ref:p,className:y(Lc(),r),...x,children:[e.jsx(co,{items:t,size:"medium"}),e.jsx("div",{className:Mc(),children:e.jsxs("div",{className:Ac(),children:[(o.length>0||l>0)&&e.jsxs("div",{className:Rc(),children:[o.map(f=>e.jsx(Ie,{variant:"default",className:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] text-[var(--color-gray-800)] px-[8px] py-[2px] text-[10px] h-[20px]",children:f.label},f.id)),l>0&&e.jsxs(Ie,{variant:"default",className:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] text-[var(--color-gray-800)] px-[8px] py-[2px] text-[10px] h-[20px]",children:["+",l]})]}),a.length>0&&e.jsx("div",{className:Fc(),children:e.jsx("div",{className:"flex items-center flex-row-reverse",children:a.map((f,u)=>e.jsx("div",{className:"relative shrink-0 border-[1.5px] border-white rounded-full",style:{zIndex:a.length-u,marginRight:u<a.length-1?-4:0},children:e.jsx(xr,{initials:f.name,src:f.src,alt:f.name,className:"size-[24px] text-[10px]"})},f.id))})}),e.jsx("button",{type:"button",onClick:n,className:xt({disabled:c}),"aria-label":"Add tag",disabled:c,children:e.jsx(i.TagPlus,{size:16})}),e.jsx("button",{type:"button",onClick:s,className:xt({disabled:d}),"aria-label":"Add collaborator",disabled:d,children:e.jsx(i.UserPlus,{size:16})})]})})]}));Vo.displayName="ConversationHeader";const Bc=b("fixed inset-0 z-50 bg-[rgba(0,6,38,0.5)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),Dc=b("fixed left-[50%] top-[50%] z-50 translate-x-[-50%] translate-y-[-50%] bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[var(--archie-radius-xl)] [box-shadow:var(--archie-shadow-lg)] p-4 flex flex-col gap-2 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 duration-[var(--archie-anim-duration)]",{variants:{size:{sm:"w-[95vw] sm:w-[300px] max-w-[calc(100vw-2rem)]",md:"w-[95vw] sm:w-[400px] max-w-[calc(100vw-2rem)]",lg:"w-[95vw] sm:w-[500px] max-w-[calc(100vw-2rem)]",xl:"w-[95vw] sm:w-[600px] max-w-[calc(100vw-2rem)]",full:"w-[100vw] h-[100vh] sm:w-[calc(100vw-2rem)] sm:h-[calc(100vh-2rem)] rounded-none sm:rounded-[var(--archie-radius-xl)]"}},defaultVariants:{size:"md"}}),Ic=b("absolute right-4 top-4 flex-shrink-0 w-4 h-4 text-[var(--color-blue-1000)] cursor-pointer bg-transparent border-none p-0 hover:opacity-70 transition-opacity focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2 rounded-sm"),Ec=b("!font-[Geist,system-ui,-apple-system,sans-serif] font-medium text-[1rem] leading-[1.5rem] text-[var(--color-blue-1000)] w-full"),Wc=b("font-[Geist,system-ui,-apple-system,sans-serif] font-normal text-[0.875rem] leading-[1.25rem] text-[var(--color-gray-800)] w-full"),Pc=b("flex flex-col gap-4 w-full",{variants:{size:{sm:"max-h-[60vh] overflow-y-auto",md:"max-h-[70vh] overflow-y-auto",lg:"max-h-[75vh] overflow-y-auto",xl:"max-h-[80vh] overflow-y-auto",full:"flex-1 overflow-y-auto"},contentAlign:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"}},defaultVariants:{size:"md",contentAlign:"start"}}),Vc=b("flex gap-2 items-start w-full"),Ho=({open:r,onOpenChange:t,title:o,description:a,showCloseButton:n=!0,closeIcon:s,children:l,primaryAction:c,secondaryAction:d,closeOnClickOutside:x=!0,closeOnEsc:p=!0,onClose:f,className:u,overlayClassName:g,contentClassName:m,footerClassName:h,size:v="md",contentAlign:w="start"})=>{const N=j.useRef(null),L=j.useRef(null),T=j.useCallback(S=>{t(S),S||f==null||f()},[t,f]),C=j.useCallback(async()=>{c!=null&&c.onClick&&await c.onClick()},[c]),z=j.useCallback(async()=>{d!=null&&d.onClick&&await d.onClick()},[d]),D=j.useCallback(S=>{p||S.preventDefault()},[p]),$=j.useCallback(S=>{x||S.preventDefault()},[x]),F=c||d;return e.jsx(pe.Root,{open:r,onOpenChange:T,children:e.jsxs(pe.Portal,{children:[e.jsx(pe.Overlay,{className:y(Bc(),g)}),e.jsxs(pe.Content,{className:y(Dc({size:v}),u),onEscapeKeyDown:D,onPointerDownOutside:$,children:[o?e.jsx(pe.Title,{className:Ec(),children:o}):e.jsx(Gr.Root,{children:e.jsx(pe.Title,{children:"Modal dialog"})}),a?e.jsx(pe.Description,{className:Wc(),children:a}):e.jsx(Gr.Root,{children:e.jsx(pe.Description,{children:"Modal content"})}),n&&e.jsx(pe.Close,{asChild:!0,children:e.jsx("button",{className:Ic(),"aria-label":"Close modal",children:s||e.jsx(i.X,{size:16,color:"currentColor"})})}),l&&e.jsx("div",{className:y(Pc({size:v,contentAlign:w}),m),children:l}),F&&e.jsxs("div",{className:y(Vc(),h),children:[d&&e.jsx(De,{ref:L,variant:d.variant||"secondary",size:"sm",onClick:z,disabled:d.disabled||d.loading,leftIcon:d.icon,className:"flex-1",children:d.label}),c&&e.jsx(De,{ref:N,variant:c.variant||"default",size:"sm",onClick:C,disabled:c.disabled||c.loading,leftIcon:c.icon,className:"flex-1",children:c.label})]})]})]})})};Ho.displayName="Modal";const Hc=r=>e.jsx(q.motion.svg,{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",animate:{rotate:r?90:0},transition:{duration:.15,ease:"easeOut"},"aria-hidden":"true",style:{display:"inline-block",flexShrink:0},children:e.jsx("path",{d:"M3 2L7 5L3 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function _c({cells:r,drillRows:t,colCount:o,defaultExpanded:a=!1,onToggle:n,rowClassName:s,drillRowClassName:l}){const[c,d]=j.useState(a),x=()=>{const p=!c;d(p),n==null||n(p)};return e.jsxs(e.Fragment,{children:[e.jsx("tr",{className:y("cursor-pointer select-none transition-colors duration-150","hover:bg-[var(--color-gray-50)] active:bg-[var(--color-gray-100)]",c&&"bg-[var(--color-gray-50)]",s),onClick:x,tabIndex:0,role:"button","aria-expanded":c,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),x())},children:r.map((p,f)=>e.jsx("td",{style:{padding:"10px 16px",fontSize:13},children:f===0?e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-[var(--color-gray-600)]",children:Hc(c)}),p]}):p},f))}),e.jsx(q.AnimatePresence,{initial:!1,children:c&&e.jsx("tr",{children:e.jsx("td",{colSpan:o,style:{padding:0,border:"none"},children:e.jsx(q.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:[.4,0,.2,1]},style:{overflow:"hidden"},children:e.jsx("table",{style:{width:"100%",borderCollapse:"collapse"},children:e.jsx("tbody",{children:t.map(p=>e.jsx("tr",{className:y("border-b border-[var(--color-gray-100)] last:border-0",l),style:{background:"var(--color-gray-50)"},children:p.cells.map((f,u)=>e.jsx("td",{style:{padding:"8px 16px",paddingLeft:u===0?36:16,fontSize:12,color:"var(--color-gray-800)"},children:f},u))},p.key))})})})})},"drill-wrapper")})]})}const Oc={a4:"210mm",letter:"216mm","a4-landscape":"297mm","letter-landscape":"279mm"};function Gc({printHeader:r,printFooter:t,paperSize:o="a4",renderMode:a="web",children:n,className:s}){const l=a==="pdf",c=a==="excel",d=o==="a4-landscape"||o==="letter-landscape",x=d?o==="a4-landscape"?"a4":"letter":o??"a4",p=l?"12mm":"20mm",f=`15mm ${p}`,u=`15mm ${p}`,g=l?"gap-6":c?"gap-2":"gap-6";return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
59
+ `}),e.jsx("path",{d:"M239.997 257.024C239.13 256.261 238.348 255.328 237.671 254.268C236.994 253.208 236.55 252.126 236.359 251.066C236.169 250.006 236.359 249.179 236.93 248.585C239.659 245.277 243.233 242.118 247.696 239.107C252.138 236.095 256.601 234.59 261.063 234.59C263.2 234.59 264.595 235.375 265.293 236.922C265.97 238.47 266.309 240.018 266.309 241.587C266.309 244.302 265.568 246.443 264.13 247.991C262.692 249.539 260.831 250.854 258.61 251.914C256.389 252.996 254.062 253.907 251.63 254.692C249.198 255.455 247.04 256.24 245.095 257.024L242.768 258.191C241.795 258.191 240.886 257.809 239.997 257.024Z",fill:l,style:{transformOrigin:"252px 247px",animation:`drawDot-${i.replace(/:/g,"")} 0.3s ease-out ${n+a*.9}s forwards`,opacity:0}}),e.jsx("path",{d:"M308.102 176.765C306.453 175.663 304.126 174.963 301.123 174.687C298.119 174.411 294.46 174.433 290.167 174.772C285.873 175.111 281.008 175.578 275.594 176.193C273.648 176.405 271.829 176.617 270.179 176.808L245.793 180.942C242.091 181.536 239.003 182.003 236.486 182.406C233.969 182.808 231.558 182.702 229.232 182.13L193.572 185.777C193.952 184.293 194.587 182.893 195.517 181.6C196.469 180.243 197.548 179.161 198.711 178.398C205.099 169.068 211.254 160.056 217.176 151.299C223.077 142.562 228.639 134.102 233.885 125.959L234.752 121.888L253.936 88.6814C253.936 87.3243 254.422 86.2641 255.395 85.4795C256.368 84.7162 257.045 83.4439 257.425 81.7051L260.344 73.2445C260.915 71.6966 261.465 70.0426 261.93 68.2826C262.417 66.5439 262.671 64.5082 262.671 62.1757C262.671 60.8186 262.459 59.1223 262.1 57.0866C261.698 55.051 261.084 53.1426 260.217 51.4038C259.35 49.6438 258.271 48.1595 257.024 46.8872C255.776 45.615 254.168 45 252.243 45C250.89 45 249.388 45.3817 247.738 46.1663C246.089 46.9509 244.439 47.9263 242.789 49.0925C241.139 50.2588 239.595 51.4674 238.136 52.7397C236.677 54.012 235.471 55.0298 234.498 55.7932L207.468 81.7263L206.008 82.5957L192.641 96.2939C192.429 96.2939 192.112 96.3999 191.626 96.5907C191.139 96.7816 190.801 96.8876 190.61 96.8876L122.04 164.763C120.094 164.763 117.493 163.894 114.193 162.134C110.915 160.374 107.023 159.505 102.56 159.505C101.587 159.505 100.53 159.802 99.3666 160.374C98.2033 160.947 97.3361 161.243 96.7439 161.243C95.9613 161.243 95.2422 160.798 94.5654 159.929C93.8885 159.059 92.7887 158.635 91.2236 158.635C86.5704 159.611 83.567 160.183 82.2134 160.374C80.8597 160.586 79.9714 160.671 79.5907 160.671C77.6448 159.886 76.397 159.696 75.8047 160.098C75.2125 160.501 74.7472 160.777 74.3453 160.968C73.7743 160.586 72.3149 160.247 69.9883 159.95C67.6617 159.674 65.5255 159.505 63.6008 159.505C60.682 159.505 56.6634 159.611 51.5449 159.802C46.4053 159.992 41.3715 160.629 36.4434 161.689C31.5153 162.749 27.2005 164.488 23.5203 166.926C19.8401 169.365 18 172.8 18 177.274C18 181.155 18.9518 184.462 20.8976 187.177C22.8435 189.912 25.3181 192.223 28.3215 194.174C31.3249 196.125 34.6667 197.524 38.3469 198.394C42.0271 199.263 45.6016 199.709 49.0915 199.709C51.2277 200.281 53.1524 200.09 54.9079 199.136C54.6964 199.136 55.7328 199.369 57.9536 199.857C60.1744 200.345 62.9451 200.79 66.2235 201.172C69.523 201.553 72.9494 201.999 76.545 202.465C80.1195 202.953 83.0806 203.207 85.4071 203.207L59.5399 232.915L54.0196 239.319C52.8563 240.294 52.4333 241.948 52.7294 244.281C53.0043 246.613 53.6389 247.779 54.6118 247.779C57.1287 247.779 60.3225 246.083 64.193 242.69C68.0636 239.297 72.1457 235.163 76.397 230.307C80.6694 225.451 84.9207 220.51 89.1931 215.464C93.4444 210.417 97.2303 206.24 100.53 202.932C100.911 202.932 101.312 202.974 101.693 203.08C102.074 203.165 102.455 203.228 102.856 203.228C115.822 203.228 127.878 202.847 139.045 202.062C150.192 201.299 160.407 200.896 169.692 200.896C166.985 205.37 164.066 209.929 160.978 214.594C157.89 219.259 154.591 224.115 151.101 229.162L127.285 264.701C125.932 266.842 124.726 268.984 123.648 271.104C122.569 273.225 122.061 275.366 122.061 277.508C122.061 279.056 122.59 280.371 123.648 281.431C124.705 282.491 125.826 283.042 126.989 283.042C129.316 283.042 131.346 282.364 133.081 281.007C134.815 279.65 136.613 278.038 138.453 276.193C140.293 274.349 142.197 272.44 144.121 270.511C146.046 268.56 148.373 267.012 151.08 265.846L182.467 237.007C182.658 236.414 183.102 235.777 183.758 235.12C184.434 234.442 185.259 233.615 186.232 232.639L197.273 223.33C200.192 220.807 202.941 217.881 205.543 214.573C208.166 211.286 209.477 209.145 209.477 208.169C209.477 206.027 208.229 204.967 205.712 204.967C205.331 204.967 204.697 205.116 203.83 205.413C202.962 205.709 201.947 206.346 200.784 207.3L156.896 248.076L146.152 255.646L149.049 251.575C149.832 250.218 151.186 248.034 153.132 245.023C155.056 242.012 157.192 238.725 159.519 235.12C161.846 231.537 164.32 227.805 166.943 223.903C169.566 220.022 172.019 216.418 174.367 213.11C176.693 209.823 178.724 207.045 180.458 204.819C182.193 202.592 183.44 201.278 184.223 200.875C184.604 200.684 185.386 200.493 186.55 200.302C186.803 200.281 187.121 200.281 187.374 200.239L196.871 199.433C201.672 199.009 206.304 198.161 210.746 196.931C215.166 195.68 219.798 194.853 224.6 194.407C226.122 194.301 228.893 193.983 232.891 193.474C236.909 192.965 241.266 192.393 245.941 191.757C250.615 191.142 254.993 190.527 259.075 189.912C263.157 189.297 265.991 188.852 267.599 188.555C269.206 188.258 270.602 188.025 271.787 187.834C272.971 187.664 274.431 187.516 276.165 187.41C276.313 187.41 276.503 187.177 276.651 187.134L281.579 186.583C284.435 186.265 286.888 186.095 288.961 186.095C291.013 186.095 292.514 186.18 293.445 186.392C292.726 188.152 292.112 189.361 291.563 190.039C291.034 190.718 290.59 191.142 290.23 191.333C289.871 191.524 289.659 191.672 289.596 191.757C289.532 191.842 289.532 192.181 289.596 192.796C289.807 194.768 291.647 195.531 295.116 195.15C295.708 195.086 296.491 194.81 297.421 194.323C298.352 193.835 299.325 193.305 300.319 192.732C301.313 192.16 302.286 191.545 303.195 190.909C304.126 190.272 304.782 189.7 305.184 189.191C306.072 188.937 307.299 188.046 308.885 186.477C310.45 184.929 311.169 183.402 311 181.875C310.746 179.628 309.794 177.931 308.145 176.829L308.102 176.765ZM96.7227 190.039C76.5662 189.276 60.9781 188.088 49.9375 186.54C38.8968 184.993 31.5364 181.981 27.8562 177.507C28.6388 176.15 31.3884 175.026 36.1473 174.157C40.885 173.288 46.0246 172.567 51.5449 171.973C57.0653 171.379 62.1414 170.955 66.7946 170.679C71.4477 170.383 74.0704 170.234 74.6415 170.234H79.2946C88.6009 170.807 96.0882 171.4 101.82 171.973C107.531 172.545 111.549 173.033 113.876 173.436L96.7227 190.039ZM147.146 188.576C136.592 188.958 125.488 189.255 113.876 189.446C115.23 187.495 117.366 184.971 120.263 181.875C123.182 178.78 126.376 175.472 129.845 171.973C133.335 168.474 137.015 164.891 140.885 161.201C144.756 157.511 148.436 154.013 151.926 150.705L172.273 129.14C172.654 127.973 173.33 127.401 174.303 127.401L184.181 118.092C185.154 117.71 186.55 116.629 188.411 114.89C190.251 113.151 192.176 111.201 194.206 109.08C196.237 106.96 198.182 104.818 200.023 102.676C201.863 100.535 203.259 98.902 204.231 97.7146L211.211 93.0496C213.919 90.3354 216.541 87.706 219.058 85.1827C221.575 82.6593 224.092 80.3268 226.609 78.1852L231.262 73.5202C233.99 70.9968 236.74 68.8128 239.553 66.968C242.345 65.1232 246.279 62.727 251.313 59.822V63.0239C251.313 66.3318 250.551 70.1062 248.986 74.3896C247.421 78.6729 245.877 82.3625 244.333 85.4583L184.181 180.137C182.446 181.494 180.881 183.445 179.528 185.968C168.487 187.325 157.679 188.194 147.125 188.597L147.146 188.576Z",stroke:l,strokeWidth:"2",fill:l,style:{"--path-length":d,strokeDasharray:d,strokeDashoffset:d,fillOpacity:0,animation:`drawSignature-${i.replace(/:/g,"")} ${a}s ease-out ${n}s forwards`}})]}):e.jsxs("svg",{...s,width:r,height:r,viewBox:"0 0 329 329",fill:"none",children:[e.jsx("path",{d:"M239.997 257.024C239.13 256.261 238.348 255.328 237.671 254.268C236.994 253.208 236.55 252.126 236.359 251.066C236.169 250.006 236.359 249.179 236.93 248.585C239.659 245.277 243.233 242.118 247.696 239.107C252.138 236.095 256.601 234.59 261.063 234.59C263.2 234.59 264.595 235.375 265.293 236.922C265.97 238.47 266.309 240.018 266.309 241.587C266.309 244.302 265.568 246.443 264.13 247.991C262.692 249.539 260.831 250.854 258.61 251.914C256.389 252.996 254.062 253.907 251.63 254.692C249.198 255.455 247.04 256.24 245.095 257.024L242.768 258.191C241.795 258.191 240.886 257.809 239.997 257.024Z",fill:l}),e.jsx("path",{d:"M308.102 176.765C306.453 175.663 304.126 174.963 301.123 174.687C298.119 174.411 294.46 174.433 290.167 174.772C285.873 175.111 281.008 175.578 275.594 176.193C273.648 176.405 271.829 176.617 270.179 176.808L245.793 180.942C242.091 181.536 239.003 182.003 236.486 182.406C233.969 182.808 231.558 182.702 229.232 182.13L193.572 185.777C193.952 184.293 194.587 182.893 195.517 181.6C196.469 180.243 197.548 179.161 198.711 178.398C205.099 169.068 211.254 160.056 217.176 151.299C223.077 142.562 228.639 134.102 233.885 125.959L234.752 121.888L253.936 88.6814C253.936 87.3243 254.422 86.2641 255.395 85.4795C256.368 84.7162 257.045 83.4439 257.425 81.7051L260.344 73.2445C260.915 71.6966 261.465 70.0426 261.93 68.2826C262.417 66.5439 262.671 64.5082 262.671 62.1757C262.671 60.8186 262.459 59.1223 262.1 57.0866C261.698 55.051 261.084 53.1426 260.217 51.4038C259.35 49.6438 258.271 48.1595 257.024 46.8872C255.776 45.615 254.168 45 252.243 45C250.89 45 249.388 45.3817 247.738 46.1663C246.089 46.9509 244.439 47.9263 242.789 49.0925C241.139 50.2588 239.595 51.4674 238.136 52.7397C236.677 54.012 235.471 55.0298 234.498 55.7932L207.468 81.7263L206.008 82.5957L192.641 96.2939C192.429 96.2939 192.112 96.3999 191.626 96.5907C191.139 96.7816 190.801 96.8876 190.61 96.8876L122.04 164.763C120.094 164.763 117.493 163.894 114.193 162.134C110.915 160.374 107.023 159.505 102.56 159.505C101.587 159.505 100.53 159.802 99.3666 160.374C98.2033 160.947 97.3361 161.243 96.7439 161.243C95.9613 161.243 95.2422 160.798 94.5654 159.929C93.8885 159.059 92.7887 158.635 91.2236 158.635C86.5704 159.611 83.567 160.183 82.2134 160.374C80.8597 160.586 79.9714 160.671 79.5907 160.671C77.6448 159.886 76.397 159.696 75.8047 160.098C75.2125 160.501 74.7472 160.777 74.3453 160.968C73.7743 160.586 72.3149 160.247 69.9883 159.95C67.6617 159.674 65.5255 159.505 63.6008 159.505C60.682 159.505 56.6634 159.611 51.5449 159.802C46.4053 159.992 41.3715 160.629 36.4434 161.689C31.5153 162.749 27.2005 164.488 23.5203 166.926C19.8401 169.365 18 172.8 18 177.274C18 181.155 18.9518 184.462 20.8976 187.177C22.8435 189.912 25.3181 192.223 28.3215 194.174C31.3249 196.125 34.6667 197.524 38.3469 198.394C42.0271 199.263 45.6016 199.709 49.0915 199.709C51.2277 200.281 53.1524 200.09 54.9079 199.136C54.6964 199.136 55.7328 199.369 57.9536 199.857C60.1744 200.345 62.9451 200.79 66.2235 201.172C69.523 201.553 72.9494 201.999 76.545 202.465C80.1195 202.953 83.0806 203.207 85.4071 203.207L59.5399 232.915L54.0196 239.319C52.8563 240.294 52.4333 241.948 52.7294 244.281C53.0043 246.613 53.6389 247.779 54.6118 247.779C57.1287 247.779 60.3225 246.083 64.193 242.69C68.0636 239.297 72.1457 235.163 76.397 230.307C80.6694 225.451 84.9207 220.51 89.1931 215.464C93.4444 210.417 97.2303 206.24 100.53 202.932C100.911 202.932 101.312 202.974 101.693 203.08C102.074 203.165 102.455 203.228 102.856 203.228C115.822 203.228 127.878 202.847 139.045 202.062C150.192 201.299 160.407 200.896 169.692 200.896C166.985 205.37 164.066 209.929 160.978 214.594C157.89 219.259 154.591 224.115 151.101 229.162L127.285 264.701C125.932 266.842 124.726 268.984 123.648 271.104C122.569 273.225 122.061 275.366 122.061 277.508C122.061 279.056 122.59 280.371 123.648 281.431C124.705 282.491 125.826 283.042 126.989 283.042C129.316 283.042 131.346 282.364 133.081 281.007C134.815 279.65 136.613 278.038 138.453 276.193C140.293 274.349 142.197 272.44 144.121 270.511C146.046 268.56 148.373 267.012 151.08 265.846L182.467 237.007C182.658 236.414 183.102 235.777 183.758 235.12C184.434 234.442 185.259 233.615 186.232 232.639L197.273 223.33C200.192 220.807 202.941 217.881 205.543 214.573C208.166 211.286 209.477 209.145 209.477 208.169C209.477 206.027 208.229 204.967 205.712 204.967C205.331 204.967 204.697 205.116 203.83 205.413C202.962 205.709 201.947 206.346 200.784 207.3L156.896 248.076L146.152 255.646L149.049 251.575C149.832 250.218 151.186 248.034 153.132 245.023C155.056 242.012 157.192 238.725 159.519 235.12C161.846 231.537 164.32 227.805 166.943 223.903C169.566 220.022 172.019 216.418 174.367 213.11C176.693 209.823 178.724 207.045 180.458 204.819C182.193 202.592 183.44 201.278 184.223 200.875C184.604 200.684 185.386 200.493 186.55 200.302C186.803 200.281 187.121 200.281 187.374 200.239L196.871 199.433C201.672 199.009 206.304 198.161 210.746 196.931C215.166 195.68 219.798 194.853 224.6 194.407C226.122 194.301 228.893 193.983 232.891 193.474C236.909 192.965 241.266 192.393 245.941 191.757C250.615 191.142 254.993 190.527 259.075 189.912C263.157 189.297 265.991 188.852 267.599 188.555C269.206 188.258 270.602 188.025 271.787 187.834C272.971 187.664 274.431 187.516 276.165 187.41C276.313 187.41 276.503 187.177 276.651 187.134L281.579 186.583C284.435 186.265 286.888 186.095 288.961 186.095C291.013 186.095 292.514 186.18 293.445 186.392C292.726 188.152 292.112 189.361 291.563 190.039C291.034 190.718 290.59 191.142 290.23 191.333C289.871 191.524 289.659 191.672 289.596 191.757C289.532 191.842 289.532 192.181 289.596 192.796C289.807 194.768 291.647 195.531 295.116 195.15C295.708 195.086 296.491 194.81 297.421 194.323C298.352 193.835 299.325 193.305 300.319 192.732C301.313 192.16 302.286 191.545 303.195 190.909C304.126 190.272 304.782 189.7 305.184 189.191C306.072 188.937 307.299 188.046 308.885 186.477C310.45 184.929 311.169 183.402 311 181.875C310.746 179.628 309.794 177.931 308.145 176.829L308.102 176.765ZM96.7227 190.039C76.5662 189.276 60.9781 188.088 49.9375 186.54C38.8968 184.993 31.5364 181.981 27.8562 177.507C28.6388 176.15 31.3884 175.026 36.1473 174.157C40.885 173.288 46.0246 172.567 51.5449 171.973C57.0653 171.379 62.1414 170.955 66.7946 170.679C71.4477 170.383 74.0704 170.234 74.6415 170.234H79.2946C88.6009 170.807 96.0882 171.4 101.82 171.973C107.531 172.545 111.549 173.033 113.876 173.436L96.7227 190.039ZM147.146 188.576C136.592 188.958 125.488 189.255 113.876 189.446C115.23 187.495 117.366 184.971 120.263 181.875C123.182 178.78 126.376 175.472 129.845 171.973C133.335 168.474 137.015 164.891 140.885 161.201C144.756 157.511 148.436 154.013 151.926 150.705L172.273 129.14C172.654 127.973 173.33 127.401 174.303 127.401L184.181 118.092C185.154 117.71 186.55 116.629 188.411 114.89C190.251 113.151 192.176 111.201 194.206 109.08C196.237 106.96 198.182 104.818 200.023 102.676C201.863 100.535 203.259 98.902 204.231 97.7146L211.211 93.0496C213.919 90.3354 216.541 87.706 219.058 85.1827C221.575 82.6593 224.092 80.3268 226.609 78.1852L231.262 73.5202C233.99 70.9968 236.74 68.8128 239.553 66.968C242.345 65.1232 246.279 62.727 251.313 59.822V63.0239C251.313 66.3318 250.551 70.1062 248.986 74.3896C247.421 78.6729 245.877 82.3625 244.333 85.4583L184.181 180.137C182.446 181.494 180.881 183.445 179.528 185.968C168.487 187.325 157.679 188.194 147.125 188.597L147.146 188.576Z",fill:l})]})};Dr.displayName="SignatureA";const Ps=v("group relative flex items-center rounded-[8px] border box-border cursor-pointer w-full overflow-hidden isolate transition-[border-color] duration-300",{variants:{status:{normal:"bg-[var(--color-white)] border-[var(--color-gray-200)]",hover:"border-[var(--color-blue-800)]",generating:"bg-[var(--color-white)] border-[var(--color-gray-200)] cursor-default",error:"border-[var(--color-red-1000)]"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:""}},defaultVariants:{status:"normal",disabled:!1}}),Ws=v("absolute inset-0 -z-10 transition-opacity duration-300",{variants:{status:{normal:"opacity-0 group-hover:opacity-100",hover:"opacity-100",generating:"opacity-0",error:"opacity-100"}},defaultVariants:{status:"normal"}}),Vs=v("absolute inset-0",{variants:{status:{normal:"bg-[var(--color-blue-200)]",hover:"bg-[var(--color-blue-200)]",generating:"",error:"bg-[var(--color-red-200)]"}},defaultVariants:{status:"normal"}}),vr=v("flex gap-2 h-[75px] shrink-0",{variants:{status:{normal:"p-2 items-end",hover:"p-2 items-end",generating:"px-4 py-2 items-center",error:"px-4 py-2 items-center"}},defaultVariants:{status:"normal"}}),Hs=v("relative -bottom-2 w-[60px] h-[66px] bg-[var(--color-gray-50)] border border-[var(--color-gray-200)] border-b-0 rounded-t-[4px] overflow-hidden transition-transform duration-300 group-hover:opacity-90 group-hover:shadow-sm"),_s=v("w-full h-full bg-[var(--color-blue-200)]/30 p-2 space-y-2 flex flex-col items-start justify-start gap-1"),Os=v("h-1 bg-[var(--color-gray-200)] rounded-full origin-left"),Gs=v("flex flex-col gap-[4px] grow items-start p-4 min-w-0"),Us=v("font-medium text-[14px] leading-[20px] text-[var(--color-blue-1000)]"),Ys=v("text-[12px] leading-[16px] text-[var(--color-gray-600)]"),Zs=v("px-4 overflow-hidden flex items-center w-[56px] relative"),Ks=v("absolute w-6 h-6 text-[var(--color-blue-800)]"),Xs=v("w-6 h-6 text-[var(--color-gray-200)]"),qs=v("w-4 h-4 shrink-0 transition-all duration-300",{variants:{status:{normal:"text-[var(--color-blue-1000)] group-hover:text-[var(--color-blue-800)] group-hover:translate-x-0.5",hover:"text-[var(--color-blue-800)] translate-x-0.5",generating:"text-[var(--color-gray-600)] animate-spin",error:"text-[var(--color-blue-1000)] group-hover:rotate-[-20deg]"}},defaultVariants:{status:"normal"}}),Js=v("w-4 h-4 shrink-0 text-[var(--color-red-1000)] transition-transform duration-300 group-hover:scale-110"),Qs={rest:{scaleX:1},hover:{scaleX:[0,1]}},el={rest:{x:0},hover:{x:4}},rl={rest:{x:-20,opacity:0},hover:{x:0,opacity:1}},tl={rest:{x:0,opacity:1},hover:{x:20,opacity:0}},ol=[100,66,75,50],go=j.forwardRef(({title:r,subtitle:t,status:o,onClick:a,onActionClick:n,className:s,disabled:l=!1},i)=>{const[d,x]=j.useState(!1),p=o||(d&&!l?"hover":"normal"),f=j.useMemo(()=>p==="generating"||p==="error"?"rest":d?"hover":"rest",[p,d]),u=j.useCallback(()=>{!o&&!l&&x(!0)},[o,l]),g=j.useCallback(()=>{!o&&!l&&x(!1)},[o,l]),m=j.useCallback(()=>{!l&&a&&a()},[l,a]),h=j.useCallback(T=>{T.stopPropagation(),!l&&n&&n()},[l,n]),b=j.useCallback(T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),m())},[m]),w=()=>p==="generating"?e.jsx("div",{className:vr({status:"generating"}),children:e.jsx(c.Loader,{size:16,className:"text-[var(--color-gray-600)] animate-spin"})}):p==="error"?e.jsx("div",{className:vr({status:"error"}),children:e.jsx(c.TriangleAlert,{size:16,className:Js()})}):e.jsx("div",{className:vr({status:p}),children:e.jsx("div",{className:Hs(),children:e.jsx(q.motion.div,{className:_s(),variants:{rest:{},hover:{transition:{staggerChildren:.1}}},children:ol.map((T,L)=>e.jsx(q.motion.div,{className:Os(),style:{width:`${T}%`},variants:Qs,transition:{duration:.4,ease:"easeInOut"}},L))})})}),S=()=>p==="generating"?null:p==="error"?e.jsx("button",{type:"button",onClick:h,className:"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] focus-visible:ring-offset-2 rounded-sm","aria-label":"Retry",children:e.jsx(c.RotateCcw,{size:16,className:qs({status:"error"})})}):e.jsxs(e.Fragment,{children:[e.jsx(q.motion.div,{className:Ks(),variants:rl,transition:{duration:.3,ease:"backOut"},children:e.jsx(c.ArrowUp,{size:24,className:"rotate-90"})}),e.jsx(q.motion.div,{className:Xs(),variants:tl,transition:{duration:.3},children:e.jsx(c.ArrowUp,{size:24,className:"rotate-90"})})]});return e.jsxs(q.motion.div,{ref:i,role:"button",tabIndex:l?-1:0,className:y(Ps({status:p,disabled:l}),s),onClick:m,onKeyDown:b,onMouseEnter:u,onMouseLeave:g,"aria-disabled":l,"aria-label":`${r} - ${t}${p==="error"?" - Error occurred":""}${p==="generating"?" - Generating":""}`,initial:"rest",whileHover:"hover",animate:f,children:[e.jsx("div",{className:Ws({status:p}),children:e.jsx("div",{className:Vs({status:p})})}),w(),e.jsxs(q.motion.div,{className:Gs(),variants:el,children:[e.jsx("p",{className:Us(),title:r,children:r}),e.jsx("p",{className:Ys(),title:t,children:t})]}),e.jsx("div",{className:Zs(),children:S()})]})});go.displayName="ArtifactCard";const al=v("flex items-center flex-wrap gap-2",{variants:{size:{small:"text-[0.875rem] leading-[1.25rem]",medium:"text-[1rem] leading-[1.5rem]"}},defaultVariants:{size:"medium"}}),tr=v("inline-flex items-center gap-2 transition-colors duration-200 rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2",{variants:{state:{default:"text-[var(--color-gray-600)] hover:text-[var(--color-blue-1000)] cursor-pointer",active:"text-[var(--color-blue-1000)] font-medium cursor-default",inactive:"text-[var(--color-gray-600)] cursor-default"}},defaultVariants:{state:"default"}}),nl=v("text-[var(--color-gray-600)] flex items-center justify-center"),mo=({items:r,separator:t=e.jsx(c.ChevronRight,{size:16}),className:o,size:a="medium"})=>e.jsx("nav",{"aria-label":"Breadcrumb",className:y(al({size:a}),o),children:e.jsx("ol",{className:"flex items-center flex-wrap gap-2",children:r.map((n,s)=>{const l=s===r.length-1;let i;return l?i=e.jsxs("span",{className:tr({state:"active"}),"aria-current":"page",children:[n.icon,n.label]}):n.href?i=e.jsxs("a",{href:n.href,className:tr({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):n.onClick?i=e.jsxs("button",{type:"button",className:tr({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):i=e.jsxs("span",{className:tr({state:"inactive"}),children:[n.icon,n.label]}),e.jsxs("li",{className:"flex items-center gap-2",children:[i,!l&&e.jsx("span",{className:nl(),"aria-hidden":"true",children:t})]},`${n.label}-${s}`)})})}),sl={sm:"h-[var(--archie-btn-sm)] px-3 text-xs gap-1.5 rounded-[var(--archie-radius-md)]",default:"h-[var(--archie-btn-md)] px-4 text-sm gap-2 rounded-[var(--archie-radius-lg)]",md:"h-[var(--archie-btn-md)] px-4 text-sm gap-2 rounded-[var(--archie-radius-lg)]",lg:"h-[var(--archie-btn-lg)] px-6 text-base gap-2.5 rounded-[var(--archie-radius-lg)]",icon:"h-[var(--archie-btn-md)] w-[var(--archie-btn-md)] rounded-[var(--archie-radius-lg)]"},De=j.forwardRef(({variant:r="default",size:t="default",loading:o=!1,disabled:a,leftIcon:n,rightIcon:s,startIcon:l,endIcon:i,children:d,className:x,style:p,onMouseEnter:f,onMouseLeave:u,...g},m)=>{const h=Rr(),b=a||o,w=n??l,S=s??i,T={default:{background:h.primary,color:h.white},primary:{background:h.primary,color:h.white},secondary:{background:h.white,color:h.primaryDeep,border:`1px solid ${h.n200}`},outline:{background:"transparent",color:h.primaryDeep,border:`1px solid ${h.n200}`},ghost:{background:"transparent",color:h.n800},destructive:{background:h.error,color:h.white},link:{background:"transparent",color:h.primary,padding:0,height:"auto"}},L=z=>{r==="link"?z.currentTarget.style.textDecoration="underline":z.currentTarget.style.opacity="0.85",f==null||f(z)},C=z=>{r==="link"?z.currentTarget.style.textDecoration="none":z.currentTarget.style.opacity="1",u==null||u(z)};return e.jsxs("button",{ref:m,className:y("inline-flex items-center justify-center font-light transition-all duration-[var(--archie-anim-duration)] ease-[var(--archie-anim-easing)] cursor-pointer",sl[t],b&&"opacity-50 cursor-not-allowed pointer-events-none",x),style:{...T[r],fontFamily:h.font,...r==="link"?{textDecoration:"none"}:{},...p},disabled:b,onMouseEnter:L,onMouseLeave:C,...g,children:[o?e.jsx("svg",{className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:e.jsx("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}):w?e.jsx("span",{className:"shrink-0",children:w}):null,d,!o&&S&&e.jsx("span",{className:"shrink-0",children:S})]})});De.displayName="Button";const ll=v("flex items-center justify-center shrink-0 rounded-[2px]",{variants:{size:{sm:"p-1",md:"p-1.5",lg:"p-2 rounded-[4px]"}},defaultVariants:{size:"sm"}}),ho={txt:{background:"#f5f6fa",iconColor:"#8c92af",icon:c.FileText},docx:{background:"#E0F2FF",iconColor:"#0369A1",icon:c.FileText},doc:{background:"#E0F2FF",iconColor:"#0369A1",icon:c.FileText},pdf:{background:"#ffecec",iconColor:"#fb6060",icon:c.Pdf},csv:{background:"#e2f7e5",iconColor:"#71d481",icon:c.Grid},xlsx:{background:"#e2f7e5",iconColor:"#71d481",icon:c.Grid},xls:{background:"#e2f7e5",iconColor:"#71d481",icon:c.Grid},json:{background:"#fff2e2",iconColor:"#e15713",icon:c.Code},js:{background:"#fff2e2",iconColor:"#ff6f00",icon:c.Code},ts:{background:"#E0F2FF",iconColor:"#0369A1",icon:c.Code},md:{background:"#f5f6fa",iconColor:"#8c92af",icon:c.Code},pptx:{background:"#FFE5D2",iconColor:"#C2410C",icon:c.WhiteboardView},ppt:{background:"#FFE5D2",iconColor:"#C2410C",icon:c.WhiteboardView},zip:{background:"#f5f6fa",iconColor:"#8c92af",icon:c.Archive},rar:{background:"#f5f6fa",iconColor:"#8c92af",icon:c.Archive},"7z":{background:"#f5f6fa",iconColor:"#8c92af",icon:c.Archive},mp4:{background:"#FEE2E5",iconColor:"#BE123C",icon:c.Video},mov:{background:"#FEE2E5",iconColor:"#BE123C",icon:c.Video},avi:{background:"#FEE2E5",iconColor:"#BE123C",icon:c.Video},mp3:{background:"#E4E4F8",iconColor:"#6D28D9",icon:c.Volume2},wav:{background:"#E4E4F8",iconColor:"#6D28D9",icon:c.Volume2}},il={background:"#f5f6fa",iconColor:"#8c92af",icon:c.FileText},bo=r=>{if(!r)return"";const t=r.lastIndexOf(".");return t<=0?"":r.slice(t+1).toLowerCase()},vo=r=>{const t=bo(r);return ho[t]||il},cl={sm:12,md:16,lg:24},Er=j.forwardRef(({filename:r,size:t="sm",className:o},a)=>{const n=vo(r),s=n.icon,l=cl[t];return e.jsx("div",{ref:a,className:y(ll({size:t}),o),style:{backgroundColor:n.background,color:n.iconColor},children:e.jsx(s,{size:l,color:n.iconColor,className:"shrink-0"})})});Er.displayName="FileIcon";const dl=v("relative inline-flex items-center px-1 py-1 gap-1 rounded-[5px] border overflow-hidden transition-colors",{variants:{status:{none:"",uploading:"border-[var(--color-gray-600)] bg-[var(--color-gray-50)]",processing:"border-[var(--color-gray-600)] bg-[var(--color-gray-50)]",done:"border-[var(--color-gray-200)] bg-[var(--color-white)]",error:"border-[var(--color-gray-200)] bg-[var(--color-white)]"}},defaultVariants:{status:"done"}}),at=v("truncate text-[0.75rem] leading-[1rem] font-normal",{variants:{status:{none:"",uploading:"text-[var(--color-gray-600)]",processing:"text-[var(--color-gray-800)]",done:"text-[var(--color-gray-800)]",error:"text-[var(--color-gray-800)]"}},defaultVariants:{status:"done"}}),yr=v("shrink-0",{variants:{status:{uploading:"text-[var(--color-blue-800)]",processing:"text-[var(--color-blue-800)]",done:"text-[var(--color-gray-600)]",error:"text-[var(--color-red-1000)]"}},defaultVariants:{status:"done"}}),pl=v("absolute top-0 left-0 bottom-0 bg-[var(--color-gray-200)] z-0 rounded-bl-[4px] rounded-tl-[4px]",{variants:{status:{uploading:"opacity-100",processing:"opacity-100",done:"opacity-0",error:"opacity-0"}},defaultVariants:{status:"uploading"}}),Le=v("flex items-center justify-center shrink-0 p-1 rounded-[2px]",{variants:{variant:{file:"",template:"bg-[var(--color-entity-sky)]",client:"",agent:"bg-[var(--color-entity-sky)]",workstream:"bg-[var(--color-entity-sky)]",status:"",skill:"",autopilot:""}},defaultVariants:{variant:"file"}});var oe=(r=>(r.Uploading="uploading",r.Processing="processing",r.Done="done",r.Error="error",r))(oe||{});const yo=({onClick:r})=>{const t=o=>{o.stopPropagation(),r()};return e.jsx(q.motion.button,{onClick:t,className:"absolute -top-[6px] -right-[6px] hidden group-hover:flex items-center justify-center bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[8px] p-[2px] focus:outline-none focus:ring-2 focus:ring-[var(--color-blue-800)] shrink-0 z-20","aria-label":"Remove",initial:{scale:0,opacity:0},whileInView:{scale:1,opacity:1},whileHover:{scale:1.1},whileTap:{scale:.95},transition:{scale:{type:"spring",stiffness:400,damping:17},opacity:{duration:.2}},children:e.jsx(c.X,{size:10,className:"text-[var(--color-gray-800)]"})})};yo.displayName="ChipDeleteButton";const xl="sm",fl=r=>{if(r.type==="file"){const t=r.status??oe.Done;return{filename:r.filename,showFileIcon:t===oe.Done}}return r.type==="fileMention"?{filename:r.filename,showFileIcon:!0}:null},jo=({chipProps:r})=>{const{type:t}=r,o=fl(r);if(o!=null&&o.showFileIcon)return e.jsx(Er,{filename:o.filename,size:xl});if(t==="file"){const{status:a=oe.Done}=r,n=a===oe.Uploading,s=a===oe.Processing,l=a===oe.Error,i=n?"uploading":s?"processing":"error";return e.jsxs("div",{className:y(Le({variant:"status"}),l&&"bg-[var(--color-red-200)]"),children:[n&&e.jsx(c.ArrowUp,{size:12,className:yr({status:i})}),s&&e.jsx(c.Loader,{size:12,className:y(yr({status:i}),"animate-spin")}),l&&e.jsx(c.TriangleAlert,{size:12,className:yr({status:i})})]})}return t==="templateMention"?e.jsx("div",{className:Le({variant:"template"}),children:e.jsx(c.FileText,{size:12,className:"text-[var(--color-gray-600)]"})}):t==="clientMention"?e.jsx(ur,{type:"text",initials:r.name,size:"small",shape:"circular"}):t==="agentMention"?r.iconSrc?e.jsx("img",{src:r.iconSrc,alt:"","aria-hidden":"true",className:"w-5 h-5 rounded-[3px] object-cover shrink-0"}):e.jsx("div",{className:Le({variant:"agent"}),children:e.jsx(c.Cpu,{size:12,className:"text-[var(--color-gray-600)]"})}):t==="workstreamMention"?e.jsx("div",{className:Le({variant:"workstream"}),children:e.jsx(c.WorkStream,{size:12,className:"text-[var(--color-gray-600)]"})}):t==="skill"?e.jsx("div",{className:Le({variant:"skill"}),style:{backgroundColor:"var(--color-blue-800-bg)"},children:e.jsx(c.FileText,{size:12,style:{color:"var(--color-blue-800)"}})}):t==="autopilot"?e.jsx("div",{className:Le({variant:"autopilot"}),style:{backgroundColor:"var(--color-blue-800-bg)"},children:e.jsx(c.Layout,{size:12,style:{color:"var(--color-gray-600)"}})}):null};jo.displayName="ChipLeadingContent";const ul=(r,t=20)=>{if(r.length<=t)return r;const o=r.lastIndexOf(".");if(o===-1||o===0)return r.slice(0,t-1)+"…";const a=r.slice(0,o),n=r.slice(o);if(n.length>=t-3)return r.slice(0,t-1)+"…";const s=t-n.length-1;return s<3?r.slice(0,t-1)+"…":a.slice(0,s)+"…"+n},gl=r=>{switch(r.type){case"file":case"fileMention":return ul(r.filename);case"templateMention":case"clientMention":case"agentMention":case"workstreamMention":case"skill":case"autopilot":return r.name;case"filter":return r.label}},ml=r=>{switch(r.type){case"file":case"fileMention":return r.filename;case"templateMention":case"clientMention":case"agentMention":case"workstreamMention":case"skill":case"autopilot":return r.name;case"filter":return r.value?`${r.label}: ${r.value}`:r.label}},hl={skill:{borderColor:"var(--color-blue-800)",backgroundColor:"var(--color-blue-800-bg)"},autopilot:{borderColor:"var(--color-gray-200)",backgroundColor:"var(--color-gray-100)"}},bl={skill:{color:"var(--color-blue-800)"},autopilot:{color:"var(--color-gray-600)"}},vl={borderColor:"var(--color-blue-800)",backgroundColor:"var(--color-blue-800-bg)"},yl={color:"var(--color-blue-800)",fontWeight:500},jl={sm:"text-xs px-2 py-0.5 gap-1",md:"text-sm px-2.5 py-1 gap-1.5",lg:"text-sm px-3 py-1.5 gap-2"},wl={sm:"w-3 h-3",md:"w-3.5 h-3.5",lg:"w-4 h-4"},wo=r=>{if(r.type==="filter")return e.jsx(Co,{...r});const{type:t,className:o,onDelete:a,removable:n,onRemove:s,selected:l}=r,i=t==="file"?r.status??oe.Done:oe.Done,d=i===oe.Uploading,x=i===oe.Processing,p=t==="file"?r.progress??0:0,f=(d||x)&&t==="file",u=n||!!s,g=a&&!d&&!x&&!u,m=u&&!d&&!x,h=s??a,b=gl(r),w=ml(r),S=t==="agentMention"?r.labelContent:void 0,T=t==="skill"||t==="autopilot",L=T||l?"none":i,C=T||l?"none":i;let z=T?hl[t]:void 0,I=T?bl[t]:void 0;return l&&(z={...z,...vl},I={...I,...yl}),e.jsxs("div",{className:"relative inline-block group",children:[e.jsxs("div",{className:y(dl({status:L}),o),style:z,children:[f&&e.jsx(q.motion.div,{className:pl({status:i}),initial:{width:"0%"},animate:{width:`${p}%`},transition:{duration:.3,ease:"easeOut"}}),e.jsxs("div",{className:"relative z-10 flex items-center gap-1 pr-1",children:[e.jsx(jo,{chipProps:r}),S?e.jsx("span",{className:at({status:C}),style:I,title:w,children:S}):e.jsx("span",{className:at({status:C}),style:I,title:w,children:b}),m&&h&&e.jsx("button",{type:"button",onClick:$=>{$.stopPropagation(),h()},"aria-label":`Remove ${w}`,className:"ml-0.5 inline-flex items-center justify-center rounded-[3px] p-0.5 text-[var(--color-gray-600)] hover:text-[var(--color-gray-1000)] hover:bg-[var(--color-gray-100)] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)]",children:e.jsx(c.X,{size:10,strokeWidth:2})})]})]}),g&&e.jsx(yo,{onClick:a})]})};wo.displayName="Chip";const Co=({label:r,value:t,icon:o,size:a="md",disabled:n=!1,onClick:s,onRemove:l,onDelete:i,removable:d,selected:x,className:p})=>{const f=!!s&&!n,g=(d||!!l)&&!n,m=l??i,h=x?{borderColor:"var(--color-blue-800)",backgroundColor:"var(--color-blue-800-bg)",color:"var(--color-blue-800)"}:{borderColor:"var(--color-gray-200)",backgroundColor:"var(--color-white)",color:"var(--color-gray-800)"},b=y("inline-flex items-center border rounded-full transition-colors font-normal",jl[a],n&&"opacity-50 cursor-not-allowed",f&&"cursor-pointer hover:opacity-80",p),w=e.jsxs(e.Fragment,{children:[o&&e.jsx("span",{className:wl[a],children:o}),e.jsx("span",{className:"font-medium",children:r}),t&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"opacity-50",children:":"}),e.jsx("span",{children:t})]}),g&&m&&e.jsx("button",{type:"button",onClick:S=>{S.stopPropagation(),m()},"aria-label":`Remove ${r} filter`,className:"ml-0.5 inline-flex items-center justify-center rounded-[3px] p-0.5 text-[var(--color-gray-600)] hover:text-[var(--color-gray-1000)] hover:bg-[var(--color-gray-100)] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)]",style:x?{color:"var(--color-blue-800)"}:void 0,children:e.jsx(c.X,{size:10,strokeWidth:2})})]});return f?e.jsx("button",{type:"button",onClick:s,disabled:n,className:b,style:h,children:w}):e.jsx("span",{className:b,style:h,children:w})};Co.displayName="FilterChipRender";const Cl=v("inline-flex items-center gap-2 cursor-pointer select-none group disabled:cursor-not-allowed disabled:opacity-50 w-fit",{variants:{size:{medium:"text-[1rem] leading-[1.5rem] gap-2",small:"gap-1",large:"text-[1.125rem] leading-[1.75rem] gap-2"}},defaultVariants:{size:"medium"}}),Sl=v("flex items-center justify-center transition-colors duration-[var(--archie-anim-duration)] ease-[var(--archie-anim-easing)] rounded-[2px] border shrink-0 peer-focus-visible:ring-2 peer-focus-visible:ring-[var(--color-blue-200)] peer-focus-visible:ring-offset-1",{variants:{checked:{true:"bg-[var(--color-blue-800)] border-[var(--color-blue-800)] text-white",false:"bg-white border-[var(--color-gray-200)] group-hover:border-[var(--color-gray-600)]"},indeterminate:{true:"bg-[var(--color-blue-800)] border-[var(--color-blue-800)]",false:""},size:{medium:"w-[16px] h-[16px]",small:"w-[12px] h-[12px]",large:"w-[20px] h-[20px]"}},defaultVariants:{checked:!1,indeterminate:!1,size:"medium"}}),kl="sr-only peer",Nl={sm:"small",small:"small",md:"medium",medium:"medium",lg:"large",large:"large"},So=j.forwardRef(({className:r,checked:t,defaultChecked:o,onChange:a,label:n,size:s="medium",disabled:l,indeterminate:i=!1,...d},x)=>{const p=Nl[s]??"medium",[f,u]=j.useState(o||!1),g=t!==void 0,m=g?t:f,h=j.useRef(null);j.useEffect(()=>{const S=h.current;S&&(S.indeterminate=i)},[i]);const b=S=>{h.current=S,typeof x=="function"?x(S):x&&(x.current=S)},w=S=>{g||u(S.target.checked),a==null||a(S)};return e.jsxs("label",{className:Cl({size:p,className:r}),children:[e.jsx("input",{type:"checkbox",className:kl,ref:b,checked:g?t:void 0,defaultChecked:g?void 0:o,onChange:w,disabled:l,...d}),e.jsx("span",{className:Sl({checked:!!m,indeterminate:i,size:p}),children:i&&!m?e.jsx("span",{className:"w-2 h-0.5 rounded-full bg-white"}):e.jsx(c.Check,{size:p==="large"?14:p==="medium"?12:8,strokeWidth:3,className:y("text-white transition-opacity duration-200",m?"opacity-100":"opacity-0")})}),n&&e.jsx(Ke,{as:"span",variant:p==="small"?"x-small":"small",color:"secondary",children:n})]})});So.displayName="Checkbox";const zl=v("relative inline-flex items-center justify-center",{variants:{size:{xs:"w-[18px] h-[18px]",small:"w-[24px] h-[24px]",medium:"w-[32px] h-[32px]",large:"w-[40px] h-[40px]"}},defaultVariants:{size:"medium"}}),Tl=v("transform"),Ll=v("stroke-[var(--color-gray-200)]"),$l=v("transition-[stroke-dashoffset] duration-300 ease-in-out",{variants:{variant:{default:"stroke-[var(--color-blue-800)]",success:"stroke-[var(--color-green-1000)]",warning:"stroke-[var(--color-orange-800)]",error:"stroke-[var(--color-red-1000)]"}},defaultVariants:{variant:"default"}}),Al=v("absolute inset-0 flex items-center justify-center font-medium text-[var(--color-gray-800)]",{variants:{size:{xs:"text-[6px]",small:"text-[8px]",medium:"text-[10px]",large:"text-[12px]"}},defaultVariants:{size:"medium"}}),Ml={xs:18,small:24,medium:32,large:40},ko=j.forwardRef(({className:r,value:t=0,max:o=100,size:a="medium",variant:n="default",showLabel:s=!0,labelFormatter:l,strokeWidth:i=3,...d},x)=>{const p=Math.min(Math.max(t/o*100,0),100),f=Ml[a],u=(f-i)/2,g=2*Math.PI*u,m=g-p/100*g,h=l?l(t,o):`${Math.round(t)}`;return e.jsxs("div",{ref:x,className:y(zl({size:a}),r),role:"progressbar","aria-valuemin":0,"aria-valuemax":o,"aria-valuenow":t,...d,children:[e.jsxs("svg",{className:Tl(),width:f,height:f,viewBox:`0 0 ${f} ${f}`,children:[e.jsx("circle",{className:Ll(),cx:f/2,cy:f/2,r:u,fill:"none",strokeWidth:i}),e.jsx("circle",{className:$l({variant:n}),cx:f/2,cy:f/2,r:u,fill:"none",strokeWidth:i,strokeLinecap:"round",strokeDasharray:g,strokeDashoffset:m,transform:`rotate(-90 ${f/2} ${f/2})`})]}),s&&e.jsx("span",{className:Al({size:a}),children:h})]})});ko.displayName="CircularProgress";function Rl(r,t){j.useEffect(()=>{const o=a=>{const n=r==null?void 0:r.current;!n||n.contains(a.target)||t(a)};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o)}},[r,t])}const Fl=v("absolute top-full left-0 z-50 w-full min-w-[200px] overflow-hidden rounded-[var(--archie-radius-lg)] border border-[var(--color-gray-200)] bg-[var(--color-white)] [box-shadow:var(--archie-shadow-lg)] focus:outline-none",{variants:{align:{start:"left-0",end:"right-0 left-auto",center:"left-1/2 -translate-x-1/2"},attached:{true:"mt-0 rounded-t-none border-t-0",false:"mt-2"}},defaultVariants:{align:"start",attached:!1}}),Il=v("flex w-full cursor-pointer items-center px-3 py-2 text-[0.875rem] text-[var(--color-gray-800)] transition-colors hover:bg-[var(--color-gray-50)] focus:bg-[var(--color-blue-200)] focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--color-blue-200)] disabled:pointer-events-none disabled:opacity-50",{variants:{active:{true:"bg-[var(--color-blue-200)] text-[var(--color-blue-1000)]"},variant:{default:"",destructive:"text-[var(--color-red-1000)] hover:bg-[var(--color-red-200)] focus:bg-[var(--color-red-200)]"}},defaultVariants:{variant:"default",active:!1}}),Bl=v("w-full px-3 py-1 text-[0.625rem] font-bold text-[var(--color-gray-600)] uppercase tracking-wider select-none"),Dl=v("w-full h-px bg-[var(--color-gray-200)] my-1"),No=j.createContext(void 0),gr=()=>{const r=j.useContext(No);if(!r)throw new Error("useDropdown must be used within a Dropdown");return r},zo=({children:r,defaultOpen:t=!1,open:o,onOpenChange:a,className:n,...s})=>{const[l,i]=j.useState(t),d=o!==void 0,x=d?o:l,p=j.useRef(null),f=()=>{const g=!x;d||i(g),a==null||a(g)},u=()=>{d||i(!1),a==null||a(!1)};return Rl(p,u),e.jsx(No.Provider,{value:{isOpen:x,toggle:f,close:u},children:e.jsx("div",{ref:p,className:y("relative w-full text-left",n),...s,children:r})})};zo.displayName="Dropdown";const To=j.forwardRef(({className:r,children:t,onClick:o,chevronIcon:a=!1,...n},s)=>{const{toggle:l,isOpen:i}=gr(),d=x=>{l(),o==null||o(x)};return e.jsxs("div",{ref:s,className:y("cursor-pointer w-full relative overflow-visible",r),onClick:d,"aria-haspopup":"true","aria-expanded":i,...n,children:[t,a&&e.jsx(q.motion.span,{animate:{rotate:i?180:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:"absolute right-3 top-1/2 -translate-y-1/2 z-20 pointer-events-none text-[var(--color-gray-600)]",children:e.jsx(c.ChevronDown,{size:16})})]})});To.displayName="DropdownTrigger";const Lo=j.forwardRef(({className:r,align:t="start",attached:o=!1,children:a,...n},s)=>{const{isOpen:l}=gr();return e.jsx(q.AnimatePresence,{children:l&&e.jsx(q.motion.div,{ref:s,initial:{opacity:0,y:-4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.98},transition:{duration:.2,ease:[.16,1,.3,1]},style:{transformOrigin:"top center"},className:y(Fl({align:t,attached:o}),r),...n,children:a})})});Lo.displayName="DropdownContent";const $o=j.forwardRef(({className:r,active:t,variant:o,closeOnSelect:a=!0,children:n,onClick:s,...l},i)=>{const{close:d}=gr(),x=p=>{s==null||s(p),a&&d()};return e.jsx("div",{ref:i,className:y(Il({active:t,variant:o}),r),onClick:x,role:"menuitem",...l,children:n})});$o.displayName="DropdownItem";const El=j.forwardRef(({className:r,children:t,...o},a)=>e.jsx("div",{ref:a,className:y(Bl(),r),...o,children:t}));El.displayName="DropdownLabel";const Pl=j.forwardRef(({className:r,animated:t=!1,animationDelay:o=.2,...a},n)=>t?e.jsx("div",{ref:n,className:y("h-px my-1 overflow-hidden",r),...a,children:e.jsx(q.motion.div,{className:"h-full bg-[var(--color-gray-200)]",initial:{width:0},animate:{width:"100%"},transition:{duration:.3,ease:[.16,1,.3,1],delay:o}})}):e.jsx("div",{ref:n,className:y(Dl(),r),...a}));Pl.displayName="DropdownSeparator";const Wl=v("w-full bg-[var(--color-white)] border border-solid rounded-[var(--archie-radius-lg)] font-normal transition-colors duration-[var(--archie-anim-duration)] box-border focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50",{variants:{status:{default:"border-[var(--color-gray-200)] text-[var(--color-gray-600)] placeholder:text-[var(--color-gray-600)] hover:border-[var(--color-gray-500)] focus:border-[var(--color-blue-1000)] focus:text-[var(--color-blue-1000)]",error:"border-[var(--color-red-1000)] text-[var(--color-red-1000)] placeholder:text-[var(--color-red-1000)] focus:border-[var(--color-red-1000)]",success:"border-[var(--color-green-1000)] text-[var(--color-green-1000)] placeholder:text-[var(--color-green-1000)] focus:border-[var(--color-green-1000)]"},size:{medium:"px-4 py-4 text-[1rem] leading-[1.5rem]",small:"px-3 py-2 text-[0.875rem] leading-[1.25rem]",tiny:"p-2 text-[0.75rem] leading-[1rem]",micro:"px-1.5 py-1 text-[0.6875rem] leading-[0.875rem]"}},defaultVariants:{status:"default",size:"medium"}}),Vl=v("relative w-full",{variants:{size:{medium:"",small:"",tiny:"",micro:""}},defaultVariants:{size:"medium"}}),nt=v("absolute top-1/2 -translate-y-1/2 pointer-events-none flex items-center justify-center",{variants:{status:{default:"text-[var(--color-gray-600)]",error:"text-[var(--color-red-1000)]",success:"text-[var(--color-green-1000)]"},position:{start:"",end:""},size:{medium:"size-[24px]",small:"size-[16px]",tiny:"size-[16px]",micro:"size-[14px]"}},compoundVariants:[{position:"start",size:"medium",className:"left-4"},{position:"start",size:"small",className:"left-3"},{position:"start",size:"tiny",className:"left-2"},{position:"start",size:"micro",className:"left-1.5"},{position:"end",size:"medium",className:"right-4"},{position:"end",size:"small",className:"right-3"},{position:"end",size:"tiny",className:"right-2"},{position:"end",size:"micro",className:"right-1.5"}],defaultVariants:{status:"default",size:"medium",position:"end"}}),Hl=v("text-[var(--color-red-1000)]",{variants:{size:{medium:"text-[0.875rem] leading-[1.25rem]",small:"text-[0.75rem] leading-[1rem]",tiny:"text-[0.75rem] leading-[1rem]",micro:"text-[0.6875rem] leading-[0.875rem]"}},defaultVariants:{size:"medium"}}),_l={medium:"medium",small:"small",tiny:"tiny",micro:"micro",md:"medium",sm:"small",lg:"medium"},Ol={medium:18,small:14,tiny:14,micro:12},Ao=j.forwardRef(({className:r,status:t="default",size:o="medium",startIcon:a,endIcon:n,disabled:s,error:l,label:i,hint:d,kind:x="text",onClear:p,loading:f=!1,value:u,...g},m)=>{const h=j.useId(),b=_l[o]??"medium",w=l?"error":t,S=x==="search",T=Ol[b],L=S&&!a?e.jsx(c.Search,{size:T}):a,C=u!=null&&String(u).length>0,z=S&&!f&&!!p&&C&&!s,I=S&&f;let $=n;S&&!n&&(I?$=e.jsx(c.Loader,{size:T,className:"animate-spin text-[var(--color-gray-600)]"}):z&&($=e.jsx("button",{type:"button",onClick:p,disabled:s,"aria-label":"Clear search",className:"pointer-events-auto inline-flex items-center justify-center rounded p-0.5 text-[var(--color-gray-600)] hover:text-[var(--color-gray-1000)] hover:bg-[var(--color-gray-100)] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] disabled:cursor-not-allowed disabled:opacity-50",children:e.jsx(c.X,{size:T,strokeWidth:2})})));const F={medium:"pl-12",small:"pl-9",tiny:"pl-8",micro:"pl-7"},k={medium:"pr-12",small:"pr-9",tiny:"pr-8",micro:"pr-7"};return e.jsxs("div",{className:"flex flex-col gap-1",children:[i&&e.jsx("label",{className:"text-[11px] font-semibold text-[var(--color-gray-800)]",children:i}),e.jsxs("div",{className:Vl({size:b}),children:[L&&e.jsx("span",{className:nt({status:w,size:b,position:"start"}),children:L}),e.jsx("input",{ref:m,type:S?"search":g.type??"text",value:u,className:y(Wl({status:w,size:b}),L&&F[b],$&&k[b],S&&"[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none",r),disabled:s,"aria-invalid":!!l,"aria-describedby":l?h:void 0,...g}),$&&e.jsx("span",{className:y(nt({status:w,size:b,position:"end"}),S&&z&&"pointer-events-auto"),children:$})]}),l&&e.jsx("span",{id:h,className:Hl({size:b}),role:"alert",children:l}),!l&&d&&e.jsx("span",{className:"text-[11px] text-[var(--color-gray-600)]",children:d})]})});Ao.displayName="Input";const Gl=v("flex flex-col items-center justify-center"),Ul=v("relative",{variants:{size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"}},defaultVariants:{size:"lg"}}),Yl=v("absolute inset-0 rounded-full border-4 border-transparent animate-spin",{variants:{color:{primary:"border-t-[var(--color-blue-800)]",secondary:"border-t-[var(--color-gray-600)]"}},defaultVariants:{color:"primary"}}),Zl=v("mt-4 typography-small",{variants:{color:{primary:"text-[var(--color-gray-1000)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{color:"muted"}}),Kl=({size:r="lg",color:t="primary",text:o,textColor:a="muted",className:n})=>e.jsxs("div",{className:y(Gl(),n),children:[e.jsx("div",{className:Ul({size:r}),children:e.jsx("div",{className:Yl({color:t})})}),o&&e.jsx("p",{className:Zl({color:a}),children:o})]}),jr=v("relative flex flex-col w-full max-w-[668px] transition-colors duration-200 group",{variants:{variant:{user:"",assistant:"",system:"",loader:""},alignment:{left:"items-start",center:"items-center",right:"items-end"},isEditing:{true:"items-stretch",false:""}},compoundVariants:[{variant:"user",alignment:void 0,isEditing:!1,className:"items-end"},{variant:"assistant",alignment:void 0,isEditing:!1,className:"items-start"},{variant:"system",alignment:void 0,className:"items-start"},{variant:"loader",alignment:void 0,className:"items-start"}],defaultVariants:{variant:"user",isEditing:!1}}),Xl=v("flex gap-[12px] items-start w-full"),ql=v("flex flex-col flex-1 min-w-0"),st=v("flex flex-col w-full transition-colors duration-200",{variants:{variant:{user:"[background-image:linear-gradient(var(--color-white),var(--color-white)),linear-gradient(180deg,#B9BCCB_0%,#E5E7F0_100%)] [background-origin:padding-box,border-box] [background-clip:padding-box,border-box] border border-transparent rounded-[16px] p-[16px] overflow-clip shadow-[0px_4px_6px_-2px_rgba(0,0,0,0.03),0px_12px_16px_-4px_rgba(0,0,0,0.05)]",assistant:"bg-transparent px-[8px] pb-[8px] gap-[8px]",system:"bg-transparent gap-[8px]",loader:"bg-transparent gap-[24px]"},isSticky:{true:"shadow-[0px_8px_16px_-4px_rgba(0,0,0,0.1),0px_4px_8px_-4px_rgba(0,0,0,0.06)]",false:""},withTimer:{true:"",false:""}},compoundVariants:[{variant:"assistant",withTimer:!0,className:"bg-white p-[16px] rounded-[4px]"},{variant:"user",withTimer:!0,className:"bg-[var(--color-gray-100)] [background-image:none] border-0 rounded-[4px] shadow-none overflow-visible"}],defaultVariants:{variant:"user",isSticky:!1,withTimer:!1}}),Jl=v("flex w-full",{variants:{variant:{user:"flex-col gap-[8px]",assistant:"flex-col gap-[8px]",system:"flex-row items-center gap-[8px]",loader:"flex-col items-start"}},defaultVariants:{variant:"user"}}),Ql=v("typography-h4 text-[var(--color-blue-1000)]"),lt=v("typography-small",{variants:{variant:{user:"text-[var(--color-blue-1000)]",assistant:"text-[var(--color-blue-1000)]",system:"text-[var(--color-gray-600)]",loader:""}},defaultVariants:{variant:"user"}}),it=v("flex gap-[8px] p-[4px] rounded-[4px] transition-opacity duration-200",{variants:{variant:{user:"",assistant:"",system:"hidden",loader:"hidden"}},defaultVariants:{variant:"user"}}),ei=v(["flex","gap-[8px]","opacity-0","group-hover:opacity-100","transition-opacity","duration-200"]),ri=v("p-1 rounded-[4px] text-[var(--color-gray-400)] hover:text-[var(--color-gray-800)] hover:drop-shadow-[0_1px_2px_rgba(0,0,0,0.05)] transition-all duration-200 focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-1 disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:text-[var(--color-gray-400)] disabled:hover:drop-shadow-none",{variants:{isActive:{true:"text-[var(--color-blue-800)]",false:""}},defaultVariants:{isActive:!1}}),ti=v("flex items-start justify-center shrink-0 pt-[4px]"),oi=v("flex items-center justify-center size-[32px] rounded-full bg-[var(--color-blue-1000)]"),ai=v("text-[12px] text-[var(--color-gray-600)] mt-[4px]"),ni=v("flex items-center justify-center"),si=v("relative overflow-hidden flex items-center gap-[8px] py-[2px] select-none"),li=v(["absolute -inset-y-2 -inset-x-4","animate-shimmer","bg-[linear-gradient(90deg,transparent_0%,transparent_35%,rgba(255,255,255,0.4)_50%,transparent_65%,transparent_100%)]","blur-[1px]","z-10 pointer-events-none"]),ii=v(["relative shrink-0 flex items-center justify-center","text-[var(--color-gray-600)]","animate-signal-rhythm","origin-center"]),ci=v(["absolute inset-0","bg-[var(--color-blue-200)]","rounded-full","opacity-0","animate-ping-slow","-z-10"]),di=v(["flex","flex-col","w-full","bg-[var(--color-white)]","rounded-[16px]","border","border-[var(--color-blue-800)]","p-[16px]","gap-[8px]","transition-colors","duration-200"]),pi=v(["w-full","min-h-[60px]","bg-transparent","border-none","resize-none","typography-small","text-[var(--color-blue-1000)]","placeholder:text-[var(--color-gray-600)]","focus:outline-none","disabled:opacity-50","disabled:cursor-not-allowed"]),xi=v(["text-[12px]","leading-[16px]","text-[var(--color-gray-600)]"]),fi=v("flex items-center gap-[8px]"),ui=v("overflow-clip shrink-0 size-[24px]"),gi=v("text-[14px] leading-[20px] font-semibold text-[var(--color-blue-1000)] whitespace-nowrap"),mi=v("text-[14px] leading-[20px] text-[var(--color-gray-400)] whitespace-nowrap"),hi=v(["flex","items-center","gap-[4px]"]),ct=v(["p-[4px]","rounded-[4px]","text-[var(--color-gray-400)]","transition-colors","duration-200","hover:text-[var(--color-gray-800)]","hover:bg-[var(--color-gray-100)]","disabled:opacity-30","disabled:cursor-not-allowed","disabled:hover:bg-transparent","disabled:hover:text-[var(--color-gray-400)]","focus-visible:ring-2","focus-visible:ring-[var(--color-blue-200)]","focus-visible:ring-offset-1"]),bi=v(["text-[12px]","leading-[16px]","text-[var(--color-gray-600)]","font-normal","tabular-nums","select-none","min-w-[32px]","text-center"]),wr=r=>{const t=typeof r=="string"?new Date(r):r,a=new Date().getTime()-t.getTime(),n=Math.floor(a/6e4);if(n<1)return"Just now";if(n===1)return"1 minute ago";if(n<60)return`${n} minutes ago`;const s=Math.floor(n/60);return s===1?"1 hour ago":s<24?`${s} hours ago`:t.toLocaleDateString()};function vi(r){const[t,o]=j.useState(()=>r?wr(r):"");return j.useEffect(()=>{if(!r){o("");return}o(wr(r));const a=setInterval(()=>{o(wr(r))},3e4);return()=>clearInterval(a)},[r]),t}const yi=[],ji=typeof navigator<"u"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),wi=ji?"⌘+Enter to save, Esc to cancel":"Ctrl+Enter to save, Esc to cancel",Ci=r=>{const t=typeof r=="string"?new Date(r):r,a=new Date().getTime()-t.getTime(),n=Math.floor(a/6e4);if(n<1)return"Just now";if(n<60)return`${n} min ago`;const s=Math.floor(n/60);return s<24?`${s}h ago`:t.toLocaleDateString()},Re=j.memo(({onClick:r,icon:t,label:o,className:a,isActive:n=!1,disabled:s=!1,showSuccessFeedback:l=!1,successIcon:i=c.Check,successDuration:d=2e3})=>{const[x,p]=j.useState(!1),f=j.useCallback(async()=>{if(!(!r||s))try{await r(),l&&(p(!0),setTimeout(()=>p(!1),d))}catch(g){console.error("Action failed:",g)}},[r,s,l,d]),u=x?i:t;return e.jsx("button",{className:y(ri({isActive:n||x}),a),onClick:f,type:"button","aria-label":x?"Success":o,disabled:s,children:e.jsx(u,{size:12})})});Re.displayName="ActionButton";const Mo=j.memo(({branchInfo:r,onPrevious:t,onNext:o,isLoading:a=!1})=>{const n=r.currentIndex>1,s=r.currentIndex<r.totalBranches;return r.totalBranches<=1?null:e.jsxs("div",{className:y(hi()),children:[e.jsx("button",{type:"button",className:y(ct()),onClick:t,disabled:!n||a,"aria-label":"Previous version",children:e.jsx(c.ChevronLeft,{size:14})}),e.jsxs("span",{className:y(bi()),children:[r.currentIndex," / ",r.totalBranches]}),e.jsx("button",{type:"button",className:y(ct()),onClick:o,disabled:!s||a,"aria-label":"Next version",children:e.jsx(c.ChevronRight,{size:14})})]})});Mo.displayName="BranchNavigator";const Si=()=>{const[r,t]=j.useState(0);return j.useEffect(()=>{const o=setInterval(()=>{t(a=>a+1)},2500);return()=>clearInterval(o)},[]),e.jsx("div",{className:y(ni()),children:e.jsx(Dr,{size:28,colorVariant:"lightTeal",animated:!0,animationDuration:2},r)})},Ro=j.forwardRef(({className:r,variant:t="user",heading:o,children:a,isLoading:n,timestamp:s,hideAvatar:l=!1,showTimestamp:i=!1,isSticky:d=!1,isInitialPrompt:x=!1,alignment:p,actions:f=yi,enableCopy:u=!1,copyIcon:g,onCopySuccess:m,enableEdit:h=!1,isEditing:b,initialEditContent:w,onEditStart:S,onEditCancel:T,onEditSave:L,isSaving:C=!1,branchInfo:z,onPreviousBranch:I,onNextBranch:$,isBranchLoading:F=!1,withTimer:k=!1,senderName:N,senderAvatar:B,senderTime:W,...V},H)=>{const E=vi(k&&!W?s:void 0),O=W||E,A=j.useRef(null),D=j.useRef(null),[_,ue]=j.useState(!1),[te,Z]=j.useState(!1),[U,se]=j.useState(w??""),Q=b??te,K=p??(t==="user"?x?"center":"right":"left"),ye=j.useCallback(()=>A.current?A.current.innerText:typeof a=="string"?a:"",[a]),Ne=j.useCallback(()=>{if(b===void 0){const G=w??ye();se(G),Z(!0)}S==null||S()},[w,ye,b,S]),ge=j.useCallback(()=>{b===void 0&&Z(!1),se(""),T==null||T()},[b,T]),je=j.useCallback(async()=>{if(!(!(U!=null&&U.trim())||C)&&U.trim()!==(w==null?void 0:w.trim()))try{await(L==null?void 0:L(U)),b===void 0&&Z(!1),se("")}catch(G){console.error("Failed to save edit:",G)}},[U,C,L,b,w]),ze=j.useCallback(G=>{G.key==="Escape"?ge():G.key==="Enter"&&(G.metaKey||G.ctrlKey)&&(G.preventDefault(),je())},[ge,je]),Ur=j.useRef(!1),Yr=j.useRef(w);j.useEffect(()=>{Yr.current=w},[w]),j.useEffect(()=>{const G=Ur.current;if(Ur.current=Q,Q&&!G){const Ve=w||Yr.current||ye()||"";se(Ve)}else!Q&&G&&se("")},[Q,w,ye]),j.useEffect(()=>{if(Q&&D.current){D.current.focus();const G=D.current.value.length;D.current.setSelectionRange(G,G)}},[Q]);const Sa=j.useCallback(async()=>{if(!A.current)return;const G=A.current.innerText;try{navigator.clipboard&&navigator.clipboard.writeText?(await navigator.clipboard.writeText(G),ue(!0),m==null||m(),setTimeout(()=>{ue(!1)},2e3)):console.warn("Clipboard API not available")}catch(Ve){console.error("Failed to copy:",Ve)}},[m]),ka=j.useCallback(G=>{se(G.target.value)},[]),Zr=j.useMemo(()=>f.length>0||u||h&&t==="user",[f.length,u,h,t]),Kr=j.useMemo(()=>!d&&!Q&&(t==="user"||t==="assistant")&&Zr,[d,Q,t,Zr]),Xr=j.useMemo(()=>!Q&&z&&z.totalBranches>1&&t==="user",[Q,z,t]);return t==="loader"||n?e.jsx("div",{ref:H,className:y(jr({variant:"loader",alignment:"left",isEditing:!1}),r),...V,children:e.jsx("div",{className:y(st({variant:"loader",isSticky:d})),children:e.jsx(Si,{})})}):Q&&t==="user"?e.jsxs("div",{ref:H,className:y(jr({variant:t,alignment:"right",isEditing:!0}),"group",r),...V,children:[e.jsx("div",{className:y(di()),children:e.jsx("textarea",{ref:D,value:U,onChange:ka,onKeyDown:ze,className:y(pi()),placeholder:"Edit your message...",disabled:C,"aria-label":"Edit message"})}),e.jsxs("div",{className:y(it({variant:t}),"opacity-100 justify-between"),children:[e.jsx("span",{className:y(xi()),children:wi}),e.jsxs("div",{className:"flex",children:[e.jsx(Re,{onClick:je,icon:c.Check,label:"Save",disabled:C||!(U!=null&&U.trim())||U.trim()===(w==null?void 0:w.trim())}),e.jsx(Re,{onClick:ge,icon:c.X,label:"Cancel",disabled:C})]})]})]}):e.jsxs("div",{ref:H,className:y(jr({variant:t,alignment:K,isEditing:!1}),"group",r),...V,children:[k&&N&&e.jsxs("div",{className:y(fi()),children:[B&&e.jsx("div",{className:y(ui()),children:B}),e.jsx("span",{className:y(gi()),children:N}),O&&e.jsx("span",{className:y(mi()),children:O})]}),e.jsxs("div",{className:y(Xl()),children:[!k&&!l&&t==="assistant"&&e.jsx("div",{className:y(ti()),children:e.jsx("div",{className:y(oi()),children:e.jsx(Br,{size:20,colorVariant:"lightTeal"})})}),e.jsxs("div",{className:y(ql()),children:[e.jsx("div",{className:y(st({variant:t,isSticky:d,withTimer:k})),children:e.jsx("div",{className:y(Jl({variant:t})),ref:A,children:t==="system"?e.jsxs("div",{className:y(si()),children:[e.jsx("div",{className:y(li())}),e.jsxs("div",{className:y(ii()),children:[e.jsx(c.Activity,{size:16}),e.jsx("div",{className:y(ci())})]}),e.jsx("span",{className:y(lt({variant:t})),children:a})]}):e.jsxs(e.Fragment,{children:[t==="assistant"&&o&&e.jsx("h4",{className:y(Ql()),children:o}),e.jsx("div",{className:y(lt({variant:t})),children:a})]})})}),i&&s&&e.jsx("div",{className:y(ai()),children:Ci(s)}),(Kr||Xr)&&e.jsxs("div",{className:y(it({variant:t}),"justify-between"),children:[e.jsx("div",{className:y(ei()),children:Kr&&e.jsxs(e.Fragment,{children:[u&&g&&e.jsx(Re,{onClick:Sa,icon:_?c.Check:g,label:_?"Copied":"Copy",isActive:_}),h&&t==="user"&&e.jsx(Re,{onClick:Ne,icon:c.Edit2,label:"Edit"}),f.map((G,Ve)=>e.jsx(Re,{onClick:G.onClick,icon:G.icon,label:G.label,isActive:G.isActive,showSuccessFeedback:G.showSuccessFeedback,successIcon:G.successIcon,successDuration:G.successDuration},`${G.label}-${Ve}`))]})}),Xr&&z&&e.jsx(Mo,{branchInfo:z,onPrevious:I,onNext:$,isLoading:F})]})]})]})]})});Ro.displayName="MessageBubble";const ki=v("w-full overflow-hidden rounded-full bg-[var(--color-gray-200)]",{variants:{size:{small:"h-1",medium:"h-2",large:"h-3"}},defaultVariants:{size:"medium"}}),Ni=v("h-full w-full flex-1 transition-all duration-300 ease-in-out rounded-full",{variants:{variant:{default:"bg-[var(--color-blue-800)]",success:"bg-[var(--color-green-1000)]",error:"bg-[var(--color-red-1000)]",warning:"bg-[var(--color-amber-1000)]"}},defaultVariants:{variant:"default"}}),zi=v("flex justify-between mb-2 text-[var(--color-gray-800)]",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),Fo=j.forwardRef(({className:r,value:t=0,max:o=100,variant:a="default",size:n="medium",showValueLabel:s=!1,label:l,valueFormatter:i,...d},x)=>{const p=Math.min(Math.max(t/o*100,0),100),f=i?i(t,o):`${Math.round(p)}%`;return e.jsxs("div",{ref:x,className:y("w-full",r),role:"progressbar","aria-valuemin":0,"aria-valuemax":o,"aria-valuenow":t,...d,children:[(l||s)&&e.jsxs("div",{className:zi({size:n}),children:[l&&e.jsx("span",{className:"font-medium",children:l}),s&&e.jsx("span",{className:"ml-auto",children:f})]}),e.jsx("div",{className:ki({size:n}),children:e.jsx("div",{className:Ni({variant:a}),style:{transform:`translateX(-${100-p}%)`}})})]})});Fo.displayName="ProgressBar";const Ti=v("rounded-full border transition-colors duration-[var(--archie-anim-duration)] ease-[var(--archie-anim-easing)] flex items-center justify-center shrink-0 peer-focus-visible:ring-2 peer-focus-visible:ring-[var(--color-blue-200)] peer-focus-visible:ring-offset-1",{variants:{checked:{true:"border-[var(--color-blue-800)] bg-white",false:"border-[var(--color-gray-200)] bg-white group-hover:border-[var(--color-gray-600)]"},error:{true:"border-[var(--color-red-1000)]",false:""},size:{small:"w-[14px] h-[14px]",medium:"w-[16px] h-[16px]",large:"w-[20px] h-[20px]"}},compoundVariants:[],defaultVariants:{checked:!1,error:!1,size:"medium"}}),Li=v("rounded-full bg-[var(--color-blue-800)] transition-transform duration-[var(--archie-anim-duration)] ease-[var(--archie-anim-easing)]",{variants:{size:{small:"w-[6px] h-[6px]",medium:"w-[8px] h-[8px]",large:"w-[10px] h-[10px]"}},defaultVariants:{size:"medium"}}),$i="sr-only peer",Ai=v("inline-flex items-start gap-3 cursor-pointer select-none group disabled:cursor-not-allowed",{variants:{disabled:{true:"opacity-50 cursor-not-allowed",false:""}},defaultVariants:{disabled:!1}}),Mi={sm:"small",small:"small",md:"medium",medium:"medium",lg:"large",large:"large"},Io=j.createContext({}),Bo=j.forwardRef(({name:r,value:t,defaultValue:o,onChange:a,size:n="medium",disabled:s,children:l,className:i,orientation:d="vertical"},x)=>{const[p,f]=j.useState(o),u=t!==void 0,g=u?t:p,m=h=>{u||f(h),a==null||a(h)};return e.jsx(Io.Provider,{value:{name:r,value:g,onChange:m,size:n,disabled:s},children:e.jsx("div",{ref:x,role:"radiogroup",className:y("flex",d==="vertical"?"flex-col gap-3":"flex-row gap-4 flex-wrap",i),children:l})})});Bo.displayName="RadioGroup";const Do=j.forwardRef(({className:r,label:t,description:o,error:a,size:n,disabled:s,value:l,id:i,name:d,checked:x,onChange:p,...f},u)=>{const g=j.useContext(Io),m=j.useId(),h=d??g.name,b=Mi[n??g.size??"medium"],w=s??g.disabled,S=x??(g.value!==void 0?g.value===l:void 0),T=!!S,L=i??`${h??"radio"}-${l}-${m}`,C=z=>{p==null||p(z),g.onChange&&z.target.checked&&g.onChange(l)};return e.jsxs("label",{htmlFor:L,className:Ai({disabled:w,className:r}),children:[e.jsxs("span",{className:"relative flex items-center pt-0.5",children:[e.jsx("input",{ref:u,type:"radio",id:L,name:h,value:l,checked:S,disabled:w,onChange:C,"aria-invalid":!!a||void 0,className:$i,...f}),e.jsx("span",{className:Ti({checked:T,error:!!a,size:b}),children:e.jsx("span",{className:y(Li({size:b}),"transition-opacity duration-[var(--archie-anim-duration)]",T?"opacity-100 scale-100":"opacity-0 scale-50")})})]}),(t||o||a)&&e.jsxs("span",{className:"flex flex-col",children:[t&&e.jsx("span",{className:y("text-[0.875rem] leading-[1.25rem] font-medium",w?"text-[var(--color-gray-600)]":"text-[var(--color-gray-1000)]"),children:t}),o&&e.jsx("span",{className:"text-[0.75rem] leading-[1rem] text-[var(--color-gray-600)] mt-0.5",children:o}),a&&e.jsx("span",{className:"text-[0.75rem] leading-[1rem] text-[var(--color-red-1000)] mt-0.5",role:"alert",children:a})]})]})});Do.displayName="Radio";const Ri=v(["w-full h-2 rounded-lg appearance-none cursor-pointer","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","[&::-webkit-slider-thumb]:appearance-none","[&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5","[&::-webkit-slider-thumb]:bg-[var(--color-white)]","[&::-webkit-slider-thumb]:border-2","[&::-webkit-slider-thumb]:rounded-full","[&::-webkit-slider-thumb]:shadow-sm","[&::-webkit-slider-thumb]:transition-all [&::-webkit-slider-thumb]:duration-200","[&::-webkit-slider-thumb]:hover:scale-110","[&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5","[&::-moz-range-thumb]:bg-[var(--color-white)]","[&::-moz-range-thumb]:border-2","[&::-moz-range-thumb]:rounded-full","[&::-moz-range-thumb]:shadow-sm","[&::-moz-range-thumb]:transition-all [&::-moz-range-thumb]:duration-200","[&::-moz-range-thumb]:hover:scale-110"].join(" "),{variants:{variant:{cyan:["focus-visible:ring-[var(--color-blue-200)]","[&::-webkit-slider-thumb]:border-[var(--color-gray-200)] [&::-webkit-slider-thumb]:hover:border-[var(--color-blue-800)]","[&::-moz-range-thumb]:border-[var(--color-gray-200)] [&::-moz-range-thumb]:hover:border-[var(--color-blue-800)]"],orange:["focus-visible:ring-[var(--color-orange-200)]","[&::-webkit-slider-thumb]:border-[var(--color-gray-200)] [&::-webkit-slider-thumb]:hover:border-[var(--color-orange-800)]","[&::-moz-range-thumb]:border-[var(--color-gray-200)] [&::-moz-range-thumb]:hover:border-[var(--color-orange-800)]"]},animated:{true:["[&::-webkit-slider-thumb]:animate-pulse","[&::-moz-range-thumb]:animate-pulse"],false:[]}},defaultVariants:{variant:"cyan",animated:!1}}),Eo=j.forwardRef(({className:r,variant:t="cyan",animated:o=!1,style:a,...n},s)=>{const{min:l=0,max:i=100,value:d,defaultValue:x}=n,p=Number(d??x??0),f=Number(l),u=Number(i),g=Math.min(Math.max((p-f)*100/(u-f),0),100),m=t==="orange"?"var(--color-orange-800)":"var(--color-blue-800)",h=`linear-gradient(to right, ${m} 0%, ${m} ${g}%, var(--color-gray-200) ${g}%, var(--color-gray-200) 100%)`;return e.jsx("input",{ref:s,type:"range",className:y(Ri({variant:t,animated:o}),r),style:{background:h,...a},...n})});Eo.displayName="RangeInput";const Fi=v("box-border flex cursor-pointer transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2",{variants:{type:{collapsed:"flex-col items-center justify-center w-[64px] py-[6px] px-[4px] gap-[4px] rounded-[4px]",expanded:"flex-row items-center w-full h-[32px] px-[4px] py-[6px] gap-[8px] rounded-[4px]"},variant:{default:"text-[var(--color-gray-800)] hover:bg-[var(--color-gray-100)]",active:"text-[var(--color-blue-800)] bg-[var(--color-blue-200)]",brand:"h-[44px] rounded-[24px] bg-transparent hover:bg-transparent"},heightAuto:{true:"h-auto"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none"}},compoundVariants:[{type:"collapsed",variant:"active",className:"bg-[var(--color-blue-200)]"}],defaultVariants:{type:"expanded",variant:"default",heightAuto:!1,disabled:!1}}),Ii=v("relative shrink-0 flex items-center justify-center",{variants:{type:{collapsed:"size-[16px]",expanded:"size-[16px]"},variant:{default:"text-[var(--color-gray-800)]",active:"text-[var(--color-blue-800)]",brand:"text-[var(--color-blue-1000)] size-[24px]"},heightAuto:{true:"size-auto"}},defaultVariants:{type:"expanded",variant:"default",heightAuto:!1}}),Bi=v("font-normal whitespace-nowrap shrink-0",{variants:{type:{collapsed:"text-[8px] leading-[10px] text-center min-w-full",expanded:"text-[14px] leading-[20px]"},variant:{default:"text-[var(--color-gray-800)]",active:"text-[var(--color-blue-800)]",brand:"hidden"}},defaultVariants:{type:"expanded",variant:"default"}}),Po=j.forwardRef(({className:r,icon:t,label:o,isCollapsed:a=!1,isActive:n=!1,variant:s="default",heightAuto:l=!1,disabled:i=!1,onClick:d,children:x,...p},f)=>{const u=a?"collapsed":"expanded",g=n?"active":s,m=b=>{i||d&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),d())},h=()=>{i||d==null||d()};return e.jsxs("div",{ref:f,className:y(Fi({type:u,variant:g,heightAuto:l,disabled:i}),r),role:"button",tabIndex:i?-1:0,"aria-label":o,"aria-disabled":i,onClick:h,onKeyDown:m,...p,children:[t&&e.jsx("div",{className:y(Ii({type:u,variant:g,heightAuto:l})),children:t}),(s!=="brand"||!a)&&e.jsx("span",{className:y(Bi({type:u,variant:g})),children:o})]})});Po.displayName="SidebarItem";const Di={text:"rounded",circular:"rounded-full",rectangular:"rounded-none",rounded:"rounded-lg"},Se=j.forwardRef(({className:r,variant:t="text",width:o,height:a,animation:n="pulse",style:s,...l},i)=>e.jsx("div",{ref:i,"aria-hidden":"true",className:y("bg-[var(--color-gray-100)]",Di[t],n==="pulse"&&"animate-pulse",n==="wave"&&"overflow-hidden relative before:absolute before:inset-0 before:translate-x-[-100%] before:animate-shimmer before:bg-gradient-to-r before:from-transparent before:via-white/40 before:to-transparent",r),style:{width:typeof o=="number"?`${o}px`:o,height:typeof a=="number"?`${a}px`:a,...s},...l}));Se.displayName="Skeleton";const Pr=j.forwardRef(({lines:r=1,className:t,...o},a)=>r===1?e.jsx(Se,{ref:a,variant:"text",height:16,className:t,...o}):e.jsx("div",{ref:a,className:y("space-y-2",t),children:Array.from({length:r}).map((n,s)=>e.jsx(Se,{variant:"text",height:16,width:s===r-1?"75%":"100%",...o},s))}));Pr.displayName="SkeletonText";const Wr=j.forwardRef(({size:r=40,...t},o)=>e.jsx(Se,{ref:o,variant:"circular",width:r,height:r,...t}));Wr.displayName="SkeletonAvatar";const Wo=j.forwardRef(({className:r,...t},o)=>e.jsxs("div",{ref:o,className:y("p-4 space-y-4",r),children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Wr,{size:40,...t}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsx(Se,{variant:"text",height:16,width:"40%",...t}),e.jsx(Se,{variant:"text",height:12,width:"60%",...t})]})]}),e.jsx(Pr,{lines:3,...t})]}));Wo.displayName="SkeletonCard";const Ei=v("inline-flex items-center justify-center rounded-[4px] whitespace-nowrap transition-colors duration-200 box-border",{variants:{variant:{default:"border border-[var(--color-gray-200)] bg-[var(--color-gray-100)] px-2 py-[2px] text-[var(--color-gray-800)] gap-1",collaborator:"border border-[var(--color-gray-200)] bg-[var(--color-gray-100)] px-2 py-[2px] text-[var(--color-gray-800)] gap-1",indicator:"bg-[var(--color-gray-100)] px-[2px] h-[12px] gap-[4px] text-[var(--color-gray-600)]",highlight:"border border-[var(--color-blue-800)] bg-[var(--color-blue-800-subtle)] px-2 py-[2px] text-[var(--color-blue-1000)] gap-1",error:"bg-[var(--color-red-200)] px-[2px] h-[12px] gap-[4px] text-[var(--color-red-1000)]"}},defaultVariants:{variant:"default"}}),Pi=v("w-4 h-4 rounded-full object-cover shrink-0"),dt=v("flex items-center justify-center shrink-0"),Ee=j.forwardRef(({className:r,variant:t="default",startIcon:o,endIcon:a,avatarSrc:n,onDelete:s,children:l,...i},d)=>e.jsxs("div",{ref:d,className:y(s&&"relative group",Ei({variant:t}),r),...i,children:[n&&e.jsx("img",{src:n,alt:"avatar",className:Pi()}),o&&e.jsx("span",{className:dt(),children:o}),e.jsx(Ke,{variant:"tag",color:"inherit",className:"whitespace-nowrap",children:l}),a&&e.jsx("span",{className:dt(),children:a}),s&&e.jsx(q.motion.button,{onClick:x=>{x.stopPropagation(),s()},className:"absolute -top-[6px] -right-[6px] hidden group-hover:flex items-center justify-center bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[8px] p-[2px] focus:outline-none focus:ring-2 focus:ring-[var(--color-blue-800)] shrink-0 z-20","aria-label":"Remove",initial:{scale:0,opacity:0},whileInView:{scale:1,opacity:1},whileHover:{scale:1.1},whileTap:{scale:.95},transition:{scale:{type:"spring",stiffness:400,damping:17},opacity:{duration:.2}},children:e.jsx(c.X,{size:10,className:"text-[var(--color-gray-800)]"})})]}));Ee.displayName="Tag";const Wi=v("inline-flex items-center justify-start bg-transparent p-0 w-full",{variants:{variant:{default:"",underline:"border-b border-[var(--color-gray-200)] [&>button]:-mb-px",pills:"bg-[var(--color-gray-200)] rounded p-0.5 gap-1 w-auto",segmented:"bg-[var(--color-gray-100)] rounded-lg p-[3px] gap-[2px] w-auto","filter-pills":"gap-1.5 flex-wrap w-auto"}},defaultVariants:{variant:"default"}}),Vi=v("inline-flex items-center justify-center whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 transition-colors cursor-pointer group shrink-0",{variants:{variant:{default:'p-2 font-["Geist",system-ui,sans-serif] text-[10px] leading-4 font-normal border-b border-[var(--color-gray-200)] text-[var(--color-gray-600)] data-[state=active]:text-[var(--color-blue-1000)] data-[state=active]:border-[var(--color-blue-1000)] data-[state=inactive]:hover:bg-[var(--color-gray-100)] gap-2',underline:'p-2 font-["Geist",system-ui,sans-serif] text-[10px] leading-4 font-normal border-b border-[var(--color-gray-200)] text-[var(--color-gray-600)] data-[state=active]:text-[var(--color-blue-1000)] data-[state=active]:border-[var(--color-blue-1000)] data-[state=inactive]:hover:bg-[var(--color-gray-100)] gap-2',pills:"px-2 h-6 rounded font-body text-xs leading-4 font-light text-[var(--color-blue-1000)] border border-transparent data-[state=active]:bg-[var(--color-white)] data-[state=active]:border-[var(--color-gray-200)] data-[state=active]:shadow-sm data-[state=inactive]:hover:bg-[var(--color-gray-100)]",segmented:"py-[5px] px-3 rounded-md text-xs font-normal text-[var(--color-gray-600)] data-[state=active]:bg-[var(--color-white)] data-[state=active]:text-[var(--color-gray-1000)] data-[state=active]:font-semibold data-[state=active]:shadow-sm data-[state=inactive]:hover:text-[var(--color-gray-800)]","filter-pills":"py-1 px-3 rounded-full text-xs font-medium text-[var(--color-gray-600)] border border-[var(--color-gray-200)] data-[state=active]:bg-[rgba(21,177,205,0.09)] data-[state=active]:text-[var(--color-blue-800)] data-[state=active]:border-[rgba(21,177,205,0.25)] data-[state=inactive]:hover:bg-[var(--color-gray-100)] capitalize"}},defaultVariants:{variant:"default"}}),Hi=v("mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2"),_i=v("flex items-center gap-[2px]"),pt=v("group-data-[state=active]:text-[var(--color-blue-1000)]"),Vo=Be.createContext("default"),Oi=ke.Root,Ho=Be.forwardRef(({className:r,variant:t="default",...o},a)=>e.jsx(Vo.Provider,{value:t,children:e.jsx(ke.List,{ref:a,className:y(Wi({variant:t}),r),...o})}));Ho.displayName=ke.List.displayName;const _o=Be.forwardRef(({className:r,children:t,errorCount:o,configurationCount:a,...n},s)=>{const l=Be.useContext(Vo);return e.jsxs(ke.Trigger,{ref:s,className:y(Vi({variant:l}),r),...n,children:[t,l!=="pills"&&(a!==void 0||o!==void 0)&&e.jsxs("div",{className:_i(),children:[a!==void 0&&e.jsx(Ee,{variant:"indicator",startIcon:e.jsx(c.Settings,{size:10,className:"text-[#15B1CD]"}),className:pt(),children:a}),o!==void 0&&e.jsx(Ee,{variant:"indicator",startIcon:e.jsx(c.TriangleAlert,{size:10,className:"text-[#FB6060]"}),className:pt(),children:o})]})]})});_o.displayName=ke.Trigger.displayName;const Oo=Be.forwardRef(({className:r,...t},o)=>e.jsx(ke.Content,{ref:o,className:y(Hi(),r),...t}));Oo.displayName=ke.Content.displayName;const Gi=v("w-full bg-[var(--color-white)] border border-solid rounded-[var(--archie-radius-lg)] font-normal transition-colors duration-[var(--archie-anim-duration)] box-border focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 min-h-[80px]",{variants:{status:{default:"border-[var(--color-gray-200)] text-[var(--color-gray-600)] placeholder:text-[var(--color-gray-600)] hover:border-[var(--color-gray-500)] focus:border-[var(--color-blue-1000)] focus:text-[var(--color-blue-1000)]",error:"border-[var(--color-red-1000)] text-[var(--color-red-1000)] placeholder:text-[var(--color-red-1000)] focus:border-[var(--color-red-1000)]",success:"border-[var(--color-green-1000)] text-[var(--color-green-1000)] placeholder:text-[var(--color-green-1000)] focus:border-[var(--color-green-1000)]"},size:{medium:"px-4 py-4 text-[1rem] leading-[1.5rem]",small:"px-3 py-2 text-[0.875rem] leading-[1.25rem]",tiny:"p-2 text-[0.75rem] leading-[1rem]"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{status:"default",size:"medium",resize:"vertical"}}),Ui=v("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),Yi={medium:"medium",small:"small",tiny:"tiny",md:"medium",sm:"small",lg:"medium"},Vr=j.forwardRef(({className:r,status:t="default",size:o="medium",resize:a="vertical",disabled:n,label:s,hint:l,...i},d)=>{const x=Yi[o]??"medium";return e.jsxs("div",{className:"flex flex-col gap-1",children:[s&&e.jsx("label",{className:"text-[11px] font-semibold text-[var(--color-gray-800)]",children:s}),e.jsx("div",{className:Ui({size:x}),children:e.jsx("textarea",{ref:d,className:y(Gi({status:t,size:x,resize:a}),r),disabled:n,...i})}),l&&e.jsx("span",{className:"text-[11px] text-[var(--color-gray-600)]",children:l})]})});Vr.displayName="TextArea";const Zi=Vr,Ki=v("inline-flex items-center gap-1 font-sans whitespace-nowrap",{variants:{size:{small:"text-[0.625rem] leading-[1rem]",medium:"text-[0.75rem] leading-[1rem]",large:"text-[0.875rem] leading-[1.25rem]"},variant:{default:"text-[var(--color-gray-600)]",primary:"text-[var(--color-gray-800)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{size:"medium",variant:"default"}}),Xi=v("flex items-center justify-center shrink-0",{variants:{size:{small:"[&>svg]:w-[10px] [&>svg]:h-[10px]",medium:"[&>svg]:w-[12px] [&>svg]:h-[12px]",large:"[&>svg]:w-[14px] [&>svg]:h-[14px]"}},defaultVariants:{size:"medium"}}),qi=(r,t)=>{const o=t.getTime()-r.getTime(),a=Math.floor(o/1e3),n=Math.floor(a/60),s=Math.floor(n/60),l=Math.floor(s/24),i=Math.floor(l/7),d=Math.floor(l/30),x=Math.floor(l/365),p=o<0,f=Math.abs(a),u=Math.abs(n),g=Math.abs(s),m=Math.abs(l),h=Math.abs(i),b=Math.abs(d),w=Math.abs(x),S=(T,L)=>{const C=T===1?"":"s";return p?`in ${T} ${L}${C}`:`${T} ${L}${C} ago`};return f<60?"just now":u<60?S(u,"minute"):g<24?S(g,"hour"):m===1?p?"tomorrow":"yesterday":m<7?S(m,"day"):h<4?S(h,"week"):b<12?S(b,"month"):S(w,"year")},Ji=(r,t,o)=>{switch(t){case"relative":return qi(r,new Date);case"short":return r.toLocaleDateString(o,{month:"short",day:"numeric",year:"numeric"});case"long":return r.toLocaleDateString(o,{month:"long",day:"numeric",year:"numeric"});case"time":return r.toLocaleTimeString(o,{hour:"numeric",minute:"2-digit",hour12:!0});case"datetime":return r.toLocaleDateString(o,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0});default:return r.toLocaleDateString(o)}},Qi=r=>r instanceof Date?r:typeof r=="number"?new Date(r):new Date(r),Go=j.forwardRef(({className:r,date:t,format:o="relative",size:a="medium",variant:n="default",showIcon:s=!1,locale:l="en-US",...i},d)=>{const x=j.useMemo(()=>Qi(t),[t]),p=j.useMemo(()=>Ji(x,o,l),[x,o,l]),f=j.useMemo(()=>x.toISOString(),[x]),u=n==="primary"?"var(--color-gray-800)":"var(--color-gray-600)",g=a==="small"?10:a==="large"?14:12;return e.jsxs("time",{ref:d,dateTime:f,className:y(Ki({size:a,variant:n}),r),...i,children:[s&&e.jsx("span",{className:Xi({size:a}),children:e.jsx(c.ClockHistory,{size:g,color:u})}),p]})});Go.displayName="Timestamp";const ec=v("flex min-w-[420px] w-fit max-w-[850px] pl-4 pr-3 py-3 rounded-[var(--archie-radius-xl)] [box-shadow:var(--archie-shadow-lg)] border pointer-events-auto gap-2 relative items-center bg-white",{variants:{variant:{info:"bg-[linear-gradient(90deg,rgba(21,177,205,0.08)_0%,rgba(21,177,205,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-blue-800)]",success:"bg-[linear-gradient(90deg,rgba(113,212,129,0.08)_0%,rgba(113,212,129,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-green-1000)]",warning:"bg-[linear-gradient(90deg,rgba(242,229,40,0.08)_0%,rgba(242,229,40,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-orange-800)]",error:"bg-[linear-gradient(90deg,rgba(251,96,96,0.08)_0%,rgba(251,96,96,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-red-1000)]",prompt:"bg-[var(--color-gray-50)] border-[var(--color-blue-1000)]",loading:"bg-[linear-gradient(90deg,rgba(21,177,205,0.06)_0%,rgba(21,177,205,0.06)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-blue-800)]"}},defaultVariants:{variant:"info"}}),rc=v("flex-shrink-0",{variants:{variant:{info:"text-[var(--color-blue-800)]",success:"text-[var(--color-green-1000)]",warning:"text-[var(--color-orange-800)]",error:"text-[var(--color-red-1000)]",prompt:"text-[var(--color-blue-1000)]",loading:"text-[var(--color-blue-800)]"}},defaultVariants:{variant:"info"}}),tc=v("flex flex-col gap-0.5 flex-1 min-w-0 overflow-hidden"),oc=v("font-bold text-[var(--color-blue-1000)] text-[0.75rem] leading-normal whitespace-nowrap"),ac=v("font-normal text-[var(--color-gray-600)] text-[0.6875rem] leading-normal line-clamp-2"),nc=v("flex items-center gap-2 shrink-0"),sc=v("w-[1px] self-stretch flex-shrink-0 bg-current",{variants:{variant:{info:"text-[var(--color-blue-800)]",success:"text-[var(--color-green-1000)]",warning:"text-[var(--color-orange-800)]",error:"text-[var(--color-red-1000)]",prompt:"text-[var(--color-blue-1000)]",loading:"text-[var(--color-blue-800)]"}},defaultVariants:{variant:"info"}}),lc=v("p-0 bg-transparent border-none text-[var(--color-blue-1000)] hover:opacity-70 transition-opacity flex items-center justify-center w-4 h-4 shrink-0 cursor-pointer rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2"),ic={info:c.Info,success:c.CheckCircle,warning:c.TriangleAlert,error:c.AlertCircle,prompt:c.Sparks,loading:null},cc={info:"var(--color-blue-800)",success:"var(--color-green-1000)",warning:"var(--color-orange-800)",error:"var(--color-red-1000)",prompt:"var(--color-blue-800)",loading:"var(--color-blue-800)"},be=({id:r,variant:t="info",title:o,description:a,icon:n,action:s,secondaryAction:l,onClose:i})=>{const d=ic[t],x=cc[t],p=()=>{i&&i(),r&&ie.toast.dismiss(r)},f=g=>m=>{g(m),r&&ie.toast.dismiss(r)},u=()=>n||(t==="loading"?e.jsx("svg",{className:"animate-spin",width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:e.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:x,strokeWidth:"2",strokeLinecap:"round",strokeDasharray:"28",strokeDashoffset:"8"})}):t==="success"?e.jsx(c.CheckCircle,{size:16,color:x}):t==="error"?e.jsx(c.AlertCircle,{size:16,color:x}):t==="prompt"?e.jsx(c.Sparks,{size:16,color:x}):d?e.jsx(d,{size:16}):null);return e.jsxs("div",{className:y(ec({variant:t})),role:"alert",children:[e.jsx("div",{className:rc({variant:t}),children:u()}),e.jsxs("div",{className:tc(),children:[e.jsx("span",{className:oc(),children:o}),a&&e.jsx("span",{className:ac(),children:a})]}),e.jsx("div",{className:sc({variant:t})}),e.jsxs("div",{className:nc(),children:[l&&e.jsx(De,{onClick:f(l.onClick),variant:"ghost",size:"sm",leftIcon:l.icon||e.jsx(c.Trash,{size:13,color:"currentColor"}),className:"w-auto",children:l.label}),s&&e.jsx(De,{onClick:f(s.onClick),variant:"default",size:"sm",leftIcon:s.icon||e.jsx(c.Check,{size:13,color:"currentColor"}),className:"w-auto",children:s.label}),e.jsx("button",{onClick:p,className:lc(),"aria-label":"Close",children:e.jsx(c.X,{size:16})})]})]})},dc=({position:r="bottom-right",offset:t=24,gap:o=8,width:a,...n})=>e.jsx(ie.Toaster,{position:r,offset:t,gap:o,toastOptions:{unstyled:!0,classNames:{toast:y("bg-transparent p-0",a?"":"w-auto")},style:a?{width:typeof a=="number"?`${a}px`:a}:void 0},...n}),pc={success:(r,t,o)=>ie.toast.custom(a=>e.jsx(be,{id:a,variant:"success",title:r,description:t,action:o})),error:(r,t,o)=>ie.toast.custom(a=>e.jsx(be,{id:a,variant:"error",title:r,description:t,action:o})),warning:(r,t,o)=>ie.toast.custom(a=>e.jsx(be,{id:a,variant:"warning",title:r,description:t,action:o})),info:(r,t,o)=>ie.toast.custom(a=>e.jsx(be,{id:a,variant:"info",title:r,description:t,action:o})),prompt:(r,t,o,a)=>ie.toast.custom(n=>e.jsx(be,{id:n,variant:"prompt",title:r,description:t,action:o,secondaryAction:a})),loading:(r,t)=>ie.toast.custom(o=>e.jsx(be,{id:o,variant:"loading",title:r,description:t})),custom:r=>ie.toast.custom(t=>e.jsx(be,{id:t,...r})),dismiss:r=>ie.toast.dismiss(r)},xc=v("flex items-center justify-between w-full",{variants:{size:{s:"h-10",m:"min-h-[48px]",l:"min-h-[48px]"}},defaultVariants:{size:"l"}}),fc=v("select-none",{variants:{size:{s:"text-[var(--color-blue-1000)]",m:"font-medium text-[var(--color-gray-1000)]",l:"font-medium text-[var(--color-gray-1000)]"}},defaultVariants:{size:"l"}}),uc=v("relative inline-flex shrink-0 cursor-pointer items-center rounded-full transition-colors duration-[var(--archie-anim-duration)] ease-[var(--archie-anim-easing)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{enabled:{true:"bg-[var(--color-blue-800)]",false:"bg-[var(--color-gray-200)]"},size:{s:"h-4 w-7",m:"h-5 w-9",l:"h-6 w-11"}},defaultVariants:{enabled:!1,size:"l"}}),gc=v("pointer-events-none inline-block transform rounded-full bg-white ring-0 transition duration-[var(--archie-anim-duration)] ease-[var(--archie-anim-easing)]",{variants:{enabled:{true:"",false:""},size:{s:"h-3 w-3 shadow-sm",m:"h-4 w-4 shadow",l:"h-5 w-5 shadow-lg"}},compoundVariants:[{enabled:!1,size:"s",class:"translate-x-0.5"},{enabled:!0,size:"s",class:"translate-x-[14px]"},{enabled:!1,size:"m",class:"translate-x-0.5"},{enabled:!0,size:"m",class:"translate-x-[18px]"},{enabled:!1,size:"l",class:"translate-x-0.5"},{enabled:!0,size:"l",class:"translate-x-[22px]"}],defaultVariants:{enabled:!1,size:"l"}}),mc=v("font-bold uppercase text-[var(--color-gray-600)]",{variants:{size:{s:"text-[10px] w-5",m:"text-[10px] w-5",l:"text-xs w-6"}},defaultVariants:{size:"l"}}),hc={s:"x-small",m:"small",l:"small"},Uo=j.forwardRef(({enabled:r,onChange:t,label:o,size:a="l",showStatusLabel:n=!1,className:s,disabled:l,...i},d)=>e.jsxs("div",{className:y(xc({size:a}),s),children:[o&&e.jsx(Ke,{variant:hc[a],className:fc({size:a}),children:o}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{ref:d,type:"button",role:"switch","aria-checked":r,disabled:l,onClick:()=>!l&&t(!r),className:uc({enabled:r,size:a}),...i,children:e.jsx("span",{className:gc({enabled:r,size:a})})}),n&&e.jsx("span",{className:mc({size:a}),children:r?"ON":"OFF"})]})]}));Uo.displayName="Toggle";const bc=v("flex items-center justify-between w-full gap-2 min-h-[20px]"),vc=v("text-xs font-normal font-sans leading-4 whitespace-nowrap",{variants:{status:{success:"text-[var(--color-gray-800)]",warning:"text-[var(--color-gray-800)]",error:"text-[var(--color-gray-800)]",info:"text-[var(--color-gray-800)]",neutral:"text-[var(--color-gray-800)]",loading:"text-[var(--color-gray-800)]"}},defaultVariants:{status:"neutral"}}),yc={success:"var(--color-green-1000)",warning:"var(--color-orange-800)",error:"var(--color-red-1000)",info:"var(--color-blue-800)",neutral:"var(--color-gray-600)",loading:"var(--color-blue-800)"},Yo=j.forwardRef(({className:r,status:t="neutral",message:o,...a},n)=>{const s=t==="loading"?"info":t,l=yc[t],i=()=>t==="loading"?e.jsx(c.Loader,{size:16,color:l,className:"animate-spin"}):t==="success"?e.jsx(c.CheckCircle,{size:16,color:l}):t==="warning"?e.jsx(c.TriangleAlert,{size:16,color:l}):t==="error"?e.jsx(c.AlertCircle,{size:16,color:l}):t==="info"?e.jsx(c.Info,{size:16,color:l}):null;return e.jsxs("div",{ref:n,className:y(bc(),r),...a,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ir,{variant:s,size:"small"}),e.jsx("span",{className:vc({status:t}),children:o})]}),e.jsx("div",{className:"w-4 h-4 flex items-center justify-center",children:i()})]})});Yo.displayName="StatusMessage";const jc=v("inline-flex items-center px-[10px] py-[3px] rounded-full text-[11px] font-semibold whitespace-nowrap shrink-0",{variants:{status:{draft:"bg-[var(--color-gray-200)] text-[var(--color-gray-800)]",provisional:"bg-[#fef9c3] text-[#854d0e]",final:"bg-[var(--color-green-200)] text-[var(--color-green-1000)]"}},defaultVariants:{status:"draft"}}),wc={draft:"Draft",provisional:"Provisional",final:"Final"};function Cc({title:r,subtitle:t,period:o,asAtDate:a,generatedAt:n,status:s,renderMode:l="web",className:i}){const d=l==="pdf",x=l==="excel",p=l==="web"&&s,f=l==="web"&&n,u=d?"12px 16px":x?"8px":"20px 24px",g=d?"18px":"20px";return e.jsxs("div",{className:y("flex items-start justify-between gap-4 bg-[var(--color-white)] border-b border-[var(--color-gray-200)]",i),style:{padding:u},children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("h1",{className:"m-0 font-bold leading-[1.25] text-[var(--color-gray-1000)]",style:{fontSize:g},children:r}),t&&e.jsx("p",{className:"m-0 text-[13px] text-[var(--color-gray-800)]",children:t}),e.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[o&&e.jsx("span",{className:"text-[12px] text-[var(--color-gray-600)]",children:o}),a&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-[12px] text-[var(--color-gray-200)]",children:"·"}),e.jsxs("span",{className:"text-[12px] text-[var(--color-gray-600)]",children:["As at ",a]})]}),o&&f&&e.jsx("span",{className:"text-[12px] text-[var(--color-gray-200)]",children:"·"}),f&&e.jsxs("span",{className:"text-[12px] text-[var(--color-gray-600)]",children:["Generated ",n]})]})]}),p&&e.jsx("span",{className:jc({status:s}),children:wc[s]??s})]})}const Sc={2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"},or={up:"var(--color-green-1000)",down:"var(--color-red-1000)",flat:"var(--color-gray-800)",warning:"var(--color-amber-1000)"},ar="Geist Mono, ui-monospace, monospace";function kc({items:r,columns:t=4,renderMode:o="web",className:a}){if(o==="pdf"||o==="excel")return e.jsx("table",{className:y(a),style:{width:"100%",borderCollapse:"collapse",border:o==="pdf"?"1px solid var(--color-gray-200)":void 0},children:e.jsx("tbody",{children:e.jsx("tr",{children:r.map((s,l)=>e.jsxs("td",{style:{padding:"8px 12px",verticalAlign:"top",borderRight:l<r.length-1?"1px solid var(--color-gray-200)":void 0},children:[e.jsx("div",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-gray-600)"},children:s.label}),e.jsx("div",{style:{fontSize:16,fontWeight:300,fontFamily:ar,fontVariantNumeric:"tabular-nums",letterSpacing:"-0.02em",color:"var(--color-gray-1000)",lineHeight:1.3,marginTop:2},children:s.value}),s.delta&&e.jsx("div",{style:{fontSize:11,fontWeight:600,fontFamily:ar,color:or[s.deltaDir??"flat"]??or.flat,marginTop:1},children:s.delta})]},l))})})});const n=Sc[t]??"grid-cols-4";return e.jsx("div",{className:y(`grid ${n} gap-3`,a),children:r.map((s,l)=>e.jsxs("div",{className:"bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-xl flex flex-col gap-1.5",style:{padding:"18px 20px"},children:[e.jsx("div",{className:"text-[10px] font-bold uppercase tracking-[0.08em] text-[var(--color-gray-600)]",children:s.label}),e.jsx("div",{className:"text-[22px] font-light leading-none text-[var(--color-gray-1000)]",style:{fontFamily:ar,fontVariantNumeric:"tabular-nums",letterSpacing:"-0.02em"},children:s.value}),s.delta&&e.jsx("div",{className:"text-[11px] font-semibold",style:{fontFamily:ar,color:or[s.deltaDir??"flat"]??or.flat},children:s.delta})]},l))})}const xt={up:"var(--color-green-1000)",down:"var(--color-red-1000)",flat:"var(--color-gray-800)",warning:"var(--color-amber-1000)"};function Nc({label:r,value:t,delta:o,deltaDir:a="flat",subtext:n,renderMode:s="web",className:l}){const i=s==="pdf",d=i?"20px":"28px",x=i?"12px 16px":"18px 20px";return e.jsxs("div",{className:y("bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-xl flex flex-col gap-1.5",l),style:{padding:x},children:[e.jsx("div",{className:"text-[10px] font-bold uppercase tracking-[0.08em] text-[var(--color-gray-600)]",children:r}),e.jsx("div",{className:"font-light leading-none text-[var(--color-gray-1000)]",style:{fontSize:d,fontFamily:"Geist Mono, ui-monospace, monospace",fontVariantNumeric:"tabular-nums",letterSpacing:"-0.02em"},children:t}),o&&e.jsx("div",{className:"text-[12px] font-semibold",style:{fontFamily:"Geist Mono, ui-monospace, monospace",color:xt[a]??xt.flat},children:o}),n&&e.jsx("div",{className:"text-[11px] text-[var(--color-gray-600)]",children:n})]})}function zc({title:r,body:t,actions:o,renderMode:a="web",className:n}){const s=a==="web"&&o&&o.length>0,l=a==="pdf"?"16px 20px":"20px 24px";return e.jsxs("div",{className:y("bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-xl flex flex-col gap-3",n),style:{padding:l},children:[r&&e.jsx("h3",{className:"m-0 text-[15px] font-semibold text-[var(--color-gray-1000)]",children:r}),t&&e.jsx("p",{className:"m-0 text-[13px] leading-[1.6] text-[var(--color-gray-800)]",children:t}),s&&e.jsx("div",{className:"flex gap-2 flex-wrap",children:o.map((i,d)=>e.jsx("button",{onClick:i.onClick,className:"px-4 py-1.5 border border-[var(--color-gray-200)] rounded-lg bg-[var(--color-gray-50)] text-[var(--color-gray-1000)] text-[13px] font-medium cursor-pointer hover:bg-[var(--color-gray-100)] transition-colors duration-150",children:i.label},d))})]})}const Tc=v("flex gap-3 rounded-[10px] border items-start",{variants:{variant:{info:"bg-[var(--color-blue-200)] border-[var(--color-blue-400)]",success:"bg-[#f0fdf4] border-[#bbf7d0]",warning:"bg-[#fefce8] border-[#fde68a]",error:"bg-[var(--color-red-200)] border-[#fecaca]"}},defaultVariants:{variant:"info"}}),Lc={info:"ℹ",success:"✓",warning:"⚠",error:"✕"},ft={info:"#1e40af",success:"#166534",warning:"#854d0e",error:"#991b1b"},ut={info:"#3b82f6",success:"#16a34a",warning:"#d97706",error:"#dc2626"},$c={info:"var(--color-blue-400)",success:"#bbf7d0",warning:"#fde68a",error:"#fecaca"};function Ac({variant:r="info",title:t,message:o,action:a,renderMode:n="web",className:s}){const l=n==="web"&&a,i=n==="pdf"?"10px 14px":"12px 16px";return e.jsxs("div",{className:y(Tc({variant:r}),s),style:{padding:i},children:[e.jsx("span",{className:"text-[14px] shrink-0 mt-[1px]",style:{color:ut[r]},children:Lc[r]}),e.jsxs("div",{className:"flex-1 flex flex-col gap-[2px]",children:[e.jsx("span",{className:"text-[13px] font-semibold",style:{color:ft[r]},children:t}),o&&e.jsx("span",{className:"text-[12px]",style:{color:ut[r]},children:o})]}),l&&e.jsx("button",{onClick:a.onClick,className:"text-[12px] font-medium cursor-pointer bg-transparent shrink-0",style:{padding:"4px 12px",border:`1px solid ${$c[r]}`,borderRadius:6,color:ft[r]},children:a.label})]})}function Mc(r){return typeof r=="object"&&r!==null&&"label"in r&&typeof r.label=="string"}const Rc={sm:"24px 16px",md:"48px 24px",lg:"64px 32px"},gt={network:c.WifiOff,server:c.Server,notfound:c.AlertCircle,forbidden:c.UserX,generic:c.Inbox};function Fc(r){const t=Rr();switch(r){case"network":case"notfound":return t.n600;case"server":case"forbidden":return t.error;case"generic":default:return t.n600}}function Xe({title:r,description:t,icon:o,size:a="md",severity:n="generic",action:s,className:l}){const i=Fc(n),d=gt[n]??gt.generic,x=o??(n!=="generic"?e.jsx(d,{size:20,color:i}):"○");return e.jsxs("div",{className:y("flex flex-col items-center justify-center gap-3 text-center",l),style:{padding:Rc[a]},children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-gray-50)] border border-[var(--color-gray-200)] flex items-center justify-center text-[18px]",style:{color:n==="generic"?void 0:i},children:x}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("h3",{className:"m-0 text-[15px] font-semibold text-[var(--color-gray-1000)]",children:r}),t&&e.jsx("p",{className:"m-0 text-[13px] text-[var(--color-gray-800)]",style:{maxWidth:360},children:t})]}),s&&(Mc(s)?e.jsx("button",{onClick:s.onClick,className:"px-5 py-2 border-none rounded-lg bg-[var(--color-blue-1000)] text-[var(--color-white)] text-[13px] font-semibold cursor-pointer hover:opacity-90 transition-opacity duration-150",children:s.label}):s)]})}function Zo({title:r="Connection lost",description:t="Please check your internet connection and try again.",...o}){return e.jsx(Xe,{severity:"network",title:r,description:t,...o})}Zo.displayName="NetworkError";function Ko({title:r="Something went wrong",description:t="Our servers are having trouble. Please try again in a moment.",...o}){return e.jsx(Xe,{severity:"server",title:r,description:t,...o})}Ko.displayName="ServerError";function Xo({title:r="Not found",description:t="The page or resource you're looking for doesn't exist.",...o}){return e.jsx(Xe,{severity:"notfound",title:r,description:t,...o})}Xo.displayName="NotFoundError";function qo({title:r="Access denied",description:t="You don't have permission to view this content.",...o}){return e.jsx(Xe,{severity:"forbidden",title:r,description:t,...o})}qo.displayName="ForbiddenError";const nr={up:"var(--color-green-1000)",down:"var(--color-red-1000)",flat:"var(--color-gray-800)"},mt="Geist Mono, ui-monospace, monospace";function Ic({items:r,renderMode:t="web",className:o}){return t==="pdf"||t==="excel"?e.jsx("div",{className:y("flex items-center gap-4 flex-wrap",o),style:{padding:"6px 0",fontSize:12,color:"var(--color-gray-800)"},children:r.map((a,n)=>e.jsxs("span",{style:{whiteSpace:"nowrap"},children:[e.jsxs("span",{style:{fontWeight:600,color:"var(--color-gray-600)",marginRight:4},children:[a.label,":"]}),e.jsx("span",{style:{fontFamily:mt,fontVariantNumeric:"tabular-nums",fontWeight:600,color:nr[a.direction??"flat"]??nr.flat},children:a.value}),n<r.length-1&&e.jsx("span",{style:{margin:"0 4px",color:"var(--color-gray-400)"},children:"|"})]},n))}):e.jsx("div",{className:y("flex items-stretch bg-[var(--color-gray-50)] border border-[var(--color-gray-200)] rounded-lg overflow-hidden",o),children:r.map((a,n)=>e.jsxs("div",{className:"flex-1 flex flex-col gap-1",style:{padding:"12px 16px",borderLeft:n>0?"1px solid var(--color-gray-200)":void 0},children:[e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.08em] text-[var(--color-gray-600)]",children:a.label}),e.jsx("span",{className:"text-[16px] font-semibold",style:{fontFamily:mt,fontVariantNumeric:"tabular-nums",color:nr[a.direction??"flat"]??nr.flat},children:a.value})]},n))})}const Bc={default:"bg-[var(--color-white)] border border-[var(--color-gray-200)]",highlighted:"bg-[var(--color-gray-50)] border border-[var(--color-gray-200)]",audit:"bg-[#fffbeb] border border-[#fde68a]"};function Dc({content:r,author:t,authorRole:o,date:a,sectionLabel:n,expandable:s=!1,defaultExpanded:l=!0,variant:i="default",renderMode:d="web",className:x}){const[p,f]=j.useState(l),g=d==="web"&&s&&r.length>200;return e.jsxs("div",{className:y("rounded-xl flex flex-col gap-3",Bc[i],x),style:{padding:d==="pdf"?"12px 16px":"16px 20px"},children:[n&&e.jsx("p",{className:"m-0 text-[10px] font-bold uppercase tracking-[0.08em] text-[var(--color-gray-600)]",children:n}),e.jsx("p",{className:y("m-0 text-[13px] leading-[1.65] text-[var(--color-gray-800)]",!p&&g&&"line-clamp-3"),children:r}),g&&e.jsx("button",{onClick:()=>f(m=>!m),className:"self-start text-[12px] font-medium text-[var(--color-blue-800)] hover:text-[var(--color-blue-1000)] cursor-pointer transition-colors duration-150 bg-transparent border-none p-0",children:p?"Show less":"Read more"}),(t||a)&&e.jsxs("div",{className:"flex items-center gap-2 pt-1 border-t border-[var(--color-gray-200)] mt-1 flex-wrap",children:[t&&e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("div",{className:"w-5 h-5 rounded-full bg-[var(--color-blue-1000)] flex items-center justify-center text-[9px] font-bold text-[var(--color-white)] shrink-0","aria-hidden":"true",children:t.split(" ").map(m=>m[0]).join("").slice(0,2).toUpperCase()}),e.jsx("span",{className:"text-[12px] font-medium text-[var(--color-gray-1000)]",children:t}),o&&e.jsxs("span",{className:"text-[12px] text-[var(--color-gray-600)]",children:["· ",o]})]}),a&&e.jsx("span",{className:"text-[12px] text-[var(--color-gray-600)] ml-auto",children:a})]})]})}function Ec({label:r,description:t,sectionNumber:o,children:a,noBorder:n=!1,renderMode:s="web",className:l}){const i=s==="pdf",x=i||s==="excel";return e.jsxs("section",{className:y("flex flex-col",x?"gap-2":"gap-4",!n&&(x?"border-t border-[var(--color-gray-200)] pt-4":"border-t border-[var(--color-gray-200)] pt-6"),l),children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("h2",{className:"m-0 uppercase flex items-center gap-2",style:{fontSize:i?11:13,fontWeight:700,color:"var(--color-gray-1000)",letterSpacing:"0.08em",borderLeft:i?"3px solid var(--color-blue-800)":void 0,paddingLeft:i?8:void 0},children:[o&&e.jsx("span",{className:"tabular-nums",children:o}),r]}),t&&e.jsx("p",{className:"m-0 text-[13px] text-[var(--color-gray-800)]",children:t})]}),a&&e.jsx("div",{className:y("flex flex-col",x?"gap-2":"gap-4"),children:a})]})}const Pc={month:"Monthly",quarter:"Quarterly",year:"Annual",custom:"Custom"},ht="inline-flex items-center justify-center w-7 h-7 rounded-md border border-[var(--color-gray-200)] bg-[var(--color-white)] text-[var(--color-gray-800)] hover:bg-[var(--color-gray-100)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors duration-150 cursor-pointer";function Wc({current:r,available:t=[],format:o,availableFormats:a=[],onPeriodChange:n,onFormatChange:s,hasPrev:l=!0,hasNext:i=!1,compact:d=!1,className:x}){const p=t.findIndex(g=>g.id===r.id),f=()=>{if(!l)return;const g=p>0?t[p-1]:null;g&&(n==null||n(g.id))},u=()=>{if(!i)return;const g=p<t.length-1?t[p+1]:null;g&&(n==null||n(g.id))};return e.jsxs("div",{className:y("flex items-center gap-2 flex-wrap",d?"gap-1":"gap-2",x),children:[e.jsx("button",{className:ht,disabled:!l,onClick:f,"aria-label":"Previous period",title:"Previous period",children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M7.5 2L3.5 6L7.5 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),t.length>1?e.jsx("select",{className:y("border border-[var(--color-gray-200)] rounded-md bg-[var(--color-white)] text-[var(--color-gray-1000)] font-medium cursor-pointer hover:bg-[var(--color-gray-100)] transition-colors duration-150 appearance-none text-center",d?"text-[12px] px-2 py-1":"text-[13px] px-3 py-1.5"),value:r.id,onChange:g=>n==null?void 0:n(g.target.value),"aria-label":"Select period",children:t.map(g=>e.jsx("option",{value:g.id,children:g.label},g.id))}):e.jsx("span",{className:y("font-semibold text-[var(--color-gray-1000)] min-w-[80px] text-center",d?"text-[12px]":"text-[13px]"),children:r.label}),e.jsx("button",{className:ht,disabled:!i,onClick:u,"aria-label":"Next period",title:"Next period",children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M4.5 2L8.5 6L4.5 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),a.length>1&&o&&e.jsx("div",{className:"flex items-center border border-[var(--color-gray-200)] rounded-md overflow-hidden bg-[var(--color-white)]",role:"group","aria-label":"Period format",children:a.map(g=>e.jsx("button",{onClick:()=>s==null?void 0:s(g),className:y("cursor-pointer transition-colors duration-150",d?"px-2 py-1 text-[11px]":"px-3 py-1.5 text-[12px]",g===o?"bg-[var(--color-gray-1000)] text-[var(--color-white)] font-semibold":"text-[var(--color-gray-800)] hover:bg-[var(--color-gray-100)]"),"aria-pressed":g===o,children:Pc[g]},g))})]})}const Vc=v("flex items-center",{variants:{variant:{default:"border border-[var(--color-gray-200)] rounded-md overflow-hidden bg-[var(--color-white)]",pills:"gap-1"}},defaultVariants:{variant:"default"}}),Hc=v("cursor-pointer transition-colors duration-150 font-medium whitespace-nowrap disabled:opacity-40 disabled:cursor-not-allowed",{variants:{variant:{default:"px-3 py-1.5 text-[12px]",pills:"px-3 py-1 text-[12px] rounded-full border"},active:{true:"",false:""}},compoundVariants:[{variant:"default",active:!0,className:"bg-[var(--color-gray-1000)] text-[var(--color-white)]"},{variant:"default",active:!1,className:"text-[var(--color-gray-800)] hover:bg-[var(--color-gray-100)]"},{variant:"pills",active:!0,className:"bg-[var(--color-blue-1000)] border-[var(--color-blue-1000)] text-[var(--color-white)]"},{variant:"pills",active:!1,className:"bg-[var(--color-white)] border-[var(--color-gray-200)] text-[var(--color-gray-800)] hover:bg-[var(--color-gray-100)]"}],defaultVariants:{variant:"default",active:!1}});function _c({modes:r,activeMode:t,onModeChange:o,variant:a="default",compact:n=!1,className:s}){return e.jsx("div",{className:y(Vc({variant:a}),s),role:"group","aria-label":"Comparison mode",children:r.map(l=>{const i=l.id===t,d=n&&l.shortLabel?l.shortLabel:l.label;return e.jsx("button",{onClick:()=>!l.disabled&&(o==null?void 0:o(l.id)),disabled:l.disabled,className:Hc({variant:a,active:i}),"aria-pressed":i,children:d},l.id)})})}const Oc={pdf:{label:"PDF",icon:"⬇"},excel:{label:"Excel",icon:"⬇"},csv:{label:"CSV",icon:"⬇"},print:{label:"Print",icon:"⎙"}};function Gc({actions:r,label:t,size:o="md",className:a}){const n=y("inline-flex items-center gap-1.5 border border-[var(--color-gray-200)] rounded-md bg-[var(--color-white)] text-[var(--color-gray-800)] font-medium cursor-pointer hover:bg-[var(--color-gray-100)] active:bg-[var(--color-gray-200)] disabled:opacity-40 disabled:cursor-not-allowed transition-colors duration-150",o==="sm"?"px-2 py-1 text-[11px]":"px-3 py-1.5 text-[12px]");return e.jsxs("div",{className:y("flex items-center gap-2 flex-wrap",a),children:[t&&e.jsx("span",{className:"text-[12px] text-[var(--color-gray-600)] font-medium mr-1",children:t}),r.map(s=>{const l=Oc[s.format],i=s.label??l.label;return e.jsxs("button",{onClick:s.onClick,disabled:s.disabled,className:n,"aria-label":`Export as ${i}`,children:[e.jsx("span",{"aria-hidden":"true",className:"text-[var(--color-gray-600)]",children:l.icon}),i]},s.format)})]})}const Uc={draft:{label:"Draft",bg:"var(--color-gray-200)",color:"var(--color-gray-800)"},reviewed:{label:"Reviewed",bg:"#fef9c3",color:"#854d0e"},"signed-off":{label:"Signed Off",bg:"var(--color-green-200)",color:"var(--color-green-1000)"},filed:{label:"Filed",bg:"var(--color-blue-200)",color:"var(--color-blue-1000)"}};function Yc({firmName:r,preparedBy:t,reviewedBy:o,date:a,reference:n,status:s="draft",renderMode:l="web",className:i}){const d=Uc[s],x=l==="web";return e.jsxs("div",{className:y("flex items-start justify-between gap-6 border-t border-[var(--color-gray-200)] pt-4 mt-2",i),children:[e.jsxs("div",{className:"flex flex-col gap-1.5",children:[r&&e.jsx("p",{className:"m-0 text-[13px] font-semibold text-[var(--color-gray-1000)]",children:r}),n&&e.jsx("p",{className:"m-0 text-[11px] text-[var(--color-gray-600)] uppercase tracking-[0.06em]",children:n}),e.jsxs("div",{className:"flex items-center gap-4 mt-0.5 flex-wrap",children:[t&&e.jsxs("span",{className:"text-[12px] text-[var(--color-gray-800)]",children:[e.jsx("span",{className:"text-[var(--color-gray-600)] mr-1",children:"Prepared by"}),t]}),o&&e.jsxs("span",{className:"text-[12px] text-[var(--color-gray-800)]",children:[e.jsx("span",{className:"text-[var(--color-gray-600)] mr-1",children:"Reviewed by"}),o]}),a&&e.jsx("span",{className:"text-[12px] text-[var(--color-gray-600)]",children:a})]})]}),x&&e.jsx("span",{className:"inline-flex items-center px-[10px] py-[3px] rounded-full text-[11px] font-semibold whitespace-nowrap shrink-0",style:{background:d.bg,color:d.color},children:d.label})]})}function Zc({footnotes:r,className:t}){return r.length===0?null:e.jsxs("div",{className:y("border-t border-[var(--color-gray-200)] pt-4 flex flex-col gap-1.5",t),"aria-label":"Footnotes",children:[e.jsx("p",{className:"m-0 text-[10px] font-bold uppercase tracking-[0.08em] text-[var(--color-gray-600)] mb-1",children:"Notes"}),r.map(o=>e.jsxs("div",{id:`fn-${o.number}`,className:"flex items-start gap-2",children:[e.jsxs("span",{className:"text-[11px] font-semibold text-[var(--color-blue-800)] shrink-0 w-5 text-right tabular-nums",children:["[",o.number,"]"]}),e.jsx("p",{className:"m-0 text-[12px] text-[var(--color-gray-800)] leading-[1.5]",children:o.text})]},o.number))]})}const Kc=v("flex items-center justify-between w-full gap-2 min-h-[20px]"),Xc=v("flex items-center gap-2"),qc=v("text-[12px] font-normal font-sans leading-[16px]",{variants:{status:{running:"text-[var(--color-gray-800)]",completed:"text-[var(--color-gray-800)]",stopped:"text-[var(--color-blue-800)]"}},defaultVariants:{status:"running"}}),bt=v("w-4 h-4 flex items-center justify-center shrink-0"),Jc={running:"var(--color-gray-800)",completed:"var(--color-gray-800)",stopped:"var(--color-blue-800)"},Qc={running:"var(--color-gray-800)",completed:"var(--color-green-1000)",stopped:"var(--color-blue-800)"},Jo=j.forwardRef(({className:r,status:t="running",message:o,...a},n)=>{const s=Jc[t],l=Qc[t],i=()=>t==="completed"?e.jsx(c.CheckCircle,{size:16,color:l}):t==="stopped"?e.jsx(c.Hand,{size:16,color:l}):e.jsx(c.Pause,{size:16,color:l});return e.jsxs("div",{ref:n,className:y(Kc(),r),...a,children:[e.jsxs("div",{className:Xc(),children:[e.jsx("div",{className:bt(),children:e.jsx(c.Hexagon,{size:16,color:s})}),e.jsx("span",{className:qc({status:t}),children:o})]}),e.jsx("div",{className:bt(),children:i()})]})});Jo.displayName="AutopilotAction";const ed={default:"text-[var(--color-gray-600)] hover:bg-[var(--color-gray-200)]",accent:"text-[var(--color-blue-800)] hover:opacity-80",bordered:"border border-[rgba(0,13,77,0.45)] rounded-lg px-2 py-1 text-[rgba(0,9,51,0.65)] hover:bg-[rgba(0,13,77,0.05)]",tertiary:"border border-[var(--color-blue-800)] rounded-lg px-2 py-1 text-[var(--color-blue-800)] hover:bg-[var(--color-blue-50)]"};function Qo({text:r,label:t,variant:o="default",className:a=""}){const[n,s]=j.useState(!1),l=async d=>{d.stopPropagation(),await navigator.clipboard.writeText(r),s(!0),setTimeout(()=>s(!1),2e3)},i=o==="accent"||o==="tertiary"?"text-[var(--color-blue-800)]":"text-[var(--color-gray-500)]";return e.jsx("button",{onClick:l,className:`flex items-center gap-1.5 px-2 py-1 rounded text-xs ${ed[o]} transition-colors ${a}`,children:n?e.jsxs(e.Fragment,{children:[t?"Copied":null,e.jsx(c.Check,{size:13,className:i})]}):e.jsxs(e.Fragment,{children:[t??null,e.jsx(c.Clipboard,{size:13})]})})}function rd({title:r,badge:t,copyText:o,open:a,onOpenChange:n,defaultOpen:s=!1,children:l,className:i,variant:d="default"}){const[x,p]=j.useState(s),f=a!==void 0,u=f?a:x,g=d==="compact",m=()=>{const h=!u;f||p(h),n==null||n(h)};return e.jsxs("div",{className:`rounded-lg border border-[var(--color-gray-200)] bg-white overflow-hidden transition-colors hover:border-[var(--color-blue-800)] ${i??""}`,children:[e.jsxs("button",{type:"button",onClick:m,className:`w-full flex items-center justify-between transition-colors text-left ${g?"px-3 py-2":"px-2 py-1"}`,children:[e.jsxs("div",{className:`flex items-center ${g?"gap-[7px]":"gap-3"}`,children:[e.jsx("span",{className:"text-[var(--color-blue-1000)] flex-shrink-0 transition-transform duration-200",style:{transform:u?"rotate(90deg)":"rotate(0deg)"},children:e.jsx(c.ChevronRight,{size:g?20:16})}),e.jsx("span",{className:`text-[var(--color-blue-1000)] ${g?"text-xs leading-4 font-normal":"text-sm font-semibold"}`,children:r}),t!==void 0&&(g?e.jsx("span",{className:"text-[10px] leading-none rounded bg-[var(--color-blue-1000)] text-white px-1.5 py-0.5",children:t}):e.jsxs("span",{className:"inline-flex items-center gap-1 bg-[var(--color-gray-100)] text-[var(--color-gray-600)] rounded px-[2px] py-[2px] text-[10px] leading-none",children:[e.jsx(c.Settings,{size:14,className:"text-[var(--color-gray-600)]"}),t]}))]}),o&&e.jsx("div",{className:"flex-shrink-0",onClick:h=>h.stopPropagation(),children:e.jsx(Qo,{text:o,label:"Copy",variant:g?"accent":"default"})})]}),e.jsx("div",{className:"grid transition-[grid-template-rows] duration-200 ease-in-out motion-reduce:transition-none",style:{gridTemplateRows:u?"1fr":"0fr",contain:"layout style",willChange:"grid-template-rows"},children:e.jsx("div",{className:"overflow-hidden min-h-0",children:e.jsx("div",{className:`${u?"border-t border-[var(--color-gray-200)]":""} p-2`,children:l})})})]})}const td=v("z-50 rounded-[4px] px-3 py-3 shadow-[0px_8px_8px_-4px_rgba(0,0,0,0.04),0px_20px_24px_-4px_rgba(0,0,0,0.08)] max-w-[var(--radix-tooltip-content-available-width)] origin-[var(--radix-tooltip-content-transform-origin)]",{variants:{variant:{default:"bg-[var(--color-blue-1000)] text-[var(--color-gray-50)]",light:"bg-[var(--color-gray-50)] text-[var(--color-gray-1000)]"}},defaultVariants:{variant:"default"}}),od=v("",{variants:{variant:{default:"fill-[var(--color-blue-1000)]",light:"fill-[var(--color-gray-50)]"}},defaultVariants:{variant:"default"}}),ad=({delayDuration:r=0,...t})=>e.jsx(Ce.Provider,{delayDuration:r,...t}),nd=Ce.Root,sd=Ce.Trigger,ea=Be.forwardRef(({className:r,sideOffset:t=4,children:o,variant:a,...n},s)=>e.jsx(Ce.Portal,{children:e.jsx(Ce.Content,{ref:s,sideOffset:t,asChild:!0,className:y(td({variant:a}),r),...n,children:e.jsxs(q.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[e.jsx(Ke,{variant:"x-small",color:"inherit",className:"font-normal relative z-10",children:o}),e.jsx(Ce.Arrow,{className:od({variant:a})})]})})}));ea.displayName=Ce.Content.displayName;const ld=v("w-full h-[48px] box-border flex items-center justify-between px-[16px] py-[12px] bg-[var(--color-white)] border-b border-[var(--color-gray-200)]"),id=v("flex items-center gap-[12px] h-[24px]"),cd=v("flex items-center gap-[12px] h-[24px] rounded-[8px]"),vt=v("flex items-center justify-center size-[16px] overflow-hidden text-[var(--color-gray-800)] hover:text-[var(--color-blue-800)] transition-colors bg-transparent border-none cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] rounded-sm disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:text-[var(--color-gray-800)]",{variants:{disabled:{true:"opacity-50 cursor-not-allowed hover:text-[var(--color-gray-800)]"}},defaultVariants:{disabled:!1}}),dd=v("flex items-center gap-[8px]"),pd=v("flex items-center"),ra=j.forwardRef(({className:r,breadcrumbs:t,tags:o=[],collaborators:a=[],onAddTag:n,onAddCollaborator:s,tagsOverflowCount:l=0,addTagDisabled:i=!1,addCollaboratorDisabled:d=!1,...x},p)=>e.jsxs("div",{ref:p,className:y(ld(),r),...x,children:[e.jsx(mo,{items:t,size:"medium"}),e.jsx("div",{className:id(),children:e.jsxs("div",{className:cd(),children:[(o.length>0||l>0)&&e.jsxs("div",{className:dd(),children:[o.map(f=>e.jsx(Ee,{variant:"default",className:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] text-[var(--color-gray-800)] px-[8px] py-[2px] text-[10px] h-[20px]",children:f.label},f.id)),l>0&&e.jsxs(Ee,{variant:"default",className:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] text-[var(--color-gray-800)] px-[8px] py-[2px] text-[10px] h-[20px]",children:["+",l]})]}),a.length>0&&e.jsx("div",{className:pd(),children:e.jsx("div",{className:"flex items-center flex-row-reverse",children:a.map((f,u)=>e.jsx("div",{className:"relative shrink-0 border-[1.5px] border-white rounded-full",style:{zIndex:a.length-u,marginRight:u<a.length-1?-4:0},children:e.jsx(ur,{initials:f.name,src:f.src,alt:f.name,className:"size-[24px] text-[10px]"})},f.id))})}),e.jsx("button",{type:"button",onClick:n,className:vt({disabled:i}),"aria-label":"Add tag",disabled:i,children:e.jsx(c.TagPlus,{size:16})}),e.jsx("button",{type:"button",onClick:s,className:vt({disabled:d}),"aria-label":"Add collaborator",disabled:d,children:e.jsx(c.UserPlus,{size:16})})]})})]}));ra.displayName="ConversationHeader";const xd=v("fixed inset-0 z-50 bg-[rgba(0,6,38,0.5)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),fd=v("fixed left-[50%] top-[50%] z-50 translate-x-[-50%] translate-y-[-50%] bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[var(--archie-radius-xl)] [box-shadow:var(--archie-shadow-lg)] p-4 flex flex-col gap-2 max-h-[80vh] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 duration-[var(--archie-anim-duration)]",{variants:{size:{sm:"w-[95vw] sm:w-[300px] max-w-[calc(100vw-2rem)]",md:"w-[95vw] sm:w-[400px] max-w-[calc(100vw-2rem)]",lg:"w-[95vw] sm:w-[500px] max-w-[calc(100vw-2rem)]",xl:"w-[95vw] sm:w-[600px] max-w-[calc(100vw-2rem)]",full:"w-[95vw] sm:w-[calc(100vw-4rem)] max-w-[calc(100vw-2rem)]"}},defaultVariants:{size:"md"}}),ud=v("absolute right-4 top-4 flex-shrink-0 w-4 h-4 text-[var(--color-blue-1000)] cursor-pointer bg-transparent border-none p-0 hover:opacity-70 transition-opacity focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2 rounded-sm"),gd=v("!font-[Geist,system-ui,-apple-system,sans-serif] font-medium text-[1rem] leading-[1.5rem] text-[var(--color-blue-1000)] w-full"),md=v("font-[Geist,system-ui,-apple-system,sans-serif] font-normal text-[0.875rem] leading-[1.25rem] text-[var(--color-gray-800)] w-full"),hd=v("flex flex-col gap-4 w-full flex-1 min-h-0 overflow-y-auto",{variants:{size:{sm:"",md:"",lg:"",xl:"",full:""},contentAlign:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"}},defaultVariants:{size:"md",contentAlign:"start"}}),bd=v("flex gap-2 items-start w-full"),ta=({open:r,onOpenChange:t,title:o,description:a,showCloseButton:n=!0,closeIcon:s,children:l,primaryAction:i,secondaryAction:d,closeOnClickOutside:x=!0,closeOnEsc:p=!0,onClose:f,className:u,overlayClassName:g,contentClassName:m,footerClassName:h,size:b="md",contentAlign:w="start"})=>{const S=j.useRef(null),T=j.useRef(null),L=j.useCallback(k=>{t(k),k||f==null||f()},[t,f]),C=j.useCallback(async()=>{i!=null&&i.onClick&&await i.onClick()},[i]),z=j.useCallback(async()=>{d!=null&&d.onClick&&await d.onClick()},[d]),I=j.useCallback(k=>{p||k.preventDefault()},[p]),$=j.useCallback(k=>{x||k.preventDefault()},[x]),F=i||d;return e.jsx(pe.Root,{open:r,onOpenChange:L,children:e.jsxs(pe.Portal,{children:[e.jsx(pe.Overlay,{className:y(xd(),g)}),e.jsxs(pe.Content,{className:y(fd({size:b}),u),onEscapeKeyDown:I,onPointerDownOutside:$,children:[o?e.jsx(pe.Title,{className:gd(),children:o}):e.jsx(qr.Root,{children:e.jsx(pe.Title,{children:"Modal dialog"})}),a?e.jsx(pe.Description,{className:md(),children:a}):e.jsx(qr.Root,{children:e.jsx(pe.Description,{children:"Modal content"})}),n&&e.jsx(pe.Close,{asChild:!0,children:e.jsx("button",{className:ud(),"aria-label":"Close modal",children:s||e.jsx(c.X,{size:16,color:"currentColor"})})}),l&&e.jsx("div",{className:y(hd({size:b,contentAlign:w}),m),children:l}),F&&e.jsxs("div",{className:y(bd(),h),children:[d&&e.jsx(De,{ref:T,variant:d.variant||"secondary",size:"sm",onClick:z,disabled:d.disabled||d.loading,leftIcon:d.icon,className:"flex-1",children:d.label}),i&&e.jsx(De,{ref:S,variant:i.variant||"default",size:"sm",onClick:C,disabled:i.disabled||i.loading,leftIcon:i.icon,className:"flex-1",children:i.label})]})]})]})})};ta.displayName="Modal";const vd=r=>e.jsx(q.motion.svg,{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",animate:{rotate:r?90:0},transition:{duration:.15,ease:"easeOut"},"aria-hidden":"true",style:{display:"inline-block",flexShrink:0},children:e.jsx("path",{d:"M3 2L7 5L3 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function yd({cells:r,drillRows:t,colCount:o,defaultExpanded:a=!1,onToggle:n,rowClassName:s,drillRowClassName:l}){const[i,d]=j.useState(a),x=()=>{const p=!i;d(p),n==null||n(p)};return e.jsxs(e.Fragment,{children:[e.jsx("tr",{className:y("cursor-pointer select-none transition-colors duration-150","hover:bg-[var(--color-gray-50)] active:bg-[var(--color-gray-100)]",i&&"bg-[var(--color-gray-50)]",s),onClick:x,tabIndex:0,role:"button","aria-expanded":i,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),x())},children:r.map((p,f)=>e.jsx("td",{style:{padding:"10px 16px",fontSize:13},children:f===0?e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-[var(--color-gray-600)]",children:vd(i)}),p]}):p},f))}),e.jsx(q.AnimatePresence,{initial:!1,children:i&&e.jsx("tr",{children:e.jsx("td",{colSpan:o,style:{padding:0,border:"none"},children:e.jsx(q.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:[.4,0,.2,1]},style:{overflow:"hidden"},children:e.jsx("table",{style:{width:"100%",borderCollapse:"collapse"},children:e.jsx("tbody",{children:t.map(p=>e.jsx("tr",{className:y("border-b border-[var(--color-gray-100)] last:border-0",l),style:{background:"var(--color-gray-50)"},children:p.cells.map((f,u)=>e.jsx("td",{style:{padding:"8px 16px",paddingLeft:u===0?36:16,fontSize:12,color:"var(--color-gray-800)"},children:f},u))},p.key))})})})})},"drill-wrapper")})]})}const jd={a4:"210mm",letter:"216mm","a4-landscape":"297mm","letter-landscape":"279mm"};function wd({printHeader:r,printFooter:t,paperSize:o="a4",renderMode:a="web",children:n,className:s}){const l=a==="pdf",i=a==="excel",d=o==="a4-landscape"||o==="letter-landscape",x=d?o==="a4-landscape"?"a4":"letter":o??"a4",p=l?"12mm":"20mm",f=`15mm ${p}`,u=`15mm ${p}`,g=l?"gap-6":i?"gap-2":"gap-6";return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
60
60
  @media print {
61
61
  .report-page {
62
- width: ${Oc[o??"a4"]};
62
+ width: ${jd[o??"a4"]};
63
63
  margin: 0 auto;
64
64
  padding: ${l?"0":f};
65
65
  font-size: 10pt;
@@ -120,10 +120,10 @@ macOSWindowChrome, macOSToolbar, macOSSidebar (Desktop only — NSVisualEffectVi
120
120
  margin-top: 20mm;
121
121
  }
122
122
  }
123
- `}),r&&e.jsx("div",{className:"print-header hidden print:block border-b border-[var(--color-gray-200)] pb-3 mb-4",children:r}),e.jsx("div",{className:y(`report-page flex flex-col ${g}`,s),children:n}),t&&e.jsx("div",{className:"print-footer hidden print:block border-t border-[var(--color-gray-200)] pt-3 mt-4 text-[11px] text-[var(--color-gray-600)]",children:t})]})}const Uc="Geist Mono, ui-monospace, monospace",ft=r=>r==="right"?"right":r==="center"?"center":"left";function Yc({columns:r,rows:t,emptyMessage:o="No data",renderMode:a="web",className:n}){const s=a==="pdf",l=a==="excel",c=s||l,d=s?"6px 10px":l?"4px 8px":"10px 16px",x=s?"5px 10px":l?"4px 8px":"9px 16px",p=c?12:13,f=c?9:10;return e.jsx("div",{className:y("border border-[var(--color-gray-200)] overflow-hidden",!l&&"rounded-lg",n),children:e.jsxs("table",{className:"w-full",style:{borderCollapse:"collapse",tableLayout:s?"auto":void 0},children:[e.jsx("thead",{children:e.jsx("tr",{children:r.map(u=>e.jsx("th",{style:{padding:x,textAlign:ft(u.align),fontSize:f,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-gray-600)",background:"var(--color-gray-50)",borderBottom:"1px solid var(--color-gray-200)",whiteSpace:"nowrap"},children:u.label},u.key))})}),e.jsx("tbody",{children:t.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:r.length,style:{padding:"24px 16px",textAlign:"center",fontSize:13,color:"var(--color-gray-600)",background:"var(--color-white)"},children:o})}):t.map((u,g)=>e.jsx("tr",{style:{background:"var(--color-white)",borderBottom:g<t.length-1?"1px solid var(--color-gray-100)":void 0},children:r.map((m,h)=>e.jsx("td",{style:{padding:d,textAlign:ft(m.align),fontSize:p,color:h===0?"var(--color-gray-1000)":"var(--color-gray-800)",fontFamily:m.mono?Uc:void 0,fontVariantNumeric:m.mono?"tabular-nums":void 0,whiteSpace:s&&(h===0||m.mono)?"nowrap":void 0},children:u[m.key]??"—"},m.key))},g))})]})})}const ir="Geist Mono, ui-monospace, monospace",_o=24,Oo=34,Ge=r=>r==="right"?"right":r==="center"?"center":"left";function Kc({row:r,columns:t,renderMode:o="web"}){const a=r.variant==="grand-total",n=o==="pdf",s=n?11:13,l=n?12:13,c=a?"var(--color-blue-200)":"var(--color-gray-100)",d=a?"var(--color-blue-1000)":"var(--color-gray-1000)",x=a?"2px solid var(--color-blue-800)":"1px solid var(--color-gray-200)";return e.jsx("tr",{style:{background:c,borderTop:x,height:a?n?_o:Oo:void 0},children:t.map((p,f)=>{const u=f===0,g=u?r.label:r.values[p.key]??"";return e.jsx("td",{style:{padding:n?"0 10px":"0 16px",textAlign:Ge(p.align),fontSize:a?l:s,fontWeight:a?700:600,color:d,fontFamily:p.mono||!u?ir:void 0,fontVariantNumeric:"tabular-nums",whiteSpace:n?"nowrap":void 0},children:g},p.key)})})}function Zc({columns:r,groups:t,rows:o,totals:a,renderMode:n="web",className:s}){const l=n==="pdf",c=n==="excel",d=l||c,x=l?"6px 10px":c?"4px 8px":"10px 16px",p=l?_o:c?void 0:Oo,f=d?12:13,u=d?9:10;return e.jsx("div",{className:y("border border-[var(--color-gray-200)] overflow-hidden",!c&&"rounded-lg",s),children:e.jsxs("table",{className:"w-full",style:{borderCollapse:"collapse",tableLayout:l?"auto":void 0},children:[e.jsx("thead",{children:e.jsx("tr",{style:{height:p},children:r.map(g=>e.jsx("th",{style:{padding:l?"0 10px":c?"4px 8px":"0 16px",textAlign:Ge(g.align),fontSize:u,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-white)",background:"var(--color-blue-1000)",whiteSpace:"nowrap"},children:g.label},g.key))})}),o&&o.length>0&&e.jsx("tbody",{children:o.map((g,m)=>e.jsx("tr",{style:{background:"var(--color-white)",borderBottom:"1px solid var(--color-gray-100)"},children:r.map((h,v)=>e.jsx("td",{style:{padding:x,textAlign:Ge(h.align),fontSize:f,color:"var(--color-gray-1000)",fontFamily:h.mono?ir:void 0,fontVariantNumeric:h.mono?"tabular-nums":void 0,whiteSpace:l&&(v===0||h.mono)?"nowrap":void 0},children:g[h.key]??"—"},h.key))},m))}),t==null?void 0:t.map((g,m)=>e.jsxs("tbody",{style:{pageBreakInside:"avoid",breakInside:"avoid"},children:[e.jsx("tr",{style:{background:"var(--color-blue-800-bg)",borderTop:m>0?"1px solid var(--color-blue-800-subtle)":void 0,borderBottom:"1px solid var(--color-blue-800-subtle)"},children:e.jsxs("td",{colSpan:r.length,style:{padding:d?"5px 10px":"7px 16px",paddingLeft:d?16:24,fontSize:d?9:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-blue-1000)"},children:[g.label,n==="web"&&g.count!=null&&e.jsx("span",{style:{marginLeft:8,padding:"1px 6px",borderRadius:9999,fontSize:10,fontWeight:600,background:"var(--color-blue-800-subtle)",color:"var(--color-blue-1000)"},children:g.count})]})}),g.rows.map((h,v)=>e.jsx("tr",{style:{background:"var(--color-white)",borderBottom:v<g.rows.length-1?"1px solid var(--color-gray-100)":void 0},children:r.map((w,N)=>e.jsx("td",{style:{padding:x,paddingLeft:N===0?d?16:24:void 0,textAlign:Ge(w.align),fontSize:f,color:"var(--color-gray-1000)",fontFamily:w.mono?ir:void 0,fontVariantNumeric:w.mono?"tabular-nums":void 0,whiteSpace:l&&(N===0||w.mono)?"nowrap":void 0},children:h[w.key]??"—"},w.key))},v)),g.subtotal&&e.jsx("tr",{style:{background:"var(--color-gray-100)",borderTop:"1px solid var(--color-gray-200)",borderBottom:"1px solid var(--color-gray-200)"},children:r.map((h,v)=>{const w=g.subtotal[h.key],N=v===0?w??"Subtotal":w??"";return e.jsx("td",{style:{padding:d?"5px 10px":"9px 16px",textAlign:Ge(h.align),fontSize:v===0?d?10:11:f,fontWeight:600,textTransform:v===0?"uppercase":void 0,letterSpacing:v===0?"0.04em":void 0,color:v===0?"var(--color-gray-800)":"var(--color-gray-1000)",fontFamily:h.mono?ir:void 0,fontVariantNumeric:h.mono?"tabular-nums":void 0,whiteSpace:l?"nowrap":void 0},children:N},h.key)})})]},m)),a&&a.length>0&&e.jsx("tfoot",{children:a.map((g,m)=>e.jsx(Kc,{row:g,columns:r,renderMode:n},m))})]})})}const ut="Geist Mono, ui-monospace, monospace",jr="#f0f9ff",Xc="var(--color-blue-1000)";function qc({rowLabel:r,columns:t,sections:o,rows:a,renderMode:n="web",className:s}){const l=n==="pdf",c=n==="excel",d=l||c,x=d?"6px 10px":"10px 16px",p=d?"5px 10px":"9px 16px",f=d?12:13,u=d?9:10,g=o?null:a??[];return e.jsx("div",{className:y("border border-[var(--color-gray-200)] overflow-hidden",!c&&"rounded-lg",s),children:e.jsxs("table",{className:"w-full",style:{borderCollapse:"collapse",tableLayout:l?"auto":void 0},children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{style:{padding:p,textAlign:"left",fontSize:u,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-gray-600)",background:"var(--color-gray-50)",borderBottom:"1px solid var(--color-gray-200)",whiteSpace:"nowrap"},children:r}),t.map(m=>e.jsx("th",{style:{padding:p,textAlign:"right",fontSize:u,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:m.highlight?Xc:"var(--color-gray-600)",background:m.highlight?jr:"var(--color-gray-50)",borderBottom:"1px solid var(--color-gray-200)",whiteSpace:"nowrap"},children:m.label},m.key))]})}),e.jsxs("tbody",{children:[g==null?void 0:g.map((m,h)=>e.jsxs("tr",{style:{background:"var(--color-white)",borderBottom:h<g.length-1?"1px solid var(--color-gray-100)":void 0},children:[e.jsx("td",{style:{padding:x,fontSize:f,color:"var(--color-gray-1000)",whiteSpace:l?"nowrap":void 0},children:m.account??m.label??""}),t.map(v=>e.jsx("td",{style:{padding:x,textAlign:"right",fontSize:f,fontFamily:ut,fontVariantNumeric:"tabular-nums",color:v.highlight?"var(--color-gray-1000)":"var(--color-gray-800)",background:v.highlight?jr:void 0,whiteSpace:l?"nowrap":void 0},children:m[v.key]??"—"},v.key))]},h)),o==null?void 0:o.map((m,h)=>e.jsxs(j.Fragment,{children:[e.jsx("tr",{style:{background:"var(--color-gray-50)",borderTop:h>0?"1px solid var(--color-gray-200)":void 0,borderBottom:"1px solid var(--color-gray-200)"},children:e.jsx("td",{colSpan:t.length+1,style:{padding:d?"5px 10px":"7px 16px",fontSize:u,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-gray-600)"},children:m.label})}),m.rows.map((v,w)=>e.jsxs("tr",{style:{background:"var(--color-white)",borderBottom:w<m.rows.length-1?"1px solid var(--color-gray-100)":void 0},children:[e.jsx("td",{style:{padding:x,paddingLeft:d?16:24,fontSize:f,color:"var(--color-gray-800)",whiteSpace:l?"nowrap":void 0},children:v.account??v.label??""}),t.map(N=>e.jsx("td",{style:{padding:x,textAlign:"right",fontSize:f,fontFamily:ut,fontVariantNumeric:"tabular-nums",color:N.highlight?"var(--color-gray-1000)":"var(--color-gray-800)",background:N.highlight?jr:void 0,whiteSpace:l?"nowrap":void 0},children:v[N.key]??"—"},N.key))]},w))]},h))]})]})})}const Re={primary:"#e15713",secondary:"#15b1cd",positive:"#71d481",negative:"#fb6060",total:"#000626",grid:"#e5e7f0",axisLabel:"#8c92af",text:"#000626",textMuted:"#595f7a",priorFill:"rgba(229, 231, 240, 0.6)",areaFill:"rgba(229, 87, 19, 0.08)",areaFill2:"rgba(21, 177, 205, 0.08)",forecastFill:"rgba(229, 87, 19, 0.04)",forecastBand:"rgba(229, 87, 19, 0.05)"},Jc=[Re.primary,Re.secondary,Re.positive,Re.total,Re.axisLabel,"#5b21b6","#c2410c"],J="'Geist Mono', 'ui-monospace', monospace",re="'Geist', 'system-ui', sans-serif",Y={top:20,right:12,bottom:32,left:56};function Fe(r,t){const o=parseInt(r.slice(1,3),16),a=parseInt(r.slice(3,5),16),n=parseInt(r.slice(5,7),16);return`rgba(${o}, ${a}, ${n}, ${t})`}const Go={archie:{primary:"#e15713",secondary:"#15b1cd",positive:"#71d481",negative:"#fb6060",total:"#000626",series:["#e15713","#15b1cd","#6D28D9","#15803D","#BE123C","#0369A1","#C2410C"]},ocean:{primary:"#0369A1",secondary:"#15b1cd",positive:"#71d481",negative:"#fb6060",total:"#022e40",series:["#0369A1","#15b1cd","#6aeafd","#022e40","#8c92af","#15803D","#6D28D9"]},forest:{primary:"#15803D",secondary:"#0369A1",positive:"#71d481",negative:"#fb6060",total:"#000626",series:["#15803D","#0369A1","#71d481","#000626","#8c92af","#6D28D9","#C2410C"]},sunset:{primary:"#C2410C",secondary:"#BE123C",positive:"#71d481",negative:"#fb6060",total:"#000626",series:["#C2410C","#BE123C","#8f6c1a","#000626","#8c92af","#e15713","#6D28D9"]},lavender:{primary:"#6D28D9",secondary:"#0369A1",positive:"#71d481",negative:"#fb6060",total:"#000626",series:["#6D28D9","#0369A1","#15803D","#000626","#8c92af","#C2410C","#BE123C"]},monochrome:{primary:"#000626",secondary:"#595f7a",positive:"#71d481",negative:"#fb6060",total:"#000626",series:["#000626","#595f7a","#8c92af","#e5e7f0","#022e40"]}};function ie(r){const t=Go[r.colorScheme??"archie"],o=r.primaryColor??t.primary,a=r.comparisonColor??t.secondary;return{primary:o,secondary:a,positive:t.positive,negative:t.negative,total:t.total,series:[o,a,...t.series.slice(2)],priorFill:"rgba(229, 231, 240, 0.6)",areaFill:Fe(o,.08),areaFill2:Fe(a,.08),forecastFill:Fe(o,.04),forecastBand:Fe(o,.05),grid:"#e5e7f0",axisLabel:"#8c92af",text:"#000626",textMuted:"#595f7a"}}function Qc({title:r,subtitle:t,footer:o,renderMode:a="web",className:n,children:s}){const l=a==="pdf";return e.jsxs("div",{className:y("chart-section",n),style:{breakInside:"avoid",pageBreakInside:"avoid"},children:[e.jsxs("div",{style:{borderBottom:"1px solid #e5e7f0",paddingBottom:l?6:8,marginBottom:l?12:16},children:[e.jsx("div",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#000626",fontFamily:"'Geist', system-ui, sans-serif"},children:r}),t&&e.jsx("div",{style:{fontSize:11,fontWeight:400,color:"#8c92af",marginTop:2,fontFamily:"'Geist', system-ui, sans-serif"},children:t})]}),e.jsx("div",{children:s}),o&&e.jsx("div",{style:{fontSize:10,fontWeight:400,color:"#8c92af",marginTop:l?6:8,fontFamily:"'Geist', system-ui, sans-serif",lineHeight:1.5},children:o})]})}function Ze(r,t){const[o,a]=r,[n,s]=t,l=a-o||1,c=s-n;return d=>n+(d-o)/l*c}function Uo(r,t,o=.25){const a=r.length,n=t/(a+o*(a-1)+o),s=n*(1-o/(1+o)),l=n*(o/(1+o)),c=d=>{const x=r.indexOf(d);return x===-1?0:x*(s+l)+l/2};return c.bandwidth=s,c.step=s+l,c}function Xe(r,t,o=5){if(r===t)return[r];const a=(t-r)/(o-1),n=Math.pow(10,Math.floor(Math.log10(Math.abs(a)))),s=[1,2,2.5,5,10];let l=n;for(const p of s)if(p*n>=a){l=p*n;break}const c=Math.floor(r/l)*l,d=[];let x=c;for(;x<=t+l*.01;)d.push(x),x=parseFloat((x+l).toPrecision(12));return d}function ur(r){const t=Math.min(0,...r),o=Math.max(0,...r);return[t,o]}function fe(r,t,o="$",a=!0){if(t==="percent")return`${r.toFixed(1)}%`;if(t==="ratio")return`${r.toFixed(2)}×`;if(t==="number")return a?pr(r):r.toLocaleString("en",{maximumFractionDigits:1});const n=o;return a?`${n}${pr(r)}`:`${n}${Math.abs(r).toLocaleString("en",{maximumFractionDigits:0})}`}function pr(r){const t=Math.abs(r),o=r<0?"-":"";return t>=1e6?`${o}${(t/1e6).toFixed(t>=1e7?0:1)}M`:t>=1e3?`${o}${(t/1e3).toFixed(t>=1e5?0:1)}K`:`${o}${t.toFixed(0)}`}function Ue(r,t,o="$"){return t==="percent"?`${r.toFixed(1)}%`:t==="ratio"?`${r.toFixed(2)}×`:t==="number"?pr(r):`${o}${pr(r)}`}const he=2;function ed({data:r,config:t}){const{width:o,height:a,valueType:n,currency:s="$",renderMode:l="web",showDataLabels:c=!1,showLegend:d=!1,showComparison:x=!1,comparisonLabel:p="Prior Year",primaryLabel:f="Current"}=t,u=ie(t),g=l==="pdf",m=o-Y.left-Y.right,h=a-Y.top-Y.bottom,v=j.useMemo(()=>{const S=r.map(k=>k.value);return x&&r.forEach(k=>{k.priorValue!==void 0&&S.push(k.priorValue)}),S},[r,x]),w=ur(v),N=Ze(w,[h,0]),L=N(0),T=r.map(S=>S.label),C=Uo(T,m,.3),z=C.bandwidth,D=Xe(w[0],w[1],5),$=(S,k=!0)=>fe(S,n,s,k),F=S=>Ue(S,n,s);return e.jsx("svg",{width:o,height:a,viewBox:`0 0 ${o} ${a}`,"aria-hidden":"true",style:{display:"block",overflow:"visible"},children:e.jsxs("g",{transform:`translate(${Y.left},${Y.top})`,children:[D.map(S=>{const k=N(S);return e.jsxs("g",{children:[e.jsx("line",{x1:0,y1:k,x2:m,y2:k,stroke:u.grid,strokeWidth:1}),e.jsx("text",{x:-8,y:k,textAnchor:"end",dominantBaseline:"middle",style:{fontSize:10,fontFamily:J,fill:u.axisLabel},children:$(S)})]},S)}),w[0]<0&&e.jsx("line",{x1:0,y1:L,x2:m,y2:L,stroke:u.axisLabel,strokeWidth:1}),r.map((S,k)=>{const B=C(S.label),P=S.isTotal?u.total:S.value<0?u.negative:u.primary,V=Math.min(N(S.value),L),H=Math.abs(N(S.value)-L),E=S.value<0,O=x&&S.priorValue!==void 0,M=O?Math.min(N(S.priorValue),L):0,I=O?Math.abs(N(S.priorValue)-L):0;return e.jsxs("g",{children:[e.jsxs("defs",{children:[e.jsx("clipPath",{id:`bar-clip-${k}`,children:e.jsx("rect",{x:B,y:E?V:V-he,width:z,height:H+he+1,rx:he,ry:he})}),O&&e.jsx("clipPath",{id:`prior-clip-${k}`,children:e.jsx("rect",{x:B,y:S.priorValue<0?M:M-he,width:z,height:I+he+1,rx:he,ry:he})})]}),O&&e.jsx("rect",{x:B,y:M,width:z,height:I,fill:u.priorFill,clipPath:`url(#prior-clip-${k})`}),H>0&&e.jsx("rect",{x:B,y:V,width:z,height:H,fill:P,clipPath:`url(#bar-clip-${k})`}),c&&H>0&&e.jsx("text",{x:B+z/2,y:E?V+H+12:V-4,textAnchor:"middle",style:{fontSize:10,fontFamily:J,fontWeight:600,fill:u.text},children:F(S.value)})]},S.label)}),r.map(S=>e.jsx("text",{x:C(S.label)+z/2,y:h+16,textAnchor:"middle",style:{fontSize:g?9:10,fontFamily:re,fill:u.axisLabel},children:S.label},S.label)),d&&x&&e.jsxs("g",{transform:`translate(0, ${h+28})`,children:[e.jsx("rect",{width:10,height:10,rx:2,fill:u.primary,y:-1}),e.jsx("text",{x:14,y:8,style:{fontSize:10,fontFamily:re,fill:u.axisLabel},children:f}),e.jsx("rect",{x:80,width:10,height:10,rx:2,fill:u.priorFill,y:-1}),e.jsx("text",{x:94,y:8,style:{fontSize:10,fontFamily:re,fill:u.axisLabel},children:p})]})]})})}function cr(r,t=.4){if(r.length===0)return"";if(r.length===1)return`M ${r[0][0]},${r[0][1]}`;if(r.length===2)return`M ${r[0][0]},${r[0][1]} L ${r[1][0]},${r[1][1]}`;const o=[`M ${r[0][0]},${r[0][1]}`];for(let a=0;a<r.length-1;a++){const n=r[a-1]??r[a],s=r[a],l=r[a+1],c=r[a+2]??r[a+1],d=s[0]+(l[0]-n[0])/6*t*3,x=s[1]+(l[1]-n[1])/6*t*3,p=l[0]-(c[0]-s[0])/6*t*3,f=l[1]-(c[1]-s[1])/6*t*3;o.push(`C ${d},${x} ${p},${f} ${l[0]},${l[1]}`)}return o.join(" ")}function Nr(r,t,o){if(t.length===0)return"";const a=t[t.length-1],n=t[0];return`${r} L ${a[0]},${o} L ${n[0]},${o} Z`}function rd(r,t,o,a,n){const s=[];let l=0;for(let c=0;c<r.length;c++){const d=r[c];if(t[c]){const p=o(0),f=o(l+d);s.push({x:a[c],yTop:Math.min(p,f),yBottom:Math.max(p,f),kind:"total"}),l+=d}else{const p=l,f=l+d,u=o(p),g=o(f);s.push({x:a[c],yTop:Math.min(u,g),yBottom:Math.max(u,g),kind:d>=0?"positive":"negative",connectorX:a[c]+n}),l=f}}return s}function Yo({labels:r,series:t,config:o}){const{width:a,height:n,valueType:s,currency:l="$",renderMode:c="web",showLegend:d=!1}=o,x=ie(o),p=c==="pdf",f=a-Y.left-Y.right,u=n-Y.top-Y.bottom,g=j.useMemo(()=>t.flatMap(C=>C.data),[t]),m=ur(g),h=Ze(m,[u,0]),v=h(0),w=Xe(m[0],m[1],5),N=C=>fe(C,s,l),L=r.length>1?f/(r.length-1):0,T=C=>C*L;return e.jsx("svg",{width:a,height:n,viewBox:`0 0 ${a} ${n}`,"aria-hidden":"true",style:{display:"block",overflow:"visible"},children:e.jsxs("g",{transform:`translate(${Y.left},${Y.top})`,children:[w.map(C=>{const z=h(C);return e.jsxs("g",{children:[e.jsx("line",{x1:0,y1:z,x2:f,y2:z,stroke:x.grid,strokeWidth:1}),e.jsx("text",{x:-8,y:z,textAnchor:"end",dominantBaseline:"middle",style:{fontSize:10,fontFamily:J,fill:x.axisLabel},children:N(C)})]},C)}),m[0]<0&&e.jsx("line",{x1:0,y1:v,x2:f,y2:v,stroke:x.axisLabel,strokeWidth:1}),t.map((C,z)=>{const D=C.color??x.series[z%x.series.length],$=Fe(D.startsWith("#")?D:x.series[z%x.series.length],.08),F=C.data.map((P,V)=>[T(V),h(P)]),S=cr(F),k=Nr(S,F,v),B=F[F.length-1];return e.jsxs("g",{children:[(C.showArea??!1)&&e.jsx("path",{d:k,fill:$,stroke:"none"}),e.jsx("path",{d:S,fill:"none",stroke:D,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),B&&e.jsx("circle",{cx:B[0],cy:B[1],r:4,fill:D,stroke:"#fff",strokeWidth:1.5})]},C.label)}),r.map((C,z)=>e.jsx("text",{x:T(z),y:u+16,textAnchor:"middle",style:{fontSize:p?9:10,fontFamily:re,fill:x.axisLabel},children:C},C)),d&&t.length>1&&e.jsx("g",{transform:`translate(0, ${u+28})`,children:t.map((C,z)=>{const D=C.color??x.series[z%x.series.length],$=z*110;return e.jsxs("g",{transform:`translate(${$}, 0)`,children:[e.jsx("line",{x1:0,y1:5,x2:16,y2:5,stroke:D,strokeWidth:2,strokeLinecap:"round"}),e.jsx("circle",{cx:8,cy:5,r:3,fill:D}),e.jsx("text",{x:20,y:9,style:{fontSize:10,fontFamily:re,fill:x.axisLabel},children:C.label})]},C.label)})})]})})}function td({data:r,config:t,color:o}){const a=ie(t),n=[{label:t.primaryLabel??"Value",data:r.map(s=>s.value),color:o??a.primary,showArea:!0}];return t.showComparison&&r.some(s=>s.priorValue!==void 0)&&n.push({label:t.comparisonLabel??"Prior Year",data:r.map(s=>s.priorValue??0),color:a.secondary,showArea:!1}),e.jsx(Yo,{labels:r.map(s=>s.label),series:n,config:{...t,showLegend:t.showComparison?t.showLegend:!1}})}const ar=2;function od({data:r,config:t}){const{width:o,height:a,valueType:n,currency:s="$",renderMode:l="web",showDataLabels:c=!0}=t,d=ie(t),x=l==="pdf",p=o-Y.left-Y.right,f=a-Y.top-Y.bottom,u=j.useMemo(()=>{const S=[0];let k=0;for(const B of r)k+=B.value,S.push(k);return S},[r]),g=Math.min(0,...u),m=Math.max(0,...u),h=Xe(g,m,5),v=[Math.min(g,h[0]),Math.max(m,h[h.length-1])],w=Ze(v,[f,0]),N=r.map(S=>S.label),L=Uo(N,p,.35),T=L.bandwidth,C=N.map(S=>L(S)),z=rd(r.map(S=>S.value),r.map(S=>!!S.isTotal),w,C,T),D=S=>fe(S,n,s),$=S=>Ue(S,n,s),F={positive:d.positive,negative:d.negative,total:d.total};return e.jsx("svg",{width:o,height:a,viewBox:`0 0 ${o} ${a}`,"aria-hidden":"true",style:{display:"block",overflow:"visible"},children:e.jsxs("g",{transform:`translate(${Y.left},${Y.top})`,children:[h.map(S=>{const k=w(S);return e.jsxs("g",{children:[e.jsx("line",{x1:0,y1:k,x2:p,y2:k,stroke:d.grid,strokeWidth:1}),e.jsx("text",{x:-8,y:k,textAnchor:"end",dominantBaseline:"middle",style:{fontSize:10,fontFamily:J,fill:d.axisLabel},children:D(S)})]},S)}),z.map((S,k)=>{const B=r[k],P=S.yBottom-S.yTop,V=B.value<0,H=F[S.kind],E=`wf-clip-${k}`,O=z[k+1],M=(S.kind==="total",S.yTop);return e.jsxs("g",{children:[e.jsx("defs",{children:e.jsx("clipPath",{id:E,children:e.jsx("rect",{x:S.x,y:V||S.kind==="total"?S.yTop:S.yTop-ar,width:T,height:P+ar+1,rx:ar,ry:ar})})}),P>0&&e.jsx("rect",{x:S.x,y:S.yTop,width:T,height:P,fill:H,clipPath:`url(#${E})`}),O&&S.connectorX!==void 0&&e.jsx("line",{x1:S.connectorX,y1:M,x2:O.x,y2:M,stroke:d.grid,strokeWidth:1,strokeDasharray:"3,3"}),c&&e.jsxs("text",{x:S.x+T/2,y:V?S.yBottom+12:S.yTop-4,textAnchor:"middle",style:{fontSize:x?9:10,fontFamily:J,fontWeight:600,fill:d.text},children:[B.value>=0?"+":"",$(B.value)]}),e.jsx("text",{x:S.x+T/2,y:f+16,textAnchor:"middle",style:{fontSize:x?9:10,fontFamily:re,fill:d.axisLabel},children:B.label})]},B.label)})]})})}const He=18,nr=10,gt=140,ad=60,mt=2;function nd({data:r,config:t,sorted:o=!0}){const{width:a,height:n,valueType:s,currency:l="$",renderMode:c="web"}=t,d=ie(t),x=c==="pdf",p=j.useMemo(()=>o?[...r].sort((C,z)=>Math.abs(z.value)-Math.abs(C.value)):r,[r,o]),f=p.length*(He+nr)+nr+8,u=n>0?n:f,g=a-gt-ad-24,m=p.map(C=>C.value),h=ur(m),v=Ze(h,[0,g]),w=v(0),N=C=>Ue(C,s,l),L=C=>fe(C,s,l),T=Xe(h[0],h[1],4);return e.jsx("svg",{width:a,height:u,viewBox:`0 0 ${a} ${u}`,"aria-hidden":"true",style:{display:"block",overflow:"visible"},children:e.jsxs("g",{transform:`translate(${gt+12},4)`,children:[T.map(C=>{const z=v(C);return e.jsxs("g",{children:[e.jsx("line",{x1:z,y1:0,x2:z,y2:f-8,stroke:d.grid,strokeWidth:1}),e.jsx("text",{x:z,y:f-2,textAnchor:"middle",style:{fontSize:9,fontFamily:J,fill:d.axisLabel},children:L(C)})]},C)}),h[0]<0&&e.jsx("line",{x1:w,y1:0,x2:w,y2:f-8,stroke:d.axisLabel,strokeWidth:1}),p.map((C,z)=>{const D=z*(He+nr)+nr,$=C.value<0,F=$?v(C.value):w,S=Math.abs(v(C.value)-w),k=$?d.negative:d.primary;return e.jsxs("g",{children:[e.jsx("text",{x:-8,y:D+He/2,textAnchor:"end",dominantBaseline:"middle",style:{fontSize:x?9:10,fontFamily:re,fill:d.text},children:C.label.length>22?C.label.slice(0,21)+"…":C.label}),e.jsx("rect",{x:F,y:D,width:Math.max(S,1),height:He,fill:k,rx:mt,ry:mt}),e.jsx("text",{x:v(Math.max(0,C.value))+6,y:D+He/2,dominantBaseline:"middle",style:{fontSize:10,fontFamily:J,fontWeight:600,fill:d.text},children:N(C.value)})]},C.label)})]})})}const sd=3;function sr(r,t,o,a){const n=(a-90)*Math.PI/180;return{x:r+o*Math.cos(n),y:t+o*Math.sin(n)}}function ld(r,t,o,a,n,s){const l=sr(r,t,o,s),c=sr(r,t,o,n),d=sr(r,t,a,s),x=sr(r,t,a,n),p=s-n>180?1:0;return[`M ${l.x},${l.y}`,`A ${o},${o} 0 ${p},0 ${c.x},${c.y}`,`L ${x.x},${x.y}`,`A ${a},${a} 0 ${p},1 ${d.x},${d.y}`,"Z"].join(" ")}function id({segments:r,config:t,centerLabel:o}){const{width:a,valueType:n,currency:s="$",renderMode:l="web"}=t,c=ie(t),d=l==="pdf",x=j.useMemo(()=>r.reduce((T,C)=>T+Math.abs(C.value),0),[r]),p=Math.ceil(r.length/2)*20+16,f=Math.min(a,200),u=f+p,g=f/2,m=f/2,h=f/2-8,v=h*.62,w=j.useMemo(()=>{let T=0;const C=sd,z=360-r.length*C;return r.map((D,$)=>{const F=D.color??c.series[$%c.series.length],S=x>0?Math.abs(D.value)/x:0,k=S*z,B=T,P=T+k;return T=P+C,{...D,startDeg:B,endDeg:P,color:F,proportion:S}})},[r,x]),N=T=>Ue(T,n,s),L=T=>Ue(T,n,s);return e.jsxs("svg",{width:a,height:u,viewBox:`0 0 ${a} ${u}`,"aria-hidden":"true",style:{display:"block"},children:[e.jsxs("g",{transform:`translate(${(a-f)/2}, 0)`,children:[w.map(T=>e.jsx("path",{d:ld(g,m,h,v,T.startDeg,T.endDeg),fill:T.color},T.label)),e.jsx("text",{x:g,y:m-6,textAnchor:"middle",style:{fontSize:18,fontFamily:J,fontWeight:300,fill:c.text},children:N(x)}),o&&e.jsx("text",{x:g,y:m+14,textAnchor:"middle",style:{fontSize:9,fontFamily:re,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",fill:c.axisLabel},children:o})]}),e.jsx("g",{transform:`translate(12, ${f+8})`,children:w.map((T,C)=>{const z=C%2,D=Math.floor(C/2),$=z*(a/2-6),F=D*20;return e.jsxs("g",{transform:`translate(${$}, ${F})`,children:[e.jsx("circle",{cx:5,cy:6,r:5,fill:T.color}),e.jsx("text",{x:14,y:11,style:{fontSize:d?9:10,fontFamily:re,fill:c.axisLabel},children:T.label.length>18?T.label.slice(0,17)+"…":T.label}),e.jsx("text",{x:a/2-18,y:11,textAnchor:"end",style:{fontSize:10,fontFamily:J,fontWeight:600,fill:c.text},children:L(T.value)})]},T.label)})})]})}function cd({data:r,config:t}){const{width:o,height:a,valueType:n,currency:s="$",renderMode:l="web"}=t,c=ie(t),d=l==="pdf",x=o-Y.left-Y.right,p=a-Y.top-Y.bottom,f=r.findIndex(I=>I.isForecast),u=f!==-1,g=u?r.slice(0,f):r,m=u?r.slice(f):[],h=j.useMemo(()=>{const I=r.map(_=>_.value);return r.forEach(_=>{_.upperBound!==void 0&&I.push(_.upperBound),_.lowerBound!==void 0&&I.push(_.lowerBound)}),I},[r]),v=ur(h),w=Ze(v,[p,0]),N=w(0),L=Xe(v[0],v[1],5),T=r.length>1?x/(r.length-1):0,C=I=>I*T,z=g.map((I,_)=>[C(_),w(I.value)]),D=m.map((I,_)=>[C(f+_),w(I.value)]),$=z.length?[z[z.length-1],...D]:D,F=cr(z),S=Nr(F,z,N),k=cr($),B=Nr(k,$,N),P=m.some(I=>I.upperBound!==void 0&&I.lowerBound!==void 0),V=P?m.map((I,_)=>({upper:[C(f+_),w(I.upperBound??I.value)],lower:[C(f+_),w(I.lowerBound??I.value)]})):[];let H="";if(V.length>0){const I=cr(V.map(te=>te.upper)),ue=[...V].reverse().map(te=>te.lower).map((te,K)=>`L ${te[0]},${te[1]}`).join(" ");H=`${I} ${ue} Z`}const E=u?C(f):null,O=z[z.length-1],M=I=>fe(I,n,s);return e.jsx("svg",{width:o,height:a,viewBox:`0 0 ${o} ${a}`,"aria-hidden":"true",style:{display:"block",overflow:"visible"},children:e.jsxs("g",{transform:`translate(${Y.left},${Y.top})`,children:[L.map(I=>{const _=w(I);return e.jsxs("g",{children:[e.jsx("line",{x1:0,y1:_,x2:x,y2:_,stroke:c.grid,strokeWidth:1}),e.jsx("text",{x:-8,y:_,textAnchor:"end",dominantBaseline:"middle",style:{fontSize:10,fontFamily:J,fill:c.axisLabel},children:M(I)})]},I)}),P&&H&&e.jsx("path",{d:H,fill:c.forecastBand,stroke:"none"}),z.length>1&&e.jsx("path",{d:S,fill:c.areaFill,stroke:"none"}),z.length>1&&e.jsx("path",{d:F,fill:"none",stroke:c.primary,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),D.length>0&&e.jsx("path",{d:B,fill:c.forecastFill,stroke:"none"}),D.length>0&&e.jsx("path",{d:k,fill:"none",stroke:c.primary,strokeWidth:1.5,strokeDasharray:"5,4",strokeLinecap:"round",strokeLinejoin:"round"}),O&&e.jsx("circle",{cx:O[0],cy:O[1],r:4,fill:c.primary,stroke:"#fff",strokeWidth:1.5}),E!==null&&e.jsx("line",{x1:E,y1:0,x2:E,y2:p,stroke:c.grid,strokeWidth:1,strokeDasharray:"3,3"}),E!==null&&e.jsx("text",{x:E+5,y:p*.2,style:{fontSize:d?8:9,fontFamily:re,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",fill:c.axisLabel},children:"FORECAST"}),r.map((I,_)=>r.length>14&&_%2!==0?null:e.jsx("text",{x:C(_),y:p+16,textAnchor:"middle",style:{fontSize:d?9:10,fontFamily:re,fill:c.axisLabel},children:I.label},I.label))]})})}const dd=6,ht=12;function pd({data:r,config:t,labelGutter:o=130}){const{width:a,height:n,valueType:s,currency:l="$"}=t,c=ie(t),d=j.useMemo(()=>Math.max(...r.map(v=>v.value),1),[r]),p=Math.max(80,a-o-110),f=r.length,u=(n-20)/f,g=Math.max(18,u-ht-dd),m=o+p/2,h=r.map((v,w)=>{const N=v.value/d*p,L=10+w*u;return{...v,width:N,y:L}});return e.jsx("svg",{width:a,height:n,style:{fontFamily:re},role:"img",children:h.map((v,w)=>{const N=m-v.width/2,L=w>0?v.value/h[w-1].value*100:null,T=fe(v.value,s,l,!0),C=h[w+1];return e.jsxs("g",{children:[e.jsx("text",{x:o-10,y:v.y+g/2,textAnchor:"end",dominantBaseline:"central",fontSize:12,fill:c.text,fontWeight:500,children:v.label}),L!==null&&e.jsxs("text",{x:m,y:v.y-4,textAnchor:"middle",fontSize:10,fontFamily:J,fill:c.axisLabel,children:[L.toFixed(0),"% ↓"]}),e.jsx("rect",{x:N,y:v.y,width:v.width,height:g,rx:3,fill:c.primary,opacity:.85-w*.08}),C&&e.jsx("path",{d:(()=>{const z=N,D=N+v.width,$=m-C.width/2,F=m+C.width/2,S=v.y+g,k=S+ht;return`M${z},${S} L${D},${S} L${F},${k} L${$},${k} Z`})(),fill:c.primary,opacity:.15}),e.jsx("text",{x:o+p+10,y:v.y+g/2-6,fontSize:12,fontFamily:J,fill:c.text,fontWeight:500,children:T}),v.count!==void 0&&e.jsxs("text",{x:o+p+10,y:v.y+g/2+8,fontSize:10,fill:c.axisLabel,children:[v.count.toLocaleString("en")," ",v.count===1?"deal":"deals"]})]},v.label)})})}const $e=34,Le=12;function xd({data:r,config:t,labelGutter:o=140,readoutGutter:a=120}){const{width:n,valueType:s,currency:l="$"}=t,c=ie(t),d=o,x=Math.max(80,n-o-a);return e.jsx("svg",{width:n,height:Math.max(t.height,r.length*$e+16),style:{fontFamily:re},role:"img",children:r.map((p,f)=>{const u=p.bands??[p.target*.6,p.target,p.target*1.3],g=Math.max(u[2],p.actual,p.target)*1.02,m=z=>Math.max(0,Math.min(z,g))/g*x,h=12+f*$e,v=h+($e-Le)/2,w=m(u[0]),N=m(u[1]),L=m(u[2]),T=m(p.actual),C=d+m(p.target);return e.jsxs("g",{children:[e.jsx("text",{x:o-10,y:h+$e/2,textAnchor:"end",dominantBaseline:"central",fontSize:12,fill:c.text,fontWeight:500,children:p.label}),e.jsx("rect",{x:d,y:v-6,width:L,height:Le+12,fill:"#d4d8e3",rx:2}),e.jsx("rect",{x:d,y:v-6,width:N,height:Le+12,fill:"#e5e7f0",rx:2}),e.jsx("rect",{x:d,y:v-6,width:w,height:Le+12,fill:"#f0f1f7",rx:2}),e.jsx("rect",{x:d,y:v,width:T,height:Le,fill:p.actual>=p.target?c.positive:c.primary,rx:2}),e.jsx("line",{x1:C,x2:C,y1:v-6,y2:v+Le+6,stroke:c.total,strokeWidth:2}),e.jsx("text",{x:n-10,y:h+$e/2-6,textAnchor:"end",fontSize:12,fontFamily:J,fill:c.text,fontWeight:500,children:fe(p.actual,s,l,!0)}),e.jsxs("text",{x:n-10,y:h+$e/2+8,textAnchor:"end",fontSize:10,fontFamily:J,fill:c.axisLabel,children:["/ ",fe(p.target,s,l,!0)]})]},p.label)})})}function fd(r,t,o){const a=c=>[parseInt(c.slice(1,3),16),parseInt(c.slice(3,5),16),parseInt(c.slice(5,7),16)],n=a(r),s=a(t);return"#"+n.map((c,d)=>Math.round(c+(s[d]-c)*o)).map(c=>c.toString(16).padStart(2,"0")).join("")}function ud({rows:r,cols:t,values:o,config:a,labelGutter:n=110,topGutter:s=28}){const{width:l,height:c,valueType:d,currency:x="$",showDataLabels:p=!0}=a,f=ie(a),{min:u,max:g}=j.useMemo(()=>{let N=1/0,L=-1/0;for(const T of o)for(const C of T)C<N&&(N=C),C>L&&(L=C);return isFinite(N)||(N=0,L=1),N===L&&(L=N+1),{min:N,max:L}},[o]),m=(l-n-8)/t.length,h=(c-s-8)/r.length,v="#ffffff",w=f.primary;return e.jsxs("svg",{width:l,height:c,style:{fontFamily:re},role:"img",children:[t.map((N,L)=>e.jsx("text",{x:n+L*m+m/2,y:s-8,textAnchor:"middle",fontSize:10,fontWeight:600,fill:f.axisLabel,style:{letterSpacing:"0.05em",textTransform:"uppercase"},children:N},`col-${N}`)),r.map((N,L)=>e.jsxs("g",{children:[e.jsx("text",{x:n-8,y:s+L*h+h/2,textAnchor:"end",dominantBaseline:"central",fontSize:11,fill:f.text,fontWeight:500,children:N}),t.map((T,C)=>{var P;const z=((P=o[L])==null?void 0:P[C])??0,D=(z-u)/(g-u),$=fd(v,w,Math.max(0,Math.min(1,D))),F=n+C*m+1,S=s+L*h+1,k=m-2,B=h-2;return e.jsxs("g",{children:[e.jsx("rect",{x:F,y:S,width:k,height:B,rx:2,fill:$,stroke:f.grid}),p&&e.jsx("text",{x:F+k/2,y:S+B/2,textAnchor:"middle",dominantBaseline:"central",fontSize:10,fontFamily:J,fill:D>.55?"#fff":f.text,children:fe(z,d,x,!0)})]},`c-${L}-${C}`)})]},`row-${N}`))]})}function gd({accent:r,width:t,height:o}){return e.jsxs("svg",{viewBox:`0 0 ${t} ${o}`,width:t,height:o,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",children:[e.jsx("rect",{width:t,height:o,fill:"#000626"}),e.jsx("ellipse",{cx:t*.8,cy:o*.85,rx:t*.7,ry:o*.55,fill:r,opacity:"0.18"}),e.jsx("ellipse",{cx:t*.15,cy:o*.25,rx:t*.55,ry:o*.4,fill:r,opacity:"0.12"}),e.jsx("path",{d:`M ${t*.4},0 Q ${t*1.1},${o*.3} ${t*.6},${o}`,fill:"none",stroke:r,strokeWidth:t*.025,opacity:"0.4",strokeLinecap:"round"}),e.jsx("circle",{cx:t*.78,cy:o*.22,r:t*.08,fill:r,opacity:"0.25"}),e.jsx("circle",{cx:t*.6,cy:o*.55,r:t*.04,fill:r,opacity:"0.5"})]})}function md({accent:r,width:t,height:o}){return e.jsxs("svg",{viewBox:`0 0 ${t} ${o}`,width:t,height:o,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",children:[e.jsx("rect",{width:t,height:o,fill:"#000626"}),e.jsx("rect",{x:0,y:o*.6,width:t,height:o*.4,fill:"#01082f"}),e.jsx("circle",{cx:t*.55,cy:o*.38,r:t*.14,fill:r,opacity:"0.9"}),e.jsx("rect",{x:t*.4,y:o*.61,width:t*.3,height:o*.12,fill:r,opacity:"0.15"}),e.jsx("line",{x1:t*.3,y1:o*.6,x2:t*.32,y2:o*.3,stroke:"#fff",strokeWidth:1.5,opacity:"0.4"}),e.jsx("line",{x1:t*.7,y1:o*.6,x2:t*.68,y2:o*.2,stroke:"#fff",strokeWidth:1.5,opacity:"0.4"}),[.65,.72,.8,.9].map((a,n)=>e.jsx("line",{x1:0,y1:o*a,x2:t,y2:o*a,stroke:"#fff",strokeWidth:.5,opacity:.06},n))]})}function hd({accent:r,width:t,height:o}){return e.jsxs("svg",{viewBox:`0 0 ${t} ${o}`,width:t,height:o,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",children:[e.jsx("rect",{width:t,height:o,fill:"#01240e"}),e.jsx("path",{d:`M ${t*.5},${o*.1} C ${t*1.2},${o*.1} ${t*1},${o*.9} ${t*.5},${o*.95} C ${t*0},${o*.9} ${t*-.2},${o*.1} ${t*.5},${o*.1}Z`,fill:"#71d481",opacity:"0.18"}),e.jsx("path",{d:`M ${t*.8},${o*-.05} C ${t*1.5},${o*.3} ${t*.9},${o*.8} ${t*.4},${o*.9} C ${t*0},${o*.6} ${t*.2},${o*-.1} ${t*.8},${o*-.05}Z`,fill:"#71d481",opacity:"0.14"}),e.jsx("circle",{cx:t*.5,cy:o*.5,r:t*.03,fill:r,opacity:"0.7"}),e.jsx("line",{x1:t*.5,y1:o*.1,x2:t*.5,y2:o*.95,stroke:"#71d481",strokeWidth:1.5,opacity:"0.3"})]})}function bd({accent:r,width:t,height:o}){return e.jsxs("svg",{viewBox:`0 0 ${t} ${o}`,width:t,height:o,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",children:[e.jsx("rect",{width:t,height:o,fill:"#000626"}),e.jsx("polygon",{points:`${t*0},${o*1} ${t*1},${o*0} ${t*1},${o*1}`,fill:r,opacity:"0.15"}),e.jsx("polygon",{points:`${t*.2},${o*0} ${t*.6},${o*0} ${t*0},${o*.7} ${t*0},${o*.3}`,fill:"#fff",opacity:"0.04"}),e.jsx("polygon",{points:`${t*.5},${o*0} ${t*1},${o*.4} ${t*.5},${o*.5}`,fill:r,opacity:"0.25"}),[.3,.5,.7,.9].map(a=>[.2,.5,.8].map(n=>e.jsx("circle",{cx:t*n,cy:o*a,r:2,fill:"#fff",opacity:"0.12"},`${n}-${a}`)))]})}function vd({style:r,accent:t,width:o,height:a}){switch(r){case"marina":return e.jsx(md,{accent:t,width:o,height:a});case"leaves":return e.jsx(hd,{accent:t,width:o,height:a});case"abstract":return e.jsx(bd,{accent:t,width:o,height:a});default:return e.jsx(gd,{accent:t,width:o,height:a})}}function yd({config:r,renderMode:t="pdf",width:o=794,height:a=1122}){const{entityName:n,reportTitle:s="Monthly Management Report",period:l,preparedBy:c,logoUrl:d,heroStyle:x="curves",accentColor:p="#e15713",publishedDate:f}=r,u=t==="pdf",g=Math.round(o*.52),m=o-g,h=6;return e.jsxs("div",{style:{width:o,height:a,display:"flex",flexDirection:"row",overflow:"hidden",fontFamily:"'Geist', system-ui, sans-serif",backgroundColor:"#fff",position:"relative"},children:[e.jsxs("div",{style:{width:g,height:a,display:"flex",flexDirection:"column",padding:u?"44px 36px 44px 44px":"56px 48px 56px 56px",boxSizing:"border-box",position:"relative",zIndex:1,backgroundColor:"#fff"},children:[e.jsx("div",{style:{marginBottom:"auto"},children:d?e.jsx("img",{src:d,alt:n,style:{maxHeight:u?36:44,maxWidth:g*.55,objectFit:"contain"}}):e.jsx("div",{style:{fontSize:u?14:16,fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",color:"#000626"},children:n})}),e.jsxs("div",{style:{marginTop:"auto",marginBottom:"auto"},children:[e.jsx("div",{style:{width:36,height:4,borderRadius:2,backgroundColor:p,marginBottom:u?18:24}}),e.jsx("h1",{style:{margin:"0 0 10px 0",fontSize:u?26:32,fontWeight:500,color:"#000626",lineHeight:1.15},children:n}),e.jsx("div",{style:{fontSize:u?14:17,fontWeight:400,color:"#595f7a",marginBottom:u?6:8},children:s}),e.jsx("div",{style:{fontSize:u?13:15,fontWeight:400,color:"#8c92af"},children:l})]}),e.jsxs("div",{style:{marginTop:"auto",paddingTop:24},children:[c&&e.jsx("div",{style:{fontSize:u?8:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.10em",color:"#8c92af",marginBottom:4},children:"Prepared by"}),c&&e.jsx("div",{style:{fontSize:u?10:12,color:"#595f7a"},children:c}),f&&e.jsx("div",{style:{fontSize:u?9:10,color:"#c8cce0",marginTop:4},children:f})]})]}),e.jsx("div",{style:{width:h,height:a,backgroundColor:p,flexShrink:0}}),e.jsx("div",{style:{flex:1,height:a,overflow:"hidden",position:"relative"},children:e.jsx(vd,{style:x,accent:p,width:m-h,height:a})})]})}const jd={Critical:"#000626",High:"#e15713",Medium:"#8c92af",Low:"#c8cce0"},bt={up:"#71d481",down:"#fb6060",flat:"#8c92af"},wd={up:"▲",down:"▼",flat:"—"};function Cd({met:r}){return r==null?null:e.jsx("span",{style:{color:r?"#71d481":"#fb6060",fontWeight:700,fontSize:12},children:r?"✓":"×"})}function Sd({rows:r,renderMode:t="web"}){const o=t==="pdf",a=o?9:11,n=o?8:10,s=r.reduce((x,p)=>{const f=`${p.categoryLetter}:${p.category}`;return x.has(f)||x.set(f,[]),x.get(f).push(p),x},new Map),l=r.some(x=>x.target!==null&&x.target!==void 0),c=r.filter(x=>x.lowerIsBetter&&x.footnoteMarker),d=o?"5px 8px":"7px 10px";return e.jsxs("div",{style:{fontFamily:"'Geist', system-ui, sans-serif",breakInside:"avoid",pageBreakInside:"avoid"},children:[e.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",tableLayout:"fixed"},children:[e.jsxs("colgroup",{children:[e.jsx("col",{style:{width:"28%"}}),e.jsx("col",{style:{width:"14%"}}),l&&e.jsx("col",{style:{width:"12%"}}),l&&e.jsx("col",{style:{width:"6%"}}),e.jsx("col",{style:{width:l?"24%":"36%"}}),e.jsx("col",{style:{width:"16%"}})]}),e.jsx("thead",{children:e.jsx("tr",{style:{borderBottom:"2px solid #e5e7f0"},children:["METRIC","RESULT",...l?["TARGET",""]:[],"TREND","IMPORTANCE"].map(x=>e.jsx("th",{style:{padding:d,fontSize:n,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#8c92af",textAlign:x==="RESULT"||x==="TARGET"?"right":"left",paddingBottom:8},children:x},x))})}),e.jsx("tbody",{children:[...s.entries()].map(([x,p])=>{const f=p[0];return e.jsxs(j.Fragment,{children:[e.jsx("tr",{style:{breakInside:"avoid",pageBreakInside:"avoid",borderTop:"1px solid #e5e7f0"},children:e.jsx("td",{colSpan:l?6:4,style:{padding:`${o?6:8}px ${o?8:10}px`,paddingTop:o?10:14},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:o?16:20,height:o?16:20,borderRadius:4,backgroundColor:f.categoryColor,color:"#fff",fontSize:o?9:11,fontWeight:700,flexShrink:0,fontFamily:"'Geist Mono', monospace"},children:f.categoryLetter}),e.jsx("span",{style:{fontSize:o?9:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#000626"},children:f.category})]})})}),p.map((u,g)=>e.jsxs("tr",{style:{backgroundColor:g%2===0?"transparent":"rgba(229,231,240,0.2)",breakInside:"avoid",pageBreakInside:"avoid"},children:[e.jsxs("td",{style:{padding:d,fontSize:a,color:"#000626"},children:[u.label,u.footnoteMarker&&e.jsx("sup",{style:{color:"#8c92af",fontSize:a-2},children:u.footnoteMarker})]}),e.jsx("td",{style:{padding:d,fontSize:a,fontFamily:"'Geist Mono', monospace",fontWeight:600,color:"#000626",textAlign:"right"},children:u.result}),l&&e.jsx("td",{style:{padding:d,fontSize:a,fontFamily:"'Geist Mono', monospace",color:"#8c92af",textAlign:"right"},children:u.target??"—"}),l&&e.jsx("td",{style:{padding:d,textAlign:"center"},children:e.jsx(Cd,{met:u.targetMet})}),e.jsxs("td",{style:{padding:d,fontSize:a},children:[e.jsxs("span",{style:{color:bt[u.trendDirection],fontWeight:600},children:[wd[u.trendDirection]," "]}),e.jsx("span",{style:{fontFamily:"'Geist Mono', monospace",color:bt[u.trendDirection],fontWeight:600},children:u.trendValue}),e.jsx("span",{style:{color:"#8c92af",marginLeft:4,fontSize:o?8:9},children:u.trendPeriod})]}),e.jsx("td",{style:{padding:d},children:e.jsx("span",{style:{fontSize:o?8:10,fontWeight:600,color:jd[u.importance]??"#8c92af",textTransform:"uppercase",letterSpacing:"0.06em"},children:u.importance})})]},u.label))]},x)})})]}),c.length>0&&e.jsx("div",{style:{marginTop:12,paddingTop:8,borderTop:"1px solid #e5e7f0",fontSize:o?8:9,color:"#8c92af"},children:c.map(x=>e.jsxs("div",{children:[e.jsx("sup",{children:x.footnoteMarker})," ",x.label,": lower values indicate better performance"]},x.label))})]})}function kd({size:r}){return e.jsx("svg",{width:r,height:r,viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M5 9.5V16H3a1 1 0 01-1-1v-4.5a1 1 0 011-1h2zM6 9.5l2.5-7a1.5 1.5 0 013 0v4.5h3.5a1.5 1.5 0 011.5 1.5l-.9 4.5a1.5 1.5 0 01-1.5 1.5H6V9.5z",fill:"#71d481"})})}function Nd({size:r}){return e.jsx("svg",{width:r,height:r,viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M13 8.5V2H15a1 1 0 011 1v4.5a1 1 0 01-1 1h-2zM12 8.5l-2.5 7a1.5 1.5 0 01-3 0v-4.5H3a1.5 1.5 0 01-1.5-1.5l.9-4.5A1.5 1.5 0 013.9 3.5H12V8.5z",fill:"#fb6060"})})}function zd({size:r}){return e.jsx("svg",{width:r,height:r,viewBox:"0 0 18 18",fill:"none",children:e.jsx("rect",{x:"3",y:"8",width:"12",height:"2",rx:"1",fill:"#8c92af"})})}function Td({status:r,size:t}){return r==="positive"?e.jsx(kd,{size:t}):r==="negative"?e.jsx(Nd,{size:t}):e.jsx(zd,{size:t})}function Ko({observations:r,renderMode:t="web"}){const o=t==="pdf",a=o?14:18;return e.jsx("div",{style:{fontFamily:"'Geist', system-ui, sans-serif"},children:r.map((n,s)=>e.jsxs("div",{style:{display:"flex",gap:o?12:16,alignItems:"flex-start",paddingTop:o?10:14,paddingBottom:o?10:14,borderBottom:s<r.length-1?"1px solid #e5e7f0":"none",breakInside:"avoid",pageBreakInside:"avoid"},children:[e.jsx("div",{style:{flexShrink:0,paddingTop:2},children:e.jsx(Td,{status:n.status,size:a})}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontSize:9,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.10em",color:"#8c92af",marginBottom:3},children:n.category}),e.jsxs("div",{style:{marginBottom:o?3:4},children:[e.jsx("span",{style:{fontSize:o?11:13,fontWeight:700,color:"#000626"},children:n.headline}),n.context&&e.jsx("span",{style:{fontSize:o?11:13,fontWeight:400,color:"#8c92af",marginLeft:6},children:n.context})]}),e.jsx("p",{style:{margin:0,fontSize:o?10:12,fontWeight:400,color:"#595f7a",lineHeight:1.6},children:n.narrative})]})]},n.category))})}function $d({commentary:r,actions:t,observations:o,renderMode:a="web"}){const n=a==="pdf";return e.jsxs("div",{style:{fontFamily:"'Geist', system-ui, sans-serif"},children:[e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"60% 40%",gap:n?24:32,marginBottom:n?24:32,alignItems:"start"},children:[e.jsx("div",{children:r.map((s,l)=>e.jsxs("div",{style:{marginBottom:n?12:16},children:[s.heading&&e.jsx("div",{style:{fontSize:n?10:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#000626",marginBottom:n?4:6},children:s.heading}),e.jsx("p",{style:{margin:0,fontSize:n?10:13,lineHeight:1.65,color:"#000626"},children:s.body})]},l))}),e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:n?9:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#8c92af",marginBottom:n?8:12},children:"Key Actions"}),e.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:t.map((s,l)=>e.jsxs("li",{style:{display:"flex",gap:10,alignItems:"flex-start",marginBottom:n?7:10,fontSize:n?10:13,lineHeight:1.8,color:"#000626"},children:[e.jsx("span",{style:{color:"#e15713",fontWeight:700,fontSize:14,lineHeight:1.6,flexShrink:0},children:"•"}),e.jsx("span",{children:s})]},l))})]})]}),o.length>0&&e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:n?9:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#000626",borderBottom:"2px solid #e5e7f0",paddingBottom:n?6:8,marginBottom:0},children:"KPI Observations"}),e.jsx(Ko,{observations:o,renderMode:a})]})]})}const wr="'Geist Mono', ui-monospace, monospace",vt="#71d481",yt="#fb6060",Me="#8c92af",Ld="#595f7a",Md="#000626",Zo="#e5e7f0";function Ad({data:r,color:t,width:o=80,height:a=22}){if(r.length<2)return null;const n=Math.min(...r),l=Math.max(...r)-n||1,c=2,d=r.map((p,f)=>({x:c+f/(r.length-1)*(o-c*2),y:c+(1-(p-n)/l)*(a-c*2)}));let x=`M ${d[0].x},${d[0].y}`;for(let p=1;p<d.length;p++){const f=d[p-1],u=d[p],g=(f.x+u.x)/2;x+=` C ${g},${f.y} ${g},${u.y} ${u.x},${u.y}`}return e.jsx("svg",{width:o,height:a,viewBox:`0 0 ${o} ${a}`,style:{display:"block",overflow:"visible"},children:e.jsx("path",{d:x,fill:"none",stroke:t,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})}function Xo({label:r,value:t,comparison:o,comparisonLabel:a,trend:n,target:s,description:l,sparklineData:c,renderMode:d="web",_last:x=!1}){const p=d==="pdf",f=p?"10px 12px":"16px 20px",u=p?22:28,g=p?8:9,m=n==null?Me:n.favorable!=null?n.favorable?vt:yt:n.direction==="up"?vt:n.direction==="down"?yt:Me,h=n==null?"":n.direction==="up"?"▲ ":n.direction==="down"?"▼ ":"";return e.jsxs("div",{style:{padding:f,background:"#ffffff",borderRight:x?void 0:`1px solid ${Zo}`,display:"flex",flexDirection:"column",gap:p?4:6},children:[e.jsx("div",{style:{fontSize:g,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:Me},children:r}),e.jsxs("div",{style:{display:"flex",alignItems:"flex-end",gap:12,justifyContent:"space-between"},children:[e.jsx("div",{style:{fontSize:u,fontWeight:300,fontFamily:wr,color:Md,lineHeight:1,letterSpacing:"-0.01em"},children:t}),c&&c.length>=2&&e.jsx("div",{style:{marginBottom:2},children:e.jsx(Ad,{data:c,color:m,width:80,height:22})})]}),n&&e.jsxs("div",{style:{fontSize:11,fontWeight:500,color:m,lineHeight:1.2},children:[h,n.value]}),o&&e.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[e.jsx("span",{style:{fontSize:13,fontFamily:wr,color:Me},children:o}),a&&e.jsx("span",{style:{fontSize:10,color:Me},children:a})]}),s&&e.jsxs("div",{style:{fontSize:11,color:Me,display:"flex",gap:4},children:[e.jsx("span",{style:{fontWeight:600},children:"Target"}),e.jsx("span",{style:{fontFamily:wr},children:s})]}),l&&e.jsx("div",{style:{fontSize:11,color:Ld,lineHeight:1.5,marginTop:2},children:l})]})}function Rd({cards:r,renderMode:t="web"}){return r.length===0?null:e.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${r.length}, 1fr)`,border:`1px solid ${Zo}`,borderRadius:8,overflow:"hidden"},children:r.map((o,a)=>e.jsx(Xo,{...o,renderMode:t,_last:a===r.length-1},a))})}const Fd="'Geist Mono', ui-monospace, monospace",Bd="#71d481",Dd="#fb6060",Id="#f5f6fa",Ed="#e5e7f0",lr="#8c92af",Wd="#000626",jt={Critical:0,High:1,Medium:2,Low:3};function wt(r,t,o,a,n,s){if(a<=o+.5)return"";const l=s-n>Math.PI?1:0,c=Math.cos(n),d=Math.sin(n),x=Math.cos(s),p=Math.sin(s),f=u=>u.toFixed(2);return[`M ${f(r+o*c)},${f(t+o*d)}`,`A ${o},${o} 0 ${l} 1 ${f(r+o*x)},${f(t+o*p)}`,`L ${f(r+a*x)},${f(t+a*p)}`,`A ${a},${a} 0 ${l} 0 ${f(r+a*c)},${f(t+a*d)}`,"Z"].join(" ")}function Pd({items:r,period:t,onTrackCount:o,offTrackCount:a,renderMode:n="web",width:s=500}){const l=n==="pdf",c=r.length;if(c===0)return null;const d=[...r].sort((F,S)=>{const k=(jt[F.importance]??3)-(jt[S.importance]??3);return k!==0?k:F.label.localeCompare(S.label)}),x=o+a,p=x>0?Math.round(o/x*100):0,f=560,u=560,g=280,m=280,h=188,v=42,w=h+24,T=2*Math.PI/c/2-.015,C=Math.round(u*(s/f));function z(F){return F/c*2*Math.PI-Math.PI/2}function D(F){return F.targetMet===!0?Bd:F.targetMet===!1?Dd:lr}function $(F){return F.targetMet===!0?"rgba(113,212,129,0.10)":F.targetMet===!1?"rgba(251,96,96,0.08)":Id}return e.jsxs("svg",{width:s,height:C,viewBox:`0 0 ${f} ${u}`,style:{display:"block",overflow:"visible"},children:[d.map((F,S)=>{const k=z(S),B=k-T,P=k+T,V=v+Math.max(2,Math.min(F.score/100,1)*(h-v)),H=g+w*Math.cos(k),E=m+w*Math.sin(k),O=k*180/Math.PI+90,M=O>90&&O<270?O+180:O,I=F.label.length>22?`${F.label.slice(0,20)}…`:F.label;return e.jsxs("g",{children:[e.jsx("path",{d:wt(g,m,v,h,B,P),fill:$(F)}),e.jsx("path",{d:wt(g,m,v,V,B,P),fill:D(F),opacity:F.targetMet===null?.5:.88}),e.jsx("text",{x:0,y:0,textAnchor:"middle",dominantBaseline:"middle",fontSize:l?7:8.5,fill:lr,transform:`translate(${H.toFixed(1)},${E.toFixed(1)}) rotate(${M.toFixed(1)})`,children:I})]},S)}),e.jsx("circle",{cx:g,cy:m,r:v-1,fill:"white"}),e.jsx("circle",{cx:g,cy:m,r:h,fill:"none",stroke:Ed,strokeWidth:.75}),e.jsxs("text",{x:g,y:m-5,textAnchor:"middle",dominantBaseline:"auto",fontSize:20,fontWeight:300,fontFamily:Fd,fill:Wd,children:[p,"%"]}),e.jsx("text",{x:g,y:m+7,textAnchor:"middle",dominantBaseline:"hanging",fontSize:7,letterSpacing:"0.07em",fill:lr,children:"ON TRACK"}),e.jsxs("text",{x:g,y:u-8,textAnchor:"middle",dominantBaseline:"auto",fontSize:9,fill:lr,children:[`${o} on track · ${a} off track`,r.length>x?` · ${r.length-x} no target`:"",t?` · ${t}`:""]})]})}const qe="'Geist Mono', ui-monospace, monospace",Dr="#71d481",Ir="#fb6060",ae="#000626",qo="#f5f6fa",zr="#e5e7f0",ve="#8c92af",Vd="#D6F4FF",Jo="#00bcd4",Hd="rgba(0,188,212,0.06)",Ct="rgba(0,188,212,0.15)";function de(r,t){const o=Math.abs(r),a=r<0?"-":"",n=o.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:0});return`${a}${t}${n}`}function Er(r){return`${r>0?"+":""}${r.toFixed(1)}%`}function Wr(r,t){return`${r>0?"+":""}${de(r,t)}`}function _d({rows:r,period:t,showForecast:o=!1,currency:a="$",renderMode:n="web"}){const s=n==="pdf",l=n==="excel",c=s||l,d=c?"5px 8px":"9px 14px",x=c?"0 8px":"0 14px",p=c?24:34,f=c?11:13,u=c?8:9;return e.jsx("div",{style:{border:`1px solid ${zr}`,borderRadius:l?0:8,overflow:"hidden"},children:e.jsxs("table",{style:{width:"100%",borderCollapse:"collapse"},children:[e.jsx("thead",{children:e.jsxs("tr",{style:{height:p,background:ae},children:[e.jsx("th",{style:{padding:x,paddingLeft:c?12:20,textAlign:"left",fontSize:u,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#ffffff",whiteSpace:"nowrap"},children:t?`Item · ${t}`:"Item"}),e.jsx("th",{style:_e(u,x),children:"Budget"}),e.jsx("th",{style:_e(u,x),children:"Actual"}),o&&e.jsx("th",{style:_e(u,x),children:"Forecast"}),e.jsx("th",{style:_e(u,x),children:"Variance $"}),e.jsx("th",{style:_e(u,x),children:"Variance %"})]})}),e.jsx("tbody",{children:r.map((g,m)=>{if(g.isSectionHeader)return e.jsx("tr",{style:{background:Hd,borderTop:m>0?`1px solid ${Ct}`:void 0,borderBottom:`1px solid ${Ct}`,borderLeft:`3px solid ${Jo}`},children:e.jsx("td",{colSpan:o?6:5,style:{padding:c?"4px 8px":"6px 14px",paddingLeft:c?12:20,fontSize:c?8:9,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:ae},children:g.label})},m);if(g.isGrandTotal)return e.jsx(Gd,{row:g,currency:a,showForecast:o,compact:c,fontSize:f},m);if(g.isTotal)return e.jsx(Od,{row:g,currency:a,showForecast:o,compact:c,fontSize:f},m);const h=(g.indent??0)*(c?10:14),v=g.budget!=null,w=g.actual!=null,N=v&&w?g.actual-g.budget:null,L=v&&w&&g.budget!==0?(g.actual-g.budget)/Math.abs(g.budget)*100:null,T=N==null?null:g.isNegativeGood?N<0:N>0,C=T==null?ve:T?Dr:Ir;return e.jsxs("tr",{style:{background:"#ffffff",borderBottom:`1px solid ${qo}`},children:[e.jsx("td",{style:{padding:d,paddingLeft:(c?12:20)+h,fontSize:f,color:ae,whiteSpace:c?"nowrap":void 0},children:g.label}),e.jsx("td",{style:ne(f,d,ve),children:v?de(g.budget,a):"—"}),e.jsx("td",{style:ne(f,d,ae),children:w?de(g.actual,a):"—"}),o&&e.jsx("td",{style:ne(f,d,ve),children:g.forecast!=null?de(g.forecast,a):"—"}),e.jsx("td",{style:ne(f,d,C),children:N!=null?Wr(N,a):"—"}),e.jsx("td",{style:{padding:d,textAlign:"right"},children:L!=null?e.jsx("span",{style:{display:"inline-block",padding:"1px 5px",borderRadius:4,fontSize:c?10:11,fontWeight:600,fontFamily:qe,color:C,background:T==null?"transparent":T?"rgba(113,212,129,0.10)":"rgba(251,96,96,0.09)"},children:Er(L)}):e.jsx("span",{style:{color:ve,fontSize:f},children:"—"})})]},m)})})]})})}function _e(r,t){return{padding:t,textAlign:"right",fontSize:r,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#ffffff",fontFamily:qe,whiteSpace:"nowrap"}}function ne(r,t,o){return{padding:t,textAlign:"right",fontSize:r,fontFamily:qe,fontVariantNumeric:"tabular-nums",color:o,whiteSpace:"nowrap"}}function Od({row:r,currency:t,showForecast:o,compact:a,fontSize:n}){const s=r.budget!=null,l=r.actual!=null,c=s&&l?r.actual-r.budget:null,d=s&&l&&r.budget!==0?(r.actual-r.budget)/Math.abs(r.budget)*100:null,x=c==null?null:r.isNegativeGood?c<0:c>0,p=x==null?ve:x?Dr:Ir,f=a?"5px 8px":"8px 14px";return e.jsxs("tr",{style:{background:qo,borderTop:`1px solid ${zr}`,borderBottom:`1px solid ${zr}`},children:[e.jsx("td",{style:{padding:f,paddingLeft:a?12:20,fontSize:a?9:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.04em",color:ae,whiteSpace:a?"nowrap":void 0},children:r.label}),e.jsx("td",{style:{...ne(n,f,ae),fontWeight:600},children:s?de(r.budget,t):"—"}),e.jsx("td",{style:{...ne(n,f,ae),fontWeight:600},children:l?de(r.actual,t):"—"}),o&&e.jsx("td",{style:{...ne(n,f,ae),fontWeight:600},children:r.forecast!=null?de(r.forecast,t):"—"}),e.jsx("td",{style:{...ne(n,f,p),fontWeight:600},children:c!=null?Wr(c,t):"—"}),e.jsx("td",{style:{padding:f,textAlign:"right"},children:d!=null?e.jsx("span",{style:{display:"inline-block",padding:"1px 5px",borderRadius:4,fontSize:a?10:11,fontWeight:700,fontFamily:qe,color:p,background:x==null?"transparent":x?"rgba(113,212,129,0.10)":"rgba(251,96,96,0.09)"},children:Er(d)}):e.jsx("span",{style:{color:ve,fontSize:n},children:"—"})})]})}function Gd({row:r,currency:t,showForecast:o,compact:a,fontSize:n}){const s=r.budget!=null,l=r.actual!=null,c=s&&l?r.actual-r.budget:null,d=s&&l&&r.budget!==0?(r.actual-r.budget)/Math.abs(r.budget)*100:null,x=c==null?null:r.isNegativeGood?c<0:c>0,p=x==null?ve:x?Dr:Ir,f=a?24:34,u=a?"0 8px":"0 14px";return e.jsxs("tr",{style:{background:Vd,borderTop:`2px solid ${Jo}`,height:f},children:[e.jsx("td",{style:{padding:u,paddingLeft:a?12:20,fontSize:a?10:12,fontWeight:700,color:ae,whiteSpace:a?"nowrap":void 0},children:r.label}),e.jsx("td",{style:{...ne(n,u,ae),fontWeight:700},children:s?de(r.budget,t):"—"}),e.jsx("td",{style:{...ne(n,u,ae),fontWeight:700},children:l?de(r.actual,t):"—"}),o&&e.jsx("td",{style:{...ne(n,u,ae),fontWeight:700},children:r.forecast!=null?de(r.forecast,t):"—"}),e.jsx("td",{style:{...ne(n,u,p),fontWeight:700},children:c!=null?Wr(c,t):"—"}),e.jsx("td",{style:{padding:u,textAlign:"right"},children:d!=null?e.jsx("span",{style:{display:"inline-block",padding:"1px 5px",borderRadius:4,fontSize:a?10:11,fontWeight:700,fontFamily:qe,color:p,background:x==null?"transparent":x?"rgba(113,212,129,0.13)":"rgba(251,96,96,0.11)"},children:Er(d)}):e.jsx("span",{style:{color:ve,fontSize:n},children:"—"})})]})}const Ud=b("inline-flex items-center whitespace-nowrap",{variants:{variant:{square:"px-2 py-0.5 rounded text-[10px] font-bold uppercase tracking-wider",pill:"px-2.5 py-1 rounded-full text-[11px] font-semibold",entity:"px-2 py-0.5 rounded text-[11px] font-medium"}},defaultVariants:{variant:"pill"}}),Qo=j.forwardRef(({className:r,variant:t="pill",bg:o,color:a,style:n,children:s,...l},c)=>e.jsx("span",{ref:c,className:y(Ud({variant:t}),r),style:{background:o,color:a,...n},...l,children:s}));Qo.displayName="Badge";const Yd=b("bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[var(--archie-radius-xl)]",{variants:{variant:{default:"[box-shadow:var(--archie-shadow-sm)]",elevated:"[box-shadow:var(--archie-shadow-md)]",stat:"[box-shadow:var(--archie-shadow-sm)]"},padding:{none:"",sm:"p-3",md:"p-4",lg:"p-6"}},defaultVariants:{variant:"default",padding:"md"}}),ea=j.forwardRef(({className:r,variant:t="default",padding:o="md",children:a,...n},s)=>e.jsx("div",{ref:s,className:y(Yd({variant:t,padding:o}),r),...n,children:a}));ea.displayName="Card";const ra=j.forwardRef(({className:r,label:t,hint:o,error:a,size:n="medium",disabled:s,...l},c)=>{const d=j.useId(),x=n==="small"?"h-8 text-xs px-2.5 pr-7":"h-10 text-[13px] px-3 pr-8";return e.jsxs("div",{className:"flex flex-col gap-1",children:[t&&e.jsx("label",{className:"text-[11px] font-semibold text-[var(--color-gray-800)]",children:t}),e.jsxs("div",{className:"relative",children:[e.jsx("select",{ref:c,className:y("w-full appearance-none rounded-[6px] border outline-none transition-colors duration-150","bg-[var(--color-white)] text-[var(--color-gray-1000)]",a?"border-[var(--color-red-1000)] bg-[var(--color-red-200)]":"border-[var(--color-gray-200)] focus:border-[var(--color-blue-800)] focus:ring-2 focus:ring-[rgba(21,177,205,0.12)]",s&&"bg-[var(--color-gray-50)] text-[var(--color-gray-600)] cursor-not-allowed",x,r),disabled:s,"aria-invalid":!!a,"aria-describedby":a?d:void 0,...l}),e.jsx("svg",{className:"pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2 text-[var(--color-gray-600)]",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m6 9 6 6 6-6"})})]}),a&&e.jsx("span",{id:d,className:"text-[11px] text-[var(--color-red-1000)]",role:"alert",children:a}),!a&&o&&e.jsx("span",{className:"text-[11px] text-[var(--color-gray-600)]",children:o})]})});ra.displayName="Select";const ta=j.forwardRef(({className:r,label:t,hint:o,error:a,showToggle:n=!0,size:s="medium",disabled:l,...c},d)=>{const[x,p]=j.useState(!1),f=j.useId(),u=s==="small"?"h-8 text-xs":"h-10 text-[13px]";return e.jsxs("div",{className:"flex flex-col gap-1",children:[t&&e.jsx("label",{className:"text-[11px] font-semibold text-[var(--color-gray-800)]",children:t}),e.jsxs("div",{className:y("flex items-center rounded-[6px] border transition-colors duration-150",a?"border-[var(--color-red-1000)]":"border-[var(--color-gray-200)] focus-within:border-[var(--color-blue-800)] focus-within:ring-2 focus-within:ring-[rgba(21,177,205,0.12)]",l&&"bg-[var(--color-gray-50)] cursor-not-allowed",u),children:[e.jsx("input",{ref:d,type:x?"text":"password",className:y("flex-1 bg-transparent border-none outline-none px-3 text-[var(--color-gray-1000)]",u,r),disabled:l,"aria-invalid":!!a,"aria-describedby":a?f:void 0,...c}),n&&e.jsx("button",{type:"button",onClick:()=>p(!x),className:"shrink-0 px-2.5 text-[var(--color-gray-600)] bg-transparent border-none cursor-pointer hover:text-[var(--color-gray-800)] transition-colors","aria-label":x?"Hide password":"Show password",tabIndex:-1,children:x?e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"}),e.jsx("path",{d:"M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"}),e.jsx("line",{x1:"1",x2:"23",y1:"1",y2:"23"})]}):e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),e.jsx("circle",{cx:"12",cy:"12",r:"3"})]})})]}),a&&e.jsx("span",{id:f,className:"text-[11px] text-[var(--color-red-1000)]",role:"alert",children:a}),!a&&o&&e.jsx("span",{className:"text-[11px] text-[var(--color-gray-600)]",children:o})]})});ta.displayName="PasswordField";const oa=j.forwardRef(({className:r,label:t,hint:o,error:a,suffix:n,size:s="medium",disabled:l,style:c,...d},x)=>{const p=j.useId(),f=s==="small"?"h-8 text-xs px-2":"h-10 text-[13px] px-2.5";return e.jsxs("div",{className:"flex flex-col gap-1",children:[t&&e.jsx("label",{className:"text-[11px] font-semibold text-[var(--color-gray-800)]",children:t}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{ref:x,type:"number",className:y("rounded-[6px] border outline-none transition-colors duration-150 text-right","bg-[var(--color-white)] text-[var(--color-gray-1000)]",a?"border-[var(--color-red-1000)]":"border-[var(--color-gray-200)] focus:border-[var(--color-blue-800)] focus:ring-2 focus:ring-[rgba(21,177,205,0.12)]",l&&"bg-[var(--color-gray-50)] text-[var(--color-gray-600)] cursor-not-allowed",f,r),disabled:l,"aria-invalid":!!a,"aria-describedby":a?p:void 0,style:{width:100,...c},...d}),n&&e.jsx("span",{className:"text-[12px] text-[var(--color-gray-600)] shrink-0",children:n})]}),a&&e.jsx("span",{id:p,className:"text-[11px] text-[var(--color-red-1000)]",role:"alert",children:a}),!a&&o&&e.jsx("span",{className:"text-[11px] text-[var(--color-gray-600)]",children:o})]})});oa.displayName="NumberInput";const Kd=b("flex gap-3 p-3 rounded-[var(--archie-radius-lg)] border",{variants:{variant:{success:"bg-[var(--color-green-200)] border-[rgba(113,212,129,0.25)]",error:"bg-[var(--color-red-200)] border-[rgba(251,96,96,0.19)]",warning:"bg-[#fef3c7] border-[rgba(251,191,36,0.25)]",info:"bg-[rgba(21,177,205,0.07)] border-[rgba(21,177,205,0.19)]"}},defaultVariants:{variant:"info"}}),St=b("text-[13px] font-semibold mb-0.5",{variants:{variant:{success:"text-[var(--color-green-1000)]",error:"text-[var(--color-red-1000)]",warning:"text-[#92400e]",info:"text-[var(--color-blue-800)]"}}}),Zd=b("text-[12px] leading-[1.4]",{variants:{variant:{success:"text-[rgba(26,122,58,0.8)]",error:"text-[rgba(251,96,96,0.8)]",warning:"text-[rgba(146,64,14,0.8)]",info:"text-[rgba(21,177,205,0.8)]"}}}),Xd={success:e.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),e.jsx("path",{d:"m9 11 3 3L22 4"})]}),error:e.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),e.jsx("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})]}),warning:e.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),e.jsx("path",{d:"M12 9v4"}),e.jsx("path",{d:"M12 17h.01"})]}),info:e.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M12 16v-4"}),e.jsx("path",{d:"M12 8h.01"})]})},aa=j.forwardRef(({className:r,variant:t="info",title:o,body:a,icon:n,dismissible:s,onDismiss:l,...c},d)=>{const x=n??Xd[t];return e.jsxs("div",{ref:d,className:y(Kd({variant:t}),r),role:"alert",...c,children:[e.jsx("span",{className:y(St({variant:t}),"shrink-0 mt-0.5"),children:x}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:St({variant:t}),children:o}),a&&e.jsx("div",{className:Zd({variant:t}),children:a})]}),s&&l&&e.jsx("button",{onClick:l,className:"shrink-0 p-1 bg-transparent border-none cursor-pointer opacity-60 hover:opacity-100 transition-opacity","aria-label":"Dismiss",children:e.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M18 6 6 18"}),e.jsx("path",{d:"m6 6 12 12"})]})})]})});aa.displayName="Banner";const na=j.forwardRef(({className:r,label:t,description:o,children:a,...n},s)=>e.jsxs("div",{ref:s,className:y("flex gap-4 py-[11px] px-4 items-center border-b border-[var(--color-gray-100)]",r),...n,children:[e.jsxs("div",{className:"flex-[0_0_160px]",children:[e.jsx("span",{className:"text-[13px] font-medium text-[var(--color-gray-1000)]",children:t}),o&&e.jsx("span",{className:"text-[11px] text-[var(--color-gray-600)] ml-1",children:o})]}),e.jsx("div",{className:"flex-1",children:a})]}));na.displayName="FieldRow";const sa=j.forwardRef(({className:r,sections:t,activeId:o,onSelect:a,...n},s)=>e.jsx("div",{ref:s,className:y("w-[180px] border border-[var(--color-gray-200)] rounded-[var(--archie-radius-xl)] overflow-hidden bg-[var(--color-white)]",r),...n,children:e.jsx("div",{className:"py-2",children:t.map(({category:l,items:c})=>e.jsxs("div",{children:[e.jsx("div",{className:"px-3 py-1.5 text-[9px] font-bold uppercase tracking-[0.1em] text-[var(--color-gray-600)]",children:l}),c.map(({id:d,label:x,icon:p})=>e.jsxs("button",{onClick:()=>a(d),className:y("w-full px-3 py-1.5 flex items-center gap-2 text-left text-[12px] border-l-2 cursor-pointer transition-colors duration-150 bg-transparent border-t-0 border-r-0 border-b-0",o===d?"bg-[rgba(21,177,205,0.07)] border-l-[var(--color-blue-800)] text-[var(--color-blue-800)] font-semibold":"border-l-transparent text-[var(--color-gray-800)] font-normal hover:bg-[var(--color-gray-50)]"),children:[p&&e.jsx("span",{className:"shrink-0 flex items-center",children:p}),x]},d))]},l))})}));sa.displayName="SettingsNav";const la=j.forwardRef(({className:r,title:t,description:o,children:a,onSave:n,dirty:s,saveLabel:l="Save changes",...c},d)=>e.jsxs("div",{ref:d,className:y("bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[var(--archie-radius-xl)] overflow-hidden",r),...c,children:[e.jsxs("div",{className:"px-5 py-4 border-b border-[var(--color-gray-100)]",children:[e.jsx("div",{className:"text-[13px] font-bold text-[var(--color-gray-1000)]",children:t}),o&&e.jsx("div",{className:"text-[12px] text-[var(--color-gray-600)] mt-0.5",children:o})]}),e.jsx("div",{className:"px-5",children:a}),n&&e.jsxs("div",{className:"px-5 py-3 border-t border-[var(--color-gray-100)] flex items-center gap-2.5",children:[e.jsx("button",{onClick:n,disabled:!s,className:y("px-3.5 py-1.5 rounded-[6px] text-[13px] font-semibold border-none cursor-pointer transition-all duration-150",s?"bg-[var(--color-blue-1000)] text-[var(--color-white)] hover:opacity-90":"bg-[var(--color-gray-100)] text-[var(--color-gray-600)] cursor-default"),children:l}),s&&e.jsx("span",{className:"text-[12px] text-[var(--color-gray-600)]",children:"Unsaved changes"})]})]}));la.displayName="SettingsSectionCard";const kt="Geist Mono, ui-monospace, monospace";function qd({items:r,columns:t=4}){const o=t===2?"grid-cols-2":t===3?"grid-cols-3":"grid-cols-4";return e.jsx("div",{className:`grid ${o} gap-3`,children:r.map((a,n)=>e.jsxs("div",{className:"bg-[var(--color-bg-primary)] border border-[var(--color-border-default)] rounded-xl p-[18px_20px] flex flex-col gap-1.5",children:[e.jsx("div",{className:"text-[10px] font-bold uppercase tracking-[0.08em] text-[var(--color-text-tertiary)]",children:a.label}),e.jsx("div",{className:"text-[22px] font-light text-[var(--color-text-primary)] leading-none",style:{fontFamily:kt,fontVariantNumeric:"tabular-nums",letterSpacing:"-0.02em"},children:a.value}),a.delta&&e.jsx("div",{className:"text-[11px] font-semibold",style:{fontFamily:kt,color:a.deltaDir==="up"?"var(--dl-data-positive)":a.deltaDir==="down"?"var(--dl-data-negative)":a.deltaDir==="warning"?"var(--dl-data-warning)":"var(--dl-data-neutral)"},children:a.delta})]},n))})}const Nt="Geist Mono, ui-monospace, monospace",Jd={up:"var(--dl-data-positive)",down:"var(--dl-data-negative)",flat:"var(--dl-data-neutral)",warning:"var(--dl-data-warning)"};function Qd({label:r,value:t,delta:o,deltaDir:a}){return e.jsxs("div",{style:{background:"var(--color-bg-primary)",border:"1px solid var(--color-border-default)",borderRadius:12,padding:"18px 20px",display:"flex",flexDirection:"column",gap:6},children:[e.jsx("div",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary)"},children:r}),e.jsx("div",{style:{fontSize:28,fontWeight:300,color:"var(--color-text-primary)",lineHeight:1,fontFamily:Nt,fontVariantNumeric:"tabular-nums",letterSpacing:"-0.02em"},children:t}),o&&e.jsx("div",{style:{fontSize:12,fontWeight:600,fontFamily:Nt,color:Jd[a??"flat"]??"var(--dl-data-neutral)"},children:o})]})}const e0="Geist Mono, ui-monospace, monospace",r0={up:"var(--dl-data-positive)",down:"var(--dl-data-negative)",flat:"var(--dl-data-neutral)"};function t0({label:r,value:t,trend:o,delta:a}){return e.jsxs("div",{style:{background:"var(--color-bg-primary)",border:"1px solid var(--color-border-default)",borderRadius:10,padding:"14px 16px",display:"flex",flexDirection:"column",gap:4},children:[e.jsx("div",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary)"},children:r}),e.jsx("div",{style:{fontSize:22,fontWeight:400,color:"var(--color-text-primary)",lineHeight:1,fontFamily:e0,fontVariantNumeric:"tabular-nums"},children:t}),a&&e.jsx("div",{style:{fontSize:11,color:o?r0[o]??"var(--dl-data-neutral)":"var(--color-text-tertiary)"},children:a})]})}const dr="Geist Mono, ui-monospace, monospace";function o0({row:r,columns:t}){const o=r.variant==="grand-total",a=o?"#022e40":"var(--color-bg-secondary, #f9fafb)",n=o?"#ffffff":"var(--color-text-primary, #000626)",s=o?"rgba(255,255,255,0.65)":"var(--color-text-secondary, #595f7a)";return e.jsx("tr",{style:{background:a,borderTop:o?"none":"1px solid var(--color-border-default, #e5e7eb)"},children:t.map((l,c)=>{const d=c===0,x=d?r.label:r.values[l.key]??"—",p=d||c===1?n:s;return e.jsx("td",{style:{padding:"10px 16px",textAlign:l.align==="right"?"right":"left",fontSize:o?14:13,fontWeight:o?700:600,color:p,fontFamily:l.mono||!d?dr:void 0,fontVariantNumeric:"tabular-nums"},children:x},l.key)})})}function a0({columns:r,groups:t,rows:o,totals:a}){return e.jsx("div",{className:"border border-[var(--color-border-default,#e5e7eb)] rounded-lg overflow-hidden",children:e.jsxs("table",{className:"w-full",style:{borderCollapse:"collapse"},children:[e.jsx("thead",{children:e.jsx("tr",{children:r.map(n=>e.jsx("th",{style:{padding:"9px 16px",textAlign:n.align==="right"?"right":n.align==="center"?"center":"left",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)",background:"var(--color-bg-secondary, #f9fafb)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)"},children:n.label},n.key))})}),e.jsxs("tbody",{children:[o==null?void 0:o.map((n,s)=>e.jsx("tr",{style:{background:"var(--color-bg-primary, #fff)",borderBottom:"1px solid var(--color-border-light, #f3f4f6)"},children:r.map((l,c)=>e.jsx("td",{style:{padding:"10px 16px",textAlign:l.align==="right"?"right":"left",fontSize:13,color:c===0?"var(--color-text-primary, #000626)":"var(--color-text-secondary, #595f7a)",fontFamily:l.mono?dr:void 0,fontVariantNumeric:l.mono?"tabular-nums":void 0},children:String(n[l.key]??"—")},l.key))},s)),t==null?void 0:t.map((n,s)=>e.jsxs(j.Fragment,{children:[e.jsx("tr",{style:{background:"var(--color-bg-secondary, #f9fafb)",borderTop:s>0?"1px solid var(--color-border-default, #e5e7eb)":void 0,borderBottom:"1px solid var(--color-border-default, #e5e7eb)"},children:e.jsxs("td",{colSpan:r.length,style:{padding:"7px 16px",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)"},children:[n.label,n.count!=null&&e.jsx("span",{style:{marginLeft:8,padding:"1px 6px",borderRadius:9999,fontSize:10,fontWeight:600,background:"var(--color-gray-200, #e5e7eb)",color:"var(--color-text-tertiary, #8c92af)"},children:n.count})]})}),n.rows.map((l,c)=>e.jsx("tr",{style:{background:"var(--color-bg-primary, #fff)",borderBottom:c<n.rows.length-1?"1px solid var(--color-border-light, #f3f4f6)":void 0},children:r.map((d,x)=>e.jsx("td",{style:{padding:"10px 16px",paddingLeft:x===0?24:16,textAlign:d.align==="right"?"right":"left",fontSize:13,color:x===0?"var(--color-text-secondary, #595f7a)":"var(--color-text-primary, #000626)",fontFamily:d.mono?dr:void 0,fontVariantNumeric:d.mono?"tabular-nums":void 0},children:String(l[d.key]??"—")},d.key))},c)),n.subtotal&&e.jsx("tr",{style:{background:"var(--color-bg-secondary, #f9fafb)",borderTop:"1px solid var(--color-border-default, #e5e7eb)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)"},children:r.map((l,c)=>e.jsx("td",{style:{padding:"9px 16px",textAlign:l.align==="right"?"right":"left",fontSize:c===0?11:13,fontWeight:600,textTransform:c===0?"uppercase":void 0,letterSpacing:c===0?"0.04em":void 0,color:c===0?"var(--color-text-tertiary, #8c92af)":"var(--color-text-primary, #000626)",fontFamily:l.mono?dr:void 0,fontVariantNumeric:l.mono?"tabular-nums":void 0},children:String(n.subtotal[l.key]??(c===0?"Subtotal":"—"))},l.key))})]},s)),a==null?void 0:a.map((n,s)=>e.jsx(o0,{row:n,columns:r},s))]})]})})}const n0="Geist Mono, ui-monospace, monospace";function s0({columns:r,rows:t}){return e.jsx("div",{className:"border border-[var(--color-border-default,#e5e7eb)] rounded-lg overflow-hidden",children:e.jsxs("table",{className:"w-full",style:{borderCollapse:"collapse"},children:[e.jsx("thead",{children:e.jsx("tr",{children:r.map(o=>e.jsx("th",{style:{padding:"9px 16px",textAlign:o.align==="right"?"right":o.align==="center"?"center":"left",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)",background:"var(--color-bg-secondary, #f9fafb)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)"},children:o.label},o.key))})}),e.jsx("tbody",{children:t.map((o,a)=>e.jsx("tr",{style:{background:"var(--color-bg-primary, #fff)",borderBottom:a<t.length-1?"1px solid var(--color-border-light, #f3f4f6)":void 0},children:r.map((n,s)=>e.jsx("td",{style:{padding:"10px 16px",textAlign:n.align==="right"?"right":n.align==="center"?"center":"left",fontSize:13,color:s===0?"var(--color-text-primary, #000626)":"var(--color-text-secondary, #595f7a)",fontFamily:n.mono?n0:void 0,fontVariantNumeric:n.mono?"tabular-nums":void 0},children:String(o[n.key]??"—")},n.key))},a))})]})})}const l0="Geist Mono, ui-monospace, monospace";function i0({rowLabel:r,columns:t,rows:o}){return e.jsx("div",{className:"border border-[var(--color-border-default,#e5e7eb)] rounded-lg overflow-hidden",children:e.jsxs("table",{className:"w-full",style:{borderCollapse:"collapse"},children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{style:{padding:"9px 16px",textAlign:"left",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)",background:"var(--color-bg-secondary, #f9fafb)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)",whiteSpace:"nowrap"},children:r}),t.map(a=>e.jsx("th",{style:{padding:"9px 16px",textAlign:"right",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:a.highlight?"#022e40":"var(--color-text-tertiary, #8c92af)",background:a.highlight?"#f0f9ff":"var(--color-bg-secondary, #f9fafb)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)",whiteSpace:"nowrap"},children:a.label},a.key))]})}),e.jsx("tbody",{children:(o??[]).map((a,n)=>e.jsxs("tr",{style:{background:"var(--color-bg-primary, #fff)",borderBottom:n<(o??[]).length-1?"1px solid var(--color-border-light, #f3f4f6)":void 0},children:[e.jsx("td",{style:{padding:"10px 16px",fontSize:13,color:"var(--color-text-primary, #000626)"},children:String(a.account??"")}),t.map(s=>e.jsx("td",{style:{padding:"10px 16px",textAlign:"right",fontSize:13,fontFamily:l0,fontVariantNumeric:"tabular-nums",color:s.highlight?"var(--color-text-primary, #000626)":"var(--color-text-secondary, #595f7a)",background:s.highlight?"#f0f9ff":void 0},children:String(a[s.key]??"—")},s.key))]},n))})]})})}const zt={draft:{bg:"var(--color-gray-200, #e5e7eb)",color:"var(--color-text-secondary, #595f7a)",label:"Draft"},provisional:{bg:"#fef9c3",color:"#854d0e",label:"Provisional"},final:{bg:"#dcfce7",color:"#166534",label:"Final"}};function c0({title:r,subtitle:t,period:o,generatedAt:a,status:n}){const s=zt[n??""]??zt.draft;return e.jsxs("div",{className:"flex items-start justify-between gap-4",style:{padding:"20px 24px",background:"var(--color-bg-primary, #fff)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)"},children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("h1",{style:{margin:0,fontSize:20,fontWeight:700,color:"var(--color-text-primary, #000626)",lineHeight:1.25},children:r}),t&&e.jsx("p",{style:{margin:0,fontSize:13,color:"var(--color-text-secondary, #595f7a)"},children:t}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginTop:4},children:[o&&e.jsx("span",{style:{fontSize:12,color:"var(--color-text-tertiary, #8c92af)"},children:o}),o&&a&&e.jsx("span",{style:{fontSize:12,color:"#e5e7eb"},children:"·"}),a&&e.jsxs("span",{style:{fontSize:12,color:"var(--color-text-tertiary, #8c92af)"},children:["Generated ",a]})]})]}),n&&e.jsx("span",{style:{padding:"3px 10px",borderRadius:9999,fontSize:11,fontWeight:600,background:s.bg,color:s.color,whiteSpace:"nowrap",flexShrink:0},children:s.label})]})}function d0({period:r,prevPeriod:t,nextPeriod:o,actions:a}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,padding:"8px 16px",background:"var(--color-bg-secondary, #f9fafb)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)",flexWrap:"wrap"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[t&&e.jsxs("button",{style:{padding:"4px 10px",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6,background:"#fff",color:"var(--color-text-secondary, #595f7a)",fontSize:12,cursor:"pointer"},children:["← ",t]}),e.jsx("span",{style:{padding:"4px 12px",border:"1px solid #022e40",borderRadius:6,background:"#f0f9ff",color:"#022e40",fontSize:12,fontWeight:600},children:r}),o&&e.jsxs("button",{style:{padding:"4px 10px",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6,background:"#fff",color:"var(--color-text-secondary, #595f7a)",fontSize:12,cursor:"pointer"},children:[o," →"]})]}),a&&a.length>0&&e.jsx("div",{style:{display:"flex",alignItems:"center",gap:6},children:a.map((n,s)=>e.jsx("button",{style:{padding:"5px 14px",border:n.variant==="primary"?"none":"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6,background:n.variant==="primary"?"#022e40":"#fff",color:n.variant==="primary"?"#fff":"var(--color-text-secondary, #595f7a)",fontSize:12,fontWeight:500,cursor:"pointer"},children:n.label},s))})]})}function p0({periods:r,activePeriod:t,compareEnabled:o}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 16px",background:"var(--color-bg-secondary, #f9fafb)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)",flexWrap:"wrap"},children:[e.jsx("div",{style:{display:"flex",alignItems:"center",gap:2,padding:2,background:"var(--color-gray-100, #f3f4f6)",borderRadius:8,border:"1px solid var(--color-border-light, #f3f4f6)"},children:(r??[]).map(a=>{const n=a.id===t;return e.jsx("button",{style:{padding:"4px 12px",borderRadius:6,border:"none",background:n?"#fff":"transparent",color:n?"var(--color-text-primary, #000626)":"var(--color-text-tertiary, #8c92af)",fontSize:12,fontWeight:n?600:400,cursor:"pointer",boxShadow:n?"0 1px 2px rgba(0,0,0,0.08)":"none"},children:a.label},a.id)})}),o!=null&&e.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,cursor:"pointer",fontSize:12,color:"var(--color-text-secondary, #595f7a)"},children:[e.jsx("span",{style:{display:"inline-flex",width:28,height:16,borderRadius:9999,background:o?"#022e40":"var(--color-gray-300, #d1d5db)",alignItems:"center",padding:"0 2px"},children:e.jsx("span",{style:{width:12,height:12,borderRadius:"50%",background:"#fff",transform:o?"translateX(12px)":"translateX(0)",transition:"transform 0.15s"}})}),"Compare to previous"]})]})}function x0({title:r,body:t,actions:o}){return e.jsxs("div",{style:{background:"var(--color-bg-primary, #fff)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:12,padding:"20px 24px",display:"flex",flexDirection:"column",gap:12},children:[r&&e.jsx("h3",{style:{margin:0,fontSize:15,fontWeight:600,color:"var(--color-text-primary, #000626)"},children:r}),t&&e.jsx("p",{style:{margin:0,fontSize:13,lineHeight:1.6,color:"var(--color-text-secondary, #595f7a)"},children:t}),o&&o.length>0&&e.jsx("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:o.map((a,n)=>e.jsx("button",{style:{padding:"6px 16px",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:8,background:"var(--color-bg-secondary, #f9fafb)",color:"var(--color-text-primary, #000626)",fontSize:13,fontWeight:500,cursor:"pointer"},children:a.label},n))})]})}function f0({title:r,description:t,children:o}){return e.jsxs("div",{style:{background:"var(--color-bg-primary, #fff)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:12,overflow:"hidden"},children:[(r||t)&&e.jsxs("div",{style:{padding:"14px 20px",borderBottom:"1px solid var(--color-border-default, #e5e7eb)",background:"var(--color-bg-secondary, #f9fafb)"},children:[r&&e.jsx("h3",{style:{margin:0,fontSize:14,fontWeight:600,color:"var(--color-text-primary, #000626)"},children:r}),t&&e.jsx("p",{style:{margin:r?"2px 0 0":0,fontSize:12,color:"var(--color-text-tertiary, #8c92af)"},children:t})]}),o&&e.jsx("div",{style:{padding:20},children:o})]})}const u0={Active:{bg:"#dcfce7",color:"#15803d"},Inactive:{bg:"var(--color-gray-100, #f3f4f6)",color:"var(--color-text-tertiary, #8c92af)"},Pending:{bg:"#fef9c3",color:"#d97706"},Suspended:{bg:"#fee2e2",color:"#dc2626"}};function g0({name:r,type:t,status:o,meta:a}){const n=u0[o??""]??{bg:"var(--color-gray-100, #f3f4f6)",color:"var(--color-text-secondary, #595f7a)"};return e.jsxs("div",{style:{background:"var(--color-bg-primary, #fff)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:12,padding:"16px 20px",display:"flex",flexDirection:"column",gap:12},children:[e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:8},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[e.jsx("span",{style:{fontSize:15,fontWeight:600,color:"var(--color-text-primary, #000626)"},children:r}),t&&e.jsx("span",{style:{fontSize:12,color:"var(--color-text-tertiary, #8c92af)"},children:t})]}),o&&e.jsx("span",{style:{padding:"3px 10px",borderRadius:9999,fontSize:11,fontWeight:600,background:n.bg,color:n.color,flexShrink:0},children:o})]}),a&&a.length>0&&e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gap:"8px 16px",paddingTop:8,borderTop:"1px solid var(--color-border-light, #f3f4f6)"},children:a.map((s,l)=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[e.jsx("span",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--color-text-tertiary, #8c92af)"},children:s.label}),e.jsx("span",{style:{fontSize:13,color:"var(--color-text-primary, #000626)"},children:s.value})]},l))})]})}function m0({gap:r=4,direction:t="vertical",children:o}){return e.jsx("div",{style:{display:"flex",flexDirection:t==="horizontal"?"row":"column",gap:r*4,width:"100%"},children:o})}function h0({columns:r=2,gap:t=4,children:o}){return e.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${r}, 1fr)`,gap:t*4,width:"100%"},children:o})}const Tt={info:{bg:"var(--color-blue-50, #eff6ff)",border:"var(--color-blue-200, #bfdbfe)",titleColor:"#1e40af",msgColor:"#3b82f6",icon:"ℹ"},success:{bg:"#f0fdf4",border:"#bbf7d0",titleColor:"#166534",msgColor:"#16a34a",icon:"✓"},warning:{bg:"#fefce8",border:"#fde68a",titleColor:"#854d0e",msgColor:"#d97706",icon:"⚠"},error:{bg:"#fef2f2",border:"#fecaca",titleColor:"#991b1b",msgColor:"#dc2626",icon:"✕"}};function b0({variant:r="info",title:t,message:o,action:a}){const n=Tt[r]??Tt.info;return e.jsxs("div",{style:{display:"flex",gap:12,padding:"12px 16px",background:n.bg,border:`1px solid ${n.border}`,borderRadius:10,alignItems:"flex-start"},children:[e.jsx("span",{style:{fontSize:14,color:n.msgColor,flexShrink:0,marginTop:1},children:n.icon}),e.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[e.jsx("span",{style:{fontSize:13,fontWeight:600,color:n.titleColor},children:t}),o&&e.jsx("span",{style:{fontSize:12,color:n.msgColor},children:o})]}),a&&e.jsx("button",{style:{padding:"4px 12px",border:`1px solid ${n.border}`,borderRadius:6,background:"transparent",color:n.titleColor,fontSize:12,fontWeight:500,cursor:"pointer",flexShrink:0},children:a.label})]})}const $t={success:{bg:"var(--dl-data-positive-bg, #dcfce7)",color:"var(--dl-data-positive)"},warning:{bg:"var(--dl-data-warning-bg, #fef9c3)",color:"var(--dl-data-warning)"},error:{bg:"var(--dl-data-negative-bg, #fee2e2)",color:"var(--dl-data-negative)"},info:{bg:"var(--color-blue-50, #eff6ff)",color:"#1d4ed8"},neutral:{bg:"var(--color-gray-100, #f3f4f6)",color:"var(--color-text-secondary, #595f7a)"}};function v0({label:r,variant:t="neutral"}){const o=$t[t]??$t.neutral;return e.jsx("span",{style:{display:"inline-flex",alignItems:"center",padding:"3px 10px",borderRadius:9999,fontSize:11,fontWeight:600,background:o.bg,color:o.color,whiteSpace:"nowrap"},children:r})}function y0({title:r,description:t,action:o}){return e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:"48px 24px",textAlign:"center"},children:[e.jsx("div",{style:{width:40,height:40,borderRadius:"50%",background:"var(--color-bg-secondary, #f9fafb)",border:"1px solid var(--color-border-default, #e5e7eb)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:18,color:"var(--color-text-tertiary, #8c92af)"},children:"○"}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[e.jsx("h3",{style:{margin:0,fontSize:15,fontWeight:600,color:"var(--color-text-primary, #000626)"},children:r}),t&&e.jsx("p",{style:{margin:0,fontSize:13,color:"var(--color-text-secondary, #595f7a)",maxWidth:360},children:t})]}),o&&e.jsx("button",{style:{padding:"8px 20px",border:"none",borderRadius:8,background:"#022e40",color:"#ffffff",fontSize:13,fontWeight:600,cursor:"pointer"},children:o.label})]})}function j0({value:r,label:t}){const o=Math.min(100,Math.max(0,r));return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[t&&e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:12,color:"var(--color-text-secondary, #595f7a)"},children:[e.jsx("span",{children:t}),e.jsxs("span",{style:{fontWeight:600,color:"var(--color-text-primary, #000626)"},children:[o,"%"]})]}),e.jsx("div",{style:{height:6,background:"var(--color-gray-200, #e5e7eb)",borderRadius:9999,overflow:"hidden"},children:e.jsx("div",{style:{height:"100%",width:`${o}%`,background:"#022e40",borderRadius:9999,transition:"width 0.3s ease"}})})]})}const Lt={running:{bg:"#eff6ff",color:"#1d4ed8",label:"Running"},paused:{bg:"#fef9c3",color:"#d97706",label:"Paused"},completed:{bg:"#dcfce7",color:"#15803d",label:"Done"},failed:{bg:"#fee2e2",color:"#dc2626",label:"Failed"},pending:{bg:"var(--color-gray-100, #f3f4f6)",color:"var(--color-text-secondary, #595f7a)",label:"Pending"}};function w0({name:r,status:t,progressPct:o,currentStep:a,completedSteps:n,totalSteps:s,clientName:l}){const c=Lt[t]??Lt.pending,d=Math.min(100,Math.max(0,o??0));return e.jsxs("div",{style:{background:"var(--color-bg-primary, #fff)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:12,padding:"16px 20px",display:"flex",flexDirection:"column",gap:12},children:[e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:8},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[e.jsx("span",{style:{fontSize:14,fontWeight:600,color:"var(--color-text-primary, #000626)"},children:r}),l&&e.jsx("span",{style:{fontSize:12,color:"var(--color-text-tertiary, #8c92af)"},children:l})]}),e.jsx("span",{style:{padding:"3px 10px",borderRadius:9999,fontSize:11,fontWeight:600,background:c.bg,color:c.color,flexShrink:0},children:c.label})]}),o!=null&&e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:12,color:"var(--color-text-secondary, #595f7a)"},children:[a&&e.jsx("span",{children:a}),n!=null&&s!=null&&e.jsxs("span",{style:{fontWeight:600},children:[n,"/",s," steps"]})]}),e.jsx("div",{style:{height:4,background:"var(--color-gray-200, #e5e7eb)",borderRadius:9999,overflow:"hidden"},children:e.jsx("div",{style:{height:"100%",width:`${d}%`,background:t==="failed"?"#dc2626":"#022e40",borderRadius:9999}})})]})]})}const Mt={pending:{bg:"var(--color-gray-100, #f3f4f6)",color:"var(--color-text-secondary, #595f7a)"},running:{bg:"#eff6ff",color:"#1d4ed8"},done:{bg:"#dcfce7",color:"#15803d"},failed:{bg:"#fee2e2",color:"#dc2626"},skipped:{bg:"var(--color-gray-100, #f3f4f6)",color:"var(--color-text-tertiary, #8c92af)"},awaiting_approval:{bg:"#fef9c3",color:"#d97706"}},C0={data_extraction:"Extraction",analysis:"Analysis",document_creation:"Document",api_call:"API",human_review:"Review",notification:"Notify"};function S0({name:r,status:t,type:o,outputSummary:a}){const n=Mt[t]??Mt.pending,s=C0[o??""]??o??"Task";return e.jsxs("div",{style:{background:"var(--color-bg-primary, #fff)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:10,padding:"12px 16px",display:"flex",flexDirection:"column",gap:6},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx("span",{style:{padding:"2px 7px",borderRadius:5,fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em",background:"var(--color-bg-secondary, #f9fafb)",color:"var(--color-text-tertiary, #8c92af)",flexShrink:0},children:s}),e.jsx("span",{style:{fontSize:13,fontWeight:500,color:"var(--color-text-primary, #000626)"},children:r})]}),e.jsx("span",{style:{padding:"2px 8px",borderRadius:9999,fontSize:11,fontWeight:600,background:n.bg,color:n.color,flexShrink:0},children:t})]}),a&&e.jsx("p",{style:{margin:0,fontSize:12,color:"var(--color-text-secondary, #595f7a)",paddingLeft:2},children:a})]})}function k0({title:r,description:t,context:o,approveLabel:a,rejectLabel:n}){return e.jsxs("div",{style:{background:"var(--color-bg-primary, #fff)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:12,padding:"20px 24px",display:"flex",flexDirection:"column",gap:16},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[e.jsx("h3",{style:{margin:0,fontSize:15,fontWeight:600,color:"var(--color-text-primary, #000626)"},children:r}),t&&e.jsx("p",{style:{margin:0,fontSize:13,color:"var(--color-text-secondary, #595f7a)"},children:t})]}),o&&e.jsx("div",{style:{padding:"10px 14px",background:"var(--color-bg-secondary, #f9fafb)",borderRadius:8,border:"1px solid var(--color-border-light, #f3f4f6)",fontSize:12,color:"var(--color-text-secondary, #595f7a)",fontFamily:"Geist Mono, ui-monospace, monospace"},children:o}),e.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:[n&&e.jsx("button",{style:{padding:"8px 20px",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:8,background:"var(--color-bg-primary, #fff)",color:"var(--color-text-secondary, #595f7a)",fontSize:13,fontWeight:500,cursor:"pointer"},children:n}),e.jsx("button",{style:{padding:"8px 20px",border:"none",borderRadius:8,background:"#022e40",color:"#ffffff",fontSize:13,fontWeight:600,cursor:"pointer"},children:a})]})]})}const At={up:{bg:"var(--dl-data-positive-bg, #dcfce7)",color:"var(--dl-data-positive)"},down:{bg:"var(--dl-data-negative-bg, #fee2e2)",color:"var(--dl-data-negative)"},flat:{bg:"var(--color-gray-100, #f3f4f6)",color:"var(--dl-data-neutral)"},warning:{bg:"var(--dl-data-warning-bg, #fef9c3)",color:"var(--dl-data-warning)"}};function N0({value:r,direction:t}){const o=At[t??"flat"]??At.flat;return e.jsx("span",{style:{display:"inline-flex",alignItems:"center",padding:"2px 8px",borderRadius:9999,fontSize:11,fontWeight:600,fontFamily:"Geist Mono, ui-monospace, monospace",background:o.bg,color:o.color,whiteSpace:"nowrap"},children:r})}const z0={up:"var(--dl-data-positive)",down:"var(--dl-data-negative)",flat:"var(--dl-data-neutral)"},T0="Geist Mono, ui-monospace, monospace";function $0({items:r}){return e.jsx("div",{style:{display:"flex",alignItems:"stretch",background:"var(--color-bg-secondary, #f9fafb)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:8,overflow:"hidden"},children:r.map((t,o)=>e.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,padding:"12px 16px",borderLeft:o>0?"1px solid var(--color-border-default, #e5e7eb)":void 0},children:[e.jsx("span",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)"},children:t.label}),e.jsx("span",{style:{fontSize:16,fontWeight:600,fontFamily:T0,fontVariantNumeric:"tabular-nums",color:z0[t.direction??"flat"]??"var(--dl-data-neutral)"},children:t.value})]},o))})}const Rt={default:{bg:"#ffffff",border:"var(--color-border-default, #e5e7eb)"},highlighted:{bg:"var(--color-bg-secondary, #f9fafb)",border:"var(--color-border-default, #e5e7eb)"},audit:{bg:"#fffbeb",border:"#fde68a"}};function L0({content:r,author:t,authorRole:o,date:a,sectionLabel:n,expandable:s,defaultExpanded:l=!0,variant:c="default",className:d}){const[x,p]=j.useState(l),f=Rt[c]??Rt.default,u=s&&r.length>200&&!x;return e.jsxs("div",{className:d,style:{display:"flex",flexDirection:"column",gap:8,padding:"14px 16px",background:f.bg,border:`1px solid ${f.border}`,borderRadius:10},children:[n&&e.jsx("span",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)"},children:n}),e.jsx("p",{style:{fontSize:13,lineHeight:1.6,color:"var(--color-text-primary, #000626)",margin:0,...u?{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"}:{}},children:r}),s&&r.length>200&&e.jsx("button",{onClick:()=>p(!x),style:{background:"none",border:"none",cursor:"pointer",fontSize:12,fontWeight:500,color:"var(--dl-data-neutral, #6b7280)",padding:0,textAlign:"left"},children:x?"Show less":"Show more"}),(t||a)&&e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{borderTop:"1px solid var(--color-border-light, #f3f4f6)",margin:"4px 0"}}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[t&&e.jsx("div",{style:{width:24,height:24,borderRadius:"50%",background:"var(--color-gray-200, #e5e7eb)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,fontWeight:600,color:"var(--color-text-secondary, #595f7a)"},children:t.split(" ").map(g=>g[0]).join("").slice(0,2)}),e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[t&&e.jsx("span",{style:{fontSize:12,fontWeight:500,color:"var(--color-text-primary, #000626)"},children:t}),o&&e.jsx("span",{style:{fontSize:11,color:"var(--color-text-tertiary, #8c92af)"},children:o})]})]}),a&&e.jsx("span",{style:{fontSize:11,color:"var(--color-text-tertiary, #8c92af)"},children:a})]})]})]})}function M0({label:r,description:t,sectionNumber:o,children:a,noBorder:n,className:s}){return e.jsxs("section",{className:s,style:{display:"flex",flexDirection:"column",gap:4,...n?{}:{borderTop:"1px solid var(--color-border-default, #e5e7eb)",paddingTop:16}},children:[e.jsxs("h2",{style:{fontSize:13,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-primary, #000626)",margin:0},children:[o&&e.jsx("span",{style:{color:"var(--color-text-tertiary, #8c92af)",marginRight:8},children:o}),r]}),t&&e.jsx("p",{style:{fontSize:13,color:"var(--color-text-secondary, #595f7a)",margin:0},children:t}),a&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:4},children:a})]})}const A0={info:"ℹ",success:"✓",warning:"⚠",error:"✕"},Ft={info:"#1e40af",success:"#166534",warning:"#854d0e",error:"#991b1b"},Bt={info:"#3b82f6",success:"#16a34a",warning:"#d97706",error:"#dc2626"},R0={info:"#eff6ff",success:"#f0fdf4",warning:"#fefce8",error:"#fef2f2"},Dt={info:"#bfdbfe",success:"#bbf7d0",warning:"#fde68a",error:"#fecaca"};function F0({variant:r="info",title:t,message:o,action:a,className:n}){const s=r;return e.jsxs("div",{className:n,style:{display:"flex",gap:12,padding:"12px 16px",background:R0[s],border:`1px solid ${Dt[s]}`,borderRadius:10,alignItems:"flex-start"},children:[e.jsx("span",{style:{fontSize:14,color:Bt[s],flexShrink:0,marginTop:1},children:A0[s]}),e.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[e.jsx("span",{style:{fontSize:13,fontWeight:600,color:Ft[s]},children:t}),o&&e.jsx("span",{style:{fontSize:12,color:Bt[s]},children:o})]}),a&&e.jsx("button",{onClick:a.onClick,style:{padding:"4px 12px",border:`1px solid ${Dt[s]}`,borderRadius:6,background:"transparent",color:Ft[s],fontSize:12,fontWeight:500,cursor:"pointer",flexShrink:0},children:a.label})]})}const B0={month:"Monthly",quarter:"Quarterly",year:"Annual",custom:"Custom"},It={display:"inline-flex",alignItems:"center",justifyContent:"center",width:28,height:28,borderRadius:6,border:"1px solid var(--color-border-default, #e5e7eb)",background:"#fff",color:"var(--color-text-primary, #000626)",cursor:"pointer",flexShrink:0};function D0({current:r,available:t=[],format:o,availableFormats:a=[],onPeriodChange:n,onFormatChange:s,hasPrev:l=!0,hasNext:c=!1,compact:d,className:x}){return e.jsxs("div",{className:x,style:{display:"flex",alignItems:"center",gap:d?4:8,flexWrap:"wrap"},children:[e.jsx("button",{style:{...It,opacity:l?1:.4},disabled:!l,onClick:()=>{if(l&&t.length>1){const p=t.findIndex(f=>f.id===r.id);p>0&&(n==null||n(t[p-1].id))}},"aria-label":"Previous period",children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:e.jsx("path",{d:"M7.5 2L3.5 6L7.5 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),t.length>1?e.jsx("select",{value:r.id,onChange:p=>n==null?void 0:n(p.target.value),style:{border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6,background:"#fff",fontSize:d?12:13,fontWeight:500,padding:d?"4px 8px":"6px 12px",cursor:"pointer",textAlign:"center"},"aria-label":"Select period",children:t.map(p=>e.jsx("option",{value:p.id,children:p.label},p.id))}):e.jsx("span",{style:{fontSize:d?12:13,fontWeight:600,color:"var(--color-text-primary, #000626)",minWidth:80,textAlign:"center"},children:r.label}),e.jsx("button",{style:{...It,opacity:c?1:.4},disabled:!c,onClick:()=>{if(c&&t.length>1){const p=t.findIndex(f=>f.id===r.id);p<t.length-1&&(n==null||n(t[p+1].id))}},"aria-label":"Next period",children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:e.jsx("path",{d:"M4.5 2L8.5 6L4.5 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),a.length>1&&o&&e.jsx("div",{style:{display:"flex",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6,overflow:"hidden"},role:"group","aria-label":"Period format",children:a.map(p=>e.jsx("button",{onClick:()=>s==null?void 0:s(p),"aria-pressed":p===o,style:{padding:d?"4px 8px":"6px 12px",fontSize:d?11:12,fontWeight:p===o?600:400,background:p===o?"var(--color-text-primary, #000626)":"#fff",color:p===o?"#fff":"var(--color-text-secondary, #595f7a)",border:"none",cursor:"pointer"},children:B0[p]??p},p))})]})}function I0({modes:r,activeMode:t,onModeChange:o,variant:a="default",compact:n,className:s}){const l=a==="pills";return e.jsx("div",{className:s,role:"group","aria-label":"Comparison mode",style:{display:"flex",...l?{gap:4}:{border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6,overflow:"hidden"}},children:r.map(c=>{const d=c.id===t,x=n&&c.shortLabel?c.shortLabel:c.label,p={padding:n?"4px 8px":"6px 12px",fontSize:n?11:12,cursor:c.disabled?"not-allowed":"pointer",opacity:c.disabled?.4:1,border:"none",fontWeight:d?600:400,transition:"background 0.15s, color 0.15s"},f=l?d?{background:"var(--color-text-primary, #000626)",color:"#fff",border:"1px solid var(--color-text-primary, #000626)",borderRadius:6}:{background:"#fff",color:"var(--color-text-secondary, #595f7a)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6}:d?{background:"var(--color-text-primary, #000626)",color:"#fff"}:{background:"#fff",color:"var(--color-text-secondary, #595f7a)"};return e.jsx("button",{onClick:()=>!c.disabled&&(o==null?void 0:o(c.id)),"aria-pressed":d,disabled:c.disabled,style:{...p,...f},children:x},c.id)})})}const E0={pdf:{label:"PDF",icon:"⬇"},excel:{label:"Excel",icon:"⬇"},csv:{label:"CSV",icon:"⬇"},print:{label:"Print",icon:"⎙"}};function W0({actions:r,label:t,size:o="md",className:a}){const n=o==="sm";return e.jsxs("div",{className:a,style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[t&&e.jsx("span",{style:{fontSize:12,fontWeight:500,color:"var(--color-text-tertiary, #8c92af)",marginRight:4},children:t}),r.map(s=>{const l=E0[s.format]??{label:s.format,icon:"⬇"};return e.jsxs("button",{onClick:s.onClick,disabled:s.disabled,style:{display:"inline-flex",alignItems:"center",gap:6,padding:n?"4px 8px":"6px 12px",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6,background:"#fff",color:"var(--color-text-secondary, #595f7a)",fontSize:n?11:12,fontWeight:500,cursor:s.disabled?"not-allowed":"pointer",opacity:s.disabled?.4:1},children:[e.jsx("span",{style:{color:"var(--color-text-tertiary, #8c92af)"},children:l.icon}),s.label??l.label]},s.format)})]})}const Et={draft:{label:"Draft",bg:"var(--color-gray-200, #e5e7eb)",color:"var(--color-text-secondary, #595f7a)"},reviewed:{label:"Reviewed",bg:"#fef9c3",color:"#854d0e"},"signed-off":{label:"Signed Off",bg:"#bbf7d0",color:"#166534"},filed:{label:"Filed",bg:"#bfdbfe",color:"#1e40af"}};function P0({firmName:r,preparedBy:t,reviewedBy:o,date:a,reference:n,status:s="draft",className:l}){const c=Et[s]??Et.draft;return e.jsxs("div",{className:l,style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderTop:"1px solid var(--color-border-default, #e5e7eb)",paddingTop:12},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[r&&e.jsx("span",{style:{fontSize:13,fontWeight:600,color:"var(--color-text-primary, #000626)"},children:r}),n&&e.jsx("span",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)"},children:n}),e.jsxs("div",{style:{display:"flex",gap:16,marginTop:4},children:[t&&e.jsxs("span",{style:{fontSize:12,color:"var(--color-text-secondary, #595f7a)"},children:["Prepared by: ",e.jsx("strong",{children:t})]}),o&&e.jsxs("span",{style:{fontSize:12,color:"var(--color-text-secondary, #595f7a)"},children:["Reviewed by: ",e.jsx("strong",{children:o})]}),a&&e.jsx("span",{style:{fontSize:12,color:"var(--color-text-tertiary, #8c92af)"},children:a})]})]}),e.jsx("span",{style:{fontSize:11,fontWeight:600,padding:"3px 10px",borderRadius:999,background:c.bg,color:c.color,whiteSpace:"nowrap"},children:c.label})]})}function V0({footnotes:r,className:t}){return!r||r.length===0?null:e.jsxs("div",{className:t,style:{borderTop:"1px solid var(--color-border-default, #e5e7eb)",paddingTop:16,display:"flex",flexDirection:"column",gap:6},children:[e.jsx("span",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)"},children:"Notes"}),r.map(o=>e.jsxs("div",{style:{display:"flex",gap:8,alignItems:"flex-start"},children:[e.jsxs("span",{style:{fontSize:11,fontWeight:700,color:"#1e40af",minWidth:20,textAlign:"right",fontVariantNumeric:"tabular-nums"},children:["[",o.number,"]"]}),e.jsx("span",{style:{fontSize:12,color:"var(--color-text-secondary, #595f7a)",lineHeight:1.5},children:o.text})]},o.number))]})}function H0({number:r,onClick:t,className:o}){return e.jsxs("sup",{className:o,onClick:()=>t==null?void 0:t(r),title:`Footnote ${r}`,"aria-label":`Footnote ${r}`,style:{fontSize:10,fontWeight:700,color:"#1e40af",cursor:t?"pointer":"default",marginLeft:1},children:["[",r,"]"]})}const Wt={up:"#166534",down:"#dc2626",flat:"#6b7280"};function _0(r){if(r.length<2)return"flat";const t=r[0].value,o=r[r.length-1].value;return o>t?"up":o<t?"down":"flat"}function O0({data:r,direction:t,width:o=80,height:a=24,showLastDot:n=!0,className:s}){if(!r||r.length<2)return null;const l=t??_0(r),c=Wt[l]??Wt.flat,d=r.map(v=>v.value),x=Math.min(...d),f=Math.max(...d)-x||1,u=3,g=d.map((v,w)=>{const N=u+w/(d.length-1)*(o-u*2),L=u+(1-(v-x)/f)*(a-u*2);return`${N},${L}`}).join(" "),m=u+(d.length-1)/(d.length-1)*(o-u*2),h=u+(1-(d[d.length-1]-x)/f)*(a-u*2);return e.jsxs("svg",{className:s,width:o,height:a,viewBox:`0 0 ${o} ${a}`,fill:"none","aria-hidden":"true",children:[e.jsx("polyline",{points:g,stroke:c,strokeWidth:1.5,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),n&&e.jsx("circle",{cx:m,cy:h,r:2.5,fill:c})]})}const le=48,G0=4,Oe=4,U0=24;function Y0(r){if(r<=0)return 100;const t=Math.pow(10,Math.floor(Math.log10(r))),o=r/t;return([1,2,2.5,5,10].find(n=>n>=o)??10)*t}function K0(r,t,o,a,n){const s=Math.min(n,o/2,a/2);return`M${r},${t+a} L${r},${t+s} Q${r},${t} ${r+s},${t} L${r+o-s},${t} Q${r+o},${t} ${r+o},${t+s} L${r+o},${t+a} Z`}function ia({data:r,series:t,height:o=200,formatYTick:a,formatXTick:n,formatTooltipHeader:s,formatTooltipValue:l,referenceLine:c,className:d}){const x=j.useRef(null),[p,f]=j.useState(0);j.useEffect(()=>{const k=x.current;if(!k||typeof ResizeObserver>"u")return;const B=new ResizeObserver(P=>{var V;f(((V=P[0])==null?void 0:V.contentRect.width)??0)});return B.observe(k),()=>B.disconnect()},[]);const[u,g]=j.useState(null);if(!r.length||p===0)return e.jsx("div",{ref:x,"data-testid":"stacked-bar-chart",className:d,style:{width:"100%",height:o}});const m=p-le-G0,h=o-Oe-U0,v=r.length,w=m/v,N=Math.max(8,Math.min(28,Math.floor(w)-4)),L=(w-N)/2,T=r.reduce((k,B)=>{const P=t.reduce((V,H)=>V+Number(B[H.key]??0),0);return Math.max(k,P)},0),C=Y0(Math.max(T,(c==null?void 0:c.value)??0)),z=5,D=Array.from({length:z},(k,B)=>C/(z-1)*B);function $(k){return Oe+h-k/C*h}function F(k){const B=k.currentTarget.closest("svg");if(!B)return;const P=B.getBoundingClientRect(),V=k.clientX-P.left,H=k.clientY-P.top,E=Math.floor((V-le)/w);E>=0&&E<v?g({index:E,mouseX:V,mouseY:H}):u!==null&&g(null)}const S=u!==null?(()=>{const k=r[u.index],B=t.reduce((H,E)=>H+Number(k[E.key]??0),0),P=160,V=u.mouseX+12+P>p?u.mouseX-12-P:u.mouseX+12;return e.jsxs("div",{style:{position:"absolute",left:V,top:Math.max(0,u.mouseY-8),pointerEvents:"none",zIndex:50,background:"#fff",border:"1px solid #e5e7eb",borderRadius:8,boxShadow:"0 4px 12px rgba(0,0,0,0.08)",padding:"8px 12px",fontSize:12,minWidth:140},children:[e.jsx("div",{style:{fontWeight:500,color:"#374151",marginBottom:6},children:s?s(k.x):k.x}),[...t].reverse().map(H=>{const E=Number(k[H.key]??0);return e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:16,marginBottom:2},children:[e.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6,color:"#6b7280"},children:[e.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:H.color,flexShrink:0,display:"inline-block"}}),H.label]}),e.jsx("span",{style:{fontWeight:500,color:"#1f2937",fontVariantNumeric:"tabular-nums"},children:l?l(E):String(E)})]},H.key)}),t.length>1&&e.jsxs("div",{style:{marginTop:6,paddingTop:6,borderTop:"1px solid #f3f4f6",display:"flex",justifyContent:"space-between"},children:[e.jsx("span",{style:{color:"#9ca3af"},children:"Total"}),e.jsx("span",{style:{fontWeight:600,color:"#1f2937",fontVariantNumeric:"tabular-nums"},children:l?l(B):String(B)})]})]})})():null;return e.jsxs("div",{ref:x,"data-testid":"stacked-bar-chart",className:d,style:{position:"relative",width:"100%",height:o},children:[e.jsxs("svg",{width:"100%",height:o,"aria-hidden":"true",children:[D.filter(k=>k>0).map(k=>e.jsx("line",{x1:le,y1:$(k),x2:le+m,y2:$(k),stroke:"#e5e7eb",strokeWidth:1},k)),D.map(k=>e.jsx("text",{x:le-6,y:$(k),textAnchor:"end",dominantBaseline:"middle",fontSize:11,fill:"#9ca3af",children:a?a(k):String(k)},k)),u!==null&&e.jsx("rect",{x:le+u.index*w,y:Oe,width:w,height:h,fill:"rgba(0,0,0,0.04)"}),r.map((k,B)=>{const P=le+B*w+L;let V=-1;for(let E=t.length-1;E>=0;E--)if(Number(k[t[E].key]??0)>0){V=E;break}let H=0;return e.jsx("g",{children:t.map((E,O)=>{const M=Number(k[E.key]??0);if(M<=0)return null;const I=M/C*h,_=$(H+M);return H+=M,O===V?e.jsx("path",{d:K0(P,_,N,I,3),fill:E.color},E.key):e.jsx("rect",{x:P,y:_,width:N,height:I,fill:E.color},E.key)})},k.x)}),r.map((k,B)=>e.jsx("text",{x:le+B*w+w/2,y:Oe+h+14,textAnchor:"middle",fontSize:11,fill:"#9ca3af",children:n?n(k.x):k.x},k.x)),c&&e.jsx("line",{x1:le,y1:$(c.value),x2:le+m,y2:$(c.value),stroke:c.color??"#E24B4A",strokeDasharray:c.strokeDasharray??"4 3",strokeWidth:1.5}),e.jsx("rect",{x:le,y:Oe,width:m,height:h,fill:"transparent",onMouseMove:F,onMouseLeave:()=>g(null)})]}),S]})}function Z0({cells:r,drillRows:t,colCount:o,defaultExpanded:a=!1,onToggle:n,rowClassName:s,drillRowClassName:l}){const[c,d]=j.useState(a),x=()=>{const p=!c;d(p),n==null||n(p)};return e.jsxs(e.Fragment,{children:[e.jsx("tr",{className:s,onClick:x,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),x())},role:"button",tabIndex:0,"aria-expanded":c,style:{cursor:"pointer",background:"#fff"},children:r.map((p,f)=>e.jsx("td",{style:{padding:"10px 16px",fontSize:13,color:f===0?"var(--color-text-primary, #000626)":"var(--color-text-secondary, #595f7a)"},children:f===0?e.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6},children:[e.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",style:{transform:c?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.15s ease-out",flexShrink:0},children:e.jsx("path",{d:"M3 1L7 5L3 9",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})}),p]}):p},f))}),c&&t.map(p=>e.jsx("tr",{className:l,style:{background:"var(--color-bg-secondary, #f9fafb)",borderBottom:"1px solid var(--color-gray-100, #f3f4f6)"},children:p.cells.map((f,u)=>e.jsx("td",{style:{padding:"8px 16px",paddingLeft:u===0?32:16,fontSize:12,color:"var(--color-text-secondary, #595f7a)"},children:f},u))},p.key))]})}const X0=`
123
+ `}),r&&e.jsx("div",{className:"print-header hidden print:block border-b border-[var(--color-gray-200)] pb-3 mb-4",children:r}),e.jsx("div",{className:y(`report-page flex flex-col ${g}`,s),children:n}),t&&e.jsx("div",{className:"print-footer hidden print:block border-t border-[var(--color-gray-200)] pt-3 mt-4 text-[11px] text-[var(--color-gray-600)]",children:t})]})}const Cd="Geist Mono, ui-monospace, monospace",yt=r=>r==="right"?"right":r==="center"?"center":"left";function Sd({columns:r,rows:t,emptyMessage:o="No data",renderMode:a="web",className:n}){const s=a==="pdf",l=a==="excel",i=s||l,d=s?"6px 10px":l?"4px 8px":"10px 16px",x=s?"5px 10px":l?"4px 8px":"9px 16px",p=i?12:13,f=i?9:10;return e.jsx("div",{className:y("border border-[var(--color-gray-200)] overflow-hidden",!l&&"rounded-lg",n),children:e.jsxs("table",{className:"w-full",style:{borderCollapse:"collapse",tableLayout:s?"auto":void 0},children:[e.jsx("thead",{children:e.jsx("tr",{children:r.map(u=>e.jsx("th",{style:{padding:x,textAlign:yt(u.align),fontSize:f,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-gray-600)",background:"var(--color-gray-50)",borderBottom:"1px solid var(--color-gray-200)",whiteSpace:"nowrap"},children:u.label},u.key))})}),e.jsx("tbody",{children:t.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:r.length,style:{padding:"24px 16px",textAlign:"center",fontSize:13,color:"var(--color-gray-600)",background:"var(--color-white)"},children:o})}):t.map((u,g)=>e.jsx("tr",{style:{background:"var(--color-white)",borderBottom:g<t.length-1?"1px solid var(--color-gray-100)":void 0},children:r.map((m,h)=>e.jsx("td",{style:{padding:d,textAlign:yt(m.align),fontSize:p,color:h===0?"var(--color-gray-1000)":"var(--color-gray-800)",fontFamily:m.mono?Cd:void 0,fontVariantNumeric:m.mono?"tabular-nums":void 0,whiteSpace:s&&(h===0||m.mono)?"nowrap":void 0},children:u[m.key]??"—"},m.key))},g))})]})})}const dr="Geist Mono, ui-monospace, monospace",oa=24,aa=34,Ue=r=>r==="right"?"right":r==="center"?"center":"left";function kd({row:r,columns:t,renderMode:o="web"}){const a=r.variant==="grand-total",n=o==="pdf",s=n?11:13,l=n?12:13,i=a?"var(--color-blue-200)":"var(--color-gray-100)",d=a?"var(--color-blue-1000)":"var(--color-gray-1000)",x=a?"2px solid var(--color-blue-800)":"1px solid var(--color-gray-200)";return e.jsx("tr",{style:{background:i,borderTop:x,height:a?n?oa:aa:void 0},children:t.map((p,f)=>{const u=f===0,g=u?r.label:r.values[p.key]??"";return e.jsx("td",{style:{padding:n?"0 10px":"0 16px",textAlign:Ue(p.align),fontSize:a?l:s,fontWeight:a?700:600,color:d,fontFamily:p.mono||!u?dr:void 0,fontVariantNumeric:"tabular-nums",whiteSpace:n?"nowrap":void 0},children:g},p.key)})})}function Nd({columns:r,groups:t,rows:o,totals:a,renderMode:n="web",className:s}){const l=n==="pdf",i=n==="excel",d=l||i,x=l?"6px 10px":i?"4px 8px":"10px 16px",p=l?oa:i?void 0:aa,f=d?12:13,u=d?9:10;return e.jsx("div",{className:y("border border-[var(--color-gray-200)] overflow-hidden",!i&&"rounded-lg",s),children:e.jsxs("table",{className:"w-full",style:{borderCollapse:"collapse",tableLayout:l?"auto":void 0},children:[e.jsx("thead",{children:e.jsx("tr",{style:{height:p},children:r.map(g=>e.jsx("th",{style:{padding:l?"0 10px":i?"4px 8px":"0 16px",textAlign:Ue(g.align),fontSize:u,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-white)",background:"var(--color-blue-1000)",whiteSpace:"nowrap"},children:g.label},g.key))})}),o&&o.length>0&&e.jsx("tbody",{children:o.map((g,m)=>e.jsx("tr",{style:{background:"var(--color-white)",borderBottom:"1px solid var(--color-gray-100)"},children:r.map((h,b)=>e.jsx("td",{style:{padding:x,textAlign:Ue(h.align),fontSize:f,color:"var(--color-gray-1000)",fontFamily:h.mono?dr:void 0,fontVariantNumeric:h.mono?"tabular-nums":void 0,whiteSpace:l&&(b===0||h.mono)?"nowrap":void 0},children:g[h.key]??"—"},h.key))},m))}),t==null?void 0:t.map((g,m)=>e.jsxs("tbody",{style:{pageBreakInside:"avoid",breakInside:"avoid"},children:[e.jsx("tr",{style:{background:"var(--color-blue-800-bg)",borderTop:m>0?"1px solid var(--color-blue-800-subtle)":void 0,borderBottom:"1px solid var(--color-blue-800-subtle)"},children:e.jsxs("td",{colSpan:r.length,style:{padding:d?"5px 10px":"7px 16px",paddingLeft:d?16:24,fontSize:d?9:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-blue-1000)"},children:[g.label,n==="web"&&g.count!=null&&e.jsx("span",{style:{marginLeft:8,padding:"1px 6px",borderRadius:9999,fontSize:10,fontWeight:600,background:"var(--color-blue-800-subtle)",color:"var(--color-blue-1000)"},children:g.count})]})}),g.rows.map((h,b)=>e.jsx("tr",{style:{background:"var(--color-white)",borderBottom:b<g.rows.length-1?"1px solid var(--color-gray-100)":void 0},children:r.map((w,S)=>e.jsx("td",{style:{padding:x,paddingLeft:S===0?d?16:24:void 0,textAlign:Ue(w.align),fontSize:f,color:"var(--color-gray-1000)",fontFamily:w.mono?dr:void 0,fontVariantNumeric:w.mono?"tabular-nums":void 0,whiteSpace:l&&(S===0||w.mono)?"nowrap":void 0},children:h[w.key]??"—"},w.key))},b)),g.subtotal&&e.jsx("tr",{style:{background:"var(--color-gray-100)",borderTop:"1px solid var(--color-gray-200)",borderBottom:"1px solid var(--color-gray-200)"},children:r.map((h,b)=>{const w=g.subtotal[h.key],S=b===0?w??"Subtotal":w??"";return e.jsx("td",{style:{padding:d?"5px 10px":"9px 16px",textAlign:Ue(h.align),fontSize:b===0?d?10:11:f,fontWeight:600,textTransform:b===0?"uppercase":void 0,letterSpacing:b===0?"0.04em":void 0,color:b===0?"var(--color-gray-800)":"var(--color-gray-1000)",fontFamily:h.mono?dr:void 0,fontVariantNumeric:h.mono?"tabular-nums":void 0,whiteSpace:l?"nowrap":void 0},children:S},h.key)})})]},m)),a&&a.length>0&&e.jsx("tfoot",{children:a.map((g,m)=>e.jsx(kd,{row:g,columns:r,renderMode:n},m))})]})})}const jt="Geist Mono, ui-monospace, monospace",Cr="#f0f9ff",zd="var(--color-blue-1000)";function Td({rowLabel:r,columns:t,sections:o,rows:a,renderMode:n="web",className:s}){const l=n==="pdf",i=n==="excel",d=l||i,x=d?"6px 10px":"10px 16px",p=d?"5px 10px":"9px 16px",f=d?12:13,u=d?9:10,g=o?null:a??[];return e.jsx("div",{className:y("border border-[var(--color-gray-200)] overflow-hidden",!i&&"rounded-lg",s),children:e.jsxs("table",{className:"w-full",style:{borderCollapse:"collapse",tableLayout:l?"auto":void 0},children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{style:{padding:p,textAlign:"left",fontSize:u,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-gray-600)",background:"var(--color-gray-50)",borderBottom:"1px solid var(--color-gray-200)",whiteSpace:"nowrap"},children:r}),t.map(m=>e.jsx("th",{style:{padding:p,textAlign:"right",fontSize:u,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:m.highlight?zd:"var(--color-gray-600)",background:m.highlight?Cr:"var(--color-gray-50)",borderBottom:"1px solid var(--color-gray-200)",whiteSpace:"nowrap"},children:m.label},m.key))]})}),e.jsxs("tbody",{children:[g==null?void 0:g.map((m,h)=>e.jsxs("tr",{style:{background:"var(--color-white)",borderBottom:h<g.length-1?"1px solid var(--color-gray-100)":void 0},children:[e.jsx("td",{style:{padding:x,fontSize:f,color:"var(--color-gray-1000)",whiteSpace:l?"nowrap":void 0},children:m.account??m.label??""}),t.map(b=>e.jsx("td",{style:{padding:x,textAlign:"right",fontSize:f,fontFamily:jt,fontVariantNumeric:"tabular-nums",color:b.highlight?"var(--color-gray-1000)":"var(--color-gray-800)",background:b.highlight?Cr:void 0,whiteSpace:l?"nowrap":void 0},children:m[b.key]??"—"},b.key))]},h)),o==null?void 0:o.map((m,h)=>e.jsxs(j.Fragment,{children:[e.jsx("tr",{style:{background:"var(--color-gray-50)",borderTop:h>0?"1px solid var(--color-gray-200)":void 0,borderBottom:"1px solid var(--color-gray-200)"},children:e.jsx("td",{colSpan:t.length+1,style:{padding:d?"5px 10px":"7px 16px",fontSize:u,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-gray-600)"},children:m.label})}),m.rows.map((b,w)=>e.jsxs("tr",{style:{background:"var(--color-white)",borderBottom:w<m.rows.length-1?"1px solid var(--color-gray-100)":void 0},children:[e.jsx("td",{style:{padding:x,paddingLeft:d?16:24,fontSize:f,color:"var(--color-gray-800)",whiteSpace:l?"nowrap":void 0},children:b.account??b.label??""}),t.map(S=>e.jsx("td",{style:{padding:x,textAlign:"right",fontSize:f,fontFamily:jt,fontVariantNumeric:"tabular-nums",color:S.highlight?"var(--color-gray-1000)":"var(--color-gray-800)",background:S.highlight?Cr:void 0,whiteSpace:l?"nowrap":void 0},children:b[S.key]??"—"},S.key))]},w))]},h))]})]})})}const Fe={primary:"#e15713",secondary:"#15b1cd",positive:"#71d481",negative:"#fb6060",total:"#000626",grid:"#e5e7f0",axisLabel:"#8c92af",text:"#000626",textMuted:"#595f7a",priorFill:"rgba(229, 231, 240, 0.6)",areaFill:"rgba(229, 87, 19, 0.08)",areaFill2:"rgba(21, 177, 205, 0.08)",forecastFill:"rgba(229, 87, 19, 0.04)",forecastBand:"rgba(229, 87, 19, 0.05)"},Ld=[Fe.primary,Fe.secondary,Fe.positive,Fe.total,Fe.axisLabel,"#5b21b6","#c2410c"],J="'Geist Mono', 'ui-monospace', monospace",re="'Geist', 'system-ui', sans-serif",Y={top:20,right:12,bottom:32,left:56};function Ie(r,t){const o=parseInt(r.slice(1,3),16),a=parseInt(r.slice(3,5),16),n=parseInt(r.slice(5,7),16);return`rgba(${o}, ${a}, ${n}, ${t})`}const na={archie:{primary:"#e15713",secondary:"#15b1cd",positive:"#71d481",negative:"#fb6060",total:"#000626",series:["#e15713","#15b1cd","#6D28D9","#15803D","#BE123C","#0369A1","#C2410C"]},ocean:{primary:"#0369A1",secondary:"#15b1cd",positive:"#71d481",negative:"#fb6060",total:"#022e40",series:["#0369A1","#15b1cd","#6aeafd","#022e40","#8c92af","#15803D","#6D28D9"]},forest:{primary:"#15803D",secondary:"#0369A1",positive:"#71d481",negative:"#fb6060",total:"#000626",series:["#15803D","#0369A1","#71d481","#000626","#8c92af","#6D28D9","#C2410C"]},sunset:{primary:"#C2410C",secondary:"#BE123C",positive:"#71d481",negative:"#fb6060",total:"#000626",series:["#C2410C","#BE123C","#8f6c1a","#000626","#8c92af","#e15713","#6D28D9"]},lavender:{primary:"#6D28D9",secondary:"#0369A1",positive:"#71d481",negative:"#fb6060",total:"#000626",series:["#6D28D9","#0369A1","#15803D","#000626","#8c92af","#C2410C","#BE123C"]},monochrome:{primary:"#000626",secondary:"#595f7a",positive:"#71d481",negative:"#fb6060",total:"#000626",series:["#000626","#595f7a","#8c92af","#e5e7f0","#022e40"]}};function ce(r){const t=na[r.colorScheme??"archie"],o=r.primaryColor??t.primary,a=r.comparisonColor??t.secondary;return{primary:o,secondary:a,positive:t.positive,negative:t.negative,total:t.total,series:[o,a,...t.series.slice(2)],priorFill:"rgba(229, 231, 240, 0.6)",areaFill:Ie(o,.08),areaFill2:Ie(a,.08),forecastFill:Ie(o,.04),forecastBand:Ie(o,.05),grid:"#e5e7f0",axisLabel:"#8c92af",text:"#000626",textMuted:"#595f7a"}}function $d({title:r,subtitle:t,footer:o,renderMode:a="web",className:n,children:s}){const l=a==="pdf";return e.jsxs("div",{className:y("chart-section",n),style:{breakInside:"avoid",pageBreakInside:"avoid"},children:[e.jsxs("div",{style:{borderBottom:"1px solid #e5e7f0",paddingBottom:l?6:8,marginBottom:l?12:16},children:[e.jsx("div",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#000626",fontFamily:"'Geist', system-ui, sans-serif"},children:r}),t&&e.jsx("div",{style:{fontSize:11,fontWeight:400,color:"#8c92af",marginTop:2,fontFamily:"'Geist', system-ui, sans-serif"},children:t})]}),e.jsx("div",{children:s}),o&&e.jsx("div",{style:{fontSize:10,fontWeight:400,color:"#8c92af",marginTop:l?6:8,fontFamily:"'Geist', system-ui, sans-serif",lineHeight:1.5},children:o})]})}function qe(r,t){const[o,a]=r,[n,s]=t,l=a-o||1,i=s-n;return d=>n+(d-o)/l*i}function sa(r,t,o=.25){const a=r.length,n=t/(a+o*(a-1)+o),s=n*(1-o/(1+o)),l=n*(o/(1+o)),i=d=>{const x=r.indexOf(d);return x===-1?0:x*(s+l)+l/2};return i.bandwidth=s,i.step=s+l,i}function Je(r,t,o=5){if(r===t)return[r];const a=(t-r)/(o-1),n=Math.pow(10,Math.floor(Math.log10(Math.abs(a)))),s=[1,2,2.5,5,10];let l=n;for(const p of s)if(p*n>=a){l=p*n;break}const i=Math.floor(r/l)*l,d=[];let x=i;for(;x<=t+l*.01;)d.push(x),x=parseFloat((x+l).toPrecision(12));return d}function mr(r){const t=Math.min(0,...r),o=Math.max(0,...r);return[t,o]}function fe(r,t,o="$",a=!0){if(t==="percent")return`${r.toFixed(1)}%`;if(t==="ratio")return`${r.toFixed(2)}×`;if(t==="number")return a?fr(r):r.toLocaleString("en",{maximumFractionDigits:1});const n=o;return a?`${n}${fr(r)}`:`${n}${Math.abs(r).toLocaleString("en",{maximumFractionDigits:0})}`}function fr(r){const t=Math.abs(r),o=r<0?"-":"";return t>=1e6?`${o}${(t/1e6).toFixed(t>=1e7?0:1)}M`:t>=1e3?`${o}${(t/1e3).toFixed(t>=1e5?0:1)}K`:`${o}${t.toFixed(0)}`}function Ye(r,t,o="$"){return t==="percent"?`${r.toFixed(1)}%`:t==="ratio"?`${r.toFixed(2)}×`:t==="number"?fr(r):`${o}${fr(r)}`}const he=2;function Ad({data:r,config:t}){const{width:o,height:a,valueType:n,currency:s="$",renderMode:l="web",showDataLabels:i=!1,showLegend:d=!1,showComparison:x=!1,comparisonLabel:p="Prior Year",primaryLabel:f="Current"}=t,u=ce(t),g=l==="pdf",m=o-Y.left-Y.right,h=a-Y.top-Y.bottom,b=j.useMemo(()=>{const k=r.map(N=>N.value);return x&&r.forEach(N=>{N.priorValue!==void 0&&k.push(N.priorValue)}),k},[r,x]),w=mr(b),S=qe(w,[h,0]),T=S(0),L=r.map(k=>k.label),C=sa(L,m,.3),z=C.bandwidth,I=Je(w[0],w[1],5),$=(k,N=!0)=>fe(k,n,s,N),F=k=>Ye(k,n,s);return e.jsx("svg",{width:o,height:a,viewBox:`0 0 ${o} ${a}`,"aria-hidden":"true",style:{display:"block",overflow:"visible"},children:e.jsxs("g",{transform:`translate(${Y.left},${Y.top})`,children:[I.map(k=>{const N=S(k);return e.jsxs("g",{children:[e.jsx("line",{x1:0,y1:N,x2:m,y2:N,stroke:u.grid,strokeWidth:1}),e.jsx("text",{x:-8,y:N,textAnchor:"end",dominantBaseline:"middle",style:{fontSize:10,fontFamily:J,fill:u.axisLabel},children:$(k)})]},k)}),w[0]<0&&e.jsx("line",{x1:0,y1:T,x2:m,y2:T,stroke:u.axisLabel,strokeWidth:1}),r.map((k,N)=>{const B=C(k.label),W=k.isTotal?u.total:k.value<0?u.negative:u.primary,V=Math.min(S(k.value),T),H=Math.abs(S(k.value)-T),E=k.value<0,O=x&&k.priorValue!==void 0,A=O?Math.min(S(k.priorValue),T):0,D=O?Math.abs(S(k.priorValue)-T):0;return e.jsxs("g",{children:[e.jsxs("defs",{children:[e.jsx("clipPath",{id:`bar-clip-${N}`,children:e.jsx("rect",{x:B,y:E?V:V-he,width:z,height:H+he+1,rx:he,ry:he})}),O&&e.jsx("clipPath",{id:`prior-clip-${N}`,children:e.jsx("rect",{x:B,y:k.priorValue<0?A:A-he,width:z,height:D+he+1,rx:he,ry:he})})]}),O&&e.jsx("rect",{x:B,y:A,width:z,height:D,fill:u.priorFill,clipPath:`url(#prior-clip-${N})`}),H>0&&e.jsx("rect",{x:B,y:V,width:z,height:H,fill:W,clipPath:`url(#bar-clip-${N})`}),i&&H>0&&e.jsx("text",{x:B+z/2,y:E?V+H+12:V-4,textAnchor:"middle",style:{fontSize:10,fontFamily:J,fontWeight:600,fill:u.text},children:F(k.value)})]},k.label)}),r.map(k=>e.jsx("text",{x:C(k.label)+z/2,y:h+16,textAnchor:"middle",style:{fontSize:g?9:10,fontFamily:re,fill:u.axisLabel},children:k.label},k.label)),d&&x&&e.jsxs("g",{transform:`translate(0, ${h+28})`,children:[e.jsx("rect",{width:10,height:10,rx:2,fill:u.primary,y:-1}),e.jsx("text",{x:14,y:8,style:{fontSize:10,fontFamily:re,fill:u.axisLabel},children:f}),e.jsx("rect",{x:80,width:10,height:10,rx:2,fill:u.priorFill,y:-1}),e.jsx("text",{x:94,y:8,style:{fontSize:10,fontFamily:re,fill:u.axisLabel},children:p})]})]})})}function pr(r,t=.4){if(r.length===0)return"";if(r.length===1)return`M ${r[0][0]},${r[0][1]}`;if(r.length===2)return`M ${r[0][0]},${r[0][1]} L ${r[1][0]},${r[1][1]}`;const o=[`M ${r[0][0]},${r[0][1]}`];for(let a=0;a<r.length-1;a++){const n=r[a-1]??r[a],s=r[a],l=r[a+1],i=r[a+2]??r[a+1],d=s[0]+(l[0]-n[0])/6*t*3,x=s[1]+(l[1]-n[1])/6*t*3,p=l[0]-(i[0]-s[0])/6*t*3,f=l[1]-(i[1]-s[1])/6*t*3;o.push(`C ${d},${x} ${p},${f} ${l[0]},${l[1]}`)}return o.join(" ")}function Tr(r,t,o){if(t.length===0)return"";const a=t[t.length-1],n=t[0];return`${r} L ${a[0]},${o} L ${n[0]},${o} Z`}function Md(r,t,o,a,n){const s=[];let l=0;for(let i=0;i<r.length;i++){const d=r[i];if(t[i]){const p=o(0),f=o(l+d);s.push({x:a[i],yTop:Math.min(p,f),yBottom:Math.max(p,f),kind:"total"}),l+=d}else{const p=l,f=l+d,u=o(p),g=o(f);s.push({x:a[i],yTop:Math.min(u,g),yBottom:Math.max(u,g),kind:d>=0?"positive":"negative",connectorX:a[i]+n}),l=f}}return s}function la({labels:r,series:t,config:o}){const{width:a,height:n,valueType:s,currency:l="$",renderMode:i="web",showLegend:d=!1}=o,x=ce(o),p=i==="pdf",f=a-Y.left-Y.right,u=n-Y.top-Y.bottom,g=j.useMemo(()=>t.flatMap(C=>C.data),[t]),m=mr(g),h=qe(m,[u,0]),b=h(0),w=Je(m[0],m[1],5),S=C=>fe(C,s,l),T=r.length>1?f/(r.length-1):0,L=C=>C*T;return e.jsx("svg",{width:a,height:n,viewBox:`0 0 ${a} ${n}`,"aria-hidden":"true",style:{display:"block",overflow:"visible"},children:e.jsxs("g",{transform:`translate(${Y.left},${Y.top})`,children:[w.map(C=>{const z=h(C);return e.jsxs("g",{children:[e.jsx("line",{x1:0,y1:z,x2:f,y2:z,stroke:x.grid,strokeWidth:1}),e.jsx("text",{x:-8,y:z,textAnchor:"end",dominantBaseline:"middle",style:{fontSize:10,fontFamily:J,fill:x.axisLabel},children:S(C)})]},C)}),m[0]<0&&e.jsx("line",{x1:0,y1:b,x2:f,y2:b,stroke:x.axisLabel,strokeWidth:1}),t.map((C,z)=>{const I=C.color??x.series[z%x.series.length],$=Ie(I.startsWith("#")?I:x.series[z%x.series.length],.08),F=C.data.map((W,V)=>[L(V),h(W)]),k=pr(F),N=Tr(k,F,b),B=F[F.length-1];return e.jsxs("g",{children:[(C.showArea??!1)&&e.jsx("path",{d:N,fill:$,stroke:"none"}),e.jsx("path",{d:k,fill:"none",stroke:I,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),B&&e.jsx("circle",{cx:B[0],cy:B[1],r:4,fill:I,stroke:"#fff",strokeWidth:1.5})]},C.label)}),r.map((C,z)=>e.jsx("text",{x:L(z),y:u+16,textAnchor:"middle",style:{fontSize:p?9:10,fontFamily:re,fill:x.axisLabel},children:C},C)),d&&t.length>1&&e.jsx("g",{transform:`translate(0, ${u+28})`,children:t.map((C,z)=>{const I=C.color??x.series[z%x.series.length],$=z*110;return e.jsxs("g",{transform:`translate(${$}, 0)`,children:[e.jsx("line",{x1:0,y1:5,x2:16,y2:5,stroke:I,strokeWidth:2,strokeLinecap:"round"}),e.jsx("circle",{cx:8,cy:5,r:3,fill:I}),e.jsx("text",{x:20,y:9,style:{fontSize:10,fontFamily:re,fill:x.axisLabel},children:C.label})]},C.label)})})]})})}function Rd({data:r,config:t,color:o}){const a=ce(t),n=[{label:t.primaryLabel??"Value",data:r.map(s=>s.value),color:o??a.primary,showArea:!0}];return t.showComparison&&r.some(s=>s.priorValue!==void 0)&&n.push({label:t.comparisonLabel??"Prior Year",data:r.map(s=>s.priorValue??0),color:a.secondary,showArea:!1}),e.jsx(la,{labels:r.map(s=>s.label),series:n,config:{...t,showLegend:t.showComparison?t.showLegend:!1}})}const sr=2;function Fd({data:r,config:t}){const{width:o,height:a,valueType:n,currency:s="$",renderMode:l="web",showDataLabels:i=!0}=t,d=ce(t),x=l==="pdf",p=o-Y.left-Y.right,f=a-Y.top-Y.bottom,u=j.useMemo(()=>{const k=[0];let N=0;for(const B of r)N+=B.value,k.push(N);return k},[r]),g=Math.min(0,...u),m=Math.max(0,...u),h=Je(g,m,5),b=[Math.min(g,h[0]),Math.max(m,h[h.length-1])],w=qe(b,[f,0]),S=r.map(k=>k.label),T=sa(S,p,.35),L=T.bandwidth,C=S.map(k=>T(k)),z=Md(r.map(k=>k.value),r.map(k=>!!k.isTotal),w,C,L),I=k=>fe(k,n,s),$=k=>Ye(k,n,s),F={positive:d.positive,negative:d.negative,total:d.total};return e.jsx("svg",{width:o,height:a,viewBox:`0 0 ${o} ${a}`,"aria-hidden":"true",style:{display:"block",overflow:"visible"},children:e.jsxs("g",{transform:`translate(${Y.left},${Y.top})`,children:[h.map(k=>{const N=w(k);return e.jsxs("g",{children:[e.jsx("line",{x1:0,y1:N,x2:p,y2:N,stroke:d.grid,strokeWidth:1}),e.jsx("text",{x:-8,y:N,textAnchor:"end",dominantBaseline:"middle",style:{fontSize:10,fontFamily:J,fill:d.axisLabel},children:I(k)})]},k)}),z.map((k,N)=>{const B=r[N],W=k.yBottom-k.yTop,V=B.value<0,H=F[k.kind],E=`wf-clip-${N}`,O=z[N+1],A=(k.kind==="total",k.yTop);return e.jsxs("g",{children:[e.jsx("defs",{children:e.jsx("clipPath",{id:E,children:e.jsx("rect",{x:k.x,y:V||k.kind==="total"?k.yTop:k.yTop-sr,width:L,height:W+sr+1,rx:sr,ry:sr})})}),W>0&&e.jsx("rect",{x:k.x,y:k.yTop,width:L,height:W,fill:H,clipPath:`url(#${E})`}),O&&k.connectorX!==void 0&&e.jsx("line",{x1:k.connectorX,y1:A,x2:O.x,y2:A,stroke:d.grid,strokeWidth:1,strokeDasharray:"3,3"}),i&&e.jsxs("text",{x:k.x+L/2,y:V?k.yBottom+12:k.yTop-4,textAnchor:"middle",style:{fontSize:x?9:10,fontFamily:J,fontWeight:600,fill:d.text},children:[B.value>=0?"+":"",$(B.value)]}),e.jsx("text",{x:k.x+L/2,y:f+16,textAnchor:"middle",style:{fontSize:x?9:10,fontFamily:re,fill:d.axisLabel},children:B.label})]},B.label)})]})})}const _e=18,lr=10,wt=140,Id=60,Ct=2;function Bd({data:r,config:t,sorted:o=!0}){const{width:a,height:n,valueType:s,currency:l="$",renderMode:i="web"}=t,d=ce(t),x=i==="pdf",p=j.useMemo(()=>o?[...r].sort((C,z)=>Math.abs(z.value)-Math.abs(C.value)):r,[r,o]),f=p.length*(_e+lr)+lr+8,u=n>0?n:f,g=a-wt-Id-24,m=p.map(C=>C.value),h=mr(m),b=qe(h,[0,g]),w=b(0),S=C=>Ye(C,s,l),T=C=>fe(C,s,l),L=Je(h[0],h[1],4);return e.jsx("svg",{width:a,height:u,viewBox:`0 0 ${a} ${u}`,"aria-hidden":"true",style:{display:"block",overflow:"visible"},children:e.jsxs("g",{transform:`translate(${wt+12},4)`,children:[L.map(C=>{const z=b(C);return e.jsxs("g",{children:[e.jsx("line",{x1:z,y1:0,x2:z,y2:f-8,stroke:d.grid,strokeWidth:1}),e.jsx("text",{x:z,y:f-2,textAnchor:"middle",style:{fontSize:9,fontFamily:J,fill:d.axisLabel},children:T(C)})]},C)}),h[0]<0&&e.jsx("line",{x1:w,y1:0,x2:w,y2:f-8,stroke:d.axisLabel,strokeWidth:1}),p.map((C,z)=>{const I=z*(_e+lr)+lr,$=C.value<0,F=$?b(C.value):w,k=Math.abs(b(C.value)-w),N=$?d.negative:d.primary;return e.jsxs("g",{children:[e.jsx("text",{x:-8,y:I+_e/2,textAnchor:"end",dominantBaseline:"middle",style:{fontSize:x?9:10,fontFamily:re,fill:d.text},children:C.label.length>22?C.label.slice(0,21)+"…":C.label}),e.jsx("rect",{x:F,y:I,width:Math.max(k,1),height:_e,fill:N,rx:Ct,ry:Ct}),e.jsx("text",{x:b(Math.max(0,C.value))+6,y:I+_e/2,dominantBaseline:"middle",style:{fontSize:10,fontFamily:J,fontWeight:600,fill:d.text},children:S(C.value)})]},C.label)})]})})}const Dd=3;function ir(r,t,o,a){const n=(a-90)*Math.PI/180;return{x:r+o*Math.cos(n),y:t+o*Math.sin(n)}}function Ed(r,t,o,a,n,s){const l=ir(r,t,o,s),i=ir(r,t,o,n),d=ir(r,t,a,s),x=ir(r,t,a,n),p=s-n>180?1:0;return[`M ${l.x},${l.y}`,`A ${o},${o} 0 ${p},0 ${i.x},${i.y}`,`L ${x.x},${x.y}`,`A ${a},${a} 0 ${p},1 ${d.x},${d.y}`,"Z"].join(" ")}function Pd({segments:r,config:t,centerLabel:o}){const{width:a,valueType:n,currency:s="$",renderMode:l="web"}=t,i=ce(t),d=l==="pdf",x=j.useMemo(()=>r.reduce((L,C)=>L+Math.abs(C.value),0),[r]),p=Math.ceil(r.length/2)*20+16,f=Math.min(a,200),u=f+p,g=f/2,m=f/2,h=f/2-8,b=h*.62,w=j.useMemo(()=>{let L=0;const C=Dd,z=360-r.length*C;return r.map((I,$)=>{const F=I.color??i.series[$%i.series.length],k=x>0?Math.abs(I.value)/x:0,N=k*z,B=L,W=L+N;return L=W+C,{...I,startDeg:B,endDeg:W,color:F,proportion:k}})},[r,x]),S=L=>Ye(L,n,s),T=L=>Ye(L,n,s);return e.jsxs("svg",{width:a,height:u,viewBox:`0 0 ${a} ${u}`,"aria-hidden":"true",style:{display:"block"},children:[e.jsxs("g",{transform:`translate(${(a-f)/2}, 0)`,children:[w.map(L=>e.jsx("path",{d:Ed(g,m,h,b,L.startDeg,L.endDeg),fill:L.color},L.label)),e.jsx("text",{x:g,y:m-6,textAnchor:"middle",style:{fontSize:18,fontFamily:J,fontWeight:300,fill:i.text},children:S(x)}),o&&e.jsx("text",{x:g,y:m+14,textAnchor:"middle",style:{fontSize:9,fontFamily:re,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",fill:i.axisLabel},children:o})]}),e.jsx("g",{transform:`translate(12, ${f+8})`,children:w.map((L,C)=>{const z=C%2,I=Math.floor(C/2),$=z*(a/2-6),F=I*20;return e.jsxs("g",{transform:`translate(${$}, ${F})`,children:[e.jsx("circle",{cx:5,cy:6,r:5,fill:L.color}),e.jsx("text",{x:14,y:11,style:{fontSize:d?9:10,fontFamily:re,fill:i.axisLabel},children:L.label.length>18?L.label.slice(0,17)+"…":L.label}),e.jsx("text",{x:a/2-18,y:11,textAnchor:"end",style:{fontSize:10,fontFamily:J,fontWeight:600,fill:i.text},children:T(L.value)})]},L.label)})})]})}function Wd({data:r,config:t}){const{width:o,height:a,valueType:n,currency:s="$",renderMode:l="web"}=t,i=ce(t),d=l==="pdf",x=o-Y.left-Y.right,p=a-Y.top-Y.bottom,f=r.findIndex(D=>D.isForecast),u=f!==-1,g=u?r.slice(0,f):r,m=u?r.slice(f):[],h=j.useMemo(()=>{const D=r.map(_=>_.value);return r.forEach(_=>{_.upperBound!==void 0&&D.push(_.upperBound),_.lowerBound!==void 0&&D.push(_.lowerBound)}),D},[r]),b=mr(h),w=qe(b,[p,0]),S=w(0),T=Je(b[0],b[1],5),L=r.length>1?x/(r.length-1):0,C=D=>D*L,z=g.map((D,_)=>[C(_),w(D.value)]),I=m.map((D,_)=>[C(f+_),w(D.value)]),$=z.length?[z[z.length-1],...I]:I,F=pr(z),k=Tr(F,z,S),N=pr($),B=Tr(N,$,S),W=m.some(D=>D.upperBound!==void 0&&D.lowerBound!==void 0),V=W?m.map((D,_)=>({upper:[C(f+_),w(D.upperBound??D.value)],lower:[C(f+_),w(D.lowerBound??D.value)]})):[];let H="";if(V.length>0){const D=pr(V.map(te=>te.upper)),ue=[...V].reverse().map(te=>te.lower).map((te,Z)=>`L ${te[0]},${te[1]}`).join(" ");H=`${D} ${ue} Z`}const E=u?C(f):null,O=z[z.length-1],A=D=>fe(D,n,s);return e.jsx("svg",{width:o,height:a,viewBox:`0 0 ${o} ${a}`,"aria-hidden":"true",style:{display:"block",overflow:"visible"},children:e.jsxs("g",{transform:`translate(${Y.left},${Y.top})`,children:[T.map(D=>{const _=w(D);return e.jsxs("g",{children:[e.jsx("line",{x1:0,y1:_,x2:x,y2:_,stroke:i.grid,strokeWidth:1}),e.jsx("text",{x:-8,y:_,textAnchor:"end",dominantBaseline:"middle",style:{fontSize:10,fontFamily:J,fill:i.axisLabel},children:A(D)})]},D)}),W&&H&&e.jsx("path",{d:H,fill:i.forecastBand,stroke:"none"}),z.length>1&&e.jsx("path",{d:k,fill:i.areaFill,stroke:"none"}),z.length>1&&e.jsx("path",{d:F,fill:"none",stroke:i.primary,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),I.length>0&&e.jsx("path",{d:B,fill:i.forecastFill,stroke:"none"}),I.length>0&&e.jsx("path",{d:N,fill:"none",stroke:i.primary,strokeWidth:1.5,strokeDasharray:"5,4",strokeLinecap:"round",strokeLinejoin:"round"}),O&&e.jsx("circle",{cx:O[0],cy:O[1],r:4,fill:i.primary,stroke:"#fff",strokeWidth:1.5}),E!==null&&e.jsx("line",{x1:E,y1:0,x2:E,y2:p,stroke:i.grid,strokeWidth:1,strokeDasharray:"3,3"}),E!==null&&e.jsx("text",{x:E+5,y:p*.2,style:{fontSize:d?8:9,fontFamily:re,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",fill:i.axisLabel},children:"FORECAST"}),r.map((D,_)=>r.length>14&&_%2!==0?null:e.jsx("text",{x:C(_),y:p+16,textAnchor:"middle",style:{fontSize:d?9:10,fontFamily:re,fill:i.axisLabel},children:D.label},D.label))]})})}const Vd=6,St=12;function Hd({data:r,config:t,labelGutter:o=130}){const{width:a,height:n,valueType:s,currency:l="$"}=t,i=ce(t),d=j.useMemo(()=>Math.max(...r.map(b=>b.value),1),[r]),p=Math.max(80,a-o-110),f=r.length,u=(n-20)/f,g=Math.max(18,u-St-Vd),m=o+p/2,h=r.map((b,w)=>{const S=b.value/d*p,T=10+w*u;return{...b,width:S,y:T}});return e.jsx("svg",{width:a,height:n,style:{fontFamily:re},role:"img",children:h.map((b,w)=>{const S=m-b.width/2,T=w>0?b.value/h[w-1].value*100:null,L=fe(b.value,s,l,!0),C=h[w+1];return e.jsxs("g",{children:[e.jsx("text",{x:o-10,y:b.y+g/2,textAnchor:"end",dominantBaseline:"central",fontSize:12,fill:i.text,fontWeight:500,children:b.label}),T!==null&&e.jsxs("text",{x:m,y:b.y-4,textAnchor:"middle",fontSize:10,fontFamily:J,fill:i.axisLabel,children:[T.toFixed(0),"% ↓"]}),e.jsx("rect",{x:S,y:b.y,width:b.width,height:g,rx:3,fill:i.primary,opacity:.85-w*.08}),C&&e.jsx("path",{d:(()=>{const z=S,I=S+b.width,$=m-C.width/2,F=m+C.width/2,k=b.y+g,N=k+St;return`M${z},${k} L${I},${k} L${F},${N} L${$},${N} Z`})(),fill:i.primary,opacity:.15}),e.jsx("text",{x:o+p+10,y:b.y+g/2-6,fontSize:12,fontFamily:J,fill:i.text,fontWeight:500,children:L}),b.count!==void 0&&e.jsxs("text",{x:o+p+10,y:b.y+g/2+8,fontSize:10,fill:i.axisLabel,children:[b.count.toLocaleString("en")," ",b.count===1?"deal":"deals"]})]},b.label)})})}const $e=34,Ae=12;function _d({data:r,config:t,labelGutter:o=140,readoutGutter:a=120}){const{width:n,valueType:s,currency:l="$"}=t,i=ce(t),d=o,x=Math.max(80,n-o-a);return e.jsx("svg",{width:n,height:Math.max(t.height,r.length*$e+16),style:{fontFamily:re},role:"img",children:r.map((p,f)=>{const u=p.bands??[p.target*.6,p.target,p.target*1.3],g=Math.max(u[2],p.actual,p.target)*1.02,m=z=>Math.max(0,Math.min(z,g))/g*x,h=12+f*$e,b=h+($e-Ae)/2,w=m(u[0]),S=m(u[1]),T=m(u[2]),L=m(p.actual),C=d+m(p.target);return e.jsxs("g",{children:[e.jsx("text",{x:o-10,y:h+$e/2,textAnchor:"end",dominantBaseline:"central",fontSize:12,fill:i.text,fontWeight:500,children:p.label}),e.jsx("rect",{x:d,y:b-6,width:T,height:Ae+12,fill:"#d4d8e3",rx:2}),e.jsx("rect",{x:d,y:b-6,width:S,height:Ae+12,fill:"#e5e7f0",rx:2}),e.jsx("rect",{x:d,y:b-6,width:w,height:Ae+12,fill:"#f0f1f7",rx:2}),e.jsx("rect",{x:d,y:b,width:L,height:Ae,fill:p.actual>=p.target?i.positive:i.primary,rx:2}),e.jsx("line",{x1:C,x2:C,y1:b-6,y2:b+Ae+6,stroke:i.total,strokeWidth:2}),e.jsx("text",{x:n-10,y:h+$e/2-6,textAnchor:"end",fontSize:12,fontFamily:J,fill:i.text,fontWeight:500,children:fe(p.actual,s,l,!0)}),e.jsxs("text",{x:n-10,y:h+$e/2+8,textAnchor:"end",fontSize:10,fontFamily:J,fill:i.axisLabel,children:["/ ",fe(p.target,s,l,!0)]})]},p.label)})})}function Od(r,t,o){const a=i=>[parseInt(i.slice(1,3),16),parseInt(i.slice(3,5),16),parseInt(i.slice(5,7),16)],n=a(r),s=a(t);return"#"+n.map((i,d)=>Math.round(i+(s[d]-i)*o)).map(i=>i.toString(16).padStart(2,"0")).join("")}function Gd({rows:r,cols:t,values:o,config:a,labelGutter:n=110,topGutter:s=28}){const{width:l,height:i,valueType:d,currency:x="$",showDataLabels:p=!0}=a,f=ce(a),{min:u,max:g}=j.useMemo(()=>{let S=1/0,T=-1/0;for(const L of o)for(const C of L)C<S&&(S=C),C>T&&(T=C);return isFinite(S)||(S=0,T=1),S===T&&(T=S+1),{min:S,max:T}},[o]),m=(l-n-8)/t.length,h=(i-s-8)/r.length,b="#ffffff",w=f.primary;return e.jsxs("svg",{width:l,height:i,style:{fontFamily:re},role:"img",children:[t.map((S,T)=>e.jsx("text",{x:n+T*m+m/2,y:s-8,textAnchor:"middle",fontSize:10,fontWeight:600,fill:f.axisLabel,style:{letterSpacing:"0.05em",textTransform:"uppercase"},children:S},`col-${S}`)),r.map((S,T)=>e.jsxs("g",{children:[e.jsx("text",{x:n-8,y:s+T*h+h/2,textAnchor:"end",dominantBaseline:"central",fontSize:11,fill:f.text,fontWeight:500,children:S}),t.map((L,C)=>{var W;const z=((W=o[T])==null?void 0:W[C])??0,I=(z-u)/(g-u),$=Od(b,w,Math.max(0,Math.min(1,I))),F=n+C*m+1,k=s+T*h+1,N=m-2,B=h-2;return e.jsxs("g",{children:[e.jsx("rect",{x:F,y:k,width:N,height:B,rx:2,fill:$,stroke:f.grid}),p&&e.jsx("text",{x:F+N/2,y:k+B/2,textAnchor:"middle",dominantBaseline:"central",fontSize:10,fontFamily:J,fill:I>.55?"#fff":f.text,children:fe(z,d,x,!0)})]},`c-${T}-${C}`)})]},`row-${S}`))]})}function Ud({accent:r,width:t,height:o}){return e.jsxs("svg",{viewBox:`0 0 ${t} ${o}`,width:t,height:o,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",children:[e.jsx("rect",{width:t,height:o,fill:"#000626"}),e.jsx("ellipse",{cx:t*.8,cy:o*.85,rx:t*.7,ry:o*.55,fill:r,opacity:"0.18"}),e.jsx("ellipse",{cx:t*.15,cy:o*.25,rx:t*.55,ry:o*.4,fill:r,opacity:"0.12"}),e.jsx("path",{d:`M ${t*.4},0 Q ${t*1.1},${o*.3} ${t*.6},${o}`,fill:"none",stroke:r,strokeWidth:t*.025,opacity:"0.4",strokeLinecap:"round"}),e.jsx("circle",{cx:t*.78,cy:o*.22,r:t*.08,fill:r,opacity:"0.25"}),e.jsx("circle",{cx:t*.6,cy:o*.55,r:t*.04,fill:r,opacity:"0.5"})]})}function Yd({accent:r,width:t,height:o}){return e.jsxs("svg",{viewBox:`0 0 ${t} ${o}`,width:t,height:o,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",children:[e.jsx("rect",{width:t,height:o,fill:"#000626"}),e.jsx("rect",{x:0,y:o*.6,width:t,height:o*.4,fill:"#01082f"}),e.jsx("circle",{cx:t*.55,cy:o*.38,r:t*.14,fill:r,opacity:"0.9"}),e.jsx("rect",{x:t*.4,y:o*.61,width:t*.3,height:o*.12,fill:r,opacity:"0.15"}),e.jsx("line",{x1:t*.3,y1:o*.6,x2:t*.32,y2:o*.3,stroke:"#fff",strokeWidth:1.5,opacity:"0.4"}),e.jsx("line",{x1:t*.7,y1:o*.6,x2:t*.68,y2:o*.2,stroke:"#fff",strokeWidth:1.5,opacity:"0.4"}),[.65,.72,.8,.9].map((a,n)=>e.jsx("line",{x1:0,y1:o*a,x2:t,y2:o*a,stroke:"#fff",strokeWidth:.5,opacity:.06},n))]})}function Zd({accent:r,width:t,height:o}){return e.jsxs("svg",{viewBox:`0 0 ${t} ${o}`,width:t,height:o,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",children:[e.jsx("rect",{width:t,height:o,fill:"#01240e"}),e.jsx("path",{d:`M ${t*.5},${o*.1} C ${t*1.2},${o*.1} ${t*1},${o*.9} ${t*.5},${o*.95} C ${t*0},${o*.9} ${t*-.2},${o*.1} ${t*.5},${o*.1}Z`,fill:"#71d481",opacity:"0.18"}),e.jsx("path",{d:`M ${t*.8},${o*-.05} C ${t*1.5},${o*.3} ${t*.9},${o*.8} ${t*.4},${o*.9} C ${t*0},${o*.6} ${t*.2},${o*-.1} ${t*.8},${o*-.05}Z`,fill:"#71d481",opacity:"0.14"}),e.jsx("circle",{cx:t*.5,cy:o*.5,r:t*.03,fill:r,opacity:"0.7"}),e.jsx("line",{x1:t*.5,y1:o*.1,x2:t*.5,y2:o*.95,stroke:"#71d481",strokeWidth:1.5,opacity:"0.3"})]})}function Kd({accent:r,width:t,height:o}){return e.jsxs("svg",{viewBox:`0 0 ${t} ${o}`,width:t,height:o,xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid slice",children:[e.jsx("rect",{width:t,height:o,fill:"#000626"}),e.jsx("polygon",{points:`${t*0},${o*1} ${t*1},${o*0} ${t*1},${o*1}`,fill:r,opacity:"0.15"}),e.jsx("polygon",{points:`${t*.2},${o*0} ${t*.6},${o*0} ${t*0},${o*.7} ${t*0},${o*.3}`,fill:"#fff",opacity:"0.04"}),e.jsx("polygon",{points:`${t*.5},${o*0} ${t*1},${o*.4} ${t*.5},${o*.5}`,fill:r,opacity:"0.25"}),[.3,.5,.7,.9].map(a=>[.2,.5,.8].map(n=>e.jsx("circle",{cx:t*n,cy:o*a,r:2,fill:"#fff",opacity:"0.12"},`${n}-${a}`)))]})}function Xd({style:r,accent:t,width:o,height:a}){switch(r){case"marina":return e.jsx(Yd,{accent:t,width:o,height:a});case"leaves":return e.jsx(Zd,{accent:t,width:o,height:a});case"abstract":return e.jsx(Kd,{accent:t,width:o,height:a});default:return e.jsx(Ud,{accent:t,width:o,height:a})}}function qd({config:r,renderMode:t="pdf",width:o=794,height:a=1122}){const{entityName:n,reportTitle:s="Monthly Management Report",period:l,preparedBy:i,logoUrl:d,heroStyle:x="curves",accentColor:p="#e15713",publishedDate:f}=r,u=t==="pdf",g=Math.round(o*.52),m=o-g,h=6;return e.jsxs("div",{style:{width:o,height:a,display:"flex",flexDirection:"row",overflow:"hidden",fontFamily:"'Geist', system-ui, sans-serif",backgroundColor:"#fff",position:"relative"},children:[e.jsxs("div",{style:{width:g,height:a,display:"flex",flexDirection:"column",padding:u?"44px 36px 44px 44px":"56px 48px 56px 56px",boxSizing:"border-box",position:"relative",zIndex:1,backgroundColor:"#fff"},children:[e.jsx("div",{style:{marginBottom:"auto"},children:d?e.jsx("img",{src:d,alt:n,style:{maxHeight:u?36:44,maxWidth:g*.55,objectFit:"contain"}}):e.jsx("div",{style:{fontSize:u?14:16,fontWeight:700,letterSpacing:"0.04em",textTransform:"uppercase",color:"#000626"},children:n})}),e.jsxs("div",{style:{marginTop:"auto",marginBottom:"auto"},children:[e.jsx("div",{style:{width:36,height:4,borderRadius:2,backgroundColor:p,marginBottom:u?18:24}}),e.jsx("h1",{style:{margin:"0 0 10px 0",fontSize:u?26:32,fontWeight:500,color:"#000626",lineHeight:1.15},children:n}),e.jsx("div",{style:{fontSize:u?14:17,fontWeight:400,color:"#595f7a",marginBottom:u?6:8},children:s}),e.jsx("div",{style:{fontSize:u?13:15,fontWeight:400,color:"#8c92af"},children:l})]}),e.jsxs("div",{style:{marginTop:"auto",paddingTop:24},children:[i&&e.jsx("div",{style:{fontSize:u?8:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.10em",color:"#8c92af",marginBottom:4},children:"Prepared by"}),i&&e.jsx("div",{style:{fontSize:u?10:12,color:"#595f7a"},children:i}),f&&e.jsx("div",{style:{fontSize:u?9:10,color:"#c8cce0",marginTop:4},children:f})]})]}),e.jsx("div",{style:{width:h,height:a,backgroundColor:p,flexShrink:0}}),e.jsx("div",{style:{flex:1,height:a,overflow:"hidden",position:"relative"},children:e.jsx(Xd,{style:x,accent:p,width:m-h,height:a})})]})}const Jd={Critical:"#000626",High:"#e15713",Medium:"#8c92af",Low:"#c8cce0"},kt={up:"#71d481",down:"#fb6060",flat:"#8c92af"},Qd={up:"▲",down:"▼",flat:"—"};function e0({met:r}){return r==null?null:e.jsx("span",{style:{color:r?"#71d481":"#fb6060",fontWeight:700,fontSize:12},children:r?"✓":"×"})}function r0({rows:r,renderMode:t="web"}){const o=t==="pdf",a=o?9:11,n=o?8:10,s=r.reduce((x,p)=>{const f=`${p.categoryLetter}:${p.category}`;return x.has(f)||x.set(f,[]),x.get(f).push(p),x},new Map),l=r.some(x=>x.target!==null&&x.target!==void 0),i=r.filter(x=>x.lowerIsBetter&&x.footnoteMarker),d=o?"5px 8px":"7px 10px";return e.jsxs("div",{style:{fontFamily:"'Geist', system-ui, sans-serif",breakInside:"avoid",pageBreakInside:"avoid"},children:[e.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",tableLayout:"fixed"},children:[e.jsxs("colgroup",{children:[e.jsx("col",{style:{width:"28%"}}),e.jsx("col",{style:{width:"14%"}}),l&&e.jsx("col",{style:{width:"12%"}}),l&&e.jsx("col",{style:{width:"6%"}}),e.jsx("col",{style:{width:l?"24%":"36%"}}),e.jsx("col",{style:{width:"16%"}})]}),e.jsx("thead",{children:e.jsx("tr",{style:{borderBottom:"2px solid #e5e7f0"},children:["METRIC","RESULT",...l?["TARGET",""]:[],"TREND","IMPORTANCE"].map(x=>e.jsx("th",{style:{padding:d,fontSize:n,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#8c92af",textAlign:x==="RESULT"||x==="TARGET"?"right":"left",paddingBottom:8},children:x},x))})}),e.jsx("tbody",{children:[...s.entries()].map(([x,p])=>{const f=p[0];return e.jsxs(j.Fragment,{children:[e.jsx("tr",{style:{breakInside:"avoid",pageBreakInside:"avoid",borderTop:"1px solid #e5e7f0"},children:e.jsx("td",{colSpan:l?6:4,style:{padding:`${o?6:8}px ${o?8:10}px`,paddingTop:o?10:14},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:o?16:20,height:o?16:20,borderRadius:4,backgroundColor:f.categoryColor,color:"#fff",fontSize:o?9:11,fontWeight:700,flexShrink:0,fontFamily:"'Geist Mono', monospace"},children:f.categoryLetter}),e.jsx("span",{style:{fontSize:o?9:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#000626"},children:f.category})]})})}),p.map((u,g)=>e.jsxs("tr",{style:{backgroundColor:g%2===0?"transparent":"rgba(229,231,240,0.2)",breakInside:"avoid",pageBreakInside:"avoid"},children:[e.jsxs("td",{style:{padding:d,fontSize:a,color:"#000626"},children:[u.label,u.footnoteMarker&&e.jsx("sup",{style:{color:"#8c92af",fontSize:a-2},children:u.footnoteMarker})]}),e.jsx("td",{style:{padding:d,fontSize:a,fontFamily:"'Geist Mono', monospace",fontWeight:600,color:"#000626",textAlign:"right"},children:u.result}),l&&e.jsx("td",{style:{padding:d,fontSize:a,fontFamily:"'Geist Mono', monospace",color:"#8c92af",textAlign:"right"},children:u.target??"—"}),l&&e.jsx("td",{style:{padding:d,textAlign:"center"},children:e.jsx(e0,{met:u.targetMet})}),e.jsxs("td",{style:{padding:d,fontSize:a},children:[e.jsxs("span",{style:{color:kt[u.trendDirection],fontWeight:600},children:[Qd[u.trendDirection]," "]}),e.jsx("span",{style:{fontFamily:"'Geist Mono', monospace",color:kt[u.trendDirection],fontWeight:600},children:u.trendValue}),e.jsx("span",{style:{color:"#8c92af",marginLeft:4,fontSize:o?8:9},children:u.trendPeriod})]}),e.jsx("td",{style:{padding:d},children:e.jsx("span",{style:{fontSize:o?8:10,fontWeight:600,color:Jd[u.importance]??"#8c92af",textTransform:"uppercase",letterSpacing:"0.06em"},children:u.importance})})]},u.label))]},x)})})]}),i.length>0&&e.jsx("div",{style:{marginTop:12,paddingTop:8,borderTop:"1px solid #e5e7f0",fontSize:o?8:9,color:"#8c92af"},children:i.map(x=>e.jsxs("div",{children:[e.jsx("sup",{children:x.footnoteMarker})," ",x.label,": lower values indicate better performance"]},x.label))})]})}function t0({size:r}){return e.jsx("svg",{width:r,height:r,viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M5 9.5V16H3a1 1 0 01-1-1v-4.5a1 1 0 011-1h2zM6 9.5l2.5-7a1.5 1.5 0 013 0v4.5h3.5a1.5 1.5 0 011.5 1.5l-.9 4.5a1.5 1.5 0 01-1.5 1.5H6V9.5z",fill:"#71d481"})})}function o0({size:r}){return e.jsx("svg",{width:r,height:r,viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M13 8.5V2H15a1 1 0 011 1v4.5a1 1 0 01-1 1h-2zM12 8.5l-2.5 7a1.5 1.5 0 01-3 0v-4.5H3a1.5 1.5 0 01-1.5-1.5l.9-4.5A1.5 1.5 0 013.9 3.5H12V8.5z",fill:"#fb6060"})})}function a0({size:r}){return e.jsx("svg",{width:r,height:r,viewBox:"0 0 18 18",fill:"none",children:e.jsx("rect",{x:"3",y:"8",width:"12",height:"2",rx:"1",fill:"#8c92af"})})}function n0({status:r,size:t}){return r==="positive"?e.jsx(t0,{size:t}):r==="negative"?e.jsx(o0,{size:t}):e.jsx(a0,{size:t})}function ia({observations:r,renderMode:t="web"}){const o=t==="pdf",a=o?14:18;return e.jsx("div",{style:{fontFamily:"'Geist', system-ui, sans-serif"},children:r.map((n,s)=>e.jsxs("div",{style:{display:"flex",gap:o?12:16,alignItems:"flex-start",paddingTop:o?10:14,paddingBottom:o?10:14,borderBottom:s<r.length-1?"1px solid #e5e7f0":"none",breakInside:"avoid",pageBreakInside:"avoid"},children:[e.jsx("div",{style:{flexShrink:0,paddingTop:2},children:e.jsx(n0,{status:n.status,size:a})}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontSize:9,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.10em",color:"#8c92af",marginBottom:3},children:n.category}),e.jsxs("div",{style:{marginBottom:o?3:4},children:[e.jsx("span",{style:{fontSize:o?11:13,fontWeight:700,color:"#000626"},children:n.headline}),n.context&&e.jsx("span",{style:{fontSize:o?11:13,fontWeight:400,color:"#8c92af",marginLeft:6},children:n.context})]}),e.jsx("p",{style:{margin:0,fontSize:o?10:12,fontWeight:400,color:"#595f7a",lineHeight:1.6},children:n.narrative})]})]},n.category))})}function s0({commentary:r,actions:t,observations:o,renderMode:a="web"}){const n=a==="pdf";return e.jsxs("div",{style:{fontFamily:"'Geist', system-ui, sans-serif"},children:[e.jsxs("div",{style:{display:"grid",gridTemplateColumns:"60% 40%",gap:n?24:32,marginBottom:n?24:32,alignItems:"start"},children:[e.jsx("div",{children:r.map((s,l)=>e.jsxs("div",{style:{marginBottom:n?12:16},children:[s.heading&&e.jsx("div",{style:{fontSize:n?10:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#000626",marginBottom:n?4:6},children:s.heading}),e.jsx("p",{style:{margin:0,fontSize:n?10:13,lineHeight:1.65,color:"#000626"},children:s.body})]},l))}),e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:n?9:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#8c92af",marginBottom:n?8:12},children:"Key Actions"}),e.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:t.map((s,l)=>e.jsxs("li",{style:{display:"flex",gap:10,alignItems:"flex-start",marginBottom:n?7:10,fontSize:n?10:13,lineHeight:1.8,color:"#000626"},children:[e.jsx("span",{style:{color:"#e15713",fontWeight:700,fontSize:14,lineHeight:1.6,flexShrink:0},children:"•"}),e.jsx("span",{children:s})]},l))})]})]}),o.length>0&&e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:n?9:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#000626",borderBottom:"2px solid #e5e7f0",paddingBottom:n?6:8,marginBottom:0},children:"KPI Observations"}),e.jsx(ia,{observations:o,renderMode:a})]})]})}const Sr="'Geist Mono', ui-monospace, monospace",Nt="#71d481",zt="#fb6060",Me="#8c92af",l0="#595f7a",i0="#000626",ca="#e5e7f0";function c0({data:r,color:t,width:o=80,height:a=22}){if(r.length<2)return null;const n=Math.min(...r),l=Math.max(...r)-n||1,i=2,d=r.map((p,f)=>({x:i+f/(r.length-1)*(o-i*2),y:i+(1-(p-n)/l)*(a-i*2)}));let x=`M ${d[0].x},${d[0].y}`;for(let p=1;p<d.length;p++){const f=d[p-1],u=d[p],g=(f.x+u.x)/2;x+=` C ${g},${f.y} ${g},${u.y} ${u.x},${u.y}`}return e.jsx("svg",{width:o,height:a,viewBox:`0 0 ${o} ${a}`,style:{display:"block",overflow:"visible"},children:e.jsx("path",{d:x,fill:"none",stroke:t,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})}function da({label:r,value:t,comparison:o,comparisonLabel:a,trend:n,target:s,description:l,sparklineData:i,renderMode:d="web",_last:x=!1}){const p=d==="pdf",f=p?"10px 12px":"16px 20px",u=p?22:28,g=p?8:9,m=n==null?Me:n.favorable!=null?n.favorable?Nt:zt:n.direction==="up"?Nt:n.direction==="down"?zt:Me,h=n==null?"":n.direction==="up"?"▲ ":n.direction==="down"?"▼ ":"";return e.jsxs("div",{style:{padding:f,background:"#ffffff",borderRight:x?void 0:`1px solid ${ca}`,display:"flex",flexDirection:"column",gap:p?4:6},children:[e.jsx("div",{style:{fontSize:g,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:Me},children:r}),e.jsxs("div",{style:{display:"flex",alignItems:"flex-end",gap:12,justifyContent:"space-between"},children:[e.jsx("div",{style:{fontSize:u,fontWeight:300,fontFamily:Sr,color:i0,lineHeight:1,letterSpacing:"-0.01em"},children:t}),i&&i.length>=2&&e.jsx("div",{style:{marginBottom:2},children:e.jsx(c0,{data:i,color:m,width:80,height:22})})]}),n&&e.jsxs("div",{style:{fontSize:11,fontWeight:500,color:m,lineHeight:1.2},children:[h,n.value]}),o&&e.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[e.jsx("span",{style:{fontSize:13,fontFamily:Sr,color:Me},children:o}),a&&e.jsx("span",{style:{fontSize:10,color:Me},children:a})]}),s&&e.jsxs("div",{style:{fontSize:11,color:Me,display:"flex",gap:4},children:[e.jsx("span",{style:{fontWeight:600},children:"Target"}),e.jsx("span",{style:{fontFamily:Sr},children:s})]}),l&&e.jsx("div",{style:{fontSize:11,color:l0,lineHeight:1.5,marginTop:2},children:l})]})}function d0({cards:r,renderMode:t="web"}){return r.length===0?null:e.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${r.length}, 1fr)`,border:`1px solid ${ca}`,borderRadius:8,overflow:"hidden"},children:r.map((o,a)=>e.jsx(da,{...o,renderMode:t,_last:a===r.length-1},a))})}const p0="'Geist Mono', ui-monospace, monospace",x0="#71d481",f0="#fb6060",u0="#f5f6fa",g0="#e5e7f0",cr="#8c92af",m0="#000626",Tt={Critical:0,High:1,Medium:2,Low:3};function Lt(r,t,o,a,n,s){if(a<=o+.5)return"";const l=s-n>Math.PI?1:0,i=Math.cos(n),d=Math.sin(n),x=Math.cos(s),p=Math.sin(s),f=u=>u.toFixed(2);return[`M ${f(r+o*i)},${f(t+o*d)}`,`A ${o},${o} 0 ${l} 1 ${f(r+o*x)},${f(t+o*p)}`,`L ${f(r+a*x)},${f(t+a*p)}`,`A ${a},${a} 0 ${l} 0 ${f(r+a*i)},${f(t+a*d)}`,"Z"].join(" ")}function h0({items:r,period:t,onTrackCount:o,offTrackCount:a,renderMode:n="web",width:s=500}){const l=n==="pdf",i=r.length;if(i===0)return null;const d=[...r].sort((F,k)=>{const N=(Tt[F.importance]??3)-(Tt[k.importance]??3);return N!==0?N:F.label.localeCompare(k.label)}),x=o+a,p=x>0?Math.round(o/x*100):0,f=560,u=560,g=280,m=280,h=188,b=42,w=h+24,L=2*Math.PI/i/2-.015,C=Math.round(u*(s/f));function z(F){return F/i*2*Math.PI-Math.PI/2}function I(F){return F.targetMet===!0?x0:F.targetMet===!1?f0:cr}function $(F){return F.targetMet===!0?"rgba(113,212,129,0.10)":F.targetMet===!1?"rgba(251,96,96,0.08)":u0}return e.jsxs("svg",{width:s,height:C,viewBox:`0 0 ${f} ${u}`,style:{display:"block",overflow:"visible"},children:[d.map((F,k)=>{const N=z(k),B=N-L,W=N+L,V=b+Math.max(2,Math.min(F.score/100,1)*(h-b)),H=g+w*Math.cos(N),E=m+w*Math.sin(N),O=N*180/Math.PI+90,A=O>90&&O<270?O+180:O,D=F.label.length>22?`${F.label.slice(0,20)}…`:F.label;return e.jsxs("g",{children:[e.jsx("path",{d:Lt(g,m,b,h,B,W),fill:$(F)}),e.jsx("path",{d:Lt(g,m,b,V,B,W),fill:I(F),opacity:F.targetMet===null?.5:.88}),e.jsx("text",{x:0,y:0,textAnchor:"middle",dominantBaseline:"middle",fontSize:l?7:8.5,fill:cr,transform:`translate(${H.toFixed(1)},${E.toFixed(1)}) rotate(${A.toFixed(1)})`,children:D})]},k)}),e.jsx("circle",{cx:g,cy:m,r:b-1,fill:"white"}),e.jsx("circle",{cx:g,cy:m,r:h,fill:"none",stroke:g0,strokeWidth:.75}),e.jsxs("text",{x:g,y:m-5,textAnchor:"middle",dominantBaseline:"auto",fontSize:20,fontWeight:300,fontFamily:p0,fill:m0,children:[p,"%"]}),e.jsx("text",{x:g,y:m+7,textAnchor:"middle",dominantBaseline:"hanging",fontSize:7,letterSpacing:"0.07em",fill:cr,children:"ON TRACK"}),e.jsxs("text",{x:g,y:u-8,textAnchor:"middle",dominantBaseline:"auto",fontSize:9,fill:cr,children:[`${o} on track · ${a} off track`,r.length>x?` · ${r.length-x} no target`:"",t?` · ${t}`:""]})]})}const Qe="'Geist Mono', ui-monospace, monospace",Hr="#71d481",_r="#fb6060",ae="#000626",pa="#f5f6fa",Lr="#e5e7f0",ve="#8c92af",b0="#D6F4FF",xa="#00bcd4",v0="rgba(0,188,212,0.06)",$t="rgba(0,188,212,0.15)";function de(r,t){const o=Math.abs(r),a=r<0?"-":"",n=o.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:0});return`${a}${t}${n}`}function Or(r){return`${r>0?"+":""}${r.toFixed(1)}%`}function Gr(r,t){return`${r>0?"+":""}${de(r,t)}`}function y0({rows:r,period:t,showForecast:o=!1,currency:a="$",renderMode:n="web"}){const s=n==="pdf",l=n==="excel",i=s||l,d=i?"5px 8px":"9px 14px",x=i?"0 8px":"0 14px",p=i?24:34,f=i?11:13,u=i?8:9;return e.jsx("div",{style:{border:`1px solid ${Lr}`,borderRadius:l?0:8,overflow:"hidden"},children:e.jsxs("table",{style:{width:"100%",borderCollapse:"collapse"},children:[e.jsx("thead",{children:e.jsxs("tr",{style:{height:p,background:ae},children:[e.jsx("th",{style:{padding:x,paddingLeft:i?12:20,textAlign:"left",fontSize:u,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#ffffff",whiteSpace:"nowrap"},children:t?`Item · ${t}`:"Item"}),e.jsx("th",{style:Oe(u,x),children:"Budget"}),e.jsx("th",{style:Oe(u,x),children:"Actual"}),o&&e.jsx("th",{style:Oe(u,x),children:"Forecast"}),e.jsx("th",{style:Oe(u,x),children:"Variance $"}),e.jsx("th",{style:Oe(u,x),children:"Variance %"})]})}),e.jsx("tbody",{children:r.map((g,m)=>{if(g.isSectionHeader)return e.jsx("tr",{style:{background:v0,borderTop:m>0?`1px solid ${$t}`:void 0,borderBottom:`1px solid ${$t}`,borderLeft:`3px solid ${xa}`},children:e.jsx("td",{colSpan:o?6:5,style:{padding:i?"4px 8px":"6px 14px",paddingLeft:i?12:20,fontSize:i?8:9,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:ae},children:g.label})},m);if(g.isGrandTotal)return e.jsx(w0,{row:g,currency:a,showForecast:o,compact:i,fontSize:f},m);if(g.isTotal)return e.jsx(j0,{row:g,currency:a,showForecast:o,compact:i,fontSize:f},m);const h=(g.indent??0)*(i?10:14),b=g.budget!=null,w=g.actual!=null,S=b&&w?g.actual-g.budget:null,T=b&&w&&g.budget!==0?(g.actual-g.budget)/Math.abs(g.budget)*100:null,L=S==null?null:g.isNegativeGood?S<0:S>0,C=L==null?ve:L?Hr:_r;return e.jsxs("tr",{style:{background:"#ffffff",borderBottom:`1px solid ${pa}`},children:[e.jsx("td",{style:{padding:d,paddingLeft:(i?12:20)+h,fontSize:f,color:ae,whiteSpace:i?"nowrap":void 0},children:g.label}),e.jsx("td",{style:ne(f,d,ve),children:b?de(g.budget,a):"—"}),e.jsx("td",{style:ne(f,d,ae),children:w?de(g.actual,a):"—"}),o&&e.jsx("td",{style:ne(f,d,ve),children:g.forecast!=null?de(g.forecast,a):"—"}),e.jsx("td",{style:ne(f,d,C),children:S!=null?Gr(S,a):"—"}),e.jsx("td",{style:{padding:d,textAlign:"right"},children:T!=null?e.jsx("span",{style:{display:"inline-block",padding:"1px 5px",borderRadius:4,fontSize:i?10:11,fontWeight:600,fontFamily:Qe,color:C,background:L==null?"transparent":L?"rgba(113,212,129,0.10)":"rgba(251,96,96,0.09)"},children:Or(T)}):e.jsx("span",{style:{color:ve,fontSize:f},children:"—"})})]},m)})})]})})}function Oe(r,t){return{padding:t,textAlign:"right",fontSize:r,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#ffffff",fontFamily:Qe,whiteSpace:"nowrap"}}function ne(r,t,o){return{padding:t,textAlign:"right",fontSize:r,fontFamily:Qe,fontVariantNumeric:"tabular-nums",color:o,whiteSpace:"nowrap"}}function j0({row:r,currency:t,showForecast:o,compact:a,fontSize:n}){const s=r.budget!=null,l=r.actual!=null,i=s&&l?r.actual-r.budget:null,d=s&&l&&r.budget!==0?(r.actual-r.budget)/Math.abs(r.budget)*100:null,x=i==null?null:r.isNegativeGood?i<0:i>0,p=x==null?ve:x?Hr:_r,f=a?"5px 8px":"8px 14px";return e.jsxs("tr",{style:{background:pa,borderTop:`1px solid ${Lr}`,borderBottom:`1px solid ${Lr}`},children:[e.jsx("td",{style:{padding:f,paddingLeft:a?12:20,fontSize:a?9:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.04em",color:ae,whiteSpace:a?"nowrap":void 0},children:r.label}),e.jsx("td",{style:{...ne(n,f,ae),fontWeight:600},children:s?de(r.budget,t):"—"}),e.jsx("td",{style:{...ne(n,f,ae),fontWeight:600},children:l?de(r.actual,t):"—"}),o&&e.jsx("td",{style:{...ne(n,f,ae),fontWeight:600},children:r.forecast!=null?de(r.forecast,t):"—"}),e.jsx("td",{style:{...ne(n,f,p),fontWeight:600},children:i!=null?Gr(i,t):"—"}),e.jsx("td",{style:{padding:f,textAlign:"right"},children:d!=null?e.jsx("span",{style:{display:"inline-block",padding:"1px 5px",borderRadius:4,fontSize:a?10:11,fontWeight:700,fontFamily:Qe,color:p,background:x==null?"transparent":x?"rgba(113,212,129,0.10)":"rgba(251,96,96,0.09)"},children:Or(d)}):e.jsx("span",{style:{color:ve,fontSize:n},children:"—"})})]})}function w0({row:r,currency:t,showForecast:o,compact:a,fontSize:n}){const s=r.budget!=null,l=r.actual!=null,i=s&&l?r.actual-r.budget:null,d=s&&l&&r.budget!==0?(r.actual-r.budget)/Math.abs(r.budget)*100:null,x=i==null?null:r.isNegativeGood?i<0:i>0,p=x==null?ve:x?Hr:_r,f=a?24:34,u=a?"0 8px":"0 14px";return e.jsxs("tr",{style:{background:b0,borderTop:`2px solid ${xa}`,height:f},children:[e.jsx("td",{style:{padding:u,paddingLeft:a?12:20,fontSize:a?10:12,fontWeight:700,color:ae,whiteSpace:a?"nowrap":void 0},children:r.label}),e.jsx("td",{style:{...ne(n,u,ae),fontWeight:700},children:s?de(r.budget,t):"—"}),e.jsx("td",{style:{...ne(n,u,ae),fontWeight:700},children:l?de(r.actual,t):"—"}),o&&e.jsx("td",{style:{...ne(n,u,ae),fontWeight:700},children:r.forecast!=null?de(r.forecast,t):"—"}),e.jsx("td",{style:{...ne(n,u,p),fontWeight:700},children:i!=null?Gr(i,t):"—"}),e.jsx("td",{style:{padding:u,textAlign:"right"},children:d!=null?e.jsx("span",{style:{display:"inline-block",padding:"1px 5px",borderRadius:4,fontSize:a?10:11,fontWeight:700,fontFamily:Qe,color:p,background:x==null?"transparent":x?"rgba(113,212,129,0.13)":"rgba(251,96,96,0.11)"},children:Or(d)}):e.jsx("span",{style:{color:ve,fontSize:n},children:"—"})})]})}const C0=v("inline-flex items-center whitespace-nowrap",{variants:{variant:{square:"px-2 py-0.5 rounded text-[10px] font-bold uppercase tracking-wider",pill:"px-2.5 py-1 rounded-full text-[11px] font-semibold",entity:"px-2 py-0.5 rounded text-[11px] font-medium"}},defaultVariants:{variant:"pill"}}),fa=j.forwardRef(({className:r,variant:t="pill",bg:o,color:a,style:n,children:s,...l},i)=>e.jsx("span",{ref:i,className:y(C0({variant:t}),r),style:{background:o,color:a,...n},...l,children:s}));fa.displayName="Badge";const S0=v("bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[var(--archie-radius-xl)]",{variants:{variant:{default:"[box-shadow:var(--archie-shadow-sm)]",elevated:"[box-shadow:var(--archie-shadow-md)]",stat:"[box-shadow:var(--archie-shadow-sm)]"},padding:{none:"",sm:"p-3",md:"p-4",lg:"p-6"}},defaultVariants:{variant:"default",padding:"md"}}),ua=j.forwardRef(({className:r,variant:t="default",padding:o="md",children:a,...n},s)=>e.jsx("div",{ref:s,className:y(S0({variant:t,padding:o}),r),...n,children:a}));ua.displayName="Card";const ga=j.forwardRef(({className:r,label:t,hint:o,error:a,size:n="medium",disabled:s,...l},i)=>{const d=j.useId(),x=n==="small"?"h-8 text-xs px-2.5 pr-7":"h-10 text-[13px] px-3 pr-8";return e.jsxs("div",{className:"flex flex-col gap-1",children:[t&&e.jsx("label",{className:"text-[11px] font-semibold text-[var(--color-gray-800)]",children:t}),e.jsxs("div",{className:"relative",children:[e.jsx("select",{ref:i,className:y("w-full appearance-none rounded-[6px] border outline-none transition-colors duration-150","bg-[var(--color-white)] text-[var(--color-gray-1000)]",a?"border-[var(--color-red-1000)] bg-[var(--color-red-200)]":"border-[var(--color-gray-200)] focus:border-[var(--color-blue-800)] focus:ring-2 focus:ring-[rgba(21,177,205,0.12)]",s&&"bg-[var(--color-gray-50)] text-[var(--color-gray-600)] cursor-not-allowed",x,r),disabled:s,"aria-invalid":!!a,"aria-describedby":a?d:void 0,...l}),e.jsx("svg",{className:"pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2 text-[var(--color-gray-600)]",width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"m6 9 6 6 6-6"})})]}),a&&e.jsx("span",{id:d,className:"text-[11px] text-[var(--color-red-1000)]",role:"alert",children:a}),!a&&o&&e.jsx("span",{className:"text-[11px] text-[var(--color-gray-600)]",children:o})]})});ga.displayName="Select";const ma=j.forwardRef(({className:r,label:t,hint:o,error:a,showToggle:n=!0,size:s="medium",disabled:l,...i},d)=>{const[x,p]=j.useState(!1),f=j.useId(),u=s==="small"?"h-8 text-xs":"h-10 text-[13px]";return e.jsxs("div",{className:"flex flex-col gap-1",children:[t&&e.jsx("label",{className:"text-[11px] font-semibold text-[var(--color-gray-800)]",children:t}),e.jsxs("div",{className:y("flex items-center rounded-[6px] border transition-colors duration-150",a?"border-[var(--color-red-1000)]":"border-[var(--color-gray-200)] focus-within:border-[var(--color-blue-800)] focus-within:ring-2 focus-within:ring-[rgba(21,177,205,0.12)]",l&&"bg-[var(--color-gray-50)] cursor-not-allowed",u),children:[e.jsx("input",{ref:d,type:x?"text":"password",className:y("flex-1 bg-transparent border-none outline-none px-3 text-[var(--color-gray-1000)]",u,r),disabled:l,"aria-invalid":!!a,"aria-describedby":a?f:void 0,...i}),n&&e.jsx("button",{type:"button",onClick:()=>p(!x),className:"shrink-0 px-2.5 text-[var(--color-gray-600)] bg-transparent border-none cursor-pointer hover:text-[var(--color-gray-800)] transition-colors","aria-label":x?"Hide password":"Show password",tabIndex:-1,children:x?e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"}),e.jsx("path",{d:"M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"}),e.jsx("line",{x1:"1",x2:"23",y1:"1",y2:"23"})]}):e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),e.jsx("circle",{cx:"12",cy:"12",r:"3"})]})})]}),a&&e.jsx("span",{id:f,className:"text-[11px] text-[var(--color-red-1000)]",role:"alert",children:a}),!a&&o&&e.jsx("span",{className:"text-[11px] text-[var(--color-gray-600)]",children:o})]})});ma.displayName="PasswordField";const ha=j.forwardRef(({className:r,label:t,hint:o,error:a,suffix:n,size:s="medium",disabled:l,style:i,...d},x)=>{const p=j.useId(),f=s==="small"?"h-8 text-xs px-2":"h-10 text-[13px] px-2.5";return e.jsxs("div",{className:"flex flex-col gap-1",children:[t&&e.jsx("label",{className:"text-[11px] font-semibold text-[var(--color-gray-800)]",children:t}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("input",{ref:x,type:"number",className:y("rounded-[6px] border outline-none transition-colors duration-150 text-right","bg-[var(--color-white)] text-[var(--color-gray-1000)]",a?"border-[var(--color-red-1000)]":"border-[var(--color-gray-200)] focus:border-[var(--color-blue-800)] focus:ring-2 focus:ring-[rgba(21,177,205,0.12)]",l&&"bg-[var(--color-gray-50)] text-[var(--color-gray-600)] cursor-not-allowed",f,r),disabled:l,"aria-invalid":!!a,"aria-describedby":a?p:void 0,style:{width:100,...i},...d}),n&&e.jsx("span",{className:"text-[12px] text-[var(--color-gray-600)] shrink-0",children:n})]}),a&&e.jsx("span",{id:p,className:"text-[11px] text-[var(--color-red-1000)]",role:"alert",children:a}),!a&&o&&e.jsx("span",{className:"text-[11px] text-[var(--color-gray-600)]",children:o})]})});ha.displayName="NumberInput";const k0=v("flex gap-3 p-3 rounded-[var(--archie-radius-lg)] border",{variants:{variant:{success:"bg-[var(--color-green-200)] border-[rgba(113,212,129,0.25)]",error:"bg-[var(--color-red-200)] border-[rgba(251,96,96,0.19)]",warning:"bg-[#fef3c7] border-[rgba(251,191,36,0.25)]",info:"bg-[rgba(21,177,205,0.07)] border-[rgba(21,177,205,0.19)]"}},defaultVariants:{variant:"info"}}),At=v("text-[13px] font-semibold mb-0.5",{variants:{variant:{success:"text-[var(--color-green-1000)]",error:"text-[var(--color-red-1000)]",warning:"text-[#92400e]",info:"text-[var(--color-blue-800)]"}}}),N0=v("text-[12px] leading-[1.4]",{variants:{variant:{success:"text-[rgba(26,122,58,0.8)]",error:"text-[rgba(251,96,96,0.8)]",warning:"text-[rgba(146,64,14,0.8)]",info:"text-[rgba(21,177,205,0.8)]"}}}),z0={success:e.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),e.jsx("path",{d:"m9 11 3 3L22 4"})]}),error:e.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),e.jsx("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})]}),warning:e.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}),e.jsx("path",{d:"M12 9v4"}),e.jsx("path",{d:"M12 17h.01"})]}),info:e.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M12 16v-4"}),e.jsx("path",{d:"M12 8h.01"})]})},ba=j.forwardRef(({className:r,variant:t="info",title:o,body:a,icon:n,dismissible:s,onDismiss:l,...i},d)=>{const x=n??z0[t];return e.jsxs("div",{ref:d,className:y(k0({variant:t}),r),role:"alert",...i,children:[e.jsx("span",{className:y(At({variant:t}),"shrink-0 mt-0.5"),children:x}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:At({variant:t}),children:o}),a&&e.jsx("div",{className:N0({variant:t}),children:a})]}),s&&l&&e.jsx("button",{onClick:l,className:"shrink-0 p-1 bg-transparent border-none cursor-pointer opacity-60 hover:opacity-100 transition-opacity","aria-label":"Dismiss",children:e.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M18 6 6 18"}),e.jsx("path",{d:"m6 6 12 12"})]})})]})});ba.displayName="Banner";const va=j.forwardRef(({className:r,label:t,description:o,children:a,...n},s)=>e.jsxs("div",{ref:s,className:y("flex gap-4 py-[11px] px-4 items-center border-b border-[var(--color-gray-100)]",r),...n,children:[e.jsxs("div",{className:"flex-[0_0_160px]",children:[e.jsx("span",{className:"text-[13px] font-medium text-[var(--color-gray-1000)]",children:t}),o&&e.jsx("span",{className:"text-[11px] text-[var(--color-gray-600)] ml-1",children:o})]}),e.jsx("div",{className:"flex-1",children:a})]}));va.displayName="FieldRow";const ya=j.forwardRef(({className:r,sections:t,activeId:o,onSelect:a,...n},s)=>e.jsx("div",{ref:s,className:y("w-[180px] border border-[var(--color-gray-200)] rounded-[var(--archie-radius-xl)] overflow-hidden bg-[var(--color-white)]",r),...n,children:e.jsx("div",{className:"py-2",children:t.map(({category:l,items:i})=>e.jsxs("div",{children:[e.jsx("div",{className:"px-3 py-1.5 text-[9px] font-bold uppercase tracking-[0.1em] text-[var(--color-gray-600)]",children:l}),i.map(({id:d,label:x,icon:p})=>e.jsxs("button",{onClick:()=>a(d),className:y("w-full px-3 py-1.5 flex items-center gap-2 text-left text-[12px] border-l-2 cursor-pointer transition-colors duration-150 bg-transparent border-t-0 border-r-0 border-b-0",o===d?"bg-[rgba(21,177,205,0.07)] border-l-[var(--color-blue-800)] text-[var(--color-blue-800)] font-semibold":"border-l-transparent text-[var(--color-gray-800)] font-normal hover:bg-[var(--color-gray-50)]"),children:[p&&e.jsx("span",{className:"shrink-0 flex items-center",children:p}),x]},d))]},l))})}));ya.displayName="SettingsNav";const ja=j.forwardRef(({className:r,title:t,description:o,children:a,onSave:n,dirty:s,saveLabel:l="Save changes",...i},d)=>e.jsxs("div",{ref:d,className:y("bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[var(--archie-radius-xl)] overflow-hidden",r),...i,children:[e.jsxs("div",{className:"px-5 py-4 border-b border-[var(--color-gray-100)]",children:[e.jsx("div",{className:"text-[13px] font-bold text-[var(--color-gray-1000)]",children:t}),o&&e.jsx("div",{className:"text-[12px] text-[var(--color-gray-600)] mt-0.5",children:o})]}),e.jsx("div",{className:"px-5",children:a}),n&&e.jsxs("div",{className:"px-5 py-3 border-t border-[var(--color-gray-100)] flex items-center gap-2.5",children:[e.jsx("button",{onClick:n,disabled:!s,className:y("px-3.5 py-1.5 rounded-[6px] text-[13px] font-semibold border-none cursor-pointer transition-all duration-150",s?"bg-[var(--color-blue-1000)] text-[var(--color-white)] hover:opacity-90":"bg-[var(--color-gray-100)] text-[var(--color-gray-600)] cursor-default"),children:l}),s&&e.jsx("span",{className:"text-[12px] text-[var(--color-gray-600)]",children:"Unsaved changes"})]})]}));ja.displayName="SettingsSectionCard";const Mt="Geist Mono, ui-monospace, monospace";function T0({items:r,columns:t=4}){const o=t===2?"grid-cols-2":t===3?"grid-cols-3":"grid-cols-4";return e.jsx("div",{className:`grid ${o} gap-3`,children:r.map((a,n)=>e.jsxs("div",{className:"bg-[var(--color-bg-primary)] border border-[var(--color-border-default)] rounded-xl p-[18px_20px] flex flex-col gap-1.5",children:[e.jsx("div",{className:"text-[10px] font-bold uppercase tracking-[0.08em] text-[var(--color-text-tertiary)]",children:a.label}),e.jsx("div",{className:"text-[22px] font-light text-[var(--color-text-primary)] leading-none",style:{fontFamily:Mt,fontVariantNumeric:"tabular-nums",letterSpacing:"-0.02em"},children:a.value}),a.delta&&e.jsx("div",{className:"text-[11px] font-semibold",style:{fontFamily:Mt,color:a.deltaDir==="up"?"var(--dl-data-positive)":a.deltaDir==="down"?"var(--dl-data-negative)":a.deltaDir==="warning"?"var(--dl-data-warning)":"var(--dl-data-neutral)"},children:a.delta})]},n))})}const Rt="Geist Mono, ui-monospace, monospace",L0={up:"var(--dl-data-positive)",down:"var(--dl-data-negative)",flat:"var(--dl-data-neutral)",warning:"var(--dl-data-warning)"};function $0({label:r,value:t,delta:o,deltaDir:a}){return e.jsxs("div",{style:{background:"var(--color-bg-primary)",border:"1px solid var(--color-border-default)",borderRadius:12,padding:"18px 20px",display:"flex",flexDirection:"column",gap:6},children:[e.jsx("div",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary)"},children:r}),e.jsx("div",{style:{fontSize:28,fontWeight:300,color:"var(--color-text-primary)",lineHeight:1,fontFamily:Rt,fontVariantNumeric:"tabular-nums",letterSpacing:"-0.02em"},children:t}),o&&e.jsx("div",{style:{fontSize:12,fontWeight:600,fontFamily:Rt,color:L0[a??"flat"]??"var(--dl-data-neutral)"},children:o})]})}const A0="Geist Mono, ui-monospace, monospace",M0={up:"var(--dl-data-positive)",down:"var(--dl-data-negative)",flat:"var(--dl-data-neutral)"};function R0({label:r,value:t,trend:o,delta:a}){return e.jsxs("div",{style:{background:"var(--color-bg-primary)",border:"1px solid var(--color-border-default)",borderRadius:10,padding:"14px 16px",display:"flex",flexDirection:"column",gap:4},children:[e.jsx("div",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary)"},children:r}),e.jsx("div",{style:{fontSize:22,fontWeight:400,color:"var(--color-text-primary)",lineHeight:1,fontFamily:A0,fontVariantNumeric:"tabular-nums"},children:t}),a&&e.jsx("div",{style:{fontSize:11,color:o?M0[o]??"var(--dl-data-neutral)":"var(--color-text-tertiary)"},children:a})]})}const xr="Geist Mono, ui-monospace, monospace";function F0({row:r,columns:t}){const o=r.variant==="grand-total",a=o?"#022e40":"var(--color-bg-secondary, #f9fafb)",n=o?"#ffffff":"var(--color-text-primary, #000626)",s=o?"rgba(255,255,255,0.65)":"var(--color-text-secondary, #595f7a)";return e.jsx("tr",{style:{background:a,borderTop:o?"none":"1px solid var(--color-border-default, #e5e7eb)"},children:t.map((l,i)=>{const d=i===0,x=d?r.label:r.values[l.key]??"—",p=d||i===1?n:s;return e.jsx("td",{style:{padding:"10px 16px",textAlign:l.align==="right"?"right":"left",fontSize:o?14:13,fontWeight:o?700:600,color:p,fontFamily:l.mono||!d?xr:void 0,fontVariantNumeric:"tabular-nums"},children:x},l.key)})})}function I0({columns:r,groups:t,rows:o,totals:a}){return e.jsx("div",{className:"border border-[var(--color-border-default,#e5e7eb)] rounded-lg overflow-hidden",children:e.jsxs("table",{className:"w-full",style:{borderCollapse:"collapse"},children:[e.jsx("thead",{children:e.jsx("tr",{children:r.map(n=>e.jsx("th",{style:{padding:"9px 16px",textAlign:n.align==="right"?"right":n.align==="center"?"center":"left",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)",background:"var(--color-bg-secondary, #f9fafb)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)"},children:n.label},n.key))})}),e.jsxs("tbody",{children:[o==null?void 0:o.map((n,s)=>e.jsx("tr",{style:{background:"var(--color-bg-primary, #fff)",borderBottom:"1px solid var(--color-border-light, #f3f4f6)"},children:r.map((l,i)=>e.jsx("td",{style:{padding:"10px 16px",textAlign:l.align==="right"?"right":"left",fontSize:13,color:i===0?"var(--color-text-primary, #000626)":"var(--color-text-secondary, #595f7a)",fontFamily:l.mono?xr:void 0,fontVariantNumeric:l.mono?"tabular-nums":void 0},children:String(n[l.key]??"—")},l.key))},s)),t==null?void 0:t.map((n,s)=>e.jsxs(j.Fragment,{children:[e.jsx("tr",{style:{background:"var(--color-bg-secondary, #f9fafb)",borderTop:s>0?"1px solid var(--color-border-default, #e5e7eb)":void 0,borderBottom:"1px solid var(--color-border-default, #e5e7eb)"},children:e.jsxs("td",{colSpan:r.length,style:{padding:"7px 16px",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)"},children:[n.label,n.count!=null&&e.jsx("span",{style:{marginLeft:8,padding:"1px 6px",borderRadius:9999,fontSize:10,fontWeight:600,background:"var(--color-gray-200, #e5e7eb)",color:"var(--color-text-tertiary, #8c92af)"},children:n.count})]})}),n.rows.map((l,i)=>e.jsx("tr",{style:{background:"var(--color-bg-primary, #fff)",borderBottom:i<n.rows.length-1?"1px solid var(--color-border-light, #f3f4f6)":void 0},children:r.map((d,x)=>e.jsx("td",{style:{padding:"10px 16px",paddingLeft:x===0?24:16,textAlign:d.align==="right"?"right":"left",fontSize:13,color:x===0?"var(--color-text-secondary, #595f7a)":"var(--color-text-primary, #000626)",fontFamily:d.mono?xr:void 0,fontVariantNumeric:d.mono?"tabular-nums":void 0},children:String(l[d.key]??"—")},d.key))},i)),n.subtotal&&e.jsx("tr",{style:{background:"var(--color-bg-secondary, #f9fafb)",borderTop:"1px solid var(--color-border-default, #e5e7eb)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)"},children:r.map((l,i)=>e.jsx("td",{style:{padding:"9px 16px",textAlign:l.align==="right"?"right":"left",fontSize:i===0?11:13,fontWeight:600,textTransform:i===0?"uppercase":void 0,letterSpacing:i===0?"0.04em":void 0,color:i===0?"var(--color-text-tertiary, #8c92af)":"var(--color-text-primary, #000626)",fontFamily:l.mono?xr:void 0,fontVariantNumeric:l.mono?"tabular-nums":void 0},children:String(n.subtotal[l.key]??(i===0?"Subtotal":"—"))},l.key))})]},s)),a==null?void 0:a.map((n,s)=>e.jsx(F0,{row:n,columns:r},s))]})]})})}const B0="Geist Mono, ui-monospace, monospace";function D0({columns:r,rows:t}){return e.jsx("div",{className:"border border-[var(--color-border-default,#e5e7eb)] rounded-lg overflow-hidden",children:e.jsxs("table",{className:"w-full",style:{borderCollapse:"collapse"},children:[e.jsx("thead",{children:e.jsx("tr",{children:r.map(o=>e.jsx("th",{style:{padding:"9px 16px",textAlign:o.align==="right"?"right":o.align==="center"?"center":"left",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)",background:"var(--color-bg-secondary, #f9fafb)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)"},children:o.label},o.key))})}),e.jsx("tbody",{children:t.map((o,a)=>e.jsx("tr",{style:{background:"var(--color-bg-primary, #fff)",borderBottom:a<t.length-1?"1px solid var(--color-border-light, #f3f4f6)":void 0},children:r.map((n,s)=>e.jsx("td",{style:{padding:"10px 16px",textAlign:n.align==="right"?"right":n.align==="center"?"center":"left",fontSize:13,color:s===0?"var(--color-text-primary, #000626)":"var(--color-text-secondary, #595f7a)",fontFamily:n.mono?B0:void 0,fontVariantNumeric:n.mono?"tabular-nums":void 0},children:String(o[n.key]??"—")},n.key))},a))})]})})}const E0="Geist Mono, ui-monospace, monospace";function P0({rowLabel:r,columns:t,rows:o}){return e.jsx("div",{className:"border border-[var(--color-border-default,#e5e7eb)] rounded-lg overflow-hidden",children:e.jsxs("table",{className:"w-full",style:{borderCollapse:"collapse"},children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{style:{padding:"9px 16px",textAlign:"left",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)",background:"var(--color-bg-secondary, #f9fafb)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)",whiteSpace:"nowrap"},children:r}),t.map(a=>e.jsx("th",{style:{padding:"9px 16px",textAlign:"right",fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:a.highlight?"#022e40":"var(--color-text-tertiary, #8c92af)",background:a.highlight?"#f0f9ff":"var(--color-bg-secondary, #f9fafb)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)",whiteSpace:"nowrap"},children:a.label},a.key))]})}),e.jsx("tbody",{children:(o??[]).map((a,n)=>e.jsxs("tr",{style:{background:"var(--color-bg-primary, #fff)",borderBottom:n<(o??[]).length-1?"1px solid var(--color-border-light, #f3f4f6)":void 0},children:[e.jsx("td",{style:{padding:"10px 16px",fontSize:13,color:"var(--color-text-primary, #000626)"},children:String(a.account??"")}),t.map(s=>e.jsx("td",{style:{padding:"10px 16px",textAlign:"right",fontSize:13,fontFamily:E0,fontVariantNumeric:"tabular-nums",color:s.highlight?"var(--color-text-primary, #000626)":"var(--color-text-secondary, #595f7a)",background:s.highlight?"#f0f9ff":void 0},children:String(a[s.key]??"—")},s.key))]},n))})]})})}const Ft={draft:{bg:"var(--color-gray-200, #e5e7eb)",color:"var(--color-text-secondary, #595f7a)",label:"Draft"},provisional:{bg:"#fef9c3",color:"#854d0e",label:"Provisional"},final:{bg:"#dcfce7",color:"#166534",label:"Final"}};function W0({title:r,subtitle:t,period:o,generatedAt:a,status:n}){const s=Ft[n??""]??Ft.draft;return e.jsxs("div",{className:"flex items-start justify-between gap-4",style:{padding:"20px 24px",background:"var(--color-bg-primary, #fff)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)"},children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("h1",{style:{margin:0,fontSize:20,fontWeight:700,color:"var(--color-text-primary, #000626)",lineHeight:1.25},children:r}),t&&e.jsx("p",{style:{margin:0,fontSize:13,color:"var(--color-text-secondary, #595f7a)"},children:t}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,marginTop:4},children:[o&&e.jsx("span",{style:{fontSize:12,color:"var(--color-text-tertiary, #8c92af)"},children:o}),o&&a&&e.jsx("span",{style:{fontSize:12,color:"#e5e7eb"},children:"·"}),a&&e.jsxs("span",{style:{fontSize:12,color:"var(--color-text-tertiary, #8c92af)"},children:["Generated ",a]})]})]}),n&&e.jsx("span",{style:{padding:"3px 10px",borderRadius:9999,fontSize:11,fontWeight:600,background:s.bg,color:s.color,whiteSpace:"nowrap",flexShrink:0},children:s.label})]})}function V0({period:r,prevPeriod:t,nextPeriod:o,actions:a}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,padding:"8px 16px",background:"var(--color-bg-secondary, #f9fafb)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)",flexWrap:"wrap"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[t&&e.jsxs("button",{style:{padding:"4px 10px",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6,background:"#fff",color:"var(--color-text-secondary, #595f7a)",fontSize:12,cursor:"pointer"},children:["← ",t]}),e.jsx("span",{style:{padding:"4px 12px",border:"1px solid #022e40",borderRadius:6,background:"#f0f9ff",color:"#022e40",fontSize:12,fontWeight:600},children:r}),o&&e.jsxs("button",{style:{padding:"4px 10px",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6,background:"#fff",color:"var(--color-text-secondary, #595f7a)",fontSize:12,cursor:"pointer"},children:[o," →"]})]}),a&&a.length>0&&e.jsx("div",{style:{display:"flex",alignItems:"center",gap:6},children:a.map((n,s)=>e.jsx("button",{style:{padding:"5px 14px",border:n.variant==="primary"?"none":"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6,background:n.variant==="primary"?"#022e40":"#fff",color:n.variant==="primary"?"#fff":"var(--color-text-secondary, #595f7a)",fontSize:12,fontWeight:500,cursor:"pointer"},children:n.label},s))})]})}function H0({periods:r,activePeriod:t,compareEnabled:o}){return e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 16px",background:"var(--color-bg-secondary, #f9fafb)",borderBottom:"1px solid var(--color-border-default, #e5e7eb)",flexWrap:"wrap"},children:[e.jsx("div",{style:{display:"flex",alignItems:"center",gap:2,padding:2,background:"var(--color-gray-100, #f3f4f6)",borderRadius:8,border:"1px solid var(--color-border-light, #f3f4f6)"},children:(r??[]).map(a=>{const n=a.id===t;return e.jsx("button",{style:{padding:"4px 12px",borderRadius:6,border:"none",background:n?"#fff":"transparent",color:n?"var(--color-text-primary, #000626)":"var(--color-text-tertiary, #8c92af)",fontSize:12,fontWeight:n?600:400,cursor:"pointer",boxShadow:n?"0 1px 2px rgba(0,0,0,0.08)":"none"},children:a.label},a.id)})}),o!=null&&e.jsxs("label",{style:{display:"flex",alignItems:"center",gap:6,cursor:"pointer",fontSize:12,color:"var(--color-text-secondary, #595f7a)"},children:[e.jsx("span",{style:{display:"inline-flex",width:28,height:16,borderRadius:9999,background:o?"#022e40":"var(--color-gray-300, #d1d5db)",alignItems:"center",padding:"0 2px"},children:e.jsx("span",{style:{width:12,height:12,borderRadius:"50%",background:"#fff",transform:o?"translateX(12px)":"translateX(0)",transition:"transform 0.15s"}})}),"Compare to previous"]})]})}function _0({title:r,body:t,actions:o}){return e.jsxs("div",{style:{background:"var(--color-bg-primary, #fff)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:12,padding:"20px 24px",display:"flex",flexDirection:"column",gap:12},children:[r&&e.jsx("h3",{style:{margin:0,fontSize:15,fontWeight:600,color:"var(--color-text-primary, #000626)"},children:r}),t&&e.jsx("p",{style:{margin:0,fontSize:13,lineHeight:1.6,color:"var(--color-text-secondary, #595f7a)"},children:t}),o&&o.length>0&&e.jsx("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:o.map((a,n)=>e.jsx("button",{style:{padding:"6px 16px",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:8,background:"var(--color-bg-secondary, #f9fafb)",color:"var(--color-text-primary, #000626)",fontSize:13,fontWeight:500,cursor:"pointer"},children:a.label},n))})]})}function O0({title:r,description:t,children:o}){return e.jsxs("div",{style:{background:"var(--color-bg-primary, #fff)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:12,overflow:"hidden"},children:[(r||t)&&e.jsxs("div",{style:{padding:"14px 20px",borderBottom:"1px solid var(--color-border-default, #e5e7eb)",background:"var(--color-bg-secondary, #f9fafb)"},children:[r&&e.jsx("h3",{style:{margin:0,fontSize:14,fontWeight:600,color:"var(--color-text-primary, #000626)"},children:r}),t&&e.jsx("p",{style:{margin:r?"2px 0 0":0,fontSize:12,color:"var(--color-text-tertiary, #8c92af)"},children:t})]}),o&&e.jsx("div",{style:{padding:20},children:o})]})}const G0={Active:{bg:"#dcfce7",color:"#15803d"},Inactive:{bg:"var(--color-gray-100, #f3f4f6)",color:"var(--color-text-tertiary, #8c92af)"},Pending:{bg:"#fef9c3",color:"#d97706"},Suspended:{bg:"#fee2e2",color:"#dc2626"}};function U0({name:r,type:t,status:o,meta:a}){const n=G0[o??""]??{bg:"var(--color-gray-100, #f3f4f6)",color:"var(--color-text-secondary, #595f7a)"};return e.jsxs("div",{style:{background:"var(--color-bg-primary, #fff)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:12,padding:"16px 20px",display:"flex",flexDirection:"column",gap:12},children:[e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:8},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[e.jsx("span",{style:{fontSize:15,fontWeight:600,color:"var(--color-text-primary, #000626)"},children:r}),t&&e.jsx("span",{style:{fontSize:12,color:"var(--color-text-tertiary, #8c92af)"},children:t})]}),o&&e.jsx("span",{style:{padding:"3px 10px",borderRadius:9999,fontSize:11,fontWeight:600,background:n.bg,color:n.color,flexShrink:0},children:o})]}),a&&a.length>0&&e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gap:"8px 16px",paddingTop:8,borderTop:"1px solid var(--color-border-light, #f3f4f6)"},children:a.map((s,l)=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[e.jsx("span",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--color-text-tertiary, #8c92af)"},children:s.label}),e.jsx("span",{style:{fontSize:13,color:"var(--color-text-primary, #000626)"},children:s.value})]},l))})]})}function Y0({gap:r=4,direction:t="vertical",children:o}){return e.jsx("div",{style:{display:"flex",flexDirection:t==="horizontal"?"row":"column",gap:r*4,width:"100%"},children:o})}function Z0({columns:r=2,gap:t=4,children:o}){return e.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${r}, 1fr)`,gap:t*4,width:"100%"},children:o})}const It={info:{bg:"var(--color-blue-50, #eff6ff)",border:"var(--color-blue-200, #bfdbfe)",titleColor:"#1e40af",msgColor:"#3b82f6",icon:"ℹ"},success:{bg:"#f0fdf4",border:"#bbf7d0",titleColor:"#166534",msgColor:"#16a34a",icon:"✓"},warning:{bg:"#fefce8",border:"#fde68a",titleColor:"#854d0e",msgColor:"#d97706",icon:"⚠"},error:{bg:"#fef2f2",border:"#fecaca",titleColor:"#991b1b",msgColor:"#dc2626",icon:"✕"}};function K0({variant:r="info",title:t,message:o,action:a}){const n=It[r]??It.info;return e.jsxs("div",{style:{display:"flex",gap:12,padding:"12px 16px",background:n.bg,border:`1px solid ${n.border}`,borderRadius:10,alignItems:"flex-start"},children:[e.jsx("span",{style:{fontSize:14,color:n.msgColor,flexShrink:0,marginTop:1},children:n.icon}),e.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[e.jsx("span",{style:{fontSize:13,fontWeight:600,color:n.titleColor},children:t}),o&&e.jsx("span",{style:{fontSize:12,color:n.msgColor},children:o})]}),a&&e.jsx("button",{style:{padding:"4px 12px",border:`1px solid ${n.border}`,borderRadius:6,background:"transparent",color:n.titleColor,fontSize:12,fontWeight:500,cursor:"pointer",flexShrink:0},children:a.label})]})}const Bt={success:{bg:"var(--dl-data-positive-bg, #dcfce7)",color:"var(--dl-data-positive)"},warning:{bg:"var(--dl-data-warning-bg, #fef9c3)",color:"var(--dl-data-warning)"},error:{bg:"var(--dl-data-negative-bg, #fee2e2)",color:"var(--dl-data-negative)"},info:{bg:"var(--color-blue-50, #eff6ff)",color:"#1d4ed8"},neutral:{bg:"var(--color-gray-100, #f3f4f6)",color:"var(--color-text-secondary, #595f7a)"}};function X0({label:r,variant:t="neutral"}){const o=Bt[t]??Bt.neutral;return e.jsx("span",{style:{display:"inline-flex",alignItems:"center",padding:"3px 10px",borderRadius:9999,fontSize:11,fontWeight:600,background:o.bg,color:o.color,whiteSpace:"nowrap"},children:r})}function q0({title:r,description:t,action:o}){return e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:"48px 24px",textAlign:"center"},children:[e.jsx("div",{style:{width:40,height:40,borderRadius:"50%",background:"var(--color-bg-secondary, #f9fafb)",border:"1px solid var(--color-border-default, #e5e7eb)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:18,color:"var(--color-text-tertiary, #8c92af)"},children:"○"}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[e.jsx("h3",{style:{margin:0,fontSize:15,fontWeight:600,color:"var(--color-text-primary, #000626)"},children:r}),t&&e.jsx("p",{style:{margin:0,fontSize:13,color:"var(--color-text-secondary, #595f7a)",maxWidth:360},children:t})]}),o&&e.jsx("button",{style:{padding:"8px 20px",border:"none",borderRadius:8,background:"#022e40",color:"#ffffff",fontSize:13,fontWeight:600,cursor:"pointer"},children:o.label})]})}function J0({value:r,label:t}){const o=Math.min(100,Math.max(0,r));return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[t&&e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:12,color:"var(--color-text-secondary, #595f7a)"},children:[e.jsx("span",{children:t}),e.jsxs("span",{style:{fontWeight:600,color:"var(--color-text-primary, #000626)"},children:[o,"%"]})]}),e.jsx("div",{style:{height:6,background:"var(--color-gray-200, #e5e7eb)",borderRadius:9999,overflow:"hidden"},children:e.jsx("div",{style:{height:"100%",width:`${o}%`,background:"#022e40",borderRadius:9999,transition:"width 0.3s ease"}})})]})}const Dt={running:{bg:"#eff6ff",color:"#1d4ed8",label:"Running"},paused:{bg:"#fef9c3",color:"#d97706",label:"Paused"},completed:{bg:"#dcfce7",color:"#15803d",label:"Done"},failed:{bg:"#fee2e2",color:"#dc2626",label:"Failed"},pending:{bg:"var(--color-gray-100, #f3f4f6)",color:"var(--color-text-secondary, #595f7a)",label:"Pending"}};function Q0({name:r,status:t,progressPct:o,currentStep:a,completedSteps:n,totalSteps:s,clientName:l}){const i=Dt[t]??Dt.pending,d=Math.min(100,Math.max(0,o??0));return e.jsxs("div",{style:{background:"var(--color-bg-primary, #fff)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:12,padding:"16px 20px",display:"flex",flexDirection:"column",gap:12},children:[e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:8},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[e.jsx("span",{style:{fontSize:14,fontWeight:600,color:"var(--color-text-primary, #000626)"},children:r}),l&&e.jsx("span",{style:{fontSize:12,color:"var(--color-text-tertiary, #8c92af)"},children:l})]}),e.jsx("span",{style:{padding:"3px 10px",borderRadius:9999,fontSize:11,fontWeight:600,background:i.bg,color:i.color,flexShrink:0},children:i.label})]}),o!=null&&e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:12,color:"var(--color-text-secondary, #595f7a)"},children:[a&&e.jsx("span",{children:a}),n!=null&&s!=null&&e.jsxs("span",{style:{fontWeight:600},children:[n,"/",s," steps"]})]}),e.jsx("div",{style:{height:4,background:"var(--color-gray-200, #e5e7eb)",borderRadius:9999,overflow:"hidden"},children:e.jsx("div",{style:{height:"100%",width:`${d}%`,background:t==="failed"?"#dc2626":"#022e40",borderRadius:9999}})})]})]})}const Et={pending:{bg:"var(--color-gray-100, #f3f4f6)",color:"var(--color-text-secondary, #595f7a)"},running:{bg:"#eff6ff",color:"#1d4ed8"},done:{bg:"#dcfce7",color:"#15803d"},failed:{bg:"#fee2e2",color:"#dc2626"},skipped:{bg:"var(--color-gray-100, #f3f4f6)",color:"var(--color-text-tertiary, #8c92af)"},awaiting_approval:{bg:"#fef9c3",color:"#d97706"}},e1={data_extraction:"Extraction",analysis:"Analysis",document_creation:"Document",api_call:"API",human_review:"Review",notification:"Notify"};function r1({name:r,status:t,type:o,outputSummary:a}){const n=Et[t]??Et.pending,s=e1[o??""]??o??"Task";return e.jsxs("div",{style:{background:"var(--color-bg-primary, #fff)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:10,padding:"12px 16px",display:"flex",flexDirection:"column",gap:6},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx("span",{style:{padding:"2px 7px",borderRadius:5,fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.06em",background:"var(--color-bg-secondary, #f9fafb)",color:"var(--color-text-tertiary, #8c92af)",flexShrink:0},children:s}),e.jsx("span",{style:{fontSize:13,fontWeight:500,color:"var(--color-text-primary, #000626)"},children:r})]}),e.jsx("span",{style:{padding:"2px 8px",borderRadius:9999,fontSize:11,fontWeight:600,background:n.bg,color:n.color,flexShrink:0},children:t})]}),a&&e.jsx("p",{style:{margin:0,fontSize:12,color:"var(--color-text-secondary, #595f7a)",paddingLeft:2},children:a})]})}function t1({title:r,description:t,context:o,approveLabel:a,rejectLabel:n}){return e.jsxs("div",{style:{background:"var(--color-bg-primary, #fff)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:12,padding:"20px 24px",display:"flex",flexDirection:"column",gap:16},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[e.jsx("h3",{style:{margin:0,fontSize:15,fontWeight:600,color:"var(--color-text-primary, #000626)"},children:r}),t&&e.jsx("p",{style:{margin:0,fontSize:13,color:"var(--color-text-secondary, #595f7a)"},children:t})]}),o&&e.jsx("div",{style:{padding:"10px 14px",background:"var(--color-bg-secondary, #f9fafb)",borderRadius:8,border:"1px solid var(--color-border-light, #f3f4f6)",fontSize:12,color:"var(--color-text-secondary, #595f7a)",fontFamily:"Geist Mono, ui-monospace, monospace"},children:o}),e.jsxs("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:[n&&e.jsx("button",{style:{padding:"8px 20px",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:8,background:"var(--color-bg-primary, #fff)",color:"var(--color-text-secondary, #595f7a)",fontSize:13,fontWeight:500,cursor:"pointer"},children:n}),e.jsx("button",{style:{padding:"8px 20px",border:"none",borderRadius:8,background:"#022e40",color:"#ffffff",fontSize:13,fontWeight:600,cursor:"pointer"},children:a})]})]})}const Pt={up:{bg:"var(--dl-data-positive-bg, #dcfce7)",color:"var(--dl-data-positive)"},down:{bg:"var(--dl-data-negative-bg, #fee2e2)",color:"var(--dl-data-negative)"},flat:{bg:"var(--color-gray-100, #f3f4f6)",color:"var(--dl-data-neutral)"},warning:{bg:"var(--dl-data-warning-bg, #fef9c3)",color:"var(--dl-data-warning)"}};function o1({value:r,direction:t}){const o=Pt[t??"flat"]??Pt.flat;return e.jsx("span",{style:{display:"inline-flex",alignItems:"center",padding:"2px 8px",borderRadius:9999,fontSize:11,fontWeight:600,fontFamily:"Geist Mono, ui-monospace, monospace",background:o.bg,color:o.color,whiteSpace:"nowrap"},children:r})}const a1={up:"var(--dl-data-positive)",down:"var(--dl-data-negative)",flat:"var(--dl-data-neutral)"},n1="Geist Mono, ui-monospace, monospace";function s1({items:r}){return e.jsx("div",{style:{display:"flex",alignItems:"stretch",background:"var(--color-bg-secondary, #f9fafb)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:8,overflow:"hidden"},children:r.map((t,o)=>e.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,padding:"12px 16px",borderLeft:o>0?"1px solid var(--color-border-default, #e5e7eb)":void 0},children:[e.jsx("span",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)"},children:t.label}),e.jsx("span",{style:{fontSize:16,fontWeight:600,fontFamily:n1,fontVariantNumeric:"tabular-nums",color:a1[t.direction??"flat"]??"var(--dl-data-neutral)"},children:t.value})]},o))})}const Wt={default:{bg:"#ffffff",border:"var(--color-border-default, #e5e7eb)"},highlighted:{bg:"var(--color-bg-secondary, #f9fafb)",border:"var(--color-border-default, #e5e7eb)"},audit:{bg:"#fffbeb",border:"#fde68a"}};function l1({content:r,author:t,authorRole:o,date:a,sectionLabel:n,expandable:s,defaultExpanded:l=!0,variant:i="default",className:d}){const[x,p]=j.useState(l),f=Wt[i]??Wt.default,u=s&&r.length>200&&!x;return e.jsxs("div",{className:d,style:{display:"flex",flexDirection:"column",gap:8,padding:"14px 16px",background:f.bg,border:`1px solid ${f.border}`,borderRadius:10},children:[n&&e.jsx("span",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)"},children:n}),e.jsx("p",{style:{fontSize:13,lineHeight:1.6,color:"var(--color-text-primary, #000626)",margin:0,...u?{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden"}:{}},children:r}),s&&r.length>200&&e.jsx("button",{onClick:()=>p(!x),style:{background:"none",border:"none",cursor:"pointer",fontSize:12,fontWeight:500,color:"var(--dl-data-neutral, #6b7280)",padding:0,textAlign:"left"},children:x?"Show less":"Show more"}),(t||a)&&e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{borderTop:"1px solid var(--color-border-light, #f3f4f6)",margin:"4px 0"}}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[t&&e.jsx("div",{style:{width:24,height:24,borderRadius:"50%",background:"var(--color-gray-200, #e5e7eb)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:10,fontWeight:600,color:"var(--color-text-secondary, #595f7a)"},children:t.split(" ").map(g=>g[0]).join("").slice(0,2)}),e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[t&&e.jsx("span",{style:{fontSize:12,fontWeight:500,color:"var(--color-text-primary, #000626)"},children:t}),o&&e.jsx("span",{style:{fontSize:11,color:"var(--color-text-tertiary, #8c92af)"},children:o})]})]}),a&&e.jsx("span",{style:{fontSize:11,color:"var(--color-text-tertiary, #8c92af)"},children:a})]})]})]})}function i1({label:r,description:t,sectionNumber:o,children:a,noBorder:n,className:s}){return e.jsxs("section",{className:s,style:{display:"flex",flexDirection:"column",gap:4,...n?{}:{borderTop:"1px solid var(--color-border-default, #e5e7eb)",paddingTop:16}},children:[e.jsxs("h2",{style:{fontSize:13,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-primary, #000626)",margin:0},children:[o&&e.jsx("span",{style:{color:"var(--color-text-tertiary, #8c92af)",marginRight:8},children:o}),r]}),t&&e.jsx("p",{style:{fontSize:13,color:"var(--color-text-secondary, #595f7a)",margin:0},children:t}),a&&e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:4},children:a})]})}const c1={info:"ℹ",success:"✓",warning:"⚠",error:"✕"},Vt={info:"#1e40af",success:"#166534",warning:"#854d0e",error:"#991b1b"},Ht={info:"#3b82f6",success:"#16a34a",warning:"#d97706",error:"#dc2626"},d1={info:"#eff6ff",success:"#f0fdf4",warning:"#fefce8",error:"#fef2f2"},_t={info:"#bfdbfe",success:"#bbf7d0",warning:"#fde68a",error:"#fecaca"};function p1({variant:r="info",title:t,message:o,action:a,className:n}){const s=r;return e.jsxs("div",{className:n,style:{display:"flex",gap:12,padding:"12px 16px",background:d1[s],border:`1px solid ${_t[s]}`,borderRadius:10,alignItems:"flex-start"},children:[e.jsx("span",{style:{fontSize:14,color:Ht[s],flexShrink:0,marginTop:1},children:c1[s]}),e.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[e.jsx("span",{style:{fontSize:13,fontWeight:600,color:Vt[s]},children:t}),o&&e.jsx("span",{style:{fontSize:12,color:Ht[s]},children:o})]}),a&&e.jsx("button",{onClick:a.onClick,style:{padding:"4px 12px",border:`1px solid ${_t[s]}`,borderRadius:6,background:"transparent",color:Vt[s],fontSize:12,fontWeight:500,cursor:"pointer",flexShrink:0},children:a.label})]})}const x1={month:"Monthly",quarter:"Quarterly",year:"Annual",custom:"Custom"},Ot={display:"inline-flex",alignItems:"center",justifyContent:"center",width:28,height:28,borderRadius:6,border:"1px solid var(--color-border-default, #e5e7eb)",background:"#fff",color:"var(--color-text-primary, #000626)",cursor:"pointer",flexShrink:0};function f1({current:r,available:t=[],format:o,availableFormats:a=[],onPeriodChange:n,onFormatChange:s,hasPrev:l=!0,hasNext:i=!1,compact:d,className:x}){return e.jsxs("div",{className:x,style:{display:"flex",alignItems:"center",gap:d?4:8,flexWrap:"wrap"},children:[e.jsx("button",{style:{...Ot,opacity:l?1:.4},disabled:!l,onClick:()=>{if(l&&t.length>1){const p=t.findIndex(f=>f.id===r.id);p>0&&(n==null||n(t[p-1].id))}},"aria-label":"Previous period",children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:e.jsx("path",{d:"M7.5 2L3.5 6L7.5 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),t.length>1?e.jsx("select",{value:r.id,onChange:p=>n==null?void 0:n(p.target.value),style:{border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6,background:"#fff",fontSize:d?12:13,fontWeight:500,padding:d?"4px 8px":"6px 12px",cursor:"pointer",textAlign:"center"},"aria-label":"Select period",children:t.map(p=>e.jsx("option",{value:p.id,children:p.label},p.id))}):e.jsx("span",{style:{fontSize:d?12:13,fontWeight:600,color:"var(--color-text-primary, #000626)",minWidth:80,textAlign:"center"},children:r.label}),e.jsx("button",{style:{...Ot,opacity:i?1:.4},disabled:!i,onClick:()=>{if(i&&t.length>1){const p=t.findIndex(f=>f.id===r.id);p<t.length-1&&(n==null||n(t[p+1].id))}},"aria-label":"Next period",children:e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:e.jsx("path",{d:"M4.5 2L8.5 6L4.5 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),a.length>1&&o&&e.jsx("div",{style:{display:"flex",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6,overflow:"hidden"},role:"group","aria-label":"Period format",children:a.map(p=>e.jsx("button",{onClick:()=>s==null?void 0:s(p),"aria-pressed":p===o,style:{padding:d?"4px 8px":"6px 12px",fontSize:d?11:12,fontWeight:p===o?600:400,background:p===o?"var(--color-text-primary, #000626)":"#fff",color:p===o?"#fff":"var(--color-text-secondary, #595f7a)",border:"none",cursor:"pointer"},children:x1[p]??p},p))})]})}function u1({modes:r,activeMode:t,onModeChange:o,variant:a="default",compact:n,className:s}){const l=a==="pills";return e.jsx("div",{className:s,role:"group","aria-label":"Comparison mode",style:{display:"flex",...l?{gap:4}:{border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6,overflow:"hidden"}},children:r.map(i=>{const d=i.id===t,x=n&&i.shortLabel?i.shortLabel:i.label,p={padding:n?"4px 8px":"6px 12px",fontSize:n?11:12,cursor:i.disabled?"not-allowed":"pointer",opacity:i.disabled?.4:1,border:"none",fontWeight:d?600:400,transition:"background 0.15s, color 0.15s"},f=l?d?{background:"var(--color-text-primary, #000626)",color:"#fff",border:"1px solid var(--color-text-primary, #000626)",borderRadius:6}:{background:"#fff",color:"var(--color-text-secondary, #595f7a)",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6}:d?{background:"var(--color-text-primary, #000626)",color:"#fff"}:{background:"#fff",color:"var(--color-text-secondary, #595f7a)"};return e.jsx("button",{onClick:()=>!i.disabled&&(o==null?void 0:o(i.id)),"aria-pressed":d,disabled:i.disabled,style:{...p,...f},children:x},i.id)})})}const g1={pdf:{label:"PDF",icon:"⬇"},excel:{label:"Excel",icon:"⬇"},csv:{label:"CSV",icon:"⬇"},print:{label:"Print",icon:"⎙"}};function m1({actions:r,label:t,size:o="md",className:a}){const n=o==="sm";return e.jsxs("div",{className:a,style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[t&&e.jsx("span",{style:{fontSize:12,fontWeight:500,color:"var(--color-text-tertiary, #8c92af)",marginRight:4},children:t}),r.map(s=>{const l=g1[s.format]??{label:s.format,icon:"⬇"};return e.jsxs("button",{onClick:s.onClick,disabled:s.disabled,style:{display:"inline-flex",alignItems:"center",gap:6,padding:n?"4px 8px":"6px 12px",border:"1px solid var(--color-border-default, #e5e7eb)",borderRadius:6,background:"#fff",color:"var(--color-text-secondary, #595f7a)",fontSize:n?11:12,fontWeight:500,cursor:s.disabled?"not-allowed":"pointer",opacity:s.disabled?.4:1},children:[e.jsx("span",{style:{color:"var(--color-text-tertiary, #8c92af)"},children:l.icon}),s.label??l.label]},s.format)})]})}const Gt={draft:{label:"Draft",bg:"var(--color-gray-200, #e5e7eb)",color:"var(--color-text-secondary, #595f7a)"},reviewed:{label:"Reviewed",bg:"#fef9c3",color:"#854d0e"},"signed-off":{label:"Signed Off",bg:"#bbf7d0",color:"#166534"},filed:{label:"Filed",bg:"#bfdbfe",color:"#1e40af"}};function h1({firmName:r,preparedBy:t,reviewedBy:o,date:a,reference:n,status:s="draft",className:l}){const i=Gt[s]??Gt.draft;return e.jsxs("div",{className:l,style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderTop:"1px solid var(--color-border-default, #e5e7eb)",paddingTop:12},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[r&&e.jsx("span",{style:{fontSize:13,fontWeight:600,color:"var(--color-text-primary, #000626)"},children:r}),n&&e.jsx("span",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)"},children:n}),e.jsxs("div",{style:{display:"flex",gap:16,marginTop:4},children:[t&&e.jsxs("span",{style:{fontSize:12,color:"var(--color-text-secondary, #595f7a)"},children:["Prepared by: ",e.jsx("strong",{children:t})]}),o&&e.jsxs("span",{style:{fontSize:12,color:"var(--color-text-secondary, #595f7a)"},children:["Reviewed by: ",e.jsx("strong",{children:o})]}),a&&e.jsx("span",{style:{fontSize:12,color:"var(--color-text-tertiary, #8c92af)"},children:a})]})]}),e.jsx("span",{style:{fontSize:11,fontWeight:600,padding:"3px 10px",borderRadius:999,background:i.bg,color:i.color,whiteSpace:"nowrap"},children:i.label})]})}function b1({footnotes:r,className:t}){return!r||r.length===0?null:e.jsxs("div",{className:t,style:{borderTop:"1px solid var(--color-border-default, #e5e7eb)",paddingTop:16,display:"flex",flexDirection:"column",gap:6},children:[e.jsx("span",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--color-text-tertiary, #8c92af)"},children:"Notes"}),r.map(o=>e.jsxs("div",{style:{display:"flex",gap:8,alignItems:"flex-start"},children:[e.jsxs("span",{style:{fontSize:11,fontWeight:700,color:"#1e40af",minWidth:20,textAlign:"right",fontVariantNumeric:"tabular-nums"},children:["[",o.number,"]"]}),e.jsx("span",{style:{fontSize:12,color:"var(--color-text-secondary, #595f7a)",lineHeight:1.5},children:o.text})]},o.number))]})}function v1({number:r,onClick:t,className:o}){return e.jsxs("sup",{className:o,onClick:()=>t==null?void 0:t(r),title:`Footnote ${r}`,"aria-label":`Footnote ${r}`,style:{fontSize:10,fontWeight:700,color:"#1e40af",cursor:t?"pointer":"default",marginLeft:1},children:["[",r,"]"]})}const Ut={up:"#166534",down:"#dc2626",flat:"#6b7280"};function y1(r){if(r.length<2)return"flat";const t=r[0].value,o=r[r.length-1].value;return o>t?"up":o<t?"down":"flat"}function j1({data:r,direction:t,width:o=80,height:a=24,showLastDot:n=!0,className:s}){if(!r||r.length<2)return null;const l=t??y1(r),i=Ut[l]??Ut.flat,d=r.map(b=>b.value),x=Math.min(...d),f=Math.max(...d)-x||1,u=3,g=d.map((b,w)=>{const S=u+w/(d.length-1)*(o-u*2),T=u+(1-(b-x)/f)*(a-u*2);return`${S},${T}`}).join(" "),m=u+(d.length-1)/(d.length-1)*(o-u*2),h=u+(1-(d[d.length-1]-x)/f)*(a-u*2);return e.jsxs("svg",{className:s,width:o,height:a,viewBox:`0 0 ${o} ${a}`,fill:"none","aria-hidden":"true",children:[e.jsx("polyline",{points:g,stroke:i,strokeWidth:1.5,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),n&&e.jsx("circle",{cx:m,cy:h,r:2.5,fill:i})]})}const le=48,w1=4,Ge=4,C1=24;function S1(r){if(r<=0)return 100;const t=Math.pow(10,Math.floor(Math.log10(r))),o=r/t;return([1,2,2.5,5,10].find(n=>n>=o)??10)*t}function k1(r,t,o,a,n){const s=Math.min(n,o/2,a/2);return`M${r},${t+a} L${r},${t+s} Q${r},${t} ${r+s},${t} L${r+o-s},${t} Q${r+o},${t} ${r+o},${t+s} L${r+o},${t+a} Z`}function wa({data:r,series:t,height:o=200,formatYTick:a,formatXTick:n,formatTooltipHeader:s,formatTooltipValue:l,referenceLine:i,className:d}){const x=j.useRef(null),[p,f]=j.useState(0);j.useEffect(()=>{const N=x.current;if(!N||typeof ResizeObserver>"u")return;const B=new ResizeObserver(W=>{var V;f(((V=W[0])==null?void 0:V.contentRect.width)??0)});return B.observe(N),()=>B.disconnect()},[]);const[u,g]=j.useState(null);if(!r.length||p===0)return e.jsx("div",{ref:x,"data-testid":"stacked-bar-chart",className:d,style:{width:"100%",height:o}});const m=p-le-w1,h=o-Ge-C1,b=r.length,w=m/b,S=Math.max(8,Math.min(28,Math.floor(w)-4)),T=(w-S)/2,L=r.reduce((N,B)=>{const W=t.reduce((V,H)=>V+Number(B[H.key]??0),0);return Math.max(N,W)},0),C=S1(Math.max(L,(i==null?void 0:i.value)??0)),z=5,I=Array.from({length:z},(N,B)=>C/(z-1)*B);function $(N){return Ge+h-N/C*h}function F(N){const B=N.currentTarget.closest("svg");if(!B)return;const W=B.getBoundingClientRect(),V=N.clientX-W.left,H=N.clientY-W.top,E=Math.floor((V-le)/w);E>=0&&E<b?g({index:E,mouseX:V,mouseY:H}):u!==null&&g(null)}const k=u!==null?(()=>{const N=r[u.index],B=t.reduce((H,E)=>H+Number(N[E.key]??0),0),W=160,V=u.mouseX+12+W>p?u.mouseX-12-W:u.mouseX+12;return e.jsxs("div",{style:{position:"absolute",left:V,top:Math.max(0,u.mouseY-8),pointerEvents:"none",zIndex:50,background:"#fff",border:"1px solid #e5e7eb",borderRadius:8,boxShadow:"0 4px 12px rgba(0,0,0,0.08)",padding:"8px 12px",fontSize:12,minWidth:140},children:[e.jsx("div",{style:{fontWeight:500,color:"#374151",marginBottom:6},children:s?s(N.x):N.x}),[...t].reverse().map(H=>{const E=Number(N[H.key]??0);return e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:16,marginBottom:2},children:[e.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6,color:"#6b7280"},children:[e.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:H.color,flexShrink:0,display:"inline-block"}}),H.label]}),e.jsx("span",{style:{fontWeight:500,color:"#1f2937",fontVariantNumeric:"tabular-nums"},children:l?l(E):String(E)})]},H.key)}),t.length>1&&e.jsxs("div",{style:{marginTop:6,paddingTop:6,borderTop:"1px solid #f3f4f6",display:"flex",justifyContent:"space-between"},children:[e.jsx("span",{style:{color:"#9ca3af"},children:"Total"}),e.jsx("span",{style:{fontWeight:600,color:"#1f2937",fontVariantNumeric:"tabular-nums"},children:l?l(B):String(B)})]})]})})():null;return e.jsxs("div",{ref:x,"data-testid":"stacked-bar-chart",className:d,style:{position:"relative",width:"100%",height:o},children:[e.jsxs("svg",{width:"100%",height:o,"aria-hidden":"true",children:[I.filter(N=>N>0).map(N=>e.jsx("line",{x1:le,y1:$(N),x2:le+m,y2:$(N),stroke:"#e5e7eb",strokeWidth:1},N)),I.map(N=>e.jsx("text",{x:le-6,y:$(N),textAnchor:"end",dominantBaseline:"middle",fontSize:11,fill:"#9ca3af",children:a?a(N):String(N)},N)),u!==null&&e.jsx("rect",{x:le+u.index*w,y:Ge,width:w,height:h,fill:"rgba(0,0,0,0.04)"}),r.map((N,B)=>{const W=le+B*w+T;let V=-1;for(let E=t.length-1;E>=0;E--)if(Number(N[t[E].key]??0)>0){V=E;break}let H=0;return e.jsx("g",{children:t.map((E,O)=>{const A=Number(N[E.key]??0);if(A<=0)return null;const D=A/C*h,_=$(H+A);return H+=A,O===V?e.jsx("path",{d:k1(W,_,S,D,3),fill:E.color},E.key):e.jsx("rect",{x:W,y:_,width:S,height:D,fill:E.color},E.key)})},N.x)}),r.map((N,B)=>e.jsx("text",{x:le+B*w+w/2,y:Ge+h+14,textAnchor:"middle",fontSize:11,fill:"#9ca3af",children:n?n(N.x):N.x},N.x)),i&&e.jsx("line",{x1:le,y1:$(i.value),x2:le+m,y2:$(i.value),stroke:i.color??"#E24B4A",strokeDasharray:i.strokeDasharray??"4 3",strokeWidth:1.5}),e.jsx("rect",{x:le,y:Ge,width:m,height:h,fill:"transparent",onMouseMove:F,onMouseLeave:()=>g(null)})]}),k]})}function N1({cells:r,drillRows:t,colCount:o,defaultExpanded:a=!1,onToggle:n,rowClassName:s,drillRowClassName:l}){const[i,d]=j.useState(a),x=()=>{const p=!i;d(p),n==null||n(p)};return e.jsxs(e.Fragment,{children:[e.jsx("tr",{className:s,onClick:x,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),x())},role:"button",tabIndex:0,"aria-expanded":i,style:{cursor:"pointer",background:"#fff"},children:r.map((p,f)=>e.jsx("td",{style:{padding:"10px 16px",fontSize:13,color:f===0?"var(--color-text-primary, #000626)":"var(--color-text-secondary, #595f7a)"},children:f===0?e.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6},children:[e.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",style:{transform:i?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.15s ease-out",flexShrink:0},children:e.jsx("path",{d:"M3 1L7 5L3 9",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})}),p]}):p},f))}),i&&t.map(p=>e.jsx("tr",{className:l,style:{background:"var(--color-bg-secondary, #f9fafb)",borderBottom:"1px solid var(--color-gray-100, #f3f4f6)"},children:p.cells.map((f,u)=>e.jsx("td",{style:{padding:"8px 16px",paddingLeft:u===0?32:16,fontSize:12,color:"var(--color-text-secondary, #595f7a)"},children:f},u))},p.key))]})}const z1=`
124
124
  @media print {
125
125
  .report-page { break-inside: avoid; }
126
126
  .no-print { display: none !important; }
127
127
  }
128
- `;function q0({printHeader:r,printFooter:t,children:o,className:a}){return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:X0}),r&&e.jsx("div",{className:"hidden print:block",children:r}),e.jsx("div",{className:`report-page ${a??""}`,style:{display:"flex",flexDirection:"column",gap:24},children:o}),t&&e.jsx("div",{className:"hidden print:block",children:t})]})}const J0={KpiStrip:qd,MetricCard:Qd,StatCard:t0,FinancialTable:a0,DataTable:s0,PivotTable:i0,ReportHeader:c0,ReportToolbar:d0,FilterBar:p0,BriefingCard:x0,SectionCard:f0,EntityCard:g0,Stack:m0,Grid:h0,Banner:b0,StatusPill:v0,EmptyState:y0,ProgressBar:j0,WorkstreamCard:w0,TaskCard:S0,ApprovalCard:k0,DeltaPill:N0,VarianceBand:$0,CommentaryBlock:L0,ReportSection:M0,ReportBanner:F0,PeriodSelector:D0,ComparisonToggle:I0,ExportBar:W0,AuditStamp:P0,FootnoteList:V0,FootnoteRef:H0,SparklineCell:O0,StackedBarChart:ia,DrillDownRow:Z0,ReportPage:q0};class Q0 extends j.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,o){console.warn("[UIRenderer] block render error:",t,o)}render(){return this.state.error?e.jsxs("div",{style:{padding:"8px 12px",borderRadius:6,background:"#fef2f2",border:"1px solid #fecaca",fontSize:12,color:"#991b1b"},children:["Render error: ",this.state.error.message]}):this.props.children}}function e1({block:r}){const t=J0[r.component];if(!t)return e.jsxs("div",{style:{padding:"8px 12px",borderRadius:6,background:"#f9fafb",border:"1px solid #e5e7eb",fontSize:12,color:"#6b7280"},children:["Unknown component: ",e.jsx("code",{children:r.component})]});const o=r.layout==="aside"?"w-72 shrink-0":r.layout==="inline"?"inline-flex":"w-full",a=r.children&&r.children.length>0?e.jsx(ca,{blocks:r.children}):void 0;return e.jsx(Q0,{children:e.jsx("div",{className:o,children:j.createElement(t,r.props,a)})})}function ca({blocks:r}){return!r||r.length===0?null:e.jsx("div",{className:"flex flex-col gap-3 w-full",children:r.map(t=>e.jsx(e1,{block:t},t.id))})}exports.Activity=i.Activity;exports.Airplay=i.Airplay;exports.AlertCircle=i.AlertCircle;exports.AlertOctagon=i.AlertOctagon;exports.AlignCenter=i.AlignCenter;exports.AlignJustify=i.AlignJustify;exports.AlignLeft=i.AlignLeft;exports.AlignRight=i.AlignRight;exports.Anchor=i.Anchor;exports.Aperture=i.Aperture;exports.Archive=i.Archive;exports.ArrowDown2=i.ArrowDown2;exports.ArrowDownCircle=i.ArrowDownCircle;exports.ArrowDownLeft=i.ArrowDownLeft;exports.ArrowDownRight=i.ArrowDownRight;exports.ArrowLeftCircle=i.ArrowLeftCircle;exports.ArrowRightCircle=i.ArrowRightCircle;exports.ArrowUp=i.ArrowUp;exports.ArrowUpCircle=i.ArrowUpCircle;exports.ArrowUpLeft=i.ArrowUpLeft;exports.ArrowUpRight=i.ArrowUpRight;exports.AtSign=i.AtSign;exports.Award=i.Award;exports.BarChart2=i.BarChart2;exports.Battery=i.Battery;exports.BatteryCharging=i.BatteryCharging;exports.BellOff=i.BellOff;exports.Bluetooth=i.Bluetooth;exports.Bold=i.Bold;exports.Book=i.Book;exports.BookOpen=i.BookOpen;exports.Bookmark=i.Bookmark;exports.Box=i.Box;exports.Briefcase=i.Briefcase;exports.BrushCleanup=i.BrushCleanup;exports.Bug=i.Bug;exports.Calendar=i.Calendar;exports.Camera=i.Camera;exports.CameraOff=i.CameraOff;exports.Cast=i.Cast;exports.Check=i.Check;exports.CheckCircle=i.CheckCircle;exports.CheckSquare=i.CheckSquare;exports.ChevronDown=i.ChevronDown;exports.ChevronLeft=i.ChevronLeft;exports.ChevronRight=i.ChevronRight;exports.ChevronUp=i.ChevronUp;exports.ChevronsDown=i.ChevronsDown;exports.ChevronsLeft=i.ChevronsLeft;exports.ChevronsRight=i.ChevronsRight;exports.ChevronsUp=i.ChevronsUp;exports.Chrome=i.Chrome;exports.Circle=i.Circle;exports.Clipboard=i.Clipboard;exports.ClockHistory=i.ClockHistory;exports.Cloud=i.Cloud;exports.CloudDrizzle=i.CloudDrizzle;exports.CloudLightning=i.CloudLightning;exports.CloudOff=i.CloudOff;exports.CloudRain=i.CloudRain;exports.CloudSnow=i.CloudSnow;exports.Code=i.Code;exports.Codepen=i.Codepen;exports.Codesandbox=i.Codesandbox;exports.Coffee=i.Coffee;exports.Columns=i.Columns;exports.Command=i.Command;exports.Compass=i.Compass;exports.Component=i.Component;exports.CornerDownLeft=i.CornerDownLeft;exports.CornerDownRight=i.CornerDownRight;exports.CornerLeftDown=i.CornerLeftDown;exports.CornerLeftUp=i.CornerLeftUp;exports.CornerRightDown=i.CornerRightDown;exports.CornerRightUp=i.CornerRightUp;exports.CornerUpLeft=i.CornerUpLeft;exports.CornerUpRight=i.CornerUpRight;exports.Cpu=i.Cpu;exports.CreditCard=i.CreditCard;exports.Crop=i.Crop;exports.Crosshair=i.Crosshair;exports.Database=i.Database;exports.Delete=i.Delete;exports.Disc=i.Disc;exports.Divide=i.Divide;exports.DivideCircle=i.DivideCircle;exports.DivideSquare=i.DivideSquare;exports.DollarSign=i.DollarSign;exports.Download=i.Download;exports.DownloadCloud=i.DownloadCloud;exports.Dribbble=i.Dribbble;exports.Droplet=i.Droplet;exports.Dumbell=i.Dumbell;exports.Edit2=i.Edit2;exports.Edit3=i.Edit3;exports.Eye=i.Eye;exports.EyeOff=i.EyeOff;exports.Facebook=i.Facebook;exports.FastForward=i.FastForward;exports.Feather=i.Feather;exports.Figma=i.Figma;exports.FileMinus=i.FileMinus;exports.FilePlus=i.FilePlus;exports.FileText=i.FileText;exports.Film=i.Film;exports.Filter=i.Filter;exports.Filter1=i.Filter1;exports.Flag=i.Flag;exports.Folder=i.Folder;exports.FolderMinus=i.FolderMinus;exports.FolderPlus=i.FolderPlus;exports.Framer=i.Framer;exports.Frown=i.Frown;exports.GalleryView=i.GalleryView;exports.Gauge=i.Gauge;exports.Gift=i.Gift;exports.GitBranch=i.GitBranch;exports.GitCommit=i.GitCommit;exports.GitMerge=i.GitMerge;exports.GitPullRequest=i.GitPullRequest;exports.Github=i.Github;exports.Gitlab=i.Gitlab;exports.Globe=i.Globe;exports.Grid=i.Grid;exports.Group1=i.Group1;exports.Hand=i.Hand;exports.HardDrive=i.HardDrive;exports.Hash=i.Hash;exports.Headphones=i.Headphones;exports.HeightSize=i.HeightSize;exports.Hexagon=i.Hexagon;exports.Home=i.Home;exports.Home2=i.Home2;exports.Image=i.Image;exports.Inbox=i.Inbox;exports.Info=i.Info;exports.Instagram=i.Instagram;exports.Invite=i.Invite;exports.Italic=i.Italic;exports.KanbanView=i.KanbanView;exports.Key=i.Key;exports.Layers=i.Layers;exports.Layout=i.Layout;exports.LifeBuoy=i.LifeBuoy;exports.Link=i.Link;exports.Link2=i.Link2;exports.Linkedin=i.Linkedin;exports.List=i.List;exports.ListView=i.ListView;exports.Loader=i.Loader;exports.Lock=i.Lock;exports.LogIn=i.LogIn;exports.Mail=i.Mail;exports.Map=i.Map;exports.MapPin=i.MapPin;exports.Maximize=i.Maximize;exports.Maximize2=i.Maximize2;exports.Meh=i.Meh;exports.MessageCircle=i.MessageCircle;exports.MessageSquare=i.MessageSquare;exports.Mic=i.Mic;exports.MicOff=i.MicOff;exports.Minimize=i.Minimize;exports.Minimize2=i.Minimize2;exports.MinusCircle=i.MinusCircle;exports.MinusSquare=i.MinusSquare;exports.Monitor=i.Monitor;exports.Moon=i.Moon;exports.MoreVertical=i.MoreVertical;exports.MousePointer=i.MousePointer;exports.Move=i.Move;exports.Music=i.Music;exports.Navigation=i.Navigation;exports.Navigation2=i.Navigation2;exports.NewChat=i.NewChat;exports.Octagon=i.Octagon;exports.Package=i.Package;exports.PaperPlane1=i.PaperPlane1;exports.Paperclip=i.Paperclip;exports.Pause=i.Pause;exports.PauseCircle=i.PauseCircle;exports.Pdf=i.Pdf;exports.PenTool=i.PenTool;exports.Percent=i.Percent;exports.Phone=i.Phone;exports.PhoneCall=i.PhoneCall;exports.PhoneForwarded=i.PhoneForwarded;exports.PhoneIncoming=i.PhoneIncoming;exports.PhoneMissed=i.PhoneMissed;exports.PhoneOff=i.PhoneOff;exports.PhoneOutgoing=i.PhoneOutgoing;exports.Pin=i.Pin;exports.Play=i.Play;exports.PlayCircle=i.PlayCircle;exports.Plug21=i.Plug21;exports.Plus=i.Plus;exports.PlusCircle=i.PlusCircle;exports.PlusSquare=i.PlusSquare;exports.Pocket=i.Pocket;exports.Power=i.Power;exports.Printer=i.Printer;exports.Radio=i.Radio;exports.Redo=i.Redo;exports.RefreshCcw=i.RefreshCcw;exports.RefreshCw=i.RefreshCw;exports.Repeat=i.Repeat;exports.Rewind=i.Rewind;exports.RotateCcw=i.RotateCcw;exports.RotateCw=i.RotateCw;exports.Rss=i.Rss;exports.Save=i.Save;exports.Scissors=i.Scissors;exports.Search=i.Search;exports.Send=i.Send;exports.Server=i.Server;exports.Settings=i.Settings;exports.Share=i.Share;exports.Share2=i.Share2;exports.Shield=i.Shield;exports.ShieldOff=i.ShieldOff;exports.ShoppingBag=i.ShoppingBag;exports.ShoppingCart=i.ShoppingCart;exports.Shuffle=i.Shuffle;exports.Sidebar=i.Sidebar;exports.SkipBack=i.SkipBack;exports.SkipForward=i.SkipForward;exports.Slack=i.Slack;exports.Slash=i.Slash;exports.Sliders=i.Sliders;exports.Smartphone=i.Smartphone;exports.Smile=i.Smile;exports.Sort1=i.Sort1;exports.SortDefault=i.SortDefault;exports.SortDown=i.SortDown;exports.SortUp=i.SortUp;exports.Sources=i.Sources;exports.Sparks=i.Sparks;exports.Speaker=i.Speaker;exports.Square=i.Square;exports.Star=i.Star;exports.StopCircle=i.StopCircle;exports.Sun=i.Sun;exports.Sunrise=i.Sunrise;exports.Sunset=i.Sunset;exports.TableView=i.TableView;exports.Tablet=i.Tablet;exports.TagIcon=i.Tag;exports.TagPlus=i.TagPlus;exports.Target=i.Target;exports.Telescope=i.Telescope;exports.Terminal=i.Terminal;exports.TextileIcon=i.TextileIcon;exports.Thermometer=i.Thermometer;exports.ThumbsDown=i.ThumbsDown;exports.ThumbsUp=i.ThumbsUp;exports.ToggleLeft=i.ToggleLeft;exports.ToggleRight=i.ToggleRight;exports.Tool=i.Tool;exports.Trash=i.Trash;exports.Trello=i.Trello;exports.TrendingDown=i.TrendingDown;exports.TrendingUp=i.TrendingUp;exports.Triangle=i.Triangle;exports.TriangleAlert=i.TriangleAlert;exports.Truck=i.Truck;exports.Tv=i.Tv;exports.Twitch=i.Twitch;exports.Twitter=i.Twitter;exports.Type=i.Type;exports.Umbrella=i.Umbrella;exports.Underline=i.Underline;exports.Undo=i.Undo;exports.Unlock=i.Unlock;exports.Uploadfile=i.Uploadfile;exports.UserCheck=i.UserCheck;exports.UserEdit=i.UserEdit;exports.UserMinus=i.UserMinus;exports.UserPlus=i.UserPlus;exports.UserX=i.UserX;exports.Users=i.Users;exports.Video=i.Video;exports.VideoOff=i.VideoOff;exports.Voicemail=i.Voicemail;exports.Volume=i.Volume;exports.Volume1=i.Volume1;exports.Volume2=i.Volume2;exports.VolumeX=i.VolumeX;exports.Watch=i.Watch;exports.WhiteboardView=i.WhiteboardView;exports.Wifi=i.Wifi;exports.WifiOff=i.WifiOff;exports.Wind=i.Wind;exports.WorkStream=i.WorkStream;exports.X=i.X;exports.XCircle=i.XCircle;exports.XOctagon=i.XOctagon;exports.XSquare=i.XSquare;exports.Youtube=i.Youtube;exports.Zap=i.Zap;exports.ZapOff=i.ZapOff;exports.ZoomIn=i.ZoomIn;exports.ZoomOut=i.ZoomOut;exports.ARCHIE_MAC=mn;exports.ARCHIE_WEB=gn;exports.AreaChart=td;exports.ArtifactCard=io;exports.AuditStamp=mc;exports.AutopilotAction=Eo;exports.Avatar=xr;exports.BRAND_PROFILES=un;exports.Badge=Qo;exports.Banner=aa;exports.BarChart=ed;exports.Breadcrumbs=co;exports.BriefingCard=Ji;exports.BudgetVarianceTable=_d;exports.BulletChart=xd;exports.Button=De;exports.COLOR_SCHEMES=Go;exports.Card=ea;exports.ChartColors=Re;exports.ChartPAD=Y;exports.ChartSection=Qc;exports.Checkbox=ho;exports.Chip=mo;exports.ChipStatus=oe;exports.CircularProgress=bo;exports.CommentaryBlock=sc;exports.ComparisonToggle=xc;exports.ConversationHeader=Vo;exports.CopyButton=Wo;exports.CoverPage=yd;exports.DEFAULT_BRAND=_t;exports.DONUT_COLORS=Jc;exports.DataAccordion=Sc;exports.DataTable=Yc;exports.DeltaPill=ds;exports.DonutChart=id;exports.DrillDownRow=_c;exports.Dropdown=yo;exports.DropdownContent=wo;exports.DropdownItem=Co;exports.DropdownTrigger=jo;exports.EmptyState=oc;exports.ExecutiveSummaryPage=$d;exports.ExportBar=uc;exports.FILE_TYPE_MAP=po;exports.FieldRow=na;exports.FileIcon=Br;exports.FinancialTable=Zc;exports.FootnoteList=hc;exports.FootnoteRef=fs;exports.ForecastChart=cd;exports.FullLogo=lo;exports.FunnelChart=pd;exports.HeatMap=ud;exports.HorizontalBarChart=nd;exports.Input=So;exports.KpiObservations=Ko;exports.KpiResultsTable=Sd;exports.KpiStatCard=Xo;exports.KpiStatStrip=Rd;exports.KpiStrip=Xi;exports.KpiWheel=Pd;exports.LineChart=Yo;exports.LoadingSpinner=Tl;exports.LogoA=Rr;exports.MARTHA_MAC=bn;exports.MARTHA_WEB=hn;exports.MessageBubble=No;exports.MetricCard=qi;exports.Modal=Ho;exports.NumberInput=oa;exports.PLATFORM_TOKENS=Tr;exports.PasswordField=ta;exports.PeriodSelector=cc;exports.PivotTable=qc;exports.PlatformProvider=vn;exports.ProgressBar=zo;exports.RangeInput=To;exports.ReportBanner=tc;exports.ReportHeader=Ki;exports.ReportPage=Gc;exports.ReportSection=lc;exports.Select=ra;exports.SettingsNav=sa;exports.SettingsSectionCard=la;exports.SidebarItem=$o;exports.SignatureA=Fr;exports.SparklineCell=ms;exports.StackedBarChart=ia;exports.StatusIndicator=Ar;exports.StatusMessage=Io;exports.StatusPill=xs;exports.Tabs=hi;exports.TabsContent=Ro;exports.TabsList=Mo;exports.TabsTrigger=Ao;exports.Tag=Ie;exports.TextArea=Fo;exports.Timestamp=Bo;exports.Toast=be;exports.ToastContainer=Bi;exports.Toggle=Do;exports.Tooltip=Tc;exports.TooltipContent=Po;exports.TooltipProvider=zc;exports.TooltipTrigger=$c;exports.Typography=Ke;exports.UIRenderer=ca;exports.VarianceBand=ac;exports.WaterfallChart=od;exports.cn=y;exports.getFileExtension=xo;exports.getFileTypeConfig=fo;exports.hexToRgba=Fe;exports.platformCSSVars=Ot;exports.resolveChartColors=ie;exports.showToast=Di;exports.useBrand=Ut;exports.useDropdown=fr;exports.usePlatform=Gt;exports.usePlatformTokens=Yt;exports.useTokens=Kt;
128
+ `;function T1({printHeader:r,printFooter:t,children:o,className:a}){return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:z1}),r&&e.jsx("div",{className:"hidden print:block",children:r}),e.jsx("div",{className:`report-page ${a??""}`,style:{display:"flex",flexDirection:"column",gap:24},children:o}),t&&e.jsx("div",{className:"hidden print:block",children:t})]})}const L1={KpiStrip:T0,MetricCard:$0,StatCard:R0,FinancialTable:I0,DataTable:D0,PivotTable:P0,ReportHeader:W0,ReportToolbar:V0,FilterBar:H0,BriefingCard:_0,SectionCard:O0,EntityCard:U0,Stack:Y0,Grid:Z0,Banner:K0,StatusPill:X0,EmptyState:q0,ProgressBar:J0,WorkstreamCard:Q0,TaskCard:r1,ApprovalCard:t1,DeltaPill:o1,VarianceBand:s1,CommentaryBlock:l1,ReportSection:i1,ReportBanner:p1,PeriodSelector:f1,ComparisonToggle:u1,ExportBar:m1,AuditStamp:h1,FootnoteList:b1,FootnoteRef:v1,SparklineCell:j1,StackedBarChart:wa,DrillDownRow:N1,ReportPage:T1};class $1 extends j.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,o){console.warn("[UIRenderer] block render error:",t,o)}render(){return this.state.error?e.jsxs("div",{style:{padding:"8px 12px",borderRadius:6,background:"#fef2f2",border:"1px solid #fecaca",fontSize:12,color:"#991b1b"},children:["Render error: ",this.state.error.message]}):this.props.children}}function A1({block:r}){const t=L1[r.component];if(!t)return e.jsxs("div",{style:{padding:"8px 12px",borderRadius:6,background:"#f9fafb",border:"1px solid #e5e7eb",fontSize:12,color:"#6b7280"},children:["Unknown component: ",e.jsx("code",{children:r.component})]});const o=r.layout==="aside"?"w-72 shrink-0":r.layout==="inline"?"inline-flex":"w-full",a=r.children&&r.children.length>0?e.jsx(Ca,{blocks:r.children}):void 0;return e.jsx($1,{children:e.jsx("div",{className:o,children:j.createElement(t,r.props,a)})})}function Ca({blocks:r}){return!r||r.length===0?null:e.jsx("div",{className:"flex flex-col gap-3 w-full",children:r.map(t=>e.jsx(A1,{block:t},t.id))})}exports.Activity=c.Activity;exports.Airplay=c.Airplay;exports.AlertCircle=c.AlertCircle;exports.AlertOctagon=c.AlertOctagon;exports.AlignCenter=c.AlignCenter;exports.AlignJustify=c.AlignJustify;exports.AlignLeft=c.AlignLeft;exports.AlignRight=c.AlignRight;exports.Anchor=c.Anchor;exports.Aperture=c.Aperture;exports.Archive=c.Archive;exports.ArrowDown2=c.ArrowDown2;exports.ArrowDownCircle=c.ArrowDownCircle;exports.ArrowDownLeft=c.ArrowDownLeft;exports.ArrowDownRight=c.ArrowDownRight;exports.ArrowLeftCircle=c.ArrowLeftCircle;exports.ArrowRightCircle=c.ArrowRightCircle;exports.ArrowUp=c.ArrowUp;exports.ArrowUpCircle=c.ArrowUpCircle;exports.ArrowUpLeft=c.ArrowUpLeft;exports.ArrowUpRight=c.ArrowUpRight;exports.AtSign=c.AtSign;exports.Award=c.Award;exports.BarChart2=c.BarChart2;exports.Battery=c.Battery;exports.BatteryCharging=c.BatteryCharging;exports.BellOff=c.BellOff;exports.Bluetooth=c.Bluetooth;exports.Bold=c.Bold;exports.Book=c.Book;exports.BookOpen=c.BookOpen;exports.Bookmark=c.Bookmark;exports.Box=c.Box;exports.Briefcase=c.Briefcase;exports.BrushCleanup=c.BrushCleanup;exports.Bug=c.Bug;exports.Calendar=c.Calendar;exports.Camera=c.Camera;exports.CameraOff=c.CameraOff;exports.Cast=c.Cast;exports.Check=c.Check;exports.CheckCircle=c.CheckCircle;exports.CheckSquare=c.CheckSquare;exports.ChevronDown=c.ChevronDown;exports.ChevronLeft=c.ChevronLeft;exports.ChevronRight=c.ChevronRight;exports.ChevronUp=c.ChevronUp;exports.ChevronsDown=c.ChevronsDown;exports.ChevronsLeft=c.ChevronsLeft;exports.ChevronsRight=c.ChevronsRight;exports.ChevronsUp=c.ChevronsUp;exports.Chrome=c.Chrome;exports.Circle=c.Circle;exports.Clipboard=c.Clipboard;exports.ClockHistory=c.ClockHistory;exports.Cloud=c.Cloud;exports.CloudDrizzle=c.CloudDrizzle;exports.CloudLightning=c.CloudLightning;exports.CloudOff=c.CloudOff;exports.CloudRain=c.CloudRain;exports.CloudSnow=c.CloudSnow;exports.Code=c.Code;exports.Codepen=c.Codepen;exports.Codesandbox=c.Codesandbox;exports.Coffee=c.Coffee;exports.Columns=c.Columns;exports.Command=c.Command;exports.Compass=c.Compass;exports.Component=c.Component;exports.CornerDownLeft=c.CornerDownLeft;exports.CornerDownRight=c.CornerDownRight;exports.CornerLeftDown=c.CornerLeftDown;exports.CornerLeftUp=c.CornerLeftUp;exports.CornerRightDown=c.CornerRightDown;exports.CornerRightUp=c.CornerRightUp;exports.CornerUpLeft=c.CornerUpLeft;exports.CornerUpRight=c.CornerUpRight;exports.Cpu=c.Cpu;exports.CreditCard=c.CreditCard;exports.Crop=c.Crop;exports.Crosshair=c.Crosshair;exports.Database=c.Database;exports.Delete=c.Delete;exports.Disc=c.Disc;exports.Divide=c.Divide;exports.DivideCircle=c.DivideCircle;exports.DivideSquare=c.DivideSquare;exports.DollarSign=c.DollarSign;exports.Download=c.Download;exports.DownloadCloud=c.DownloadCloud;exports.Dribbble=c.Dribbble;exports.Droplet=c.Droplet;exports.Dumbell=c.Dumbell;exports.Edit2=c.Edit2;exports.Edit3=c.Edit3;exports.Eye=c.Eye;exports.EyeOff=c.EyeOff;exports.Facebook=c.Facebook;exports.FastForward=c.FastForward;exports.Feather=c.Feather;exports.Figma=c.Figma;exports.FileMinus=c.FileMinus;exports.FilePlus=c.FilePlus;exports.FileText=c.FileText;exports.Film=c.Film;exports.Filter=c.Filter;exports.Filter1=c.Filter1;exports.Flag=c.Flag;exports.Folder=c.Folder;exports.FolderMinus=c.FolderMinus;exports.FolderPlus=c.FolderPlus;exports.Framer=c.Framer;exports.Frown=c.Frown;exports.GalleryView=c.GalleryView;exports.Gauge=c.Gauge;exports.Gift=c.Gift;exports.GitBranch=c.GitBranch;exports.GitCommit=c.GitCommit;exports.GitMerge=c.GitMerge;exports.GitPullRequest=c.GitPullRequest;exports.Github=c.Github;exports.Gitlab=c.Gitlab;exports.Globe=c.Globe;exports.Grid=c.Grid;exports.Group1=c.Group1;exports.Hand=c.Hand;exports.HardDrive=c.HardDrive;exports.Hash=c.Hash;exports.Headphones=c.Headphones;exports.HeightSize=c.HeightSize;exports.Hexagon=c.Hexagon;exports.Home=c.Home;exports.Home2=c.Home2;exports.Image=c.Image;exports.Inbox=c.Inbox;exports.Info=c.Info;exports.Instagram=c.Instagram;exports.Invite=c.Invite;exports.Italic=c.Italic;exports.KanbanView=c.KanbanView;exports.Key=c.Key;exports.Layers=c.Layers;exports.Layout=c.Layout;exports.LifeBuoy=c.LifeBuoy;exports.Link=c.Link;exports.Link2=c.Link2;exports.Linkedin=c.Linkedin;exports.List=c.List;exports.ListView=c.ListView;exports.Loader=c.Loader;exports.Lock=c.Lock;exports.LogIn=c.LogIn;exports.Mail=c.Mail;exports.Map=c.Map;exports.MapPin=c.MapPin;exports.Maximize=c.Maximize;exports.Maximize2=c.Maximize2;exports.Meh=c.Meh;exports.MessageCircle=c.MessageCircle;exports.MessageSquare=c.MessageSquare;exports.Mic=c.Mic;exports.MicOff=c.MicOff;exports.Minimize=c.Minimize;exports.Minimize2=c.Minimize2;exports.MinusCircle=c.MinusCircle;exports.MinusSquare=c.MinusSquare;exports.Monitor=c.Monitor;exports.Moon=c.Moon;exports.MoreVertical=c.MoreVertical;exports.MousePointer=c.MousePointer;exports.Move=c.Move;exports.Music=c.Music;exports.Navigation=c.Navigation;exports.Navigation2=c.Navigation2;exports.NewChat=c.NewChat;exports.Octagon=c.Octagon;exports.Package=c.Package;exports.PaperPlane1=c.PaperPlane1;exports.Paperclip=c.Paperclip;exports.Pause=c.Pause;exports.PauseCircle=c.PauseCircle;exports.Pdf=c.Pdf;exports.PenTool=c.PenTool;exports.Percent=c.Percent;exports.Phone=c.Phone;exports.PhoneCall=c.PhoneCall;exports.PhoneForwarded=c.PhoneForwarded;exports.PhoneIncoming=c.PhoneIncoming;exports.PhoneMissed=c.PhoneMissed;exports.PhoneOff=c.PhoneOff;exports.PhoneOutgoing=c.PhoneOutgoing;exports.Pin=c.Pin;exports.Play=c.Play;exports.PlayCircle=c.PlayCircle;exports.Plug21=c.Plug21;exports.Plus=c.Plus;exports.PlusCircle=c.PlusCircle;exports.PlusSquare=c.PlusSquare;exports.Pocket=c.Pocket;exports.Power=c.Power;exports.Printer=c.Printer;exports.Redo=c.Redo;exports.RefreshCcw=c.RefreshCcw;exports.RefreshCw=c.RefreshCw;exports.Repeat=c.Repeat;exports.Rewind=c.Rewind;exports.RotateCcw=c.RotateCcw;exports.RotateCw=c.RotateCw;exports.Rss=c.Rss;exports.Save=c.Save;exports.Scissors=c.Scissors;exports.Search=c.Search;exports.Send=c.Send;exports.Server=c.Server;exports.Settings=c.Settings;exports.Share=c.Share;exports.Share2=c.Share2;exports.Shield=c.Shield;exports.ShieldOff=c.ShieldOff;exports.ShoppingBag=c.ShoppingBag;exports.ShoppingCart=c.ShoppingCart;exports.Shuffle=c.Shuffle;exports.Sidebar=c.Sidebar;exports.SkipBack=c.SkipBack;exports.SkipForward=c.SkipForward;exports.Slack=c.Slack;exports.Slash=c.Slash;exports.Sliders=c.Sliders;exports.Smartphone=c.Smartphone;exports.Smile=c.Smile;exports.Sort1=c.Sort1;exports.SortDefault=c.SortDefault;exports.SortDown=c.SortDown;exports.SortUp=c.SortUp;exports.Sources=c.Sources;exports.Sparks=c.Sparks;exports.Speaker=c.Speaker;exports.Square=c.Square;exports.Star=c.Star;exports.StopCircle=c.StopCircle;exports.Sun=c.Sun;exports.Sunrise=c.Sunrise;exports.Sunset=c.Sunset;exports.TableView=c.TableView;exports.Tablet=c.Tablet;exports.TagIcon=c.Tag;exports.TagPlus=c.TagPlus;exports.Target=c.Target;exports.Telescope=c.Telescope;exports.Terminal=c.Terminal;exports.TextileIcon=c.TextileIcon;exports.Thermometer=c.Thermometer;exports.ThumbsDown=c.ThumbsDown;exports.ThumbsUp=c.ThumbsUp;exports.ToggleLeft=c.ToggleLeft;exports.ToggleRight=c.ToggleRight;exports.Tool=c.Tool;exports.Trash=c.Trash;exports.Trello=c.Trello;exports.TrendingDown=c.TrendingDown;exports.TrendingUp=c.TrendingUp;exports.Triangle=c.Triangle;exports.TriangleAlert=c.TriangleAlert;exports.Truck=c.Truck;exports.Tv=c.Tv;exports.Twitch=c.Twitch;exports.Twitter=c.Twitter;exports.Type=c.Type;exports.Umbrella=c.Umbrella;exports.Underline=c.Underline;exports.Undo=c.Undo;exports.Unlock=c.Unlock;exports.Uploadfile=c.Uploadfile;exports.UserCheck=c.UserCheck;exports.UserEdit=c.UserEdit;exports.UserMinus=c.UserMinus;exports.UserPlus=c.UserPlus;exports.UserX=c.UserX;exports.Users=c.Users;exports.Video=c.Video;exports.VideoOff=c.VideoOff;exports.Voicemail=c.Voicemail;exports.Volume=c.Volume;exports.Volume1=c.Volume1;exports.Volume2=c.Volume2;exports.VolumeX=c.VolumeX;exports.Watch=c.Watch;exports.WhiteboardView=c.WhiteboardView;exports.Wifi=c.Wifi;exports.WifiOff=c.WifiOff;exports.Wind=c.Wind;exports.WorkStream=c.WorkStream;exports.X=c.X;exports.XCircle=c.XCircle;exports.XOctagon=c.XOctagon;exports.XSquare=c.XSquare;exports.Youtube=c.Youtube;exports.Zap=c.Zap;exports.ZapOff=c.ZapOff;exports.ZoomIn=c.ZoomIn;exports.ZoomOut=c.ZoomOut;exports.ARCHIE_MAC=$n;exports.ARCHIE_WEB=Ln;exports.AreaChart=Rd;exports.ArtifactCard=go;exports.AuditStamp=Yc;exports.AutopilotAction=Jo;exports.Avatar=ur;exports.BRAND_PROFILES=Tn;exports.Badge=fa;exports.Banner=ba;exports.BarChart=Ad;exports.Breadcrumbs=mo;exports.BriefingCard=zc;exports.BudgetVarianceTable=y0;exports.BulletChart=_d;exports.Button=De;exports.COLOR_SCHEMES=na;exports.Card=ua;exports.ChartColors=Fe;exports.ChartPAD=Y;exports.ChartSection=$d;exports.Checkbox=So;exports.Chip=wo;exports.ChipStatus=oe;exports.CircularProgress=ko;exports.CommentaryBlock=Dc;exports.ComparisonToggle=_c;exports.ConversationHeader=ra;exports.CopyButton=Qo;exports.CoverPage=qd;exports.DEFAULT_BRAND=Xt;exports.DONUT_COLORS=Ld;exports.DataAccordion=rd;exports.DataTable=Sd;exports.DeltaPill=Ss;exports.DonutChart=Pd;exports.DrillDownRow=yd;exports.Dropdown=zo;exports.DropdownContent=Lo;exports.DropdownItem=$o;exports.DropdownTrigger=To;exports.EmptyState=Xe;exports.ExecutiveSummaryPage=s0;exports.ExportBar=Gc;exports.FILE_TYPE_MAP=ho;exports.FieldRow=va;exports.FileIcon=Er;exports.FinancialTable=Nd;exports.FootnoteList=Zc;exports.FootnoteRef=zs;exports.ForbiddenError=qo;exports.ForecastChart=Wd;exports.FullLogo=uo;exports.FunnelChart=Hd;exports.HeatMap=Gd;exports.HorizontalBarChart=Bd;exports.Input=Ao;exports.KpiObservations=ia;exports.KpiResultsTable=r0;exports.KpiStatCard=da;exports.KpiStatStrip=d0;exports.KpiStrip=kc;exports.KpiWheel=h0;exports.LineChart=la;exports.LoadingSpinner=Kl;exports.LogoA=Br;exports.MARTHA_MAC=Mn;exports.MARTHA_WEB=An;exports.MessageBubble=Ro;exports.MetricCard=Nc;exports.Modal=ta;exports.NetworkError=Zo;exports.NotFoundError=Xo;exports.NumberInput=ha;exports.PLATFORM_TOKENS=$r;exports.PasswordField=ma;exports.PeriodSelector=Wc;exports.PivotTable=Td;exports.PlatformProvider=Rn;exports.ProgressBar=Fo;exports.Radio=Do;exports.RadioGroup=Bo;exports.RangeInput=Eo;exports.ReportBanner=Ac;exports.ReportHeader=Cc;exports.ReportPage=wd;exports.ReportSection=Ec;exports.Select=ga;exports.ServerError=Ko;exports.SettingsNav=ya;exports.SettingsSectionCard=ja;exports.SidebarItem=Po;exports.SignatureA=Dr;exports.Skeleton=Se;exports.SkeletonAvatar=Wr;exports.SkeletonCard=Wo;exports.SkeletonText=Pr;exports.SparklineCell=$s;exports.StackedBarChart=wa;exports.StatusIndicator=Ir;exports.StatusMessage=Yo;exports.StatusPill=Ns;exports.Tabs=Oi;exports.TabsContent=Oo;exports.TabsList=Ho;exports.TabsTrigger=_o;exports.Tag=Ee;exports.TextArea=Vr;exports.Textarea=Zi;exports.Timestamp=Go;exports.Toast=be;exports.ToastContainer=dc;exports.Toggle=Uo;exports.Tooltip=nd;exports.TooltipContent=ea;exports.TooltipProvider=ad;exports.TooltipTrigger=sd;exports.Typography=Ke;exports.UIRenderer=Ca;exports.VarianceBand=Ic;exports.WaterfallChart=Fd;exports.cn=y;exports.getFileExtension=bo;exports.getFileTypeConfig=vo;exports.hexToRgba=Ie;exports.platformCSSVars=qt;exports.resolveChartColors=ce;exports.showToast=pc;exports.useBrand=Qt;exports.useDropdown=gr;exports.usePlatform=Jt;exports.usePlatformTokens=eo;exports.useTokens=Rr;
129
129
  //# sourceMappingURL=index.cjs.map