@petercjl/omni-desktop-app 0.1.7 → 0.1.8

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 (102) hide show
  1. package/app/assets/{CartesianChart-acGhtLrw.js → CartesianChart-Bwf4u0Tg.js} +4 -4
  2. package/app/assets/{CollaborationWorkspace-DAWo2Vol.js → CollaborationWorkspace-Bd6Sjj31.js} +5 -5
  3. package/app/assets/CollaborationWorkspace-D7ttfUjn.css +1 -0
  4. package/app/assets/EmptyState-CE7obISq.js +1 -0
  5. package/app/assets/{EvidenceSourceGuide-qBsaH1fx.js → EvidenceSourceGuide-CwfB7Z6T.js} +1 -1
  6. package/app/assets/{Favorites-C3gPJxbl.js → Favorites-4oU1mgEb.js} +1 -1
  7. package/app/assets/{HelpTip-X4GpEnvk.js → HelpTip-CX2LFdwD.js} +1 -1
  8. package/app/assets/{LineChart-CyiCaQMM.js → LineChart-B6igYupv.js} +1 -1
  9. package/app/assets/Opportunities-a5IpRN6k.js +1 -0
  10. package/app/assets/{ProgressiveRows-DPZqhsXV.js → ProgressiveRows-ByxDeTyy.js} +1 -1
  11. package/app/assets/ShopLayoutPage-D7KKJVEq.js +1 -0
  12. package/app/assets/{TrendChart-ClEBAnKO.js → TrendChart-BdRXaz4z.js} +1 -1
  13. package/app/assets/arrow-down-DSjucZgz.js +1 -0
  14. package/app/assets/arrow-left-DmIga4jN.js +1 -0
  15. package/app/assets/arrow-up-right-DzAKT3cL.js +1 -0
  16. package/app/assets/book-open-C0B9Pao9.js +1 -0
  17. package/app/assets/{chart-no-axes-combined-dFluBLOV.js → chart-no-axes-combined-XDy9u9SV.js} +1 -1
  18. package/app/assets/check-BB89tIU6.js +1 -0
  19. package/app/assets/chevron-down-BiokgLxD.js +1 -0
  20. package/app/assets/chevron-right-CZlQQ5gV.js +1 -0
  21. package/app/assets/{clock-3-DpvJxor3.js → clock-3-TH35nOP-.js} +1 -1
  22. package/app/assets/components-C2-vHJtu.js +2 -0
  23. package/app/assets/{download-BQwcTDwB.js → download-BlJN0Lg8.js} +1 -1
  24. package/app/assets/entry-BryQeuNT.css +1 -0
  25. package/app/assets/entry-Bxc-KNuY.js +1 -0
  26. package/app/assets/entry-CYGrMJuR.js +2 -0
  27. package/app/assets/entry-CdLi3Z9F.js +2 -0
  28. package/app/assets/entry-DM3aLe2I.js +1 -0
  29. package/app/assets/entry-OcErMaMp.css +1 -0
  30. package/app/assets/entry-ZwyGbRek.js +1 -0
  31. package/app/assets/entry-ffP7X21A.js +2 -0
  32. package/app/assets/{file-text-DF8-c_Tb.js → file-text-Hd45wNTe.js} +1 -1
  33. package/app/assets/{grid-2x2-BNdV1X54.js → grid-2x2-C0aJVeyS.js} +1 -1
  34. package/app/assets/index-BguiS02-.js +10 -0
  35. package/app/assets/index-D1qZkLPg.css +1 -0
  36. package/app/assets/{layers-BY0DtVnH.js → layers-Dj9z2et6.js} +1 -1
  37. package/app/assets/layout-dashboard-DS537D8b.js +1 -0
  38. package/app/assets/{link-2-B7GAWapc.js → link-2-CCKUDMV6.js} +1 -1
  39. package/app/assets/{list-DrSHrHvT.js → list-LZcXKWKD.js} +1 -1
  40. package/app/assets/market-DqV9l-vR.css +1 -0
  41. package/app/assets/market.module-BSrEp5Ak.js +1 -0
  42. package/app/assets/module-host-C4vqZw2y.js +1 -0
  43. package/app/assets/orbit-G4ZspWKB.js +1 -0
  44. package/app/assets/{package-C_xD77DO.js → package-BFlv-jYw.js} +1 -1
  45. package/app/assets/play-DxbesM66.js +1 -0
  46. package/app/assets/plus-QakkcxdA.js +1 -0
  47. package/app/assets/products-BAKFF--e.js +1 -0
  48. package/app/assets/project-public-BCoD2Anq.js +1 -0
  49. package/app/assets/project-public-HdtYycKS.js +4 -0
  50. package/app/assets/public-JUGpS2z7.js +1 -0
  51. package/app/assets/{refresh-cw-BZ6-gKfF.js → refresh-cw-dsQ_f-9j.js} +1 -1
  52. package/app/assets/search-Cisx0wBF.js +1 -0
  53. package/app/assets/triangle-alert-l-Mfj0iE.js +1 -0
  54. package/app/assets/ui-public-DWkIf658.js +1 -0
  55. package/app/assets/use-favorites-ALxrDxDW.js +1 -0
  56. package/app/assets/workbench-DZTf1DRZ.js +2 -0
  57. package/app/assets/workbench-Db45mF6t.css +1 -0
  58. package/app/assets/workspace-view-state-BJMX6vWb.js +1 -0
  59. package/app/index.html +2 -2
  60. package/package.json +1 -1
  61. package/release.json +1 -1
  62. package/release.sig +1 -1
  63. package/app/assets/CollaborationWorkspace-DHP4cb-p.css +0 -1
  64. package/app/assets/EmptyState-BgcduNtk.js +0 -1
  65. package/app/assets/Opportunities-DDR6jMz5.js +0 -1
  66. package/app/assets/ShopLayoutPage-7lNMFD1W.js +0 -1
  67. package/app/assets/activity-idEO2qnr.js +0 -1
  68. package/app/assets/arrow-left-rfprDrQc.js +0 -1
  69. package/app/assets/arrow-up-right-Bp3gzP7v.js +0 -1
  70. package/app/assets/check-DokC3Ug0.js +0 -1
  71. package/app/assets/chevron-down-CHQKhw_4.js +0 -1
  72. package/app/assets/chevron-right-2HEa4oQb.js +0 -1
  73. package/app/assets/components-zDEQpnyp.js +0 -2
  74. package/app/assets/entry-BNiO6CiP.js +0 -2
  75. package/app/assets/entry-BleRLT_W.js +0 -1
  76. package/app/assets/entry-CO870j9p.css +0 -1
  77. package/app/assets/entry-CYsrxe4a.js +0 -2
  78. package/app/assets/entry-D2FD-KFx.js +0 -1
  79. package/app/assets/entry-DAnTlYgL.js +0 -1
  80. package/app/assets/entry-DSEbJ79v.js +0 -2
  81. package/app/assets/entry-OPB3MGoc.css +0 -1
  82. package/app/assets/git-branch-CMQGDByc.js +0 -1
  83. package/app/assets/index-7NKGenq7.css +0 -1
  84. package/app/assets/index-BBySSIJT.js +0 -10
  85. package/app/assets/market-B2oImfqS.css +0 -1
  86. package/app/assets/market.module-BXeOH_ee.js +0 -1
  87. package/app/assets/module-host-BHOsDk69.js +0 -1
  88. package/app/assets/pin-BEsLCHJL.js +0 -1
  89. package/app/assets/plus-C301wuGJ.js +0 -1
  90. package/app/assets/products-CfPFkCnk.js +0 -1
  91. package/app/assets/project-public-CYza4XVS.js +0 -4
  92. package/app/assets/project-public-DqjxO6ad.js +0 -1
  93. package/app/assets/public-DoBzMSlG.js +0 -1
  94. package/app/assets/ui-public-CX7L8QF_.js +0 -1
  95. package/app/assets/use-favorites-ChTJGQkB.js +0 -1
  96. package/app/assets/workbench-13XxpUuA.css +0 -1
  97. package/app/assets/workbench-BCuh9Nyq.js +0 -2
  98. package/app/assets/workspace-view-state-CYNxOsyc.js +0 -1
  99. /package/app/assets/{api-DP_rt0Zx.js → api-hjUd9Skg.js} +0 -0
  100. /package/app/assets/{format-jsGSJ1GL.js → format-BCxMsVJh.js} +0 -0
  101. /package/app/assets/{graphicalItemSelectors-GhHIivGe.js → graphicalItemSelectors-Hc730Dd1.js} +0 -0
  102. /package/app/assets/{group--adLvfC6.js → group-CjIFQYrJ.js} +0 -0
