@petercjl/omni-desktop-app 0.1.7 → 0.1.10

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 (123) hide show
  1. package/INSTALL.md +9 -0
  2. package/README.md +4 -4
  3. package/UPDATE.md +7 -0
  4. package/app/assets/{CartesianChart-acGhtLrw.js → CartesianChart-CP7p2vlm.js} +4 -4
  5. package/app/assets/{CollaborationWorkspace-DAWo2Vol.js → CollaborationWorkspace-Cnp5PNn_.js} +6 -6
  6. package/app/assets/CollaborationWorkspace-D7ttfUjn.css +1 -0
  7. package/app/assets/CompetitorAnalysis-Cujy_a2L.js +1 -0
  8. package/app/assets/CompetitorAnalysis-h1zdt0F2.css +1 -0
  9. package/app/assets/EmptyState-CUHuNsaV.js +1 -0
  10. package/app/assets/ErrorBarContext-BJE5-ljg.js +1 -0
  11. package/app/assets/{EvidenceSourceGuide-qBsaH1fx.js → EvidenceSourceGuide-B1AJCZm2.js} +1 -1
  12. package/app/assets/FavoritePicker-XD1a_uOa.js +1 -0
  13. package/app/assets/Favorites-B5_fdEvZ.js +1 -0
  14. package/app/assets/{HelpTip-X4GpEnvk.js → HelpTip-BqRBO41J.js} +1 -1
  15. package/app/assets/LineChart-Ckvg5wfQ.js +4 -0
  16. package/app/assets/Opportunities-BvH64-dz.js +1 -0
  17. package/app/assets/{ProgressiveRows-DPZqhsXV.js → ProgressiveRows-NojOUgmr.js} +1 -1
  18. package/app/assets/ShopLayoutPage-CCrRwaAx.js +1 -0
  19. package/app/assets/TrendChart-BF4JgwxH.js +1 -0
  20. package/app/assets/arrow-down-B1nil3T4.js +1 -0
  21. package/app/assets/arrow-left-BhFSpYzK.js +1 -0
  22. package/app/assets/arrow-up-right-IBQoN72x.js +1 -0
  23. package/app/assets/book-open-Cqdn6s-H.js +1 -0
  24. package/app/assets/chart-column-DCwNhXki.js +1 -0
  25. package/app/assets/{chart-no-axes-combined-dFluBLOV.js → chart-no-axes-combined-DVgKs36j.js} +1 -1
  26. package/app/assets/check-DBnlZFEo.js +1 -0
  27. package/app/assets/chevron-down-DO6RUQm8.js +1 -0
  28. package/app/assets/chevron-right-e65CaeL6.js +1 -0
  29. package/app/assets/{clock-3-DpvJxor3.js → clock-3-CDHtQwAe.js} +1 -1
  30. package/app/assets/competitor-analysis-D6eM9ugQ.js +1 -0
  31. package/app/assets/components-B5Xyjfpi.js +2 -0
  32. package/app/assets/{download-BQwcTDwB.js → download-DfM49VvV.js} +1 -1
  33. package/app/assets/entry-Bq7tA83b.js +1 -0
  34. package/app/assets/entry-BryQeuNT.css +1 -0
  35. package/app/assets/entry-CMur_AE7.css +1 -0
  36. package/app/assets/entry-DC4oDjzU.js +2 -0
  37. package/app/assets/entry-DM64sJfS.js +1 -0
  38. package/app/assets/entry-DbqMDIJi.js +1 -0
  39. package/app/assets/entry-N8bfKXTF.js +2 -0
  40. package/app/assets/entry-kAWoaIsV.js +2 -0
  41. package/app/assets/favorites.module-CHYv-Z8y.js +1 -0
  42. package/app/assets/{file-text-DF8-c_Tb.js → file-text-DKAT5fzJ.js} +1 -1
  43. package/app/assets/getRadiusAndStrokeWidthFromDot-bv_ksZ7y.js +1 -0
  44. package/app/assets/{grid-2x2-BNdV1X54.js → grid-2x2-DB6zRPIV.js} +1 -1
  45. package/app/assets/index-BgJNmU0Z.css +1 -0
  46. package/app/assets/index-DLSVWUSu.js +10 -0
  47. package/app/assets/{layers-BY0DtVnH.js → layers-CjsT_HGi.js} +1 -1
  48. package/app/assets/layout-dashboard-sgUrlApv.js +1 -0
  49. package/app/assets/{link-2-B7GAWapc.js → link-2-VLti-YG9.js} +1 -1
  50. package/app/assets/{list-DrSHrHvT.js → list-Dfzc0sXQ.js} +1 -1
  51. package/app/assets/market-SuD7x_Hf.css +1 -0
  52. package/app/assets/market.module-VpU4XmGg.js +1 -0
  53. package/app/assets/module-host-DNtiV4gZ.js +1 -0
  54. package/app/assets/orbit-CrQs6cpl.js +1 -0
  55. package/app/assets/play-BxTFlaQX.js +1 -0
  56. package/app/assets/plus-D78h7lrw.js +1 -0
  57. package/app/assets/products-B5vjXM_b.js +1 -0
  58. package/app/assets/project-public-CgW1u7BI.js +4 -0
  59. package/app/assets/project-public-DWTt808B.js +1 -0
  60. package/app/assets/public-C-PBMVOQ.js +1 -0
  61. package/app/assets/{refresh-cw-BZ6-gKfF.js → refresh-cw-CxbRf97c.js} +1 -1
  62. package/app/assets/search-DFdSppzm.js +1 -0
  63. package/app/assets/triangle-alert-C7qiylOf.js +1 -0
  64. package/app/assets/{ui-public-BPe2GJZ-.css → ui-public-DHoRDp5_.css} +1 -1
  65. package/app/assets/ui-public-Dt5dHt-8.js +1 -0
  66. package/app/assets/workbench-DIKJZNJQ.js +2 -0
  67. package/app/assets/workbench-Db45mF6t.css +1 -0
  68. package/app/assets/workspace-view-state-D0ujRczW.js +1 -0
  69. package/app/desktop/main.mjs +7719 -0
  70. package/app/desktop/preload.cjs +30 -0
  71. package/app/index.html +2 -2
  72. package/app/package.json +1 -0
  73. package/app/public/omni-icon.png +0 -0
  74. package/app/tools/bootstrap.bin +0 -0
  75. package/app/tools/omni-desktop.mjs +526 -0
  76. package/package.json +7 -2
  77. package/release.json +1 -1
  78. package/release.sig +1 -1
  79. package/app/assets/CollaborationWorkspace-DHP4cb-p.css +0 -1
  80. package/app/assets/EmptyState-BgcduNtk.js +0 -1
  81. package/app/assets/Favorites-C3gPJxbl.js +0 -1
  82. package/app/assets/LineChart-CyiCaQMM.js +0 -4
  83. package/app/assets/Opportunities-DDR6jMz5.js +0 -1
  84. package/app/assets/ShopLayoutPage-7lNMFD1W.js +0 -1
  85. package/app/assets/TrendChart-ClEBAnKO.js +0 -1
  86. package/app/assets/activity-idEO2qnr.js +0 -1
  87. package/app/assets/arrow-left-rfprDrQc.js +0 -1
  88. package/app/assets/arrow-up-right-Bp3gzP7v.js +0 -1
  89. package/app/assets/check-DokC3Ug0.js +0 -1
  90. package/app/assets/chevron-down-CHQKhw_4.js +0 -1
  91. package/app/assets/chevron-right-2HEa4oQb.js +0 -1
  92. package/app/assets/components-zDEQpnyp.js +0 -2
  93. package/app/assets/entry-BNiO6CiP.js +0 -2
  94. package/app/assets/entry-BleRLT_W.js +0 -1
  95. package/app/assets/entry-CO870j9p.css +0 -1
  96. package/app/assets/entry-CYsrxe4a.js +0 -2
  97. package/app/assets/entry-D2FD-KFx.js +0 -1
  98. package/app/assets/entry-DAnTlYgL.js +0 -1
  99. package/app/assets/entry-DSEbJ79v.js +0 -2
  100. package/app/assets/entry-OPB3MGoc.css +0 -1
  101. package/app/assets/git-branch-CMQGDByc.js +0 -1
  102. package/app/assets/index-7NKGenq7.css +0 -1
  103. package/app/assets/index-BBySSIJT.js +0 -10
  104. package/app/assets/market-B2oImfqS.css +0 -1
  105. package/app/assets/market.module-BXeOH_ee.js +0 -1
  106. package/app/assets/module-host-BHOsDk69.js +0 -1
  107. package/app/assets/package-C_xD77DO.js +0 -1
  108. package/app/assets/pin-BEsLCHJL.js +0 -1
  109. package/app/assets/plus-C301wuGJ.js +0 -1
  110. package/app/assets/products-CfPFkCnk.js +0 -1
  111. package/app/assets/project-public-CYza4XVS.js +0 -4
  112. package/app/assets/project-public-DqjxO6ad.js +0 -1
  113. package/app/assets/public-DoBzMSlG.js +0 -1
  114. package/app/assets/ui-public-CX7L8QF_.js +0 -1
  115. package/app/assets/use-favorites-ChTJGQkB.js +0 -1
  116. package/app/assets/workbench-13XxpUuA.css +0 -1
  117. package/app/assets/workbench-BCuh9Nyq.js +0 -2
  118. package/app/assets/workspace-view-state-CYNxOsyc.js +0 -1
  119. /package/app/assets/{api-DP_rt0Zx.js → api-KZa8CR8X.js} +0 -0
  120. /package/app/assets/{use-favorites-_eKBQGeF.css → favorites-_eKBQGeF.css} +0 -0
  121. /package/app/assets/{format-jsGSJ1GL.js → format-DL7i7_eV.js} +0 -0
  122. /package/app/assets/{graphicalItemSelectors-GhHIivGe.js → graphicalItemSelectors-CJfZ6cht.js} +0 -0
  123. /package/app/assets/{group--adLvfC6.js → group-Ed305HyG.js} +0 -0
