tokentracker-cli 0.83.10 → 0.84.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 (122) hide show
  1. package/dashboard/dist/assets/{AchievementBadge-XEgOYdAL.js → AchievementBadge-3L7czzR1.js} +1 -1
  2. package/dashboard/dist/assets/AchievementsPage-BFfuj5At.js +2 -0
  3. package/dashboard/dist/assets/{AchievementsSection-DVba9yNb.js → AchievementsSection-HYShnmyO.js} +1 -1
  4. package/dashboard/dist/assets/BadgeDetailModal-CCSn5R-f.js +1 -0
  5. package/dashboard/dist/assets/{Card-Su_MA3H3.js → Card-DXegrNGi.js} +1 -1
  6. package/dashboard/dist/assets/{ClawdAnimated-ISeGRtL0.js → ClawdAnimated-D72waMCF.js} +1 -1
  7. package/dashboard/dist/assets/CommandPalette-BMng2nFX.js +1 -0
  8. package/dashboard/dist/assets/CommunityStatsModal-BQmxfHSr.js +1 -0
  9. package/dashboard/dist/assets/{ConfirmModal-DcumD9hD.js → ConfirmModal-CpyPGo-h.js} +1 -1
  10. package/dashboard/dist/assets/DashboardPage-CQ2A9jo4.js +1 -0
  11. package/dashboard/dist/assets/DevicePage-DG0Vxsww.js +1 -0
  12. package/dashboard/dist/assets/DialogClose-DJ8mCX28.js +1 -0
  13. package/dashboard/dist/assets/DialogDescription-CJDYVJ8S.js +1 -0
  14. package/dashboard/dist/assets/DialogTitle-1vR-kqKB.js +1 -0
  15. package/dashboard/dist/assets/{FadeIn-BDbcrkQ9.js → FadeIn-DHkAS7mo.js} +1 -1
  16. package/dashboard/dist/assets/{HeaderGithubStar-BzMdQsiQ.js → HeaderGithubStar-DR0AXuPQ.js} +1 -1
  17. package/dashboard/dist/assets/HoverTooltip-CcGvGB5a.js +1 -0
  18. package/dashboard/dist/assets/{IpCheckPage-CjAfUsej.js → IpCheckPage-DycvTdue.js} +1 -1
  19. package/dashboard/dist/assets/LandingPage-CHs8wugk.js +2 -0
  20. package/dashboard/dist/assets/{LeaderboardAvatar-Bi3swTRk.js → LeaderboardAvatar-CN9dR1b7.js} +1 -1
  21. package/dashboard/dist/assets/LeaderboardPage-BLXve5xc.js +2 -0
  22. package/dashboard/dist/assets/{LeaderboardProfileModal-DsSL1GnS.js → LeaderboardProfileModal-CarZtrz9.js} +4 -4
  23. package/dashboard/dist/assets/{LeaderboardProfilePage-Bj9boJ81.js → LeaderboardProfilePage-DAoBzt2h.js} +3 -3
  24. package/dashboard/dist/assets/LimitsPage-DFn8Z9MC.js +4 -0
  25. package/dashboard/dist/assets/{LocalOnlyNotice-Bx7JAQlv.js → LocalOnlyNotice-H0JRSn1e.js} +1 -1
  26. package/dashboard/dist/assets/LoginCard-wd3R-8P7.js +1 -0
  27. package/dashboard/dist/assets/{LoginModal-ZkdEDB_u.js → LoginModal-DYXk0bmO.js} +1 -1
  28. package/dashboard/dist/assets/{LoginPage-cZjVN1Ey.js → LoginPage-DxN9qFIi.js} +1 -1
  29. package/dashboard/dist/assets/PetPage-BjZIfiI3.js +1 -0
  30. package/dashboard/dist/assets/PopoverPopup-CQIKHlVw.js +1 -0
  31. package/dashboard/dist/assets/{ProviderIcon-Dd7G999Z.js → ProviderIcon-BrrTOC6_.js} +1 -1
  32. package/dashboard/dist/assets/{ResetPasswordPage-BQnvwZHh.js → ResetPasswordPage-BNwsqyqJ.js} +1 -1
  33. package/dashboard/dist/assets/SegmentedControl-cSXGJx_j.js +1 -0
  34. package/dashboard/dist/assets/Select-D5H9WvyT.js +1 -0
  35. package/dashboard/dist/assets/SelectItemText-fSnMRQbs.js +1 -0
  36. package/dashboard/dist/assets/SessionsPage-CXF87EFA.js +2 -0
  37. package/dashboard/dist/assets/SettingsPage-Hmqe_c9L.js +1 -0
  38. package/dashboard/dist/assets/SkillsPage-CpL3mDUz.js +1 -0
  39. package/dashboard/dist/assets/{TokenGalaxy-DLJDFTqi.js → TokenGalaxy-CnutAaeA.js} +2 -2
  40. package/dashboard/dist/assets/ToolbarRootContext-CbdtTEGs.js +1 -0
  41. package/dashboard/dist/assets/TrendMonitor-CfbNLJ9Z.js +19 -0
  42. package/dashboard/dist/assets/WidgetsPage-DOCARdp-.js +1 -0
  43. package/dashboard/dist/assets/{WrappedPage-DfGBWz1l.js → WrappedPage-BKNZTfkp.js} +1 -1
  44. package/dashboard/dist/assets/__vite-browser-external-CvrVYYUZ.js +1465 -0
  45. package/dashboard/dist/assets/__vite-browser-external-WKilYZnq.css +1 -0
  46. package/dashboard/dist/assets/{agent-logos-GKeC1zIo.js → agent-logos-CvFfhBDq.js} +1 -1
  47. package/dashboard/dist/assets/{arrow-up-right-CtbeXi5j.js → arrow-up-right-BtBLF2n1.js} +1 -1
  48. package/dashboard/dist/assets/{check-CNrLvSi6.js → check-DfPQe0v9.js} +1 -1
  49. package/dashboard/dist/assets/chevron-right-isIHsrvd.js +1 -0
  50. package/dashboard/dist/assets/{copy-BKtI8qFQ.js → copy-CJrwu3Xh.js} +1 -1
  51. package/dashboard/dist/assets/{download-CYBO92ti.js → download-D-TaSqSP.js} +1 -1
  52. package/dashboard/dist/assets/{flame-DhLu4C_0.js → flame-95I2KBCp.js} +1 -1
  53. package/dashboard/dist/assets/{format-tokens-Chz9fmBF.js → format-tokens-D0_AljQl.js} +1 -1
  54. package/dashboard/dist/assets/host-mode-Bc_iTzHk.js +1 -0
  55. package/dashboard/dist/assets/{icons-BSHx86zo.js → icons-B0jhI6as.js} +1 -1
  56. package/dashboard/dist/assets/{index-B6zXwIZo.js → index-DNueKe7x.js} +1 -1
  57. package/dashboard/dist/assets/{index-CT2TNtwr.js → index-Do9pBHr0.js} +1 -1
  58. package/dashboard/dist/assets/{index-Dh6afgQA.js → index-zL31qR6U.js} +1 -1
  59. package/dashboard/dist/assets/{info-hP16Kjuo.js → info-DXinzd-a.js} +1 -1
  60. package/dashboard/dist/assets/{limits-providers-DW6OXuoF.js → limits-providers-DEb3zmKt.js} +1 -1
  61. package/dashboard/dist/assets/{link-2-BPvDNkc7.js → link-2-BVAdYWaq.js} +1 -1
  62. package/dashboard/dist/assets/{loader-circle-ZoO_8a9T.js → loader-circle-nu9zNFC8.js} +1 -1
  63. package/dashboard/dist/assets/maximize-2-D3RclWuw.js +1 -0
  64. package/dashboard/dist/assets/provider-display-ChB_33mn.js +42 -0
  65. package/dashboard/dist/assets/{react-hAUBl17Q.js → react-Djyp9kg9.js} +1 -1
  66. package/dashboard/dist/assets/search-CRzn5fb2.js +1 -0
  67. package/dashboard/dist/assets/skills-api-D4df2IJr.js +1 -0
  68. package/dashboard/dist/assets/store-BE4jimvO.js +1 -0
  69. package/dashboard/dist/assets/terminal-C8bbfANZ.js +1 -0
  70. package/dashboard/dist/assets/{trash-2-DepTfc8X.js → trash-2-B1pgRqNS.js} +1 -1
  71. package/dashboard/dist/assets/{use-community-stats-DTnZGJZ0.js → use-community-stats-Co5GxKNb.js} +1 -1
  72. package/dashboard/dist/assets/{use-limits-display-prefs-Dg8vOFKh.js → use-limits-display-prefs-CVxmTm05.js} +1 -1
  73. package/dashboard/dist/assets/{use-native-settings-BesbYZlC.js → use-native-settings-C3cNbS0b.js} +1 -1
  74. package/dashboard/dist/assets/{use-ordered-list-Bsr3rffj.js → use-ordered-list-DqGSSTpQ.js} +1 -1
  75. package/dashboard/dist/assets/use-reduced-motion-D7Wk0w1o.js +1 -0
  76. package/dashboard/dist/assets/{use-session-efficiency-pref-DGzTkmva.js → use-session-efficiency-pref-w80Pa5Dd.js} +1 -1
  77. package/dashboard/dist/assets/{use-transform-IS87eWhx.js → use-transform-DxH5_rBe.js} +1 -1
  78. package/dashboard/dist/assets/{use-usage-limits-56vprzF2.js → use-usage-limits-BY0LkALC.js} +1 -1
  79. package/dashboard/dist/assets/{useCurrency-CzLaB8v2.js → useCurrency-CG55rarM.js} +1 -1
  80. package/dashboard/dist/assets/useScrollLock-BjjtVeB5.js +1 -0
  81. package/dashboard/dist/assets/{useTokenFormat-BJw_Glux.js → useTokenFormat-ChaFYAh3.js} +1 -1
  82. package/dashboard/dist/assets/{zap-D2t6DGdL.js → zap-Doeerimb.js} +1 -1
  83. package/dashboard/dist/index.html +2 -2
  84. package/dashboard/dist/ip-check.html +2 -2
  85. package/dashboard/dist/leaderboard.html +2 -2
  86. package/dashboard/dist/share.html +2 -2
  87. package/package.json +1 -1
  88. package/src/commands/init.js +5 -6
  89. package/src/commands/status.js +10 -9
  90. package/src/lib/codex-config.js +45 -4
  91. package/src/lib/local-api.js +30 -0
  92. package/src/lib/pricing/curated-overrides.json +4 -0
  93. package/src/lib/pricing/seed-snapshot.json +1 -1
  94. package/src/lib/session-analytics.js +336 -25
  95. package/dashboard/dist/assets/AchievementsPage-BOMLm09Y.js +0 -2
  96. package/dashboard/dist/assets/BadgeDetailModal-Bg-AL5Y_.js +0 -1
  97. package/dashboard/dist/assets/CommandPalette-C1x51Cx1.js +0 -1
  98. package/dashboard/dist/assets/CommunityStatsModal-wgD16fT2.js +0 -1
  99. package/dashboard/dist/assets/DashboardPage-CSNTFnUG.js +0 -1
  100. package/dashboard/dist/assets/DevicePage-Djo2Bqsg.js +0 -1
  101. package/dashboard/dist/assets/DialogClose-Cufbk4wh.js +0 -1
  102. package/dashboard/dist/assets/DialogDescription-B6gmUT6p.js +0 -1
  103. package/dashboard/dist/assets/DialogTitle-BYRgo5mK.js +0 -1
  104. package/dashboard/dist/assets/LandingPage-Bv7_h1mo.js +0 -2
  105. package/dashboard/dist/assets/LeaderboardPage-CTbzru_a.js +0 -2
  106. package/dashboard/dist/assets/LimitsPage-DvqHF8NR.js +0 -4
  107. package/dashboard/dist/assets/LoginCard-CiLaG4Dr.js +0 -1
  108. package/dashboard/dist/assets/PetPage-CK9dvzKU.js +0 -1
  109. package/dashboard/dist/assets/PopoverPopup-Dq4uabm_.js +0 -1
  110. package/dashboard/dist/assets/Select-DAXwXsS4.js +0 -1
  111. package/dashboard/dist/assets/SelectItemText-DBPZbDEO.js +0 -1
  112. package/dashboard/dist/assets/SettingsPage-BDk6B2wL.js +0 -1
  113. package/dashboard/dist/assets/SkillsPage-Bk-WRE5b.js +0 -1
  114. package/dashboard/dist/assets/TrendMonitor-CRxumE5w.js +0 -19
  115. package/dashboard/dist/assets/WidgetsPage-HZq9kUv1.js +0 -1
  116. package/dashboard/dist/assets/__vite-browser-external-BEMfOISl.css +0 -1
  117. package/dashboard/dist/assets/__vite-browser-external-CDtmmXRU.js +0 -1418
  118. package/dashboard/dist/assets/provider-display-CvC5QtLF.js +0 -42
  119. package/dashboard/dist/assets/skills-api-DSMG8EyE.js +0 -1
  120. package/dashboard/dist/assets/terminal-BP0gsSiR.js +0 -1
  121. package/dashboard/dist/assets/use-reduced-motion-_YIc4wth.js +0 -1
  122. package/dashboard/dist/assets/useScrollLock-DU8uPOsl.js +0 -1