@@ -0,0 +1 @@
1
+ import{n as e,t}from"./orbit-G4ZspWKB.js";import{t as n}from"./arrow-down-DSjucZgz.js";import{t as r}from"./arrow-left-DmIga4jN.js";import{n as i,t as a}from"./clock-3-TH35nOP-.js";import{t as o}from"./book-open-C0B9Pao9.js";import{t as s}from"./chart-no-axes-combined-XDy9u9SV.js";import{t as c}from"./check-BB89tIU6.js";import{n as l,t as u}from"./layout-dashboard-DS537D8b.js";import{t as d}from"./layers-Dj9z2et6.js";import{t as ee}from"./play-DxbesM66.js";import{t as te}from"./refresh-cw-dsQ_f-9j.js";import{t as f}from"./triangle-alert-l-Mfj0iE.js";import{a as p,c as m,f as h,g,m as ne,o as re,p as _,u as ie,y as v}from"./index-BguiS02-.js";import{n as ae}from"./module-host-C4vqZw2y.js";import{n as oe}from"./workspace-view-state-BJMX6vWb.js";import"./public-JUGpS2z7.js";var y=_(`calendar-days`,[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}],[`path`,{d:`M8 13h.01`,key:`1sbv64`}],[`path`,{d:`M12 13h.01`,key:`y0uutt`}],[`path`,{d:`M16 13h.01`,key:`wip0gl`}],[`path`,{d:`M8 17h.01`,key:`p3bg7i`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M16 17h.01`,key:`ql8jdd`}]]),se=_(`folder-kanban`,[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M12 10v2`,key:`hh53o1`}],[`path`,{d:`M16 10v6`,key:`1d6xys`}]]),ce=_(`pause`,[[`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`}]]),b=_(`radar`,[[`path`,{d:`M19.07 4.93A10 10 0 0 0 6.99 3.34`,key:`z3du51`}],[`path`,{d:`M4 6h.01`,key:`oypzma`}],[`path`,{d:`M2.29 9.62A10 10 0 1 0 21.31 8.35`,key:`qzzz0`}],[`path`,{d:`M16.24 7.76A6 6 0 1 0 8.23 16.67`,key:`1yjesh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M17.99 11.66A6 6 0 0 1 15.77 16.67`,key:`1u2y91`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`m13.41 10.59 5.66-5.66`,key:`mhq4k0`}]]),x=_(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),S=_(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),C=v(g(),1),le=[{id:`omni-start`,title:`山海入门:从市场机会到新品项目`,category:`入门指南`,date:`2026-11-20`,time:`14:00–15:30`,duration:`90 分钟`,format:`线上直播`,teacher:`林老师`,teacherBio:`课程示例讲师,围绕新品开发与团队协作,讲解山海的完整使用路径。`,description:`以一次新品机会评估为线索,认识山海的功能分工,将市场观察整理成可推进的项目,让资料、任务和成果各有归属。`,audience:`首次使用山海的同事、产品开发与电商运营人员。`,outcomes:[`理解五个业务模块的分工与使用顺序`,`将一个市场研究方向整理成项目目标`,`建立任务、资料与成果之间的关联`],preparation:[`准备一个希望研究的商品方向或类目`,`确认可以登录山海并进入企业工作区`],agenda:[{time:`14:00–14:15`,title:`认识山海的工作方式`,description:`从市场、经营、商品、项目与资料五个视角,理解信息如何流动。`},{time:`14:15–14:40`,title:`从市场观察提出问题`,description:`查看类目与榜单,记录观察、证据和需要进一步核实的问题。`},{time:`14:40–15:10`,title:`建立第一个新品项目`,description:`明确目标,组织节点与任务,关联资料并记录下一步行动。`},{time:`15:10–15:30`,title:`练习复盘与答疑`,description:`检查项目是否具备明确目标、可执行任务及可引用的依据。`}]},{id:`market-practice`,title:`市场大盘实战:筛选值得研究的赛道`,category:`市场研究`,date:`2026-11-24`,time:`19:30–21:00`,duration:`90 分钟`,format:`线上实操`,teacher:`陈老师`,teacherBio:`课程示例讲师,以类目趋势和竞争结构为线索,讲解市场研究方法。`,description:`从类目规模、增长和竞争分布出发,结合商品榜与店铺榜交叉查看,形成有证据、有边界的赛道研究结论。`,audience:`负责选品、市场研究、类目规划的产品与运营同事。`,outcomes:[`理解规模、增长和竞争指标的适用范围`,`完成从机会赛道到商品与店铺的下钻`,`整理一份包含证据与待核实问题的研究摘要`],preparation:[`选择一个已授权且有榜单数据的类目`,`准备一个业务问题,例如增长来自哪些商品或店铺`],agenda:[{time:`19:30–19:45`,title:`确定研究问题与比较范围`,description:`选择类目、月份与比较周期,识别缺失数据及可比范围。`},{time:`19:45–20:10`,title:`识别机会与竞争结构`,description:`结合规模、增长、基数与店铺数量,筛选值得进一步研究的方向。`},{time:`20:10–20:40`,title:`商品与店铺交叉验证`,description:`下钻榜单,观察商品增长、店铺分布和趋势,检验初步判断。`},{time:`20:40–21:00`,title:`形成结论与答疑`,description:`区分事实、假设和行动建议,明确下一步补充哪些证据。`}]},{id:`agent-workflow`,title:`项目与 Agent 协作:从任务交接到成果归档`,category:`协作进阶`,date:`2026-11-27`,time:`14:00–16:00`,duration:`120 分钟`,format:`实战工作坊`,teacher:`周老师`,teacherBio:`课程示例讲师,关注任务组织、Agent 协作与项目知识沉淀。`,description:`围绕一个具体任务,练习准备上下文、交接给已连接的 Agent、沟通修改,并将结果与证据归档到原项目。`,audience:`希望使用 Agent 完成研究、分析或内容任务的项目负责人和执行同事。`,outcomes:[`写清任务目标、输入与完成标准`,`理解任务交接、实际执行与成果回写的区别`,`在原任务中查看成果、执行记录和项目知识`],preparation:[`准备一个项目及可独立完成的任务`,`连接一个本机 Agent,并确认具备任务所需 Skill`,`准备可用于该任务的资料和附件`],agenda:[{time:`14:00–14:20`,title:`准备可执行的任务`,description:`明确目标、前置资料、完成标准和需要人工判断的事项。`},{time:`14:20–14:50`,title:`将任务交接给 Agent`,description:`检查连接,打开任务对话,读取项目背景并确认执行范围。`},{time:`14:50–15:30`,title:`执行、反馈与修改`,description:`在 Agent 对话中补充资料,检视结果,并记录受阻原因与处理方式。`},{time:`15:30–16:00`,title:`归档成果与知识`,description:`回到山海核对文件、结果摘要、项目 Wiki 和任务状态,复盘完整链路。`}]}];function w(e){return new Intl.DateTimeFormat(`zh-CN`,{timeZone:`Asia/Shanghai`,month:`long`,day:`numeric`,weekday:`long`}).format(new Date(`${e}T12:00:00+08:00`))}var ue=[{version:`0.1.7`,date:`2026-11-17`,title:`市场洞察与项目工作流,更进一步`,summary:`从发现机会到推进项目,让研究与行动衔接得更顺畅。`,changes:[{kind:`新增`,title:`机会市场与增长商品下钻`,description:`从机会市场继续查看增长商品,支持进一步研究市场变化。`},{kind:`优化`,title:`项目统一入口`,description:`统一项目访问入口,并在工作台展示项目摘要。`},{kind:`优化`,title:`店铺商品目录`,description:`更新店铺商品目录,方便浏览经营商品。`},{kind:`优化`,title:`机会发现页面`,description:`调整页面留白、筛选栏及统计月份卡片,提升阅读和筛选体验。`}]},{version:`0.1.6`,date:`2026-11-17`,title:`更清晰的项目模板与任务编辑`,summary:`完善项目配置细节,让模板选择与任务组织更加顺手。`,changes:[{kind:`优化`,title:`SOP 与任务模板详情`,description:`优化模板详情,便于查看内容并组织项目。`},{kind:`优化`,title:`平台选择与 Skill 标注`,description:`完善平台全选、反选及 Skill 标注的展示。`},{kind:`优化`,title:`添加节点与任务`,description:`优化编辑过程中的滚动和预览布局。`}]},{version:`0.1.5`,date:`2026-11-16`,title:`市场分析,连接真实业务数据`,summary:`完善市场分析的数据、方案与视窗交互。`,changes:[{kind:`新增`,title:`真实市场数据分析`,description:`市场分析接入真实数据,支持在业务场景中开展研究。`},{kind:`新增`,title:`账号分析方案`,description:`支持保存账号分析方案,便于持续使用。`},{kind:`优化`,title:`分析视窗交互`,description:`完善市场分析视窗的浏览体验。`}]},{version:`0.1.4`,date:`2026-11-15`,title:`账号管理与桌面导航体验升级`,summary:`完善企业账号管理,并统一日常使用的导航与页头。`,changes:[{kind:`新增`,title:`更完整的企业账号管理`,description:`支持管理员子账号、选填使用人与电话,以及自助修改密码。`},{kind:`优化`,title:`统一页头与固定业务导航`,description:`提供可折叠菜单、快捷按钮名称提示和固定业务导航。`},{kind:`优化`,title:`账号菜单与 Agent 提示词`,description:`优化账号菜单和 Agent 使用提示词。`}]}],T;(function(e){e.assertEqual=e=>{};function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&Number.isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(T||={});var de;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(de||={});var E=T.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),D=e=>{switch(typeof e){case`undefined`:return E.undefined;case`string`:return E.string;case`number`:return Number.isNaN(e)?E.nan:E.number;case`boolean`:return E.boolean;case`function`:return E.function;case`bigint`:return E.bigint;case`symbol`:return E.symbol;case`object`:return Array.isArray(e)?E.array:e===null?E.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?E.promise:typeof Map<`u`&&e instanceof Map?E.map:typeof Set<`u`&&e instanceof Set?E.set:typeof Date<`u`&&e instanceof Date?E.date:E.object;default:return E.unknown}},O=T.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),k=class e extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(t){if(!(t instanceof e))throw Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,T.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};k.create=e=>new k(e);var fe=(e,t)=>{let n;switch(e.code){case O.invalid_type:n=e.received===E.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case O.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,T.jsonStringifyReplacer)}`;break;case O.unrecognized_keys:n=`Unrecognized key(s) in object: ${T.joinValues(e.keys,`, `)}`;break;case O.invalid_union:n=`Invalid input`;break;case O.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${T.joinValues(e.options)}`;break;case O.invalid_enum_value:n=`Invalid enum value. Expected ${T.joinValues(e.options)}, received '${e.received}'`;break;case O.invalid_arguments:n=`Invalid function arguments`;break;case O.invalid_return_type:n=`Invalid function return type`;break;case O.invalid_date:n=`Invalid date`;break;case O.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:T.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case O.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`||e.type===`bigint`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case O.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case O.custom:n=`Invalid input`;break;case O.invalid_intersection_types:n=`Intersection results could not be merged`;break;case O.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case O.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,T.assertNever(e)}return{message:n}},pe=fe;function me(){return pe}var he=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function A(e,t){let n=me(),r=he({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===fe?void 0:fe].filter(e=>!!e)});e.common.issues.push(r)}var j=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return M;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return M;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},M=Object.freeze({status:`aborted`}),ge=e=>({status:`dirty`,value:e}),N=e=>({status:`valid`,value:e}),_e=e=>e.status===`aborted`,ve=e=>e.status===`dirty`,ye=e=>e.status===`valid`,be=e=>typeof Promise<`u`&&e instanceof Promise,P;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(P||={});var F=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},xe=(e,t)=>{if(ye(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new k(e.common.issues);return this._error=t,this._error}}};function I(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var L=class{get description(){return this._def.description}_getType(e){return D(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:D(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new j,ctx:{common:e.parent.common,data:e.data,parsedType:D(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(be(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:D(e)};return xe(n,this._parseSync({data:e,path:n.path,parent:n}))}"~validate"(e){let t={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:D(e)};if(!this[`~standard`].async)try{let n=this._parseSync({data:e,path:[],parent:t});return ye(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes(`encountered`)&&(this[`~standard`].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>ye(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:D(e)},r=this._parse({data:e,path:n.path,parent:n});return xe(n,await(be(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:O.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new W({schema:this,typeName:q.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[`~standard`]={version:1,vendor:`zod`,validate:e=>this[`~validate`](e)}}optional(){return G.create(this,this._def)}nullable(){return K.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return B.create(this)}promise(){return _t.create(this,this._def)}or(e){return it.create([this,e],this._def)}and(e){return st.create(this,e,this._def)}transform(e){return new W({...I(this._def),schema:this,typeName:q.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new vt({...I(this._def),innerType:this,defaultValue:t,typeName:q.ZodDefault})}brand(){return new xt({typeName:q.ZodBranded,type:this,...I(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new yt({...I(this._def),innerType:this,catchValue:t,typeName:q.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return St.create(this,e)}readonly(){return Ct.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Se=/^c[^\s-]{8,}$/i,Ce=/^[0-9a-z]+$/,we=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Te=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Ee=/^[a-z0-9_-]{21}$/i,De=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Oe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ke=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Ae=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,je,Me=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ne=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Pe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Fe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ie=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Le=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Re=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,ze=RegExp(`^${Re}$`);function Be(e){let t=`[0-5]\\d`;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`);let n=e.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Ve(e){return RegExp(`^${Be(e)}$`)}function He(e){let t=`${Re}T${Be(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function Ue(e,t){return!!((t===`v4`||!t)&&Me.test(e)||(t===`v6`||!t)&&Pe.test(e))}function We(e,t){if(!De.test(e))return!1;try{let[n]=e.split(`.`);if(!n)return!1;let r=n.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(n.length+(4-n.length%4)%4,`=`),i=JSON.parse(atob(r));return!(typeof i!=`object`||!i||`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&i.alg!==t)}catch{return!1}}function Ge(e,t){return!!((t===`v4`||!t)&&Ne.test(e)||(t===`v6`||!t)&&Fe.test(e))}var Ke=class e extends L{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==E.string){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.string,received:t.parsedType}),M}let t=new j,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),A(n,{code:O.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`max`)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),A(n,{code:O.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.length<r.value;(i||a)&&(n=this._getOrReturnCtx(e,n),i?A(n,{code:O.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}):a&&A(n,{code:O.too_small,minimum:r.value,type:`string`,inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if(r.kind===`email`)ke.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`email`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`emoji`)je||=new RegExp(Ae,`u`),je.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`emoji`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`uuid`)Te.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`uuid`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`nanoid`)Ee.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`nanoid`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid`)Se.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`cuid`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`cuid2`)Ce.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`cuid2`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`ulid`)we.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`ulid`,code:O.invalid_string,message:r.message}),t.dirty());else if(r.kind===`url`)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),A(n,{validation:`url`,code:O.invalid_string,message:r.message}),t.dirty()}else r.kind===`regex`?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`regex`,code:O.invalid_string,message:r.message}),t.dirty())):r.kind===`trim`?e.data=e.data.trim():r.kind===`includes`?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty()):r.kind===`toLowerCase`?e.data=e.data.toLowerCase():r.kind===`toUpperCase`?e.data=e.data.toUpperCase():r.kind===`startsWith`?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):r.kind===`endsWith`?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):r.kind===`datetime`?He(r).test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:`datetime`,message:r.message}),t.dirty()):r.kind===`date`?ze.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:`date`,message:r.message}),t.dirty()):r.kind===`time`?Ve(r).test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{code:O.invalid_string,validation:`time`,message:r.message}),t.dirty()):r.kind===`duration`?Oe.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`duration`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`ip`?Ue(e.data,r.version)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`ip`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`jwt`?We(e.data,r.alg)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`jwt`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`cidr`?Ge(e.data,r.version)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`cidr`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`base64`?Ie.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`base64`,code:O.invalid_string,message:r.message}),t.dirty()):r.kind===`base64url`?Le.test(e.data)||(n=this._getOrReturnCtx(e,n),A(n,{validation:`base64url`,code:O.invalid_string,message:r.message}),t.dirty()):T.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:O.invalid_string,...P.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...P.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...P.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...P.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...P.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...P.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...P.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...P.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...P.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...P.errToObj(e)})}base64url(e){return this._addCheck({kind:`base64url`,...P.errToObj(e)})}jwt(e){return this._addCheck({kind:`jwt`,...P.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...P.errToObj(e)})}cidr(e){return this._addCheck({kind:`cidr`,...P.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...P.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...P.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...P.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...P.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...P.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...P.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...P.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...P.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...P.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...P.errToObj(t)})}nonempty(e){return this.min(1,P.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(e=>e.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(e=>e.kind===`base64url`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};Ke.create=e=>new Ke({checks:[],typeName:q.ZodString,coerce:e?.coerce??!1,...I(e)});function qe(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}var Je=class e extends L{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==E.number){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.number,received:t.parsedType}),M}let t,n=new j;for(let r of this._def.checks)r.kind===`int`?T.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),A(t,{code:O.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.too_small,minimum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?qe(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),A(t,{code:O.not_finite,message:r.message}),n.dirty()):T.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,P.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,P.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,P.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,P.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:P.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:P.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:P.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:P.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:P.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:P.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:P.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:P.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:P.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:P.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind===`int`||e.kind===`multipleOf`&&T.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.value<e)&&(e=n.value);return Number.isFinite(t)&&Number.isFinite(e)}};Je.create=e=>new Je({checks:[],typeName:q.ZodNumber,coerce:e?.coerce||!1,...I(e)});var Ye=class e extends L{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==E.bigint)return this._getInvalidInput(e);let t,n=new j;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.too_small,type:`bigint`,minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`max`?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),A(t,{code:O.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):T.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.bigint,received:t.parsedType}),M}gte(e,t){return this.setLimit(`min`,e,!0,P.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,P.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,P.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,P.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:P.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:P.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:P.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:P.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:P.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:P.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e}};Ye.create=e=>new Ye({checks:[],typeName:q.ZodBigInt,coerce:e?.coerce??!1,...I(e)});var Xe=class extends L{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==E.boolean){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.boolean,received:t.parsedType}),M}return N(e.data)}};Xe.create=e=>new Xe({typeName:q.ZodBoolean,coerce:e?.coerce||!1,...I(e)});var Ze=class e extends L{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==E.date){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.date,received:t.parsedType}),M}if(Number.isNaN(e.data.getTime()))return A(this._getOrReturnCtx(e),{code:O.invalid_date}),M;let t=new j,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),A(n,{code:O.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:`date`}),t.dirty()):r.kind===`max`?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),A(n,{code:O.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):T.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:P.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:P.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.value<e)&&(e=t.value);return e==null?null:new Date(e)}};Ze.create=e=>new Ze({checks:[],coerce:e?.coerce||!1,typeName:q.ZodDate,...I(e)});var Qe=class extends L{_parse(e){if(this._getType(e)!==E.symbol){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.symbol,received:t.parsedType}),M}return N(e.data)}};Qe.create=e=>new Qe({typeName:q.ZodSymbol,...I(e)});var $e=class extends L{_parse(e){if(this._getType(e)!==E.undefined){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.undefined,received:t.parsedType}),M}return N(e.data)}};$e.create=e=>new $e({typeName:q.ZodUndefined,...I(e)});var et=class extends L{_parse(e){if(this._getType(e)!==E.null){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.null,received:t.parsedType}),M}return N(e.data)}};et.create=e=>new et({typeName:q.ZodNull,...I(e)});var tt=class extends L{constructor(){super(...arguments),this._any=!0}_parse(e){return N(e.data)}};tt.create=e=>new tt({typeName:q.ZodAny,...I(e)});var R=class extends L{constructor(){super(...arguments),this._unknown=!0}_parse(e){return N(e.data)}};R.create=e=>new R({typeName:q.ZodUnknown,...I(e)});var z=class extends L{_parse(e){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.never,received:t.parsedType}),M}};z.create=e=>new z({typeName:q.ZodNever,...I(e)});var nt=class extends L{_parse(e){if(this._getType(e)!==E.undefined){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.void,received:t.parsedType}),M}return N(e.data)}};nt.create=e=>new nt({typeName:q.ZodVoid,...I(e)});var B=class e extends L{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==E.array)return A(t,{code:O.invalid_type,expected:E.array,received:t.parsedType}),M;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.length<r.exactLength.value;(e||i)&&(A(t,{code:e?O.too_big:O.too_small,minimum:i?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:`array`,inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(r.minLength!==null&&t.data.length<r.minLength.value&&(A(t,{code:O.too_small,minimum:r.minLength.value,type:`array`,inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),r.maxLength!==null&&t.data.length>r.maxLength.value&&(A(t,{code:O.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new F(t,e,t.path,n)))).then(e=>j.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new F(t,e,t.path,n)));return j.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:P.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:P.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:P.toString(n)}})}nonempty(e){return this.min(1,e)}};B.create=(e,t)=>new B({type:e,minLength:null,maxLength:null,exactLength:null,typeName:q.ZodArray,...I(t)});function rt(e){if(e instanceof V){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=G.create(rt(r))}return new V({...e._def,shape:()=>t})}else if(e instanceof B)return new B({...e._def,type:rt(e.element)});else if(e instanceof G)return G.create(rt(e.unwrap()));else if(e instanceof K)return K.create(rt(e.unwrap()));else if(e instanceof U)return U.create(e.items.map(e=>rt(e)));else return e}var V=class e extends L{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=T.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==E.object){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.object,received:t.parsedType}),M}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof z&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new F(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof z){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(A(n,{code:O.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new F(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>j.mergeObjectSync(t,e)):j.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return P.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{let r=this._def.errorMap?.(e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:P.errToObj(t).message??r}:{message:r}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:q.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let e of T.objectKeys(t))t[e]&&this.shape[e]&&(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let e of T.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return rt(this)}partial(t){let n={};for(let e of T.objectKeys(this.shape)){let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let e of T.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof G;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return mt(T.objectKeys(this.shape))}};V.create=(e,t)=>new V({shape:()=>e,unknownKeys:`strip`,catchall:z.create(),typeName:q.ZodObject,...I(t)}),V.strictCreate=(e,t)=>new V({shape:()=>e,unknownKeys:`strict`,catchall:z.create(),typeName:q.ZodObject,...I(t)}),V.lazycreate=(e,t)=>new V({shape:e,unknownKeys:`strip`,catchall:z.create(),typeName:q.ZodObject,...I(t)});var it=class extends L{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new k(e.ctx.common.issues));return A(t,{code:O.invalid_union,unionErrors:n}),M}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new k(e));return A(t,{code:O.invalid_union,unionErrors:i}),M}}get options(){return this._def.options}};it.create=(e,t)=>new it({options:e,typeName:q.ZodUnion,...I(t)});var H=e=>e instanceof ft?H(e.schema):e instanceof W?H(e.innerType()):e instanceof pt?[e.value]:e instanceof ht?e.options:e instanceof gt?T.objectValues(e.enum):e instanceof vt?H(e._def.innerType):e instanceof $e?[void 0]:e instanceof et?[null]:e instanceof G?[void 0,...H(e.unwrap())]:e instanceof K?[null,...H(e.unwrap())]:e instanceof xt||e instanceof Ct?H(e.unwrap()):e instanceof yt?H(e._def.innerType):[],at=class e extends L{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==E.object)return A(t,{code:O.invalid_type,expected:E.object,received:t.parsedType}),M;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(A(t,{code:O.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),M)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=H(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:q.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...I(r)})}};function ot(e,t){let n=D(e),r=D(t);if(e===t)return{valid:!0,data:e};if(n===E.object&&r===E.object){let n=T.objectKeys(t),r=T.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=ot(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}else if(n===E.array&&r===E.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=ot(i,a);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}else if(n===E.date&&r===E.date&&+e==+t)return{valid:!0,data:e};else return{valid:!1}}var st=class extends L{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(_e(e)||_e(r))return M;let i=ot(e.value,r.value);return i.valid?((ve(e)||ve(r))&&t.dirty(),{status:t.value,value:i.data}):(A(n,{code:O.invalid_intersection_types}),M)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};st.create=(e,t,n)=>new st({left:e,right:t,typeName:q.ZodIntersection,...I(n)});var U=class e extends L{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==E.array)return A(n,{code:O.invalid_type,expected:E.array,received:n.parsedType}),M;if(n.data.length<this._def.items.length)return A(n,{code:O.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),M;!this._def.rest&&n.data.length>this._def.items.length&&(A(n,{code:O.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new F(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>j.mergeArray(t,e)):j.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};U.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new U({items:e,typeName:q.ZodTuple,rest:null,...I(t)})};var ct=class e extends L{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==E.object)return A(n,{code:O.invalid_type,expected:E.object,received:n.parsedType}),M;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new F(n,e,n.path,e)),value:a._parse(new F(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?j.mergeObjectAsync(t,r):j.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof L?new e({keyType:t,valueType:n,typeName:q.ZodRecord,...I(r)}):new e({keyType:Ke.create(),valueType:t,typeName:q.ZodRecord,...I(n)})}},lt=class extends L{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==E.map)return A(n,{code:O.invalid_type,expected:E.map,received:n.parsedType}),M;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new F(n,e,n.path,[a,`key`])),value:i._parse(new F(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return M;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}else{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return M;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};lt.create=(e,t,n)=>new lt({valueType:t,keyType:e,typeName:q.ZodMap,...I(n)});var ut=class e extends L{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==E.set)return A(n,{code:O.invalid_type,expected:E.set,received:n.parsedType}),M;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(A(n,{code:O.too_small,minimum:r.minSize.value,type:`set`,inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),r.maxSize!==null&&n.data.size>r.maxSize.value&&(A(n,{code:O.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return M;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new F(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:P.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:P.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};ut.create=(e,t)=>new ut({valueType:e,minSize:null,maxSize:null,typeName:q.ZodSet,...I(t)});var dt=class e extends L{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==E.function)return A(t,{code:O.invalid_type,expected:E.function,received:t.parsedType}),M;function n(e,n){return he({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,me(),fe].filter(e=>!!e),issueData:{code:O.invalid_arguments,argumentsError:n}})}function r(e,n){return he({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,me(),fe].filter(e=>!!e),issueData:{code:O.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof _t){let e=this;return N(async function(...t){let o=new k([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}else{let e=this;return N(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new k([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new k([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:U.create(t).rest(R.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||U.create([]).rest(R.create()),returns:n||R.create(),typeName:q.ZodFunction,...I(r)})}},ft=class extends L{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};ft.create=(e,t)=>new ft({getter:e,typeName:q.ZodLazy,...I(t)});var pt=class extends L{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return A(t,{received:t.data,code:O.invalid_literal,expected:this._def.value}),M}return{status:`valid`,value:e.data}}get value(){return this._def.value}};pt.create=(e,t)=>new pt({value:e,typeName:q.ZodLiteral,...I(t)});function mt(e,t){return new ht({values:e,typeName:q.ZodEnum,...I(t)})}var ht=class e extends L{_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return A(t,{expected:T.joinValues(n),received:t.parsedType,code:O.invalid_type}),M}if(this._cache||=new Set(this._def.values),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return A(t,{received:t.data,code:O.invalid_enum_value,options:n}),M}return N(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};ht.create=mt;var gt=class extends L{_parse(e){let t=T.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==E.string&&n.parsedType!==E.number){let e=T.objectValues(t);return A(n,{expected:T.joinValues(e),received:n.parsedType,code:O.invalid_type}),M}if(this._cache||=new Set(T.getValidEnumValues(this._def.values)),!this._cache.has(e.data)){let e=T.objectValues(t);return A(n,{received:n.data,code:O.invalid_enum_value,options:e}),M}return N(e.data)}get enum(){return this._def.values}};gt.create=(e,t)=>new gt({values:e,typeName:q.ZodNativeEnum,...I(t)});var _t=class extends L{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==E.promise&&t.common.async===!1?(A(t,{code:O.invalid_type,expected:E.promise,received:t.parsedType}),M):N((t.parsedType===E.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};_t.create=(e,t)=>new _t({type:e,typeName:q.ZodPromise,...I(t)});var W=class extends L{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===q.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{A(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return M;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?M:r.status===`dirty`||t.value===`dirty`?ge(r.value):r});{if(t.value===`aborted`)return M;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?M:r.status===`dirty`||t.value===`dirty`?ge(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?M:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?M:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`)if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!ye(e))return M;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>ye(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):M);T.assertNever(r)}};W.create=(e,t,n)=>new W({schema:e,typeName:q.ZodEffects,effect:t,...I(n)}),W.createWithPreprocess=(e,t,n)=>new W({schema:t,effect:{type:`preprocess`,transform:e},typeName:q.ZodEffects,...I(n)});var G=class extends L{_parse(e){return this._getType(e)===E.undefined?N(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};G.create=(e,t)=>new G({innerType:e,typeName:q.ZodOptional,...I(t)});var K=class extends L{_parse(e){return this._getType(e)===E.null?N(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};K.create=(e,t)=>new K({innerType:e,typeName:q.ZodNullable,...I(t)});var vt=class extends L{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===E.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};vt.create=(e,t)=>new vt({innerType:e,typeName:q.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...I(t)});var yt=class extends L{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return be(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new k(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new k(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};yt.create=(e,t)=>new yt({innerType:e,typeName:q.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...I(t)});var bt=class extends L{_parse(e){if(this._getType(e)!==E.nan){let t=this._getOrReturnCtx(e);return A(t,{code:O.invalid_type,expected:E.nan,received:t.parsedType}),M}return{status:`valid`,value:e.data}}};bt.create=e=>new bt({typeName:q.ZodNaN,...I(e)});var xt=class extends L{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},St=class e extends L{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?M:e.status===`dirty`?(t.dirty(),ge(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?M:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:q.ZodPipeline})}},Ct=class extends L{_parse(e){let t=this._def.innerType._parse(e),n=e=>(ye(e)&&(e.value=Object.freeze(e.value)),e);return be(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};Ct.create=(e,t)=>new Ct({innerType:e,typeName:q.ZodReadonly,...I(t)}),V.lazycreate;var q;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(q||={});var J=Ke.create,Y=Je.create;bt.create,Ye.create;var wt=Xe.create;Ze.create,Qe.create,$e.create,et.create,tt.create;var Tt=R.create;z.create,nt.create;var Et=B.create,X=V.create;V.strictCreate,it.create,at.create,st.create,U.create;var Dt=ct.create;lt.create,ut.create,dt.create,ft.create;var Ot=pt.create;ht.create,gt.create,_t.create,W.create,G.create,K.create,W.createWithPreprocess,St.create;var kt=J().regex(/^\d{4}-\d{2}-\d{2}$/).refine(e=>Number.isFinite(Date.parse(e))&&new Date(e).toISOString().slice(0,10)===e),At=X({id:J(),name:J(),goal:J().optional(),stages:Et(J()),taskCount:Y().int().nonnegative(),updatedAt:J().optional(),archivedAt:J().nullable().optional()}),jt=X({taskCount:Y().int().nonnegative(),statusCounts:Dt(J(),Y().int().nonnegative())}).refine(e=>Object.values(e.statusCounts).reduce((e,t)=>e+t,0)===e.taskCount),Mt=X({id:J(),project:J(),projectName:J(),mode:J(),created:J(),start:kt,end:kt,total:Y().finite().nonnegative(),shopId:J().optional(),shopIds:Et(J()).default([]),scopeLabel:J(),basis:J(),count:Y().nonnegative().optional(),breakdown:Et(X({name:J(),sales:Y().finite(),count:Y().optional()})).default([])}).refine(e=>e.start<=e.end);function Nt(e){return[...new Set(e.map(e=>`${e.start}|${e.end}`))].sort((e,t)=>t.split(`|`)[1].localeCompare(e.split(`|`)[1])||t.localeCompare(e))}function Pt(e,t,n){let r=new Set(t.map(e=>e.id)),i=e.filter(e=>`${e.start}|${e.end}`===n&&e.mode!==`simulated`),a=new Map,o=[];for(let e of i){let t=e.shopId||(e.shopIds.length===1?e.shopIds[0]:``);if(!t||!r.has(t)||e.shopIds.some(e=>e!==t)){o.push(e);continue}let n=a.get(t);(!n||e.created>n.created||e.created===n.created&&e.id>n.id)&&a.set(t,e)}let s=t.map(e=>({...e,report:a.get(e.id)})),c=[...a.values()].reduce((e,t)=>e+Math.round(t.total*100),0);return{rows:s,covered:a.size,total:a.size?c/100:null,unassigned:o}}function Ft(e){let t=e.filter(e=>!e.archivedAt),n=t.filter(e=>e.counts!==null),r=e=>n.reduce((t,n)=>t+(n.counts?.[e]||0),0),i=t.reduce((e,t)=>e+t.taskCount,0),a=r(`已完成`);return{total:t.length,tasks:i,done:a,running:r(`进行中`),blocked:r(`已阻塞`),covered:n.length,complete:n.length===t.length,active:n.filter(e=>e.taskCount>0&&(e.counts?.已完成||0)<e.taskCount).length,progress:i?Math.round(a/i*100):0}}var It=X({ok:Ot(!0),data:X({items:Et(At),total:Y().int().nonnegative(),hasMore:wt()})});async function Lt(e){let t=[];for(let n=1;n<=100;n++){let r=It.parse(await e(`/collaboration/query/project/list?limit=100&page=${n}`));if(t.push(...r.data.items.map(e=>({...e,counts:null}))),!r.data.hasMore)break;if(!r.data.items.length||n===100)throw Error(`项目清单未读取完整,请重试`)}for(let n=0;n<t.length;n+=4)await Promise.all(t.slice(n,n+4).filter(e=>!e.archivedAt).map(async t=>{try{let n=X({ok:Ot(!0),data:jt}).parse(await e(`/collaboration/query/project/context?projectId=`+encodeURIComponent(t.id)));t.counts=n.data.statusCounts,t.taskCount=n.data.taskCount}catch{t.counts=null}}));return t}async function Rt(e){let t=X({products:Et(X({mode:J()})),metrics:X({sales:Et(Tt())})}).parse(await e(`/growth-center`)),n=[],r=0;for(let e of t.metrics.sales){let t=Mt.safeParse(e);t.success?t.data.mode!==`simulated`&&n.push(t.data):typeof e==`object`&&e&&`mode`in e&&e.mode===`simulated`||r++}return{sales:n,productCount:t.products.filter(e=>e.mode!==`simulated`).length,invalidSales:r}}var Z={overview:`_overview_ngsjb_1`,network:`_network_ngsjb_1`,pageHeading:`_pageHeading_ngsjb_1`,eyebrow:`_eyebrow_ngsjb_1`,refresh:`_refresh_ngsjb_1`,panelHeading:`_panelHeading_ngsjb_1`,shopDetails:`_shopDetails_ngsjb_1`,bottomMeta:`_bottomMeta_ngsjb_1`,topGrid:`_topGrid_ngsjb_1`,kpis:`_kpis_ngsjb_1`,money:`_money_ngsjb_1`,mainGrid:`_mainGrid_ngsjb_1`,panel:`_panel_ngsjb_1`,filters:`_filters_ngsjb_1`,shop:`_shop_ngsjb_1`,shopIcon:`_shopIcon_ngsjb_1`,shopIdentity:`_shopIdentity_ngsjb_1`,salesBar:`_salesBar_ngsjb_1`,projectStatus:`_projectStatus_ngsjb_1`,warning:`_warning_ngsjb_1`,projectRow:`_projectRow_ngsjb_1`,progress:`_progress_ngsjb_1`,note:`_note_ngsjb_1`,empty:`_empty_ngsjb_1`,error:`_error_ngsjb_1`,unassigned:`_unassigned_ngsjb_1`,networkHead:`_networkHead_ngsjb_1`,canvas:`_canvas_ngsjb_1`,networkCenter:`_networkCenter_ngsjb_1`,networkTags:`_networkTags_ngsjb_1`,motionNote:`_motionNote_ngsjb_1`,spinning:`_spinning_ngsjb_1`,spin:`_spin_ngsjb_1`},Q=re(),zt=()=>window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,Bt=e=>{let t=window.matchMedia(`(prefers-reduced-motion: reduce)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)};function Vt({projects:e,shops:t,tasks:n}){let r=(0,C.useRef)(null),i=(0,C.useSyncExternalStore)(Bt,zt,()=>!1),[a,o]=(0,C.useState)(()=>{try{let e=localStorage.getItem(`omni.home.effects`);return e===`playing`||e===`paused`?e:`system`}catch{return`system`}}),s=a===`playing`||a===`system`&&!i;function c(){let e=s?`paused`:`playing`;o(e);try{localStorage.setItem(`omni.home.effects`,e)}catch{}}return(0,C.useEffect)(()=>{let e=r.current,t=e?.getContext(`2d`);if(!e||!t)return;let n=0,i=0,a=0,o=-1/0,c=0,l=!0,u=``,d=``,ee=Array.from({length:64},(e,t)=>{let n=1-t/63*2,r=Math.sqrt(1-n*n),i=t*2.399963229728653;return{x:Math.cos(i)*r,y:n,z:Math.sin(i)*r}});function te(r){if(!t||!e)return;if(r-o<32){s&&l&&!document.hidden&&(n=requestAnimationFrame(te));return}o=r,s&&(c+=.018),t.clearRect(0,0,i,a);let f=Math.min(i*.3,a*.39),p=i*.51,m=a*.48,h=ee.map(e=>{let t=e.x*Math.cos(c)-e.z*Math.sin(c),n=e.x*Math.sin(c)+e.z*Math.cos(c);return{x:p+t*f,y:m+e.y*f*.82+Math.sin(c+e.x)*8,z:n}}),g=t.createRadialGradient(p,m,8,p,m,f*1.6);g.addColorStop(0,u+`25`),g.addColorStop(1,u+`00`),t.fillStyle=g,t.fillRect(0,0,i,a);for(let e=0;e<h.length;e++)for(let n=e+1;n<h.length;n++){let r=h[e],i=h[n],a=Math.hypot(r.x-i.x,r.y-i.y);if(!(a>f*.57||Math.abs(r.z-i.z)>1)&&(t.globalAlpha=(1-a/(f*.57))*.32,t.strokeStyle=u,t.lineWidth=.8,t.beginPath(),t.moveTo(r.x,r.y),t.lineTo(i.x,i.y),t.stroke(),(e+n)%13==0)){let n=(c*.8+e*.13)%1;t.globalAlpha=.8,t.fillStyle=u,t.beginPath(),t.arc(r.x+(i.x-r.x)*n,r.y+(i.y-r.y)*n,2.4,0,Math.PI*2),t.fill()}}h.forEach((e,n)=>{t.globalAlpha=(e.z+1)*.32+.25,t.fillStyle=n%7==0?u:d,t.beginPath(),t.arc(e.x,e.y,n%7==0?3:1.6,0,Math.PI*2),t.fill()}),t.globalAlpha=.5,t.strokeStyle=u,t.lineWidth=1;for(let e=0;e<2;e++)t.beginPath(),t.ellipse(p,m,f*1.24,f*.4,e?-.35:.35,c*(e?-1:1),c*(e?-1:1)+Math.PI*1.55),t.stroke();t.globalAlpha=1,s&&l&&!document.hidden&&(n=requestAnimationFrame(te))}function f(){cancelAnimationFrame(n),o=-1/0,n=requestAnimationFrame(te)}function p(){if(!e||!t)return;let n=e.getBoundingClientRect();i=n.width,a=n.height;let r=Math.min(devicePixelRatio||1,2);e.width=i*r,e.height=a*r,t.setTransform(r,0,0,r,0,0);let o=document.documentElement.dataset.omniTheme===`light`;u=o?`#087b86`:`#61e1ec`,d=o?`#477596`:`#7ca8d5`,f()}let m=new ResizeObserver(p);m.observe(e);let h=new MutationObserver(p);h.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-omni-theme`]});let g=new IntersectionObserver(e=>{l=e[0].isIntersecting,l?f():cancelAnimationFrame(n)});g.observe(e);let ne=()=>{document.hidden?cancelAnimationFrame(n):l&&f()};return document.addEventListener(`visibilitychange`,ne),p(),()=>{cancelAnimationFrame(n),m.disconnect(),h.disconnect(),g.disconnect(),document.removeEventListener(`visibilitychange`,ne)}},[s]),(0,Q.jsxs)(`section`,{className:Z.network,"aria-label":`项目与店铺动态数据网络`,children:[(0,Q.jsxs)(`div`,{className:Z.networkHead,children:[(0,Q.jsx)(`span`,{children:`OMNI / DATA NETWORK`}),(0,Q.jsxs)(`button`,{onClick:c,"aria-label":s?`暂停科技动效`:`开启科技动效`,"aria-pressed":s,children:[s?(0,Q.jsx)(ce,{size:12}):(0,Q.jsx)(ee,{size:12}),` `,s?`动效运行中`:`开启科技动效`]})]}),(0,Q.jsx)(`canvas`,{ref:r,className:Z.canvas,"aria-hidden":`true`}),(0,Q.jsxs)(`div`,{className:Z.networkCenter,children:[(0,Q.jsx)(`strong`,{children:`OMNI`}),(0,Q.jsx)(`span`,{children:`连接业务与行动`})]}),(0,Q.jsxs)(`div`,{className:Z.networkTags,children:[(0,Q.jsxs)(`span`,{children:[`项目 `,(0,Q.jsx)(`b`,{children:e??`—`})]}),(0,Q.jsxs)(`span`,{children:[`店铺 `,(0,Q.jsx)(`b`,{children:t})]}),(0,Q.jsxs)(`span`,{children:[`进行中任务 `,(0,Q.jsx)(`b`,{children:n??`—`})]})]}),!s&&i&&(0,Q.jsx)(`small`,{className:Z.motionNote,children:`系统偏好减少动态,可单独开启本页动效`})]})}var Ht=e=>e===null?`—`:new Intl.NumberFormat(`zh-CN`,{style:`currency`,currency:`CNY`,maximumFractionDigits:2}).format(e),Ut=e=>new Date(e).toLocaleTimeString(`zh-CN`,{timeZone:`Asia/Shanghai`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`});function Wt({api:t,onModule:n,onOpen:r}){let a=p(),[o,c]=(0,C.useState)(null),[l,u]=(0,C.useState)(null),[d,ee]=(0,C.useState)([]),[m,g]=(0,C.useState)(!0),[ne,re]=(0,C.useState)(``),[_,ie]=(0,C.useState)(0),[v,ae]=oe(`home.sales.period`,``),y=(0,C.useRef)(!1),ce=(0,C.useCallback)(()=>{y.current||(g(!0),ie(e=>e+1))},[]);(0,C.useEffect)(()=>{let e=!0;return y.current=!0,Promise.allSettled([Lt(t),Rt(t)]).then(([t,n])=>{if(!e)return;let r=[];t.status===`fulfilled`?c(t.value):(c(null),r.push(`项目统计读取失败`)),n.status===`fulfilled`?u(n.value):(u(null),r.push(`经营归档读取失败`)),ee(r),re(new Date().toISOString()),g(!1),y.current=!1}),()=>{e=!1,y.current=!1}},[t,_]),(0,C.useEffect)(()=>{let e=setInterval(()=>{document.hidden||ce()},6e4);return()=>clearInterval(e)},[ce]);let b=o?Ft(o):null,x=(a?.shops||[]).filter(e=>!a?.selected||e.id===a.selected),S=Nt(l?.sales||[]),le=S.includes(v)?v:S[0]||``,w=Pt(l?.sales||[],x,le),ue=(o||[]).filter(e=>!e.archivedAt).sort((e,t)=>{let n=e=>e.counts?.已阻塞?0:e.counts&&e.taskCount>(e.counts.已完成||0)?1:2;return n(e)-n(t)||(t.updatedAt||``).localeCompare(e.updatedAt||``)}),T=Math.max(1,...w.rows.map(e=>e.report?.total||0));return(0,Q.jsxs)(`div`,{className:Z.overview,children:[(0,Q.jsxs)(`div`,{className:Z.pageHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:Z.eyebrow,children:`山海 · OMNI / 企业总览`}),(0,Q.jsx)(`h1`,{children:`今天的业务,一屏掌握`}),(0,Q.jsx)(`p`,{children:`项目推进、店铺经营与销售归档,连接到下一步行动。`})]}),(0,Q.jsxs)(`div`,{className:Z.refresh,children:[(0,Q.jsx)(`span`,{children:m?`正在同步…`:ne?`${Ut(ne)} 已同步 · 每分钟刷新`:``}),(0,Q.jsxs)(`button`,{disabled:m,onClick:ce,"aria-label":`刷新首页数据`,children:[(0,Q.jsx)(te,{size:14,className:m?Z.spinning:void 0}),m?`同步中`:`刷新`]})]})]}),d.length>0&&(0,Q.jsxs)(`div`,{role:`alert`,className:Z.error,children:[d.join(`;`),`,可刷新重试。其他已成功读取的信息继续显示。`]}),(0,Q.jsxs)(`div`,{className:Z.topGrid,children:[(0,Q.jsxs)(`div`,{className:Z.kpis,children:[(0,Q.jsxs)(`button`,{onClick:()=>n(`projects`),children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(se,{size:17}),`企业项目`]}),(0,Q.jsxs)(`strong`,{children:[b?.total??`—`,(0,Q.jsx)(`small`,{children:`个`})]}),(0,Q.jsxs)(`p`,{children:[`当前未归档项目 · `,b?.active??`—`,` 个待推进`]})]}),(0,Q.jsxs)(`button`,{onClick:()=>n(`projects`),children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(e,{size:17}),`进行中任务`]}),(0,Q.jsxs)(`strong`,{children:[b?.complete?b.running:`—`,(0,Q.jsx)(`small`,{children:`项`})]}),(0,Q.jsx)(`p`,{children:b?.complete?`已完成 ${b.done} / ${b.tasks} 项任务`:`等待读取完整任务统计`})]}),(0,Q.jsxs)(`button`,{onClick:()=>document.getElementById(`home-shops`)?.scrollIntoView({block:`start`}),children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(h,{size:17}),`授权店铺`]}),(0,Q.jsxs)(`strong`,{children:[x.length,(0,Q.jsx)(`small`,{children:`家`})]}),(0,Q.jsx)(`p`,{children:a?.selected?`当前选定店铺`:`当前账号可访问的店铺`})]}),(0,Q.jsxs)(`button`,{onClick:()=>document.getElementById(`home-shops`)?.scrollIntoView({block:`start`}),children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(s,{size:17}),`同期店铺销售额`]}),(0,Q.jsx)(`strong`,{className:Z.money,children:Ht(w.total)}),(0,Q.jsx)(`p`,{children:le?`${le.replace(`|`,` 至 `)} · 覆盖 ${w.covered}/${x.length} 家`:`尚无可汇总的店铺销售归档`})]})]}),(0,Q.jsx)(Vt,{projects:b?.total??null,shops:x.length,tasks:b?.complete?b.running:null})]}),(0,Q.jsxs)(`div`,{className:Z.mainGrid,children:[(0,Q.jsxs)(`section`,{className:Z.panel,id:`home-shops`,children:[(0,Q.jsxs)(`div`,{className:Z.panelHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`h2`,{children:`店铺经营概览`}),(0,Q.jsx)(`p`,{children:`支付销售额 · 不扣退款 · 按归档统计周期`})]}),(0,Q.jsxs)(`button`,{onClick:()=>n(`overview`),children:[`经营分析 `,(0,Q.jsx)(i,{size:13})]})]}),(0,Q.jsxs)(`div`,{className:Z.filters,children:[a&&(0,Q.jsxs)(`label`,{children:[`店铺范围`,(0,Q.jsxs)(`select`,{"aria-label":`首页店铺范围`,value:a.selected,onChange:e=>a.onSelect(e.target.value),children:[(0,Q.jsx)(`option`,{value:``,children:`全部授权店铺`}),a.shops.map(e=>(0,Q.jsx)(`option`,{value:e.id,children:e.name},e.id))]})]}),(0,Q.jsxs)(`label`,{children:[`销售统计周期`,(0,Q.jsxs)(`select`,{"aria-label":`首页销售统计周期`,value:le,disabled:!S.length,onChange:e=>ae(e.target.value),children:[!S.length&&(0,Q.jsx)(`option`,{value:``,children:`暂无销售归档`}),S.map(e=>(0,Q.jsx)(`option`,{value:e,children:e.replace(`|`,` 至 `)},e))]})]})]}),(0,Q.jsx)(`div`,{className:Z.shopList,children:w.rows.map(e=>(0,Q.jsxs)(`details`,{className:Z.shop,children:[(0,Q.jsxs)(`summary`,{children:[(0,Q.jsx)(`span`,{className:Z.shopIcon,children:(0,Q.jsx)(h,{size:17})}),(0,Q.jsxs)(`span`,{className:Z.shopIdentity,children:[(0,Q.jsx)(`b`,{children:e.name}),(0,Q.jsx)(`small`,{children:e.report?`${e.report.count??`—`} 个商品链接 · 点击核对来源`:`该周期暂无已关联的销售记录`})]}),(0,Q.jsx)(`div`,{className:Z.salesBar,"aria-hidden":`true`,children:(0,Q.jsx)(`i`,{style:{width:`${(e.report?.total||0)/T*100}%`}})}),(0,Q.jsx)(`strong`,{children:Ht(e.report?.total??null)})]}),(0,Q.jsxs)(`div`,{className:Z.shopDetails,children:[(0,Q.jsxs)(`p`,{children:[`店铺编号:`,e.id]}),e.report?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`p`,{children:[`统计周期:`,e.report.start,` 至 `,e.report.end]}),(0,Q.jsxs)(`p`,{children:[`来源:`,e.report.projectName,` · `,e.report.scopeLabel]}),(0,Q.jsx)(`p`,{children:e.report.basis}),(0,Q.jsxs)(`p`,{children:[`归档时间:`,new Date(e.report.created).toLocaleString(`zh-CN`,{timeZone:`Asia/Shanghai`})]})]}):(0,Q.jsx)(`p`,{children:`请在资料中心归档并关联本店铺的全店销售记录。`}),(0,Q.jsxs)(`button`,{onClick:()=>n(`data`),children:[`查看资料中心 `,(0,Q.jsx)(i,{size:12})]})]})]},e.id))}),!x.length&&(0,Q.jsx)(`p`,{className:Z.empty,children:`当前账号尚无授权店铺。`}),l&&!S.length&&(0,Q.jsx)(`p`,{className:Z.empty,children:`尚未读取到销售归档。导入全店销售账本后,将按店铺及相同统计周期汇总。`}),w.unassigned.length>0&&(0,Q.jsxs)(`details`,{className:Z.unassigned,children:[(0,Q.jsxs)(`summary`,{children:[(0,Q.jsx)(f,{size:13}),w.unassigned.length,` 份销售归档待核对店铺归属`]}),w.unassigned.map(e=>(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`b`,{children:[e.scopeLabel,` · `,Ht(e.total)]}),(0,Q.jsxs)(`p`,{children:[e.projectName,` · `,e.start,` 至 `,e.end]})]},e.id)),(0,Q.jsx)(`p`,{children:`这些原件保持独立展示,确认唯一店铺归属后计入汇总。`})]}),l?.invalidSales?(0,Q.jsxs)(`p`,{className:Z.warning,children:[l.invalidSales,` 份归档缺少有效金额或周期,未计入。`]}):null,(0,Q.jsx)(`p`,{className:Z.note,children:`同店、同期采用最新归档,避免重复累计。覆盖不足时显示已覆盖店铺小计;跨周期金额分别查看。`})]}),(0,Q.jsxs)(`section`,{className:Z.panel,children:[(0,Q.jsxs)(`div`,{className:Z.panelHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`h2`,{children:`项目推进`}),(0,Q.jsx)(`p`,{children:`企业共享项目 · 与项目工作台同步`})]}),(0,Q.jsxs)(`button`,{onClick:()=>n(`projects`),children:[`全部项目 `,(0,Q.jsx)(i,{size:13})]})]}),(0,Q.jsxs)(`div`,{className:Z.projectStatus,children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(`b`,{children:b?.complete?b.done:`—`}),`已完成任务`]}),(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(`b`,{children:b?.complete?b.running:`—`}),`进行中`]}),(0,Q.jsxs)(`span`,{className:Z.warning,children:[(0,Q.jsx)(`b`,{children:b?.complete?b.blocked:`—`}),`受阻任务`]})]}),!b?.complete&&o&&(0,Q.jsxs)(`p`,{className:Z.warning,children:[`已读取 `,b?.covered,`/`,b?.total,` 个项目的任务统计,请刷新重试。`]}),ue.slice(0,5).map(e=>{let t=e.counts?.已完成||0,n=e.taskCount?Math.round(t/e.taskCount*100):0;return(0,Q.jsxs)(`button`,{className:Z.projectRow,onClick:()=>r(e.id,{tab:`overview`}),children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`b`,{children:e.name}),(0,Q.jsxs)(`span`,{children:[e.counts?`${t}/${e.taskCount} 项完成`:`任务统计暂不可用`,(0,Q.jsx)(i,{size:13})]})]}),(0,Q.jsx)(`p`,{children:e.goal||`进入项目查看目标与任务`}),(0,Q.jsx)(`div`,{className:Z.progress,role:`progressbar`,"aria-label":e.name+`任务完成比例`,"aria-valuenow":e.counts?n:void 0,"aria-valuemin":0,"aria-valuemax":100,children:(0,Q.jsx)(`i`,{style:{width:`${e.counts?n:0}%`}})})]},e.id)}),!ue.length&&(0,Q.jsx)(`p`,{className:Z.empty,children:m?`正在读取企业项目…`:o?`还没有项目,进入项目工作台建立第一个项目。`:`项目服务暂不可用,请刷新重试。`}),(0,Q.jsxs)(`div`,{className:Z.bottomMeta,children:[(0,Q.jsxs)(`span`,{children:[`经营商品档案 `,(0,Q.jsx)(`b`,{children:l?.productCount??`—`})]}),(0,Q.jsxs)(`button`,{onClick:()=>n(`products`),children:[`查看商品 `,(0,Q.jsx)(i,{size:13})]})]})]})]}),(0,Q.jsx)(`p`,{className:Z.note,children:`自动刷新更新已归档数据与项目状态;销售额并非实时交易数据。店铺按当前授权范围读取,项目按企业共享范围统计。`})]})}var $={landing:`_landing_b83tr_1`,hero:`_hero_b83tr_3`,heroCopy:`_heroCopy_b83tr_4`,brand:`_brand_b83tr_4`,brandCaption:`_brandCaption_b83tr_4`,heroEyebrow:`_heroEyebrow_b83tr_4`,heroActions:`_heroActions_b83tr_4`,primary:`_primary_b83tr_4`,heroSecondary:`_heroSecondary_b83tr_4`,universe:`_universe_b83tr_5`,orbitOuter:`_orbitOuter_b83tr_5`,orbitInner:`_orbitInner_b83tr_5`,planet:`_planet_b83tr_5`,orbitLabel:`_orbitLabel_b83tr_5`,orbitMarket:`_orbitMarket_b83tr_5`,orbitProject:`_orbitProject_b83tr_5`,orbitAgent:`_orbitAgent_b83tr_5`,orbitData:`_orbitData_b83tr_5`,universeCaption:`_universeCaption_b83tr_5`,section:`_section_b83tr_6`,sectionHeading:`_sectionHeading_b83tr_6`,kicker:`_kicker_b83tr_6`,principles:`_principles_b83tr_6`,principleTop:`_principleTop_b83tr_6`,modules:`_modules_b83tr_7`,moduleCard:`_moduleCard_b83tr_7`,moduleTop:`_moduleTop_b83tr_7`,features:`_features_b83tr_7`,moduleLink:`_moduleLink_b83tr_7`,sectionIntro:`_sectionIntro_b83tr_8`,scheduleLabel:`_scheduleLabel_b83tr_8`,courses:`_courses_b83tr_8`,course:`_course_b83tr_8`,courseCover:`_courseCover_b83tr_8`,cover1:`_cover1_b83tr_8`,cover2:`_cover2_b83tr_8`,courseContent:`_courseContent_b83tr_8`,courseMeta:`_courseMeta_b83tr_8`,courseDate:`_courseDate_b83tr_8`,courseFooter:`_courseFooter_b83tr_8`,textButton:`_textButton_b83tr_8`,footnote:`_footnote_b83tr_8`,releaseList:`_releaseList_b83tr_9`,release:`_release_b83tr_9`,releaseStamp:`_releaseStamp_b83tr_9`,version:`_version_b83tr_9`,badge:`_badge_b83tr_9`,releaseBody:`_releaseBody_b83tr_9`,changeKind:`_changeKind_b83tr_9`,footer:`_footer_b83tr_10`,detail:`_detail_b83tr_11`,detailHero:`_detailHero_b83tr_11`,metadata:`_metadata_b83tr_11`,detailGrid:`_detailGrid_b83tr_11`,detailPanel:`_detailPanel_b83tr_11`,outcomes:`_outcomes_b83tr_11`,agenda:`_agenda_b83tr_11`,agendaNumber:`_agendaNumber_b83tr_11`,teacher:`_teacher_b83tr_11`,subheading:`_subheading_b83tr_11`,desktopBreak:`_desktopBreak_b83tr_15`,siteNav:`_siteNav_b83tr_20`,siteBrand:`_siteBrand_b83tr_20`,gridDrift:`_gridDrift_b83tr_1`,dataFlow:`_dataFlow_b83tr_31`,flowSignals:`_flowSignals_b83tr_31`,dataTravel:`_dataTravel_b83tr_1`,signalPulse:`_signalPulse_b83tr_1`,outerOrbit:`_outerOrbit_b83tr_1`,innerOrbit:`_innerOrbit_b83tr_1`,orbitSweep:`_orbitSweep_b83tr_32`,radarSweep:`_radarSweep_b83tr_1`,coreBreathe:`_coreBreathe_b83tr_1`,nodeBreathe:`_nodeBreathe_b83tr_1`,motionControl:`_motionControl_b83tr_42`,productIntroduction:`_productIntroduction_b83tr_45`},Gt=[{id:`market`,name:`市场大盘`,icon:b,label:`发现机会`,description:`看清类目变化,发现值得研究的市场机会。`,features:`类目趋势 / 商品与店铺榜 / 机会发现`},{id:`overview`,name:`工作台`,icon:u,label:`统览经营`,description:`掌握经营概况,把观察转化为下一步行动。`,features:`经营总览 / 待处理事项 / 执行记录`},{id:`products`,name:`商品`,icon:d,label:`深入商品`,description:`围绕具体商品,持续跟进经营与优化。`,features:`商品目录 / 运营分组 / 商品工具`},{id:`projects`,name:`项目工作台`,icon:l,label:`推进协作`,description:`用节点与任务连接目标、执行和成果。`,features:`项目看板 / 节点任务 / Agent 协作`},{id:`data`,name:`资料中心`,icon:ie,label:`沉淀知识`,description:`让资料有归属,让结论与证据相互关联。`,features:`数据与附件 / 分析复盘 / 资料归档`}],Kt=[{icon:b,number:`01`,title:`以证据形成判断`,text:`将市场数据、研究资料与分析结论联系起来,让每一次决策有据可查。`},{icon:l,number:`02`,title:`以项目推动行动`,text:`把目标拆解成节点与任务,明确下一步,在协作中持续推进。`},{icon:x,number:`03`,title:`与 Agent 协作,沉淀成果`,text:`由山海组织上下文,Agent 执行具体工作,让成果回到项目,成为下一次工作的起点。`}];function qt({course:e,onBack:t}){let n=(0,C.useRef)(null),i=(0,C.useRef)(null);return(0,C.useEffect)(()=>{i.current?.scrollIntoView({block:`start`}),n.current?.focus({preventScroll:!0})},[]),(0,Q.jsxs)(`article`,{ref:i,className:$.detail,children:[(0,Q.jsxs)(`button`,{className:$.textButton,onClick:t,children:[(0,Q.jsx)(r,{size:16}),`返回课程排期`]}),(0,Q.jsxs)(`header`,{className:$.detailHero,children:[(0,Q.jsxs)(`span`,{className:$.kicker,children:[e.category,` · 示例课程`]}),(0,Q.jsx)(`h1`,{ref:n,tabIndex:-1,children:e.title}),(0,Q.jsx)(`p`,{children:e.description}),(0,Q.jsxs)(`div`,{className:$.metadata,children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(y,{size:16}),w(e.date)]}),(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(a,{size:16}),e.time,` · `,e.duration]}),(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(S,{size:16}),e.format]})]})]}),(0,Q.jsxs)(`div`,{className:$.detailGrid,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`h2`,{children:`这堂课,你将收获`}),(0,Q.jsx)(`ul`,{className:$.outcomes,children:e.outcomes.map(e=>(0,Q.jsxs)(`li`,{children:[(0,Q.jsx)(c,{size:16}),e]},e))})]}),(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`h2`,{children:`课程大纲`}),(0,Q.jsx)(`ol`,{className:$.agenda,children:e.agenda.map((e,t)=>(0,Q.jsxs)(`li`,{children:[(0,Q.jsx)(`span`,{className:$.agendaNumber,children:String(t+1).padStart(2,`0`)}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`time`,{children:e.time}),(0,Q.jsx)(`h3`,{children:e.title}),(0,Q.jsx)(`p`,{children:e.description})]})]},e.time))})]})]}),(0,Q.jsxs)(`aside`,{children:[(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`讲师介绍`}),(0,Q.jsxs)(`div`,{className:$.teacher,children:[(0,Q.jsx)(`span`,{children:e.teacher.slice(0,1)}),(0,Q.jsx)(`h2`,{children:e.teacher})]}),(0,Q.jsx)(`p`,{children:e.teacherBio})]}),(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`h2`,{children:`适合谁学习`}),(0,Q.jsx)(`p`,{children:e.audience}),(0,Q.jsx)(`h2`,{className:$.subheading,children:`课前准备`}),(0,Q.jsx)(`ul`,{children:e.preparation.map(e=>(0,Q.jsx)(`li`,{children:e},e))})]}),(0,Q.jsxs)(`section`,{className:$.detailPanel,children:[(0,Q.jsx)(`h2`,{children:`上课与课程资料`}),(0,Q.jsx)(`p`,{children:`当前为示例排期,用于预览课程内容。正式开课时间、入会方式、课件与回放将在课程确认后提供。`})]})]})]})]})}function Jt({full:e}){let t=e?ue:ue.slice(0,2);return(0,Q.jsx)(`div`,{className:$.releaseList,children:t.map((t,r)=>(0,Q.jsxs)(`article`,{className:$.release,children:[(0,Q.jsxs)(`div`,{className:$.releaseStamp,children:[(0,Q.jsxs)(`span`,{className:$.version,children:[`v`,t.version]}),r===0&&(0,Q.jsx)(`span`,{className:$.badge,children:`最近发布`}),(0,Q.jsx)(`time`,{dateTime:t.date,children:t.date.replaceAll(`-`,`.`)})]}),(0,Q.jsxs)(`div`,{className:$.releaseBody,children:[(0,Q.jsx)(`h3`,{children:t.title}),(0,Q.jsx)(`p`,{children:t.summary}),(0,Q.jsxs)(`details`,{open:e||void 0,children:[(0,Q.jsxs)(`summary`,{children:[`查看更新内容 `,(0,Q.jsx)(n,{size:14})]}),(0,Q.jsx)(`ul`,{children:t.changes.map(e=>(0,Q.jsxs)(`li`,{children:[(0,Q.jsx)(`span`,{className:$.changeKind,children:e.kind}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`strong`,{children:e.title}),(0,Q.jsx)(`p`,{children:e.description})]})]},e.title))})]})]})]},t.version))})}function Yt({api:e,onModule:n,onOpen:r}){let[a,s]=(0,C.useState)(null),[c,u]=(0,C.useState)(!1),[d,te]=(0,C.useState)(!1),f=(0,C.useRef)(new Map),p=(0,C.useRef)(``),h=(0,C.useRef)(null),g=(0,C.useRef)(null),re=(0,C.useRef)(null),_=(0,C.useRef)(null);function v(e){e?.scrollIntoView({behavior:`auto`,block:`start`}),e?.querySelector(`h2`)?.focus({preventScroll:!0})}function ae(){s(null),requestAnimationFrame(()=>{f.current.get(p.current)?.focus()})}return a?(0,Q.jsx)(`div`,{className:$.landing,children:(0,Q.jsx)(qt,{course:a,onBack:ae})}):(0,Q.jsxs)(`div`,{className:$.landing,children:[(0,Q.jsx)(Wt,{api:e,onModule:n,onOpen:r}),(0,Q.jsxs)(`details`,{className:$.productIntroduction,children:[(0,Q.jsx)(`summary`,{children:`了解山海 · 设计理念与功能模块`}),(0,Q.jsxs)(`nav`,{className:$.siteNav,"aria-label":`首页内容导航`,children:[(0,Q.jsxs)(`span`,{className:$.siteBrand,children:[`山海 `,(0,Q.jsx)(`i`,{children:`·`}),` OMNI`]}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`button`,{onClick:()=>v(re.current),children:`设计理念`}),(0,Q.jsx)(`button`,{onClick:()=>v(h.current),children:`功能模块`}),(0,Q.jsx)(`button`,{onClick:()=>v(g.current),children:`课程排期`}),(0,Q.jsx)(`button`,{onClick:()=>v(_.current),children:`版本更新`})]})]}),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`section`,{className:$.hero,"data-motion":d?`paused`:`playing`,"aria-labelledby":`home-brand-title`,children:[(0,Q.jsxs)(`div`,{className:$.heroCopy,children:[(0,Q.jsxs)(`div`,{className:$.brand,children:[(0,Q.jsx)(`img`,{src:ne,alt:``,width:40,height:40}),(0,Q.jsxs)(`span`,{children:[`山海 `,(0,Q.jsx)(`i`,{children:`·`}),` OMNI`]}),(0,Q.jsx)(`span`,{className:$.brandCaption,children:`智能工作空间`})]}),(0,Q.jsx)(`span`,{className:$.heroEyebrow,children:`连接洞察、行动与知识`}),(0,Q.jsxs)(`h1`,{id:`home-brand-title`,children:[`让洞察成为行动`,(0,Q.jsx)(`br`,{}),(0,Q.jsx)(`em`,{children:`让成果持续沉淀`})]}),(0,Q.jsxs)(`p`,{children:[`连接市场研究、商品经营与项目协作,`,(0,Q.jsx)(`br`,{className:$.desktopBreak}),`与 Agent 一起,把每一次探索变成有价值的积累。`]}),(0,Q.jsxs)(`div`,{className:$.heroActions,children:[(0,Q.jsxs)(`button`,{className:$.primary,onClick:()=>v(h.current),children:[`探索山海 `,(0,Q.jsx)(i,{size:16})]}),(0,Q.jsxs)(`button`,{className:$.heroSecondary,onClick:()=>v(g.current),children:[(0,Q.jsx)(o,{size:16}),`查看课程`]})]})]}),(0,Q.jsxs)(`div`,{className:$.universe,"aria-hidden":`true`,children:[(0,Q.jsxs)(`svg`,{className:$.dataFlow,viewBox:`0 0 500 400`,preserveAspectRatio:`none`,children:[(0,Q.jsxs)(`g`,{children:[(0,Q.jsx)(`path`,{d:`M80 95 H155 L250 192`}),(0,Q.jsx)(`path`,{d:`M420 120 H350 L250 192`}),(0,Q.jsx)(`path`,{d:`M420 295 H350 L250 192`}),(0,Q.jsx)(`path`,{d:`M80 305 H155 L250 192`})]}),(0,Q.jsxs)(`g`,{className:$.flowSignals,children:[(0,Q.jsx)(`path`,{d:`M80 95 H155 L250 192`}),(0,Q.jsx)(`path`,{d:`M250 192 L350 120 H420`}),(0,Q.jsx)(`path`,{d:`M420 295 H350 L250 192`}),(0,Q.jsx)(`path`,{d:`M250 192 L155 305 H80`})]})]}),(0,Q.jsx)(`div`,{className:$.orbitOuter}),(0,Q.jsx)(`div`,{className:$.orbitInner}),(0,Q.jsx)(`div`,{className:$.orbitSweep}),(0,Q.jsxs)(`div`,{className:$.planet,children:[(0,Q.jsx)(`img`,{src:ne,alt:``,width:110,height:110}),(0,Q.jsx)(`span`,{children:`OMNI`})]}),(0,Q.jsxs)(`span`,{className:$.orbitLabel+` `+$.orbitMarket,children:[(0,Q.jsx)(b,{size:15}),`市场洞察`]}),(0,Q.jsxs)(`span`,{className:$.orbitLabel+` `+$.orbitProject,children:[(0,Q.jsx)(l,{size:15}),`项目协作`]}),(0,Q.jsxs)(`span`,{className:$.orbitLabel+` `+$.orbitAgent,children:[(0,Q.jsx)(x,{size:15}),`Agent 执行`]}),(0,Q.jsxs)(`span`,{className:$.orbitLabel+` `+$.orbitData,children:[(0,Q.jsx)(ie,{size:15}),`知识沉淀`]}),(0,Q.jsx)(`span`,{className:$.universeCaption,children:`EXPLORE · CONNECT · CREATE`})]}),(0,Q.jsxs)(`button`,{className:$.motionControl,onClick:()=>te(e=>!e),"aria-pressed":d,"aria-label":d?`播放品牌动效`:`暂停品牌动效`,children:[d?(0,Q.jsx)(ee,{size:12}):(0,Q.jsx)(ce,{size:12}),(0,Q.jsx)(`span`,{children:d?`播放动效`:`暂停动效`})]})]}),(0,Q.jsxs)(`section`,{ref:re,className:$.section,"aria-labelledby":`home-philosophy-title`,children:[(0,Q.jsxs)(`div`,{className:$.sectionHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`OUR PHILOSOPHY`}),(0,Q.jsx)(`h2`,{id:`home-philosophy-title`,tabIndex:-1,children:`从一次洞察,到持续创造`})]}),(0,Q.jsx)(`p`,{children:`让信息有联系,让工作有方向,让经验可积累。`})]}),(0,Q.jsx)(`div`,{className:$.principles,children:Kt.map(({icon:e,...t})=>(0,Q.jsxs)(`article`,{children:[(0,Q.jsxs)(`div`,{className:$.principleTop,children:[(0,Q.jsx)(e,{size:23}),(0,Q.jsx)(`span`,{children:t.number})]}),(0,Q.jsx)(`h3`,{children:t.title}),(0,Q.jsx)(`p`,{children:t.text})]},t.number))})]}),(0,Q.jsxs)(`section`,{className:$.section,ref:h,"aria-labelledby":`home-modules-title`,children:[(0,Q.jsxs)(`div`,{className:$.sectionHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`ONE CONNECTED WORKSPACE`}),(0,Q.jsx)(`h2`,{id:`home-modules-title`,tabIndex:-1,children:`五个模块,一条完整的工作路径`})]}),(0,Q.jsx)(`p`,{children:`从认识市场到沉淀成果,每一步都有合适的工具。`})]}),(0,Q.jsx)(`div`,{className:$.modules,children:Gt.map(({icon:e,...t},r)=>(0,Q.jsxs)(`button`,{className:$.moduleCard,onClick:()=>n(t.id),"aria-label":`进入${t.name}`,children:[(0,Q.jsxs)(`div`,{className:$.moduleTop,children:[(0,Q.jsx)(e,{size:23}),(0,Q.jsxs)(`span`,{children:[`0`,r+1]})]}),(0,Q.jsx)(`small`,{children:t.label}),(0,Q.jsx)(`h3`,{children:t.name}),(0,Q.jsx)(`p`,{children:t.description}),(0,Q.jsx)(`span`,{className:$.features,children:t.features}),(0,Q.jsxs)(`span`,{className:$.moduleLink,children:[`进入模块 `,(0,Q.jsx)(i,{size:15})]})]},t.id))})]})]})]}),(0,Q.jsxs)(`section`,{ref:g,className:$.section,"aria-labelledby":`home-courses-title`,children:[(0,Q.jsxs)(`div`,{className:$.sectionHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`LEARN WITH OMNI`}),(0,Q.jsx)(`h2`,{id:`home-courses-title`,tabIndex:-1,children:`一起学习,把方法用起来`})]}),(0,Q.jsxs)(`span`,{className:$.scheduleLabel,children:[(0,Q.jsx)(y,{size:16}),`2026 年 11 月 · 示例排期`]})]}),(0,Q.jsx)(`p`,{className:$.sectionIntro,children:`从入门到实战,沿着真实工作场景,逐步掌握山海与 Agent 的协作方法。`}),(0,Q.jsx)(`div`,{className:$.courses,children:le.map((e,t)=>(0,Q.jsxs)(`article`,{className:$.course,children:[(0,Q.jsxs)(`div`,{className:`${$.courseCover} ${$[`cover`+t]}`,children:[(0,Q.jsx)(`span`,{children:e.category}),(0,Q.jsx)(o,{size:56,strokeWidth:1}),(0,Q.jsxs)(`strong`,{children:[`OMNI CLASS `,(0,Q.jsxs)(`i`,{children:[`0`,t+1]})]})]}),(0,Q.jsxs)(`div`,{className:$.courseContent,children:[(0,Q.jsxs)(`div`,{className:$.courseMeta,children:[(0,Q.jsx)(`span`,{children:e.format}),(0,Q.jsx)(`span`,{children:e.duration})]}),(0,Q.jsx)(`h3`,{children:e.title}),(0,Q.jsx)(`p`,{children:e.description}),(0,Q.jsxs)(`div`,{className:$.courseDate,children:[(0,Q.jsx)(y,{size:14}),(0,Q.jsxs)(`time`,{dateTime:e.date,children:[w(e.date),` `,e.time]})]}),(0,Q.jsxs)(`div`,{className:$.courseFooter,children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(m,{size:14}),e.teacher]}),(0,Q.jsxs)(`button`,{ref:t=>{t?f.current.set(e.id,t):f.current.delete(e.id)},onClick:()=>{p.current=e.id,s(e)},"aria-label":`查看课程详情:${e.title}`,children:[`查看详情 `,(0,Q.jsx)(i,{size:15})]})]})]})]},e.id))}),(0,Q.jsx)(`p`,{className:$.footnote,children:`课程时间与讲师为示例内容,点击卡片中的“查看详情”可预览完整课程安排。`})]}),(0,Q.jsxs)(`section`,{ref:_,className:$.section,"aria-labelledby":`home-releases-title`,children:[(0,Q.jsxs)(`div`,{className:$.sectionHeading,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{className:$.kicker,children:`WHAT’S NEW`}),(0,Q.jsx)(`h2`,{id:`home-releases-title`,tabIndex:-1,children:`山海,持续生长`})]}),(0,Q.jsxs)(`button`,{className:$.textButton,"aria-expanded":c,onClick:()=>u(e=>!e),children:[c?`收起历史版本`:`全部版本记录`,(0,Q.jsx)(i,{size:15})]})]}),(0,Q.jsx)(`p`,{className:$.sectionIntro,children:`每一次更新,都向更顺畅的工作体验前进一步。`}),(0,Q.jsx)(Jt,{full:c}),(0,Q.jsx)(`p`,{className:$.footnote,children:`依据项目已确认的桌面发布记录整理 · 此处展示产品更新历史,设备升级状态请查看左侧“升级”入口。`})]}),(0,Q.jsxs)(`footer`,{className:$.footer,children:[(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(t,{size:17}),`山海 · OMNI`]}),(0,Q.jsx)(`span`,{children:`洞察有据,行动有序,成果有归。`})]})]})}function Xt({api:e,onModule:t,onOpen:n}){return(0,Q.jsx)(Yt,{api:e,onModule:t,onOpen:n})}function Zt(e,t){return e.some(e=>e.key===t.key)?e.filter(e=>e.key!==t.key):[t,...e].slice(0,20)}function Qt({section:e}){let t=ae(),[n,r]=oe(`home.pins`,[]);return(0,Q.jsx)(Xt,{mode:e,...t,pins:n,onPin:e=>r(t=>Zt(t,e))})}export{Qt as default};
@@ -0,0 +1 @@
1
+ ._activity_k9yph_1{color:var(--omni-text);max-width:1600px;margin:auto}._activity_k9yph_1 header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;display:flex}._activity_k9yph_1 h1{font-size:27px}._activity_k9yph_1 h2{font-size:15px}._activity_k9yph_1 label{align-items:center;gap:10px;display:flex}._activity_k9yph_1 input{background:var(--omni-field);border:1px solid var(--omni-line);color:inherit;border-radius:6px;padding:10px}._panel_k9yph_1{border:1px solid var(--omni-line);background:var(--omni-panel);border-radius:10px;padding:20px 22px}._activity_k9yph_1 button{border:0;border-bottom:1px solid var(--omni-line);width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;justify-content:space-between;align-items:center;gap:14px;padding:13px 0;display:flex}._activity_k9yph_1 small{color:var(--omni-muted);margin-top:5px;font-size:11px;display:block}._activity_k9yph_1 p{color:var(--omni-muted);font-size:12px;line-height:1.8}._activity_k9yph_1 button:focus-visible{outline:2px solid var(--omni-accent);outline-offset:3px}@media (width<=800px){._activity_k9yph_1 header{flex-direction:column;align-items:flex-start}}.dl-toolbar{min-height:32px;color:var(--omni-muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin:0 0 14px;display:flex}.dl-toolbar-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.dl-toolbar-actions>span{margin-right:5px;font-size:12px}.gw .dl-toolbar button,.gw .dl-card-controls button{font:inherit;border:1px solid var(--omni-line);background:var(--omni-panel);color:var(--omni-text);cursor:pointer;border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:7px 10px;font-size:11px;line-height:1.4;display:flex}.gw .dl-toolbar .dl-save{background:var(--omni-accent);color:var(--omni-accent-text);border-color:var(--omni-accent)}.dl-toolbar small{font-size:11px}.dl-card{min-width:0}.dl-card>.gc-kpi,.dl-card>.pb-stat{width:100%;height:100%}.dashboard-editing .dl-toolbar{z-index:20;background:var(--omni-panel);border:1px solid var(--omni-line);border-radius:8px;padding:10px;position:sticky;top:0}.dl-card-controls{color:var(--omni-accent);z-index:1;align-items:center;gap:4px;min-width:0;margin-bottom:10px;display:flex;position:relative}.gw .dl-card-controls button{flex-shrink:0;padding:5px;font-size:10px}.gw .dl-card-controls .dl-grip{cursor:grab;min-width:0;color:var(--omni-accent);background:color-mix(in srgb,var(--omni-accent) 9%,var(--omni-panel));border-style:dashed;flex:1;justify-content:flex-start;overflow:hidden}.dl-grip{touch-action:none;-webkit-user-select:none;user-select:none}.dl-grip span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dl-grip svg{flex-shrink:0}.gw .dl-card-controls button:disabled{opacity:.3;cursor:default}.dl-editable{outline:1px dashed color-mix(in srgb,var(--omni-accent) 55%,transparent);outline-offset:4px;border-radius:8px}.dl-dragging{opacity:.45}.dashboard-editing .gc-kpis,.dashboard-editing .pb-summary,.dashboard-editing .pb-project-grid{gap:18px}.dashboard-editing .dl-card>.gc-kpi,.dashboard-editing .dl-card>.pb-stat,.dashboard-editing .pb-project-card{height:auto}.gw .gc-main-grid>[data-layout-card=sales]{grid-column:span 2}.gw .gc-main-grid>[data-layout-card=ranking]{grid-column:1/-1}.gw .gc-tab-panel .gc-main-grid>.dl-card{order:initial}.gw .gc-kpi .gc-kpi-icon{background:color-mix(in srgb,var(--omni-accent) 15%,var(--omni-panel));color:var(--omni-accent)}.gw .gc-kpi-profit .gc-kpi-icon{background:color-mix(in srgb,var(--omni-chart-secondary) 15%,var(--omni-panel));color:var(--omni-chart-secondary)}.gw .gc-kpi-tasks .gc-kpi-icon{background:color-mix(in srgb,var(--omni-chart-teal) 15%,var(--omni-panel));color:var(--omni-chart-teal)}.pb-module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px;display:grid}.pb-module-grid>[data-layout-card=stats],.pb-module-grid>[data-layout-card=projects]{grid-column:1/-1}.pb-module-grid .pb-summary{margin-bottom:0}.pb-module-grid .pb-panel{height:100%}.pb-module-grid .pb-toolbar{margin-top:3px}.pb-project-grid>.dl-card{flex-direction:column;display:flex}.pb-project-grid .pb-project-card{flex:1}@media (width<=1000px){.gw .gc-main-grid>[data-layout-card=sales]{grid-column:1}}@media (width<=850px){.pb-module-grid{grid-template-columns:1fr}.pb-module-grid>.dl-card{grid-column:1}.dl-toolbar small{line-height:1.6}.gc-kpis>.dl-card:last-child{grid-column:1/-1}}.gc-tabs-heading{border-bottom:1px solid var(--omni-line);justify-content:space-between;align-items:center;gap:20px;margin:22px 0 0;display:flex}.gc-tabs{scrollbar-width:thin;gap:26px;min-width:0;display:flex;overflow-x:auto}.gw .gc-tabs [role=tab]{color:var(--omni-muted);white-space:nowrap;background:0 0;border:0;border-bottom:3px solid #0000;border-radius:0;flex-shrink:0;padding:12px 2px 15px;font-size:16px;font-weight:600;display:block}.gw .gc-tabs [aria-selected=true]{color:var(--omni-text);border-bottom-color:var(--omni-accent)}.gw .gc-tabs [role=tab]:focus-visible{outline:2px solid var(--omni-accent);outline-offset:-3px}.gc-tabs-heading .pb-heading-actions{flex-shrink:0;padding-bottom:9px}.gw .gc-tabs-heading .pb-heading-actions button{border:1px solid var(--omni-line);background:var(--omni-panel);color:var(--omni-text);border-radius:7px;align-items:center;gap:7px;padding:9px 12px;font-size:12px;display:flex}.gw .gc-tabs-heading .pb-heading-actions .pb-create{background:var(--omni-accent);color:var(--omni-accent-text);border-color:var(--omni-accent)}.gc-tab-description{color:var(--omni-muted);margin:12px 0 20px;font-size:12px;line-height:1.6}.gc-tab-panel{min-width:0}.gc-tab-panel:focus-visible{outline:2px solid var(--omni-accent);outline-offset:5px}.gw .gc-tab-panel .gc-main-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gc-tab-panel .gc-sales{grid-column:span 2}.gc-tab-panel .gc-structure{grid-column:span 1}.gc-tab-panel .gc-ranking{grid-column:1/-1}.gw .gc-tab-tasks .gc-main-grid,.gw .gc-tab-history .gc-main-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gc-tab-tasks .gc-panel,.gc-tab-history .gc-panel{order:initial;grid-column:span 1}.gc-tab-tasks .gc-todo{order:-1}.gw .gc-tab-panel .gc-todo-list,.gw .gc-tab-panel .gc-matrix-scroll,.gw .gc-tab-panel .gc-time-scroll{max-height:430px}.gc-tab-panel .pb-board{margin-top:0}.gc-tab-panel .gc-quick-tiers{margin-bottom:16px}@media (width<=1000px){.gc-tabs-heading{flex-wrap:wrap;gap:6px}.gc-tabs{gap:20px;max-width:100%}.gc-tabs-heading .pb-heading-actions{margin-left:auto}.gw .gc-tab-panel .gc-main-grid{grid-template-columns:1fr}.gc-tab-panel .gc-panel{grid-column:1}.gw .gc-tabs [role=tab]{font-size:14px}}@media (width<=550px){.gc-tabs{gap:18px}.gw .gc-tabs [role=tab]{font-size:13px}.gc-tabs-heading .pb-heading-actions{justify-content:flex-end;width:100%}.gc-tab-description{margin-bottom:14px}}.workbench-module .gw .gc-kpis{gap:10px;margin-bottom:12px}.workbench-module .gw .gc-kpi{border-radius:8px;padding:14px 16px}.workbench-module .gw .gc-kpi>div{gap:9px;font-size:12px}.workbench-module .gw .gc-kpi strong{margin:12px 0 8px;font-size:29px;line-height:1.2}.workbench-module .gw .gc-kpi p{min-height:30px;margin:0;font-size:10px;line-height:1.55}.workbench-module .gw .gc-kpi:after{width:32px}.workbench-module .gw .gc-kpi strong small{font-size:12px}.workbench-module .gw .gc-kpi .gc-long-value{font-size:24px}.workbench-module .gc-quick-tiers{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px;display:grid}.workbench-module .gc-quick-tiers>section{background:linear-gradient(115deg,var(--omni-paint-surface-112749,#112749),var(--omni-paint-surface-0d1b32,#0d1b32));border:1px solid var(--omni-paint-line-29466d,#29466d);border-top:2px solid var(--tier);border-radius:7px;min-width:0;padding:11px 13px}.workbench-module .gc-quick-tiers header{background:0 0;border:0;align-items:center;gap:8px;margin:0 0 7px;padding:0;display:flex}.workbench-module .gc-quick-tiers header b{color:var(--tier);font-size:13px}.workbench-module .gc-quick-tiers header span{color:var(--omni-paint-ink-83a6cf,#83a6cf);margin-left:auto;font-size:10px}.workbench-module .gc-quick-tiers header button{color:var(--omni-paint-ink-87b4de,#87b4de);background:0 0;border:0;padding:0}.workbench-module .gc-quick-tiers .gc-quick-line{text-align:left;width:100%;color:var(--omni-paint-ink-bfd4ed,#bfd4ed);background:0 0;border:0;align-items:center;gap:9px;padding:5px 0;font-size:11px;display:flex}.workbench-module .gc-quick-line em{color:var(--omni-paint-ink-7297c1,#7297c1);flex-shrink:0;font-style:normal}.workbench-module .gc-quick-line span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.workbench-module .gc-quick-line svg{flex-shrink:0;margin-left:auto}.workbench-module .gc-quick-tiers .gc-quick-alert{background:var(--omni-paint-surface-11243c,#11243c);border:0;border-top:1px solid var(--omni-paint-line-254364,#254364);width:100%;color:var(--omni-paint-ink-77b7bc,#77b7bc);text-align:left;justify-content:space-between;align-items:center;margin-top:7px;padding:8px 0 0;font-size:10px;display:flex}.workbench-module .gc-quick-alert.has-issues{color:var(--omni-paint-ink-f1be80,#f1be80)}.workbench-module .gw .gc-main-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.workbench-module .gw .gc-panel{border-radius:8px;min-width:0;padding:15px 16px}.workbench-module .gc-sales{order:1;grid-column:span 4}.workbench-module .gc-structure{order:2;grid-column:span 2}.workbench-module .gc-ranking{order:3;grid-column:span 2}.workbench-module .gc-todo{order:4;grid-column:span 2}.workbench-module .gc-matrix{order:5;grid-column:span 2}.workbench-module .gc-history{order:6;grid-column:span 4}.workbench-module .gc-inspect{order:7;grid-column:span 2}.workbench-module .gw .gc-panel-head h2{font-size:14px}.workbench-module .gw .gc-panel-head small{margin-top:4px;font-size:10px}.workbench-module .gw .gc-panel-head button{padding:5px 7px;font-size:10px}.workbench-module .gw .gc-selects{gap:8px;margin:9px 0}.workbench-module .gw .gc-selects select{min-height:32px;padding:6px 8px;font-size:11px}.workbench-module .gw .gc-selects button{min-height:32px;padding:6px 9px;font-size:11px}.workbench-module .gw .gc-chart-reading strong{font-size:25px}.workbench-module .gw .gc-chart-reading{margin:8px 0 2px}.workbench-module .gw .gc-ring{gap:8px;min-height:215px}.workbench-module .gw .gc-ring svg{width:46%;max-width:180px}.workbench-module .gw .gc-ring-legend button{gap:7px;padding:10px 0;font-size:11px}.workbench-module .gw .gc-ring-legend b{font-size:18px}.workbench-module .gw .gc-footnote{color:var(--omni-paint-ink-799cc4,#799cc4);margin:8px 0 0;font-size:9px;line-height:1.6}.workbench-module .gw .gc-matrix-scroll{max-height:265px}.workbench-module .gw .gc-matrix-row{gap:9px;margin-bottom:10px}.workbench-module .gw .gc-project-name{width:87px;font-size:10px!important}.workbench-module .gw .gc-matrix-row>div{gap:3px}.workbench-module .gw .gc-cell{min-width:12px;height:24px}.workbench-module .gw .gc-state-legend{gap:6px;margin-bottom:15px;font-size:9px}.workbench-module .gw .gc-todo-list{max-height:260px}.workbench-module .gw .gc-todo-list>button{gap:9px;padding:12px 0}.workbench-module .gw .gc-todo-list b{font-size:12px}.workbench-module .gw .gc-todo-list small{font-size:10px}.workbench-module .gw .gc-no-data{min-height:80px;font-size:12px}.workbench-module .gc-rank-list{max-height:266px;overflow:auto}.workbench-module .gc-rank-list>button{border:0;border-bottom:1px solid var(--omni-paint-line-213856,#213856);text-align:left;width:100%;color:var(--omni-paint-ink-b7d1ef,#b7d1ef);background:0 0;align-items:center;gap:8px;padding:8px 0;font-size:11px;display:flex}.workbench-module .gc-rank-list i{background:var(--omni-paint-surface-233e67,#233e67);width:18px;height:19px;color:var(--omni-paint-ink-9cbce2,#9cbce2);border-radius:3px;flex-shrink:0;place-items:center;font:10px monospace;display:grid}.workbench-module .gc-rank-list>button:first-child i{background:var(--omni-paint-surface-cfb660,#cfb660);color:var(--omni-paint-ink-18284a,#18284a)}.workbench-module .gc-rank-list span{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.workbench-module .gc-rank-list small{color:var(--omni-paint-ink-698dbb,#698dbb);font-size:9px;display:block}.workbench-module .gc-rank-list>button>div{background:var(--omni-paint-surface-182d4e,#182d4e);border-radius:6px;flex-shrink:0;width:48px;height:5px}.workbench-module .gc-rank-list b{background:linear-gradient(90deg,var(--omni-paint-surface-6760f2,#6760f2),var(--omni-paint-surface-39d5ec,#39d5ec));border-radius:6px;height:100%;display:block}.workbench-module .gc-rank-list strong{text-align:right;min-width:50px;color:var(--omni-paint-ink-badbff,#badbff);font:11px monospace}.workbench-module .gc-status-strip{color:var(--omni-paint-ink-7da1cc,#7da1cc);border-top:1px solid var(--omni-paint-line-274267,#274267);flex-wrap:wrap;align-items:center;gap:20px;margin-top:12px;padding:10px 0;font-size:10px;display:flex}.workbench-module .gc-status-strip i{background:var(--omni-paint-surface-58dccc,#58dccc);border-radius:50%;width:5px;height:5px;margin-right:4px;display:inline-block}.workbench-module .gc-status-strip button{background:var(--omni-paint-surface-183c68,#183c68);border:1px solid var(--omni-paint-line-315885,#315885);color:var(--omni-paint-ink-afd7fa,#afd7fa);align-items:center;gap:7px;margin-left:auto;padding:6px 10px;font-size:10px;display:flex}@media (width>=1600px){.workbench-module .gw .gc-chart svg{max-height:215px}.workbench-module .gw .gc-ring{min-height:240px}.workbench-module .gw .gc-kpi strong{font-size:33px}}@media (width<=1150px){.workbench-module .gw .gc-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.workbench-module .gw .gc-kpi{padding:12px 10px}.workbench-module .gw .gc-kpi-icon{display:none}.workbench-module .gw .gc-kpi strong{font-size:24px}.workbench-module .gw .gc-kpi>div{font-size:11px}.workbench-module .gw .gc-main-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-module .gc-sales,.workbench-module .gc-history{grid-column:span 2}.workbench-module .gc-structure,.workbench-module .gc-ranking,.workbench-module .gc-todo,.workbench-module .gc-matrix,.workbench-module .gc-inspect{grid-column:span 1}.workbench-module .gc-structure{order:3}.workbench-module .gc-ranking{order:2}.workbench-module .gc-quick-tiers header{flex-wrap:wrap}.workbench-module .gc-quick-tiers header span{font-size:9px}.workbench-module .gw .gc-ring{flex-direction:row}.workbench-module .gw .gc-ring svg{width:43%}.workbench-module .gw .gc-matrix-row>div{min-width:0}}@media (width<=850px){.workbench-module .gc-quick-tiers{grid-template-columns:1fr;gap:8px}.workbench-module .gc-quick-tiers>section{padding:10px 12px}.workbench-module .gc-quick-tiers .gc-quick-alert{padding-top:6px}.workbench-module .gw .gc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-module .gw .gc-kpi:last-child{grid-column:1/-1}.workbench-module .gw .gc-kpi:last-child p{display:block}.workbench-module .gw .gc-kpi strong{margin:8px 0}.workbench-module .gw .gc-kpi p{min-height:0}.workbench-module .gw .gc-ring{min-height:230px}.workbench-module .gw .gc-main-grid{grid-template-columns:1fr}.workbench-module .gc-main-grid>.gc-panel{grid-column:1}.workbench-module .gc-status-strip{gap:10px}.workbench-module .gc-status-strip button{margin-left:0}}@media (width<=650px){.workbench-module .gc-quick-line span{white-space:normal}.workbench-module .gw .gc-panel{padding:14px}.workbench-module .gc-status-strip{font-size:10px}}.workbench-module .gc-quick-tiers .gc-quick-line{justify-content:flex-start}.workbench-module .gc-next-label{color:var(--omni-paint-ink-76b5e2,#76b5e2);margin:12px 0 2px;font-size:11px}.workbench-module .gc-next-dot{background:var(--omni-paint-surface-5966d4,#5966d4);border-radius:2px;flex-shrink:0;width:7px;height:7px;margin:0 6px}.workbench-module .gw .gc-todo-list:has(.gc-next-label){max-height:270px}.workbench-module .gc-next-label~button b{color:var(--omni-paint-ink-9fc3ef,#9fc3ef)}.workbench-module .gw .gc-kpi{padding:11px 13px}.workbench-module .gw .gc-kpi-icon{width:27px;height:27px}.workbench-module .gw .gc-kpi strong{margin:8px 0 6px;font-size:28px}.workbench-module .gw .gc-kpi p{min-height:19px;font-size:10px}.workbench-module .gw .gc-chart svg{max-height:165px}.workbench-module .gw .gc-ring{min-height:200px}.workbench-module .gw .gc-panel-head{margin-bottom:8px}.workbench-module .gw .gc-panel-head small{margin-top:3px}.workbench-module .gw .gc-time-scroll{max-height:185px}.workbench-module .gw .gc-checks button{padding:8px 0}.workbench-module .gw .gc-checks{gap:10px}.workbench-module .gc-quick-tiers>section{padding:9px 12px}.workbench-module .gc-quick-tiers .gc-quick-line{padding:3px 0}.workbench-module .gc-quick-tiers .gc-quick-alert{margin-top:5px;padding-top:6px}@media (width>=1151px){.workbench-module .gw .gc-chart-empty{min-height:190px}}.workbench-module .gc-quick-line span small{color:var(--omni-paint-ink-718fb7,#718fb7);margin-top:1px;font-size:9px;line-height:1.5;display:block}.workbench-module .gc{--line:var(--omni-paint-line-233a61,#233a61);--muted:var(--omni-paint-ink-839bbd,#839bbd);--cyan:var(--omni-paint-ink-52d5fa,#52d5fa)}.workbench-module .gc button{font:inherit;cursor:pointer}.workbench-module .gc button:focus-visible,.workbench-module .gc select:focus-visible{outline:2px solid var(--omni-paint-line-61dbff,#61dbff);outline-offset:3px}.workbench-module .gc button:disabled{opacity:.45;cursor:default}.workbench-module .gc-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.workbench-module .gc-kpi{text-align:left;border:1px solid var(--omni-paint-line-29467a,#29467a);color:var(--omni-paint-ink-b6c9e8,#b6c9e8);background:radial-gradient(ellipse at 85% 0,var(--omni-paint-surface-1c53ad66,#1c53ad66),transparent 75%),linear-gradient(135deg,var(--omni-paint-surface-122b51,#122b51),var(--omni-paint-surface-0c1b36,#0c1b36));box-shadow:inset 0 1px var(--omni-paint-shadow-7abaff15,#7abaff15),0 6px 20px var(--omni-paint-shadow-0002,#0002);border-radius:8px;padding:16px 17px;position:relative;overflow:hidden}.workbench-module .gc-kpi:after{content:"";background:var(--omni-paint-surface-3d97ff,#3d97ff);width:44px;height:2px;box-shadow:0 0 14px var(--omni-paint-shadow-3dbaff,#3dbaff);position:absolute;bottom:0;left:17px}.workbench-module .gc-kpi>div{align-items:center;gap:9px;font-size:12px;display:flex}.workbench-module .gc-kpi>div>svg{color:var(--omni-paint-ink-6e91c3,#6e91c3);margin-left:auto}.workbench-module .gc-kpi-icon{background:var(--omni-paint-surface-173c73,#173c73);color:var(--omni-paint-ink-4dccff,#4dccff);width:34px;height:34px;box-shadow:0 0 17px var(--omni-paint-shadow-1d87ff22,#1d87ff22);border-radius:7px;flex-shrink:0;place-items:center;display:grid}.workbench-module .gc-kpi:nth-child(2) .gc-kpi-icon{color:var(--omni-paint-ink-b99bff,#b99bff);background:var(--omni-paint-surface-34295b,#34295b)}.workbench-module .gc-kpi:nth-child(5) .gc-kpi-icon{color:var(--omni-paint-ink-56e7db,#56e7db);background:var(--omni-paint-surface-113f51,#113f51)}.workbench-module .gc-kpi strong{color:var(--omni-paint-ink-e1efff,#e1efff);letter-spacing:-1px;margin:10px 0 8px;font:34px/1.3 ui-monospace,SFMono-Regular,monospace;display:block}.workbench-module .gc-kpi strong small{color:var(--omni-paint-ink-839fca,#839fca);margin-left:8px;font:11px sans-serif}.workbench-module .gc-kpi p{color:var(--omni-paint-ink-7f9ec5,#7f9ec5);margin:0;font-size:10px;line-height:1.6}.workbench-module .gc-kpi:hover{border-color:var(--omni-paint-line-548ad1,#548ad1);background-color:var(--omni-paint-surface-173363,#173363)}.workbench-module .gc-main-grid{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:16px;display:grid}.workbench-module .gc-panel{background:linear-gradient(125deg,var(--omni-paint-surface-0e1d39,#0e1d39),var(--omni-paint-surface-0a162d,#0a162d));border:1px solid var(--line);min-width:0;box-shadow:inset 0 1px var(--omni-paint-shadow-80aaff08,#80aaff08);border-radius:8px;padding:18px 20px;position:relative;overflow:hidden}.workbench-module .gc-panel:before{content:"";background:var(--omni-paint-surface-4193f5,#4193f5);width:28px;height:2px;box-shadow:0 0 15px var(--omni-paint-shadow-2e91ee77,#2e91ee77);position:absolute;top:0;left:20px}.workbench-module .gc-panel-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.workbench-module .gc-panel-head h2{color:var(--omni-paint-ink-d4e7ff,#d4e7ff);white-space:nowrap;align-items:center;gap:8px;font-size:15px;font-weight:550;display:flex}.workbench-module .gc-panel-head h2 span{background:var(--omni-paint-surface-50c9ff,#50c9ff);width:6px;height:6px;box-shadow:0 0 9px var(--omni-paint-shadow-4cb8ff,#4cb8ff);transform:rotate(45deg)}.workbench-module .gc-panel-head small{color:var(--muted);margin-top:7px;font-size:10px;line-height:1.5;display:block}.workbench-module .gc-panel-head>svg{color:var(--omni-paint-ink-47bff4,#47bff4)}.workbench-module .gc-panel-head button,.workbench-module .gc-selects button,.workbench-module .gc-archive button,.workbench-module .gc-lanes-title button,.workbench-module .gc-chart-empty button{border:1px solid var(--omni-paint-line-2c4775,#2c4775);background:var(--omni-paint-surface-122b50,#122b50);color:var(--omni-paint-ink-a4ceff,#a4ceff);white-space:nowrap;border-radius:4px;align-items:center;gap:5px;padding:7px 9px;font-size:10px;display:flex}.workbench-module .gc-toggle{background:var(--omni-paint-surface-08152d,#08152d);border:1px solid var(--omni-paint-line-243b63,#243b63);border-radius:5px;flex-shrink:0;padding:2px;display:flex}.workbench-module .gc-toggle button{color:var(--omni-paint-ink-7799c4,#7799c4);background:0 0;border:0;border-radius:3px;padding:5px 10px;font-size:10px}.workbench-module .gc-toggle button[aria-pressed=true]{background:var(--omni-paint-surface-244d8c,#244d8c);color:var(--omni-paint-ink-d5edff,#d5edff)}.workbench-module .gc-selects{gap:7px;display:flex}.workbench-module .gc-selects select{background:var(--omni-paint-surface-0d2040,#0d2040);border:1px solid var(--omni-paint-line-2b4671,#2b4671);min-width:0;color:var(--omni-paint-ink-9db9dc,#9db9dc);border-radius:4px;width:42%;margin:0;padding:7px 8px;font-size:10px}.workbench-module .gc-selects select:nth-child(2){width:38%}.workbench-module .gc-chart-reading{align-items:baseline;gap:12px;margin-top:14px;display:flex}.workbench-module .gc-chart-reading strong{color:var(--omni-paint-ink-def5ff,#def5ff);font:25px ui-monospace,monospace}.workbench-module .gc-chart-reading strong small{color:var(--omni-paint-ink-8eb2d4,#8eb2d4);margin-left:6px;font:10px sans-serif}.workbench-module .gc-chart-reading span{color:var(--omni-paint-ink-9ab1d2,#9ab1d2);font-size:10px}.workbench-module .gc-chart-reading i{color:var(--omni-paint-ink-6185ae,#6185ae);margin-left:auto;font-size:9px;font-style:normal}.workbench-module .gc-chart svg{width:100%;margin:3px 0 0;display:block}.workbench-module .gc-chart svg text{fill:var(--omni-paint-ink-7692bc,#7692bc);font:10px sans-serif}.workbench-module .gc-gridline{stroke:var(--omni-paint-chart-203755,#203755);stroke-dasharray:3 5}.workbench-module .gc-line{stroke:var(--omni-paint-chart-57edee,#57edee);stroke-width:2px;filter:drop-shadow(0 0 3px #39bada88);pointer-events:none}.workbench-module .gc-footnote{color:var(--omni-paint-ink-738daf,#738daf);margin:10px 0 0;font-size:9px;line-height:1.7}.workbench-module .gc-ring{align-items:center;gap:12px;min-height:265px;display:flex}.workbench-module .gc-ring svg{filter:drop-shadow(0 0 15px #3072ff15);flex-shrink:0;width:53%;max-width:270px}.workbench-module .gc-ring text{fill:var(--omni-paint-ink-8da9cc,#8da9cc);font:7px sans-serif}.workbench-module .gc-ring .gc-ring-number{fill:var(--omni-paint-chart-e3f0ff,#e3f0ff);font:27px ui-monospace,monospace}.workbench-module .gc-ring-legend{flex:1;min-width:0}.workbench-module .gc-ring-legend button{border:0;border-bottom:1px solid var(--omni-paint-line-203352,#203352);width:100%;color:var(--omni-paint-ink-9db4d7,#9db4d7);text-align:left;white-space:nowrap;background:0 0;align-items:center;gap:7px;padding:12px 0;font-size:11px;display:flex}.workbench-module .gc-ring-legend i,.workbench-module .gc-state-legend i{border-radius:2px;flex-shrink:0;width:6px;height:6px;display:inline-block}.workbench-module .gc-ring-legend b{color:var(--omni-paint-ink-dfebff,#dfebff);margin-left:auto;font:15px monospace}.workbench-module .gc-ring-legend small{color:var(--omni-paint-ink-6f8fb8,#6f8fb8);text-align:right;width:27px;font-size:9px}.workbench-module .gc-checks{gap:14px;padding:8px 0;display:grid}.workbench-module .gc-checks button{color:var(--omni-paint-ink-9eb5d8,#9eb5d8);text-align:left;background:0 0;border:0;align-items:center;gap:14px;padding:0;font-size:11px;display:flex}.workbench-module .gc-checks button>span{width:75px}.workbench-module .gc-checks button>div{background:var(--omni-paint-surface-162947,#162947);border-radius:2px;flex:1;height:9px;overflow:hidden}.workbench-module .gc-checks i{height:100%;box-shadow:0 0 12px var(--omni-paint-shadow-4b9eff33,#4b9eff33);border-radius:2px;display:block}.workbench-module .gc-checks b{color:var(--omni-paint-ink-c4dafa,#c4dafa);min-width:15px;font:15px monospace}.workbench-module .gc-archive{border-top:1px solid var(--omni-paint-line-213856,#213856);color:var(--omni-paint-ink-87a6cd,#87a6cd);justify-content:space-between;align-items:center;margin-top:18px;padding-top:13px;font-size:11px;display:flex}.workbench-module .gc-archive b{color:var(--omni-paint-ink-9fccff,#9fccff);margin-right:5px;font:18px monospace}.workbench-module .gc-state-legend{color:var(--omni-paint-ink-88a5ca,#88a5ca);flex-wrap:wrap;gap:12px;margin:0 0 13px;font-size:9px;display:flex}.workbench-module .gc-state-legend span{align-items:center;gap:5px;display:flex}.workbench-module .gc-matrix-scroll{max-height:190px;overflow:auto}.workbench-module .gc-matrix-row{align-items:center;gap:14px;margin-bottom:9px;display:flex}.workbench-module .gc-project-name{text-overflow:ellipsis;white-space:nowrap;text-align:left;width:135px;color:var(--omni-paint-ink-b1c9e9,#b1c9e9);background:0 0;border:0;flex-shrink:0;padding:0;overflow:hidden;font-size:10px!important}.workbench-module .gc-project-name small{color:var(--omni-paint-ink-6386b0,#6386b0);margin-top:4px;font-size:8px;display:block}.workbench-module .gc-matrix-row>div{flex:1;gap:4px;min-width:0;display:flex}.workbench-module .gc-cell{min-width:15px;height:25px;color:var(--omni-paint-ink-adc8ed,#adc8ed);border:1px solid;border-radius:3px;flex:1;padding:0;font-size:8px!important}.workbench-module .gc-cell:hover{filter:brightness(1.5);transform:translateY(-2px)}.workbench-module .gc-time-header,.workbench-module .gc-time-row{grid-template-columns:145px minmax(0,1fr);gap:14px;display:grid}.workbench-module .gc-time-header{color:var(--omni-paint-ink-809dc3,#809dc3);margin:6px 6px 8px 0;font-size:9px}.workbench-module .gc-time-header>div{justify-content:space-between;display:flex}.workbench-module .gc-time-scroll{max-height:229px;padding-right:6px;overflow:auto}.workbench-module .gc-time-row{border-top:1px solid var(--omni-paint-line-1c3052,#1c3052);align-items:center;min-height:31px}.workbench-module .gc-time-row>button{text-overflow:ellipsis;white-space:nowrap;color:var(--omni-paint-ink-9bb8dc,#9bb8dc);text-align:left;background:0 0;border:0;padding:0;font-size:10px;overflow:hidden}.workbench-module .gc-time-row>div{background:repeating-linear-gradient(90deg,var(--omni-paint-surface-203658,#203658) 0,var(--omni-paint-surface-203658,#203658) 1px,transparent 1px,transparent 25%);height:30px;margin:0 4px;position:relative}.workbench-module .gc-event{border:1px solid var(--omni-paint-line-69c5f7,#69c5f7);background:var(--omni-paint-surface-3885c3,#3885c3);border-radius:2px;width:7px;min-width:0;height:16px;padding:0;position:absolute;top:7px;transform:translate(-50%)}.workbench-module .gc-event.saved{background:var(--omni-paint-surface-4b6fce,#4b6fce);border-color:var(--omni-paint-line-8eafff,#8eafff)}.workbench-module .gc-event.bad{background:var(--omni-paint-surface-b75a83,#b75a83);border-color:var(--omni-paint-line-eb92b4,#eb92b4)}.workbench-module .gc-event:hover{z-index:2;outline:2px solid var(--omni-paint-line-bcecff,#bcecff)}.workbench-module .gc-todo-list{max-height:245px;overflow:auto}.workbench-module .gc-todo-list>button{text-align:left;border:0;border-top:1px solid var(--omni-paint-line-243655,#243655);width:100%;color:var(--omni-paint-ink-b1cae8,#b1cae8);background:0 0;align-items:center;gap:12px;padding:12px 0;display:flex}.workbench-module .gc-todo-list>button:first-child{border-top:0}.workbench-module .gc-todo-list>button>div{flex:1;min-width:0}.workbench-module .gc-todo-list b{color:var(--omni-paint-ink-edc897,#edc897);font-size:12px;font-weight:500}.workbench-module .gc-todo-list span:not(.gc-todo-num){color:var(--omni-paint-ink-829bbf,#829bbf);text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:9px;display:block;overflow:hidden}.workbench-module .gc-todo-list small{color:var(--omni-paint-ink-627fa8,#627fa8);margin-top:4px;font-size:9px;display:block}.workbench-module .gc-todo-num{color:var(--omni-paint-ink-deb77c,#deb77c);background:var(--omni-paint-surface-3c302d,#3c302d);border:1px solid var(--omni-paint-line-72563f,#72563f);border-radius:4px;padding:5px;font:11px monospace}.workbench-module .gc-badge{background:var(--omni-paint-surface-3e302c,#3e302c);border:1px solid var(--omni-paint-line-815e3a,#815e3a);color:var(--omni-paint-ink-e8b776,#e8b776);white-space:nowrap;border-radius:4px;padding:5px 9px;font-size:10px}.workbench-module .gc-lanes-title{justify-content:space-between;align-items:center;margin:27px 0 18px;display:flex}.workbench-module .gc-lanes-title span{letter-spacing:1.5px;color:var(--omni-paint-ink-5a85b9,#5a85b9);font:9px monospace}.workbench-module .gc-lanes-title h2{color:var(--omni-paint-ink-bdd9ff,#bdd9ff);margin-top:8px;font-size:19px}.workbench-module .gc-no-data,.workbench-module .gc-chart-empty{color:var(--omni-paint-ink-7c9ac4,#7c9ac4);padding:25px 0;font-size:12px}.workbench-module .gc-chart-empty{flex-direction:column;justify-content:center;align-items:center;gap:14px;min-height:235px;display:flex}.workbench-module .gc-chart-empty span{font-size:11px}@media (width>=1600px){.workbench-module .gc-chart svg{max-height:245px}.workbench-module .gc-ring{min-height:310px}.workbench-module .gc-kpi strong{font-size:38px}}@media (width<=1150px){.workbench-module .gc-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.workbench-module .gc-kpi{padding:13px}.workbench-module .gc-main-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}.workbench-module .gc-panel{padding:15px}.workbench-module .gc-ring{flex-direction:column;gap:0;min-height:0}.workbench-module .gc-ring svg{width:150px}.workbench-module .gc-ring-legend{width:100%}.workbench-module .gc-ring-legend button{padding:6px 0}.workbench-module .gc-chart-reading i{display:none}.workbench-module .gc-project-name{width:90px}.workbench-module .gc-time-header,.workbench-module .gc-time-row{grid-template-columns:110px minmax(0,1fr)}}@media (width<=850px){.workbench-module .gc-main-grid{grid-template-columns:1fr}.workbench-module .gc-ring{flex-direction:row}.workbench-module .gc-ring svg{width:45%}.workbench-module .gc-ring-legend button{padding:14px 0}.workbench-module .gc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.workbench-module .gc-kpi:last-child{grid-column:1/-1}.workbench-module .gc-kpi:last-child strong{margin-right:15px;display:inline-block}.workbench-module .gc-kpi:last-child p{display:inline}.workbench-module .gc-matrix-row>div{min-width:220px}.workbench-module .gc-matrix-scroll{overflow:auto}.workbench-module .gc-history{min-width:0}.workbench-module .gc-chart-reading{flex-wrap:wrap}}@media (width<=650px){.workbench-module .gc-kpi strong{font-size:29px}.workbench-module .gc-kpi>div{font-size:11px}.workbench-module .gc-kpi-icon{width:28px;height:28px}.workbench-module .gc-kpi p{font-size:9px}.workbench-module .gc-kpis{gap:9px}.workbench-module .gc-lanes-title{align-items:flex-start;gap:12px}.workbench-module .gc-lanes-title h2{font-size:16px}.workbench-module .gc-lanes-title button{padding:8px;font-size:9px}.workbench-module .gc-time-header,.workbench-module .gc-time-row{grid-template-columns:100px minmax(0,1fr);gap:8px}.workbench-module .gc-panel-head h2{font-size:14px}.workbench-module .gc-panel-head small,.workbench-module .gc-chart-reading span{font-size:9px}.workbench-module .gc-panel{padding:15px 12px}.workbench-module .gc-ring-legend button{font-size:10px}}@media (prefers-reduced-motion:reduce){.workbench-module .gc *{scroll-behavior:auto!important;transition:none!important}}.workbench-module .gw .gc-kpi{min-height:0;display:block}.workbench-module .gw .gc-kpi>div>span:not(.gc-kpi-icon){white-space:nowrap}.workbench-module .gc button{letter-spacing:normal;min-height:0}.workbench-module .gc .gc-project-name,.workbench-module .gc .gc-time-row>button{display:block}.workbench-module .gc .gc-cell{place-items:center;min-height:25px;display:grid}.workbench-module .gc .gc-event{color:var(--omni-paint-ink-d8eeff,#d8eeff);place-items:center;width:18px;height:18px;font:8px monospace;display:grid;top:6px}.workbench-module .gc-records{border-left:1px solid var(--omni-paint-line-3566a0,#3566a0);max-height:55dvh;margin:15px 0 0 5px;padding-left:14px;overflow:auto}.workbench-module .gc-records details{border:1px solid var(--omni-paint-line-294c77,#294c77);background:var(--omni-paint-surface-0c1b33,#0c1b33);border-radius:5px;margin-bottom:10px;padding:12px}.workbench-module .gc-records summary{cursor:pointer;gap:7px;display:grid}.workbench-module .gc-records summary span{color:var(--omni-paint-ink-809bc3,#809bc3);font:10px monospace}.workbench-module .gc-records b{color:var(--omni-paint-ink-b9d8ff,#b9d8ff);font-size:13px}.workbench-module .gc-records em{color:var(--omni-paint-ink-69d1e4,#69d1e4);font-size:10px;font-style:normal}.workbench-module .gc-records p{white-space:pre-wrap;color:var(--omni-paint-ink-aac3e3,#aac3e3);font-size:12px;line-height:1.8}.workbench-module .gc-records button{background:var(--omni-paint-surface-163c6b,#163c6b);border:1px solid var(--omni-paint-line-3b679a,#3b679a);color:var(--omni-paint-ink-c1dfff,#c1dfff);padding:8px 12px;font-size:11px}.workbench-module .gc-history-dialog{background:linear-gradient(140deg,var(--omni-paint-surface-14294b,#14294b),var(--omni-paint-surface-0c1931,#0c1931));border-color:var(--omni-paint-line-3866a0,#3866a0);width:min(640px,100vw - 30px)}.workbench-module .gw .gc+.ta-board>.ta-heading,.workbench-module .gw .gc+.ta-board>.ta-inbox{display:none}.workbench-module .gw .gc-kpi strong small{letter-spacing:0}.workbench-module .gc-kpi.is-open{border-color:var(--omni-paint-line-5acfff,#5acfff);box-shadow:0 0 18px var(--omni-paint-shadow-397dd633,#397dd633)}.workbench-module .gc-kpi .gc-long-value{font-size:24px}.workbench-module .gb-detail{border:1px solid var(--omni-paint-line-3566a4,#3566a4);background:linear-gradient(130deg,var(--omni-paint-surface-13274a,#13274a),var(--omni-paint-surface-0d1b33,#0d1b33));color:var(--omni-paint-ink-a8bfdf,#a8bfdf);border-radius:8px;margin-bottom:18px;padding:22px}.workbench-module .gb-detail>header{background:0 0;border:0;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px;padding:0;display:flex}.workbench-module .gb-detail header small{color:var(--omni-paint-ink-6db9e8,#6db9e8);font-size:10px}.workbench-module .gb-detail h2{color:var(--omni-paint-ink-d8eaff,#d8eaff);margin-top:8px;font-size:18px}.workbench-module .gb-detail p{font-size:12px;line-height:1.9}.workbench-module .gb-detail button,.workbench-module .gb-detail a{background:var(--omni-paint-surface-173d6d,#173d6d);border:1px solid var(--omni-paint-line-386599,#386599);color:var(--omni-paint-ink-c0e3ff,#c0e3ff);border-radius:4px;justify-content:center;align-items:center;margin:5px 7px 5px 0;padding:8px 12px;font-size:11px;text-decoration:none;display:inline-flex}.workbench-module .gb-detail label{font-size:12px}.workbench-module .gb-detail select{background:var(--omni-paint-surface-0d2040,#0d2040);color:var(--omni-paint-ink-b8ceeb,#b8ceeb);border:1px solid var(--omni-paint-line-33567f,#33567f);padding:8px}.workbench-module .gb-table{max-height:340px;overflow:auto}.workbench-module .gb-table table{border-collapse:collapse;width:100%}.workbench-module .gb-table small{color:var(--omni-paint-ink-839fc3,#839fc3);font-size:10px;display:block}.workbench-module .gb-table .gb-wrap{white-space:normal;min-width:220px;max-width:370px;line-height:1.8}.workbench-module .gb-win{color:var(--omni-paint-ink-5de0c3,#5de0c3)}.workbench-module .gb-loss{color:var(--omni-paint-danger-f299ad,#f299ad)}.workbench-module .gb-next{border-left:2px solid var(--omni-paint-line-46b9ef,#46b9ef);background:var(--omni-paint-surface-14345255,#14345255);padding:13px 16px;color:var(--omni-paint-ink-bad9ee,#bad9ee)!important}.workbench-module .gb-gap{border:1px solid var(--omni-paint-line-756044,#756044);background:var(--omni-paint-surface-342c2844,#342c2844);color:var(--omni-paint-ink-e8c086,#e8c086);padding:15px;font-size:13px}.workbench-module .gb-costs{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0;display:grid}.workbench-module .gb-costs>div{background:var(--omni-paint-surface-0b1b34,#0b1b34);border:1px solid var(--omni-paint-line-29466e,#29466e);border-radius:5px;padding:12px}.workbench-module .gb-costs span{color:var(--omni-paint-ink-86a6cf,#86a6cf);margin-bottom:8px;font-size:10px;display:block}.workbench-module .gb-costs b{color:var(--omni-paint-ink-cae5ff,#cae5ff);overflow-wrap:anywhere;font:16px monospace}.workbench-module .gb-costs .gb-profit{border-color:var(--omni-paint-line-388980,#388980)}.workbench-module .gb-inc-summary{background:var(--omni-paint-surface-10264a,#10264a);border:1px solid var(--omni-paint-line-2a4878,#2a4878);border-radius:5px;align-items:center;gap:25px;margin:15px 0;padding:20px;display:flex}.workbench-module .gb-inc-summary b{color:var(--omni-paint-ink-7bd8ff,#7bd8ff);font:30px monospace}.workbench-module .gb-inc-summary small{color:var(--omni-paint-ink-7fa2c8,#7fa2c8);margin-top:9px;font:11px sans-serif;display:block}.workbench-module .ta-dialog .gb-costs{grid-template-columns:1fr 1fr}@media (width<=650px){.workbench-module .gb-detail{padding:16px}.workbench-module .gb-costs{grid-template-columns:1fr 1fr}.workbench-module .gb-inc-summary{gap:16px}.workbench-module .gb-inc-summary b,.workbench-module .gc-kpi strong{font-size:24px}}.workbench-module .gb-detail table button{white-space:nowrap}.workbench-module .gc .done{background:var(--omni-chart-teal);border-color:var(--omni-chart-teal)}.workbench-module .gc .review{background:var(--omni-chart-secondary);border-color:var(--omni-chart-secondary)}.workbench-module .gc .attention{background:var(--omni-chart-orange);border-color:var(--omni-chart-orange)}.workbench-module .gc .todo{background:var(--omni-chart-primary);border-color:var(--omni-chart-primary)}.workbench-module .gc .stopped{background:var(--omni-danger);border-color:var(--omni-danger)}.workbench-module .gc button:is(.done,.review,.attention,.todo,.stopped){color:var(--omni-text);background:var(--omni-selected)}.workbench-module .gc-rank-list>button>div{background:var(--omni-chart-track)}.workbench-module .gc-rank-list b{background:var(--omni-chart-primary)}.workbench-module .gc-status-strip i{background:var(--omni-chart-teal)}:root[data-omni-theme=light]{--omni-paint-surface-112749:#fff;--omni-paint-surface-0d1b32:#fff;--omni-paint-line-29466d:#dde1eb;--omni-paint-ink-83a6cf:#626e80;--omni-paint-ink-87b4de:#626e80;--omni-paint-ink-bfd4ed:#252831;--omni-paint-ink-7297c1:#626e80;--omni-paint-surface-11243c:#fff;--omni-paint-line-254364:#dde1eb;--omni-paint-ink-77b7bc:#626e80;--omni-paint-ink-f1be80:#626e80;--omni-paint-ink-799cc4:#626e80;--omni-paint-line-213856:#dde1eb;--omni-paint-ink-b7d1ef:#252831;--omni-paint-surface-233e67:#fff;--omni-paint-ink-9cbce2:#626e80;--omni-paint-surface-cfb660:#eef0ff;--omni-paint-ink-18284a:#252831;--omni-paint-ink-698dbb:#626e80;--omni-paint-surface-182d4e:#fff;--omni-paint-surface-6760f2:#eef0ff;--omni-paint-surface-39d5ec:#eef0ff;--omni-paint-ink-badbff:#252831;--omni-paint-ink-7da1cc:#626e80;--omni-paint-line-274267:#dde1eb;--omni-paint-surface-58dccc:#eef0ff;--omni-paint-surface-183c68:#fff;--omni-paint-line-315885:#dde1eb;--omni-paint-ink-afd7fa:#252831;--omni-paint-ink-76b5e2:#626e80;--omni-paint-surface-5966d4:#eef0ff;--omni-paint-ink-9fc3ef:#626e80;--omni-paint-ink-718fb7:#626e80;--omni-paint-line-233a61:#dde1eb;--omni-paint-ink-839bbd:#626e80;--omni-paint-ink-52d5fa:#626e80;--omni-paint-line-61dbff:#dde1eb;--omni-paint-line-29467a:#dde1eb;--omni-paint-ink-b6c9e8:#626e80;--omni-paint-surface-1c53ad66:#eef0ff66;--omni-paint-surface-122b51:#fff;--omni-paint-surface-0c1b36:#fff;--omni-paint-shadow-7abaff15:#00000005;--omni-paint-shadow-0002:#00000009;--omni-paint-surface-3d97ff:#eef0ff;--omni-paint-shadow-3dbaff:#0000001f;--omni-paint-ink-6e91c3:#626e80;--omni-paint-surface-173c73:#fff;--omni-paint-ink-4dccff:#626e80;--omni-paint-shadow-1d87ff22:#00000009;--omni-paint-ink-b99bff:#626e80;--omni-paint-surface-34295b:#fff;--omni-paint-ink-56e7db:#626e80;--omni-paint-surface-113f51:#fff;--omni-paint-ink-e1efff:#252831;--omni-paint-ink-839fca:#626e80;--omni-paint-ink-7f9ec5:#626e80;--omni-paint-line-548ad1:#dde1eb;--omni-paint-surface-173363:#fff;--omni-paint-surface-0e1d39:#fff;--omni-paint-surface-0a162d:#f5f6fa;--omni-paint-shadow-80aaff08:#00000002;--omni-paint-surface-4193f5:#eef0ff;--omni-paint-shadow-2e91ee77:#0000001e;--omni-paint-ink-d4e7ff:#252831;--omni-paint-surface-50c9ff:#eef0ff;--omni-paint-shadow-4cb8ff:#0000001f;--omni-paint-ink-47bff4:#626e80;--omni-paint-line-2c4775:#dde1eb;--omni-paint-surface-122b50:#fff;--omni-paint-ink-a4ceff:#252831;--omni-paint-surface-08152d:#f5f6fa;--omni-paint-line-243b63:#dde1eb;--omni-paint-ink-7799c4:#626e80;--omni-paint-surface-244d8c:#eef0ff;--omni-paint-ink-d5edff:#252831;--omni-paint-surface-0d2040:#fff;--omni-paint-line-2b4671:#dde1eb;--omni-paint-ink-9db9dc:#626e80;--omni-paint-ink-def5ff:#252831;--omni-paint-ink-8eb2d4:#626e80;--omni-paint-ink-9ab1d2:#626e80;--omni-paint-ink-6185ae:#626e80;--omni-paint-ink-7692bc:#626e80;--omni-paint-chart-203755:#e7eaf2;--omni-paint-chart-57edee:#4b5fff;--omni-paint-ink-738daf:#626e80;--omni-paint-ink-8da9cc:#626e80;--omni-paint-chart-e3f0ff:#4b5fff;--omni-paint-line-203352:#dde1eb;--omni-paint-ink-9db4d7:#626e80;--omni-paint-ink-dfebff:#252831;--omni-paint-ink-6f8fb8:#626e80;--omni-paint-ink-9eb5d8:#626e80;--omni-paint-surface-162947:#fff;--omni-paint-shadow-4b9eff33:#0000000d;--omni-paint-ink-c4dafa:#252831;--omni-paint-ink-87a6cd:#626e80;--omni-paint-ink-9fccff:#626e80;--omni-paint-ink-88a5ca:#626e80;--omni-paint-surface-1d8c94:#eef0ff;--omni-paint-line-31b3bc:#dde1eb;--omni-paint-surface-6352b1:#eef0ff;--omni-paint-line-8971df:#dde1eb;--omni-paint-surface-9a6433:#eef0ff;--omni-paint-line-d7a15d:#dde1eb;--omni-paint-surface-1c3156:#fff;--omni-paint-line-2b4771:#dde1eb;--omni-paint-surface-853d5b:#eef0ff;--omni-paint-line-b9698a:#dde1eb;--omni-paint-ink-b1c9e9:#626e80;--omni-paint-ink-6386b0:#626e80;--omni-paint-ink-adc8ed:#626e80;--omni-paint-ink-809dc3:#626e80;--omni-paint-line-1c3052:#dde1eb;--omni-paint-ink-9bb8dc:#626e80;--omni-paint-surface-203658:#fff;--omni-paint-line-69c5f7:#dde1eb;--omni-paint-surface-3885c3:#eef0ff;--omni-paint-surface-4b6fce:#eef0ff;--omni-paint-line-8eafff:#dde1eb;--omni-paint-surface-b75a83:#eef0ff;--omni-paint-line-eb92b4:#dde1eb;--omni-paint-line-bcecff:#dde1eb;--omni-paint-line-243655:#dde1eb;--omni-paint-ink-b1cae8:#626e80;--omni-paint-ink-edc897:#626e80;--omni-paint-ink-829bbf:#626e80;--omni-paint-ink-627fa8:#626e80;--omni-paint-ink-deb77c:#626e80;--omni-paint-surface-3c302d:#fff;--omni-paint-line-72563f:#dde1eb;--omni-paint-surface-3e302c:#fff;--omni-paint-line-815e3a:#dde1eb;--omni-paint-ink-e8b776:#626e80;--omni-paint-ink-5a85b9:#626e80;--omni-paint-ink-bdd9ff:#252831;--omni-paint-ink-7c9ac4:#626e80;--omni-paint-ink-d8eeff:#252831;--omni-paint-line-3566a0:#dde1eb;--omni-paint-line-294c77:#dde1eb;--omni-paint-surface-0c1b33:#fff;--omni-paint-ink-809bc3:#626e80;--omni-paint-ink-b9d8ff:#252831;--omni-paint-ink-69d1e4:#626e80;--omni-paint-ink-aac3e3:#626e80;--omni-paint-surface-163c6b:#fff;--omni-paint-line-3b679a:#dde1eb;--omni-paint-ink-c1dfff:#252831;--omni-paint-surface-14294b:#fff;--omni-paint-surface-0c1931:#f5f6fa;--omni-paint-line-3866a0:#dde1eb;--omni-paint-line-5acfff:#dde1eb;--omni-paint-shadow-397dd633:#0000000d;--omni-paint-line-3566a4:#dde1eb;--omni-paint-surface-13274a:#fff;--omni-paint-surface-0d1b33:#fff;--omni-paint-ink-a8bfdf:#626e80;--omni-paint-ink-6db9e8:#626e80;--omni-paint-ink-d8eaff:#252831;--omni-paint-surface-173d6d:#fff;--omni-paint-line-386599:#dde1eb;--omni-paint-ink-c0e3ff:#252831;--omni-paint-ink-b8ceeb:#252831;--omni-paint-line-33567f:#dde1eb;--omni-paint-ink-839fc3:#626e80;--omni-paint-ink-5de0c3:#626e80;--omni-paint-danger-f299ad:#b83a4a;--omni-paint-line-46b9ef:#dde1eb;--omni-paint-surface-14345255:#fff5;--omni-paint-ink-bad9ee:#252831;--omni-paint-line-756044:#dde1eb;--omni-paint-surface-342c2844:#fff4;--omni-paint-ink-e8c086:#626e80;--omni-paint-surface-0b1b34:#fff;--omni-paint-line-29466e:#dde1eb;--omni-paint-ink-86a6cf:#626e80;--omni-paint-ink-cae5ff:#252831;--omni-paint-line-388980:#dde1eb;--omni-paint-surface-10264a:#fff;--omni-paint-line-2a4878:#dde1eb;--omni-paint-ink-7bd8ff:#626e80;--omni-paint-ink-7fa2c8:#626e80}:root[data-omni-theme=dark]{--omni-paint-surface-112749:#102235;--omni-paint-surface-0d1b32:#102235;--omni-paint-line-29466d:#2c435b;--omni-paint-ink-83a6cf:#91a9bd;--omni-paint-ink-87b4de:#91a9bd;--omni-paint-ink-bfd4ed:#dceaf7;--omni-paint-ink-7297c1:#91a9bd;--omni-paint-surface-11243c:#102235;--omni-paint-line-254364:#2c435b;--omni-paint-ink-77b7bc:#91a9bd;--omni-paint-ink-f1be80:#91a9bd;--omni-paint-ink-799cc4:#91a9bd;--omni-paint-line-213856:#2c435b;--omni-paint-ink-b7d1ef:#dceaf7;--omni-paint-surface-233e67:#102235;--omni-paint-ink-9cbce2:#91a9bd;--omni-paint-surface-cfb660:#193954;--omni-paint-ink-18284a:#dceaf7;--omni-paint-ink-698dbb:#91a9bd;--omni-paint-surface-182d4e:#102235;--omni-paint-surface-6760f2:#193954;--omni-paint-surface-39d5ec:#193954;--omni-paint-ink-badbff:#dceaf7;--omni-paint-ink-7da1cc:#91a9bd;--omni-paint-line-274267:#2c435b;--omni-paint-surface-58dccc:#193954;--omni-paint-surface-183c68:#102235;--omni-paint-line-315885:#2c435b;--omni-paint-ink-afd7fa:#dceaf7;--omni-paint-ink-76b5e2:#91a9bd;--omni-paint-surface-5966d4:#193954;--omni-paint-ink-9fc3ef:#91a9bd;--omni-paint-ink-718fb7:#91a9bd;--omni-paint-line-233a61:#2c435b;--omni-paint-ink-839bbd:#91a9bd;--omni-paint-ink-52d5fa:#91a9bd;--omni-paint-line-61dbff:#2c435b;--omni-paint-line-29467a:#2c435b;--omni-paint-ink-b6c9e8:#91a9bd;--omni-paint-surface-1c53ad66:#19395466;--omni-paint-surface-122b51:#102235;--omni-paint-surface-0c1b36:#102235;--omni-paint-shadow-7abaff15:#00000005;--omni-paint-shadow-0002:#00000009;--omni-paint-surface-3d97ff:#193954;--omni-paint-shadow-3dbaff:#0000001f;--omni-paint-ink-6e91c3:#91a9bd;--omni-paint-surface-173c73:#102235;--omni-paint-ink-4dccff:#91a9bd;--omni-paint-shadow-1d87ff22:#00000009;--omni-paint-ink-b99bff:#91a9bd;--omni-paint-surface-34295b:#102235;--omni-paint-ink-56e7db:#91a9bd;--omni-paint-surface-113f51:#102235;--omni-paint-ink-e1efff:#dceaf7;--omni-paint-ink-839fca:#91a9bd;--omni-paint-ink-7f9ec5:#91a9bd;--omni-paint-line-548ad1:#2c435b;--omni-paint-surface-173363:#102235;--omni-paint-surface-0e1d39:#102235;--omni-paint-surface-0a162d:#0b1727;--omni-paint-shadow-80aaff08:#00000002;--omni-paint-surface-4193f5:#193954;--omni-paint-shadow-2e91ee77:#0000001e;--omni-paint-ink-d4e7ff:#dceaf7;--omni-paint-surface-50c9ff:#193954;--omni-paint-shadow-4cb8ff:#0000001f;--omni-paint-ink-47bff4:#91a9bd;--omni-paint-line-2c4775:#2c435b;--omni-paint-surface-122b50:#102235;--omni-paint-ink-a4ceff:#dceaf7;--omni-paint-surface-08152d:#0b1727;--omni-paint-line-243b63:#2c435b;--omni-paint-ink-7799c4:#91a9bd;--omni-paint-surface-244d8c:#193954;--omni-paint-ink-d5edff:#dceaf7;--omni-paint-surface-0d2040:#102235;--omni-paint-line-2b4671:#2c435b;--omni-paint-ink-9db9dc:#91a9bd;--omni-paint-ink-def5ff:#dceaf7;--omni-paint-ink-8eb2d4:#91a9bd;--omni-paint-ink-9ab1d2:#91a9bd;--omni-paint-ink-6185ae:#91a9bd;--omni-paint-ink-7692bc:#91a9bd;--omni-paint-chart-203755:#2c435b;--omni-paint-chart-57edee:#6fa7ff;--omni-paint-ink-738daf:#91a9bd;--omni-paint-ink-8da9cc:#91a9bd;--omni-paint-chart-e3f0ff:#6fa7ff;--omni-paint-line-203352:#2c435b;--omni-paint-ink-9db4d7:#91a9bd;--omni-paint-ink-dfebff:#dceaf7;--omni-paint-ink-6f8fb8:#91a9bd;--omni-paint-ink-9eb5d8:#91a9bd;--omni-paint-surface-162947:#102235;--omni-paint-shadow-4b9eff33:#0000000d;--omni-paint-ink-c4dafa:#dceaf7;--omni-paint-ink-87a6cd:#91a9bd;--omni-paint-ink-9fccff:#91a9bd;--omni-paint-ink-88a5ca:#91a9bd;--omni-paint-surface-1d8c94:#193954;--omni-paint-line-31b3bc:#2c435b;--omni-paint-surface-6352b1:#193954;--omni-paint-line-8971df:#2c435b;--omni-paint-surface-9a6433:#193954;--omni-paint-line-d7a15d:#2c435b;--omni-paint-surface-1c3156:#102235;--omni-paint-line-2b4771:#2c435b;--omni-paint-surface-853d5b:#193954;--omni-paint-line-b9698a:#2c435b;--omni-paint-ink-b1c9e9:#91a9bd;--omni-paint-ink-6386b0:#91a9bd;--omni-paint-ink-adc8ed:#91a9bd;--omni-paint-ink-809dc3:#91a9bd;--omni-paint-line-1c3052:#2c435b;--omni-paint-ink-9bb8dc:#91a9bd;--omni-paint-surface-203658:#102235;--omni-paint-line-69c5f7:#2c435b;--omni-paint-surface-3885c3:#193954;--omni-paint-surface-4b6fce:#193954;--omni-paint-line-8eafff:#2c435b;--omni-paint-surface-b75a83:#193954;--omni-paint-line-eb92b4:#2c435b;--omni-paint-line-bcecff:#2c435b;--omni-paint-line-243655:#2c435b;--omni-paint-ink-b1cae8:#91a9bd;--omni-paint-ink-edc897:#91a9bd;--omni-paint-ink-829bbf:#91a9bd;--omni-paint-ink-627fa8:#91a9bd;--omni-paint-ink-deb77c:#91a9bd;--omni-paint-surface-3c302d:#102235;--omni-paint-line-72563f:#2c435b;--omni-paint-surface-3e302c:#102235;--omni-paint-line-815e3a:#2c435b;--omni-paint-ink-e8b776:#91a9bd;--omni-paint-ink-5a85b9:#91a9bd;--omni-paint-ink-bdd9ff:#dceaf7;--omni-paint-ink-7c9ac4:#91a9bd;--omni-paint-ink-d8eeff:#dceaf7;--omni-paint-line-3566a0:#2c435b;--omni-paint-line-294c77:#2c435b;--omni-paint-surface-0c1b33:#102235;--omni-paint-ink-809bc3:#91a9bd;--omni-paint-ink-b9d8ff:#dceaf7;--omni-paint-ink-69d1e4:#91a9bd;--omni-paint-ink-aac3e3:#91a9bd;--omni-paint-surface-163c6b:#102235;--omni-paint-line-3b679a:#2c435b;--omni-paint-ink-c1dfff:#dceaf7;--omni-paint-surface-14294b:#102235;--omni-paint-surface-0c1931:#0b1727;--omni-paint-line-3866a0:#2c435b;--omni-paint-line-5acfff:#2c435b;--omni-paint-shadow-397dd633:#0000000d;--omni-paint-line-3566a4:#2c435b;--omni-paint-surface-13274a:#102235;--omni-paint-surface-0d1b33:#102235;--omni-paint-ink-a8bfdf:#91a9bd;--omni-paint-ink-6db9e8:#91a9bd;--omni-paint-ink-d8eaff:#dceaf7;--omni-paint-surface-173d6d:#102235;--omni-paint-line-386599:#2c435b;--omni-paint-ink-c0e3ff:#dceaf7;--omni-paint-ink-b8ceeb:#dceaf7;--omni-paint-line-33567f:#2c435b;--omni-paint-ink-839fc3:#91a9bd;--omni-paint-ink-5de0c3:#91a9bd;--omni-paint-danger-f299ad:#ff8996;--omni-paint-line-46b9ef:#2c435b;--omni-paint-surface-14345255:#10223555;--omni-paint-ink-bad9ee:#dceaf7;--omni-paint-line-756044:#2c435b;--omni-paint-surface-342c2844:#10223544;--omni-paint-ink-e8c086:#91a9bd;--omni-paint-surface-0b1b34:#102235;--omni-paint-line-29466e:#2c435b;--omni-paint-ink-86a6cf:#91a9bd;--omni-paint-ink-cae5ff:#dceaf7;--omni-paint-line-388980:#2c435b;--omni-paint-surface-10264a:#102235;--omni-paint-line-2a4878:#2c435b;--omni-paint-ink-7bd8ff:#91a9bd;--omni-paint-ink-7fa2c8:#91a9bd}
@@ -0,0 +1 @@
1
+ import{n as e,t}from"./orbit-G4ZspWKB.js";import{t as n}from"./arrow-left-DmIga4jN.js";import{n as r}from"./clock-3-TH35nOP-.js";import{t as i}from"./arrow-up-right-DzAKT3cL.js";import{t as a}from"./chart-no-axes-combined-XDy9u9SV.js";import{t as o}from"./check-BB89tIU6.js";import{t as s}from"./chevron-right-CZlQQ5gV.js";import{n as c,t as l}from"./ui-public-DWkIf658.js";import{r as u}from"./CollaborationWorkspace-Bd6Sjj31.js";import{a as d,n as f,o as p,r as m}from"./products-BAKFF--e.js";import{t as h}from"./layers-Dj9z2et6.js";import{t as g}from"./refresh-cw-dsQ_f-9j.js";import{t as _}from"./search-Cisx0wBF.js";import{g as v,o as y,p as b,s as x,y as S}from"./index-BguiS02-.js";import{n as C}from"./module-host-C4vqZw2y.js";import{n as w}from"./workspace-view-state-BJMX6vWb.js";import"./public-JUGpS2z7.js";import{t as T}from"./group-CjIFQYrJ.js";var E=b(`coins`,[[`path`,{d:`M13.744 17.736a6 6 0 1 1-7.48-7.48`,key:`bq4yh3`}],[`path`,{d:`M15 6h1v4`,key:`11y1tn`}],[`path`,{d:`m6.134 14.768.866-.5 2 3.464`,key:`17snzx`}],[`circle`,{cx:`16`,cy:`8`,r:`6`,key:`14bfc9`}]]),D=b(`grip-vertical`,[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]),O=b(`rotate-ccw`,[[`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`}]]),k=b(`scan-line`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}]]),A=S(v(),1);function j(e){return e.flatMap(e=>e.route.filter(e=>[`attention`,`review`].includes(e.state)).map(t=>({project:e,step:t})))}function M(e){return e.flatMap(e=>e.activity.map(t=>({project:e,event:t}))).sort((e,t)=>t.event.at.localeCompare(e.event.at))}var N={activity:`_activity_k9yph_1`,panel:`_panel_k9yph_1`},P=y();function F({mode:e,api:t,onOpen:n}){let i=C().archiveScope||`real`,[a,o]=(0,A.useState)([]),[s,c]=(0,A.useState)(!0),[l,u]=(0,A.useState)(``),[d,f]=(0,A.useState)(0),[p,m]=w(`workbench.`+e+`.search`,``);(0,A.useEffect)(()=>{let e=!0;return t(`/command-center`).then(t=>{let n=t?.projects;if(!Array.isArray(n))throw Error(`项目状态返回格式异常`);e&&(o(n.filter(e=>i===`stored-demo`?e.simulated:!e.simulated)),u(``))}).catch(t=>{e&&(o([]),u(t instanceof Error?t.message:`项目状态读取失败`))}).finally(()=>{e&&c(!1)}),()=>{e=!1}},[t,d,i]);let h=j(a),g=M(a),v=e=>e.toLowerCase().includes(p.trim().toLowerCase());return(0,P.jsxs)(`section`,{className:N.activity,children:[(0,P.jsxs)(`header`,{children:[(0,P.jsx)(`h1`,{children:e===`tasks`?`待处理事项`:`执行记录`}),(0,P.jsxs)(`label`,{children:[(0,P.jsx)(_,{size:16}),(0,P.jsx)(`input`,{"aria-label":`搜索工作台事项与记录`,value:p,onChange:e=>m(e.target.value),placeholder:`搜索项目或事项`})]})]}),l&&(0,P.jsxs)(`p`,{role:`alert`,children:[l,` `,(0,P.jsx)(`button`,{onClick:()=>{c(!0),f(e=>e+1)},children:`重试`})]}),s?(0,P.jsx)(`p`,{role:`status`,children:`正在读取项目状态…`}):(0,P.jsx)(`div`,{className:N.panel,children:e===`tasks`?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`h2`,{children:[`需要你处理 · `,h.length,` 项`]}),h.filter(({project:e,step:t})=>v(e.name+t.name)).slice(0,30).map(({project:e,step:t})=>(0,P.jsxs)(`button`,{onClick:()=>n(e.id,t.target),children:[(0,P.jsxs)(`span`,{children:[(0,P.jsxs)(`b`,{children:[t.name,` · `,t.state===`attention`?`待复核`:`待确认`]}),(0,P.jsxs)(`small`,{children:[e.name,` · `,t.description]})]}),(0,P.jsx)(r,{size:16})]},e.id+t.id)),!h.length&&(0,P.jsx)(`p`,{children:l?`连接恢复后显示待处理事项。`:`当前没有待复核或待确认的阶段。`})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`h2`,{children:`项目执行与确认记录`}),g.filter(({project:e,event:t})=>v(e.name+t.name)).slice(0,50).map(({project:e,event:t},i)=>(0,P.jsxs)(`button`,{onClick:()=>n(e.id,{tab:`wiki`}),children:[(0,P.jsxs)(`span`,{children:[(0,P.jsxs)(`b`,{children:[t.name,` · `,t.state]}),(0,P.jsxs)(`small`,{children:[e.name,` · `,new Date(t.at).toLocaleString(`zh-CN`)]})]}),(0,P.jsx)(r,{size:16})]},e.id+t.at+i)),!g.length&&(0,P.jsx)(`p`,{children:l?`连接恢复后显示执行记录。`:`当前没有执行记录。`})]})})]})}async function I(e){let[t,n]=await Promise.all([e(`/growth-center`),e(`/command-center`)]),r=t,i=n.projects;if(!Array.isArray(r?.products)||!Array.isArray(r?.catalog)||!Array.isArray(i))throw Error(`经营资料返回格式异常`);return{growth:r,projects:i}}var L={refunds:`同期支付订单的退款`,product:`货品成本`,fulfillment:`运费与履约`,platform:`平台费用`,ads:`广告花费`,tax:`税费`,other:`其他变动费用`,fixed:`固定费用分摊`};function R(e){try{let t=JSON.parse(e||`{}`);return t.version!==1||!t.orders||typeof t.orders!=`object`||Array.isArray(t.orders)?{}:Object.fromEntries(Object.entries(t.orders).slice(0,20).filter(([e,t])=>e.length<100&&Array.isArray(t)).map(([e,t])=>[e,[...new Set(t.filter(e=>typeof e==`string`&&e.length<200))].slice(0,2500)]))}catch{return{}}}function z(e,t){let n=new Set(t);return[...(e||[]).filter(e=>n.delete(e)),...t.filter(e=>n.delete(e))]}function ee(e,t,n,r){let i=[...new Set([...e||[],...t])];if(!t.includes(n)||!t.includes(r)||n===r)return i;let a=i.indexOf(n),o=i.indexOf(r);return i.splice(a,1),i.splice(o,0,n),i}var B=(0,A.createContext)(null);function V({scope:e,onDirty:t,children:n}){let r=e?`omni.dashboard-layout.v1:`+encodeURIComponent(e):null,[i]=(0,A.useState)(()=>{try{return r?R(localStorage.getItem(r)):{}}catch{return{}}}),[a,o]=w(`dashboard.layout.`+(e||`session`),i),[s,c]=(0,A.useState)(a),[l,u]=(0,A.useState)(!1),[d,f]=(0,A.useState)(``),[p,m]=(0,A.useState)(null),h=l&&JSON.stringify(s)!==JSON.stringify(a);(0,A.useEffect)(()=>(t?.(h),()=>t?.(!1)),[h,t]);let g=()=>{u(!1),m(null)};function _(){try{r&&localStorage.setItem(r,JSON.stringify({version:1,orders:s})),o(s),g(),f(r?`布局已保存到当前账号的此台设备。`:`布局已保存,本次会话内有效。`)}catch{f(`布局保存失败,请检查本机存储后重试;当前调整仍保留。`)}}let v={editing:l,orders:s,drag:p,setDrag:m,scope:e,message:d,begin:()=>{c(a),u(!0),f(`拖动卡片左上角,或用前移、后移按钮调整顺序。`)},save:_,cancel:()=>{c(a),g(),f(`已取消本次布局修改。`)},reset:e=>{c(t=>Object.fromEntries(Object.entries(t).filter(([t])=>!e.includes(t)))),f(`当前页已恢复默认排列,点击保存后生效。`)},move:(e,t,n,r)=>{c(i=>({...i,[e]:ee(i[e],t,n,r)})),f(`顺序已调整,保存后记住布局。`)}};return(0,P.jsx)(B.Provider,{value:v,children:(0,P.jsx)(`div`,{className:l?`dashboard-editing`:``,onClickCapture:e=>{l&&!e.target.closest(`[data-layout-control]`)&&(e.preventDefault(),e.stopPropagation())},children:n})})}function te({enabled:e=!0,groups:t=[]}){let n=(0,A.useContext)(B);return!n||!e&&!n.editing?null:(0,P.jsxs)(`div`,{className:`dl-toolbar`,"data-layout-control":!0,children:[(0,P.jsx)(`div`,{className:`dl-toolbar-actions`,children:n.editing?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`span`,{children:`调整卡片顺序`}),(0,P.jsxs)(`button`,{onClick:()=>n.reset(t),children:[(0,P.jsx)(O,{size:13}),`恢复默认`]}),(0,P.jsxs)(`button`,{onClick:n.cancel,children:[(0,P.jsx)(x,{size:13}),`取消`]}),(0,P.jsxs)(`button`,{className:`dl-save`,onClick:n.save,children:[(0,P.jsx)(o,{size:14}),`保存布局`]})]}):(0,P.jsxs)(`button`,{onClick:n.begin,children:[(0,P.jsx)(u,{size:14}),`编辑页面`]})}),n.message&&(0,P.jsx)(`small`,{role:`status`,children:n.message})]})}function ne({group:e,className:t=``,children:i}){let a=(0,A.useContext)(B),o=A.Children.toArray(i).filter(A.isValidElement).map((e,t)=>({id:String(e.key??t).replace(/^\.\$/,``),el:e})),s=o.map(e=>e.id),c=z(a?.orders[e],s);return(0,P.jsx)(`div`,{className:t,children:c.map((t,i)=>{let l=o.find(e=>e.id===t).el,u=l.props[`data-layout-label`]||`卡片`;return(0,A.cloneElement)(l,{key:t,"data-layout-card":t,"data-layout-group":e,className:[l.props.className,`dl-card`,a?.editing?`dl-editable`:``,a?.drag?.group===e&&a.drag.id===t?`dl-dragging`:``].filter(Boolean).join(` `),onDragOver:t=>{a?.editing&&a.drag?.group===e&&(t.preventDefault(),t.dataTransfer.dropEffect=`move`)},onDrop:n=>{a?.editing&&a.drag?.group===e&&(n.preventDefault(),n.stopPropagation(),a.move(e,s,a.drag.id,t),a.setDrag(null))}},a?.editing?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`dl-card-controls`,"data-layout-control":!0,children:[(0,P.jsxs)(`button`,{className:`dl-grip`,"aria-label":`拖动`+u,title:`拖动调整顺序`,onPointerDown:n=>{n.button===0&&(n.preventDefault(),n.stopPropagation(),n.currentTarget.setPointerCapture(n.pointerId),a.setDrag({group:e,id:t}))},onPointerUp:n=>{if(!n.currentTarget.hasPointerCapture(n.pointerId))return;n.currentTarget.releasePointerCapture(n.pointerId);let r=document.elementFromPoint(n.clientX,n.clientY)?.closest(`[data-layout-group]`);for(;r&&r.dataset.layoutGroup!==e;)r=r.parentElement?.closest(`[data-layout-group]`);let i=r?.dataset.layoutCard;i&&i!==t&&a.move(e,s,t,i),a.setDrag(null)},onPointerCancel:()=>a.setDrag(null),children:[(0,P.jsx)(D,{size:14}),(0,P.jsx)(`span`,{children:u})]}),(0,P.jsx)(`button`,{disabled:i===0,"aria-label":`前移`+u,title:`前移`,onClick:()=>a.move(e,s,t,c[i-1]),children:(0,P.jsx)(n,{size:13})}),(0,P.jsx)(`button`,{disabled:i===c.length-1,"aria-label":`后移`+u,title:`后移`,onClick:()=>a.move(e,s,t,c[i+1]),children:(0,P.jsx)(r,{size:13})})]}),l.props.children]}):l.props.children)})})}var H=e=>typeof e==`number`?e.toLocaleString(`zh-CN`,{maximumFractionDigits:2}):`—`;function re({metrics:n,products:r,projects:o,ready:s,onOpen:c,onNav:l,onAssign:u,demo:d}){let[f,p]=(0,A.useState)(``),[m,g]=(0,A.useState)(``),_=n?.sales||[],v=_.find(e=>e.id===m)||_[0],y=(n?.finance||[]).filter(e=>!v||e.start===v.start&&e.end===v.end),b=y.find(e=>e.scope?.type===`shop`&&(d||e.project===v?.project)),S=y.filter(e=>e.scope?.type===`item`&&(d||e.project===v?.project)),C=S.filter(e=>e.complete),w=C.filter(e=>e.profit>0),T=C.filter(e=>e.profit<0),D=C.filter(e=>e.profit===0),O=n?.incubation||[],k=O.filter(e=>e.success),j=o.reduce((e,t)=>e+t.running,0),M=[{id:`sales`,label:`店铺销售额`,value:v?H(v.total):`暂无记录`,unit:v?`元`:``,note:v?`${v.start} — ${v.end}`:`先归档全店销售数据`,Icon:a},{id:`profit`,label:`店铺利润`,value:b?.complete?H(b.profit):`缺成本资料`,unit:b?.complete?`元`:``,note:`已列成本口径经营结余 · 点击核对`,Icon:E},{id:`links`,label:`盈利 / 亏损链接`,value:C.length?`${w.length} / ${T.length}`:`尚未核算`,unit:C.length?`个`:``,note:`${C.length} 个有核算结果 · ${D.length} 个持平`,Icon:h},{id:`incubation`,label:`孵化晋级记录`,value:O.length?`${k.length} / ${O.length}`:`尚无记录`,unit:O.length?`个`:``,note:`已记录晋级 / 累计纳入 · 不代表成功率`,Icon:t},{id:`tasks`,label:`正在执行的任务`,value:s?j:`—`,unit:`个`,note:`${o.filter(e=>e.complete).length} 个项目流程已确认`,Icon:e}];function N(e){if(e===`tasks`){l(`projects`);return}p(f===e?``:e)}let F=e=>d?`data:application/json;charset=utf-8,`+encodeURIComponent(JSON.stringify(e,null,2)):`/api/workbench/`+e.project+`/file/`+(e.artifactId||e.id);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ne,{group:`cockpit.kpis`,className:`gc-kpis`,children:M.map(e=>(0,P.jsx)(`div`,{"data-layout-label":e.label,children:(0,P.jsxs)(`button`,{className:`gc-kpi gc-kpi-`+e.id+` `+(f===e.id?`is-open`:``),onClick:()=>N(e.id),"aria-expanded":f===e.id,children:[(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`span`,{className:`gc-kpi-icon`,children:(0,P.jsx)(e.Icon,{size:21})}),(0,P.jsx)(`span`,{children:e.label}),(0,P.jsx)(i,{size:13})]}),(0,P.jsxs)(`strong`,{className:String(e.value).length>9?`gc-long-value`:``,children:[e.value,(0,P.jsx)(`small`,{children:e.unit})]}),(0,P.jsx)(`p`,{children:e.note})]},e.id)},e.id))}),f&&(0,P.jsxs)(`section`,{className:`gb-detail`,"aria-label":`经营指标明细`,children:[(0,P.jsxs)(`header`,{children:[(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`small`,{children:d?`演示数据 · 不代表真实经营结果`:`归档数据 · 以原件日期和来源为准`}),(0,P.jsxs)(`h2`,{children:[M.find(e=>e.id===f)?.label,` · 明细与下一步`]})]}),(0,P.jsx)(`button`,{"aria-label":`关闭指标明细`,onClick:()=>p(``),children:(0,P.jsx)(x,{size:18})})]}),f===`sales`&&(0,P.jsxs)(P.Fragment,{children:[_.length>1&&(0,P.jsxs)(`label`,{children:[`选择统计记录`,(0,P.jsx)(`select`,{"aria-label":`销售统计记录`,value:v?.id||``,onChange:e=>g(e.target.value),children:_.map(e=>(0,P.jsxs)(`option`,{value:e.id,children:[e.projectName,` · `,e.start,` ~ `,e.end]},e.id))})]}),v?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`p`,{children:v.basis}),(0,P.jsxs)(`p`,{children:[`统计范围:`,v.scopeLabel,` · `,v.count,` 个链接 · `,v.identity,`。`,v.mode===`unverified`?`来源未完成独立核验。`:``]}),(0,P.jsx)(`div`,{className:`gb-table`,children:(0,P.jsxs)(`table`,{children:[(0,P.jsx)(`thead`,{children:(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`th`,{children:`商品 / 分类`}),(0,P.jsx)(`th`,{children:`支付销售额`}),(0,P.jsx)(`th`,{children:`链接数`}),(0,P.jsx)(`th`,{children:`下一步`})]})}),(0,P.jsx)(`tbody`,{children:v.breakdown.map(e=>(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`td`,{children:e.name}),(0,P.jsxs)(`td`,{children:[`¥ `,H(e.sales)]}),(0,P.jsx)(`td`,{children:e.count}),(0,P.jsx)(`td`,{children:(0,P.jsx)(`button`,{onClick:()=>e.itemId?c(e.project,{tab:`monitor`,itemId:e.itemId}):c(v.project,{tab:`data`}),children:e.itemId?`看商品表现`:`核对来源数据`})})]},e.name))})]})}),(0,P.jsx)(`p`,{className:`gb-next`,children:`下一步:先看销售贡献高的商品,再核对退款和成本,决定继续推广还是调整商品。`}),(0,P.jsx)(`a`,{href:F(v),download:d?`模拟销售账本.json`:void 0,children:`查看原始记录`})]}):(0,P.jsx)(`p`,{children:`当前没有全店销售记录。先到数据中心归档同一店铺、同一统计窗口的数据。`}),(0,P.jsx)(`button`,{onClick:()=>l(`data`),children:`进入数据中心`})]}),f===`profit`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`p`,{children:`计算:支付销售额 − 同支付订单退款 − 货品、履约、平台、广告、税费、其他费用 − 固定费用分摊。结果是已列成本口径经营结余。`}),b?.complete?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`gb-costs`,children:[Object.entries(b.amounts).map(([e,t])=>(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`span`,{children:e===`gross`?`支付销售额`:L[e]}),(0,P.jsxs)(`b`,{children:[`¥ `,H(t)]})]},e)),(0,P.jsxs)(`div`,{className:`gb-profit`,children:[(0,P.jsx)(`span`,{children:`经营结余`}),(0,P.jsxs)(`b`,{children:[`¥ `,H(b.profit)]})]})]}),(0,P.jsx)(`a`,{href:F(b),download:d?`模拟利润账本.json`:void 0,children:`查看核算原件`})]}):(0,P.jsxs)(`div`,{className:`gb-gap`,children:[(0,P.jsx)(`b`,{children:`没有完整的真实店铺成本账本,不能计算利润。`}),(0,P.jsx)(`p`,{children:`需要补齐:货品、运费、平台、广告、税费、其他费用、固定费用分摊,以及同支付订单退款。明确没有发生的费用填0,未知项留空。`})]}),(0,P.jsx)(`p`,{className:`gb-next`,children:`下一步:核对金额和凭证;若亏损,先查看费用占比与亏损商品,再进入商品优化评估原因。`}),(0,P.jsx)(`button`,{onClick:()=>c(b?.project||v?.project||o[0]?.id,{tab:`finance`}),disabled:!o.length,children:`打开经营核算`})]}),f===`links`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`p`,{children:`按同周期、完整成本账本判断:结余大于0为盈利,小于0为亏损,等于0为持平;缺成本的商品不计入盈亏。当前仅统计有账本的范围。`}),(0,P.jsx)(`div`,{className:`gb-table`,children:(0,P.jsxs)(`table`,{children:[(0,P.jsx)(`thead`,{children:(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`th`,{children:`商品`}),(0,P.jsx)(`th`,{children:`销售额`}),(0,P.jsx)(`th`,{children:`经营结余`}),(0,P.jsx)(`th`,{children:`状态`}),(0,P.jsx)(`th`,{children:`下一步`})]})}),(0,P.jsx)(`tbody`,{children:S.map(e=>(0,P.jsxs)(`tr`,{children:[(0,P.jsxs)(`td`,{children:[e.projectName,(0,P.jsx)(`small`,{children:e.scope.id})]}),(0,P.jsxs)(`td`,{children:[`¥ `,H(e.gross)]}),(0,P.jsx)(`td`,{children:e.complete?`¥ `+H(e.profit):`费用不全`}),(0,P.jsx)(`td`,{children:(0,P.jsx)(`span`,{className:e.profit<0?`gb-loss`:`gb-win`,children:e.complete?e.profit>0?`盈利`:e.profit<0?`亏损`:`持平`:`待核算`})}),(0,P.jsx)(`td`,{children:(0,P.jsx)(`button`,{onClick:()=>c(e.project,{tab:e.complete?`optimization`:`finance`,itemId:e.scope.id}),children:e.complete?`查看并优化`:`补齐费用`})})]},e.id))})]})}),!S.length&&(0,P.jsx)(`p`,{children:`还没有商品级真实账本。当前看板商品不能仅凭销售额判定盈亏。`}),(0,P.jsx)(`button`,{disabled:!o.length,onClick:()=>c(v?.project||o[0]?.id,{tab:`finance`}),children:`补充商品成本账本`})]}),f===`incubation`&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(`p`,{children:`这里只统计已保存的运营晋级记录与累计纳入数量,不计算经营成功率。未晋级可能仍在观察,不代表失败;每条记录需要核对标准、证据和观察时间,不能推断可复制收益。`}),(0,P.jsxs)(`div`,{className:`gb-inc-summary`,children:[(0,P.jsxs)(`b`,{children:[k.length,(0,P.jsx)(`small`,{children:`达标晋级`})]}),(0,P.jsx)(`span`,{children:`/`}),(0,P.jsxs)(`b`,{children:[O.length,(0,P.jsx)(`small`,{children:`纳入孵化`})]})]}),(0,P.jsx)(`div`,{className:`gb-table`,children:(0,P.jsxs)(`table`,{children:[(0,P.jsx)(`thead`,{children:(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`th`,{children:`商品`}),(0,P.jsx)(`th`,{children:`加入时间`}),(0,P.jsx)(`th`,{children:`结果`}),(0,P.jsx)(`th`,{children:`老师标准与依据`}),(0,P.jsx)(`th`,{children:`下一步`})]})}),(0,P.jsx)(`tbody`,{children:O.map(e=>(0,P.jsxs)(`tr`,{children:[(0,P.jsx)(`td`,{children:e.itemId}),(0,P.jsx)(`td`,{children:e.started.slice(0,10)}),(0,P.jsx)(`td`,{children:e.success?`达标晋级`:`继续观察`}),(0,P.jsxs)(`td`,{className:`gb-wrap`,children:[e.standard||`待记录老师标准`,(0,P.jsx)(`small`,{children:e.evidence||`尚无达标证据`})]}),(0,P.jsx)(`td`,{children:(0,P.jsx)(`button`,{onClick:()=>{let t=r.find(t=>t.itemId===e.itemId&&t.project===e.project);t?u(t):c(e.project,{tab:`data`})},children:e.success?`查看运营分组`:`核对并晋级`})})]},e.key))})]})}),!O.length&&(0,P.jsx)(`p`,{children:`还没有新品进入孵化的记录,暂不能评价。`}),(0,P.jsx)(`p`,{className:`gb-next`,children:`下一步:先把新品加入“新品测试”;达标后选择下一运营分组,填写老师标准与达标依据。单纯换组不计为已记录达标晋级。`}),(0,P.jsx)(`button`,{disabled:!r.length,onClick:()=>u(r.find(e=>e.tier===`unassigned`)||r[0],`test`),children:`登记新品,开始孵化`})]})]})]})}var ie=e=>Math.abs(e)>=1e4?(e/1e4).toFixed(1)+`万`:U(e),U=e=>typeof e==`number`?e.toLocaleString(`zh-CN`,{maximumFractionDigits:2}):`—`,W={scale:`#35dcca`,incubate:`#9880ff`,test:`#438bff`,unassigned:`var(--omni-muted,#91a9bd)`},G={scale:`重点推广`,incubate:`持续孵化`,test:`新品测试`,unassigned:`待分组`},K=[{id:`business`,label:`经营分析`,note:`查看商品经营趋势、销售构成和运营分组。`},{id:`projects`,label:`项目总览`,note:`全局看进度,卡片看状态,进入节点主流程继续推进。`},{id:`tasks`,label:`待办与任务`,note:`集中查看运营任务、巡店提醒和需要你处理的事项。`},{id:`history`,label:`复盘动态`,note:`回看项目阶段与历史记录,核对过程和依据。`}],q={done:`已确认`,review:`待确认`,attention:`需处理`,todo:`未开始`,stopped:`已停止`};function J({title:e,sub:t,children:n}){return(0,P.jsxs)(`div`,{className:`gc-panel-head`,children:[(0,P.jsxs)(`div`,{children:[(0,P.jsxs)(`h2`,{children:[(0,P.jsx)(`span`,{}),` `,e]}),(0,P.jsx)(`small`,{children:t})]}),n]})}function ae({series:e,days:t,onOpen:n}){let[r,o]=(0,A.useState)(null),s=e?.points||[],c=Date.parse(s.at(-1)?.date)-(t-1)*864e5,l=s.filter(e=>Date.parse(e.date)>=c),u=l.filter(e=>e.value!==null).map(e=>e.value);if(!u.length)return(0,P.jsxs)(`div`,{className:`gc-chart-empty`,children:[(0,P.jsx)(a,{size:38}),(0,P.jsx)(`b`,{children:`这段时间还没有可用数据`}),(0,P.jsx)(`span`,{children:`进入商品监控,查看数据来源与日期`}),(0,P.jsxs)(`button`,{onClick:n,children:[`查看商品监控 `,(0,P.jsx)(i,{size:13})]})]});let d=Math.min(0,...u),f=Math.max(1,...u)-d,p=e=>54+(Date.parse(e.date)-c)/(Math.max(1,t-1)*864e5)*690,m=e=>220-(e-d)/f*180,h=null,g=[];return l.forEach(e=>{if(e.value===null){h=null;return}h&&Date.parse(e.date)-Date.parse(h.date)===864e5&&g.push((0,P.jsx)(`line`,{x1:p(h),y1:m(h.value),x2:p(e),y2:m(e.value)},e.date)),h=e}),(0,P.jsxs)(`div`,{className:`gc-chart`,children:[(0,P.jsxs)(`div`,{className:`gc-chart-reading`,children:[(0,P.jsxs)(`strong`,{children:[U(r?.value??l.at(-1)?.value),(0,P.jsx)(`small`,{children:e.unit})]}),(0,P.jsxs)(`span`,{children:[r?.date||l.at(-1)?.date,` · `,e.name]}),(0,P.jsx)(`i`,{children:`柱与线均为同一指标`})]}),(0,P.jsxs)(`svg`,{viewBox:`0 0 780 255`,role:`img`,"aria-label":`${e.name},最近${t}天归档趋势,缺失不补零`,children:[(0,P.jsx)(`defs`,{children:(0,P.jsxs)(`linearGradient`,{id:`gc-bar`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,P.jsx)(`stop`,{stopColor:`var(--omni-chart-primary,#5ec9ff)`}),(0,P.jsx)(`stop`,{offset:`1`,stopColor:`var(--omni-chart-primary,#2857d6)`,stopOpacity:`.3`})]})}),[0,.25,.5,.75,1].map(e=>(0,P.jsxs)(`g`,{children:[(0,P.jsx)(`line`,{className:`gc-gridline`,x1:`54`,x2:`750`,y1:m(d+f*e),y2:m(d+f*e)}),(0,P.jsx)(`text`,{x:`42`,y:m(d+f*e)+4,textAnchor:`end`,children:ie(d+f*e)})]},e)),l.map(n=>n.value===null?null:(0,P.jsxs)(`g`,{onMouseEnter:()=>o(n),onMouseLeave:()=>o(null),children:[(0,P.jsx)(`rect`,{x:p(n)-Math.min(8,230/t),y:Math.min(m(0),m(n.value)),width:Math.min(16,460/t),height:Math.max(1,Math.abs(m(0)-m(n.value))),rx:`2`,fill:`url(#gc-bar)`}),(0,P.jsx)(`circle`,{cx:p(n),cy:m(n.value),r:`3`,fill:`var(--omni-chart-primary,#6ceeff)`}),(0,P.jsxs)(`title`,{children:[n.date,`:`,U(n.value),` `,e.unit]})]},n.date)),(0,P.jsx)(`g`,{className:`gc-line`,children:g}),[0,.25,.5,.75,1].map(e=>(0,P.jsx)(`text`,{x:54+690*e,y:`247`,textAnchor:`middle`,children:new Date(c+(t-1)*864e5*e).toISOString().slice(5,10)},e))]})]})}function Y(e){return(0,P.jsx)(V,{scope:e.layoutScope,onDirty:e.onDirty,children:(0,P.jsx)(X,{...e})})}function X({products:e,projects:t,catalog:n,ready:r,onAction:a,onAssign:o,onOpen:l,onNav:u,onTier:f,onCreate:m,onExecute:h,metrics:g,demo:_}){let[v,y]=w(`workbench.cockpit.tab`,`business`),b=K.find(e=>e.id===v)||K[0],x=(0,A.useRef)(null);function S(e){let t=K.findIndex(e=>e.id===b.id),n=e.key===`ArrowRight`?(t+1)%K.length:e.key===`ArrowLeft`?(t+K.length-1)%K.length:e.key===`Home`?0:e.key===`End`?K.length-1:-1;n<0||(e.preventDefault(),y(K[n].id),(x.current?.querySelectorAll(`[role=tab]`)[n])?.focus())}let[C,T]=w(`workbench.productKey`,``),[E,D]=w(`workbench.metric`,``),[O,j]=w(`workbench.days`,30),[M,N]=w(`workbench.timelineDays`,14),[F,I]=(0,A.useState)(null),L=e.find(e=>e.key===C)||e.find(e=>e.demoCurrent)||e[0],R=L?.series.find(e=>e.key===E)||L?.series.find(e=>[`paid`,`payAmt`,`sales`,`gmv`].includes(e.metric))||L?.series.find(e=>e.metric===`buyers`)||L?.series[0],z=t.reduce((e,t)=>e+t.running,0),ee=t.reduce((e,t)=>e+t.pending,0),B=e.filter(e=>d(e)),V=Object.keys(G).map(t=>({id:t,name:G[t],count:e.filter(e=>e.tier===t).length})),H=0,U=V.map(t=>{let n={...t,offset:H,length:e.length?t.count/e.length*314.16:0};return H+=n.length,n}),Y=t.filter(e=>e.replay?.some(e=>Number.isFinite(Date.parse(e.at)))).sort((e,t)=>String(t.updated).localeCompare(String(e.updated))),X=Math.max(0,...Y.flatMap(e=>e.replay.map(e=>Date.parse(e.at)).filter(Number.isFinite))),Z=X-(M-1)*864e5,le=[{label:`待选择运营分组`,items:e.filter(e=>e.tier===`unassigned`),color:`#8097b8`},{label:`数据需更新`,items:e.filter(e=>e.work?.needsUpdate),color:`#f3ba66`},{label:`任务需检查`,items:e.filter(e=>e.work?.problems?.length),color:`#f581a7`},{label:`近期运行中`,items:e.filter(e=>e.work?.active?.length),color:`#3ddad7`}],Q=g?.sales?.[0],$=(Q?.breakdown||[]).filter(e=>typeof e.sales==`number`).slice().sort((e,t)=>t.sales-e.sales).slice(0,8),ue=$.length>0&&$.every(e=>e.itemId),de=Math.max(1,...$.map(e=>e.sales));return(0,P.jsxs)(`div`,{className:`gc`,children:[(0,P.jsx)(te,{enabled:[`business`,`projects`].includes(b.id),groups:[`cockpit.kpis`,...b.id===`projects`?[`projects.modules`,`projects.stats`,`projects.cards`]:[`cockpit.business`]]}),(0,P.jsx)(re,{metrics:g,products:e,projects:t,ready:r,onOpen:l,onNav:u,onAssign:o,demo:_}),(0,P.jsxs)(`div`,{className:`gc-tabs-heading`,children:[(0,P.jsx)(`div`,{role:`tablist`,"aria-label":`工作台分类`,className:`gc-tabs`,"data-layout-control":!0,ref:x,onKeyDown:S,children:K.map(e=>(0,P.jsx)(`button`,{role:`tab`,id:`gc-tab-`+e.id,"aria-controls":`gc-panel-`+e.id,"aria-selected":b.id===e.id,tabIndex:b.id===e.id?0:-1,onClick:()=>y(e.id),children:e.label},e.id))}),b.id===`projects`&&(0,P.jsxs)(`div`,{className:`pb-heading-actions`,children:[(0,P.jsxs)(`button`,{className:`pb-all-projects`,onClick:()=>u(`projects`),children:[`查看全部项目 `,(0,P.jsx)(i,{size:14})]}),(0,P.jsx)(`button`,{className:`pb-create`,onClick:m,children:`+ 新建项目`})]})]}),(0,P.jsx)(`p`,{className:`gc-tab-description`,children:b.note}),(0,P.jsxs)(`div`,{role:`tabpanel`,id:`gc-panel-`+b.id,"aria-labelledby":`gc-tab-`+b.id,tabIndex:0,className:`gc-tab-panel gc-tab-`+b.id,children:[b.id===`projects`&&(0,P.jsx)(c,{onExecute:h,projects:t,ready:r,onOpen:l,onCreate:m,showHeading:!1,previewLimit:8,onAllProjects:()=>u(`projects`)}),b.id===`tasks`&&(0,P.jsx)(`div`,{className:`gc-quick-tiers`,"aria-label":`运营策略任务速览`,children:[`test`,`incubate`,`scale`].map(t=>{let n=e.filter(e=>e.tier===t),r=n.filter(e=>e.work?.active?.length),c=n.filter(e=>d(e)),l=n.find(e=>e.demoCurrent)||r[0]||n[0];return(0,P.jsxs)(`section`,{style:{"--tier":W[t]},children:[(0,P.jsxs)(`header`,{children:[(0,P.jsx)(`b`,{children:G[t]}),(0,P.jsxs)(`span`,{children:[n.length,`个商品 · `,r.length,`个运行中`]}),(0,P.jsx)(`button`,{onClick:()=>f(t),"aria-label":`查看`+G[t]+`全部商品`,children:(0,P.jsx)(s,{size:14})})]}),(0,P.jsxs)(`button`,{className:`gc-quick-line`,disabled:!l,onClick:()=>a(l,`work`),children:[(0,P.jsx)(`em`,{children:`正在做`}),(0,P.jsxs)(`span`,{children:[l?l.demoCurrent||p(l):`等待商品加入`,l&&(0,P.jsx)(`small`,{children:l.projectName})]})]}),(0,P.jsxs)(`button`,{className:`gc-quick-line`,onClick:()=>l?a(l,`data`):o(null,t),children:[(0,P.jsx)(`em`,{children:`下一步`}),(0,P.jsx)(`span`,{children:l?.demoNext||(t===`test`?`核对点击和加购,选出潜力款`:t===`incubate`?`核对转化与成本,确认是否赚钱`:`检查推广效果,优化计划`)}),(0,P.jsx)(s,{size:12})]}),(0,P.jsxs)(`button`,{className:`gc-quick-alert `+(c.length?`has-issues`:``),onClick:()=>c.length?a(c[0],`work`):f(t),children:[c.length?`需要你处理 `+c.length+` 项 · `+d(c[0]):`暂无待处理提醒`,(0,P.jsx)(i,{size:12})]})]},t)})}),(0,P.jsxs)(ne,{group:`cockpit.`+b.id,className:`gc-main-grid`,children:[b.id===`business`&&(0,P.jsxs)(`section`,{"data-layout-label":`商品经营趋势`,className:`gc-panel gc-sales`,children:[(0,P.jsx)(J,{title:`商品经营趋势`,sub:`按商品查看归档数据,保留真实波动`,children:(0,P.jsx)(`div`,{className:`gc-toggle`,children:[7,30].map(e=>(0,P.jsxs)(`button`,{"aria-pressed":O===e,onClick:()=>j(e),children:[e,`天`]},e))})}),(0,P.jsxs)(`div`,{className:`gc-selects`,children:[(0,P.jsx)(`select`,{"aria-label":`驾驶舱商品`,value:L?.key||``,onChange:e=>{T(e.target.value),D(``)},children:e.map(e=>(0,P.jsxs)(`option`,{value:e.key,children:[e.title||e.projectName,` · `,e.shopName||e.itemId]},e.key))}),(0,P.jsx)(`select`,{"aria-label":`驾驶舱趋势指标`,value:R?.key||``,onChange:e=>D(e.target.value),children:L?.series.map(e=>(0,P.jsx)(`option`,{value:e.key,children:e.name},e.key))}),(0,P.jsxs)(`button`,{disabled:!L,onClick:()=>a(L,`data`),children:[`明细 `,(0,P.jsx)(s,{size:12})]})]}),(0,P.jsx)(ae,{series:R,days:O,onOpen:()=>L?a(L,`monitor`):u(`projects`)},L?.key+`|`+R?.key+`|`+O),(0,P.jsx)(`p`,{className:`gc-footnote`,children:`单商品数据,不等于全店销售额 · 缺失日期不连线 · 来源见归档详情`})]},`sales`),b.id===`business`&&(0,P.jsxs)(`section`,{"data-layout-label":`商品运营分组`,className:`gc-panel gc-structure`,children:[(0,P.jsx)(J,{title:`商品运营分组`,sub:`点击分类,查看商品和下一步`}),(0,P.jsxs)(`div`,{className:`gc-ring`,children:[(0,P.jsxs)(`svg`,{viewBox:`0 0 160 160`,role:`img`,"aria-label":V.map(e=>e.name+e.count+`个`).join(`,`),children:[(0,P.jsx)(`circle`,{cx:`80`,cy:`80`,r:`62`,fill:`none`,stroke:`var(--omni-chart-track,#1e355b)`,strokeWidth:`1`,strokeDasharray:`2 4`}),(0,P.jsx)(`circle`,{cx:`80`,cy:`80`,r:`50`,fill:`none`,stroke:`var(--omni-chart-track,#152849)`,strokeWidth:`18`}),U.filter(e=>e.count>0).map(e=>(0,P.jsx)(`circle`,{cx:`80`,cy:`80`,r:`50`,fill:`none`,stroke:W[e.id],strokeWidth:`18`,strokeDasharray:`${e.length} ${314.16-e.length}`,strokeDashoffset:-e.offset,transform:`rotate(-90 80 80)`},e.id)),(0,P.jsx)(`text`,{x:`80`,y:`80`,textAnchor:`middle`,className:`gc-ring-number`,children:r?e.length:`—`}),(0,P.jsx)(`text`,{x:`80`,y:`98`,textAnchor:`middle`,children:`商品观察对象`})]}),(0,P.jsx)(`div`,{className:`gc-ring-legend`,children:V.map(t=>(0,P.jsxs)(`button`,{onClick:()=>f(t.id),children:[(0,P.jsx)(`i`,{style:{background:W[t.id]}}),(0,P.jsx)(`span`,{children:t.name}),(0,P.jsx)(`b`,{children:t.count}),(0,P.jsxs)(`small`,{children:[e.length?Math.round(t.count/e.length*100):0,`%`]}),(0,P.jsx)(s,{size:12})]},t.id))})]}),(0,P.jsx)(`p`,{className:`gc-footnote`,children:`同一商品在不同项目中分别记录;人工策略分组以保存记录为准,不代表全店经营梯队。`})]},`structure`),b.id===`business`&&(0,P.jsxs)(`section`,{"data-layout-label":`销售构成`,className:`gc-panel gc-ranking`,children:[(0,P.jsx)(J,{title:ue?`商品销售排行`:`销售构成`,sub:Q?Q.start+` — `+Q.end+` · 同一份销售账本`:`按同一统计期的销售账本排名`}),(0,P.jsx)(`div`,{className:`gc-rank-list`,children:$.map((e,t)=>(0,P.jsxs)(`button`,{onClick:()=>l(e.project||Q.project,{tab:e.itemId?`monitor`:`data`,itemId:e.itemId}),children:[(0,P.jsx)(`i`,{children:t+1}),(0,P.jsxs)(`span`,{title:e.name||e.itemId,children:[e.name||e.itemId,(0,P.jsx)(`small`,{children:e.itemId||e.count+`个商品`})]}),(0,P.jsx)(`div`,{children:(0,P.jsx)(`b`,{style:{width:Math.max(2,e.sales/de*100)+`%`}})}),(0,P.jsxs)(`strong`,{children:[`¥`,ie(e.sales)]})]},e.project+`|`+(e.itemId||e.name)))}),!$.length&&(0,P.jsxs)(`p`,{className:`gc-no-data`,children:[`还没有同期商品销售明细。`,(0,P.jsx)(`button`,{onClick:()=>u(`data`),children:`查看已有资料`})]}),(0,P.jsx)(`p`,{className:`gc-footnote`,children:ue?`点击商品核对明细 · 销售排名不代表盈利排名`:`原件按品类汇总,点击查看归档;不是单品排名`})]},`ranking`),b.id===`tasks`&&(0,P.jsxs)(`section`,{"data-layout-label":`巡店检查`,className:`gc-panel gc-inspect`,children:[(0,P.jsx)(J,{title:`巡店检查`,sub:`基于归档与任务状态 · 点击查看待办`,children:(0,P.jsx)(k,{size:17})}),(0,P.jsx)(`div`,{className:`gc-checks`,children:le.map(t=>(0,P.jsxs)(`button`,{disabled:!t.items.length,onClick:()=>t.label===`待选择运营分组`?o(t.items[0]):a(t.items[0],`work`),children:[(0,P.jsx)(`span`,{children:t.label}),(0,P.jsx)(`div`,{children:(0,P.jsx)(`i`,{style:{width:`${e.length?t.items.length/e.length*100:0}%`,background:t.color}})}),(0,P.jsx)(`b`,{children:r?t.items.length:`—`}),(0,P.jsx)(s,{size:12})]},t.label))}),(0,P.jsx)(`p`,{className:`gc-footnote`,children:`同一商品可有多项提醒,数量不可相加;点击先处理一项。`}),(0,P.jsxs)(`div`,{className:`gc-archive`,children:[(0,P.jsx)(oe,{count:n.length}),(0,P.jsxs)(`button`,{onClick:()=>u(`data`),children:[`查看来源 `,(0,P.jsx)(i,{size:12})]})]})]},`inspect`),b.id===`history`&&(0,P.jsxs)(`section`,{"data-layout-label":`项目阶段记录`,className:`gc-panel gc-matrix`,children:[(0,P.jsx)(J,{title:`项目阶段记录`,sub:`节点流程与历史六步记录分别保留,点击核对对应阶段`,children:(0,P.jsxs)(`button`,{onClick:()=>u(`projects`),children:[`全部项目 `,(0,P.jsx)(i,{size:12})]})}),(0,P.jsx)(`div`,{className:`gc-state-legend`,children:Object.entries(q).map(([e,t])=>(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`i`,{className:e}),t]},e))}),(0,P.jsxs)(`div`,{className:`gc-matrix-scroll`,children:[t.slice(0,8).map(e=>(0,P.jsxs)(`div`,{className:`gc-matrix-row`,children:[(0,P.jsxs)(`button`,{className:`gc-project-name`,title:e.name,onClick:()=>l(e.id,{tab:`overview`}),children:[e.name,(0,P.jsxs)(`small`,{children:[e.done,`/`,e.total,` 阶段已确认`]})]}),(0,P.jsx)(`div`,{children:e.route.map((t,n)=>(0,P.jsx)(`button`,{className:`gc-cell `+t.state,"aria-label":`${e.name}:${t.name},${q[t.state]}`,title:`${t.name} · ${q[t.state]}`,onClick:()=>l(e.id,t.target),children:String(n+1).padStart(2,`0`)},t.id))})]},e.id)),!t.length&&(0,P.jsx)(`p`,{className:`gc-no-data`,children:`当前范围还没有项目。`})]})]},`matrix`),b.id===`history`&&(0,P.jsxs)(`section`,{"data-layout-label":`项目历史时间轴`,className:`gc-panel gc-history`,children:[(0,P.jsx)(J,{title:`项目历史时间轴`,sub:_?`模拟历史记录;每天的记录合并为一个色块`:`按真实归档时间显示;每天的记录合并为一个色块`,children:(0,P.jsx)(`div`,{className:`gc-toggle`,children:[14,30].map(e=>(0,P.jsxs)(`button`,{"aria-pressed":M===e,onClick:()=>N(e),children:[e,`天`]},e))})}),X>0?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(`div`,{className:`gc-time-header`,children:[(0,P.jsx)(`span`,{children:`项目 / 点击查看记录`}),(0,P.jsx)(`div`,{children:[0,.25,.5,.75,1].map(e=>(0,P.jsx)(`span`,{children:new Date(Z+(X-Z)*e).toISOString().slice(5,10)},e))})]}),(0,P.jsx)(`div`,{className:`gc-time-scroll`,children:Y.filter(e=>e.replay.some(e=>Date.parse(e.at)>=Z)).slice(0,7).map(e=>(0,P.jsxs)(`div`,{className:`gc-time-row`,children:[(0,P.jsx)(`button`,{title:e.name,onClick:()=>I({project:e,events:e.replay}),children:e.name}),(0,P.jsx)(`div`,{children:se(e.replay.filter(e=>Date.parse(e.at)>=Z)).map(t=>(0,P.jsx)(`button`,{className:`gc-event `+(t.events.some(e=>/失败|停止/.test(e.state))?`bad`:t.events.some(e=>/确认|完成/.test(e.state))?`done`:`saved`),style:{left:`${(Date.parse(t.events[0].at)-Z)/(X-Z)*100}%`},title:`${t.date} · ${t.events.length} 条记录`,"aria-label":`${e.name}:${t.date},${t.events.length}条记录`,onClick:()=>I({project:e,events:t.events,date:t.date}),children:t.events.length},t.date))})]},e.id))}),(0,P.jsxs)(`p`,{className:`gc-footnote`,children:[`最近有记录的日期窗口 · 每个项目最多展示最近120条记录 · 点击色块展开当天记录,不代表运行时长;`,_?`演示操作会追加记录。`:`完整回放在项目执行页。`]})]}):(0,P.jsx)(`p`,{className:`gc-no-data`,children:`暂无可回放的历史记录。`})]},`history`),b.id===`tasks`&&(0,P.jsxs)(`section`,{"data-layout-label":`需要你处理`,className:`gc-panel gc-todo`,children:[(0,P.jsx)(J,{title:`需要你处理`,sub:`先做这一件,再继续下一步`,children:(0,P.jsxs)(`span`,{className:`gc-badge`,children:[B.length,` 项`]})}),(0,P.jsxs)(`div`,{className:`gc-todo-list`,children:[B.map((e,t)=>(0,P.jsxs)(`button`,{onClick:()=>e.tier===`unassigned`?o(e):a(e,`work`),children:[(0,P.jsx)(`span`,{className:`gc-todo-num`,children:String(t+1).padStart(2,`0`)}),(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`b`,{children:d(e)}),(0,P.jsxs)(`span`,{children:[e.title||e.projectName,` · `,e.shopName||e.itemId]}),(0,P.jsx)(`small`,{children:p(e)})]}),(0,P.jsx)(s,{size:15})]},e.key)),!B.length&&(0,P.jsx)(`p`,{className:`gc-no-data`,children:r?`当前没有商品待办。`:`正在读取…`}),(0,P.jsx)(`h3`,{className:`gc-next-label`,children:`接下来可以做`}),t.slice(0,5).map(e=>(0,P.jsxs)(`button`,{onClick:()=>l(e.id,{tab:`overview`}),children:[(0,P.jsx)(`span`,{className:`gc-next-dot`}),(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`b`,{children:e.name}),(0,P.jsx)(`span`,{children:`查看项目节点与下一步`})]}),(0,P.jsx)(s,{size:13})]},`next-`+e.id))]})]},`todo`)]})]}),F&&(0,P.jsx)(ce,{...F,onClose:()=>I(null),onOpen:l}),(0,P.jsxs)(`div`,{className:`gc-status-strip`,children:[(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`i`,{}),` `,_?`教学模拟`:`归档数据`,` · `,e.length,` 个商品`]}),(0,P.jsxs)(`span`,{children:[t.length,` 个项目 · `,t.filter(e=>e.started).length,` 个已开展 · `,t.filter(e=>e.complete).length,` 个流程已确认`]}),(0,P.jsxs)(`span`,{children:[z,` 项运行中 · `,ee,` 项待执行`]}),(0,P.jsxs)(`button`,{onClick:()=>u(`products`),children:[`展开运营工作清单 `,(0,P.jsx)(i,{size:13})]})]})]})}function oe({count:e}){return(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`b`,{children:e}),` 份归档资料可追溯`]})}function se(e){let t=new Map;for(let n of e){let e=new Date(Date.parse(n.at)+8*36e5).toISOString().slice(0,10);t.set(e,[...t.get(e)||[],n])}return[...t].map(([e,t])=>({date:e,events:t}))}function ce({project:e,events:t,date:n,onClose:r,onOpen:i}){let a=(0,A.useRef)(null);return(0,A.useEffect)(()=>{a.current?.showModal()},[]),(0,P.jsxs)(`dialog`,{className:`ta-dialog gc-history-dialog`,ref:a,onClose:r,"aria-labelledby":`gc-history-title`,children:[(0,P.jsxs)(`div`,{className:`ta-dialog-head`,children:[(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`small`,{children:e.name}),(0,P.jsxs)(`h2`,{id:`gc-history-title`,children:[n||`项目历史`,` · `,t.length,` 条记录`]})]}),(0,P.jsx)(`button`,{"aria-label":`关闭历史记录`,onClick:r,children:`×`})]}),(0,P.jsx)(`p`,{children:`按发生时间排列。展开记录,查看当时做了什么。`}),(0,P.jsx)(`div`,{className:`gc-records`,children:t.map((t,n)=>(0,P.jsxs)(`details`,{children:[(0,P.jsxs)(`summary`,{children:[(0,P.jsx)(`span`,{children:new Date(t.at).toLocaleString(`zh-CN`,{timeZone:`Asia/Shanghai`})}),(0,P.jsx)(`b`,{children:t.name}),(0,P.jsx)(`em`,{children:t.state})]}),(0,P.jsx)(`p`,{children:t.detail||`此记录没有保存详细说明,可进入对应阶段核对原始资料。`}),(0,P.jsx)(`button`,{onClick:()=>{r(),i(e.id,e.route.find(e=>e.id===t.routeId)?.target||{tab:`data`})},children:`进入对应阶段 / 资料`})]},n))})]})}function Z(){let e=C(),[t,n]=(0,A.useState)(null),[r,i]=(0,A.useState)(!0),[a,o]=(0,A.useState)(``),[s,c]=(0,A.useState)(``),[u,d]=(0,A.useState)(0),p=e.archiveScope||`real`,[h,_]=(0,A.useState)(null),[v,y]=(0,A.useState)(null);(0,A.useEffect)(()=>{let t=!0;return I(e.api).then(e=>{t&&(n(e),o(``))}).catch(e=>{t&&(n(null),o(e instanceof Error?e.message:`经营资料读取失败`))}).finally(()=>{t&&i(!1)}),()=>{t=!1}},[e.api,u]);let b=e=>p===`stored-demo`?e.mode===`simulated`:e.mode!==`simulated`,x=t?.growth.products.filter(b)||[],S=t?.growth.catalog.filter(b)||[],w=t?.projects.filter(e=>p===`stored-demo`?e.simulated:!e.simulated)||[],E={sales:t?.growth.metrics?.sales?.filter(b)||[],finance:t?.growth.metrics?.finance?.filter(b)||[],incubation:t?.growth.metrics?.incubation?.filter(b)||[]},D=(0,A.useCallback)(()=>{i(!0),d(e=>e+1)},[]);l(w.some(e=>e.execution?.state===`running`),D);function O(t,n){n===`work`?y(t):n===`data`?e.onProductGroup(`all`,t,p):e.onOpen(t.project,{tab:n,itemId:t.itemId})}return(0,P.jsx)(`div`,{className:`workbench-module`,children:(0,P.jsx)(`div`,{className:`gw`,children:(0,P.jsxs)(`div`,{className:`gw-body`,children:[(0,P.jsxs)(`header`,{className:`gw-header`,children:[(0,P.jsxs)(`div`,{children:[(0,P.jsx)(`small`,{children:`工作台 / 经营总览`}),(0,P.jsx)(`h1`,{children:`电商运营作战台`})]}),(0,P.jsxs)(`div`,{className:`gw-header-actions`,children:[(0,P.jsxs)(`span`,{children:[(0,P.jsx)(`i`,{className:`gw-dot`}),`归档数据 · 非实时`]}),(0,P.jsxs)(`button`,{disabled:r,onClick:D,children:[(0,P.jsx)(g,{size:14}),r?`读取中`:`刷新数据`]})]})]}),(0,P.jsx)(`div`,{className:`gw-scope`,children:(0,P.jsx)(`span`,{children:t?`${new Date(t.growth.updatedAt).toLocaleString(`zh-CN`)} 读取归档`:`正在读取归档…`})}),a&&(0,P.jsxs)(`p`,{role:`alert`,className:`gw-message`,children:[a,` `,(0,P.jsx)(`button`,{onClick:D,children:`重试`})]}),s&&(0,P.jsx)(`p`,{role:`status`,className:`gw-message`,children:s}),(0,P.jsx)(Y,{layoutScope:e.layoutScope,onDirty:e.onDirty,onCreate:e.onCreate,products:x,projects:w,catalog:S,metrics:E,ready:!r&&!!t,demo:!1,onOpen:e.onOpen,onNav:e.onModule,onTier:t=>e.onProductGroup(t,void 0,p),onAction:O,onAssign:(e,t)=>_({product:e,suggestedTier:t})}),h&&(0,P.jsx)(f,{...h,products:x,onDirty:e.onDirty,onBusy:e.onBusy,onClose:()=>_(null),onSave:async(t,n,r,i)=>{await T(e.api,t,n,r,i),c(`分组已保存,正在更新看板。`),D()}}),v&&(0,P.jsx)(m,{product:v,onOpen:e.onOpen,onClose:()=>y(null)})]})})})}function le({section:e}){let t=C();return e===`tasks`||e===`records`?(0,P.jsx)(F,{mode:e,api:t.api,onOpen:t.onOpen},e):(0,P.jsx)(Z,{})}export{le as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ShopLayoutPage-D7KKJVEq.js","./index-BguiS02-.js","./index-D1qZkLPg.css","./api-hjUd9Skg.js","./use-favorites-ALxrDxDW.js","./public-JUGpS2z7.js","./workspace-view-state-BJMX6vWb.js","./use-favorites-_eKBQGeF.css","./format-BCxMsVJh.js","./ProgressiveRows-ByxDeTyy.js","./CartesianChart-Bwf4u0Tg.js","./LineChart-B6igYupv.js","./arrow-down-DSjucZgz.js","./arrow-left-DmIga4jN.js","./clock-3-TH35nOP-.js","./chart-no-axes-combined-XDy9u9SV.js","./check-BB89tIU6.js","./link-2-CCKUDMV6.js","./chevron-right-CZlQQ5gV.js","./grid-2x2-C0aJVeyS.js","./list-LZcXKWKD.js","./plus-QakkcxdA.js","./refresh-cw-dsQ_f-9j.js","./search-Cisx0wBF.js","./graphicalItemSelectors-Hc730Dd1.js","./ShopLayoutPage-BlPpfB06.css","./Favorites-4oU1mgEb.js","./components-C2-vHJtu.js","./market.module-BSrEp5Ak.js","./market-DqV9l-vR.css","./chevron-down-BiokgLxD.js","./package-BFlv-jYw.js","./Opportunities-a5IpRN6k.js","./arrow-up-right-DzAKT3cL.js","./Opportunities-CogyuZvI.css"])))=>i.map(i=>d[i]);
2
+ import{n as e,t}from"./link-2-CCKUDMV6.js";import{t as n}from"./chevron-right-CZlQQ5gV.js";import{t as r}from"./grid-2x2-C0aJVeyS.js";import{t as i}from"./list-LZcXKWKD.js";import{t as a}from"./package-BFlv-jYw.js";import{t as o}from"./search-Cisx0wBF.js";import{g as s,o as c,p as l,t as u,u as ee,y as d}from"./index-BguiS02-.js";import{n as f}from"./workspace-view-state-BJMX6vWb.js";import"./public-JUGpS2z7.js";import{t as p}from"./ProgressiveRows-ByxDeTyy.js";import{a as te,c as m,i as ne,l as re,n as ie,o as ae,r as h,s as oe,t as se}from"./components-C2-vHJtu.js";import{t as g}from"./api-hjUd9Skg.js";import{a as ce,i as _,n as v,o as le,r as ue,t as de}from"./format-BCxMsVJh.js";import{t as y}from"./market.module-BSrEp5Ak.js";var fe=l(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),pe=l(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),b=d(s(),1),x=c();function me({query:e,month:t,available:n,children:r}){let i=(0,b.useRef)(null),[a,o]=(0,b.useState)(!1),[s,c]=(0,b.useState)(null),[l,u]=(0,b.useState)(``),[ee,d]=(0,b.useState)(0);return(0,b.useEffect)(()=>{if(!i.current||!n)return;let e=new IntersectionObserver(t=>{t.some(e=>e.isIntersecting)&&(o(!0),e.disconnect())},{rootMargin:`180px`});return e.observe(i.current),()=>e.disconnect()},[n]),(0,b.useEffect)(()=>{if(!a||!n)return;let r=new AbortController;return g.query({...e,recentYear:!1,month:t,page:1,pageSize:100},r.signal).then(n=>{r.signal.aborted||(u(``),c({month:t,status:n.availability?.[e.view===`shops`?`shops`:`products`]||`ready`,rows:n.rows,total:n.total}))}).catch(e=>{r.signal.aborted||(c(null),u(e instanceof Error?e.message:`本月榜单读取失败`))}),()=>r.abort()},[n,a,e,t,ee]),(0,x.jsxs)(`article`,{ref:i,children:[(0,x.jsxs)(`h2`,{children:[t.replace(`-`,`年`),`月`]}),n?l?(0,x.jsxs)(`div`,{role:`alert`,children:[l,(0,x.jsx)(`button`,{onClick:()=>d(e=>e+1),children:`重试本月`})]}):s?r(s):(0,x.jsx)(`div`,{style:{minHeight:260},children:a?(0,x.jsx)(`p`,{role:`status`,children:`正在读取本月榜单…`}):(0,x.jsx)(`button`,{onClick:()=>o(!0),children:`加载本月榜单`})}):(0,x.jsx)(`p`,{children:`暂无该月来源数据`})]})}var he=e=>re.find(t=>t[0]===e)?.[1],ge=(e,t)=>v(e[t],re.find(e=>e[0]===t)?.[2]);function S({view:s,selection:c,onConsumeSelection:l,onShopLayout:u}={}){let[d,f]=(0,b.useState)(null),[S,C]=(0,b.useState)(null),[w,T]=m(`query`,oe),[E,D]=(0,b.useState)(w.minPrice),[O,k]=(0,b.useState)(w.maxPrice),_e=(0,b.useRef)(void 0),ve=(0,b.useRef)(null),ye=(0,b.useRef)(null);(0,b.useEffect)(()=>{let e=ye.current;if(!e)return;let t=()=>ve.current?.style.setProperty(`--market-controls-height`,`${e.getBoundingClientRect().height}px`),n=new ResizeObserver(t);return n.observe(e),t(),()=>n.disconnect()},[]),(0,b.useEffect)(()=>{if(!d)return;let e=c===_e.current?void 0:c;_e.current=c,e?.month&&(D(``),k(``)),T(t=>{let n=e?.categoryId??t.categoryId,r=d.categories.some(e=>e.id===n&&e.leaf);return{...t,categoryId:n,...e?.month?{month:e.month,recentYear:!1,q:``,minPrice:``,maxPrice:``}:{},view:s===`categories`?r?`products`:`categories`:s||t.view,page:1}}),e&&l?.(e)},[s,c,d,T,l]);let[A,j]=(0,b.useState)(!0),[M,N]=(0,b.useState)(``),[be,xe]=(0,b.useState)(0),[Se,P]=(0,b.useState)(``),[F,Ce]=m(`productFields`,ue),[we,Te]=m(`shopFields`,ce),[Ee,I]=(0,b.useState)(!1),[L,De]=m(`grid`,!1),[R,Oe]=(0,b.useState)([]),[ke,Ae]=(0,b.useState)(null),[z,B]=(0,b.useState)(null),[V,je]=(0,b.useState)(null),[Me,Ne]=(0,b.useState)(!1),[Pe,Fe]=(0,b.useState)(``),[Ie,H]=(0,b.useState)([]),[Le,Re]=(0,b.useState)([]),ze=(0,b.useRef)(null);function U(e){C(null),N(``),j(!0),T(t=>({...t,...e,page:e.page??1}))}function W(e){let t=d?.categories.find(t=>t.id===e);D(``),k(``),U({categoryId:e,view:s&&s!==`categories`?w.view===`categories`?s:w.view:t?.leaf?`products`:`categories`,q:``,minPrice:``,maxPrice:``,sort:`sales`,direction:`desc`})}(0,b.useEffect)(()=>{let e=new AbortController;return(async()=>{if(await Promise.resolve(),!e.signal.aborted){j(!0),N(``),C(null),f(null);try{let t=await g.bootstrap(e.signal);if(e.signal.aborted)return;if(t.contractVersion!==1)throw Error(`市场查询契约版本不兼容`);f(t),Oe((t.favorites||[]).map(e=>`${e.kind}:${e.key}`)),T(e=>{let n=t.categories.some(t=>t.id===e.categoryId);return{...e,categoryId:n?e.categoryId:``,view:n||!e.categoryId?e.view:`categories`,month:t.months.includes(e.month)?e.month:t.latestCategoryMonth||t.latestMonth||``}})}catch(t){e.signal.aborted||N(t.message)}finally{e.signal.aborted||j(!1)}}})(),()=>e.abort()},[be,T]),(0,b.useEffect)(()=>{if(!d||d.status!==`ready`||!w.month)return;let e=ze.current;ze.current=w;let t=e&&e.q!==w.q&&e.categoryId===w.categoryId&&e.view===w.view&&e.month===w.month?180:0,n=new AbortController,r=setTimeout(()=>{if(w.view!==`categories`&&!w.categoryId){j(!1),C(null);return}if(w.view!==`categories`&&w.recentYear){j(!1),C(null);return}j(!0),g.query(w,n.signal).then(e=>{n.signal.aborted||C(e)}).catch(e=>{n.signal.aborted||(C(null),N(e.message),e.status===403?(f(null),xe(e=>e+1)):e.status===401&&f(null))}).finally(()=>{n.signal.aborted||j(!1)})},t);return()=>{clearTimeout(r),n.abort()}},[w,d]),(0,b.useEffect)(()=>{if(!z)return;let e=new AbortController;return(async()=>{if(await Promise.resolve(),!e.signal.aborted){Ne(!0),Fe(``),H([]),Re([]),je(z.kind===`record`||z.kind===`shopCategories`?z.record:null);try{if(z.kind===`record`){let t=await g.record(z.record.key,e.signal);e.signal.aborted||je(t)}if(z.kind===`shopCategories`){let t=await g.shopCategories(z.record.key,e.signal);e.signal.aborted||H(t.rows)}if(z.kind===`distribution`){let t=await g.distribution(w,e.signal);e.signal.aborted||H(t.rows.map(e=>({name:e.label,sales:e.sales,products:e.products})))}if(z.kind===`categoryTrend`){let t=await g.query({...w,view:`categories`,categoryId:z.category.id},e.signal);e.signal.aborted||Re(t.trend)}}catch(t){e.signal.aborted||Fe(t.message)}finally{e.signal.aborted||Ne(!1)}}})(),()=>e.abort()},[z,w]);let Be=de(d?.categories||[],w.categoryId),Ve=Be.at(-1),G=w.view===`categories`,K=w.view===`products`,q=d?.months.indexOf(w.month)??-1,J=K?F:we,Y=S?.rows||[],He=S?.categories||[],Ue=w.metric===`units`?`units`:`sales`,X=S?.availability?.[K?`products`:`shops`],Z=Math.max(1,Math.ceil((S?.total||0)/w.pageSize)),We=w.month?new Date(Date.UTC(Number(w.month.slice(0,4)),Number(w.month.slice(5,7)),0)).toISOString().slice(0,10):``;async function Ge(e,t){if(ke)return;let n=`${e}:${t}`,r=!R.includes(n);Ae(n);try{await g.favorite(e,t,r),Oe(e=>r?[...e,n]:e.filter(e=>e!==n))}catch(e){P(e.message)}finally{Ae(null)}}function Q(e,t,n){return(0,x.jsx)(`button`,{className:y.iconButton,disabled:ke!==null,"aria-label":`收藏${n}`,"aria-pressed":R.includes(`${e}:${t}`),onClick:()=>void Ge(e,t),children:(0,x.jsx)(pe,{size:14,fill:R.includes(`${e}:${t}`)?`currentColor`:`none`})})}function Ke(e){return(0,x.jsxs)(`span`,{className:y.productId,children:[e.id||`编号缺失`,e.id&&(0,x.jsx)(h,{text:e.id,label:`复制商品编号${e.id}`,title:`复制商品 ID`})]})}function qe(e,n=!1){return(0,x.jsxs)(`div`,{className:y.identity,children:[_(e.imageUrl)?(0,x.jsx)(te,{src:_(e.imageUrl),name:e.name||`商品图片`}):(0,x.jsx)(`span`,{className:y.noImage,children:(0,x.jsx)(a,{size:20})}),(0,x.jsxs)(`div`,{children:[(0,x.jsxs)(`div`,{className:y.productTitleRow,children:[_(e.url)?(0,x.jsx)(`a`,{className:y.productTitle,href:_(e.url),target:`_blank`,rel:`noreferrer`,children:e.name||`资料缺失`}):(0,x.jsx)(`button`,{className:y.productTitle,onClick:()=>B({kind:`record`,record:e}),children:e.name||`资料缺失`}),_(e.url)&&(0,x.jsx)(h,{text:_(e.url),label:`复制商品链接${e.name||e.id||``}`,title:`复制商品链接`,children:(0,x.jsx)(t,{size:13})})]}),!n&&(0,x.jsxs)(`small`,{children:[`商品ID:`,Ke(e)]})]})]})}function $(e,t=!1){let n=t?e.shopUrl:e.url,r=t?e.shopName:e.name;return _(n)?(0,x.jsx)(`a`,{href:_(n),target:`_blank`,rel:`noreferrer`,children:r||`资料缺失`}):(0,x.jsx)(`span`,{children:r||`资料缺失`})}function Je(e){return(0,x.jsx)(`th`,{children:(0,x.jsxs)(`button`,{onClick:()=>U({sort:e,direction:w.sort===e&&w.direction===`desc`?`asc`:`desc`}),children:[he(e),(0,x.jsx)(`span`,{className:w.sort===e?y.activeSort:y.sort,children:w.sort===e?w.direction===`desc`?`↓`:`↑`:`↕`})]})},e)}function Ye(e,t){return(0,x.jsxs)(`td`,{className:t===`sales`?y.sales:void 0,children:[ge(e,t),t===`conversionRate`&&e[t]!=null&&(e[t]<0||e[t]>100)&&(0,x.jsxs)(`span`,{className:y.anomaly,title:`来源转化率异常,保留原值`,children:[` `,`!`]})]},t)}function Xe(){if(E&&!/^\d{1,9}(\.\d{1,2})?$/.test(E)||O&&!/^\d{1,9}(\.\d{1,2})?$/.test(O)||E&&O&&Number(E)>Number(O)){P(`请填写有效的非负件单价区间`);return}P(``),U({minPrice:E,maxPrice:O})}return(0,x.jsxs)(`section`,{ref:ve,className:y.page,"aria-label":`市场大盘`,children:[(0,x.jsxs)(`div`,{ref:ye,className:y.stickyHeader,children:[(0,x.jsxs)(`header`,{className:y.breadcrumb,"aria-label":`页面路径`,children:[(0,x.jsx)(`button`,{onClick:()=>U({view:`categories`,categoryId:``,q:``,recentYear:!1}),children:`全部类目`}),Be.map(e=>(0,x.jsxs)(`span`,{children:[(0,x.jsx)(n,{size:13}),(0,x.jsx)(`button`,{onClick:()=>W(e.id),children:e.name})]},e.id)),!G&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(n,{size:13}),(0,x.jsx)(`span`,{"aria-current":`page`,children:K?`商品排行榜`:`店铺排行榜`})]})]}),(0,x.jsxs)(`section`,{className:y.filterBar,"aria-label":`市场查询条件`,children:[(0,x.jsxs)(`div`,{className:y.categoryControl,children:[(0,x.jsx)(se,{categories:d?.categories||[],favoriteIds:R.filter(e=>e.startsWith(`category:`)).map(e=>e.slice(9)),value:w.categoryId,onChoose:W,disabled:!d?.categories.length}),G&&(0,x.jsxs)(`span`,{className:y.count,children:[Ve?`子类目`:`类目`,` `,S?He.length:`—`,` `,`个`]}),G&&(0,x.jsxs)(`div`,{className:y.categoryLegend,"aria-label":`类目类型颜色说明`,children:[(0,x.jsxs)(`span`,{children:[(0,x.jsx)(`i`,{"data-leaf":`false`}),`有下级`]}),(0,x.jsxs)(`span`,{children:[(0,x.jsx)(`i`,{"data-leaf":`true`}),`叶子类目`]})]}),!G&&(0,x.jsx)(`nav`,{className:y.tabs,role:`tablist`,"aria-label":`排行榜`,children:[[`products`,`商品排行榜`],[`shops`,`店铺排行榜`]].map(([e,t])=>(0,x.jsx)(`button`,{role:`tab`,"aria-selected":w.view===e,onClick:()=>U({view:e,q:``,sort:`sales`,direction:`desc`,minPrice:``,maxPrice:``}),children:t},e))})]}),(0,x.jsxs)(`div`,{className:y.dateControl,children:[(0,x.jsxs)(`span`,{className:y.period,children:[`统计时间:`,S?.period?.start||(w.month?w.month+`-01`:`—`),` `,`至 `,S?.period?.end||We||`—`]}),(0,x.jsx)(`button`,{className:y.yearButton,"aria-pressed":w.recentYear,disabled:!d?.months.length,onClick:()=>U({recentYear:!w.recentYear,q:``,sort:`sales`,direction:`desc`}),children:`最近1年`}),(0,x.jsxs)(`select`,{"aria-label":`统计月份`,value:w.month,disabled:!d?.months.length,onChange:e=>U({month:e.target.value,recentYear:!1}),children:[!d?.months.length&&(0,x.jsx)(`option`,{children:`等待可用月份`}),d?.months.map(e=>(0,x.jsxs)(`option`,{value:e,children:[e.replace(`-`,`年`),`月`]},e))]}),(0,x.jsx)(`button`,{"aria-label":`上一个可用月份`,disabled:q<=0||A,onClick:()=>U({month:d.months[q-1]}),children:(0,x.jsx)(e,{size:15})}),(0,x.jsx)(`button`,{"aria-label":`下一个可用月份`,disabled:!d||q>=d.months.length-1||A,onClick:()=>U({month:d.months[q+1]}),children:(0,x.jsx)(n,{size:15})}),G&&(0,x.jsx)(`div`,{className:y.segment,children:[[`sales`,`销售额`],[`units`,`销量`],...Ve?[[`season`,`行业淡旺季`]]:[]].map(([e,t])=>(0,x.jsx)(`button`,{"aria-pressed":w.metric===e,onClick:()=>U({metric:e}),children:t},e))})]})]}),!G&&!M&&d?.status!==`no-access`&&!!w.categoryId&&(0,x.jsxs)(`div`,{className:y.toolbar,children:[(0,x.jsxs)(`label`,{className:y.search,children:[K&&!w.recentYear&&(0,x.jsx)(`span`,{children:`商品名称`}),(0,x.jsx)(o,{size:14}),(0,x.jsx)(`input`,{"aria-label":`搜索当前榜单`,placeholder:K?`请输入要搜索的商品名称或ID`:`请输入店铺名称`,value:w.q,onChange:e=>U({q:e.target.value})})]}),w.recentYear?(0,x.jsx)(`div`,{className:y.segment,children:[`sales`,`views`].map(e=>(0,x.jsx)(`button`,{"aria-pressed":w.sort===e,onClick:()=>U({sort:e}),children:he(e)},e))}):(0,x.jsxs)(x.Fragment,{children:[K?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`button`,{disabled:!d?.capabilities?.priceDistribution||X!==`ready`,onClick:()=>B({kind:`distribution`}),children:`客单价分布`}),(0,x.jsxs)(`div`,{className:y.price,children:[(0,x.jsx)(`span`,{children:`件单价:`}),(0,x.jsxs)(`label`,{children:[(0,x.jsx)(`input`,{type:`number`,min:`0`,"aria-label":`最低件单价`,value:E,onChange:e=>D(e.target.value)}),(0,x.jsx)(`span`,{children:`元`})]}),(0,x.jsx)(`span`,{children:`–`}),(0,x.jsxs)(`label`,{children:[(0,x.jsx)(`input`,{type:`number`,min:`0`,"aria-label":`最高件单价`,value:O,onChange:e=>k(e.target.value)}),(0,x.jsx)(`span`,{children:`元`})]}),(0,x.jsx)(`button`,{className:y.primary,onClick:Xe,children:`确定`}),(w.minPrice||w.maxPrice)&&(0,x.jsx)(`button`,{onClick:()=>{D(``),k(``),U({minPrice:``,maxPrice:``})},children:`重置`})]}),(0,x.jsxs)(`div`,{className:y.segment,children:[(0,x.jsxs)(`button`,{"aria-label":`大图视图`,"aria-pressed":L,onClick:()=>De(!0),children:[(0,x.jsx)(r,{size:13}),`大图`]}),(0,x.jsxs)(`button`,{"aria-label":`列表视图`,"aria-pressed":!L,onClick:()=>De(!1),children:[(0,x.jsx)(i,{size:13}),`列表`]})]})]}):(0,x.jsx)(`button`,{disabled:!0,title:`来源数据未提供地域字段`,children:`地域分布`}),(0,x.jsx)(`button`,{className:y.configButton,onClick:()=>I(!0),children:`表格配置`})]})]})]}),Se&&(0,x.jsxs)(`div`,{className:y.message,role:`status`,children:[Se,(0,x.jsx)(`button`,{"aria-label":`关闭提示`,onClick:()=>P(``),children:`×`})]}),M?(0,x.jsxs)(`section`,{className:y.emptyState,role:`alert`,children:[(0,x.jsx)(ee,{size:32}),(0,x.jsx)(`h2`,{children:M}),(0,x.jsx)(`button`,{onClick:()=>xe(e=>e+1),children:`重新连接`})]}):d?.status===`no-access`?(0,x.jsxs)(`section`,{className:y.emptyState,children:[(0,x.jsx)(`h2`,{children:`企业尚未获得市场类目授权`}),(0,x.jsx)(`p`,{children:`企业子账号继承企业的市场类目范围。`})]}):!G&&!w.categoryId?(0,x.jsxs)(`section`,{className:y.emptyState,children:[(0,x.jsxs)(`h2`,{children:[`选择类目查看`,K?`商品`:`店铺`,`排行榜`]}),(0,x.jsx)(`p`,{children:`使用上方类目选择器,选择你要研究的具体类目。`})]}):(0,x.jsxs)(x.Fragment,{children:[A?(0,x.jsx)(`div`,{className:y.empty,role:`status`,children:`正在读取市场数据…`}):G?w.metric===`season`?(0,x.jsxs)(`section`,{className:y.seasonBoard,children:[(0,x.jsxs)(`table`,{children:[(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{children:[(0,x.jsx)(`th`,{children:`行业类目`}),(S?.period?.availableMonths||[]).map(e=>(0,x.jsx)(`th`,{children:e},e))]})}),(0,x.jsx)(`tbody`,{children:(0,x.jsx)(p,{items:S?.season||[],columns:1+(S?.period?.availableMonths.length||0),children:e=>(0,x.jsxs)(`tr`,{children:[(0,x.jsx)(`td`,{children:e.name}),e.months.map(e=>(0,x.jsx)(`td`,{children:(0,x.jsx)(`span`,{className:e.state===`旺季`?y.hot:e.state===`淡季`?y.cold:y.neutral,children:e.state||`资料缺失`})},e.month))]},e.categoryId)})})]}),!S?.season.length&&(0,x.jsx)(`p`,{className:y.empty,children:`淡旺季判定口径尚未配置,当前月份数据保持原值。`})]}):(0,x.jsxs)(`section`,{className:y.categoryList,"aria-label":`类目列表`,children:[(0,x.jsx)(`div`,{className:y.categoryHeaders,children:[0,1,2].map(e=>(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`span`,{children:`类目名称`}),(0,x.jsx)(`span`,{children:w.metric===`units`?`销量`:`销售额`}),(0,x.jsx)(`span`,{children:w.metric===`units`?`销量同比`:`销售额同比`}),(0,x.jsx)(`span`,{children:`店铺数`}),(0,x.jsx)(`span`,{})]},e))}),(0,x.jsx)(`div`,{className:y.categoryRows,children:(0,x.jsx)(p,{items:He,children:e=>(0,x.jsxs)(`article`,{className:y.categoryRow,"data-leaf":e.leaf,children:[(0,x.jsx)(`button`,{className:y.categoryOpen,"aria-label":e.leaf?`查看${e.name}排行榜`:`进入${e.name}子类目`,onClick:()=>W(e.id)}),(0,x.jsxs)(`div`,{className:y.categoryName,children:[(0,x.jsxs)(`span`,{title:e.name,children:[e.name,!e.leaf&&(0,x.jsx)(n,{size:12})]}),e.leaf&&(0,x.jsx)(`div`,{className:y.rowActions,children:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`button`,{onClick:()=>U({categoryId:e.id,view:`products`,q:``}),children:`排行榜`}),(0,x.jsx)(`button`,{onClick:()=>B({kind:`categoryTrend`,category:e}),children:`趋势`})]})})]}),(0,x.jsx)(`strong`,{children:v(e[Ue],Ue===`sales`?`compact`:`number`)}),(0,x.jsx)(`span`,{children:v(w.metric===`units`?e.unitsYoy:e.salesYoy,`percent`)}),(0,x.jsx)(`span`,{children:v(e.shopCount)}),Q(`category`,e.id,e.name)]},e.id)})}),!He.length&&(0,x.jsx)(`p`,{className:y.empty,children:`当前类目已到最细层级,请选择商品或店铺排行榜。`})]}):w.recentYear?(0,x.jsx)(`section`,{className:y.yearBoards,"aria-label":`最近一年月度榜单`,children:le(w.month).map(e=>(0,x.jsx)(me,{query:w,month:e,available:d?.months.includes(e)??!1,children:e=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`table`,{children:[(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{children:[(0,x.jsx)(`th`,{children:`排名`}),(0,x.jsx)(`th`,{children:K?`商品`:`店铺`}),(0,x.jsx)(`th`,{children:w.sort===`views`?`浏览量`:`销售额`})]})}),(0,x.jsx)(`tbody`,{children:(0,x.jsx)(p,{items:e.rows,columns:3,children:e=>(0,x.jsxs)(`tr`,{children:[(0,x.jsx)(`td`,{children:e.sourceRank??`—`}),(0,x.jsxs)(`td`,{children:[K?qe(e):$(e),K&&(0,x.jsx)(`small`,{children:e.shopName||`店铺资料缺失`})]}),(0,x.jsx)(`td`,{children:v(e[w.sort===`views`?`views`:`sales`],w.sort===`views`?`number`:`compact`)})]},e.key)})})]}),!e.rows.length&&(0,x.jsx)(`p`,{className:y.empty,children:e.status===`pending`?`正在导入`:e.status===`missing`?`暂无该月来源数据`:`暂无匹配数据`})]})},JSON.stringify(w)+e))}):K&&L?(0,x.jsxs)(`section`,{className:y.productGrid,children:[(0,x.jsx)(p,{items:Y||[],children:e=>(0,x.jsxs)(`article`,{tabIndex:0,"aria-label":e.name||`商品卡片`,children:[(0,x.jsxs)(`div`,{className:y.largeImage,children:[_(e.imageUrl)?(0,x.jsx)(te,{src:_(e.imageUrl),name:e.name||`商品图片`,hoverPreview:!1}):(0,x.jsx)(a,{size:44}),(0,x.jsxs)(`span`,{children:[`排名 `,e.sourceRank??`—`]}),Q(`product`,e.key,e.name||`商品`)]}),(0,x.jsxs)(`div`,{className:y.gridDetails,children:[qe(e),(0,x.jsxs)(`p`,{children:[`店铺:`,$(e,!0)]}),(0,x.jsx)(`dl`,{children:F.map(t=>(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{children:he(t)}),(0,x.jsx)(`dd`,{children:ge(e,t)})]},t))}),(0,x.jsx)(`button`,{onClick:()=>B({kind:`record`,record:e}),children:`查看销售走势`})]})]},e.key)}),!Y.length&&(0,x.jsx)(`p`,{className:y.empty,children:X===`pending`?`当前类目榜单正在导入`:`暂无匹配商品`})]}):(0,x.jsxs)(`section`,{className:y.tableScroll,"aria-label":K?`商品排行榜`:`店铺排行榜`,children:[(0,x.jsxs)(`table`,{className:K?y.productTable:y.shopTable,children:[(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{children:[(0,x.jsx)(`th`,{children:`排名`}),K?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`th`,{children:`商品`}),(0,x.jsx)(`th`,{children:`商品ID`}),F[0]===`listingDays`&&Je(`listingDays`),(0,x.jsx)(`th`,{children:`收藏商品`}),(0,x.jsx)(`th`,{children:`店铺`}),(0,x.jsx)(`th`,{children:`销售走势`}),(0,x.jsx)(`th`,{children:`利润测算`})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`th`,{children:`店铺ID`}),(0,x.jsx)(`th`,{children:`店铺名称`}),(0,x.jsx)(`th`,{children:`店铺收藏`}),(0,x.jsx)(`th`,{children:`销售走势`}),(0,x.jsx)(`th`,{children:`品类分析`})]}),J.filter(e=>!K||F[0]!==`listingDays`||e!==`listingDays`).map(Je)]})}),(0,x.jsx)(`tbody`,{children:(0,x.jsx)(p,{items:Y,columns:K?J.length+7:J.length+6,children:e=>(0,x.jsxs)(`tr`,{children:[(0,x.jsx)(`td`,{children:e.sourceRank??`—`}),K?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`td`,{children:qe(e,!0)}),(0,x.jsx)(`td`,{children:Ke(e)}),F[0]===`listingDays`&&Ye(e,`listingDays`),(0,x.jsx)(`td`,{children:Q(`product`,e.key,e.name||`商品`)}),(0,x.jsx)(`td`,{className:y.shopName,children:$(e,!0)}),(0,x.jsx)(`td`,{children:(0,x.jsx)(`button`,{className:y.linkButton,onClick:()=>B({kind:`record`,record:e}),children:`查看`})}),(0,x.jsx)(`td`,{children:(0,x.jsx)(`button`,{className:y.linkButton,disabled:!0,title:`需要成本与费用口径,当前未配置`,children:`测算`})})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`td`,{children:(0,x.jsxs)(`span`,{className:y.shopId,children:[e.id||`编号缺失`,e.id&&(0,x.jsx)(h,{text:e.id,label:`复制店铺编号${e.id}`,title:`复制店铺 ID`})]})}),(0,x.jsx)(`td`,{className:y.shopName,children:$(e)}),(0,x.jsx)(`td`,{children:Q(`shop`,e.key,e.name||`店铺`)}),(0,x.jsx)(`td`,{children:(0,x.jsx)(`button`,{className:y.linkButton,onClick:()=>B({kind:`record`,record:e}),children:`查看`})}),(0,x.jsxs)(`td`,{children:[(0,x.jsx)(`button`,{className:y.linkButton,disabled:!e.id,title:e.id?`仅分析获准类目`:`缺少可追踪店铺编号`,onClick:()=>B({kind:`shopCategories`,record:e}),children:`分析`}),u&&e.id&&(0,x.jsx)(`button`,{className:y.linkButton,onClick:()=>u({id:e.id,name:e.name||e.id},w.month),children:`归档布局`})]})]}),J.filter(e=>!K||F[0]!==`listingDays`||e!==`listingDays`).map(t=>Ye(e,t))]},e.key)})})]}),!Y.length&&(0,x.jsx)(`p`,{className:y.empty,children:X===`pending`?`当前月份此类目榜单正在导入`:X===`missing`?`该类目暂无本月榜单,请选择其他月份或继续下钻`:`暂无匹配记录`})]}),!G&&!w.recentYear&&(0,x.jsxs)(`footer`,{className:y.pagination,children:[(0,x.jsxs)(`span`,{children:[`共 `,v(S?.total),` 条 · 保留来源排名`]}),(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`button`,{"aria-label":`上一页`,disabled:w.page<=1||A,onClick:()=>U({page:w.page-1}),children:(0,x.jsx)(e,{size:14})}),Array.from(new Set([1,...Array.from({length:5},(e,t)=>w.page-2+t).filter(e=>e>1&&e<Z),Z])).map((e,t,n)=>(0,x.jsxs)(`span`,{children:[t>0&&e-n[t-1]>1&&(0,x.jsx)(`span`,{className:y.ellipsis,children:`…`}),(0,x.jsx)(`button`,{"aria-current":w.page===e?`page`:void 0,onClick:()=>U({page:e}),children:e})]},e)),(0,x.jsx)(`button`,{"aria-label":`下一页`,disabled:w.page>=Z||A,onClick:()=>U({page:w.page+1}),children:(0,x.jsx)(n,{size:14})}),(0,x.jsx)(`select`,{"aria-label":`每页条数`,value:w.pageSize,onChange:e=>U({pageSize:Number(e.target.value)}),children:[25,50,100].map(e=>(0,x.jsxs)(`option`,{value:e,children:[e,` 条/页`]},e))}),(0,x.jsxs)(`label`,{children:[`跳至`,(0,x.jsx)(`input`,{"aria-label":`跳转页码`,type:`number`,min:`1`,max:Z,defaultValue:w.page,onKeyDown:e=>{if(e.key===`Enter`){let t=Number(e.currentTarget.value);Number.isInteger(t)&&t>=1&&t<=Z&&U({page:t})}}},w.page)]})]})]}),S?.notice&&(0,x.jsx)(`p`,{className:y.notice,children:S.notice})]}),(0,x.jsxs)(`details`,{className:y.sources,children:[(0,x.jsxs)(`summary`,{children:[(0,x.jsx)(fe,{size:13}),`数据来源与口径`]}),(0,x.jsxs)(`p`,{children:[S?.provenance.source||d?.sourceLabel||`共享市场数据库`,` ·`,` `,S?.provenance.updatedAt||`等待服务连接`]}),(0,x.jsx)(`p`,{children:S?.provenance.definition||`空值与零分别保留,按企业一级类目授权查询。`}),(0,x.jsx)(`p`,{children:`历史店铺缺少编号时仍保留榜单记录;缺少名称显示资料缺失,缺少有效链接时显示普通文本。收藏保存在当前账号下。`})]}),Ee&&(0,x.jsx)(ie,{columns:J,allowed:K?ue:ce,onClose:()=>I(!1),onSave:e=>{K?Ce(e):Te(e),I(!1)}}),z&&(0,x.jsx)(ne,{title:z.kind===`distribution`?`件单价分布`:z.kind===`categoryTrend`?z.category.name:z.kind===`shopCategories`?`${z.record.name||`店铺`} · 品类分析`:z.record.name||`资料缺失`,onClose:()=>B(null),children:Pe?(0,x.jsx)(`p`,{className:y.notice,role:`alert`,children:Pe}):Me?(0,x.jsx)(`p`,{className:y.empty,children:`正在读取数据…`}):z.kind===`record`&&V?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(`p`,{className:y.detailScope,children:[w.month,` · 原榜排名 `,V.sourceRank??`—`,` ·`,` `,V.id||`编号缺失`]}),(0,x.jsx)(ae,{points:V.trend}),(0,x.jsx)(`dl`,{className:y.detailMetrics,children:re.map(([e,t,n])=>(0,x.jsxs)(`div`,{children:[(0,x.jsx)(`dt`,{children:t}),(0,x.jsx)(`dd`,{children:v(V[e],n)})]},e))}),V.warnings?.map(e=>(0,x.jsx)(`p`,{className:y.notice,children:e},e)),(0,x.jsxs)(`p`,{className:y.detailScope,children:[`来源:`,V.source.file,` · 第 `,V.source.row,` 行`]})]}):z.kind===`categoryTrend`?(0,x.jsx)(ae,{points:Le,metric:w.metric===`units`?`units`:`sales`}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`p`,{className:y.detailScope,children:z.kind===`distribution`?`按当前已入库商品榜单统计,非全市场商品分布`:`仅展示获准类目的店铺指标,各层级分别列示。`}),(0,x.jsxs)(`table`,{children:[(0,x.jsx)(`thead`,{children:(0,x.jsxs)(`tr`,{children:[(0,x.jsx)(`th`,{children:z.kind===`distribution`?`件单价区间`:`类目`}),z.kind===`distribution`&&(0,x.jsx)(`th`,{children:`商品数`}),(0,x.jsx)(`th`,{children:`销售额`})]})}),(0,x.jsx)(`tbody`,{children:(0,x.jsx)(p,{items:Ie,columns:z.kind===`distribution`?3:2,children:e=>(0,x.jsxs)(`tr`,{children:[(0,x.jsx)(`td`,{children:e.name}),z.kind===`distribution`&&(0,x.jsx)(`td`,{children:v(e.products)}),(0,x.jsx)(`td`,{children:v(e.sales,`money`)})]},e.name)})})]}),!Ie.length&&(0,x.jsx)(`p`,{className:y.empty,children:`当前范围暂无可用数据`})]})})]})}var C=(0,b.lazy)(()=>u(()=>import(`./ShopLayoutPage-D7KKJVEq.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url)),w=(0,b.lazy)(()=>u(()=>import(`./Favorites-4oU1mgEb.js`),__vite__mapDeps([26,1,2,3,4,5,6,7,27,8,28,29,30,18,23,9,31]),import.meta.url)),T=(0,b.lazy)(()=>u(()=>import(`./Opportunities-a5IpRN6k.js`),__vite__mapDeps([32,1,2,3,27,8,28,29,30,18,23,5,6,13,33,22,34]),import.meta.url));function E({section:e,onSection:t}){let[n,r]=f(`market.analysisLaunch`,null),[i,a]=(0,b.useState)(),o=(0,b.useCallback)(e=>{a(t=>t===e?void 0:t)},[]);return e===`shop-layout`?(0,x.jsx)(b.Suspense,{fallback:(0,x.jsx)(`p`,{role:`status`,children:`正在加载店铺品类布局…`}),children:(0,x.jsx)(C,{launch:n,onConsumeLaunch:()=>r(null)})}):e===`opportunities`?(0,x.jsx)(b.Suspense,{fallback:(0,x.jsx)(`p`,{role:`status`,children:`正在加载机会发现…`}),children:(0,x.jsx)(T,{onOpenCategory:(e,n)=>{a({categoryId:e,month:n,view:`products`}),t(`products`)}})}):e===`favorites`?(0,x.jsx)(b.Suspense,{fallback:(0,x.jsx)(`p`,{role:`status`,children:`正在加载我的收藏…`}),children:(0,x.jsx)(w,{})}):(0,x.jsx)(S,{selection:i,onConsumeSelection:o,onShopLayout:(e,n)=>{r({id:crypto.randomUUID(),shop:e,month:n}),t(`shop-layout`)},view:[`categories`,`products`,`shops`].find(t=>t===e)||`categories`})}export{E as default};
@@ -1 +1 @@
1
- import{d as e}from"./index-BBySSIJT.js";var t=e(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]);export{t};
1
+ import{p as e}from"./index-BguiS02-.js";var t=e(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]);export{t};
@@ -1 +1 @@
1
- import{d as e}from"./index-BBySSIJT.js";var t=e(`grid-2x2`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]);export{t};
1
+ import{p as e}from"./index-BguiS02-.js";var t=e(`grid-2x2`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]);export{t};