@@ -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)}.workbench-module .gb-period{color:var(--text-secondary,var(--omni-paint-ink-839bbd,#839bbd));flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0 0 14px;font-size:12px;display:flex}.workbench-module .gb-period label{flex-wrap:wrap;align-items:center;gap:10px;max-width:100%;display:flex}.workbench-module .gb-period select{border:1px solid var(--line,var(--omni-paint-line-233a61,#233a61));background:var(--bg-panel,var(--omni-paint-surface-122338,#122338));max-width:100%;min-height:34px;color:inherit;font:inherit;border-radius:6px;padding:6px 10px}.workbench-module .gb-period p{flex-basis:100%;margin:0;line-height:1.6}: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;--omni-paint-surface-122338:#fff}: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;--omni-paint-surface-122338:#102235}
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CompetitorAnalysis-Cujy_a2L.js","./index-DLSVWUSu.js","./index-BgJNmU0Z.css","./components-B5Xyjfpi.js","./format-DL7i7_eV.js","./market.module-VpU4XmGg.js","./market-SuD7x_Hf.css","./chevron-down-DO6RUQm8.js","./chevron-right-e65CaeL6.js","./search-DFdSppzm.js","./public-C-PBMVOQ.js","./workspace-view-state-D0ujRczW.js","./competitor-analysis-D6eM9ugQ.js","./FavoritePicker-XD1a_uOa.js","./favorites.module-CHYv-Z8y.js","./api-KZa8CR8X.js","./favorites-_eKBQGeF.css","./ProgressiveRows-NojOUgmr.js","./CartesianChart-CP7p2vlm.js","./ErrorBarContext-BJE5-ljg.js","./graphicalItemSelectors-CJfZ6cht.js","./arrow-up-right-IBQoN72x.js","./chart-column-DCwNhXki.js","./check-DBnlZFEo.js","./link-2-VLti-YG9.js","./plus-D78h7lrw.js","./refresh-cw-CxbRf97c.js","./CompetitorAnalysis-h1zdt0F2.css","./ShopLayoutPage-CCrRwaAx.js","./arrow-down-B1nil3T4.js","./arrow-left-BhFSpYzK.js","./clock-3-CDHtQwAe.js","./chart-no-axes-combined-DVgKs36j.js","./grid-2x2-DB6zRPIV.js","./list-Dfzc0sXQ.js","./LineChart-Ckvg5wfQ.js","./getRadiusAndStrokeWidthFromDot-bv_ksZ7y.js","./ShopLayoutPage-BlPpfB06.css","./Favorites-B5_fdEvZ.js","./Opportunities-BvH64-dz.js","./Opportunities-CogyuZvI.css"])))=>i.map(i=>d[i]);
2
+ import{n as e,t}from"./link-2-VLti-YG9.js";import{t as n}from"./chevron-right-e65CaeL6.js";import{t as r}from"./grid-2x2-DB6zRPIV.js";import{t as i}from"./list-Dfzc0sXQ.js";import{n as a,o,r as s,t as c}from"./competitor-analysis-D6eM9ugQ.js";import{t as l}from"./search-DFdSppzm.js";import{g as u,o as d,p as f,t as p,u as ee,y as te}from"./index-DLSVWUSu.js";import{n as m}from"./workspace-view-state-D0ujRczW.js";import"./public-C-PBMVOQ.js";import{t as h}from"./ProgressiveRows-NojOUgmr.js";import{a as ne,c as g,i as re,l as ie,n as ae,o as oe,r as se,s as ce,t as le}from"./components-B5Xyjfpi.js";import{t as _}from"./api-KZa8CR8X.js";import{a as ue,i as v,n as y,o as de,r as fe,t as pe}from"./format-DL7i7_eV.js";import{t as b}from"./market.module-VpU4XmGg.js";var me=f(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),he=f(`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`}]]),x=te(u(),1),S=d();function ge({query:e,month:t,available:n,children:r}){let i=(0,x.useRef)(null),[a,o]=(0,x.useState)(!1),[s,c]=(0,x.useState)(null),[l,u]=(0,x.useState)(``),[d,f]=(0,x.useState)(0);return(0,x.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,x.useEffect)(()=>{if(!a||!n)return;let r=new AbortController;return _.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,d]),(0,S.jsxs)(`article`,{ref:i,children:[(0,S.jsxs)(`h2`,{children:[t.replace(`-`,`年`),`月`]}),n?l?(0,S.jsxs)(`div`,{role:`alert`,children:[l,(0,S.jsx)(`button`,{onClick:()=>f(e=>e+1),children:`重试本月`})]}):s?r(s):(0,S.jsx)(`div`,{style:{minHeight:260},children:a?(0,S.jsx)(`p`,{role:`status`,children:`正在读取本月榜单…`}):(0,S.jsx)(`button`,{onClick:()=>o(!0),children:`加载本月榜单`})}):(0,S.jsx)(`p`,{children:`暂无该月来源数据`})]})}var _e=e=>ie.find(t=>t[0]===e)?.[1],ve=(e,t)=>y(e[t],ie.find(e=>e[0]===t)?.[2]);function C({view:c,selection:u,onConsumeSelection:d,onShopLayout:f,competitorIds:p=[],onAddCompetitor:te,onOpenCompetitors:m}={}){let[C,w]=(0,x.useState)(null),[T,E]=(0,x.useState)(null),[D,O]=g(`query`,ce),[k,A]=(0,x.useState)(D.minPrice),[j,M]=(0,x.useState)(D.maxPrice),ye=(0,x.useRef)(void 0),be=(0,x.useRef)(null),xe=(0,x.useRef)(null);(0,x.useEffect)(()=>{let e=xe.current;if(!e)return;let t=()=>be.current?.style.setProperty(`--market-controls-height`,`${e.getBoundingClientRect().height}px`),n=new ResizeObserver(t);return n.observe(e),t(),()=>n.disconnect()},[]),(0,x.useEffect)(()=>{if(!C)return;let e=u===ye.current?void 0:u;ye.current=u,e?.month&&(A(``),M(``)),O(t=>{let n=e?.categoryId??t.categoryId,r=C.categories.some(e=>e.id===n&&e.leaf);return{...t,categoryId:n,...e?.month?{month:e.month,recentYear:!1,q:``,minPrice:``,maxPrice:``}:{},view:c===`categories`?r?`products`:`categories`:c||t.view,page:1}}),e&&d?.(e)},[c,u,C,O,d]);let[N,P]=(0,x.useState)(!0),[F,I]=(0,x.useState)(``),[Se,Ce]=(0,x.useState)(0),[we,L]=(0,x.useState)(``),[R,Te]=g(`productFields`,fe),[Ee,De]=g(`shopFields`,ue),[Oe,z]=(0,x.useState)(!1),[ke,Ae]=g(`grid`,!1),[B,je]=(0,x.useState)([]),[Me,Ne]=(0,x.useState)(null),[V,H]=(0,x.useState)(null),[U,Pe]=(0,x.useState)(null),[Fe,Ie]=(0,x.useState)(!1),[Le,Re]=(0,x.useState)(``),[ze,Be]=(0,x.useState)([]),[Ve,He]=(0,x.useState)([]),Ue=(0,x.useRef)(null);function W(e){E(null),I(``),P(!0),O(t=>({...t,...e,page:e.page??1}))}function We(e){let t=C?.categories.find(t=>t.id===e);A(``),M(``),W({categoryId:e,view:c&&c!==`categories`?D.view===`categories`?c:D.view:t?.leaf?`products`:`categories`,q:``,minPrice:``,maxPrice:``,sort:`sales`,direction:`desc`})}(0,x.useEffect)(()=>{let e=new AbortController;return(async()=>{if(await Promise.resolve(),!e.signal.aborted){P(!0),I(``),E(null),w(null);try{let t=await _.bootstrap(e.signal);if(e.signal.aborted)return;if(t.contractVersion!==1)throw Error(`市场查询契约版本不兼容`);w(t),je((t.favorites||[]).map(e=>`${e.kind}:${e.key}`)),O(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||I(t.message)}finally{e.signal.aborted||P(!1)}}})(),()=>e.abort()},[Se,O]),(0,x.useEffect)(()=>{if(!C||C.status!==`ready`||!D.month)return;let e=Ue.current;Ue.current=D;let t=e&&e.q!==D.q&&e.categoryId===D.categoryId&&e.view===D.view&&e.month===D.month?180:0,n=new AbortController,r=setTimeout(()=>{if(D.view!==`categories`&&!D.categoryId){P(!1),E(null);return}if(D.view!==`categories`&&D.recentYear){P(!1),E(null);return}P(!0),_.query(D,n.signal).then(e=>{n.signal.aborted||E(e)}).catch(e=>{n.signal.aborted||(E(null),I(e.message),e.status===403?(w(null),Ce(e=>e+1)):e.status===401&&w(null))}).finally(()=>{n.signal.aborted||P(!1)})},t);return()=>{clearTimeout(r),n.abort()}},[D,C]),(0,x.useEffect)(()=>{if(!V)return;let e=new AbortController;return(async()=>{if(await Promise.resolve(),!e.signal.aborted){Ie(!0),Re(``),Be([]),He([]),Pe(V.kind===`record`||V.kind===`shopCategories`?V.record:null);try{if(V.kind===`record`){let t=await _.record(V.record.key,e.signal);e.signal.aborted||Pe(t)}if(V.kind===`shopCategories`){let t=await _.shopCategories(V.record.key,e.signal);e.signal.aborted||Be(t.rows)}if(V.kind===`distribution`){let t=await _.distribution(D,e.signal);e.signal.aborted||Be(t.rows.map(e=>({name:e.label,sales:e.sales,products:e.products})))}if(V.kind===`categoryTrend`){let t=await _.query({...D,view:`categories`,categoryId:V.category.id},e.signal);e.signal.aborted||He(t.trend)}}catch(t){e.signal.aborted||Re(t.message)}finally{e.signal.aborted||Ie(!1)}}})(),()=>e.abort()},[V,D]);let Ge=pe(C?.categories||[],D.categoryId),Ke=Ge.at(-1),G=D.view===`categories`,K=D.view===`products`,q=C?.months.indexOf(D.month)??-1,J=K?R:Ee,Y=T?.rows||[],qe=T?.categories||[],Je=D.metric===`units`?`units`:`sales`,X=T?.availability?.[K?`products`:`shops`],Z=Math.max(1,Math.ceil((T?.total||0)/D.pageSize)),Ye=D.month?new Date(Date.UTC(Number(D.month.slice(0,4)),Number(D.month.slice(5,7)),0)).toISOString().slice(0,10):``;async function Xe(e,t){if(Me)return;let n=`${e}:${t}`,r=!B.includes(n);Ne(n);try{await _.favorite(e,t,r),je(e=>r?[...e,n]:e.filter(e=>e!==n))}catch(e){L(e.message)}finally{Ne(null)}}function Q(e,t,n){return(0,S.jsx)(`button`,{className:b.iconButton,disabled:Me!==null,"aria-label":`收藏${n}`,"aria-pressed":B.includes(`${e}:${t}`),onClick:()=>void Xe(e,t),children:(0,S.jsx)(he,{size:14,fill:B.includes(`${e}:${t}`)?`currentColor`:`none`})})}function Ze(e){return(0,S.jsxs)(`span`,{className:b.productId,children:[e.id||`编号缺失`,e.id&&(0,S.jsx)(se,{text:e.id,label:`复制商品编号${e.id}`,title:`复制商品 ID`})]})}function Qe(e,n=!1){return(0,S.jsxs)(`div`,{className:b.identity,children:[v(e.imageUrl)?(0,S.jsx)(ne,{src:v(e.imageUrl),name:e.name||`商品图片`}):(0,S.jsx)(`span`,{className:b.noImage,children:(0,S.jsx)(o,{size:20})}),(0,S.jsxs)(`div`,{children:[(0,S.jsxs)(`div`,{className:b.productTitleRow,children:[v(e.url)?(0,S.jsx)(`a`,{className:b.productTitle,href:v(e.url),target:`_blank`,rel:`noreferrer`,children:e.name||`资料缺失`}):(0,S.jsx)(`button`,{className:b.productTitle,onClick:()=>H({kind:`record`,record:e}),children:e.name||`资料缺失`}),v(e.url)&&(0,S.jsx)(se,{text:v(e.url),label:`复制商品链接${e.name||e.id||``}`,title:`复制商品链接`,children:(0,S.jsx)(t,{size:13})})]}),!n&&(0,S.jsxs)(`small`,{children:[`商品ID:`,Ze(e)]}),!n&&(0,S.jsxs)(`div`,{className:b.competitorActions,children:[$e(e),et(e)]})]})]})}function $e(e){let t=s(e);return t?(0,S.jsx)(`a`,{className:b.linkButton,href:t,target:`_blank`,rel:`noreferrer`,children:`商品链接 ↗`}):(0,S.jsx)(`span`,{title:`缺少有效商品 ID`,children:`—`})}function et(e){if(!te)return null;let t=!!e.id&&p.includes(e.id),n=t||p.length>=2||!a(e.id);return(0,S.jsx)(`button`,{className:b.linkButton,disabled:n,title:t?`已加入竞品分析`:p.length>=2?`最多分析 2 个商品,请在竞品分析中移除后添加`:`加入竞品分析`,onClick:()=>{try{te({id:e.id,name:e.name||`商品 ${e.id}`,imageUrl:e.imageUrl,shopName:e.shopName,url:s(e)}),L(p.length+1>=2?`已选满 2 个商品,可以进入竞品分析`:`已加入竞品分析,还可以添加 1 个商品`)}catch(e){L(e.message)}},children:t?`已加入`:`加入分析`})}function $(e,t=!1){let n=t?e.shopUrl:e.url,r=t?e.shopName:e.name;return v(n)?(0,S.jsx)(`a`,{href:v(n),target:`_blank`,rel:`noreferrer`,children:r||`资料缺失`}):(0,S.jsx)(`span`,{children:r||`资料缺失`})}function tt(e){return(0,S.jsx)(`th`,{children:(0,S.jsxs)(`button`,{onClick:()=>W({sort:e,direction:D.sort===e&&D.direction===`desc`?`asc`:`desc`}),children:[_e(e),(0,S.jsx)(`span`,{className:D.sort===e?b.activeSort:b.sort,children:D.sort===e?D.direction===`desc`?`↓`:`↑`:`↕`})]})},e)}function nt(e,t){return(0,S.jsxs)(`td`,{className:t===`sales`?b.sales:void 0,children:[ve(e,t),t===`conversionRate`&&e[t]!=null&&(e[t]<0||e[t]>100)&&(0,S.jsxs)(`span`,{className:b.anomaly,title:`来源转化率异常,保留原值`,children:[` `,`!`]})]},t)}function rt(){if(k&&!/^\d{1,9}(\.\d{1,2})?$/.test(k)||j&&!/^\d{1,9}(\.\d{1,2})?$/.test(j)||k&&j&&Number(k)>Number(j)){L(`请填写有效的非负件单价区间`);return}L(``),W({minPrice:k,maxPrice:j})}return(0,S.jsxs)(`section`,{ref:be,className:b.page,"aria-label":`市场大盘`,children:[(0,S.jsxs)(`div`,{ref:xe,className:b.stickyHeader,children:[(0,S.jsxs)(`header`,{className:b.breadcrumb,"aria-label":`页面路径`,children:[(0,S.jsx)(`button`,{onClick:()=>W({view:`categories`,categoryId:``,q:``,recentYear:!1}),children:`全部类目`}),Ge.map(e=>(0,S.jsxs)(`span`,{children:[(0,S.jsx)(n,{size:13}),(0,S.jsx)(`button`,{onClick:()=>We(e.id),children:e.name})]},e.id)),!G&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(n,{size:13}),(0,S.jsx)(`span`,{"aria-current":`page`,children:K?`商品排行榜`:`店铺排行榜`})]})]}),(0,S.jsxs)(`section`,{className:b.filterBar,"aria-label":`市场查询条件`,children:[(0,S.jsxs)(`div`,{className:b.categoryControl,children:[(0,S.jsx)(le,{categories:C?.categories||[],favoriteIds:B.filter(e=>e.startsWith(`category:`)).map(e=>e.slice(9)),value:D.categoryId,onChoose:We,disabled:!C?.categories.length}),G&&(0,S.jsxs)(`span`,{className:b.count,children:[Ke?`子类目`:`类目`,` `,T?qe.length:`—`,` `,`个`]}),G&&(0,S.jsxs)(`div`,{className:b.categoryLegend,"aria-label":`类目类型颜色说明`,children:[(0,S.jsxs)(`span`,{children:[(0,S.jsx)(`i`,{"data-leaf":`false`}),`有下级`]}),(0,S.jsxs)(`span`,{children:[(0,S.jsx)(`i`,{"data-leaf":`true`}),`叶子类目`]})]}),!G&&(0,S.jsx)(`nav`,{className:b.tabs,role:`tablist`,"aria-label":`排行榜`,children:[[`products`,`商品排行榜`],[`shops`,`店铺排行榜`]].map(([e,t])=>(0,S.jsx)(`button`,{role:`tab`,"aria-selected":D.view===e,onClick:()=>W({view:e,q:``,sort:`sales`,direction:`desc`,minPrice:``,maxPrice:``}),children:t},e))})]}),(0,S.jsxs)(`div`,{className:b.dateControl,children:[(0,S.jsxs)(`span`,{className:b.period,children:[`统计时间:`,T?.period?.start||(D.month?D.month+`-01`:`—`),` `,`至 `,T?.period?.end||Ye||`—`]}),(0,S.jsx)(`button`,{className:b.yearButton,"aria-pressed":D.recentYear,disabled:!C?.months.length,onClick:()=>W({recentYear:!D.recentYear,q:``,sort:`sales`,direction:`desc`}),children:`最近1年`}),(0,S.jsxs)(`select`,{"aria-label":`统计月份`,value:D.month,disabled:!C?.months.length,onChange:e=>W({month:e.target.value,recentYear:!1}),children:[!C?.months.length&&(0,S.jsx)(`option`,{children:`等待可用月份`}),C?.months.map(e=>(0,S.jsxs)(`option`,{value:e,children:[e.replace(`-`,`年`),`月`]},e))]}),(0,S.jsx)(`button`,{"aria-label":`上一个可用月份`,disabled:q<=0||N,onClick:()=>W({month:C.months[q-1]}),children:(0,S.jsx)(e,{size:15})}),(0,S.jsx)(`button`,{"aria-label":`下一个可用月份`,disabled:!C||q>=C.months.length-1||N,onClick:()=>W({month:C.months[q+1]}),children:(0,S.jsx)(n,{size:15})}),G&&(0,S.jsx)(`div`,{className:b.segment,children:[[`sales`,`销售额`],[`units`,`销量`],...Ke?[[`season`,`行业淡旺季`]]:[]].map(([e,t])=>(0,S.jsx)(`button`,{"aria-pressed":D.metric===e,onClick:()=>W({metric:e}),children:t},e))})]})]}),!G&&!F&&C?.status!==`no-access`&&!!D.categoryId&&(0,S.jsxs)(`div`,{className:b.toolbar,children:[(0,S.jsxs)(`label`,{className:b.search,children:[K&&!D.recentYear&&(0,S.jsx)(`span`,{children:`商品名称`}),(0,S.jsx)(l,{size:14}),(0,S.jsx)(`input`,{"aria-label":`搜索当前榜单`,placeholder:K?`请输入要搜索的商品名称或ID`:`请输入店铺名称`,value:D.q,onChange:e=>W({q:e.target.value})})]}),D.recentYear?(0,S.jsx)(`div`,{className:b.segment,children:[`sales`,`views`].map(e=>(0,S.jsx)(`button`,{"aria-pressed":D.sort===e,onClick:()=>W({sort:e}),children:_e(e)},e))}):(0,S.jsxs)(S.Fragment,{children:[K?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`button`,{disabled:!C?.capabilities?.priceDistribution||X!==`ready`,onClick:()=>H({kind:`distribution`}),children:`客单价分布`}),(0,S.jsxs)(`div`,{className:b.price,children:[(0,S.jsx)(`span`,{children:`件单价:`}),(0,S.jsxs)(`label`,{children:[(0,S.jsx)(`input`,{type:`number`,min:`0`,"aria-label":`最低件单价`,value:k,onChange:e=>A(e.target.value)}),(0,S.jsx)(`span`,{children:`元`})]}),(0,S.jsx)(`span`,{children:`–`}),(0,S.jsxs)(`label`,{children:[(0,S.jsx)(`input`,{type:`number`,min:`0`,"aria-label":`最高件单价`,value:j,onChange:e=>M(e.target.value)}),(0,S.jsx)(`span`,{children:`元`})]}),(0,S.jsx)(`button`,{className:b.primary,onClick:rt,children:`确定`}),(D.minPrice||D.maxPrice)&&(0,S.jsx)(`button`,{onClick:()=>{A(``),M(``),W({minPrice:``,maxPrice:``})},children:`重置`})]}),(0,S.jsxs)(`div`,{className:b.segment,children:[(0,S.jsxs)(`button`,{"aria-label":`大图视图`,"aria-pressed":ke,onClick:()=>Ae(!0),children:[(0,S.jsx)(r,{size:13}),`大图`]}),(0,S.jsxs)(`button`,{"aria-label":`列表视图`,"aria-pressed":!ke,onClick:()=>Ae(!1),children:[(0,S.jsx)(i,{size:13}),`列表`]})]})]}):(0,S.jsx)(`button`,{disabled:!0,title:`来源数据未提供地域字段`,children:`地域分布`}),(0,S.jsx)(`button`,{className:b.configButton,onClick:()=>z(!0),children:`表格配置`})]})]})]}),we&&(0,S.jsxs)(`div`,{className:b.message,role:`status`,children:[we,(0,S.jsx)(`button`,{"aria-label":`关闭提示`,onClick:()=>L(``),children:`×`})]}),p.length>0&&m&&(0,S.jsxs)(`div`,{className:b.competitorTray,children:[(0,S.jsxs)(`span`,{children:[`竞品分析已选 `,(0,S.jsxs)(`strong`,{children:[p.length,` / `,2]}),` 个商品`]}),(0,S.jsx)(`button`,{onClick:m,children:`查看竞品分析 →`})]}),F?(0,S.jsxs)(`section`,{className:b.emptyState,role:`alert`,children:[(0,S.jsx)(ee,{size:32}),(0,S.jsx)(`h2`,{children:F}),(0,S.jsx)(`button`,{onClick:()=>Ce(e=>e+1),children:`重新连接`})]}):C?.status===`no-access`?(0,S.jsxs)(`section`,{className:b.emptyState,children:[(0,S.jsx)(`h2`,{children:`企业尚未获得市场类目授权`}),(0,S.jsx)(`p`,{children:`企业子账号继承企业的市场类目范围。`})]}):!G&&!D.categoryId?(0,S.jsxs)(`section`,{className:b.emptyState,children:[(0,S.jsxs)(`h2`,{children:[`选择类目查看`,K?`商品`:`店铺`,`排行榜`]}),(0,S.jsx)(`p`,{children:`使用上方类目选择器,选择你要研究的具体类目。`})]}):(0,S.jsxs)(S.Fragment,{children:[N?(0,S.jsx)(`div`,{className:b.empty,role:`status`,children:`正在读取市场数据…`}):G?D.metric===`season`?(0,S.jsxs)(`section`,{className:b.seasonBoard,children:[(0,S.jsxs)(`table`,{children:[(0,S.jsx)(`thead`,{children:(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`th`,{children:`行业类目`}),(T?.period?.availableMonths||[]).map(e=>(0,S.jsx)(`th`,{children:e},e))]})}),(0,S.jsx)(`tbody`,{children:(0,S.jsx)(h,{items:T?.season||[],columns:1+(T?.period?.availableMonths.length||0),children:e=>(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`td`,{children:e.name}),e.months.map(e=>(0,S.jsx)(`td`,{children:(0,S.jsx)(`span`,{className:e.state===`旺季`?b.hot:e.state===`淡季`?b.cold:b.neutral,children:e.state||`资料缺失`})},e.month))]},e.categoryId)})})]}),!T?.season.length&&(0,S.jsx)(`p`,{className:b.empty,children:`淡旺季判定口径尚未配置,当前月份数据保持原值。`})]}):(0,S.jsxs)(`section`,{className:b.categoryList,"aria-label":`类目列表`,children:[(0,S.jsx)(`div`,{className:b.categoryHeaders,children:[0,1,2].map(e=>(0,S.jsxs)(`div`,{children:[(0,S.jsx)(`span`,{children:`类目名称`}),(0,S.jsx)(`span`,{children:D.metric===`units`?`销量`:`销售额`}),(0,S.jsx)(`span`,{children:D.metric===`units`?`销量同比`:`销售额同比`}),(0,S.jsx)(`span`,{children:`店铺数`}),(0,S.jsx)(`span`,{})]},e))}),(0,S.jsx)(`div`,{className:b.categoryRows,children:(0,S.jsx)(h,{items:qe,children:e=>(0,S.jsxs)(`article`,{className:b.categoryRow,"data-leaf":e.leaf,children:[(0,S.jsx)(`button`,{className:b.categoryOpen,"aria-label":e.leaf?`查看${e.name}排行榜`:`进入${e.name}子类目`,onClick:()=>We(e.id)}),(0,S.jsxs)(`div`,{className:b.categoryName,children:[(0,S.jsxs)(`span`,{title:e.name,children:[e.name,!e.leaf&&(0,S.jsx)(n,{size:12})]}),e.leaf&&(0,S.jsx)(`div`,{className:b.rowActions,children:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`button`,{onClick:()=>W({categoryId:e.id,view:`products`,q:``}),children:`排行榜`}),(0,S.jsx)(`button`,{onClick:()=>H({kind:`categoryTrend`,category:e}),children:`趋势`})]})})]}),(0,S.jsx)(`strong`,{children:y(e[Je],Je===`sales`?`compact`:`number`)}),(0,S.jsx)(`span`,{children:y(D.metric===`units`?e.unitsYoy:e.salesYoy,`percent`)}),(0,S.jsx)(`span`,{children:y(e.shopCount)}),Q(`category`,e.id,e.name)]},e.id)})}),!qe.length&&(0,S.jsx)(`p`,{className:b.empty,children:`当前类目已到最细层级,请选择商品或店铺排行榜。`})]}):D.recentYear?(0,S.jsx)(`section`,{className:b.yearBoards,"aria-label":`最近一年月度榜单`,children:de(D.month).map(e=>(0,S.jsx)(ge,{query:D,month:e,available:C?.months.includes(e)??!1,children:e=>(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(`table`,{children:[(0,S.jsx)(`thead`,{children:(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`th`,{children:`排名`}),(0,S.jsx)(`th`,{children:K?`商品`:`店铺`}),(0,S.jsx)(`th`,{children:D.sort===`views`?`浏览量`:`销售额`})]})}),(0,S.jsx)(`tbody`,{children:(0,S.jsx)(h,{items:e.rows,columns:3,children:e=>(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`td`,{children:e.sourceRank??`—`}),(0,S.jsxs)(`td`,{children:[K?Qe(e):$(e),K&&(0,S.jsx)(`small`,{children:e.shopName||`店铺资料缺失`})]}),(0,S.jsx)(`td`,{children:y(e[D.sort===`views`?`views`:`sales`],D.sort===`views`?`number`:`compact`)})]},e.key)})})]}),!e.rows.length&&(0,S.jsx)(`p`,{className:b.empty,children:e.status===`pending`?`正在导入`:e.status===`missing`?`暂无该月来源数据`:`暂无匹配数据`})]})},JSON.stringify(D)+e))}):K&&ke?(0,S.jsxs)(`section`,{className:b.productGrid,children:[(0,S.jsx)(h,{items:Y||[],children:e=>(0,S.jsxs)(`article`,{tabIndex:0,"aria-label":e.name||`商品卡片`,children:[(0,S.jsxs)(`div`,{className:b.largeImage,children:[v(e.imageUrl)?(0,S.jsx)(ne,{src:v(e.imageUrl),name:e.name||`商品图片`,hoverPreview:!1}):(0,S.jsx)(o,{size:44}),(0,S.jsxs)(`span`,{children:[`排名 `,e.sourceRank??`—`]}),Q(`product`,e.key,e.name||`商品`)]}),(0,S.jsxs)(`div`,{className:b.gridDetails,children:[Qe(e),(0,S.jsxs)(`p`,{children:[`店铺:`,$(e,!0)]}),(0,S.jsx)(`dl`,{children:R.map(t=>(0,S.jsxs)(`div`,{children:[(0,S.jsx)(`dt`,{children:_e(t)}),(0,S.jsx)(`dd`,{children:ve(e,t)})]},t))}),(0,S.jsx)(`button`,{onClick:()=>H({kind:`record`,record:e}),children:`查看销售走势`})]})]},e.key)}),!Y.length&&(0,S.jsx)(`p`,{className:b.empty,children:X===`pending`?`当前类目榜单正在导入`:`暂无匹配商品`})]}):(0,S.jsxs)(`section`,{className:b.tableScroll,"aria-label":K?`商品排行榜`:`店铺排行榜`,children:[(0,S.jsxs)(`table`,{className:K?b.productTable:b.shopTable,children:[(0,S.jsx)(`thead`,{children:(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`th`,{children:`排名`}),K?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`th`,{children:`商品`}),(0,S.jsx)(`th`,{children:`商品ID`}),R[0]===`listingDays`&&tt(`listingDays`),(0,S.jsx)(`th`,{children:`收藏商品`}),(0,S.jsx)(`th`,{children:`店铺`}),(0,S.jsx)(`th`,{children:`销售走势`}),(0,S.jsx)(`th`,{children:`利润测算`}),(0,S.jsx)(`th`,{children:`商品链接`}),(0,S.jsx)(`th`,{children:`竞品分析`})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`th`,{children:`店铺ID`}),(0,S.jsx)(`th`,{children:`店铺名称`}),(0,S.jsx)(`th`,{children:`店铺收藏`}),(0,S.jsx)(`th`,{children:`销售走势`}),(0,S.jsx)(`th`,{children:`品类分析`})]}),J.filter(e=>!K||R[0]!==`listingDays`||e!==`listingDays`).map(tt)]})}),(0,S.jsx)(`tbody`,{children:(0,S.jsx)(h,{items:Y,columns:K?J.length+9:J.length+6,children:e=>(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`td`,{children:e.sourceRank??`—`}),K?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`td`,{children:Qe(e,!0)}),(0,S.jsx)(`td`,{children:Ze(e)}),R[0]===`listingDays`&&nt(e,`listingDays`),(0,S.jsx)(`td`,{children:Q(`product`,e.key,e.name||`商品`)}),(0,S.jsx)(`td`,{className:b.shopName,children:$(e,!0)}),(0,S.jsx)(`td`,{children:(0,S.jsx)(`button`,{className:b.linkButton,onClick:()=>H({kind:`record`,record:e}),children:`查看`})}),(0,S.jsx)(`td`,{children:(0,S.jsx)(`button`,{className:b.linkButton,disabled:!0,title:`需要成本与费用口径,当前未配置`,children:`测算`})}),(0,S.jsx)(`td`,{children:$e(e)}),(0,S.jsx)(`td`,{children:et(e)})]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`td`,{children:(0,S.jsxs)(`span`,{className:b.shopId,children:[e.id||`编号缺失`,e.id&&(0,S.jsx)(se,{text:e.id,label:`复制店铺编号${e.id}`,title:`复制店铺 ID`})]})}),(0,S.jsx)(`td`,{className:b.shopName,children:$(e)}),(0,S.jsx)(`td`,{children:Q(`shop`,e.key,e.name||`店铺`)}),(0,S.jsx)(`td`,{children:(0,S.jsx)(`button`,{className:b.linkButton,onClick:()=>H({kind:`record`,record:e}),children:`查看`})}),(0,S.jsxs)(`td`,{children:[(0,S.jsx)(`button`,{className:b.linkButton,disabled:!e.id,title:e.id?`仅分析获准类目`:`缺少可追踪店铺编号`,onClick:()=>H({kind:`shopCategories`,record:e}),children:`分析`}),f&&e.id&&(0,S.jsx)(`button`,{className:b.linkButton,onClick:()=>f({id:e.id,name:e.name||e.id},D.month),children:`归档布局`})]})]}),J.filter(e=>!K||R[0]!==`listingDays`||e!==`listingDays`).map(t=>nt(e,t))]},e.key)})})]}),!Y.length&&(0,S.jsx)(`p`,{className:b.empty,children:X===`pending`?`当前月份此类目榜单正在导入`:X===`missing`?`该类目暂无本月榜单,请选择其他月份或继续下钻`:`暂无匹配记录`})]}),!G&&!D.recentYear&&(0,S.jsxs)(`footer`,{className:b.pagination,children:[(0,S.jsxs)(`span`,{children:[`共 `,y(T?.total),` 条 · 保留来源排名`]}),(0,S.jsxs)(`div`,{children:[(0,S.jsx)(`button`,{"aria-label":`上一页`,disabled:D.page<=1||N,onClick:()=>W({page:D.page-1}),children:(0,S.jsx)(e,{size:14})}),Array.from(new Set([1,...Array.from({length:5},(e,t)=>D.page-2+t).filter(e=>e>1&&e<Z),Z])).map((e,t,n)=>(0,S.jsxs)(`span`,{children:[t>0&&e-n[t-1]>1&&(0,S.jsx)(`span`,{className:b.ellipsis,children:`…`}),(0,S.jsx)(`button`,{"aria-current":D.page===e?`page`:void 0,onClick:()=>W({page:e}),children:e})]},e)),(0,S.jsx)(`button`,{"aria-label":`下一页`,disabled:D.page>=Z||N,onClick:()=>W({page:D.page+1}),children:(0,S.jsx)(n,{size:14})}),(0,S.jsx)(`select`,{"aria-label":`每页条数`,value:D.pageSize,onChange:e=>W({pageSize:Number(e.target.value)}),children:[25,50,100].map(e=>(0,S.jsxs)(`option`,{value:e,children:[e,` 条/页`]},e))}),(0,S.jsxs)(`label`,{children:[`跳至`,(0,S.jsx)(`input`,{"aria-label":`跳转页码`,type:`number`,min:`1`,max:Z,defaultValue:D.page,onKeyDown:e=>{if(e.key===`Enter`){let t=Number(e.currentTarget.value);Number.isInteger(t)&&t>=1&&t<=Z&&W({page:t})}}},D.page)]})]})]}),T?.notice&&(0,S.jsx)(`p`,{className:b.notice,children:T.notice})]}),(0,S.jsxs)(`details`,{className:b.sources,children:[(0,S.jsxs)(`summary`,{children:[(0,S.jsx)(me,{size:13}),`数据来源与口径`]}),(0,S.jsxs)(`p`,{children:[T?.provenance.source||C?.sourceLabel||`共享市场数据库`,` ·`,` `,T?.provenance.updatedAt||`等待服务连接`]}),(0,S.jsx)(`p`,{children:T?.provenance.definition||`空值与零分别保留,按企业一级类目授权查询。`}),(0,S.jsx)(`p`,{children:`历史店铺缺少编号时仍保留榜单记录;缺少名称显示资料缺失,缺少有效链接时显示普通文本。收藏保存在当前账号下。`})]}),Oe&&(0,S.jsx)(ae,{columns:J,allowed:K?fe:ue,onClose:()=>z(!1),onSave:e=>{K?Te(e):De(e),z(!1)}}),V&&(0,S.jsx)(re,{title:V.kind===`distribution`?`件单价分布`:V.kind===`categoryTrend`?V.category.name:V.kind===`shopCategories`?`${V.record.name||`店铺`} · 品类分析`:V.record.name||`资料缺失`,onClose:()=>H(null),children:Le?(0,S.jsx)(`p`,{className:b.notice,role:`alert`,children:Le}):Fe?(0,S.jsx)(`p`,{className:b.empty,children:`正在读取数据…`}):V.kind===`record`&&U?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(`p`,{className:b.detailScope,children:[D.month,` · 原榜排名 `,U.sourceRank??`—`,` ·`,` `,U.id||`编号缺失`]}),(0,S.jsx)(oe,{points:U.trend}),(0,S.jsx)(`dl`,{className:b.detailMetrics,children:ie.map(([e,t,n])=>(0,S.jsxs)(`div`,{children:[(0,S.jsx)(`dt`,{children:t}),(0,S.jsx)(`dd`,{children:y(U[e],n)})]},e))}),U.warnings?.map(e=>(0,S.jsx)(`p`,{className:b.notice,children:e},e)),(0,S.jsxs)(`p`,{className:b.detailScope,children:[`来源:`,U.source.file,` · 第 `,U.source.row,` 行`]})]}):V.kind===`categoryTrend`?(0,S.jsx)(oe,{points:Ve,metric:D.metric===`units`?`units`:`sales`}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(`p`,{className:b.detailScope,children:V.kind===`distribution`?`按当前已入库商品榜单统计,非全市场商品分布`:`仅展示获准类目的店铺指标,各层级分别列示。`}),(0,S.jsxs)(`table`,{children:[(0,S.jsx)(`thead`,{children:(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`th`,{children:V.kind===`distribution`?`件单价区间`:`类目`}),V.kind===`distribution`&&(0,S.jsx)(`th`,{children:`商品数`}),(0,S.jsx)(`th`,{children:`销售额`})]})}),(0,S.jsx)(`tbody`,{children:(0,S.jsx)(h,{items:ze,columns:V.kind===`distribution`?3:2,children:e=>(0,S.jsxs)(`tr`,{children:[(0,S.jsx)(`td`,{children:e.name}),V.kind===`distribution`&&(0,S.jsx)(`td`,{children:y(e.products)}),(0,S.jsx)(`td`,{children:y(e.sales,`money`)})]},e.name)})})]}),!ze.length&&(0,S.jsx)(`p`,{className:b.empty,children:`当前范围暂无可用数据`})]})})]})}function w(e=[]){let t=e,n=new Set,r=e=>{t=e;for(let e of n)e()};return{get:()=>t,subscribe:e=>(n.add(e),()=>n.delete(e)),add:e=>r(c(t,e)),remove:e=>r(t.filter(t=>t.id!==e)),acknowledge:e=>r(t.filter(t=>!e.includes(t)))}}var T=(0,x.lazy)(()=>p(()=>import(`./CompetitorAnalysis-Cujy_a2L.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,26,27]),import.meta.url)),E=(0,x.lazy)(()=>p(()=>import(`./ShopLayoutPage-CCrRwaAx.js`),__vite__mapDeps([28,1,2,15,4,13,14,10,11,16,17,18,19,20,29,30,31,32,23,24,8,33,34,25,26,9,35,36,37]),import.meta.url)),D=(0,x.lazy)(()=>p(()=>import(`./Favorites-B5_fdEvZ.js`),__vite__mapDeps([38,1,2,15,14,10,11,16,3,4,5,6,7,8,9,12,17]),import.meta.url)),O=(0,x.lazy)(()=>p(()=>import(`./Opportunities-BvH64-dz.js`),__vite__mapDeps([39,1,2,15,3,4,5,6,7,8,9,10,11,30,21,26,40]),import.meta.url));function k({section:e,onSection:t}){let[n,r]=m(`market.analysisLaunch`,null),[i,a]=(0,x.useState)(),[o,s]=m(`market.competitor.draft`,w());(0,x.useEffect)(()=>{s(o)},[o,s]);let c=(0,x.useSyncExternalStore)(o.subscribe,o.get,o.get),[,l]=m(`market.competitor.view.v2`,`new`),u=e=>{o.add(e),l(`new`)},d=(0,x.useCallback)(e=>{a(t=>t===e?void 0:t)},[]);if(e===`shop-layout`)return(0,S.jsx)(x.Suspense,{fallback:(0,S.jsx)(`p`,{role:`status`,children:`正在加载店铺品类布局…`}),children:(0,S.jsx)(E,{launch:n,onConsumeLaunch:()=>r(null)})});if(e===`opportunities`)return(0,S.jsx)(x.Suspense,{fallback:(0,S.jsx)(`p`,{role:`status`,children:`正在加载机会发现…`}),children:(0,S.jsx)(O,{onOpenCategory:(e,n)=>{a({categoryId:e,month:n,view:`products`}),t(`products`)}})});if(e===`favorites`)return(0,S.jsx)(x.Suspense,{fallback:(0,S.jsx)(`p`,{role:`status`,children:`正在加载我的收藏…`}),children:(0,S.jsx)(D,{competitorIds:c.map(e=>e.id),onAddCompetitor:u,onOpenCompetitors:()=>{l(`new`),t(`competitor-analysis`)}})});if(e===`competitor-analysis`)return(0,S.jsx)(x.Suspense,{fallback:(0,S.jsx)(`p`,{role:`status`,children:`正在加载竞品分析…`}),children:(0,S.jsx)(T,{products:c,onAdd:u,onStarted:o.acknowledge,onRemove:o.remove,onBrowse:()=>t(`products`)})});let f=[`categories`,`products`,`shops`].find(t=>t===e)||`categories`;return(0,S.jsx)(C,{selection:i,onConsumeSelection:d,competitorIds:c.map(e=>e.id),onAddCompetitor:u,onOpenCompetitors:()=>t(`competitor-analysis`),onShopLayout:(e,n)=>{r({id:crypto.randomUUID(),shop:e,month:n}),t(`shop-layout`)},view:f})}export{k as default};
@@ -0,0 +1 @@
1
+ import{n as e,t}from"./orbit-CrQs6cpl.js";import{t as n}from"./arrow-down-B1nil3T4.js";import{t as r}from"./arrow-left-BhFSpYzK.js";import{n as i,t as a}from"./clock-3-CDHtQwAe.js";import{t as o}from"./book-open-Cqdn6s-H.js";import{t as s}from"./chart-no-axes-combined-DVgKs36j.js";import{t as c}from"./check-DBnlZFEo.js";import{n as l,t as u}from"./layout-dashboard-sgUrlApv.js";import{t as d}from"./layers-CjsT_HGi.js";import{t as ee}from"./play-BxTFlaQX.js";import{t as te}from"./refresh-cw-CxbRf97c.js";import{t as f}from"./triangle-alert-C7qiylOf.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-DLSVWUSu.js";import{n as ae}from"./module-host-DNtiV4gZ.js";import{n as oe}from"./workspace-view-state-D0ujRczW.js";import"./public-C-PBMVOQ.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
+ import{t as e}from"./CollaborationWorkspace-Cnp5PNn_.js";import{o as t}from"./index-DLSVWUSu.js";var n=t();function r({selectedId:t,project:r}){let i=t||r?.projectId;return(0,n.jsx)(e,{initialProjectId:i},i||`directory`)}export{r as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./project-public-DWTt808B.js","./index-DLSVWUSu.js","./index-BgJNmU0Z.css","./CartesianChart-CP7p2vlm.js","./LineChart-Ckvg5wfQ.js","./ErrorBarContext-BJE5-ljg.js","./getRadiusAndStrokeWidthFromDot-bv_ksZ7y.js","./EvidenceSourceGuide-B1AJCZm2.js","./HelpTip-BqRBO41J.js","./HelpTip-BsHPhMNf.css"])))=>i.map(i=>d[i]);
2
+ import{n as e}from"./clock-3-CDHtQwAe.js";import{t}from"./chevron-right-e65CaeL6.js";import{i as n,n as r,r as i,t as a}from"./products-B5vjXM_b.js";import{t as o}from"./layers-CjsT_HGi.js";import{t as s}from"./refresh-cw-CxbRf97c.js";import{t as c}from"./search-DFdSppzm.js";import{a as l,g as u,o as d,p as f,s as p,t as m,y as h}from"./index-DLSVWUSu.js";import{n as g}from"./module-host-DNtiV4gZ.js";import{n as _}from"./workspace-view-state-D0ujRczW.js";import"./public-C-PBMVOQ.js";import{t as v}from"./group-Ed305HyG.js";var y=f(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),b=h(u(),1);async function x(e){let t=await e(`/growth-center`);if(!t||!Array.isArray(t.products)||typeof t.updatedAt!=`string`||t.products.some(e=>!e||typeof e.key!=`string`||typeof e.itemId!=`string`||typeof e.project!=`string`||!Array.isArray(e.series)||e.series.some(e=>!e||!Array.isArray(e.points))))throw Error(`商品资料返回格式异常`);return t}function S(e){let[t,n]=(0,b.useState)(null),[r,i]=(0,b.useState)(``),[a,o]=(0,b.useState)(!0),s=(0,b.useRef)(0),c=(0,b.useRef)(!1),l=(0,b.useCallback)(()=>{let t=++s.current;return x(e).then(e=>c.current&&s.current===t?(n(e),i(``),!0):!1).catch(e=>(c.current&&s.current===t&&(n(null),i(e instanceof Error?e.message:`商品资料读取失败`)),!1)).finally(()=>{c.current&&s.current===t&&o(!1)})},[e]),u=(0,b.useCallback)(()=>(o(!0),i(``),l()),[l]);return(0,b.useEffect)(()=>(c.current=!0,l(),()=>{c.current=!1}),[l]),{data:t,error:r,loading:a,refresh:u}}var C=[{id:`test`,n:`03`,name:`新品测试`,caption:`运营策略 · 测试`,color:`var(--omni-chart-primary,#6fa7ff)`,goal:`少量投入,找到有人喜欢的商品`,cadence:`推广每天看 · 商品每5天看`,rule:`同品类、同属性、同材质一起测。对照店里第二梯队头部商品:低的继续跑,中的进入孵化候选,高的进一步评估。`,action:`查看点击、加购表现,筛选候选商品。`},{id:`incubate`,n:`02`,name:`持续孵化`,caption:`运营策略 · 培养`,color:`var(--omni-chart-secondary,#b99aff)`,goal:`培养潜力款,让成熟商品赚钱`,cadence:`新品每5天看 · 老品每7天看`,rule:`新商品看加购率与转化率;成熟商品看付费占比。低的放大,高的调整计划或暂停,同时优化主图、视频等。`,action:`区分赚钱款与潜力款,安排下一轮优化。`},{id:`scale`,n:`01`,name:`重点推广`,caption:`运营策略 · 放大`,color:`var(--omni-chart-teal,#44cdb5)`,goal:`集中资源,持续增加付款人数`,cadence:`推广每30–60分钟看 · 商品每天看`,rule:`拉新看点击成本、加购成本;收割看点击成本、成交成本。调整差计划,把预算分配给同类好计划;没有合适计划就新建测试。`,action:`查看广告计划,按老师给企业制定的标准处理。`}],w={unassigned:`待分组`,test:`新品测试`,incubate:`持续孵化`,scale:`重点推广`},T=e=>typeof e==`number`?e.toLocaleString(`zh-CN`,{maximumFractionDigits:2}):`—`;function E(e,t){return e.filter(e=>t===`stored-demo`?e.mode===`simulated`:e.mode!==`simulated`)}function D(e,t,n){let r=n.trim().toLowerCase();return e.filter(e=>(t===`all`||e.tier===t)&&`${e.itemId} ${e.projectName} ${e.title||``} ${e.shopName||``}`.toLowerCase().includes(r))}function O(e,t){return e.find(e=>e.key===t)||e[0]}var k=d();function A({series:e}){if(!e?.points.length)return(0,k.jsx)(`div`,{className:`gw-chart-empty`,children:`选择商品后,查看已有数据趋势。`});let t=e.points.slice(-30),n=t.flatMap(e=>e.value===null?[]:[e.value]),r=n.length?Math.min(...n):0,i=n.length?Math.max(...n):1,a=(e,n)=>[32+n*636/Math.max(1,t.length-1),150-((e.value??r)-r)/(i-r||1)*115],o=null,s=[];return t.forEach((t,n)=>{if(t.value===null){o=null;return}let[r,i]=a(t,n);o&&Date.parse(t.date)-Date.parse(o.date)===864e5&&s.push((0,k.jsx)(`line`,{x1:o.x,y1:o.y,x2:r,y2:i},`l`+n)),s.push((0,k.jsx)(`circle`,{cx:r,cy:i,r:`3`,children:(0,k.jsxs)(`title`,{children:[t.date,`:`,T(t.value),` `,e.unit]})},`p`+n)),o={x:r,y:i,date:t.date}}),(0,k.jsxs)(`div`,{className:`gw-chart`,children:[(0,k.jsxs)(`svg`,{viewBox:`0 0 700 185`,role:`img`,"aria-label":`${e.name}最近${t.length}个归档日期的趋势,缺失日期不连线`,children:[(0,k.jsx)(`defs`,{children:(0,k.jsxs)(`linearGradient`,{id:`product-chart-bg`,x1:`0`,x2:`0`,y1:`0`,y2:`1`,children:[(0,k.jsx)(`stop`,{stopColor:`var(--omni-chart-teal,#4cd5af)`,stopOpacity:`.1`}),(0,k.jsx)(`stop`,{offset:`1`,stopColor:`var(--omni-chart-teal,#4cd5af)`,stopOpacity:`0`})]})}),(0,k.jsx)(`rect`,{x:`30`,y:`20`,width:`640`,height:`145`,fill:`url(#product-chart-bg)`}),[35,92,150].map(e=>(0,k.jsx)(`line`,{x1:`30`,x2:`670`,y1:e,y2:e,className:`grid`},e)),(0,k.jsx)(`g`,{className:`plot`,children:s}),(0,k.jsx)(`text`,{x:`32`,y:`178`,children:t[0]?.date}),(0,k.jsx)(`text`,{x:`668`,y:`178`,textAnchor:`end`,children:t.at(-1)?.date}),(0,k.jsxs)(`text`,{x:`32`,y:`16`,children:[T(i),` `,e.unit]})]}),(0,k.jsx)(`span`,{children:`最近最多30个归档日期 · 缺失不补零 · 不同日期不汇总`})]})}function j({product:t,metricKey:n,onMetric:r,onGroup:i,onTask:o,onOpen:s}){if(!t)return(0,k.jsx)(`div`,{className:`gw-empty`,children:`选择商品查看趋势与后续操作。`});let c=t.series.find(e=>e.key===n)||t.series.find(e=>e.metric===`buyers`)||t.series[0],l=C.find(e=>e.id===t.tier);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(`div`,{className:`gw-selected-product`,children:[(0,k.jsxs)(`div`,{children:[(0,k.jsx)(a,{product:t}),(0,k.jsx)(`span`,{className:`gw-tag `+t.tier,children:w[t.tier]})]}),(0,k.jsxs)(`button`,{onClick:()=>i(t),children:[(0,k.jsx)(y,{size:14}),`分组`]})]}),(0,k.jsxs)(`div`,{className:`gw-metric-selector`,children:[(0,k.jsx)(`select`,{"aria-label":`商品趋势指标`,value:c?.key||``,onChange:e=>r(e.target.value),children:t.series.map(e=>(0,k.jsxs)(`option`,{value:e.key,children:[e.name,` · `,e.unit||`原始单位`]},e.key))}),(0,k.jsxs)(`strong`,{children:[T(c?.points.at(-1)?.value),(0,k.jsx)(`small`,{children:c?.unit})]}),(0,k.jsxs)(`span`,{children:[`最后统计日:`,c?.points.at(-1)?.date||`—`]})]}),(0,k.jsx)(A,{series:c}),(0,k.jsxs)(`details`,{className:`gw-points`,children:[(0,k.jsx)(`summary`,{children:`查看每日原值与来源`}),(0,k.jsx)(`div`,{className:`gw-table-scroll`,children:(0,k.jsxs)(`table`,{children:[(0,k.jsx)(`thead`,{children:(0,k.jsxs)(`tr`,{children:[(0,k.jsx)(`th`,{children:`日期`}),(0,k.jsx)(`th`,{children:`原值`}),(0,k.jsx)(`th`,{children:`来源`})]})}),(0,k.jsx)(`tbody`,{children:c?.points.slice(-30).map(e=>(0,k.jsxs)(`tr`,{children:[(0,k.jsx)(`td`,{children:e.date}),(0,k.jsx)(`td`,{children:T(e.value)}),(0,k.jsx)(`td`,{children:(0,k.jsx)(`a`,{href:`/api/workbench/`+t.project+`/file/`+e.fileId,children:`原始归档`})})]},e.date))})]})})]}),(0,k.jsxs)(`div`,{className:`gw-next`,children:[(0,k.jsx)(`span`,{children:`NEXT / 下一步`}),(0,k.jsx)(`h3`,{children:l?.action||`先选择这个商品的运营策略`}),(0,k.jsxs)(`p`,{children:[l?.cadence||`分组后查看对应检查频率和处理办法。`,t.note&&` · `+t.note]}),(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`button`,{onClick:()=>o(t),children:`查看当前任务`}),(0,k.jsxs)(`button`,{className:`gw-primary`,onClick:()=>s(t.project,{tab:`monitor`,itemId:t.itemId}),children:[`查看监控与取数 `,(0,k.jsx)(e,{size:13})]}),(0,k.jsx)(`button`,{onClick:()=>s(t.project,{tab:`optimization`,itemId:t.itemId}),children:`商品优化`})]})]}),(0,k.jsx)(`p`,{className:`gw-detail-note`,children:`展示本项目归档的商品指标。点击率、加购率、计划成本等尚未汇入此表;请到来源数据中核对。`})]})}function M({section:e,onSection:l}){let u=g(),{data:d,error:f,loading:p,refresh:m}=S(u.api),h=u.archiveScope||`real`,[y,x]=_(`products.query`,``),[T,A]=_(`products.key`,``),[M,N]=_(`products.metric`,``),[P,F]=(0,b.useState)(``),[I,L]=(0,b.useState)(null),[R,z]=(0,b.useState)(null),B=(0,b.useRef)(null),V=e===`all`||w[e]?e:`all`,H=E(d?.products||[],h),U=D(H,V,y),W=O(U,T);function G(e){A(e.key),N(``),F(``)}function K(e,t){if(t===`work`){z(e);return}t===`data`?(l(`all`),x(``),G(e),requestAnimationFrame(()=>{B.current?.scrollIntoView({behavior:`smooth`,block:`start`}),B.current?.focus({preventScroll:!0})})):u.onOpen(e.project,{tab:t,itemId:e.itemId})}return(0,k.jsx)(`div`,{className:`products-module`,children:(0,k.jsx)(`div`,{className:`gw`,children:(0,k.jsxs)(`div`,{className:`gw-body`,children:[(0,k.jsxs)(`header`,{className:`gw-header`,children:[(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`small`,{children:`商品 / 商品看板`}),(0,k.jsx)(`h1`,{children:`从测试到重点推广`})]}),(0,k.jsxs)(`div`,{className:`gw-header-actions`,children:[(0,k.jsxs)(`span`,{children:[(0,k.jsx)(`i`,{className:`gw-dot`}),`归档数据 · 非实时`]}),(0,k.jsxs)(`button`,{onClick:()=>void m(),disabled:p,children:[(0,k.jsx)(s,{size:14}),p?`读取中`:`刷新数据`]})]})]}),(0,k.jsx)(`div`,{className:`gw-scope`,children:(0,k.jsx)(`span`,{children:d?`${new Date(d.updatedAt).toLocaleString(`zh-CN`)} 读取归档`:p?`正在读取归档…`:`商品资料未就绪`})}),f&&(0,k.jsxs)(`p`,{role:`alert`,className:`gw-message`,children:[f,` `,(0,k.jsx)(`button`,{onClick:()=>void m(),children:`重试`})]}),P&&(0,k.jsx)(`p`,{role:`status`,className:`gw-message`,children:P}),(0,k.jsx)(n,{products:H,tiers:C,ready:!!d&&!p,onAction:K,onAssign:(e,t)=>L({product:e,suggestedTier:t})}),R&&(0,k.jsx)(i,{product:R,onOpen:u.onOpen,onClose:()=>z(null)}),I&&(0,k.jsx)(r,{...I,products:H,onDirty:u.onDirty,onBusy:u.onBusy,onClose:()=>L(null),onSave:async(e,t,n,r)=>{await v(u.api,e,t,n,r),F(await m()?`分组已保存,看板已更新。`:`分组已保存,但看板读取失败,请刷新后查看。`)}}),(0,k.jsxs)(`div`,{className:`gw-operating`,children:[(0,k.jsxs)(`section`,{className:`gw-panel gw-products`,children:[(0,k.jsxs)(`div`,{className:`gw-section-title`,children:[(0,k.jsx)(`h2`,{children:`商品工作清单`}),(0,k.jsxs)(`span`,{children:[U.length,` 个观察对象`]})]}),(0,k.jsxs)(`div`,{className:`gw-filters`,children:[(0,k.jsxs)(`label`,{children:[(0,k.jsx)(c,{size:14}),(0,k.jsx)(`input`,{"aria-label":`搜索经营商品`,placeholder:`搜索商品ID或项目`,value:y,onChange:e=>x(e.target.value)})]}),(0,k.jsxs)(`select`,{"aria-label":`商品运营分组`,value:V,onChange:e=>{l(e.target.value),A(``)},children:[(0,k.jsx)(`option`,{value:`all`,children:`全部运营分组`}),Object.entries(w).map(([e,t])=>(0,k.jsx)(`option`,{value:e,children:t},e))]})]}),V!==`all`&&(0,k.jsxs)(`div`,{className:`gw-rule`,children:[(0,k.jsx)(`b`,{children:w[V]}),(0,k.jsx)(`p`,{children:C.find(e=>e.id===V)?.rule||`选择商品后确认分组。归档记录不能直接证明商品属于哪个梯队。`})]}),(0,k.jsx)(`div`,{className:`gw-table-scroll`,children:(0,k.jsxs)(`table`,{children:[(0,k.jsx)(`thead`,{children:(0,k.jsxs)(`tr`,{children:[(0,k.jsx)(`th`,{children:`商品 / 所属项目`}),(0,k.jsx)(`th`,{children:`当前运营分组`}),(0,k.jsx)(`th`,{children:`已有指标`}),(0,k.jsx)(`th`,{children:`操作`})]})}),(0,k.jsx)(`tbody`,{children:U.map(e=>(0,k.jsxs)(`tr`,{className:W?.key===e.key?`selected`:``,children:[(0,k.jsx)(`td`,{children:(0,k.jsx)(a,{product:e})}),(0,k.jsx)(`td`,{children:(0,k.jsx)(`span`,{className:`gw-tag `+e.tier,children:w[e.tier]})}),(0,k.jsxs)(`td`,{children:[e.series.length,` 项`,(0,k.jsx)(`small`,{children:e.series.map(e=>e.name).slice(0,2).join(` / `)})]}),(0,k.jsx)(`td`,{children:(0,k.jsxs)(`button`,{"aria-label":`查看商品 `+e.itemId+` `+e.projectName,onClick:()=>G(e),children:[`查看 `,(0,k.jsx)(t,{size:12})]})})]},e.key))})]})}),!U.length&&(0,k.jsxs)(`div`,{className:`gw-empty`,children:[(0,k.jsx)(o,{size:29}),(0,k.jsx)(`b`,{children:f?`商品资料读取失败`:p?`正在读取商品…`:y?`没有匹配的商品`:`这个分组还没有商品`}),(0,k.jsx)(`p`,{children:`切换到“待分组”确认商品运营分组,或从项目监控中归档商品数据。`}),(0,k.jsx)(`button`,{onClick:()=>{x(``),l(`unassigned`)},children:`查看待分组`}),(0,k.jsx)(`button`,{onClick:()=>u.onModule(`projects`),children:`进入项目执行`})]})]}),(0,k.jsxs)(`section`,{ref:B,tabIndex:-1,className:`gw-panel gw-product-detail`,children:[(0,k.jsxs)(`div`,{className:`gw-section-title`,children:[(0,k.jsx)(`h2`,{children:`商品数据与下一步`}),(0,k.jsx)(`span`,{children:`点表格切换`})]}),(0,k.jsx)(j,{product:W,metricKey:M,onMetric:N,onGroup:e=>L({product:e}),onTask:z,onOpen:u.onOpen})]})]}),(0,k.jsx)(`p`,{className:`gw-detail-note`,children:`这里的“新品测试、持续孵化、重点推广”是人工保存的运营策略,不是按全店支付销售额贡献、访客和支付买家核验的第一、二、三梯队。切换分组不会自动投放或改变经营梯队。`}),(0,k.jsxs)(`footer`,{className:`gw-footer`,children:[(0,k.jsx)(`span`,{children:`规则来源:店铺链接 AI 自动化孵化与打爆`}),(0,k.jsxs)(`details`,{children:[(0,k.jsx)(`summary`,{children:`检查频率与执行状态说明`}),(0,k.jsx)(`p`,{children:`运营策略卡片展示原方案的建议检查频率,不表示调度已启用。老师结合企业数据制定具体判断标准;本页支持归档查询、趋势查看和分组保存。广告计划的建立、暂停及预算调整尚未在本页接通。`})]})]})]})})})}function N(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function P(e){return typeof e==`string`&&!!e.trim()}function F(e){if(e==null||e===``)return null;let t=typeof e==`number`?e:typeof e==`string`?Number(e):NaN;if(!Number.isFinite(t)||t<0)throw Error(`商品价格格式异常`);return t}async function I(e){async function t(t){let n=await fetch(`/v1/enterprise/`+t,{signal:e,cache:`no-store`});if(!n.ok)throw Error(n.status===401?`登录已失效,请重新登录`:n.status===403?`当前账号没有店铺商品读取权限`:`店铺商品读取失败,请重试`);if(!n.headers.get(`content-type`)?.includes(`application/json`))throw Error(`店铺商品服务尚未接入`);return n.json()}let[n,r]=await Promise.all([t(`products`),t(`shops`)]);if(!N(n)||!Array.isArray(n.products)||!Array.isArray(n.listings)||!N(r)||!Array.isArray(r.shops))throw Error(`店铺商品返回格式异常`);let i=new Map;for(let e of n.products){if(!N(e)||!P(e.product_id)||!P(e.project_id)||!P(e.name))throw Error(`商品关联项目格式异常`);i.set(e.product_id,{id:e.project_id,name:e.name})}let a=new Map;for(let e of r.shops){if(!N(e)||!P(e.id)||!P(e.name)||![`real`,`simulated`,`unverified`].includes(String(e.mode)))throw Error(`店铺资料格式异常`);a.set(e.id,{name:e.name,mode:e.mode===`real`?`declared-real`:e.mode})}let o=[],s=new Set;for(let e of n.listings){if(!N(e)||!P(e.id)||!P(e.product_id)||!P(e.shop_id)||!P(e.platform_item_id)||typeof e.title!=`string`)throw Error(`店铺商品记录不完整`);let t=a.get(e.shop_id),n=i.get(e.product_id);if(!t)continue;if(!n)throw Error(`店铺商品关联项目缺失,请刷新重试`);let r=JSON.stringify([e.shop_id,e.platform_item_id]);if(s.has(r))throw Error(`店铺商品身份重复,请核对资料`);s.add(r),o.push({key:e.id,itemId:e.platform_item_id,title:e.title,image:typeof e.image_data_url==`string`?e.image_data_url:void 0,shopId:e.shop_id,shopName:t.name,project:n.id,projectName:n.name,mode:t.mode,category:typeof e.category==`string`?e.category:void 0,price:F(e.price)})}return o}function L(){let[e,t]=(0,b.useState)(null),[n,r]=(0,b.useState)(``),[i,a]=(0,b.useState)(!0),o=(0,b.useRef)(null),s=(0,b.useCallback)(()=>{o.current?.abort();let e=new AbortController;return o.current=e,I(e.signal).then(n=>{e.signal.aborted||(t(n),r(``))}).catch(n=>{e.signal.aborted||(t(null),r(n instanceof Error?n.message:`店铺商品读取失败`))}).finally(()=>{e.signal.aborted||a(!1)})},[]),c=(0,b.useCallback)(()=>(a(!0),r(``),s()),[s]);return(0,b.useEffect)(()=>(s(),()=>o.current?.abort()),[s]),{data:e,error:n,loading:i,refresh:c}}function R(e,t,n,r=``){return e.filter(e=>(!r||e.shopId===r)&&(n===`stored-demo`?e.mode===`simulated`:e.mode!==`simulated`)).map(e=>({...e,archives:t.filter(t=>t.project===e.project&&t.itemId===e.itemId&&t.shopIds?.length===1&&t.shopIds[0]===e.shopId&&(n===`stored-demo`?t.mode===`simulated`:t.mode!==`simulated`))}))}function z(e){let t=e.archives.length===1?e.archives[0]:void 0,n=t?.series.flatMap(e=>e.points.map(e=>e.date)).sort().at(-1)||``;function r(e,r){let i=t?.series.filter(t=>e.includes(t.metric)&&r.includes(t.unit))||[];if(i.length!==1)return null;let a=i[0].points.find(e=>e.date===n);return typeof a?.value==`number`&&Number.isFinite(a.value)?a.value:null}return{date:n,paid:r([`paid`,`revenue`],[`元`,`CNY`]),uv:r([`visitors`,`uv`],[`人`]),buyers:r([`buyers`],[`人`])}}function B(e,t,n){let r=t.trim().toLowerCase();return e.filter(e=>`${e.itemId} ${e.title} ${e.shopName} ${e.projectName} ${e.category||``}`.toLowerCase().includes(r)&&(n===`all`||(e.archives.length===1?e.archives[0].tier:e.archives.length===0?`unassigned`:``)===n))}var V=20;function H(){let e=g(),n=l(),u=L(),d=S(e.api),f=e.archiveScope||`real`,[m,h]=_(`products.query`,``),[y,x]=_(`products.shopTier`,`all`),[C,E]=_(`products.key`,``),[D,O]=_(`products.metric`,``),[A,M]=(0,b.useState)(1),[N,P]=(0,b.useState)(``),[F,I]=(0,b.useState)(null),[H,U]=(0,b.useState)(null),W=(0,b.useRef)(null),G=R(u.data||[],d.data?.products||[],f,n?.selected),K=d.error||d.loading?`all`:y,q=B(G,m,K),J=Math.max(1,Math.ceil(q.length/V)),Y=Math.min(A,J),X=d.data?.products.find(e=>e.key===C&&(f===`stored-demo`?e.mode===`simulated`:e.mode!==`simulated`)),Z=G.filter(e=>e.archives.some(e=>e.series.some(e=>e.points.length))).length,Q=u.loading||d.loading;function $(e){E(e.key),O(``),requestAnimationFrame(()=>{W.current?.scrollIntoView({behavior:`smooth`,block:`start`}),W.current?.focus({preventScroll:!0})})}return(0,k.jsx)(`div`,{className:`products-module`,children:(0,k.jsx)(`div`,{className:`gw shop-catalog`,children:(0,k.jsxs)(`div`,{className:`gw-body`,children:[(0,k.jsxs)(`header`,{className:`gw-header`,children:[(0,k.jsxs)(`div`,{children:[(0,k.jsx)(`small`,{children:`商品 / 全部商品`}),(0,k.jsx)(`h1`,{children:`店铺商品`}),(0,k.jsx)(`p`,{children:`查看店铺内已建档的商品与经营数据,再安排测试、孵化和推广。`})]}),(0,k.jsxs)(`div`,{className:`gw-header-actions`,children:[(0,k.jsxs)(`span`,{children:[(0,k.jsx)(`i`,{className:`gw-dot`}),`店铺建档与归档数据 · 非实时`]}),(0,k.jsxs)(`button`,{disabled:Q,onClick:()=>{u.refresh(),d.refresh()},children:[(0,k.jsx)(s,{size:14}),Q?`读取中`:`刷新数据`]})]})]}),(0,k.jsx)(`div`,{className:`gw-scope`,children:(0,k.jsx)(`span`,{children:n?.shops.find(e=>e.id===n.selected)?.name||`全部授权店铺`})}),u.error&&(0,k.jsxs)(`p`,{className:`gw-message`,role:`alert`,children:[u.error,` `,(0,k.jsx)(`button`,{onClick:()=>void u.refresh(),children:`重试店铺商品`})]}),d.error&&(0,k.jsxs)(`p`,{className:`gw-message`,role:`alert`,children:[`经营指标暂不可用:`,d.error,` `,(0,k.jsx)(`button`,{onClick:()=>void d.refresh(),children:`重试经营指标`})]}),N&&(0,k.jsx)(`p`,{className:`gw-message`,role:`status`,children:N}),(0,k.jsxs)(`section`,{className:`gw-panel shop-catalog-list`,"aria-label":`店铺商品列表`,children:[(0,k.jsxs)(`div`,{className:`gw-section-title`,children:[(0,k.jsx)(`h2`,{children:`全部商品`}),(0,k.jsx)(`span`,{children:u.loading?`正在读取商品…`:u.error?`商品总数暂不可用`:`当前范围 ${G.length} 个已建档商品`})]}),!u.error&&u.data&&(0,k.jsxs)(`div`,{className:`shop-catalog-summary`,children:[(0,k.jsxs)(`span`,{children:[`已有经营归档 `,(0,k.jsx)(`b`,{children:d.error||d.loading?`—`:Z})]}),(0,k.jsxs)(`span`,{children:[`待补充经营数据 `,(0,k.jsx)(`b`,{children:d.error||d.loading?`—`:G.length-Z})]}),(0,k.jsx)(`span`,{children:`未归档的指标显示“—”`})]}),(0,k.jsxs)(`div`,{className:`gw-filters`,children:[(0,k.jsxs)(`label`,{children:[(0,k.jsx)(c,{size:15}),(0,k.jsx)(`input`,{"aria-label":`搜索店铺商品`,placeholder:`搜索商品名称、ID、店铺、类目或项目`,value:m,onChange:e=>{h(e.target.value),M(1)}})]}),(0,k.jsxs)(`select`,{"aria-label":`筛选店铺商品分组`,value:K,disabled:d.loading||!!d.error,onChange:e=>{x(e.target.value),M(1)},children:[(0,k.jsx)(`option`,{value:`all`,children:`全部运营分组`}),Object.entries(w).map(([e,t])=>(0,k.jsx)(`option`,{value:e,children:t},e))]})]}),(0,k.jsx)(`div`,{className:`gw-table-scroll`,children:(0,k.jsxs)(`table`,{children:[(0,k.jsx)(`thead`,{children:(0,k.jsxs)(`tr`,{children:[(0,k.jsx)(`th`,{children:`商品 / 店铺`}),(0,k.jsx)(`th`,{children:`建档价格(元)`}),(0,k.jsx)(`th`,{children:`访客数`}),(0,k.jsx)(`th`,{children:`支付买家数`}),(0,k.jsx)(`th`,{children:`支付销售额(元)`}),(0,k.jsx)(`th`,{children:`统计日期`}),(0,k.jsx)(`th`,{children:`运营分组`}),(0,k.jsx)(`th`,{children:`操作`})]})}),(0,k.jsx)(`tbody`,{children:q.slice((Y-1)*V,Y*V).map(n=>{let r=z(n),i=n.archives.length===1?n.archives[0]:void 0;return(0,k.jsxs)(`tr`,{className:i?.key===X?.key&&i?`selected`:``,children:[(0,k.jsxs)(`td`,{children:[(0,k.jsx)(a,{product:n}),(0,k.jsxs)(`small`,{children:[n.category||`类目未录入`,` · `,n.projectName]})]}),(0,k.jsx)(`td`,{children:T(n.price)}),(0,k.jsx)(`td`,{children:T(r.uv)}),(0,k.jsx)(`td`,{children:T(r.buyers)}),(0,k.jsx)(`td`,{children:T(r.paid)}),(0,k.jsxs)(`td`,{children:[r.date||`—`,(0,k.jsx)(`small`,{children:d.loading?`读取指标中`:d.error?`指标读取失败`:n.archives.length>1?`多份归档,分别查看`:r.date?`已归档`:`暂无经营数据`})]}),(0,k.jsx)(`td`,{children:d.error||d.loading?`—`:n.archives.length>1?`分组待核对`:(0,k.jsx)(`span`,{className:`gw-tag `+(i?.tier||`unassigned`),children:w[i?.tier||`unassigned`]})}),(0,k.jsx)(`td`,{children:n.archives.length?n.archives.map((e,r)=>(0,k.jsxs)(`button`,{"aria-label":`查看商品 ${n.itemId} ${n.shopName} 归档 ${r+1}`,onClick:()=>$(e),children:[n.archives.length>1?`查看归档 ${r+1}`:`查看数据`,(0,k.jsx)(t,{size:12})]},e.key)):(0,k.jsxs)(`button`,{disabled:d.loading||!!d.error,onClick:()=>e.onOpen(n.project,{tab:`monitor`,itemId:n.itemId}),children:[d.loading?`读取中`:d.error?`指标不可用`:`补充数据`,(0,k.jsx)(t,{size:12})]})})]},n.key)})})]})}),!q.length&&(0,k.jsxs)(`div`,{className:`gw-empty`,role:`status`,children:[(0,k.jsx)(o,{size:29}),(0,k.jsx)(`b`,{children:u.error?`店铺商品读取失败`:u.loading?`正在读取店铺商品…`:m||K!==`all`?`没有匹配的商品`:`当前范围还没有已建档商品`}),(0,k.jsx)(`p`,{children:u.error?`请重试,或检查账号与数据服务连接。`:u.loading?`正在读取当前授权范围的商品目录。`:m||K!==`all`?`调整搜索或运营分组筛选后再查看。`:`请先关联店铺商品。已关联商品即使没有经营归档,也会显示在这里。`}),!u.loading&&!u.error&&(m||K!==`all`)&&(0,k.jsx)(`button`,{onClick:()=>{h(``),x(`all`),M(1)},children:`清除筛选`})]}),q.length>0&&(0,k.jsxs)(`div`,{className:`shop-catalog-pagination`,children:[(0,k.jsxs)(`span`,{children:[`筛选结果 `,q.length,` 个 · 第 `,Y,` / `,J,` 页`]}),(0,k.jsx)(`button`,{disabled:Y<=1,onClick:()=>M(Y-1),children:`上一页`}),(0,k.jsx)(`button`,{disabled:Y>=J,onClick:()=>M(Y+1),children:`下一页`})]})]}),(0,k.jsx)(`p`,{className:`gw-detail-note`,children:`仅显示当前授权店铺已建档商品,尚不代表平台全店商品已同步。经营指标按每个商品的最新归档统计日展示,不同商品日期可能不同;缺值不补零,多店合并归档不分摊到单店。`}),X&&(0,k.jsxs)(`section`,{ref:W,tabIndex:-1,className:`gw-panel gw-product-detail shop-catalog-detail`,children:[(0,k.jsxs)(`div`,{className:`gw-section-title`,children:[(0,k.jsx)(`h2`,{children:`商品数据与下一步`}),(0,k.jsx)(`button`,{"aria-label":`关闭商品详情`,onClick:()=>E(``),children:(0,k.jsx)(p,{size:15})})]}),(0,k.jsx)(j,{product:X,metricKey:D,onMetric:O,onGroup:I,onTask:U,onOpen:e.onOpen})]}),H&&(0,k.jsx)(i,{product:H,onOpen:e.onOpen,onClose:()=>U(null)}),F&&(0,k.jsx)(r,{product:F,products:(d.data?.products||[]).filter(e=>f===`stored-demo`?e.mode===`simulated`:e.mode!==`simulated`),onDirty:e.onDirty,onBusy:e.onBusy,onClose:()=>I(null),onSave:async(t,n,r,i)=>{await v(e.api,t,n,r,i),P(await d.refresh()?`分组已保存,商品数据已更新。`:`分组已保存,但数据读取失败,请刷新后查看。`)}})]})})})}var U=(0,b.lazy)(()=>m(()=>import(`./project-public-DWTt808B.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url));function W({section:e,onSection:t,project:n}){return n?(0,k.jsx)(b.Suspense,{fallback:(0,k.jsx)(`p`,{role:`status`,children:`正在打开商品工具…`}),children:(0,k.jsx)(U,{section:e,project:n})}):e===`all`?(0,k.jsx)(H,{}):(0,k.jsx)(M,{section:e,onSection:t})}export{W as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./project-public-CgW1u7BI.js","./index-DLSVWUSu.js","./index-BgJNmU0Z.css","./arrow-up-right-IBQoN72x.js","./book-open-Cqdn6s-H.js","./link-2-VLti-YG9.js","./chevron-right-e65CaeL6.js","./download-DfM49VvV.js","./file-text-DKAT5fzJ.js","./plus-D78h7lrw.js","./search-DFdSppzm.js","./workspace-view-state-D0ujRczW.js","./EmptyState-CUHuNsaV.js","./layers-CjsT_HGi.js","./HelpTip-BqRBO41J.js","./HelpTip-BsHPhMNf.css","./project-public-IxjCdnaB.css"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./refresh-cw-CxbRf97c.js";import{t}from"./search-DFdSppzm.js";import{g as n,o as r,t as i,y as a}from"./index-DLSVWUSu.js";import{n as o}from"./module-host-DNtiV4gZ.js";import{n as s}from"./workspace-view-state-D0ujRczW.js";import"./public-C-PBMVOQ.js";var c=a(n(),1);function l(e){let[t,n]=(0,c.useState)(null),[r,i]=(0,c.useState)(``),[a,o]=(0,c.useState)(!0),s=(0,c.useRef)(0),l=(0,c.useCallback)(()=>{let t=++s.current;return e().then(e=>{s.current===t&&(n(e),i(``))}).catch(e=>{s.current===t&&i(e instanceof Error?e.message:`资料读取失败`)}).finally(()=>{s.current===t&&o(!1)})},[e]),u=(0,c.useCallback)(()=>{s.current++},[]);return(0,c.useEffect)(()=>(l(),u),[l,u]),{data:t,error:r,busy:a,refresh:(0,c.useCallback)(()=>{o(!0),i(``),l()},[l])}}async function u(e){let t=await e(`/growth-center?view=catalog`);if(!t||typeof t!=`object`||!(`catalog`in t)||!Array.isArray(t.catalog)||!(`updatedAt`in t)||typeof t.updatedAt!=`string`)throw Error(`资料目录格式异常,请刷新重试`);if(!t.catalog.every(e=>e&&typeof e.id==`string`&&typeof e.project==`string`&&typeof e.title==`string`&&typeof e.created==`string`&&typeof e.mode==`string`))throw Error(`资料目录记录不完整`);return t}var d=r();function f(){let{api:n,onOpen:r}=o(),{data:i,error:a,busy:f,refresh:p}=l((0,c.useCallback)(()=>u(n),[n])),[m,h]=s(`resources.scope`,`real`),[g,_]=s(`resources.query`,``),v=(i?.catalog||[]).filter(e=>m===`stored-demo`?e.mode===`simulated`:e.mode!==`simulated`),y=[...v].reverse().filter(e=>`${e.title} ${e.projectName} ${e.source}`.toLowerCase().includes(g.toLowerCase())),b={simulated:`模拟数据`,"declared-real":`来源标注真实`,unverified:`来源待核实`};return(0,d.jsx)(`div`,{className:`resources-module gw`,children:(0,d.jsxs)(`div`,{className:`gw-body`,children:[(0,d.jsxs)(`header`,{className:`gw-header`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`small`,{children:`工作台 / 数据中心`}),(0,d.jsx)(`h1`,{children:`经营数据中心`})]}),(0,d.jsxs)(`div`,{className:`gw-header-actions`,children:[(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`i`,{className:`gw-dot`}),m===`stored-demo`?`模拟归档 · 非真实经营`:`归档数据 · 非实时`]}),(0,d.jsxs)(`button`,{onClick:()=>p(),disabled:f,children:[(0,d.jsx)(e,{size:14}),f?`读取中`:`刷新数据`]})]})]}),(0,d.jsxs)(`div`,{className:`gw-scope`,children:[(0,d.jsx)(`div`,{children:[[`real`,`非模拟资料`],[`stored-demo`,`模拟资料`]].map(([e,t])=>(0,d.jsx)(`button`,{"aria-pressed":m===e,onClick:()=>h(e),children:t},e))}),(0,d.jsx)(`span`,{children:i?`${new Date(i.updatedAt).toLocaleString(`zh-CN`)} 读取归档`:`正在读取归档…`})]}),a&&(0,d.jsxs)(`p`,{role:`alert`,className:`gw-message`,children:[a,` `,(0,d.jsx)(`button`,{onClick:()=>p(),children:`重试`})]}),(0,d.jsxs)(`section`,{className:`gw-panel`,children:[(0,d.jsxs)(`div`,{className:`gw-section-title`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`h2`,{children:`数据资产目录`}),(0,d.jsx)(`p`,{children:`按项目保存原件,每份资料都有来源和日期。`})]}),(0,d.jsxs)(`span`,{children:[v.length,` 个数据集`]})]}),(0,d.jsx)(`div`,{className:`gw-filters`,children:(0,d.jsxs)(`label`,{children:[(0,d.jsx)(t,{size:14}),(0,d.jsx)(`input`,{"aria-label":`搜索经营数据集`,value:g,onChange:e=>_(e.target.value),placeholder:`搜索数据集、项目或来源`})]})}),(0,d.jsx)(`div`,{className:`gw-table-scroll`,children:(0,d.jsxs)(`table`,{children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{children:`数据集`}),(0,d.jsx)(`th`,{children:`所属项目`}),(0,d.jsx)(`th`,{children:`统计时间`}),(0,d.jsx)(`th`,{children:`数据状态`}),(0,d.jsx)(`th`,{children:`记录数`}),(0,d.jsx)(`th`,{children:`查看`})]})}),(0,d.jsx)(`tbody`,{children:y.map(e=>(0,d.jsxs)(`tr`,{children:[(0,d.jsxs)(`td`,{children:[(0,d.jsx)(`b`,{children:e.title}),(0,d.jsx)(`small`,{children:e.source||`未提供来源`})]}),(0,d.jsx)(`td`,{children:e.projectName}),(0,d.jsxs)(`td`,{children:[e.period||`未标注统计窗口`,(0,d.jsxs)(`small`,{children:[`归档 `,e.created.slice(0,10)]})]}),(0,d.jsx)(`td`,{children:b[e.mode]}),(0,d.jsx)(`td`,{children:e.rowCount}),(0,d.jsxs)(`td`,{children:[(0,d.jsx)(`a`,{href:`/api/workbench/`+e.project+`/file/`+e.id,children:`原件`}),(0,d.jsx)(`button`,{onClick:()=>r(e.project,{tab:`data`,datasetId:e.id}),children:`项目数据`})]})]},e.id))})]})}),!y.length&&!a&&(0,d.jsx)(`p`,{role:`status`,children:f?`正在读取资料…`:g?`没有匹配的数据集,请调整搜索。`:`当前资料范围没有数据集。`})]})]})})}var p=(0,c.lazy)(()=>i(()=>import(`./project-public-CgW1u7BI.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url));function m({section:e,project:t}){return t?(0,d.jsx)(c.Suspense,{fallback:(0,d.jsx)(`p`,{role:`status`,children:`正在打开项目资料…`}),children:(0,d.jsx)(p,{section:e,project:t})}):(0,d.jsx)(f,{})}export{m as default};
@@ -0,0 +1 @@
1
+ import{g as e,y as t}from"./index-DLSVWUSu.js";import{n}from"./workspace-view-state-D0ujRczW.js";import"./public-C-PBMVOQ.js";import{t as r}from"./api-KZa8CR8X.js";var i=t(e(),1),a={category:`类目`,shop:`店铺`,product:`商品`};function o(e){let[t,a]=n(`market.favorites.collection`,null),[o,s]=(0,i.useState)(``),[c,l]=(0,i.useState)(``),[u,d]=(0,i.useState)(!0),[f,p]=(0,i.useState)(null),[m,h]=(0,i.useState)(0),[g,_]=(0,i.useState)(``),[v,y]=(0,i.useState)({kind:e,count:24}),b=(0,i.useRef)(!1),x=(0,i.useRef)(new Set),S=(0,i.useCallback)(()=>h(e=>e+1),[]),C=(0,i.useCallback)(()=>{b.current=!0,S()},[S]),w=(0,i.useCallback)(t=>y(n=>n.kind===e&&n.count===t?n:{kind:e,count:t}),[e]),T=(0,i.useMemo)(()=>(t?.entries||[]).filter(t=>t.kind===e),[t,e]),E=v.kind===e?v.count:24;(0,i.useEffect)(()=>(window.addEventListener(`omni:market-favorites-changed`,S),()=>window.removeEventListener(`omni:market-favorites-changed`,S)),[S]),(0,i.useEffect)(()=>{let e=new AbortController;return Promise.resolve().then(async()=>{if(!e.signal.aborted){d(!0),s(``),l(``);try{let t=await r.favorites(e.signal);if(t.contractVersion!==1||!Array.isArray(t.entries))throw Error(`收藏数据契约版本不兼容`);e.signal.aborted||(x.current.clear(),b.current&&(t.entries=t.entries.map(e=>({...e,needsRefresh:!0}))),b.current=!1,a(t))}catch(t){e.signal.aborted||(t&&typeof t==`object`&&`status`in t&&[401,403].includes(Number(t.status))&&a(null),s(t instanceof Error?t.message:`收藏读取失败`))}finally{e.signal.aborted||d(!1)}}}),()=>e.abort()},[m,a]),(0,i.useEffect)(()=>{let t=T.slice(0,E).filter(e=>e.needsRefresh&&!x.current.has(e.kind+`:`+e.key)).slice(0,6);if(!t.length)return;let n=new AbortController;return Promise.resolve().then(async()=>{if(!n.signal.aborted){p(e);try{let e=await r.refreshFavorites(t.map(e=>({kind:e.kind,key:e.key})),n.signal);if(n.signal.aborted)return;t.forEach(e=>x.current.add(e.kind+`:`+e.key));let i=new Map(e.entries.map(e=>[e.kind+`:`+e.key,e]));a(e=>e&&{...e,entries:e.entries.map(e=>i.get(e.kind+`:`+e.key)||e)}),e.failed.length&&l(`部分收藏暂时无法更新,已保存的资料仍可使用。`)}catch(e){if(!n.signal.aborted){t.forEach(e=>x.current.add(e.kind+`:`+e.key));let n=e&&typeof e==`object`&&`status`in e?e.status:void 0;n===401||n===403?(a(null),s(`访问授权已变化,请重新检查收藏。`)):l(`资料更新暂未完成,可稍后点击刷新收藏。`)}}finally{n.signal.aborted||p(t=>t===e?null:t)}}}),()=>{n.abort(),p(t=>t===e?null:t)}},[T,e,E,a]);async function D(e,t,n){_(e+`:`+t),s(``);try{return await r.favorite(e,t,n),S(),!0}catch(e){return s(e instanceof Error?e.message:`收藏操作失败`),!1}finally{_(``)}}function O(t){let n=T.find(e=>e.key===t);return{kind:e,key:t,category:n?.snapshot.category,record:n?.snapshot.record,categoryPath:n?.snapshot.categoryPath}}return{collection:t,items:T,error:o,syncError:c,loading:u&&!t,syncing:f===e,busy:g,refresh:C,onVisibleCount:w,save:D,resolve:O}}var s={home:`_home_176h4_1`,top:`_top_176h4_2`,panel:`_panel_176h4_6`,row:`_row_176h4_7`,empty:`_empty_176h4_9`,recordInfo:`_recordInfo_176h4_10`,recordText:`_recordText_176h4_10`,metadata:`_metadata_176h4_10`,thumbnail:`_thumbnail_176h4_10`,actions:`_actions_176h4_11`,tabs:`_tabs_176h4_11`,adder:`_adder_176h4_15`,picker:`_picker_176h4_17`,pickRow:`_pickRow_176h4_18`};export{a as n,o as r,s as t};
@@ -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-DLSVWUSu.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};
@@ -0,0 +1 @@
1
+ import{g as e,y as t}from"./index-DLSVWUSu.js";import{Bt as n,Ct as r,Ht as i,Lt as a,N as o,Ot as s,S as c,Ut as l,Vt as u,bt as d,kt as f,m as p,s as m,y as h}from"./CartesianChart-CP7p2vlm.js";var g=t(e());function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(null,arguments)}var v=e=>{var{cx:t,cy:n,r:i,className:a}=e,o=l(`recharts-dot`,a);return f(t)&&f(n)&&f(i)?g.createElement(`circle`,_({},u(e),r(e),{className:o,cx:t,cy:n,r:i})):null},y=[`points`];function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?b(Object(n),!0).forEach(function(t){S(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function S(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){var t=w(e,`string`);return typeof t==`symbol`?t:t+``}function w(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(null,arguments)}function E(e,t){if(e==null)return{};var n,r,i=D(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function D(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function O(e){var{option:t,dotProps:n,className:r}=e;if((0,g.isValidElement)(t))return(0,g.cloneElement)(t,n);if(typeof t==`function`)return t(n);var i=l(r,typeof t==`boolean`?``:t.className),a=n??{},{points:o}=a,s=E(a,y);return g.createElement(v,T({},s,{className:i}))}function k(e,t){return e==null?!1:t?!0:e.length===1}function A(e){var{points:t,dot:r,className:i,dotClassName:s,dataKey:c,baseProps:l,needClip:u,clipPathId:d,zIndex:f=o.scatter}=e;if(!k(t,r))return null;var m=p(r),_=n(r),v=t.map((e,n)=>{var i=x(x(x({r:3},l),_),{},{index:n,cx:e.x??void 0,cy:e.y??void 0,dataKey:c,value:e.value,payload:e.payload,points:t});return g.createElement(O,{key:`dot-${n}`,option:r,dotProps:i,className:s})}),y={};return u&&d!=null&&(y.clipPath=`url(#clipPath-${m?``:`dots-`}${d})`),g.createElement(h,{zIndex:f},g.createElement(a,T({className:i},y),v))}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?j(Object(n),!0).forEach(function(t){N(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function N(e,t,n){return(t=P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e){var t=F(e,`string`);return typeof t==`symbol`?t:t+``}function F(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var I=e=>{var{point:t,childIndex:n,mainColor:o,activeDot:s,dataKey:c,clipPath:l}=e;if(s===!1||t.x==null||t.y==null)return null;var u=M(M(M({},{index:n,dataKey:c,cx:t.x,cy:t.y,r:4,fill:o??`none`,strokeWidth:2,stroke:`#fff`,payload:t.payload,value:t.value}),i(s)),r(s)),d=(0,g.isValidElement)(s)?(0,g.cloneElement)(s,u):typeof s==`function`?s(u):g.createElement(v,u);return g.createElement(a,{className:`recharts-active-dot`,clipPath:l},d)};function L(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i,clipPath:a,zIndex:l=o.activeDot}=e,u=d(c),f=m();if(t==null||f==null)return null;var p=t.find(e=>f.includes(e.payload));return s(p)?null:g.createElement(h,{zIndex:l},g.createElement(I,{point:p,childIndex:Number(u),mainColor:n,dataKey:i,activeDot:r,clipPath:a}))}function R(e){var t=i(e),n=3,r=2;if(t!=null){var{r:a,strokeWidth:o}=t,s=Number(a),c=Number(o);return(Number.isNaN(s)||s<0)&&(s=n),(Number.isNaN(c)||c<0)&&(c=r),{r:s,strokeWidth:c}}return{r:n,strokeWidth:r}}export{L as n,A as r,R as 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-DLSVWUSu.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};