@@ -1 +1 @@
1
- import{r as s,j as t,R as g}from"./__vite-browser-external-CDtmmXRU.js";import{m as v}from"./react-hAUBl17Q.js";import{P as x}from"./ProviderIcon-Dd7G999Z.js";import{A as y}from"./index-B6zXwIZo.js";function C(a){const e=[...a];for(let o=e.length-1;o>0;o--){const r=Math.floor(Math.random()*(o+1));[e[o],e[r]]=[e[r],e[o]]}return e}function j(a,e){const o=C(a),r=Array.from({length:e},()=>[]);o.forEach((i,m)=>{r[m%e].push(i)});const c=Math.max(...r.map(i=>i.length));return r.forEach(i=>{for(;i.length<c;)i.push(o[Math.floor(Math.random()*o.length)])}),r}const w=g.memo(function({logos:e,index:o,currentTime:r,onHoverChange:c}){const[i,m]=s.useState(!1),l=4e3,p=o*400,n=(r+p)%(l*e.length),d=Math.floor(n/l),u=e[d],h=f=>{m(f),c(f)};return t.jsxs("div",{className:"relative flex flex-col items-center",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[t.jsx(v.div,{className:"relative h-8 w-8 sm:h-10 sm:w-10 md:h-12 md:w-12 overflow-hidden",initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{delay:o*.1,duration:.5,ease:"easeOut"},children:t.jsx(y,{mode:"wait",children:t.jsx(v.div,{className:"absolute inset-0 flex items-center justify-center",initial:{y:"18%",opacity:0,filter:"blur(4px)"},animate:{y:"0%",opacity:1,filter:"blur(0px)",transition:{type:"tween",ease:[.22,1,.36,1],duration:.9}},exit:{y:"-18%",opacity:0,filter:"blur(4px)",transition:{type:"tween",ease:[.4,0,1,1],duration:.55}},children:t.jsx(x,{provider:u.provider,size:24,className:"object-contain"})},`${u.id}-${d}`)})}),t.jsx(y,{children:i&&t.jsx(v.span,{className:"pointer-events-none absolute -bottom-7 z-10 whitespace-nowrap rounded bg-oai-gray-800 px-2 py-0.5 text-xs font-medium text-oai-gray-100 shadow-lg ring-1 ring-oai-gray-700",initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.15},children:u.name})})]})});function E({logos:a,columnCount:e=2}){const[o,r]=s.useState([]),[c,i]=s.useState(0),[m,l]=s.useState(!1);s.useEffect(()=>{r(j(a,e))},[a,e]),s.useEffect(()=>{if(m)return;const n=setInterval(()=>i(d=>d+400),400);return()=>clearInterval(n)},[m]);const p=s.useCallback(n=>{l(n)},[]);return t.jsx("div",{className:"flex gap-2.5 sm:gap-4 text-oai-gray-200",children:o.map((n,d)=>t.jsx(w,{logos:n,index:d,currentTime:c,onHoverChange:p},d))})}const A=[{id:1,name:"Claude Code",provider:"claude"},{id:2,name:"Codex",provider:"codex"},{id:3,name:"Cursor",provider:"cursor"},{id:4,name:"Gemini",provider:"gemini"},{id:5,name:"Antigravity",provider:"antigravity"},{id:6,name:"Kiro",provider:"kiro"},{id:7,name:"OpenCode",provider:"opencode"},{id:8,name:"OpenClaw",provider:"openclaw"},{id:9,name:"Every Code",provider:"every-code"},{id:10,name:"Hermes",provider:"hermes"},{id:11,name:"GitHub Copilot",provider:"copilot"},{id:12,name:"Kimi",provider:"kimi"},{id:13,name:"CodeBuddy",provider:"codebuddy"},{id:14,name:"WorkBuddy",provider:"workbuddy"},{id:15,name:"Grok",provider:"grok"},{id:16,name:"oh-my-pi",provider:"omp"},{id:17,name:"Pi",provider:"pi"},{id:18,name:"Craft",provider:"craft"},{id:19,name:"Kilo CLI",provider:"kilo-cli"},{id:20,name:"Kilo Code",provider:"kilocode"},{id:21,name:"Roo Code",provider:"roocode"},{id:22,name:"Zed",provider:"zed"},{id:23,name:"Goose",provider:"goose"},{id:24,name:"Droid",provider:"droid"},{id:25,name:"Mimo",provider:"mimo"},{id:26,name:"ZCode",provider:"zcode"},{id:27,name:"AnythingLLM",provider:"anythingllm"}];export{A,E as L};
1
+ import{r as s,j as t,R as g}from"./__vite-browser-external-CvrVYYUZ.js";import{m as v}from"./react-Djyp9kg9.js";import{P as x}from"./ProviderIcon-BrrTOC6_.js";import{A as y}from"./index-DNueKe7x.js";function C(a){const e=[...a];for(let o=e.length-1;o>0;o--){const r=Math.floor(Math.random()*(o+1));[e[o],e[r]]=[e[r],e[o]]}return e}function j(a,e){const o=C(a),r=Array.from({length:e},()=>[]);o.forEach((i,m)=>{r[m%e].push(i)});const c=Math.max(...r.map(i=>i.length));return r.forEach(i=>{for(;i.length<c;)i.push(o[Math.floor(Math.random()*o.length)])}),r}const w=g.memo(function({logos:e,index:o,currentTime:r,onHoverChange:c}){const[i,m]=s.useState(!1),l=4e3,p=o*400,n=(r+p)%(l*e.length),d=Math.floor(n/l),u=e[d],h=f=>{m(f),c(f)};return t.jsxs("div",{className:"relative flex flex-col items-center",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[t.jsx(v.div,{className:"relative h-8 w-8 sm:h-10 sm:w-10 md:h-12 md:w-12 overflow-hidden",initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{delay:o*.1,duration:.5,ease:"easeOut"},children:t.jsx(y,{mode:"wait",children:t.jsx(v.div,{className:"absolute inset-0 flex items-center justify-center",initial:{y:"18%",opacity:0,filter:"blur(4px)"},animate:{y:"0%",opacity:1,filter:"blur(0px)",transition:{type:"tween",ease:[.22,1,.36,1],duration:.9}},exit:{y:"-18%",opacity:0,filter:"blur(4px)",transition:{type:"tween",ease:[.4,0,1,1],duration:.55}},children:t.jsx(x,{provider:u.provider,size:24,className:"object-contain"})},`${u.id}-${d}`)})}),t.jsx(y,{children:i&&t.jsx(v.span,{className:"pointer-events-none absolute -bottom-7 z-10 whitespace-nowrap rounded bg-oai-gray-800 px-2 py-0.5 text-xs font-medium text-oai-gray-100 shadow-lg ring-1 ring-oai-gray-700",initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.15},children:u.name})})]})});function E({logos:a,columnCount:e=2}){const[o,r]=s.useState([]),[c,i]=s.useState(0),[m,l]=s.useState(!1);s.useEffect(()=>{r(j(a,e))},[a,e]),s.useEffect(()=>{if(m)return;const n=setInterval(()=>i(d=>d+400),400);return()=>clearInterval(n)},[m]);const p=s.useCallback(n=>{l(n)},[]);return t.jsx("div",{className:"flex gap-2.5 sm:gap-4 text-oai-gray-200",children:o.map((n,d)=>t.jsx(w,{logos:n,index:d,currentTime:c,onHoverChange:p},d))})}const A=[{id:1,name:"Claude Code",provider:"claude"},{id:2,name:"Codex",provider:"codex"},{id:3,name:"Cursor",provider:"cursor"},{id:4,name:"Gemini",provider:"gemini"},{id:5,name:"Antigravity",provider:"antigravity"},{id:6,name:"Kiro",provider:"kiro"},{id:7,name:"OpenCode",provider:"opencode"},{id:8,name:"OpenClaw",provider:"openclaw"},{id:9,name:"Every Code",provider:"every-code"},{id:10,name:"Hermes",provider:"hermes"},{id:11,name:"GitHub Copilot",provider:"copilot"},{id:12,name:"Kimi",provider:"kimi"},{id:13,name:"CodeBuddy",provider:"codebuddy"},{id:14,name:"WorkBuddy",provider:"workbuddy"},{id:15,name:"Grok",provider:"grok"},{id:16,name:"oh-my-pi",provider:"omp"},{id:17,name:"Pi",provider:"pi"},{id:18,name:"Craft",provider:"craft"},{id:19,name:"Kilo CLI",provider:"kilo-cli"},{id:20,name:"Kilo Code",provider:"kilocode"},{id:21,name:"Roo Code",provider:"roocode"},{id:22,name:"Zed",provider:"zed"},{id:23,name:"Goose",provider:"goose"},{id:24,name:"Droid",provider:"droid"},{id:25,name:"Mimo",provider:"mimo"},{id:26,name:"ZCode",provider:"zcode"},{id:27,name:"AnythingLLM",provider:"anythingllm"}];export{A,E as L};
@@ -1 +1 @@
1
- import{l as o}from"./__vite-browser-external-CDtmmXRU.js";const t=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],a=o("arrow-up-right",t);export{a as A};
1
+ import{l as o}from"./__vite-browser-external-CvrVYYUZ.js";const t=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],a=o("arrow-up-right",t);export{a as A};
@@ -1 +1 @@
1
- import{l as c}from"./__vite-browser-external-CDtmmXRU.js";const e=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],t=c("check",e);export{t as C};
1
+ import{l as c}from"./__vite-browser-external-CvrVYYUZ.js";const e=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],t=c("check",e);export{t as C};
@@ -0,0 +1 @@
1
+ import{l as o}from"./__vite-browser-external-CvrVYYUZ.js";const t=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],c=o("chevron-right",t);export{c as C};
@@ -1 +1 @@
1
- import{l as c}from"./__vite-browser-external-CDtmmXRU.js";const e=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],t=c("copy",e);export{t as C};
1
+ import{l as c}from"./__vite-browser-external-CvrVYYUZ.js";const e=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],t=c("copy",e);export{t as C};
@@ -1 +1 @@
1
- import{l as o}from"./__vite-browser-external-CDtmmXRU.js";const a=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],e=o("download",a);export{e as D};
1
+ import{l as o}from"./__vite-browser-external-CvrVYYUZ.js";const a=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],e=o("download",a);export{e as D};
@@ -1 +1 @@
1
- import{l as c}from"./__vite-browser-external-CDtmmXRU.js";const e=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],a=c("flame",e);export{a as F};
1
+ import{l as c}from"./__vite-browser-external-CvrVYYUZ.js";const e=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],a=c("flame",e);export{a as F};
@@ -1 +1 @@
1
- import{k as r}from"./__vite-browser-external-CDtmmXRU.js";function n(o){const t=Number(o)||0;return t>=1e12?`${Number((t/1e12).toFixed(2)).toString()}T`:r(t)}export{n as f};
1
+ import{k as r}from"./__vite-browser-external-CvrVYYUZ.js";function n(o){const t=Number(o)||0;return t>=1e12?`${Number((t/1e12).toFixed(2)).toString()}T`:r(t)}export{n as f};
@@ -0,0 +1 @@
1
+ function n(){if(typeof window>"u")return!1;const o=window.location.hostname;return o==="localhost"||o==="127.0.0.1"||o==="::1"}function t(){return n()?"/":"/dashboard"}export{t as g,n as i};
@@ -1 +1 @@
1
- import{j as r}from"./__vite-browser-external-CDtmmXRU.js";function e({className:n}){return r.jsx("svg",{viewBox:"0 0 384 512",className:n,fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})})}function o({className:n}){return r.jsx("svg",{viewBox:"0 0 16 16",className:n,fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"})})}function t({className:n}){return r.jsx("svg",{viewBox:"0 0 24 24",className:n,fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M3 5.46 10.2 4.5v6.92H3V5.46Zm0 13.08 7.2.96v-6.84H3v5.88Zm8.04 1.08L21 21V12.46h-9.96v7.16ZM11.04 4.38 21 3v8.46h-9.96V4.38Z"})})}export{e as A,o as G,t as W};
1
+ import{j as r}from"./__vite-browser-external-CvrVYYUZ.js";function e({className:n}){return r.jsx("svg",{viewBox:"0 0 384 512",className:n,fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"})})}function o({className:n}){return r.jsx("svg",{viewBox:"0 0 16 16",className:n,fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"})})}function t({className:n}){return r.jsx("svg",{viewBox:"0 0 24 24",className:n,fill:"currentColor","aria-hidden":"true",children:r.jsx("path",{d:"M3 5.46 10.2 4.5v6.92H3V5.46Zm0 13.08 7.2.96v-6.84H3v5.88Zm8.04 1.08L21 21V12.46h-9.96v7.16ZM11.04 4.38 21 3v8.46h-9.96V4.38Z"})})}export{e as A,o as G,t as W};
@@ -1,4 +1,4 @@
1
- import{r as n,j as $}from"./__vite-browser-external-CDtmmXRU.js";import{M as D,a as S,u as A,b as F,P as K,c as U,L as W}from"./react-hAUBl17Q.js";function I(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function B(...e){return r=>{let t=!1;const o=e.map(l=>{const c=I(l,r);return!t&&typeof c=="function"&&(t=!0),c});if(t)return()=>{for(let l=0;l<o.length;l++){const c=o[l];typeof c=="function"?c():I(e[l],null)}}}}function G(...e){return n.useCallback(B(...e),e)}class V extends n.Component{getSnapshotBeforeUpdate(r){const t=this.props.childRef.current;if(S(t)&&r.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=t.offsetParent,l=S(o)&&o.offsetWidth||0,c=S(o)&&o.offsetHeight||0,p=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(p.height),s.width=parseFloat(p.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=l-s.width-s.left,s.bottom=c-s.height-s.top,s.direction=p.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function X({children:e,isPresent:r,anchorX:t,anchorY:o,root:l,pop:c}){const p=n.useId(),s=n.useRef(null),y=n.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:E}=n.useContext(D),a=e.props?.ref??e?.ref,M=G(s,a);return n.useInsertionEffect(()=>{const{width:u,height:d,top:x,left:C,right:f,bottom:R,direction:L}=y.current;if(r||c===!1||!s.current||!u||!d)return;const b=L==="rtl",g=t==="left"?b?`right: ${f}`:`left: ${C}`:b?`left: ${C}`:`right: ${f}`,j=o==="bottom"?`bottom: ${R}`:`top: ${x}`;s.current.dataset.motionPopId=p;const h=document.createElement("style");E&&(h.nonce=E);const P=l??document.head;return P.appendChild(h),h.sheet&&h.sheet.insertRule(`
1
+ import{r as n,j as $}from"./__vite-browser-external-CvrVYYUZ.js";import{M as D,a as S,u as A,b as F,P as K,c as U,L as W}from"./react-Djyp9kg9.js";function I(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function B(...e){return r=>{let t=!1;const o=e.map(l=>{const c=I(l,r);return!t&&typeof c=="function"&&(t=!0),c});if(t)return()=>{for(let l=0;l<o.length;l++){const c=o[l];typeof c=="function"?c():I(e[l],null)}}}}function G(...e){return n.useCallback(B(...e),e)}class V extends n.Component{getSnapshotBeforeUpdate(r){const t=this.props.childRef.current;if(S(t)&&r.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=t.offsetParent,l=S(o)&&o.offsetWidth||0,c=S(o)&&o.offsetHeight||0,p=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(p.height),s.width=parseFloat(p.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=l-s.width-s.left,s.bottom=c-s.height-s.top,s.direction=p.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function X({children:e,isPresent:r,anchorX:t,anchorY:o,root:l,pop:c}){const p=n.useId(),s=n.useRef(null),y=n.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:E}=n.useContext(D),a=e.props?.ref??e?.ref,M=G(s,a);return n.useInsertionEffect(()=>{const{width:u,height:d,top:x,left:C,right:f,bottom:R,direction:L}=y.current;if(r||c===!1||!s.current||!u||!d)return;const b=L==="rtl",g=t==="left"?b?`right: ${f}`:`left: ${C}`:b?`left: ${C}`:`right: ${f}`,j=o==="bottom"?`bottom: ${R}`:`top: ${x}`;s.current.dataset.motionPopId=p;const h=document.createElement("style");E&&(h.nonce=E);const P=l??document.head;return P.appendChild(h),h.sheet&&h.sheet.insertRule(`
2
2
  [data-motion-pop-id="${p}"] {
3
3
  position: absolute !important;
4
4
  width: ${u}px !important;
@@ -1 +1 @@
1
- import{r as u}from"./__vite-browser-external-CDtmmXRU.js";var c={},p=()=>{window.va||(window.va=function(...r){window.vaq||(window.vaq=[]),window.vaq.push(r)})},m="@vercel/analytics",E="2.0.1";function l(){return typeof window<"u"}function w(){try{const e="production"}catch{}return"production"}function y(e="auto"){if(e==="auto"){window.vam=w();return}window.vam=e}function h(){return(l()?window.vam:w())||"production"}function v(){return h()==="production"}function d(){return h()==="development"}function g(e,{[e]:r,...i}){return i}function _(e,r){if(!e)return;let i=e;const n=[];for(const[t,o]of Object.entries(e))typeof o=="object"&&o!==null&&(r.strip?i=g(t,i):n.push(t));if(n.length>0&&!r.strip)throw Error(`The following properties are not valid: ${n.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return i}function S(e){return e.scriptSrc?a(e.scriptSrc):d()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?a(`${e.basePath}/insights/script.js`):"/_vercel/insights/script.js"}function k(e,r){var i;let n=e;if(r)try{n={...(i=JSON.parse(r))==null?void 0:i.analytics,...e}}catch{}y(n.mode);const t={sdkn:m+(n.framework?`/${n.framework}`:""),sdkv:E};return n.disableAutoTrack&&(t.disableAutoTrack="1"),n.viewEndpoint&&(t.viewEndpoint=a(n.viewEndpoint)),n.eventEndpoint&&(t.eventEndpoint=a(n.eventEndpoint)),n.sessionEndpoint&&(t.sessionEndpoint=a(n.sessionEndpoint)),d()&&n.debug===!1&&(t.debug="false"),n.dsn&&(t.dsn=n.dsn),n.endpoint?t.endpoint=n.endpoint:n.basePath&&(t.endpoint=a(`${n.basePath}/insights`)),{beforeSend:n.beforeSend,src:S(n),dataset:t}}function a(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function P(e={debug:!0},r){var i;if(!l())return;const{beforeSend:n,src:t,dataset:o}=k(e,r);if(p(),n&&((i=window.va)==null||i.call(window,"beforeSend",n)),document.head.querySelector(`script[src*="${t}"]`))return;const s=document.createElement("script");s.src=t;for(const[f,b]of Object.entries(o))s.dataset[f]=b;s.defer=!0,s.onerror=()=>{const f=d()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${t}. ${f}`)},document.head.appendChild(s)}function C(e,r,i){var n,t;if(!l()){const o="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(v())console.warn(o);else throw new Error(o);return}if(!r){(n=window.va)==null||n.call(window,"event",{name:e,options:i});return}try{const o=_(r,{strip:v()});(t=window.va)==null||t.call(window,"event",{name:e,data:o,options:i})}catch(o){o instanceof Error&&d()&&console.error(o)}}function A({route:e,path:r}){var i;(i=window.va)==null||i.call(window,"pageview",{route:e,path:r})}function T(){if(!(typeof process>"u"||typeof c>"u"))return c.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function j(){if(!(typeof process>"u"||typeof c>"u"))return c.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}function $(e){return u.useEffect(()=>{var r;e.beforeSend&&((r=window.va)==null||r.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),u.useEffect(()=>{P({framework:e.framework||"react",basePath:e.basePath??T(),...e.route!==void 0&&{disableAutoTrack:!0},...e},e.configString??j())},[]),u.useEffect(()=>{e.route&&e.path&&A({route:e.route,path:e.path})},[e.route,e.path]),null}export{$ as Analytics,C as track};
1
+ import{r as u}from"./__vite-browser-external-CvrVYYUZ.js";var c={},p=()=>{window.va||(window.va=function(...r){window.vaq||(window.vaq=[]),window.vaq.push(r)})},m="@vercel/analytics",E="2.0.1";function l(){return typeof window<"u"}function w(){try{const e="production"}catch{}return"production"}function y(e="auto"){if(e==="auto"){window.vam=w();return}window.vam=e}function h(){return(l()?window.vam:w())||"production"}function v(){return h()==="production"}function d(){return h()==="development"}function g(e,{[e]:r,...i}){return i}function _(e,r){if(!e)return;let i=e;const n=[];for(const[t,o]of Object.entries(e))typeof o=="object"&&o!==null&&(r.strip?i=g(t,i):n.push(t));if(n.length>0&&!r.strip)throw Error(`The following properties are not valid: ${n.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return i}function S(e){return e.scriptSrc?a(e.scriptSrc):d()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?a(`${e.basePath}/insights/script.js`):"/_vercel/insights/script.js"}function k(e,r){var i;let n=e;if(r)try{n={...(i=JSON.parse(r))==null?void 0:i.analytics,...e}}catch{}y(n.mode);const t={sdkn:m+(n.framework?`/${n.framework}`:""),sdkv:E};return n.disableAutoTrack&&(t.disableAutoTrack="1"),n.viewEndpoint&&(t.viewEndpoint=a(n.viewEndpoint)),n.eventEndpoint&&(t.eventEndpoint=a(n.eventEndpoint)),n.sessionEndpoint&&(t.sessionEndpoint=a(n.sessionEndpoint)),d()&&n.debug===!1&&(t.debug="false"),n.dsn&&(t.dsn=n.dsn),n.endpoint?t.endpoint=n.endpoint:n.basePath&&(t.endpoint=a(`${n.basePath}/insights`)),{beforeSend:n.beforeSend,src:S(n),dataset:t}}function a(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function P(e={debug:!0},r){var i;if(!l())return;const{beforeSend:n,src:t,dataset:o}=k(e,r);if(p(),n&&((i=window.va)==null||i.call(window,"beforeSend",n)),document.head.querySelector(`script[src*="${t}"]`))return;const s=document.createElement("script");s.src=t;for(const[f,b]of Object.entries(o))s.dataset[f]=b;s.defer=!0,s.onerror=()=>{const f=d()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${t}. ${f}`)},document.head.appendChild(s)}function C(e,r,i){var n,t;if(!l()){const o="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(v())console.warn(o);else throw new Error(o);return}if(!r){(n=window.va)==null||n.call(window,"event",{name:e,options:i});return}try{const o=_(r,{strip:v()});(t=window.va)==null||t.call(window,"event",{name:e,data:o,options:i})}catch(o){o instanceof Error&&d()&&console.error(o)}}function A({route:e,path:r}){var i;(i=window.va)==null||i.call(window,"pageview",{route:e,path:r})}function T(){if(!(typeof process>"u"||typeof c>"u"))return c.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function j(){if(!(typeof process>"u"||typeof c>"u"))return c.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}function $(e){return u.useEffect(()=>{var r;e.beforeSend&&((r=window.va)==null||r.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),u.useEffect(()=>{P({framework:e.framework||"react",basePath:e.basePath??T(),...e.route!==void 0&&{disableAutoTrack:!0},...e},e.configString??j())},[]),u.useEffect(()=>{e.route&&e.path&&A({route:e.route,path:e.path})},[e.route,e.path]),null}export{$ as Analytics,C as track};
@@ -1 +1 @@
1
- import{r as c}from"./__vite-browser-external-CDtmmXRU.js";var u={},p=()=>{window.si||(window.si=function(...i){window.siq=window.siq||[],window.siq.push(i)})},h="@vercel/speed-insights",g="2.0.0";function w(){return typeof window<"u"}function S(){try{const e="production"}catch{}return"production"}function l(){return S()==="development"}function k(e,i){if(!e||!i)return e;let n=e;try{const t=Object.entries(i);for(const[r,o]of t)if(!Array.isArray(o)){const s=d(o);s.test(n)&&(n=n.replace(s,`/[${r}]`))}for(const[r,o]of t)if(Array.isArray(o)){const s=d(o.join("/"));s.test(n)&&(n=n.replace(s,`/[...${r}]`))}return n}catch{return e}}function d(e){return new RegExp(`/${b(e)}(?=[/?#]|$)`)}function b(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){return e.scriptSrc?f(e.scriptSrc):l()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?f(`${e.basePath}/speed-insights/script.js`):"/_vercel/speed-insights/script.js"}function E(e,i){var n;let t=e;if(i)try{t={...(n=JSON.parse(i))==null?void 0:n.speedInsights,...e}}catch{}const r={sdkn:h+(t.framework?`/${t.framework}`:""),sdkv:g};return t.sampleRate&&(r.sampleRate=t.sampleRate.toString()),t.route&&(r.route=t.route),l()&&t.debug===!1&&(r.debug="false"),t.dsn&&(r.dsn=t.dsn),t.endpoint?r.endpoint=f(t.endpoint):t.basePath&&(r.endpoint=f(`${t.basePath}/speed-insights/vitals`)),{src:m(t),beforeSend:t.beforeSend,dataset:r}}function f(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function y(e={},i){var n;if(!w()||e.route===null)return null;p();const{beforeSend:t,src:r,dataset:o}=E(e,i);if(document.head.querySelector(`script[src*="${r}"]`))return null;t&&((n=window.si)==null||n.call(window,"beforeSend",t));const s=document.createElement("script");s.src=r,s.defer=!0;for(const[a,v]of Object.entries(o))s.dataset[a]=v;return s.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(s),{setRoute:a=>{s.dataset.route=a??void 0}}}function R(){if(!(typeof process>"u"||typeof u>"u"))return u.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function _(){if(!(typeof process>"u"||typeof u>"u"))return u.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}function P(e){c.useEffect(()=>{var n;e.beforeSend&&((n=window.si)==null||n.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);const i=c.useRef(null);return c.useEffect(()=>{if(!i.current){const n=y({framework:e.framework??"react",basePath:e.basePath??R(),...e},e.configString??_());n&&(i.current=n.setRoute)}},[e]),c.useEffect(()=>{i.current&&e.route&&i.current(e.route)},[e.route]),null}export{P as SpeedInsights,k as computeRoute};
1
+ import{r as c}from"./__vite-browser-external-CvrVYYUZ.js";var u={},p=()=>{window.si||(window.si=function(...i){window.siq=window.siq||[],window.siq.push(i)})},h="@vercel/speed-insights",g="2.0.0";function w(){return typeof window<"u"}function S(){try{const e="production"}catch{}return"production"}function l(){return S()==="development"}function k(e,i){if(!e||!i)return e;let n=e;try{const t=Object.entries(i);for(const[r,o]of t)if(!Array.isArray(o)){const s=d(o);s.test(n)&&(n=n.replace(s,`/[${r}]`))}for(const[r,o]of t)if(Array.isArray(o)){const s=d(o.join("/"));s.test(n)&&(n=n.replace(s,`/[...${r}]`))}return n}catch{return e}}function d(e){return new RegExp(`/${b(e)}(?=[/?#]|$)`)}function b(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function m(e){return e.scriptSrc?f(e.scriptSrc):l()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?f(`${e.basePath}/speed-insights/script.js`):"/_vercel/speed-insights/script.js"}function E(e,i){var n;let t=e;if(i)try{t={...(n=JSON.parse(i))==null?void 0:n.speedInsights,...e}}catch{}const r={sdkn:h+(t.framework?`/${t.framework}`:""),sdkv:g};return t.sampleRate&&(r.sampleRate=t.sampleRate.toString()),t.route&&(r.route=t.route),l()&&t.debug===!1&&(r.debug="false"),t.dsn&&(r.dsn=t.dsn),t.endpoint?r.endpoint=f(t.endpoint):t.basePath&&(r.endpoint=f(`${t.basePath}/speed-insights/vitals`)),{src:m(t),beforeSend:t.beforeSend,dataset:r}}function f(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function y(e={},i){var n;if(!w()||e.route===null)return null;p();const{beforeSend:t,src:r,dataset:o}=E(e,i);if(document.head.querySelector(`script[src*="${r}"]`))return null;t&&((n=window.si)==null||n.call(window,"beforeSend",t));const s=document.createElement("script");s.src=r,s.defer=!0;for(const[a,v]of Object.entries(o))s.dataset[a]=v;return s.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(s),{setRoute:a=>{s.dataset.route=a??void 0}}}function R(){if(!(typeof process>"u"||typeof u>"u"))return u.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function _(){if(!(typeof process>"u"||typeof u>"u"))return u.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}function P(e){c.useEffect(()=>{var n;e.beforeSend&&((n=window.si)==null||n.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);const i=c.useRef(null);return c.useEffect(()=>{if(!i.current){const n=y({framework:e.framework??"react",basePath:e.basePath??R(),...e},e.configString??_());n&&(i.current=n.setRoute)}},[e]),c.useEffect(()=>{i.current&&e.route&&i.current(e.route)},[e.route]),null}export{P as SpeedInsights,k as computeRoute};
@@ -1 +1 @@
1
- import{l as o}from"./__vite-browser-external-CDtmmXRU.js";const c=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],t=o("info",c);export{t as I};
1
+ import{l as o}from"./__vite-browser-external-CvrVYYUZ.js";const c=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],t=o("info",c);export{t as I};
@@ -1 +1 @@
1
- import{c as r}from"./__vite-browser-external-CDtmmXRU.js";const t=["claude","codex","cursor","gemini","kimi","kiro","grok","copilot","antigravity","zcode","opencodeGo"],e={claude:"CLAUDE",codex:"CODEX",cursor:"CURSOR",gemini:"GEMINI",kimi:"KIMI",kiro:"KIRO",grok:"GROK",copilot:"COPILOT",antigravity:"ANTIGRAVITY",zcode:"ZCODE",opencodeGo:"OPENCODE"};function c(i){return e[i]||null}function n(i){switch(i){case"claude":return r("limits.provider.claude");case"codex":return r("limits.provider.codex");case"cursor":return r("limits.provider.cursor");case"gemini":return r("limits.provider.gemini");case"kimi":return r("limits.provider.kimi");case"kiro":return r("limits.provider.kiro");case"grok":return r("limits.provider.grok");case"copilot":return r("limits.provider.copilot");case"antigravity":return r("limits.provider.antigravity");case"zcode":return r("limits.provider.zcode");case"opencodeGo":return r("limits.provider.opencode_go");default:return String(i||"")}}export{t as L,c as a,n as l};
1
+ import{c as r}from"./__vite-browser-external-CvrVYYUZ.js";const t=["claude","codex","cursor","gemini","kimi","kiro","grok","copilot","antigravity","zcode","opencodeGo"],e={claude:"CLAUDE",codex:"CODEX",cursor:"CURSOR",gemini:"GEMINI",kimi:"KIMI",kiro:"KIRO",grok:"GROK",copilot:"COPILOT",antigravity:"ANTIGRAVITY",zcode:"ZCODE",opencodeGo:"OPENCODE"};function c(i){return e[i]||null}function n(i){switch(i){case"claude":return r("limits.provider.claude");case"codex":return r("limits.provider.codex");case"cursor":return r("limits.provider.cursor");case"gemini":return r("limits.provider.gemini");case"kimi":return r("limits.provider.kimi");case"kiro":return r("limits.provider.kiro");case"grok":return r("limits.provider.grok");case"copilot":return r("limits.provider.copilot");case"antigravity":return r("limits.provider.antigravity");case"zcode":return r("limits.provider.zcode");case"opencodeGo":return r("limits.provider.opencode_go");default:return String(i||"")}}export{t as L,c as a,n as l};
@@ -1 +1 @@
1
- import{l as e}from"./__vite-browser-external-CDtmmXRU.js";const o=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],t=e("link-2",o);export{t as L};
1
+ import{l as e}from"./__vite-browser-external-CvrVYYUZ.js";const o=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],t=e("link-2",o);export{t as L};
@@ -1 +1 @@
1
- import{l as e}from"./__vite-browser-external-CDtmmXRU.js";const o=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],a=e("loader-circle",o);export{a as L};
1
+ import{l as e}from"./__vite-browser-external-CvrVYYUZ.js";const o=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],a=e("loader-circle",o);export{a as L};
@@ -0,0 +1 @@
1
+ import{l as t}from"./__vite-browser-external-CvrVYYUZ.js";const a=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],i=t("maximize-2",a);export{i as M};
@@ -0,0 +1,42 @@
1
+ import{l as Ne,r as i,j as e,c as o,Y as Ie,aa as He,a3 as Ge,X as Oe,a1 as qe,m as Ke}from"./__vite-browser-external-CvrVYYUZ.js";import{u as Ze}from"./useCurrency-CG55rarM.js";import{u as Ee}from"./useTokenFormat-ChaFYAh3.js";import{M as Ve}from"./maximize-2-D3RclWuw.js";import{T as Je}from"./terminal-C8bbfANZ.js";import{I as Qe}from"./info-DXinzd-a.js";const et=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],tt=Ne("pause",et);const at=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],rt=Ne("play",at);const ot=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],nt=Ne("rotate-ccw",ot),ae={emerald:{light:["#ebedf0","#a7f3d0","#6ee7b7","#34d399","#10b981"],dark:["#2d333b","#065f46","#059669","#10b981","#34d399"],gridColor:{light:"rgba(16, 185, 129, 0.12)",dark:"rgba(52, 211, 153, 0.08)"}},ocean:{light:["#f1f5f9","#93c5fd","#60a5fa","#3b82f6","#1d4ed8"],dark:["#1e293b","#1e3a8a","#2563eb","#3b82f6","#60a5fa"],gridColor:{light:"rgba(59, 130, 246, 0.12)",dark:"rgba(96, 165, 250, 0.08)"}},neon:{light:["#faf5ff","#ebd5ff","#c084fc","#a855f7","#7e22ce"],dark:["#2e1065","#581c87","#8b5cf6","#a855f7","#c084fc"],gridColor:{light:"rgba(168, 85, 247, 0.12)",dark:"rgba(192, 132, 252, 0.08)"}},amber:{light:["#fffbeb","#fde68a","#f59e0b","#d97706","#b45309"],dark:["#451a03","#78350f","#b45309","#d97706","#f59e0b"],gridColor:{light:"rgba(245, 158, 11, 0.12)",dark:"rgba(245, 158, 11, 0.08)"}}};function st(l,u){const h=/^#([0-9a-f]{6})$/i.exec(l);if(!h)return l;const c=parseInt(h[1],16),b=c>>16&255,Y=c>>8&255,D=c&255,R=$=>Math.max(0,Math.min(255,Math.round($*u)));return`rgb(${R(b)}, ${R(Y)}, ${R(D)})`}function q(l,u,h,c,b){const Y=Math.cos(c),D=Math.sin(c),R=l*Y-u*D,$=l*D+u*Y,S=h,E=Math.cos(b),A=Math.sin(b),K=R,p=$*E-S*A,v=$*A+S*E;return{x:K,y:p,z:v}}function lt(l,u,h,c,b){return q(l,u,h,c,b)}function Se(l,u,h=c=>Number(c).toLocaleString()){const c=h(u);if(l>=4){const b=Math.floor(Math.random()*3)+1;return o(`heatmap.3d.voxel.joke.${b}`,{value:c})}else return l===3?o("heatmap.3d.voxel.level3",{value:c}):l===2?o("heatmap.3d.voxel.level2",{value:c}):l===1?o("heatmap.3d.voxel.level1",{value:c}):o("heatmap.3d.voxel.level0")}function Ae({weeks:l,palette:u="auto",isDark:h=!1,interactive:c=!1,autoRotateInit:b=!1,onResetViewRef:Y=null}){const{formatTokens:D,formatTokensTooltip:R}=Ee(),$=ae[u]||(u==="auto"?ae.emerald:null),S=$?h?$.dark:$.light:Array.isArray(u)?u:h?ae.emerald.dark:ae.emerald.light,E=$?h?$.gridColor.dark:$.gridColor.light:h?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",A=-.2,K=.88,[p,v]=i.useState({yaw:A,pitch:K}),[le,Z]=i.useState(b),[he,L]=i.useState(1),j=c?13:10.5,fe=i.useMemo(()=>{const t=[],r=l.length;if(r===0||!c)return[];for(let n=0;n<=7;n++){const s=(n-3.5)*j,d=q(-r/2*j,s,0,p.yaw,p.pitch),x=q(r/2*j,s,0,p.yaw,p.pitch);t.push({d:`M${d.x},${d.y} L${x.x},${x.y}`,key:`horiz-${n}`})}for(let n=0;n<=r;n+=4){const s=(n-r/2)*j,d=q(s,-3.5*j,0,p.yaw,p.pitch),x=q(s,3.5*j,0,p.yaw,p.pitch);t.push({d:`M${d.x},${d.y} L${x.x},${x.y}`,key:`vert-${n}`})}if(r%4!==0){const n=(r-r/2)*j,s=q(n,-3.5*j,0,p.yaw,p.pitch),d=q(n,3.5*j,0,p.yaw,p.pitch);t.push({d:`M${s.x},${s.y} L${d.x},${d.y}`,key:"vert-last"})}return t},[l.length,p,j,c]);i.useEffect(()=>{Y&&(Y.current={reset:()=>{v({yaw:A,pitch:K}),Z(!1),L(1),be()},toggleAutoRotate:t=>{Z(t)}})},[Y]);const V=i.useRef(null),I=i.useRef(null),B=i.useRef(!1),ie=i.useRef({x:0,y:0}),J=i.useRef({yaw:A,pitch:K}),U=i.useRef({x:0,y:0}),oe=i.useRef({x:0,y:0,time:0}),ne=i.useRef(null),[ge,ye]=i.useState(0),Q=i.useRef(null),se=i.useRef(!0);i.useEffect(()=>(se.current=!0,()=>{se.current=!1}),[]);const be=()=>{Q.current&&cancelAnimationFrame(Q.current),ye(0);const t=performance.now(),r=1200,n=s=>{if(!se.current)return;const d=s-t,x=Math.min(1,d/r),C=1-Math.pow(1-x,3);ye(C),x<1?Q.current=requestAnimationFrame(n):Q.current=null};Q.current=requestAnimationFrame(n)};i.useEffect(()=>(be(),()=>{Q.current&&cancelAnimationFrame(Q.current)}),[c]),i.useEffect(()=>{if(!le||B.current||typeof window>"u"||typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let r;const n=()=>{if(typeof document<"u"&&document.visibilityState==="hidden"){r=requestAnimationFrame(n);return}v(s=>({yaw:s.yaw+.002,pitch:s.pitch})),r=requestAnimationFrame(n)};return r=requestAnimationFrame(n),()=>cancelAnimationFrame(r)},[le]);const ce=(t,r)=>{c&&(B.current=!0,ie.current={x:t,y:r},J.current={yaw:p.yaw,pitch:p.pitch},U.current={x:0,y:0},oe.current={x:t,y:r,time:performance.now()},ne.current&&cancelAnimationFrame(ne.current))},X=(t,r)=>{if(!B.current)return;const n=t-ie.current.x,s=r-ie.current.y,d=performance.now(),x=d-oe.current.time;x>0&&(U.current={x:(t-oe.current.x)/x,y:(r-oe.current.y)/x}),oe.current={x:t,y:r,time:d};const C=.005,T=J.current.yaw-n*C,k=Math.PI/2.3,y=Math.max(-k,Math.min(k,J.current.pitch-s*C));v({yaw:T,pitch:y})},ve=()=>{if(!B.current)return;B.current=!1;let t=-U.current.x*12,r=-U.current.y*12;const n=.95,s=()=>{B.current||(t*=n,r*=n,!(Math.abs(t)<.01&&Math.abs(r)<.01)&&(v(d=>{const x=d.yaw+t*.005,C=Math.PI/2.3,T=Math.max(-C,Math.min(C,d.pitch+r*.005));return{yaw:x,pitch:T}}),ne.current=requestAnimationFrame(s)))};ne.current=requestAnimationFrame(s)},[f,de]=i.useState(null),[ee,ue]=i.useState({x:0,y:0,shiftX:0}),g=i.useRef(null);i.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]),i.useEffect(()=>{if(!c||!I.current)return;const t=n=>{n.preventDefault();const s=-n.deltaY*.0025;L(d=>{const x=d+s;return Math.max(.5,Math.min(3,x))})},r=I.current;return r.addEventListener("wheel",t,{passive:!1}),()=>{r.removeEventListener("wheel",t)}},[c]);const _=i.useMemo(()=>{const t=[];return l.forEach((r,n)=>{(Array.isArray(r)?r:[]).forEach((s,d)=>{s&&t.push({key:s.day||`${n}-${d}`,col:n,row:d,level:s.level||0,value:s.value||0,day:s.day,models:s.models||null})})}),t},[l]),pe=j-(c?1.8:1.5),ke=c?38:28,we=t=>Math.max(1.8,Number(t)/4*ke),te=i.useMemo(()=>{if(_.length===0)return[];const t=l.length;return _.map(r=>{const n=we(r.level),s=Math.sqrt(Math.pow(r.col-t/2,2)+Math.pow(r.row-3.5,2)),d=Math.sqrt(Math.pow(t/2,2)+Math.pow(3.5,2)),x=s/d*.4,C=Math.min(1,Math.max(0,(ge-x)*(1/.6))),T=n*C,k=(r.col-t/2)*j,y=(r.row-3.5)*j,w=pe/2,G=[{x:k-w,y:y-w,z:0},{x:k+w,y:y-w,z:0},{x:k+w,y:y+w,z:0},{x:k-w,y:y+w,z:0},{x:k-w,y:y-w,z:T},{x:k+w,y:y-w,z:T},{x:k+w,y:y+w,z:T},{x:k-w,y:y+w,z:T}].map(W=>q(W.x,W.y,W.z,p.yaw,p.pitch)),xe=q(k,y,T/2,p.yaw,p.pitch),Le=[{name:"top",indices:[4,5,6,7],scale:1,normal:[0,0,1]},{name:"bottom",indices:[3,2,1,0],scale:.4,normal:[0,0,-1]},{name:"left",indices:[3,0,4,7],scale:.55,normal:[-1,0,0]},{name:"right",indices:[1,2,6,5],scale:.75,normal:[1,0,0]},{name:"front",indices:[0,1,5,4],scale:.85,normal:[0,-1,0]},{name:"back",indices:[2,3,7,6],scale:.65,normal:[0,1,0]}],Pe=S[Math.min(4,Math.max(0,Number(r.level)||0))],ze=[],Ye=.35,De=-.4,Ue=.83;return Le.forEach(W=>{const je=lt(W.normal[0],W.normal[1],W.normal[2],p.yaw,p.pitch);if(je.z>.001){const Me=G[W.indices[0]],Te=G[W.indices[1]],_e=G[W.indices[2]],$e=G[W.indices[3]],Xe=`M${Me.x},${Me.y} L${Te.x},${Te.y} L${_e.x},${_e.y} L${$e.x},${$e.y} Z`,Fe=je.x*Ye+je.y*De+je.z*Ue,We=h?.18:0,Be=W.scale*(.82+.28*Math.max(0,Fe))+We;ze.push({name:W.name,d:Xe,fill:st(Pe,Be)})}}),{...r,centerProj:xe,renderedFaces:ze}})},[_,p,S,l.length,ge,j,pe,ke]),O=i.useMemo(()=>[...te].sort((t,r)=>t.centerProj.z-r.centerProj.z),[te]),M=i.useMemo(()=>{if(O.length===0)return{minX:-100,minY:-100,maxX:100,maxY:100};let t=1/0,r=1/0,n=-1/0,s=-1/0;return O.forEach(d=>{const x=j*2,C=d.centerProj.x,T=d.centerProj.y;C-x<t&&(t=C-x),C+x>n&&(n=C+x),T-x<r&&(r=T-x),T+x>s&&(s=T+x)}),{minX:t,minY:r,maxX:n,maxY:s}},[O,j]),P=12,me=M.maxX-M.minX+P*2,a=M.maxY-M.minY+P*2,m=me/he,z=a/he,N=M.minX-P+(me-m)/2,F=M.minY-P+(a-z)/2,H=`${N} ${F} ${m} ${z}`;return _.length===0?e.jsx("div",{className:"py-8 text-center text-sm text-oai-gray-500",children:o("heatmap.empty")}):e.jsxs("div",{ref:I,className:`relative select-none outline-none ${c?"cursor-grab active:cursor-grabbing w-full h-full flex items-center justify-center":"w-full overflow-hidden flex justify-center"}`,onMouseDown:t=>{if(!c)return;ce(t.clientX,t.clientY);const r=s=>X(s.clientX,s.clientY),n=()=>{ve(),window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",r),window.addEventListener("mouseup",n)},onTouchStart:t=>{!c||t.touches.length===0||ce(t.touches[0].clientX,t.touches[0].clientY)},onTouchMove:t=>{!c||t.touches.length===0||X(t.touches[0].clientX,t.touches[0].clientY)},onTouchEnd:()=>{c&&ve()},children:[e.jsxs("svg",{ref:V,viewBox:H,width:c?"95%":"100%",height:c?"95%":"auto",role:"img","aria-label":o("heatmap.iso.aria")||"3D interactive activity heatmap",style:{display:"block",width:"100%",height:"auto",maxWidth:c?"none":`${me}px`,maxHeight:c?"78vh":"none"},className:"transition-transform duration-300 ease-out",children:[c&&fe.map(t=>e.jsx("path",{d:t.d,fill:"none",stroke:E,strokeWidth:.25,strokeDasharray:"1.5 2.5",strokeLinecap:"round"},t.key)),O.map(t=>{const r=f&&f.key===t.key;return e.jsxs("g",{onMouseEnter:n=>{if(g.current&&(clearTimeout(g.current),g.current=null),de(t),c&&V.current){const s=q((t.col-l.length/2)*j,(t.row-3.5)*j,we(t.level),p.yaw,p.pitch);let d=0,x=0;const C=V.current;if(I.current&&typeof C.createSVGPoint=="function"&&typeof C.getScreenCTM=="function")try{const w=C.createSVGPoint();w.x=s.x,w.y=s.y;const re=C.getScreenCTM();if(re){const G=w.matrixTransform(re),xe=I.current.getBoundingClientRect();d=G.x-xe.left,x=G.y-xe.top}}catch{const re=C.getBoundingClientRect(),G=M.maxX-M.minX+P*2,xe=M.maxY-M.minY+P*2;d=(s.x-(M.minX-P))/G*re.width,x=(s.y-(M.minY-P))/xe*re.height}else{const w=C.getBoundingClientRect(),re=M.maxX-M.minX+P*2,G=M.maxY-M.minY+P*2;d=(s.x-(M.minX-P))/re*w.width,x=(s.y-(M.minY-P))/G*w.height}const T=140;let k=0;const y=I.current?I.current.getBoundingClientRect().width:C.getBoundingClientRect().width;d<T?k=T-d:d>y-T&&(k=y-T-d),ue({x:d,y:x,shiftX:k})}},onMouseLeave:()=>{g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{de(null)},150)},className:"transition-all duration-200",style:{filter:r?"brightness(1.15) drop-shadow(0 4px 6px rgba(0,0,0,0.15))":"none",cursor:c?"pointer":"default"},children:[!c&&t.day&&e.jsx("title",{children:o("heatmap.tooltip.tokens",{day:t.day,value:R(t.value)})}),t.renderedFaces.map((n,s)=>e.jsx("path",{d:n.d,fill:n.fill,stroke:n.fill,strokeWidth:.25,strokeLinejoin:"round"},s))]},t.key)})]}),c&&f&&e.jsxs("div",{onMouseEnter:()=>{g.current&&(clearTimeout(g.current),g.current=null)},onMouseLeave:()=>{g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{de(null)},150)},className:"absolute z-[9999] w-0 h-0 transition-all duration-100 ease-out",style:{left:`${ee.x}px`,top:`${ee.y}px`},children:[e.jsxs("div",{className:"absolute left-0 bottom-[10px] backdrop-blur-md bg-white/90 dark:bg-oai-gray-900/90 border border-oai-gray-200/50 dark:border-oai-gray-800/50 shadow-xl rounded-xl p-3.5 max-w-[280px] min-w-[200px] flex flex-col gap-2 animate-in fade-in zoom-in-95 duration-100",style:{transform:`translateX(calc(-50% + ${ee.shiftX}px))`},children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-oai-gray-100 dark:border-oai-gray-800/80 pb-1.5",children:[e.jsx("span",{className:"text-[11px] font-semibold text-oai-gray-500 dark:text-oai-gray-400",children:f.day}),(()=>{const t=f.level===0?h?"#9ca3af":"#6b7280":S[f.level];return e.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full font-medium",style:{backgroundColor:t+"22",color:t,border:`1px solid ${t}44`},children:o("heatmap.tooltip.level",{level:f.level})})})()]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-baseline gap-1",children:[e.jsx("span",{title:R(f.value),className:"text-lg font-bold text-oai-gray-900 dark:text-white leading-none",children:D(f.value)}),e.jsx("span",{className:"text-[10px] text-oai-gray-400 uppercase tracking-wider font-semibold",children:o("heatmap.unit.tokens")})]}),f.models&&Object.keys(f.models).length>0?e.jsxs("div",{className:"mt-1.5 border-t border-oai-gray-100 dark:border-oai-gray-800/60 pt-2 flex flex-col gap-1.5",children:[e.jsx("div",{className:"text-[10px] font-semibold text-oai-gray-400 dark:text-oai-gray-500 uppercase tracking-wider",children:o("heatmap.tooltip.model_breakdown")}),e.jsx("div",{className:"flex flex-col gap-2 max-h-[150px] overflow-y-auto pr-1.5 scrollbar-thin",children:Object.entries(f.models).map(([t,r])=>({name:t,val:Number(r)})).sort((t,r)=>r.val-t.val).map(({name:t,val:r})=>{const n=Number(f.value)||1,s=Math.round(r/n*100);return e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center justify-between text-[11px] gap-3",children:[e.jsx("span",{className:"font-medium text-oai-gray-750 dark:text-oai-gray-200 truncate max-w-[120px]",title:t,children:t}),e.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[e.jsx("span",{title:R(r),className:"font-mono text-oai-gray-900 dark:text-oai-gray-100 font-semibold",children:D(r)}),e.jsxs("span",{className:"text-[9px] text-oai-gray-450 dark:text-oai-gray-500 min-w-[28px] text-right font-medium",children:[s,"%"]})]})]}),e.jsx("div",{className:"w-full h-1 bg-oai-gray-100 dark:bg-oai-gray-800/85 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full transition-all duration-300",style:{width:`${s}%`,backgroundColor:S[4],boxShadow:`0 0 4px ${S[4]}55`}})})]},t)})})]}):e.jsx("p",{className:"text-[11px] text-oai-gray-600 dark:text-oai-gray-300 leading-relaxed font-normal mt-1 border-t border-dashed border-oai-gray-100 dark:border-oai-gray-800/60 pt-1.5",children:Se(f.level,f.value,D)})]})]}),e.jsx("div",{className:"absolute bottom-[6px] left-0 -translate-x-1/2 w-2.5 h-2.5 rotate-45 bg-white dark:bg-oai-gray-900 border-r border-b border-oai-gray-200/50 dark:border-oai-gray-800/50 shadow-sm",style:{marginBottom:"1px"}})]})]})}const it=12,ct=3,dt=26,mt=["#ebedf0","#a7f3d0","#6ee7b7","#34d399","#10b981"],xt=["#121212","#065f46","#059669","#10b981","#34d399"];function ut(l){if(typeof l!="string")return null;const u=/^(\d{4})-(\d{2})-(\d{2})$/.exec(l.trim());if(!u)return null;const h=new Date(Date.UTC(Number(u[1]),Number(u[2])-1,Number(u[3])));return Number.isFinite(h.getTime())?h:null}function Re(l,u){return new Date(Date.UTC(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()+u))}function pt(l,u){return Math.floor((Date.UTC(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate())-Date.UTC(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()))/864e5)}function ht(l,u){const h=u==="mon"?1:0,c=l.getUTCDay();return Re(l,-((c-h+7)%7))}function ft(l,u,h,c){if(!l)return[];const b=ut(u)||new Date,Y=[];for(let E=11;E>=0;E-=1)Y.push(new Date(Date.UTC(b.getUTCFullYear(),b.getUTCMonth()-E,1)));const D=ht(b,h),R=Re(D,-(l-1)*7),$=[],S=new Set;for(const E of Y){const A=Math.floor(pt(R,E)/7);A<0||A>=l||S.has(A)||(S.add(A),$.push({label:c[E.getUTCMonth()],index:A}))}return $}function Ct({heatmap:l,timeZoneLabel:u,timeZoneShortLabel:h,hideLegend:c=!1,embedded:b=!1}){const{resolvedTheme:Y}=Ie(),{currency:D,rate:R}=Ze(),{formatTokens:$,formatTokensTooltip:S}=Ee(),E=Y==="dark",A=E?xt:mt,K=i.useRef(null),p=i.useRef(null),[v,le]=i.useState(null),[Z,he]=i.useState({x:0,y:0,shiftX:0,flipY:!1}),L=i.useRef(null);i.useEffect(()=>()=>{L.current&&clearTimeout(L.current)},[]);const[j,fe]=i.useState(!1),[V,I]=i.useState(!1),[B,ie]=i.useState(!1),J=i.useRef(null),[U,oe]=i.useState("emerald"),ne=[o("heatmap.month.jan"),o("heatmap.month.feb"),o("heatmap.month.mar"),o("heatmap.month.apr"),o("heatmap.month.may"),o("heatmap.month.jun"),o("heatmap.month.jul"),o("heatmap.month.aug"),o("heatmap.month.sep"),o("heatmap.month.oct"),o("heatmap.month.nov"),o("heatmap.month.dec")],ge=(a,m)=>{if(!m||!m.day)return;L.current&&(clearTimeout(L.current),L.current=null),le(m);const z=a.currentTarget.getBoundingClientRect(),N=typeof window<"u"?window.innerWidth:1024,F=z.left+z.width/2,H=z.top<300,t=H?z.bottom:z.top,r=140;let n=0;F<r?n=r-F:F>N-r&&(n=N-r-F),he({x:F,y:t,shiftX:n,flipY:H})},ye=()=>{L.current&&clearTimeout(L.current),L.current=setTimeout(()=>{le(null)},150)},Q=()=>{I(!1),fe(!0)},se=()=>{I(!0)},be=a=>{a.target===a.currentTarget&&V&&(fe(!1),I(!1))};i.useEffect(()=>{if(!j||V)return;const a=m=>{m.key==="Escape"&&se()};return window.addEventListener("keydown",a),()=>{window.removeEventListener("keydown",a)}},[j,V]);const ce=i.useMemo(()=>({emerald:{accentText:"text-emerald-500 dark:text-emerald-400",accentBg:"bg-emerald-500/10 dark:bg-emerald-400/10",accentBorder:"border-emerald-500/20 dark:border-emerald-400/15",hoverBorder:"hover:border-emerald-500/30 dark:hover:border-emerald-400/30",hoverGlow:"hover:shadow-[0_0_20px_-3px_rgba(16,185,129,0.15)] hover:dark:shadow-[0_0_20px_-3px_rgba(52,211,153,0.25)]",rawColor:"#10b981"},ocean:{accentText:"text-blue-500 dark:text-blue-400",accentBg:"bg-blue-500/10 dark:bg-blue-400/10",accentBorder:"border-blue-500/20 dark:border-blue-400/15",hoverBorder:"hover:border-blue-500/30 dark:hover:border-blue-400/30",hoverGlow:"hover:shadow-[0_0_20px_-3px_rgba(59,130,246,0.15)] hover:dark:shadow-[0_0_20px_-3px_rgba(96,165,250,0.25)]",rawColor:"#3b82f6"},neon:{accentText:"text-purple-500 dark:text-purple-400",accentBg:"bg-purple-500/10 dark:bg-purple-400/10",accentBorder:"border-purple-500/20 dark:border-purple-400/15",hoverBorder:"hover:border-purple-500/30 dark:hover:border-purple-400/30",hoverGlow:"hover:shadow-[0_0_20px_-3px_rgba(168,85,247,0.15)] hover:dark:shadow-[0_0_20px_-3px_rgba(192,132,252,0.25)]",rawColor:"#a855f7"},amber:{accentText:"text-amber-500 dark:text-amber-400",accentBg:"bg-amber-500/10 dark:bg-amber-400/10",accentBorder:"border-amber-500/20 dark:border-amber-400/15",hoverBorder:"hover:border-amber-500/30 dark:hover:border-amber-400/30",hoverGlow:"hover:shadow-[0_0_20px_-3px_rgba(245,158,11,0.15)] hover:dark:shadow-[0_0_20px_-3px_rgba(245,158,11,0.25)]",rawColor:"#f59e0b"}}),[]),X=ce[U]||ce.emerald,ve=ae[U]?E?ae[U].dark:ae[U].light:E?ae.emerald.dark:ae.emerald.light,[f,de]=i.useState(()=>{if(b)return"2d";try{return window.localStorage?.getItem("tt:heatmap-view")==="3d"?"3d":"2d"}catch{return"2d"}});i.useEffect(()=>{if(!b)try{window.localStorage?.setItem("tt:heatmap-view",f)}catch{}},[f,b]),i.useEffect(()=>{if(f!=="2d")return;const a=K.current;a&&(a.scrollLeft=a.scrollWidth)},[l?.weeks,f]),i.useEffect(()=>{const a=K.current;if(!a)return;const m=()=>{L.current&&(clearTimeout(L.current),L.current=null),le(null)};return a.addEventListener("scroll",m),()=>a.removeEventListener("scroll",m)},[]);const ee=l?.week_starts_on==="mon"?"mon":"sun",ue=i.useMemo(()=>{const a=Array.isArray(l?.weeks)?l.weeks:[];if(!a.length)return{weeks:[]};const m=[];for(const z of a)for(const N of Array.isArray(z)?z:[])N?.day&&m.push({day:N.day,total_tokens:N.total_tokens??N.value??0,billable_total_tokens:N.billable_total_tokens??N.value??N.total_tokens??0,models:N.models??null});return He({dailyRows:m,weeks:Math.max(52,a.length),to:l?.to,weekStartsOn:ee})},[l?.to,l?.weeks,ee]),g=ue?.weeks||[],_=i.useMemo(()=>{let a=0,m=0,z={day:null,value:0},N=0,F=0;const H=[];g.forEach(k=>{(Array.isArray(k)?k:[]).forEach(y=>{y&&y.day&&H.push(y)})}),H.sort((k,y)=>k.day.localeCompare(y.day)),H.forEach(k=>{const y=Number(k.value)||0;a+=y,y>0?(m++,N++,N>F&&(F=N)):N=0,y>z.value&&(z={day:k.day,value:y})});const t=H.length||365,r=(m/t*100).toFixed(1);let n="heatmap.3d.modal.ai.eval.default",s="heatmap.3d.modal.ai.title.default";a>=15e6?(s="heatmap.3d.modal.ai.title.peak",n="heatmap.3d.modal.ai.eval.peak"):a>=5e6?(s="heatmap.3d.modal.ai.title.heavy",n="heatmap.3d.modal.ai.eval.heavy"):a>=1e6?(s="heatmap.3d.modal.ai.title.core",n="heatmap.3d.modal.ai.eval.core"):a>=2e4&&(s="heatmap.3d.modal.ai.title.steady",n="heatmap.3d.modal.ai.eval.steady");const d=l?.total_cost_usd,x=Number(d),T=d!=null&&(typeof d!="string"||d.trim()!=="")&&Number.isFinite(x)?x:a/15e5;return{totalTokens:a,activeDays:m,activeRate:r,maxSingleDay:z,maxStreak:F,aiEvaluationTitleKey:s,aiEvaluationKey:n,totalCostUsd:T}},[g,l?.total_cost_usd]),Ce=i.useMemo(()=>Ge(_.totalCostUsd,{currency:D,rate:R}),[_.totalCostUsd,D,R]),pe=a=>$(a,{mode:Ke.COMPACT,decimals:2}),ke=ee==="mon"?["Mon","Tue","Wed","Thu","Fri","Sat","Sun"].map(a=>o(`heatmap.day.${a.toLowerCase()}`)):["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(a=>o(`heatmap.day.${a.toLowerCase()}`)),we=i.useMemo(()=>ft(g.length,ue?.to,ee,ne),[ue?.to,g.length,ee,ne]);if(!g.length)return e.jsx("div",{className:"py-8 text-center text-sm text-oai-gray-500",children:o("heatmap.empty")});const te=b?10:it,O=b?2:ct,M=b?22:dt,P=M+g.length*te+Math.max(0,g.length-1)*O,me=`${M}px repeat(${g.length}, ${te}px)`;return e.jsxs("div",{ref:p,className:b?"relative":"relative rounded-xl border border-oai-gray-200 dark:border-oai-gray-800 bg-white dark:bg-oai-gray-900 p-5",children:[!b&&e.jsxs("div",{className:"flex items-baseline justify-between mb-3",children:[e.jsx("h3",{className:"text-sm font-medium text-oai-gray-500 dark:text-oai-gray-300 uppercase tracking-wide",children:o("heatmap.title")}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{role:"tablist","aria-label":"Heatmap view",className:"flex rounded-md border border-oai-gray-200 dark:border-oai-gray-800 p-0.5 text-[10px]",children:[e.jsx("button",{type:"button",role:"tab","aria-selected":f==="2d",onClick:()=>de("2d"),className:f==="2d"?"px-2 py-0.5 rounded bg-oai-gray-100 text-oai-black dark:bg-oai-gray-800 dark:text-oai-white font-medium":"px-2 py-0.5 rounded text-oai-gray-500 dark:text-oai-gray-400 hover:text-oai-gray-700 dark:hover:text-oai-gray-200",children:o("heatmap.view.2d")}),e.jsx("button",{type:"button",role:"tab","aria-selected":f==="3d",onClick:()=>de("3d"),className:f==="3d"?"px-2 py-0.5 rounded bg-oai-gray-100 text-oai-black dark:bg-oai-gray-800 dark:text-oai-white font-medium":"px-2 py-0.5 rounded text-oai-gray-500 dark:text-oai-gray-400 hover:text-oai-gray-700 dark:hover:text-oai-gray-200",children:o("heatmap.view.3d")})]}),e.jsx("span",{className:"text-xs text-oai-gray-400 dark:text-oai-gray-450",children:h||o("heatmap.legend.utc")})]})]}),f==="3d"&&e.jsxs("div",{onClick:Q,className:"cursor-pointer group relative overflow-hidden rounded-lg hover:border-oai-gray-350 dark:hover:border-oai-gray-700 border border-transparent transition-all",title:o("heatmap.3d.hover_tip"),children:[e.jsx(Ae,{weeks:g,isDark:E,palette:U}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-oai-gray-900/5 to-transparent pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity flex items-end justify-center pb-2",children:e.jsxs("span",{className:"text-[10px] bg-white/95 dark:bg-oai-gray-900/95 shadow border border-oai-gray-200/60 dark:border-oai-gray-800/80 px-2.5 py-1 rounded-full font-medium text-oai-gray-500 dark:text-oai-gray-400 flex items-center gap-1 transform translate-y-2 group-hover:translate-y-0 transition-transform duration-200",children:[e.jsx(Ve,{size:9}),o("heatmap.3d.hover_tip")]})})]}),f==="2d"&&e.jsx("div",{ref:K,className:`overflow-x-auto overflow-y-hidden heatmap-scroll-thin${b?"":" pb-1"}`,children:e.jsxs("div",{style:{minWidth:P},children:[e.jsxs("div",{className:"grid text-[10px] uppercase text-oai-gray-400 dark:text-oai-gray-400 mb-1",style:{gridTemplateColumns:me,columnGap:O},children:[e.jsx("span",{}),we.map(a=>e.jsx("span",{style:{gridColumnStart:a.index+2},className:"whitespace-nowrap",children:a.label},`${a.label}-${a.index}`))]}),e.jsxs("div",{className:"grid",style:{gridTemplateColumns:me,columnGap:O},children:[e.jsx("div",{className:"grid text-[10px] text-oai-gray-400 dark:text-oai-gray-400 sticky left-0 bg-white dark:bg-oai-gray-900 pr-2",style:{gridTemplateRows:`repeat(7, ${te}px)`,rowGap:O},children:ke.map(a=>e.jsx("span",{className:"leading-none",children:a},a))}),e.jsx("div",{className:"grid",style:{gridAutoFlow:"column",gridTemplateRows:`repeat(7, ${te}px)`,gap:O},children:g.map((a,m)=>(Array.isArray(a)?a:[]).map((z,N)=>{if(!z)return null;const F=z.day||`e-${m}-${N}`,H=Number(z.level)||0,t=A[H]||A[0];return e.jsx("span",{onMouseEnter:r=>ge(r,z),onMouseLeave:ye,className:"rounded-[2px] transition-transform hover:scale-125 hover:z-10 cursor-pointer",style:{width:te,height:te,background:t}},F)}))})]})]})}),!c&&e.jsxs("div",{className:"flex items-center justify-center gap-2 mt-3",children:[e.jsx("span",{className:"text-[10px] text-oai-gray-400 dark:text-oai-gray-400",children:o("heatmap.legend.less")}),e.jsx("div",{className:"flex gap-0.5",children:A.map((a,m)=>e.jsx("span",{className:"rounded-[1px]",style:{width:10,height:10,background:a}},m))}),e.jsx("span",{className:"text-[10px] text-oai-gray-400 dark:text-oai-gray-400",children:o("heatmap.legend.more")})]}),j&&e.jsx("div",{onAnimationEnd:be,onClick:a=>{a.target===a.currentTarget&&se()},className:`fixed inset-0 z-50 flex items-center justify-center p-3 md:p-6 backdrop-blur-md bg-black/15 dark:bg-black/40 ${V?"animate-tt-fade-out":"animate-tt-fade-in"}`,children:e.jsxs("div",{className:`relative w-full max-w-6xl h-[88vh] backdrop-blur-2xl bg-white/90 dark:bg-oai-gray-900/90 border border-oai-gray-200/50 dark:border-white/10 shadow-2xl rounded-2xl flex flex-col md:flex-row overflow-hidden ${V?"animate-tt-modal-exit":"animate-tt-modal"}`,children:[e.jsx("button",{type:"button",onClick:se,className:"absolute top-4 right-4 z-50 p-2 rounded-full border border-oai-gray-200/60 dark:border-oai-gray-800/60 bg-white/50 dark:bg-oai-gray-900/50 text-oai-gray-500 dark:text-oai-gray-400 hover:text-oai-gray-900 dark:hover:text-white hover:rotate-90 hover:scale-105 active:scale-95 transition-all duration-300",children:e.jsx(Oe,{size:16})}),e.jsxs("div",{className:"w-full md:w-[340px] border-b md:border-b-0 md:border-r border-zinc-200/50 dark:border-zinc-800/40 p-5 md:p-6 flex flex-col gap-6 overflow-y-auto backdrop-blur-md bg-zinc-50/50 dark:bg-zinc-950/50",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 select-none",children:[e.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[e.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75",style:{backgroundColor:X.rawColor}}),e.jsx("span",{className:"relative inline-flex rounded-full h-1.5 w-1.5",style:{backgroundColor:X.rawColor}})]}),e.jsx("span",{className:"text-[9px] font-extrabold uppercase tracking-widest font-mono text-zinc-400 dark:text-zinc-500",children:o("heatmap.3d.modal.eyebrow")})]}),e.jsx("h4",{className:"text-xl font-black text-zinc-900 dark:text-zinc-50 tracking-tight leading-none mt-2 select-none",children:o("heatmap.3d.modal.title")}),e.jsx("p",{className:"text-[11px] leading-relaxed text-zinc-400 dark:text-zinc-500 mt-2 font-normal select-none",children:o("heatmap.3d.modal.desc")})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-x-5 gap-y-5 border-y border-zinc-200/50 dark:border-zinc-800/50 py-5 select-none",children:[e.jsxs("div",{className:"flex flex-col gap-1 relative group cursor-help",children:[e.jsx("div",{className:"absolute left-0 bottom-full mb-2 pointer-events-none opacity-0 translate-y-1 group-hover:opacity-100 group-hover:translate-y-0 transition-all duration-200 z-50",children:e.jsxs("div",{className:"bg-white dark:bg-zinc-950 text-zinc-900 dark:text-zinc-50 text-[10px] font-semibold font-mono rounded-lg px-2.5 py-1.5 shadow-xl border border-zinc-200 dark:border-zinc-800/80 whitespace-nowrap flex flex-col",children:[e.jsx("span",{className:"text-[9px] text-zinc-400 dark:text-zinc-500",children:o("heatmap.3d.modal.stats.precision_total_tokens")}),e.jsxs("span",{className:"mt-0.5 font-bold text-zinc-900 dark:text-zinc-50",children:[S(_.totalTokens)," ",o("heatmap.unit.tokens")]})]})}),e.jsx("span",{className:"text-[9px] font-bold text-zinc-400 dark:text-zinc-500 uppercase tracking-widest font-mono",children:o("heatmap.3d.modal.stats.total_tokens")}),e.jsxs("div",{className:"flex items-baseline gap-1.5",children:[e.jsx("span",{className:"text-xl font-black text-zinc-900 dark:text-zinc-50 tracking-tight font-mono transition-transform duration-200 group-hover:-translate-y-[1px]",children:pe(_.totalTokens)}),e.jsx("div",{className:"opacity-30 group-hover:opacity-60 transition-opacity",children:e.jsx("svg",{width:"24",height:"10",viewBox:"0 0 24 10",fill:"none",children:e.jsx("path",{d:"M1 9C3 7 5 7 7 4C9 1 11 0 13 2C15 4 17 0 23 0",stroke:X.rawColor,strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]}),e.jsxs("div",{className:"flex flex-col gap-1 group cursor-default",children:[e.jsx("span",{className:"text-[9px] font-bold text-zinc-400 dark:text-zinc-500 uppercase tracking-widest font-mono",children:o("heatmap.3d.modal.stats.estimated_cost")}),e.jsx("span",{className:"text-xl font-black text-zinc-900 dark:text-zinc-50 tracking-tight font-mono transition-transform duration-200 group-hover:-translate-y-[1px]",children:Ce})]}),e.jsxs("div",{className:"flex flex-col gap-1 group cursor-default",children:[e.jsx("span",{className:"text-[9px] font-bold text-zinc-400 dark:text-zinc-500 uppercase tracking-widest font-mono",children:o("heatmap.3d.modal.stats.active_rate_days")}),e.jsxs("span",{className:"text-xl font-black text-zinc-900 dark:text-zinc-50 tracking-tight font-mono transition-transform duration-200 group-hover:-translate-y-[1px]",children:[_.activeRate,"%"," ",e.jsxs("span",{className:"text-[10px] font-bold text-zinc-400 dark:text-zinc-500 font-mono",children:["(",_.activeDays,o("heatmap.3d.modal.stats.days_suffix"),")"]})]})]}),e.jsxs("div",{className:"flex flex-col gap-1 group cursor-default",children:[e.jsx("span",{className:"text-[9px] font-bold text-zinc-400 dark:text-zinc-500 uppercase tracking-widest font-mono",children:o("heatmap.3d.modal.stats.max_streak")}),e.jsxs("span",{className:"text-xl font-black text-amber-500 tracking-tight font-mono transition-transform duration-200 group-hover:-translate-y-[1px]",children:[_.maxStreak," ",e.jsx("span",{className:"text-[10px] font-bold text-amber-500/80 font-mono",children:o("heatmap.3d.modal.stats.days_suffix")})]})]}),e.jsxs("div",{className:"flex flex-col gap-1 col-span-2 relative group cursor-help",children:[e.jsx("div",{className:"absolute left-0 bottom-full mb-2 pointer-events-none opacity-0 translate-y-1 group-hover:opacity-100 group-hover:translate-y-0 transition-all duration-200 z-50",children:e.jsxs("div",{className:"bg-white dark:bg-zinc-950 text-zinc-900 dark:text-zinc-50 text-[10px] font-semibold font-mono rounded-lg px-2.5 py-1.5 shadow-xl border border-zinc-200 dark:border-zinc-800/80 whitespace-nowrap flex flex-col",children:[e.jsx("span",{className:"text-[9px] text-zinc-400 dark:text-zinc-500",children:o("heatmap.3d.modal.stats.precision_peak_value")}),e.jsx("span",{className:"mt-0.5 font-bold text-zinc-900 dark:text-zinc-50",children:_.maxSingleDay.value>0?`${S(_.maxSingleDay.value)} ${o("heatmap.unit.tokens")}`:o("heatmap.3d.modal.stats.no_data")}),e.jsx("span",{className:"text-[8px] text-zinc-400 dark:text-zinc-500 mt-0.5",children:_.maxSingleDay.day||o("heatmap.3d.modal.stats.no_data")})]})}),e.jsx("span",{className:"text-[9px] font-bold text-zinc-400 dark:text-zinc-500 uppercase tracking-widest font-mono",children:o("heatmap.3d.modal.stats.peak_day")}),e.jsxs("span",{className:"text-xl font-black text-zinc-900 dark:text-zinc-50 tracking-tight font-mono transition-transform duration-200 group-hover:-translate-y-[1px]",children:[_.maxSingleDay.value>0?pe(_.maxSingleDay.value):o("heatmap.3d.modal.stats.no_data")," ",e.jsxs("span",{className:"text-[10px] font-bold text-zinc-400 dark:text-zinc-500 font-mono",children:["(",_.maxSingleDay.day||o("heatmap.3d.modal.stats.no_data"),")"]})]})]})]}),e.jsxs("div",{className:"flex flex-col gap-2.5 py-1",children:[e.jsxs("div",{className:"flex items-center gap-1.5 select-none",children:[e.jsx(Je,{size:11,style:{color:X.rawColor}}),e.jsx("span",{className:"text-[9px] font-extrabold uppercase tracking-widest font-mono",style:{color:X.rawColor},children:o(_.aiEvaluationTitleKey)})]}),e.jsxs("div",{className:"pl-3.5 border-l-2 relative transition-all duration-300 group",style:{borderColor:X.rawColor},children:[e.jsx("div",{className:"absolute inset-y-0 left-0 w-[3px] blur-[2px] opacity-15 pointer-events-none rounded-full",style:{backgroundColor:X.rawColor}}),e.jsx("p",{className:"text-[11px] leading-relaxed text-zinc-600 dark:text-zinc-400 font-normal",children:o(_.aiEvaluationKey)})]})]}),e.jsx("div",{className:"mt-auto border-t border-zinc-200/50 dark:border-zinc-800/50 pt-4 select-none",children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[9px] font-bold text-zinc-400 dark:text-zinc-500 uppercase tracking-widest font-mono",children:o("heatmap.3d.modal.legend.title")}),e.jsx("span",{className:"text-[10px] font-medium text-zinc-500 dark:text-zinc-400",children:o(`heatmap.3d.modal.palette.${U}`)})]}),e.jsx("div",{className:"flex gap-1",children:ve.map((a,m)=>e.jsx("div",{className:"flex-1 h-1 rounded-[2px]",style:{backgroundColor:a},title:o("heatmap.tooltip.level",{level:m})},m))})]})})]}),e.jsxs("div",{className:"flex-1 h-full relative flex items-center justify-center overflow-hidden p-4",children:[e.jsx("div",{className:"absolute top-1/4 left-1/3 w-96 h-96 rounded-full blur-[130px] pointer-events-none -translate-x-1/2 -translate-y-1/2 transition-all duration-500",style:{backgroundColor:X.rawColor+"15"}}),e.jsx("div",{className:"absolute bottom-1/4 right-1/3 w-80 h-80 rounded-full blur-[120px] pointer-events-none translate-x-1/2 translate-y-1/2 bg-purple-500/[0.04] dark:bg-purple-500/[0.08]"}),e.jsxs("div",{className:"absolute top-4 left-1/2 -translate-x-1/2 flex items-center gap-3 p-1.5 backdrop-blur-md bg-white/70 dark:bg-oai-gray-900/75 border border-oai-gray-200/60 dark:border-oai-gray-800/80 rounded-full shadow-lg z-30 select-none",children:[e.jsx("div",{className:"flex items-center gap-1.5 px-2",children:Object.keys(ce).map(a=>{const m=U===a;return e.jsx("button",{type:"button",onClick:()=>oe(a),title:o(`heatmap.3d.modal.palette.${a}`),className:`w-3.5 h-3.5 rounded-full transition-all duration-200 relative hover:scale-125 ${a==="emerald"?"bg-[#10b981]":a==="ocean"?"bg-[#3b82f6]":a==="neon"?"bg-[#a855f7]":"bg-[#f59e0b]"}`,children:m&&e.jsx("span",{className:"absolute inset-0 rounded-full ring-2 ring-offset-1 ring-offset-white dark:ring-offset-oai-gray-900 ring-oai-gray-900 dark:ring-white scale-110"})},a)})}),e.jsx("div",{className:"w-[1px] h-4 bg-oai-gray-200 dark:bg-oai-gray-800"}),e.jsxs("div",{className:"flex items-center gap-1 pr-1",children:[e.jsx("button",{type:"button",onClick:()=>{const a=!B;ie(a),J.current&&J.current.toggleAutoRotate(a)},title:B?o("heatmap.3d.modal.control.pause"):o("heatmap.3d.modal.control.play"),className:`p-1.5 rounded-full transition-all duration-200 hover:bg-oai-gray-100 dark:hover:bg-oai-gray-800 ${B?X.accentText:"text-oai-gray-400 hover:text-oai-gray-600 dark:hover:text-oai-gray-250"}`,children:B?e.jsx(tt,{size:12}):e.jsx(rt,{size:12})}),e.jsx("button",{type:"button",onClick:()=>{ie(!1),J.current&&J.current.reset()},title:o("heatmap.3d.modal.control.reset"),className:"p-1.5 rounded-full text-oai-gray-400 hover:text-oai-gray-600 dark:hover:text-oai-gray-250 hover:bg-oai-gray-100 dark:hover:bg-oai-gray-800 transition-all duration-200",children:e.jsx(nt,{size:12})})]})]}),e.jsx(Ae,{weeks:g,isDark:E,interactive:!0,palette:U,autoRotateInit:B,onResetViewRef:J}),e.jsxs("div",{className:"absolute bottom-4 right-4 flex items-center gap-1.5 text-[9px] font-bold text-oai-gray-400 bg-white/80 dark:bg-oai-gray-900/80 border border-oai-gray-200/50 dark:border-oai-gray-800/80 rounded-md px-2.5 py-1.5 select-none pointer-events-none backdrop-blur-md shadow-sm",children:[e.jsx(Qe,{size:10,className:X.accentText}),e.jsx("span",{children:o("heatmap.3d.modal.footer.tip")})]})]})]})}),v&&!j&&typeof document<"u"&&qe.createPortal(e.jsxs("div",{className:"fixed z-[9999] w-0 h-0 transition-all duration-100 ease-out pointer-events-none",style:{position:"fixed",left:`${Z.x}px`,top:`${Z.y}px`},children:[e.jsxs("div",{className:`absolute left-0 ${Z.flipY?"top-[10px]":"bottom-[10px]"} backdrop-blur-md bg-white/95 dark:bg-oai-gray-900/95 border border-oai-gray-200/50 dark:border-oai-gray-800/50 shadow-xl rounded-xl p-3.5 max-w-[280px] min-w-[200px] flex flex-col gap-2 animate-in fade-in zoom-in-95 duration-100`,style:{transform:`translateX(calc(-50% + ${Z.shiftX}px))`},children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-oai-gray-100 dark:border-oai-gray-800/80 pb-1.5",children:[e.jsx("span",{className:"text-[11px] font-semibold text-oai-gray-500 dark:text-oai-gray-400",children:v.day}),(()=>{const a=v.level===0?E?"#9ca3af":"#6b7280":A[v.level];return e.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full font-medium",style:{backgroundColor:a+"22",color:a,border:`1px solid ${a}44`},children:o("heatmap.tooltip.level",{level:v.level})})})()]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-baseline gap-1",children:[e.jsx("span",{title:S(v.total_tokens??v.value),className:"text-lg font-bold text-oai-gray-900 dark:text-white leading-none",children:$(v.total_tokens??v.value)}),e.jsx("span",{className:"text-[10px] text-oai-gray-400 uppercase tracking-wider font-semibold",children:o("heatmap.unit.tokens")})]}),v.models&&Object.keys(v.models).length>0?e.jsxs("div",{className:"mt-1.5 border-t border-oai-gray-100 dark:border-oai-gray-800/60 pt-2 flex flex-col gap-1.5",children:[e.jsx("div",{className:"text-[10px] font-semibold text-oai-gray-400 dark:text-oai-gray-500 uppercase tracking-wider",children:o("heatmap.tooltip.model_breakdown")}),e.jsx("div",{className:"flex flex-col gap-2 max-h-[150px] overflow-y-auto pr-1.5 oai-scrollbar",children:Object.entries(v.models).map(([a,m])=>({name:a,val:Number(m)})).sort((a,m)=>m.val-a.val).map(({name:a,val:m})=>{const z=Number(v.total_tokens??v.value)||1,N=Math.round(m/z*100);return e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center justify-between text-[11px] gap-3",children:[e.jsx("span",{className:"font-medium text-oai-gray-750 dark:text-oai-gray-200 truncate max-w-[120px]",title:a,children:a}),e.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[e.jsx("span",{title:S(m),className:"font-mono text-oai-gray-900 dark:text-oai-gray-100 font-semibold",children:$(m)}),e.jsxs("span",{className:"text-[9px] text-oai-gray-450 dark:text-oai-gray-500 min-w-[28px] text-right font-medium",children:[N,"%"]})]})]}),e.jsx("div",{className:"w-full h-1 bg-oai-gray-100 dark:bg-oai-gray-800/85 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full transition-all duration-300",style:{width:`${N}%`,backgroundColor:A[4],boxShadow:`0 0 4px ${A[4]}55`}})})]},a)})})]}):e.jsx("p",{className:"text-[11px] text-oai-gray-600 dark:text-oai-gray-300 leading-relaxed font-normal mt-1 border-t border-dashed border-oai-gray-100 dark:border-oai-gray-800/60 pt-1.5",children:Se(v.level,v.total_tokens??v.value,$)})]})]}),e.jsx("div",{className:`absolute left-0 -translate-x-1/2 w-2.5 h-2.5 rotate-45 bg-white dark:bg-oai-gray-900 shadow-sm ${Z.flipY?"top-[6px] border-l border-t":"bottom-[6px] border-r border-b"} border-oai-gray-200/50 dark:border-oai-gray-800/50`,style:Z.flipY?{marginTop:"1px"}:{marginBottom:"1px"}})]}),document.body),e.jsx("style",{children:`
2
+ @keyframes tt-fade-in {
3
+ from { opacity: 0; }
4
+ to { opacity: 1; }
5
+ }
6
+ @keyframes tt-fade-out {
7
+ from { opacity: 1; }
8
+ to { opacity: 0; }
9
+ }
10
+ @keyframes tt-modal-entrance {
11
+ from {
12
+ opacity: 0;
13
+ transform: scale(0.96) translateY(10px);
14
+ }
15
+ to {
16
+ opacity: 1;
17
+ transform: scale(1) translateY(0);
18
+ }
19
+ }
20
+ @keyframes tt-modal-exit {
21
+ from {
22
+ opacity: 1;
23
+ transform: scale(1) translateY(0);
24
+ }
25
+ to {
26
+ opacity: 0;
27
+ transform: scale(0.96) translateY(10px);
28
+ }
29
+ }
30
+ .animate-tt-fade-in {
31
+ animation: tt-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
32
+ }
33
+ .animate-tt-fade-out {
34
+ animation: tt-fade-out 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
35
+ }
36
+ .animate-tt-modal {
37
+ animation: tt-modal-entrance 0.3s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
38
+ }
39
+ .animate-tt-modal-exit {
40
+ animation: tt-modal-exit 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
41
+ }
42
+ `})]})}const gt={anythingllm:"AnythingLLM",pianthropic:"Pi · Anthropic",pigithubcopilot:"Pi · GitHub Copilot",picopilot:"Pi · Copilot"};function yt(l){return String(l||"").trim().toLowerCase().replace(/[\s_-]+/g,"")}function zt(l){const u=String(l||"").trim();if(!u)return"";const h=gt[yt(u)];return h||u.charAt(0).toUpperCase()+u.slice(1)}export{Ct as A,zt as f};