omni-context-cli 0.0.90 → 0.0.92

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 (116) hide show
  1. package/README.md +12 -8
  2. package/README.zh-CN.md +12 -8
  3. package/dist/agents/audit.md +77 -0
  4. package/dist/agents/deduce.md +1 -0
  5. package/dist/agents/explore.md +1 -0
  6. package/dist/agents/glance.md +1 -0
  7. package/dist/agents/recall.md +1 -0
  8. package/dist/agents/review.md +1 -0
  9. package/dist/agents/search.md +1 -0
  10. package/dist/cli.js +7 -7
  11. package/dist/clients/extension.vsix +0 -0
  12. package/dist/clients/web/assets/App-CBmFCdgC.css +1 -0
  13. package/dist/clients/web/assets/App-CM8Va3JQ.js +2 -0
  14. package/dist/clients/web/assets/ImageWorkshop-D0woOaMP.js +1 -0
  15. package/dist/clients/web/assets/_baseUniq-8ZoXEUbL.js +1 -0
  16. package/dist/clients/web/assets/arc-B2TpLZAc.js +1 -0
  17. package/dist/clients/web/assets/architectureDiagram-VXUJARFQ-sCw1Bqxj.js +1 -0
  18. package/dist/clients/web/assets/blockDiagram-VD42YOAC-TzLCV8cu.js +1 -0
  19. package/dist/clients/web/assets/c4Diagram-YG6GDRKO-CB75g8mk.js +1 -0
  20. package/dist/clients/web/assets/channel-Cc6WLpkH.js +1 -0
  21. package/dist/clients/web/assets/chunk-4BX2VUAB-CnCH9PHV.js +1 -0
  22. package/dist/clients/web/assets/chunk-55IACEB6-j6kgk2Ub.js +1 -0
  23. package/dist/clients/web/assets/chunk-B4BG7PRW-CU5TkBMe.js +1 -0
  24. package/dist/clients/web/assets/chunk-DI55MBZ5-B9PNM453.js +1 -0
  25. package/dist/clients/web/assets/chunk-FMBD7UC4-ubTGnudB.js +1 -0
  26. package/dist/clients/web/assets/chunk-QN33PNHL-D5no8Jfp.js +1 -0
  27. package/dist/clients/web/assets/chunk-QZHKN3VN-RIiVnjQx.js +1 -0
  28. package/dist/clients/web/assets/chunk-TZMSLE5B-DTy2vR2B.js +1 -0
  29. package/dist/clients/web/assets/classDiagram-2ON5EDUG-8oZ_o2z8.js +1 -0
  30. package/dist/clients/web/assets/classDiagram-v2-WZHVMYZB-8oZ_o2z8.js +1 -0
  31. package/dist/clients/web/assets/clone-Z2wHm8pw.js +1 -0
  32. package/dist/clients/web/assets/cose-bilkent-S5V4N54A-Bqct6Lvl.js +1 -0
  33. package/dist/clients/web/assets/dagre-6UL2VRFP-441VQkK1.js +1 -0
  34. package/dist/clients/web/assets/diagram-PSM6KHXK-BO9H2Aak.js +1 -0
  35. package/dist/clients/web/assets/diagram-QEK2KX5R-3lGBBCVw.js +1 -0
  36. package/dist/clients/web/assets/diagram-S2PKOQOG-DY84HL8G.js +1 -0
  37. package/dist/clients/web/assets/erDiagram-Q2GNP2WA-DWcgMtNO.js +1 -0
  38. package/dist/clients/web/assets/flowDiagram-NV44I4VS-Ybex1wXj.js +1 -0
  39. package/dist/clients/web/assets/ganttDiagram-JELNMOA3-ChWIAt1T.js +1 -0
  40. package/dist/clients/web/assets/gitGraphDiagram-NY62KEGX-ClJFv0ul.js +1 -0
  41. package/dist/clients/web/assets/graph-Cs6Qxtax.js +1 -0
  42. package/dist/clients/web/assets/index-DPbcKIIg.js +2 -0
  43. package/dist/clients/web/assets/index-Fz55nSNP.css +1 -0
  44. package/dist/clients/web/assets/infoDiagram-WHAUD3N6-DnTUhHY0.js +1 -0
  45. package/dist/clients/web/assets/journeyDiagram-XKPGCS4Q-CIENPsGT.js +1 -0
  46. package/dist/clients/web/assets/kanban-definition-3W4ZIXB7-AhFkjsY3.js +1 -0
  47. package/dist/clients/web/assets/layout-BntZLQYy.js +1 -0
  48. package/dist/clients/web/assets/linear-CbNyjCBb.js +1 -0
  49. package/dist/clients/web/assets/min-1nUrt3JX.js +1 -0
  50. package/dist/clients/web/assets/mindmap-definition-VGOIOE7T-Cs3o7Dfz.js +1 -0
  51. package/dist/clients/web/assets/pieDiagram-ADFJNKIX-yQPBfZ8y.js +1 -0
  52. package/dist/clients/web/assets/quadrantDiagram-AYHSOK5B-5kPfWslR.js +1 -0
  53. package/dist/clients/web/assets/requirementDiagram-UZGBJVZJ-DoucrOtZ.js +1 -0
  54. package/dist/clients/web/assets/sankeyDiagram-TZEHDZUN-PTFbpc-u.js +1 -0
  55. package/dist/clients/web/assets/sequenceDiagram-WL72ISMW-BZ33cKfm.js +1 -0
  56. package/dist/clients/web/assets/stateDiagram-FKZM4ZOC-C4idf-WB.js +1 -0
  57. package/dist/clients/web/assets/stateDiagram-v2-4FDKWEC3-B-b2Duqy.js +1 -0
  58. package/dist/clients/web/assets/timeline-definition-IT6M3QCI-P1su699P.js +1 -0
  59. package/dist/clients/web/assets/treemap-KMMF4GRG-BmD_DFh3.js +1 -0
  60. package/dist/clients/web/assets/useAppearance-PXtz8423.js +1 -0
  61. package/dist/clients/web/assets/xychartDiagram-PRI3JC2R-DtIpn1yU.js +1 -0
  62. package/dist/clients/web/index.html +2 -2
  63. package/dist/skills/audit/SKILL.md +69 -0
  64. package/dist/skills/cookbook/SKILL.md +1 -1
  65. package/dist/skills/save-atlas/SKILL.md +12 -0
  66. package/dist/skills/simplify/SKILL.md +1 -1
  67. package/dist/workflows/general.md +1 -0
  68. package/dist/workflows/programming.md +4 -4
  69. package/package.json +1 -1
  70. package/dist/clients/web/assets/_baseUniq-DmXMUmS1.js +0 -1
  71. package/dist/clients/web/assets/arc-BI_u3fUi.js +0 -1
  72. package/dist/clients/web/assets/architectureDiagram-VXUJARFQ-SdbVcUgb.js +0 -1
  73. package/dist/clients/web/assets/blockDiagram-VD42YOAC-Dgdw02Dx.js +0 -1
  74. package/dist/clients/web/assets/c4Diagram-YG6GDRKO-BBWW1C-U.js +0 -1
  75. package/dist/clients/web/assets/channel-BhvEAUA0.js +0 -1
  76. package/dist/clients/web/assets/chunk-4BX2VUAB-Db240ZuE.js +0 -1
  77. package/dist/clients/web/assets/chunk-55IACEB6-DVkBB5tN.js +0 -1
  78. package/dist/clients/web/assets/chunk-B4BG7PRW-Dby3xfQV.js +0 -1
  79. package/dist/clients/web/assets/chunk-DI55MBZ5-Bfv0NfQG.js +0 -1
  80. package/dist/clients/web/assets/chunk-FMBD7UC4-cCEjZ-PC.js +0 -1
  81. package/dist/clients/web/assets/chunk-QN33PNHL-BV-_VgzY.js +0 -1
  82. package/dist/clients/web/assets/chunk-QZHKN3VN-Gs37F5Ic.js +0 -1
  83. package/dist/clients/web/assets/chunk-TZMSLE5B-DgC76yOA.js +0 -1
  84. package/dist/clients/web/assets/classDiagram-2ON5EDUG-Dyqgnar4.js +0 -1
  85. package/dist/clients/web/assets/classDiagram-v2-WZHVMYZB-Dyqgnar4.js +0 -1
  86. package/dist/clients/web/assets/clone-BboBU3Th.js +0 -1
  87. package/dist/clients/web/assets/cose-bilkent-S5V4N54A-bneOLhzB.js +0 -1
  88. package/dist/clients/web/assets/dagre-6UL2VRFP-ljEPzfmc.js +0 -1
  89. package/dist/clients/web/assets/diagram-PSM6KHXK-D0qLR_dT.js +0 -1
  90. package/dist/clients/web/assets/diagram-QEK2KX5R-DtpACMvD.js +0 -1
  91. package/dist/clients/web/assets/diagram-S2PKOQOG-Cj0GsMab.js +0 -1
  92. package/dist/clients/web/assets/erDiagram-Q2GNP2WA-3sJDRSxi.js +0 -1
  93. package/dist/clients/web/assets/flowDiagram-NV44I4VS-8hEf0ody.js +0 -1
  94. package/dist/clients/web/assets/ganttDiagram-JELNMOA3-BISgxk3R.js +0 -1
  95. package/dist/clients/web/assets/gitGraphDiagram-NY62KEGX-B_JfDS-5.js +0 -1
  96. package/dist/clients/web/assets/graph-BP-dUxFo.js +0 -1
  97. package/dist/clients/web/assets/index-5mQ2UgiF.css +0 -1
  98. package/dist/clients/web/assets/index-p16PXaGU.js +0 -2
  99. package/dist/clients/web/assets/infoDiagram-WHAUD3N6-Dc1GFa63.js +0 -1
  100. package/dist/clients/web/assets/journeyDiagram-XKPGCS4Q-BEHx0kcS.js +0 -1
  101. package/dist/clients/web/assets/kanban-definition-3W4ZIXB7-COM5k42v.js +0 -1
  102. package/dist/clients/web/assets/layout-DZRhlj_5.js +0 -1
  103. package/dist/clients/web/assets/linear-Fc7iPbNO.js +0 -1
  104. package/dist/clients/web/assets/min-DemC8Mr5.js +0 -1
  105. package/dist/clients/web/assets/mindmap-definition-VGOIOE7T-Cffc7FCU.js +0 -1
  106. package/dist/clients/web/assets/pieDiagram-ADFJNKIX-Dd5xGHtJ.js +0 -1
  107. package/dist/clients/web/assets/quadrantDiagram-AYHSOK5B-DysuwPQH.js +0 -1
  108. package/dist/clients/web/assets/requirementDiagram-UZGBJVZJ-DoWGHHXZ.js +0 -1
  109. package/dist/clients/web/assets/sankeyDiagram-TZEHDZUN-i3lt19eC.js +0 -1
  110. package/dist/clients/web/assets/sequenceDiagram-WL72ISMW-n0Ibqx5U.js +0 -1
  111. package/dist/clients/web/assets/stateDiagram-FKZM4ZOC-iA9KFFKN.js +0 -1
  112. package/dist/clients/web/assets/stateDiagram-v2-4FDKWEC3-CNCP3dFh.js +0 -1
  113. package/dist/clients/web/assets/timeline-definition-IT6M3QCI-BI2_Hz7G.js +0 -1
  114. package/dist/clients/web/assets/treemap-KMMF4GRG-D7R01SBC.js +0 -1
  115. package/dist/clients/web/assets/xychartDiagram-PRI3JC2R-CHEh-H7p.js +0 -1
  116. package/dist/skills/landmark/SKILL.md +0 -12
@@ -0,0 +1 @@
1
+ import{R as e,r as t,j as o,e as r,d as n}from"./index-DPbcKIIg.js";const c=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M6 2h12v2H6zm0 18h12v2H6zM2 6h2v12H2zm18 0h2v12h-2zm-2-2h2v2h-2zm-2 2h2v2h-2zm-2 2h2v2h-2zm-2 2h2v2h-2zm-2 2h2v2h-2zm-2 2h2v2H8zm-2 2h2v2H6zm12 2h2v2h-2zM4 4h2v2H4zm0 14h2v2H4z"})),i=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M10 18H8v-2h2v2Zm-2-2H6v-2h2v2Zm4-2v2h-2v-2h2Zm-6 0H4v-2h2v2Zm8 0h-2v-2h2v2Zm2-2h-2v-2h2v2Zm2-2h-2V8h2v2Zm2-2h-2V6h2v2Z"})),s=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M13 16h-2v-2h2v2Zm-2-2H9v-2h2v2Zm4 0h-2v-2h2v2Zm-6-2H7v-2h2v2Zm8 0h-2v-2h2v2ZM7 10H5V8h2v2Zm12 0h-2V8h2v2Z"})),h=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M8 6h12v2H8zM4 2h12v2H4zm2 6h2v12H6zM2 4h2v12H2zm6 16h12v2H8zM20 8h2v12h-2zm-4-4h2v2h-2zM4 16h2v2H4z"})),a=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M4 2h16v2H4zm0 18h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zm-4 8h2v2h-2zm-2 2h2v2h-2zm4 0h2v2h-2zm-8 0h2v2h-2zm2 2h2v2h-2zm2 2h2v2h-2z"}),e.createElement("path",{d:"M20 16h2v2h-2zM8 16h2v2H8zm-2 2h2v2H6zM8 6h2v2H8zM6 8h2v2H6zm2 2h2v2H8zm2-2h2v2h-2z"})),l=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M13 22h-2v-6h2v6Zm-6-3H5v-2h2v2Zm12 0h-2v-2h2v2ZM9 17H7v-2h2v2Zm8 0h-2v-2h2v2Zm-9-4H2v-2h6v2Zm14 0h-6v-2h6v2ZM9 9H7V7h2v2Zm8 0h-2V7h2v2Zm-4-1h-2V2h2v6ZM7 7H5V5h2v2Zm12 0h-2V5h2v2Z"})),d=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M13 11h7v2h-7v7h-2v-7H4v-2h7V4h2v7Z"})),v=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M16 4h2v6h-2zm-2-2h2v2h-2zm0 2h2v8h-2zM4 8H2v5h2z"}),e.createElement("path",{d:"M4 6h16v2H4zm4 14H6v-6h2zm2 2H8v-2h2zm0-2H8v-8h2zm10-4h2v-5h-2z"}),e.createElement("path",{d:"M20 18H4v-2h16z"})),m=t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M2 10h2v2H2zm0 4h2v-2H2zm20-4h-2v2h2zm0 4h-2v-2h2zM4 8h2v2H4zm0 8h2v-2H4zm16-8h-2v2h2zm0 8h-2v-2h2zM6 6h2v2H6zm0 12h2v-2H6zM18 6h-2v2h2zm0 12h-2v-2h2zM8 4h2v2H8zm0 16h2v-2H8zm8-16h-2v2h2zm0 16h-2v-2h2zM10 2h2v2h-2zm0 20h2v-2h-2zm4-20h-2v2h2zm0 20h-2v-2h2zm-3-5h2v-2h-2zm0-4h2V7h-2z"})),g=t.memo(function({icon:e,title:t,onClick:r,disabled:n=!1,className:c=""}){return o.jsx("button",{type:"button",onClick:r,disabled:n,className:`p-2.5 transition-all duration-200 shrink-0 border border-transparent focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-vscode-accent ${n?"text-vscode-text-muted cursor-not-allowed opacity-50":"text-vscode-text-muted hover:text-vscode-text hover:bg-vscode-element cursor-pointer"} ${c}`,title:t,children:o.jsx(e,{width:16,height:16})})});let f=0;const w=r(e=>({toasts:[],dismiss:t=>e(e=>({toasts:e.toasts.filter(e=>e.id!==t)}))}));function b(e,t="info"){const o=f++;w.setState(r=>({toasts:[...r.toasts,{id:o,message:e,type:t}]}))}const u={info:t=>e.createElement("svg",Object.assign({viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t),e.createElement("path",{d:"M4 2h16v2H4zm0 18h16v2H4zM2 4h2v16H2zm18 0h2v16h-2zm-9 5h2V7h-2zm0 8h2v-6h-2z"})),success:i,error:m},x={info:"bg-vscode-sidebar border-vscode-border text-vscode-text",success:"bg-vscode-sidebar border-vscode-info/70 text-vscode-text",error:"bg-vscode-sidebar border-vscode-error/70 text-vscode-text"};function p({toast:e,onDismiss:r}){const n=u[e.type];return t.useEffect(()=>{if("error"!==e.type){const t=setTimeout(()=>r(e.id),3e3);return()=>clearTimeout(t)}},[r,e.id,e.type]),o.jsxs("div",{className:`flex items-center gap-3 pl-4 pr-2 py-2.5 border border-dashed animate-fade-in ${x[e.type]}`,children:[o.jsx(n,{width:16,height:16,className:"shrink-0"}),o.jsx("span",{className:"text-sm flex-1 min-w-0 break-words",children:e.message}),o.jsx("button",{type:"button","aria-label":"Dismiss toast",onClick:()=>r(e.id),className:"p-1 hover:bg-white/10 opacity-75 hover:opacity-100 transition-opacity",children:o.jsx(c,{width:14,height:14})})]})}function z(){const{toasts:e,dismiss:t}=w();return 0===e.length?null:o.jsx("div",{className:"fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-50 flex flex-col gap-2 max-w-lg w-full px-4",children:e.map(e=>o.jsx(p,{toast:e,onDismiss:t},e.id))})}function H({icon:e,title:r,sessions:n,currentId:c,emptyText:i,newTitle:h,onSelect:a,onNew:l,disabled:v=!1}){const[m,g]=t.useState(!1),f=t.useRef(null);return t.useEffect(()=>{const e=e=>{f.current&&!f.current.contains(e.target)&&g(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),o.jsxs("div",{className:"flex items-center gap-2 w-full",ref:f,children:[o.jsxs("div",{className:"relative flex-1 min-w-0",children:[o.jsxs("button",{type:"button",onClick:()=>!v&&g(e=>!e),disabled:v,className:"group w-full flex items-center gap-2 px-3 py-2 transition-all duration-200 border border-dashed border-vscode-border bg-vscode-sidebar focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-vscode-accent "+(v?"opacity-50 cursor-not-allowed":"hover:bg-vscode-element hover:border-vscode-border-active cursor-pointer"),children:[o.jsx(e,{width:16,height:16,className:"text-vscode-accent shrink-0"}),o.jsx("span",{className:"truncate text-sm font-medium text-vscode-text group-hover:text-vscode-text-header transition-colors",children:r}),o.jsx(s,{width:14,height:14,className:"text-vscode-text-muted transition-transform duration-200 shrink-0 ml-auto "+(m?"rotate-180":"")})]}),m&&o.jsx("div",{className:"absolute top-full left-0 z-50 w-full mt-2 bg-vscode-sidebar border border-dashed border-vscode-border overflow-hidden animate-fade-in",children:0===n.length?o.jsx("div",{className:"px-4 py-3 text-sm text-vscode-text-muted text-center",children:i}):o.jsx("ul",{className:"max-h-80 overflow-y-auto py-1",children:n.map(e=>o.jsx("li",{children:o.jsxs("button",{type:"button",onClick:()=>{a(e),g(!1)},className:"w-full text-left px-4 py-2.5 text-sm transition-colors border-l-2 cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-vscode-accent "+(e.id===c?"border-vscode-accent bg-vscode-accent/10 text-vscode-text-header":"border-transparent text-vscode-text hover:bg-vscode-element hover:text-vscode-text-header"),children:[o.jsx("div",{className:"truncate",children:e.title}),o.jsx("div",{className:"text-xs text-vscode-text-muted mt-0.5 font-mono",children:new Date(e.updatedAt).toLocaleDateString()})]})},e.id))})})]}),o.jsx("button",{type:"button",onClick:()=>{l(),g(!1)},disabled:v,className:"p-2.5 bg-vscode-element hover:brightness-110 text-vscode-text-header transition-all shrink-0 border border-dashed border-vscode-border hover:border-vscode-border-active focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-vscode-accent "+(v?"opacity-50 cursor-not-allowed":"cursor-pointer"),title:h,children:o.jsx(d,{width:16,height:16})})]})}const M={crystal:{accent:"#4fc4cf",info:"#5cd0d8",warning:"#fbdd74",error:"#e86060",light:{accent:"#0e8a95",info:"#0e8a95",warning:"#b89800",error:"#cc0000"}},splash:{accent:"#00ebc7",info:"#00ebc7",warning:"#fde24f",error:"#ff5470",light:{accent:"#009080",info:"#009080",warning:"#b89800",error:"#cc0000"}},horizon:{accent:"#3da9fc",info:"#60c0a0",warning:"#e8c060",error:"#ef4565",light:{accent:"#2878c0",info:"#308060",warning:"#b89800",error:"#cc0000"}},neon:{accent:"#7f5af0",info:"#2cb67d",warning:"#e8c060",error:"#e45858",light:{accent:"#6040c0",info:"#1a8050",warning:"#b89800",error:"#cc0000"}},forest:{accent:"#faae2b",info:"#5cb88c",warning:"#f5d070",error:"#fa5246",light:{accent:"#b07810",info:"#308060",warning:"#b89800",error:"#cc0000"}},indigo:{accent:"#6246ea",info:"#8888ef",warning:"#e8c060",error:"#e45858",light:{accent:"#4830c0",info:"#5858c8",warning:"#b89800",error:"#cc0000"}},rosette:{accent:"#fec7d7",info:"#a786df",warning:"#f0c88e",error:"#e06080",light:{accent:"#c05080",info:"#7048a8",warning:"#b89800",error:"#cc0000"}},retro:{accent:"#078080",info:"#078080",warning:"#f0c878",error:"#f45d48",light:{accent:"#067070",info:"#067070",warning:"#b89800",error:"#cc0000"}},tangerine:{accent:"#ff8e3c",info:"#68c8a0",warning:"#f5d070",error:"#d9376e",light:{accent:"#c87018",info:"#308060",warning:"#b89800",error:"#cc0000"}},emerald:{accent:"#f9bc60",info:"#abd1c6",warning:"#f5e078",error:"#e16162",light:{accent:"#b07810",info:"#407868",warning:"#b89800",error:"#cc0000"}},earth:{accent:"#8c7851",info:"#a0a078",warning:"#c8a868",error:"#f25042",light:{accent:"#705838",info:"#607030",warning:"#907018",error:"#cc0000"}},twilight:{accent:"#eebbc3",info:"#b8c1ec",warning:"#e8c890",error:"#d45060",light:{accent:"#a85068",info:"#4858a8",warning:"#b89800",error:"#cc0000"}},inferno:{accent:"#ff8906",info:"#68c8a0",warning:"#f5d070",error:"#e53170",light:{accent:"#c87000",info:"#308060",warning:"#b89800",error:"#cc0000"}},sunshine:{accent:"#ffd803",info:"#bae8e8",warning:"#e8a040",error:"#e06070",light:{accent:"#907800",info:"#207880",warning:"#986808",error:"#cc0000"}},blossom:{accent:"#ff8ba7",info:"#c3f0ca",warning:"#f0c878",error:"#d04050",light:{accent:"#c04868",info:"#287040",warning:"#b89800",error:"#cc0000"}},cocoa:{accent:"#e78fb3",info:"#c088d0",warning:"#f0c090",error:"#d05050",light:{accent:"#a85878",info:"#6838a0",warning:"#987010",error:"#cc0000"}},nautical:{accent:"#f582ae",info:"#8bd3dd",warning:"#f0c878",error:"#e06060",light:{accent:"#c05080",info:"#207890",warning:"#b89800",error:"#cc0000"}}},N={crystal:"Crystal",splash:"Splash",horizon:"Horizon",neon:"Neon",forest:"Forest",indigo:"Indigo",rosette:"Rosette",retro:"Retro",tangerine:"Tangerine",emerald:"Emerald",earth:"Earth",twilight:"Twilight",inferno:"Inferno",sunshine:"Sunshine",blossom:"Blossom",cocoa:"Cocoa",nautical:"Nautical"},y=Object.keys(M);function Z(e){let t=document.getElementById("omx-color-theme");t||(t=document.createElement("style"),t.id="omx-color-theme",document.head.appendChild(t));const o=e?M[e]:void 0;t.textContent=o?`\n :root {\n --vscode-accent: ${o.accent};\n --vscode-info: ${o.info};\n --vscode-warning: ${o.warning};\n --vscode-error: ${o.error};\n }\n :root.light {\n --vscode-accent: ${o.light.accent};\n --vscode-info: ${o.light.info};\n --vscode-warning: ${o.light.warning};\n --vscode-error: ${o.light.error};\n }\n `:""}const C=t.memo(function({label:e,description:r,value:n,onChange:c,options:i,placeholder:h,disabled:a}){const l=t.useId();return o.jsxs("div",{className:"space-y-2",children:[o.jsx("label",{htmlFor:l,className:"block text-sm font-medium text-vscode-text",children:e}),o.jsxs("div",{className:"relative",children:[o.jsxs("select",{id:l,value:n,onChange:e=>c(e.target.value),disabled:a,className:"w-full px-4 py-2.5 bg-vscode-bg border border-dashed border-vscode-border text-sm text-vscode-text focus:outline-none focus:border-vscode-accent focus-visible:ring-1 focus-visible:ring-vscode-accent appearance-none "+(a?"opacity-60 cursor-not-allowed":"cursor-pointer"),children:[h&&o.jsx("option",{value:"",children:h}),i.map(e=>o.jsx("option",{value:e.value,children:e.label},e.value))]}),o.jsx("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 pointer-events-none text-vscode-text-muted",children:o.jsx(s,{width:14,height:14})})]}),r&&o.jsx("p",{className:"text-xs text-vscode-text-muted",children:r})]})});function k(){const e=n(e=>e.config),o=n(e=>e.setTheme);t.useEffect(()=>{const t=null==e?void 0:e.webTheme,r=e=>{const t="light"===e||"auto"===e&&window.matchMedia("(prefers-color-scheme: light)").matches;document.documentElement.classList.toggle("light",t),o(t?"light":"dark")};if(r(t),"auto"===t){const e=window.matchMedia("(prefers-color-scheme: light)"),o=()=>r(t);e.addEventListener("change",o);const n=e=>{var t;"themeChange"===(null==(t=e.data)?void 0:t.type)&&r(e.data.theme)};return window.addEventListener("message",n),()=>{e.removeEventListener("change",o),window.removeEventListener("message",n)}}},[null==e?void 0:e.webTheme,o]),t.useEffect(()=>{Z((null==e?void 0:e.colorTheme)??"neon")},[null==e?void 0:e.colorTheme])}export{c as C,g as I,l as L,d as P,v as R,C as S,z as T,m as W,a,h as b,H as c,i as d,s as e,M as f,Z as g,y as p,b as s,N as t,k as u};
@@ -0,0 +1 @@
1
+ var t,i,s,e,h,r,a,n,o,c;import{s as l,g as u,q as f,p as x,a as p,b as d,_ as g,l as m,H as b,e as _,y,F as A,i as k,D as w,E as T,K as v,aA as S,R as M}from"./App-CM8Va3JQ.js";import{i as D}from"./init-C9Lo50Hz.js";import{o as E}from"./ordinal-2upbOM02.js";import{l as R}from"./linear-CbNyjCBb.js";import"./index-DPbcKIIg.js";import"./useAppearance-PXtz8423.js";import"./defaultLocale-DK_abR1s.js";function C(){var t,i,s=E().unknown(void 0),e=s.domain,h=s.range,r=0,a=1,n=!1,o=0,c=0,l=.5;function u(){var s=e().length,u=a<r,f=u?a:r,x=u?r:a;t=(x-f)/Math.max(1,s-o+2*c),n&&(t=Math.floor(t)),f+=(x-f-t*(s-o))*l,i=t*(1-o),n&&(f=Math.round(f),i=Math.round(i));var p=function(t,i,s){t=+t,i=+i,s=(h=arguments.length)<2?(i=t,t=0,1):h<3?1:+s;for(var e=-1,h=0|Math.max(0,Math.ceil((i-t)/s)),r=new Array(h);++e<h;)r[e]=t+e*s;return r}(s).map(function(i){return f+t*i});return h(u?p.reverse():p)}return delete s.unknown,s.domain=function(t){return arguments.length?(e(t),u()):e()},s.range=function(t){return arguments.length?([r,a]=t,r=+r,a=+a,u()):[r,a]},s.rangeRound=function(t){return[r,a]=t,r=+r,a=+a,n=!0,u()},s.bandwidth=function(){return i},s.step=function(){return t},s.round=function(t){return arguments.length?(n=!!t,u()):n},s.padding=function(t){return arguments.length?(o=Math.min(1,c=+t),u()):o},s.paddingInner=function(t){return arguments.length?(o=Math.min(1,t),u()):o},s.paddingOuter=function(t){return arguments.length?(c=+t,u()):c},s.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),u()):l},s.copy=function(){return C(e(),[r,a]).round(n).paddingInner(o).paddingOuter(c).align(l)},D.apply(u(),arguments)}var I=function(){var t=g(function(t,i,s,e){for(s=s||{},e=t.length;e--;s[t[e]]=i);return s},"o"),i=[1,10,12,14,16,18,19,21,23],s=[2,6],e=[1,3],h=[1,5],r=[1,6],a=[1,7],n=[1,5,10,12,14,16,18,19,21,23,34,35,36],o=[1,25],c=[1,26],l=[1,28],u=[1,29],f=[1,30],x=[1,31],p=[1,32],d=[1,33],m=[1,34],b=[1,35],_=[1,36],y=[1,37],A=[1,43],k=[1,42],w=[1,47],T=[1,50],v=[1,10,12,14,16,18,19,21,23,34,35,36],S=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],M=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],D=[1,64],E={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:g(function(t,i,s,e,h,r,a){var n=r.length-1;switch(h){case 5:e.setOrientation(r[n]);break;case 9:e.setDiagramTitle(r[n].text.trim());break;case 12:e.setLineData({text:"",type:"text"},r[n]);break;case 13:e.setLineData(r[n-1],r[n]);break;case 14:e.setBarData({text:"",type:"text"},r[n]);break;case 15:e.setBarData(r[n-1],r[n]);break;case 16:this.$=r[n].trim(),e.setAccTitle(this.$);break;case 17:case 18:this.$=r[n].trim(),e.setAccDescription(this.$);break;case 19:case 27:this.$=r[n-1];break;case 20:this.$=[Number(r[n-2]),...r[n]];break;case 21:this.$=[Number(r[n])];break;case 22:e.setXAxisTitle(r[n]);break;case 23:e.setXAxisTitle(r[n-1]);break;case 24:e.setXAxisTitle({type:"text",text:""});break;case 25:e.setXAxisBand(r[n]);break;case 26:e.setXAxisRangeData(Number(r[n-2]),Number(r[n]));break;case 28:this.$=[r[n-2],...r[n]];break;case 29:this.$=[r[n]];break;case 30:e.setYAxisTitle(r[n]);break;case 31:e.setYAxisTitle(r[n-1]);break;case 32:e.setYAxisTitle({type:"text",text:""});break;case 33:e.setYAxisRangeData(Number(r[n-2]),Number(r[n]));break;case 37:case 38:this.$={text:r[n],type:"text"};break;case 39:this.$={text:r[n],type:"markdown"};break;case 40:this.$=r[n];break;case 41:this.$=r[n-1]+""+r[n]}},"anonymous"),table:[t(i,s,{3:1,4:2,7:4,5:e,34:h,35:r,36:a}),{1:[3]},t(i,s,{4:2,7:4,3:8,5:e,34:h,35:r,36:a}),t(i,s,{4:2,7:4,6:9,3:10,5:e,8:[1,11],34:h,35:r,36:a}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(n,[2,34]),t(n,[2,35]),t(n,[2,36]),{1:[2,1]},t(i,s,{4:2,7:4,3:21,5:e,34:h,35:r,36:a}),{1:[2,3]},t(n,[2,5]),t(i,[2,7],{4:22,34:h,35:r,36:a}),{11:23,37:24,38:o,39:c,40:27,41:l,42:u,43:f,44:x,45:p,46:d,47:m,48:b,49:_,50:y},{11:39,13:38,24:A,27:k,29:40,30:41,37:24,38:o,39:c,40:27,41:l,42:u,43:f,44:x,45:p,46:d,47:m,48:b,49:_,50:y},{11:45,15:44,27:w,33:46,37:24,38:o,39:c,40:27,41:l,42:u,43:f,44:x,45:p,46:d,47:m,48:b,49:_,50:y},{11:49,17:48,24:T,37:24,38:o,39:c,40:27,41:l,42:u,43:f,44:x,45:p,46:d,47:m,48:b,49:_,50:y},{11:52,17:51,24:T,37:24,38:o,39:c,40:27,41:l,42:u,43:f,44:x,45:p,46:d,47:m,48:b,49:_,50:y},{20:[1,53]},{22:[1,54]},t(v,[2,18]),{1:[2,2]},t(v,[2,8]),t(v,[2,9]),t(S,[2,37],{40:55,41:l,42:u,43:f,44:x,45:p,46:d,47:m,48:b,49:_,50:y}),t(S,[2,38]),t(S,[2,39]),t(M,[2,40]),t(M,[2,42]),t(M,[2,43]),t(M,[2,44]),t(M,[2,45]),t(M,[2,46]),t(M,[2,47]),t(M,[2,48]),t(M,[2,49]),t(M,[2,50]),t(M,[2,51]),t(v,[2,10]),t(v,[2,22],{30:41,29:56,24:A,27:k}),t(v,[2,24]),t(v,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:o,39:c,40:27,41:l,42:u,43:f,44:x,45:p,46:d,47:m,48:b,49:_,50:y},t(v,[2,11]),t(v,[2,30],{33:60,27:w}),t(v,[2,32]),{31:[1,61]},t(v,[2,12]),{17:62,24:T},{25:63,27:D},t(v,[2,14]),{17:65,24:T},t(v,[2,16]),t(v,[2,17]),t(M,[2,41]),t(v,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(v,[2,31]),{27:[1,69]},t(v,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(v,[2,15]),t(v,[2,26]),t(v,[2,27]),{11:59,32:72,37:24,38:o,39:c,40:27,41:l,42:u,43:f,44:x,45:p,46:d,47:m,48:b,49:_,50:y},t(v,[2,33]),t(v,[2,19]),{25:73,27:D},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:g(function(t,i){if(!i.recoverable){var s=new Error(t);throw s.hash=i,s}this.trace(t)},"parseError"),parse:g(function(t){var i=this,s=[0],e=[],h=[null],r=[],a=this.table,n="",o=0,c=0,l=r.slice.call(arguments,1),u=Object.create(this.lexer),f={yy:{}};for(var x in this.yy)Object.prototype.hasOwnProperty.call(this.yy,x)&&(f.yy[x]=this.yy[x]);u.setInput(t,f.yy),f.yy.lexer=u,f.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var p=u.yylloc;r.push(p);var d=u.options&&u.options.ranges;function m(){var t;return"number"!=typeof(t=e.pop()||u.lex()||1)&&(t instanceof Array&&(t=(e=t).pop()),t=i.symbols_[t]||t),t}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,g(function(t){s.length=s.length-2*t,h.length=h.length-t,r.length=r.length-t},"popStack"),g(m,"lex");for(var b,_,y,A,k,w,T,v,S={};;){if(_=s[s.length-1],this.defaultActions[_]?y=this.defaultActions[_]:(null==b&&(b=m()),y=a[_]&&a[_][b]),void 0===y||!y.length||!y[0]){var M="";for(k in v=[],a[_])this.terminals_[k]&&k>2&&v.push("'"+this.terminals_[k]+"'");M=u.showPosition?"Parse error on line "+(o+1)+":\n"+u.showPosition()+"\nExpecting "+v.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(M,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:p,expected:v})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+b);switch(y[0]){case 1:s.push(b),h.push(u.yytext),r.push(u.yylloc),s.push(y[1]),b=null,c=u.yyleng,n=u.yytext,o=u.yylineno,p=u.yylloc;break;case 2:if(w=this.productions_[y[1]][1],S.$=h[h.length-w],S._$={first_line:r[r.length-(w||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(w||1)].first_column,last_column:r[r.length-1].last_column},d&&(S._$.range=[r[r.length-(w||1)].range[0],r[r.length-1].range[1]]),void 0!==(A=this.performAction.apply(S,[n,c,o,f.yy,y[1],h,r].concat(l))))return A;w&&(s=s.slice(0,-1*w*2),h=h.slice(0,-1*w),r=r.slice(0,-1*w)),s.push(this.productions_[y[1]][0]),h.push(S.$),r.push(S._$),T=a[s[s.length-2]][s[s.length-1]],s.push(T);break;case 3:return!0}}return!0},"parse")},R=function(){return{EOF:1,parseError:g(function(t,i){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,i)},"parseError"),setInput:g(function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:g(function(t){var i=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var e=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===e.length?this.yylloc.first_column:0)+e[e.length-s.length].length-s[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:g(function(t){this.unput(this.match.slice(t))},"less"),pastInput:g(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+i+"^"},"showPosition"),test_match:g(function(t,i){var s,e,h;if(this.options.backtrack_lexer&&(h={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(h.yylloc.range=this.yylloc.range.slice(0))),(e=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=e.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:e?e[e.length-1].length-e[e.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in h)this[r]=h[r];return!1}return!1},"test_match"),next:g(function(){if(this.done)return this.EOF;var t,i,s,e;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),r=0;r<h.length;r++)if((s=this._input.match(this.rules[h[r]]))&&(!i||s[0].length>i[0].length)){if(i=s,e=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,h[r])))return t;if(this._backtrack){i=!1;continue}return!1}if(!this.options.flex)break}return i?!1!==(t=this.test_match(i,h[e]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:g(function(){var t=this.next();return t||this.lex()},"lex"),begin:g(function(t){this.conditionStack.push(t)},"begin"),popState:g(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:g(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:g(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:g(function(t){this.begin(t)},"pushState"),stateStackSize:g(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:g(function(t,i,s,e){switch(s){case 0:case 1:case 5:case 44:break;case 2:case 3:return this.popState(),34;case 4:return 34;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:case 26:case 28:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 27:this.pushState("string");break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}}}();function C(){this.yy={}}return E.lexer=R,g(C,"Parser"),C.prototype=E,E.Parser=C,new C}();I.parser=I;var L=I;function P(t){return"bar"===t.type}function $(t){return"band"===t.type}function N(t){return"linear"===t.type}g(P,"isBarPlot"),g($,"isBandAxisData"),g(N,"isLinearAxisData");var z=(g(t=class{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((t,i)=>Math.max(i.length,t),0)*i,height:i};const s={width:0,height:0},e=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const h of t){const t=S(e,1,h),r=t?t.width:h.length*i,a=t?t.height:i;s.width=Math.max(s.width,r),s.height=Math.max(s.height,a)}return e.remove(),s}},"TextDimensionCalculatorWithFont"),t),B=(g(i=class{constructor(t,i,s,e){this.axisConfig=t,this.title=i,this.textDimensionCalculator=s,this.axisThemeConfig=e,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),e=.2*t.width;this.outerPadding=Math.min(s.width/2,e);const h=s.height+2*this.axisConfig.labelPadding;this.labelTextHeight=s.height,h<=i&&(i-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,s<=i&&(i-=s,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const s=this.getLabelDimension(),e=.2*t.height;this.outerPadding=Math.min(s.height/2,e);const h=s.width+2*this.axisConfig.labelPadding;h<=i&&(i-=h,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),s=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,s<=i&&(i-=s,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(t),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${i},${this.getScaleValue(t)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(t)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i} L ${this.getScaleValue(t)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(t)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}},"BaseAxis"),i),O=(g(s=class extends B{constructor(t,i,s,e,h){super(t,e,h,i),this.categories=s,this.scale=C().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=C().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),m.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},"BandAxis"),s),X=(g(e=class extends B{constructor(t,i,s,e,h){super(t,e,h,i),this.domain=s,this.scale=R().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];"left"===this.axisPosition&&t.reverse(),this.scale=R().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},"LinearAxis"),e);function F(t,i,s,e){const h=new z(e);return $(t)?new O(i,s,t.categories,t.title,h):new X(i,s,[t.min,t.max],t.title,h)}g(F,"getAxis");var U=(g(h=class{constructor(t,i,s,e){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=s,this.chartThemeConfig=e,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),s=Math.max(i.width,t.width),e=i.height+2*this.chartConfig.titlePadding;return i.width<=s&&i.height<=e&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=s,this.boundingRect.height=e,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},"ChartTitle"),h);function W(t,i,s,e){const h=new z(e);return new U(h,t,i,s)}g(W,"getChartTitleComponent");var Y=(g(r=class{constructor(t,i,s,e,h){this.plotData=t,this.xAxis=i,this.yAxis=s,this.orientation=e,this.plotIndex=h}getDrawableElement(){const t=this.plotData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]);let i;return i="horizontal"===this.orientation?M().y(t=>t[0]).x(t=>t[1])(t):M().x(t=>t[0]).y(t=>t[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},"LinePlot"),r),j=(g(a=class{constructor(t,i,s,e,h,r){this.barData=t,this.boundingRect=i,this.xAxis=s,this.yAxis=e,this.orientation=h,this.plotIndex=r}getDrawableElement(){const t=this.barData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]),i=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),s=i/2;return"horizontal"===this.orientation?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:this.boundingRect.x,y:t[0]-s,height:i,width:t[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:t[0]-s,y:t[1],width:i,height:this.boundingRect.y+this.boundingRect.height-t[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},"BarPlot"),a),H=(g(n=class{constructor(t,i,s){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!this.xAxis||!this.yAxis)throw Error("Axes must be passed to render Plots");const t=[];for(const[i,s]of this.chartData.plots.entries())switch(s.type){case"line":{const e=new Y(s,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...e.getDrawableElement())}break;case"bar":{const e=new j(s,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...e.getDrawableElement())}}return t}},"BasePlot"),n);function V(t,i,s){return new H(t,i,s)}g(V,"getPlotComponent");var G,Q=(g(o=class{constructor(t,i,s,e){this.chartConfig=t,this.chartData=i,this.componentStore={title:W(t,i,s,e),plot:V(t,i,s),xAxis:F(i.xAxis,t.xAxis,{titleColor:s.xAxisTitleColor,labelColor:s.xAxisLabelColor,tickColor:s.xAxisTickColor,axisLineColor:s.xAxisLineColor},e),yAxis:F(i.yAxis,t.yAxis,{titleColor:s.yAxisTitleColor,labelColor:s.yAxisLabelColor,tickColor:s.yAxisTickColor,axisLineColor:s.yAxisLineColor},e)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,e=0,h=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),r=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),a=this.componentStore.plot.calculateSpace({width:h,height:r});t-=a.width,i-=a.height,a=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),e=a.height,i-=a.height,this.componentStore.xAxis.setAxisPosition("bottom"),a=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=a.height,this.componentStore.yAxis.setAxisPosition("left"),a=this.componentStore.yAxis.calculateSpace({width:t,height:i}),s=a.width,t-=a.width,t>0&&(h+=t,t=0),i>0&&(r+=i,i=0),this.componentStore.plot.calculateSpace({width:h,height:r}),this.componentStore.plot.setBoundingBoxXY({x:s,y:e}),this.componentStore.xAxis.setRange([s,s+h]),this.componentStore.xAxis.setBoundingBoxXY({x:s,y:e+r}),this.componentStore.yAxis.setRange([e,e+r]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:e}),this.chartData.plots.some(t=>P(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,s=0,e=0,h=0,r=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),a=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),n=this.componentStore.plot.calculateSpace({width:r,height:a});t-=n.width,i-=n.height,n=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=n.height,i-=n.height,this.componentStore.xAxis.setAxisPosition("left"),n=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=n.width,e=n.width,this.componentStore.yAxis.setAxisPosition("top"),n=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=n.height,h=s+n.height,t>0&&(r+=t,t=0),i>0&&(a+=i,i=0),this.componentStore.plot.calculateSpace({width:r,height:a}),this.componentStore.plot.setBoundingBoxXY({x:e,y:h}),this.componentStore.yAxis.setRange([e,e+r]),this.componentStore.yAxis.setBoundingBoxXY({x:e,y:s}),this.componentStore.xAxis.setRange([h,h+a]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:h}),this.chartData.plots.some(t=>P(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},"Orchestrator"),o),K=(g(c=class{static build(t,i,s,e){return new Q(t,i,s,e).getDrawableElement()}},"XYChartBuilder"),c),q=0,Z=rt(),J=ht(),tt=at(),it=J.plotColorPalette.split(",").map(t=>t.trim()),st=!1,et=!1;function ht(){const t=v(),i=A();return w(t.xyChart,i.themeVariables.xyChart)}function rt(){const t=A();return w(T.xyChart,t.xyChart)}function at(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function nt(t){const i=A();return k(t.trim(),i)}function ot(t){G=t}function ct(t){Z.chartOrientation="horizontal"===t?"horizontal":"vertical"}function lt(t){tt.xAxis.title=nt(t.text)}function ut(t,i){tt.xAxis={type:"linear",title:tt.xAxis.title,min:t,max:i},st=!0}function ft(t){tt.xAxis={type:"band",title:tt.xAxis.title,categories:t.map(t=>nt(t.text))},st=!0}function xt(t){tt.yAxis.title=nt(t.text)}function pt(t,i){tt.yAxis={type:"linear",title:tt.yAxis.title,min:t,max:i},et=!0}function dt(t){const i=Math.min(...t),s=Math.max(...t),e=N(tt.yAxis)?tt.yAxis.min:1/0,h=N(tt.yAxis)?tt.yAxis.max:-1/0;tt.yAxis={type:"linear",title:tt.yAxis.title,min:Math.min(e,i),max:Math.max(h,s)}}function gt(t){let i=[];if(0===t.length)return i;if(!st){const i=N(tt.xAxis)?tt.xAxis.min:1/0,s=N(tt.xAxis)?tt.xAxis.max:-1/0;ut(Math.min(i,1),Math.max(s,t.length))}if(et||dt(t),$(tt.xAxis)&&(i=tt.xAxis.categories.map((i,s)=>[i,t[s]])),N(tt.xAxis)){const s=tt.xAxis.min,e=tt.xAxis.max,h=(e-s)/(t.length-1),r=[];for(let t=s;t<=e;t+=h)r.push(`${t}`);i=r.map((i,s)=>[i,t[s]])}return i}function mt(t){return it[0===t?0:t%it.length]}function bt(t,i){const s=gt(i);tt.plots.push({type:"line",strokeFill:mt(q),strokeWidth:2,data:s}),q++}function _t(t,i){const s=gt(i);tt.plots.push({type:"bar",fill:mt(q),data:s}),q++}function yt(){if(0===tt.plots.length)throw Error("No Plot to render, please provide a plot with some data");return tt.title=f(),K.build(Z,tt,J,G)}function At(){return J}function kt(){return Z}function wt(){return tt}g(ht,"getChartDefaultThemeConfig"),g(rt,"getChartDefaultConfig"),g(at,"getChartDefaultData"),g(nt,"textSanitizer"),g(ot,"setTmpSVGG"),g(ct,"setOrientation"),g(lt,"setXAxisTitle"),g(ut,"setXAxisRangeData"),g(ft,"setXAxisBand"),g(xt,"setYAxisTitle"),g(pt,"setYAxisRangeData"),g(dt,"setYAxisRangeFromPlotData"),g(gt,"transformDataWithoutCategory"),g(mt,"getPlotColorFromPalette"),g(bt,"setLineData"),g(_t,"setBarData"),g(yt,"getDrawableElem"),g(At,"getChartThemeConfig"),g(kt,"getChartConfig"),g(wt,"getXYChartData");var Tt={parser:L,db:{getDrawableElem:yt,clear:g(function(){y(),q=0,Z=rt(),tt={yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]},J=ht(),it=J.plotColorPalette.split(",").map(t=>t.trim()),st=!1,et=!1},"clear"),setAccTitle:d,getAccTitle:p,setDiagramTitle:x,getDiagramTitle:f,getAccDescription:u,setAccDescription:l,setOrientation:ct,setXAxisTitle:lt,setXAxisRangeData:ut,setXAxisBand:ft,setYAxisTitle:xt,setYAxisRangeData:pt,setLineData:bt,setBarData:_t,setTmpSVGG:ot,getChartThemeConfig:At,getChartConfig:kt,getXYChartData:wt},renderer:{draw:g((t,i,s,e)=>{const h=e.db,r=h.getChartThemeConfig(),a=h.getChartConfig(),n=h.getXYChartData().plots[0].data.map(t=>t[1]);function o(t){return"top"===t?"text-before-edge":"middle"}function c(t){return"left"===t?"start":"right"===t?"end":"middle"}function l(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}g(o,"getDominantBaseLine"),g(c,"getTextAnchor"),g(l,"getTextTransformation"),m.debug("Rendering xychart chart\n"+t);const u=b(i),f=u.append("g").attr("class","main"),x=f.append("rect").attr("width",a.width).attr("height",a.height).attr("class","background");_(u,a.height,a.width,!0),u.attr("viewBox",`0 0 ${a.width} ${a.height}`),x.attr("fill",r.backgroundColor),h.setTmpSVGG(u.append("g").attr("class","mermaid-tmp-group"));const p=h.getDrawableElem(),d={};function y(t){let i=f,s="";for(const[e]of t.entries()){let h=f;e>0&&d[s]&&(h=d[s]),s+=t[e],i=d[s],i||(i=d[s]=h.append("g").attr("class",t[e]))}return i}g(y,"getGroup");for(const m of p){if(0===m.data.length)continue;const t=y(m.groupTexts);switch(m.type){case"rect":if(t.selectAll("rect").data(m.data).enter().append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth),a.showDataLabel)if("horizontal"===a.chartOrientation){let i=function(t,i){const{data:e,label:h}=t;return i*h.length*s<=e.width-10};g(i,"fitsHorizontally");const s=.7,e=m.data.map((t,i)=>({data:t,label:n[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),h=e.map(t=>{const{data:s}=t;let e=.7*s.height;for(;!i(t,e)&&e>0;)e-=1;return e}),r=Math.floor(Math.min(...h));t.selectAll("text").data(e).enter().append("text").attr("x",t=>t.data.x+t.data.width-10).attr("y",t=>t.data.y+t.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",`${r}px`).text(t=>t.label)}else{let i=function(t,i,s){const{data:e,label:h}=t,r=i*h.length*.7,a=e.x+e.width/2,n=a+r/2,o=a-r/2>=e.x&&n<=e.x+e.width,c=e.y+s+i<=e.y+e.height;return o&&c};g(i,"fitsInBar");const s=10,e=m.data.map((t,i)=>({data:t,label:n[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),h=e.map(t=>{const{data:e,label:h}=t;let r=e.width/(.7*h.length);for(;!i(t,r,s)&&r>0;)r-=1;return r}),r=Math.floor(Math.min(...h));t.selectAll("text").data(e).enter().append("text").attr("x",t=>t.data.x+t.data.width/2).attr("y",t=>t.data.y+s).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",`${r}px`).text(t=>t.label)}break;case"text":t.selectAll("text").data(m.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>o(t.verticalPos)).attr("text-anchor",t=>c(t.horizontalPos)).attr("transform",t=>l(t)).text(t=>t.text);break;case"path":t.selectAll("path").data(m.data).enter().append("path").attr("d",t=>t.path).attr("fill",t=>t.fill?t.fill:"none").attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth)}}},"draw")}};export{Tt as diagram};
@@ -9,8 +9,8 @@
9
9
  <meta name="mobile-web-app-capable" content="yes" />
10
10
  <link rel="icon" type="image/png" href="/favicon.png" />
11
11
  <title>OmniContext CLI</title>
12
- <script type="module" crossorigin src="/assets/index-p16PXaGU.js"></script>
13
- <link rel="stylesheet" crossorigin href="/assets/index-5mQ2UgiF.css">
12
+ <script type="module" crossorigin src="/assets/index-DPbcKIIg.js"></script>
13
+ <link rel="stylesheet" crossorigin href="/assets/index-Fz55nSNP.css">
14
14
  </head>
15
15
 
16
16
  <body>
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: audit
3
+ description: Split the project into areas and audit each one independently.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ Run a comprehensive code audit on this project. The audit works in three phases: map, sweep, and summarize.
8
+
9
+ Phase 1 - Map
10
+
11
+ Start by understanding the project layout. Use Glob and Read on key entry points (package.json, README, directory structure) to identify every meaningful code area. An area is a directory or group of closely related files that can be reviewed independently. Typical area boundaries include:
12
+
13
+ - A top-level module directory (e.g., `source/services/`, `source/ui/`, `source/utils/`)
14
+ - A client package (e.g., `clients/web/src/`, `clients/desktop/src/main/`)
15
+ - A config/build layer (e.g., build scripts, config files)
16
+ - A subdirectory with a clear single responsibility
17
+
18
+ Aim for 5-20 areas depending on project size. Each area should be small enough for thorough file-by-file review (roughly 5-30 files). If a directory has too many files, split it into sub-areas. If two small directories are tightly coupled, combine them.
19
+
20
+ Print the full area plan before proceeding. Format:
21
+
22
+ ```
23
+ Area Plan (N areas):
24
+ 1. path/to/area/ - Brief description (estimated file count)
25
+ 2. path/to/area/ - Brief description (estimated file count)
26
+ ...
27
+ ```
28
+
29
+ Phase 2 - Sweep
30
+
31
+ Call `Agent_Audit` for each area in the plan. Pass the area path and description as the `area` parameter. If the user specified focus areas via $ARGUMENTS, pass them as the `checklist` parameter to every call.
32
+
33
+ Do not skip areas. Do not merge areas to save time. Each area gets its own independent agent call so the review starts fresh with full attention.
34
+
35
+ When the user provides arguments, interpret them as checklist focus areas. For example, `/audit error-handling, security` means every area should prioritize error handling and security checks.
36
+
37
+ Phase 3 - Summarize
38
+
39
+ After all areas are reviewed, compile a single audit report. Deduplicate findings that appear across areas (same root cause in shared code). Rank all findings by severity.
40
+
41
+ Print the final report in this format:
42
+
43
+ ```
44
+ # Audit Report
45
+
46
+ Project: (project name)
47
+ Areas reviewed: N
48
+ Total files reviewed: (sum from all areas)
49
+
50
+ ## Critical (must fix)
51
+ - [file:line] Finding. (from area: X)
52
+
53
+ ## Important (should fix)
54
+ - [file:line] Finding. (from area: X)
55
+
56
+ ## Minor (nice to fix)
57
+ - [file:line] Finding. (from area: X)
58
+
59
+ ## Cross-cutting patterns
60
+ - Observations that appeared in multiple areas (e.g., inconsistent error handling style, recurring cleanup omissions).
61
+
62
+ ## Clean areas
63
+ - Areas or subsystems that looked solid.
64
+
65
+ ## Summary
66
+ One paragraph overall assessment: the project's health, the most impactful areas to address, and any systemic patterns worth a targeted cleanup pass.
67
+ ```
68
+
69
+ If the project is generally clean, say so. Do not inflate severity or invent issues to make the report look thorough.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cookbook
3
- description: Show practical OMX setup recipes for MCP servers, skills, agents, workflows, and external tools.
3
+ description: Setup recipes for MCP servers, skills, agents, and workflows.
4
4
  ---
5
5
 
6
6
  Help the user set up OMX extensions with practical recipes. First identify what they want to set up: an MCP server, skill, agent, workflow, or external tool. If they already gave a target, proceed. If not, ask one short question with those choices.
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: save-atlas
3
+ description: Save navigation knowledge from this session to the atlas.
4
+ ---
5
+
6
+ Review the code areas explored or changed in this session and save any durable navigation knowledge to the atlas. Start with AtlasList so you can see the current maps and avoid duplicates. AtlasUpdate replaces every point on the map, so when a related map already exists, read it first with AtlasRead and pass back the full point set you want to keep along with the new ones.
7
+
8
+ Only record areas that revealed real structure: a bug fix that touched multiple files, feature work in a new subsystem, a refactor that moved or renamed important pieces, or an investigation that clarified how components fit together. Skip trivial single-file edits that do not add much navigation value.
9
+
10
+ For each area worth keeping, update an existing matching map when one already exists. When a new feature or subsystem spans multiple files, create a dedicated map for it instead of scattering points across existing maps. Use a short descriptive name and a clear scope. Mark the important files, directories, and symbols, and give each point a brief note that explains why it matters.
11
+
12
+ If this session deleted, renamed, or moved files that appear in any map, those maps should already have been fixed immediately after each change. Verify now that no stale points remain.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: simplify
3
- description: Review changed code for reuse, quality, and efficiency, then fix any issues found.
3
+ description: Review changed code for quality and fix issues found.
4
4
  ---
5
5
 
6
6
  Review the changes from this session and simplify anything that is clearly worth tightening. Start with `git diff` so you know what actually changed. If there are no git changes, fall back to the files that were edited or discussed earlier in this conversation.
@@ -8,6 +8,7 @@ allowBuiltinTools:
8
8
  - Edit
9
9
  - Glob
10
10
  - Grep
11
+ - ImageGen
11
12
  - Read
12
13
  - Skill
13
14
  - WebFetch
@@ -7,10 +7,10 @@ allowBuiltinTools:
7
7
  - Edit
8
8
  - Glob
9
9
  - Grep
10
- - LandmarkDelete
11
- - LandmarkList
12
- - LandmarkRead
13
- - LandmarkUpdate
10
+ - AtlasDelete
11
+ - AtlasList
12
+ - AtlasRead
13
+ - AtlasUpdate
14
14
  - Read
15
15
  - Skill
16
16
  - WebFetch
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omni-context-cli",
3
- "version": "0.0.90",
3
+ "version": "0.0.92",
4
4
  "description": "Omx is a small, helpful, zero-telemetry coding assistant.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1 +0,0 @@
1
- import{aV as r,br as n,aE as t,aT as u,aD as e,bs as i,bt as o,bu as f,bv as a,bw as c,bm as v,bx as s,aW as l,a$ as b,b2 as j,by as d,aZ as y,bz as p,bp as w,aF as _,bn as m,bA as O}from"./index-p16PXaGU.js";function h(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==n(t)}function g(r,n){for(var t=-1,u=null==r?0:r.length,e=Array(u);++t<u;)e[t]=n(r[t],t,r);return e}var A=u?u.prototype:void 0,k=A?A.toString:void 0;function x(r){if("string"==typeof r)return r;if(t(r))return g(r,x)+"";if(h(r))return k?k.call(r):"";var n=r+"";return"0"==n&&1/r==-1/0?"-0":n}function S(r,n){for(var t=-1,u=null==r?0:r.length;++t<u&&!1!==n(r[t],t,r););return r}function $(r,n,t,u){for(var e=r.length,i=t+-1;++i<e;)if(n(r[i],i,r))return i;return-1}function D(r){return r!=r}function E(r,n){return!!(null==r?0:r.length)&&function(r,n,t){return n==n?function(r,n,t){for(var u=t-1,e=r.length;++u<e;)if(r[u]===n)return u;return-1}(r,n,t):$(r,D,t)}(r,n,0)>-1}function B(r){return e(r)?i(r):o(r)}var V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/;function z(r,n){if(t(r))return!1;var u=typeof r;return!("number"!=u&&"symbol"!=u&&"boolean"!=u&&null!=r&&!h(r))||(q.test(r)||!V.test(r)||null!=n&&r in Object(n))}var F,M,N,R=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,T=/\\(\\)?/g,W=(F=function(r){var n=[];return 46===r.charCodeAt(0)&&n.push(""),r.replace(R,function(r,t,u,e){n.push(u?e.replace(T,"$1"):t||r)}),n},M=f(F,function(r){return 500===N.size&&N.clear(),r}),N=M.cache,M);function Z(r){return null==r?"":x(r)}function C(r,n){return t(r)?r:z(r,n)?[r]:W(Z(r))}function G(r){if("string"==typeof r||h(r))return r;var n=r+"";return"0"==n&&1/r==-1/0?"-0":n}function H(r,n){for(var t=0,u=(n=C(n,r)).length;null!=r&&t<u;)r=r[G(n[t++])];return t&&t==u?r:void 0}function I(r,n){for(var t=-1,u=n.length,e=r.length;++t<u;)r[e+t]=n[t];return r}var J=u?u.isConcatSpreadable:void 0;function K(r){return t(r)||a(r)||!!(J&&r&&r[J])}function L(r,n,t,u,e){var i=-1,o=r.length;for(t||(t=K),e||(e=[]);++i<o;){var f=r[i];t(f)?I(e,f):u||(e[e.length]=f)}return e}function P(r,n,t,u){var e=-1,i=null==r?0:r.length;for(u&&i&&(t=r[++e]);++e<i;)t=n(t,r[e],e,r);return t}function Q(r,n){for(var t=-1,u=null==r?0:r.length,e=0,i=[];++t<u;){var o=r[t];n(o,t,r)&&(i[e++]=o)}return i}function U(){return[]}var X=Object.prototype.propertyIsEnumerable,Y=Object.getOwnPropertySymbols,rr=Y?function(r){return null==r?[]:(r=Object(r),Q(Y(r),function(n){return X.call(r,n)}))}:U;function nr(r,n,u){var e=n(r);return t(r)?e:I(e,u(r))}function tr(r){return nr(r,B,rr)}function ur(r){var n=-1,t=null==r?0:r.length;for(this.__data__=new c;++n<t;)this.add(r[n])}function er(r,n){for(var t=-1,u=null==r?0:r.length;++t<u;)if(n(r[t],t,r))return!0;return!1}function ir(r,n){return r.has(n)}ur.prototype.add=ur.prototype.push=function(r){return this.__data__.set(r,"__lodash_hash_undefined__"),this},ur.prototype.has=function(r){return this.__data__.has(r)};function or(r,n,t,u,e,i){var o=1&t,f=r.length,a=n.length;if(f!=a&&!(o&&a>f))return!1;var c=i.get(r),v=i.get(n);if(c&&v)return c==n&&v==r;var s=-1,l=!0,b=2&t?new ur:void 0;for(i.set(r,n),i.set(n,r);++s<f;){var j=r[s],d=n[s];if(u)var y=o?u(d,j,s,n,r,i):u(j,d,s,r,n,i);if(void 0!==y){if(y)continue;l=!1;break}if(b){if(!er(n,function(r,n){if(!ir(b,n)&&(j===r||e(j,r,t,u,i)))return b.push(n)})){l=!1;break}}else if(j!==d&&!e(j,d,t,u,i)){l=!1;break}}return i.delete(r),i.delete(n),l}function fr(r){var n=-1,t=Array(r.size);return r.forEach(function(r,u){t[++n]=[u,r]}),t}function ar(r){var n=-1,t=Array(r.size);return r.forEach(function(r){t[++n]=r}),t}var cr=u?u.prototype:void 0,vr=cr?cr.valueOf:void 0;var sr=Object.prototype.hasOwnProperty;var lr="[object Arguments]",br="[object Array]",jr="[object Object]",dr=Object.prototype.hasOwnProperty;function yr(r,n,u,e,i,o){var f=t(r),a=t(n),c=f?br:l(r),y=a?br:l(n),p=(c=c==lr?jr:c)==jr,w=(y=y==lr?jr:y)==jr,_=c==y;if(_&&b(r)){if(!b(n))return!1;f=!0,p=!1}if(_&&!p)return o||(o=new j),f||d(r)?or(r,n,u,e,i,o):function(r,n,t,u,e,i,o){switch(t){case"[object DataView]":if(r.byteLength!=n.byteLength||r.byteOffset!=n.byteOffset)return!1;r=r.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(r.byteLength!=n.byteLength||!i(new s(r),new s(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return v(+r,+n);case"[object Error]":return r.name==n.name&&r.message==n.message;case"[object RegExp]":case"[object String]":return r==n+"";case"[object Map]":var f=fr;case"[object Set]":var a=1&u;if(f||(f=ar),r.size!=n.size&&!a)return!1;var c=o.get(r);if(c)return c==n;u|=2,o.set(r,n);var l=or(f(r),f(n),u,e,i,o);return o.delete(r),l;case"[object Symbol]":if(vr)return vr.call(r)==vr.call(n)}return!1}(r,n,c,u,e,i,o);if(!(1&u)){var m=p&&dr.call(r,"__wrapped__"),O=w&&dr.call(n,"__wrapped__");if(m||O){var h=m?r.value():r,g=O?n.value():n;return o||(o=new j),i(h,g,u,e,o)}}return!!_&&(o||(o=new j),function(r,n,t,u,e,i){var o=1&t,f=tr(r),a=f.length;if(a!=tr(n).length&&!o)return!1;for(var c=a;c--;){var v=f[c];if(!(o?v in n:sr.call(n,v)))return!1}var s=i.get(r),l=i.get(n);if(s&&l)return s==n&&l==r;var b=!0;i.set(r,n),i.set(n,r);for(var j=o;++c<a;){var d=r[v=f[c]],y=n[v];if(u)var p=o?u(y,d,v,n,r,i):u(d,y,v,r,n,i);if(!(void 0===p?d===y||e(d,y,t,u,i):p)){b=!1;break}j||(j="constructor"==v)}if(b&&!j){var w=r.constructor,_=n.constructor;w==_||!("constructor"in r)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(b=!1)}return i.delete(r),i.delete(n),b}(r,n,u,e,i,o))}function pr(n,t,u,e,i){return n===t||(null==n||null==t||!r(n)&&!r(t)?n!=n&&t!=t:yr(n,t,u,e,pr,i))}function wr(r){return r==r&&!y(r)}function _r(r,n){return function(t){return null!=t&&(t[r]===n&&(void 0!==n||r in Object(t)))}}function mr(r){var n=function(r){for(var n=B(r),t=n.length;t--;){var u=n[t],e=r[u];n[t]=[u,e,wr(e)]}return n}(r);return 1==n.length&&n[0][2]?_r(n[0][0],n[0][1]):function(t){return t===r||function(r,n,t,u){var e=t.length,i=e;if(null==r)return!i;for(r=Object(r);e--;){var o=t[e];if(o[2]?o[1]!==r[o[0]]:!(o[0]in r))return!1}for(;++e<i;){var f=(o=t[e])[0],a=r[f],c=o[1];if(o[2]){if(void 0===a&&!(f in r))return!1}else if(!pr(c,a,3,u,new j))return!1}return!0}(t,0,n)}}function Or(r,n){return null!=r&&n in Object(r)}function hr(r,n,u){for(var e=-1,i=(n=C(n,r)).length,o=!1;++e<i;){var f=G(n[e]);if(!(o=null!=r&&u(r,f)))break;r=r[f]}return o||++e!=i?o:!!(i=null==r?0:r.length)&&p(i)&&w(f,i)&&(t(r)||a(r))}function gr(r,n){return null!=r&&hr(r,n,Or)}function Ar(r,n){return z(r)&&wr(n)?_r(G(r),n):function(t){var u=function(r,n,t){var u=null==r?void 0:H(r,n);return void 0===u?t:u}(t,r);return void 0===u&&u===n?gr(t,r):pr(n,u,3)}}function kr(r){return z(r)?(n=G(r),function(r){return null==r?void 0:r[n]}):function(r){return function(n){return H(n,r)}}(r);var n}function xr(r){return"function"==typeof r?r:null==r?_:"object"==typeof r?t(r)?Ar(r[0],r[1]):mr(r):kr(r)}function Sr(r,n){return r&&m(r,n,B)}var $r,Dr=($r=Sr,function(r,n){if(null==r)return r;if(!e(r))return $r(r,n);for(var t=r.length,u=-1,i=Object(r);++u<t&&!1!==n(i[u],u,i););return r});function Er(r){return"function"==typeof r?r:_}function Br(r,n){return(t(r)?S:Dr)(r,Er(n))}function Vr(r,n){var t=[];return Dr(r,function(r,u,e){n(r,u,e)&&t.push(r)}),t}function qr(r,n){return(t(r)?Q:Vr)(r,xr(n))}function zr(r,n,t,u,e){return e(r,function(r,e,i){t=u?(u=!1,r):n(t,r,e,i)}),t}function Fr(r,n,u){var e=t(r)?P:zr,i=arguments.length<3;return e(r,xr(n),u,i,Dr)}var Mr=O&&1/ar(new O([,-0]))[1]==1/0?function(r){return new O(r)}:function(){};function Nr(r,n,t){var u=-1,e=E,i=r.length,o=!0,f=[],a=f;if(i>=200){var c=n?null:Mr(r);if(c)return ar(c);o=!1,e=ir,a=new ur}else a=n?[]:f;r:for(;++u<i;){var v=r[u],s=n?n(v):v;if(v=0!==v?v:0,o&&s==s){for(var l=a.length;l--;)if(a[l]===s)continue r;n&&a.push(s),f.push(v)}else e(a,s,t)||(a!==f&&a.push(s),f.push(v))}return f}export{Dr as a,L as b,xr as c,g as d,I as e,nr as f,rr as g,S as h,h as i,tr as j,B as k,Nr as l,qr as m,Br as n,$ as o,Er as p,Sr as q,Fr as r,U as s,hr as t,C as u,G as v,H as w,gr as x,Z as y};
@@ -1 +0,0 @@
1
- import{a0 as n,a1 as t,a2 as u,a3 as r,a4 as i,a5 as a,a6 as f,a7 as o,a8 as e,a9 as s,aa as c,ab as l,ac as h,ad as v,ae as y}from"./index-p16PXaGU.js";function p(n){return n.innerRadius}function x(n){return n.outerRadius}function d(n){return n.startAngle}function m(n){return n.endAngle}function b(n){return n&&n.padAngle}function j(n,t,u,r,i,a,f){var o=n-u,e=t-r,c=(f?a:-a)/s(o*o+e*e),l=c*e,h=-c*o,v=n+l,p=t+h,x=u+l,d=r+h,m=(v+x)/2,b=(p+d)/2,j=x-v,g=d-p,k=j*j+g*g,q=i-a,w=v*d-x*p,z=(g<0?-1:1)*s(y(0,q*q*k-w*w)),A=(w*g-j*z)/k,B=(-w*j-g*z)/k,C=(w*g+j*z)/k,D=(-w*j+g*z)/k,E=A-m,F=B-b,G=C-m,H=D-b;return E*E+F*F>G*G+H*H&&(A=C,B=D),{cx:A,cy:B,x01:-l,y01:-h,x11:A*(i/q-1),y11:B*(i/q-1)}}function g(){var y=p,g=x,k=l(0),q=null,w=d,z=m,A=b,B=null,C=n(D);function D(){var n,l,p=+y.apply(this,arguments),x=+g.apply(this,arguments),d=w.apply(this,arguments)-t,m=z.apply(this,arguments)-t,b=o(m-d),D=m>d;if(B||(B=n=C()),x<p&&(l=x,x=p,p=l),x>u)if(b>r-u)B.moveTo(x*i(d),x*a(d)),B.arc(0,0,x,d,m,!D),p>u&&(B.moveTo(p*i(m),p*a(m)),B.arc(0,0,p,m,d,D));else{var E,F,G=d,H=m,I=d,J=m,K=b,L=b,M=A.apply(this,arguments)/2,N=M>u&&(q?+q.apply(this,arguments):s(p*p+x*x)),O=f(o(x-p)/2,+k.apply(this,arguments)),P=O,Q=O;if(N>u){var R=h(N/p*a(M)),S=h(N/x*a(M));(K-=2*R)>u?(I+=R*=D?1:-1,J-=R):(K=0,I=J=(d+m)/2),(L-=2*S)>u?(G+=S*=D?1:-1,H-=S):(L=0,G=H=(d+m)/2)}var T=x*i(G),U=x*a(G),V=p*i(J),W=p*a(J);if(O>u){var X,Y=x*i(H),Z=x*a(H),$=p*i(I),_=p*a(I);if(b<e)if(X=function(n,t,r,i,a,f,o,e){var s=r-n,c=i-t,l=o-a,h=e-f,v=h*s-l*c;if(!(v*v<u))return[n+(v=(l*(t-f)-h*(n-a))/v)*s,t+v*c]}(T,U,$,_,Y,Z,V,W)){var nn=T-X[0],tn=U-X[1],un=Y-X[0],rn=Z-X[1],an=1/a(v((nn*un+tn*rn)/(s(nn*nn+tn*tn)*s(un*un+rn*rn)))/2),fn=s(X[0]*X[0]+X[1]*X[1]);P=f(O,(p-fn)/(an-1)),Q=f(O,(x-fn)/(an+1))}else P=Q=0}L>u?Q>u?(E=j($,_,T,U,x,Q,D),F=j(Y,Z,V,W,x,Q,D),B.moveTo(E.cx+E.x01,E.cy+E.y01),Q<O?B.arc(E.cx,E.cy,Q,c(E.y01,E.x01),c(F.y01,F.x01),!D):(B.arc(E.cx,E.cy,Q,c(E.y01,E.x01),c(E.y11,E.x11),!D),B.arc(0,0,x,c(E.cy+E.y11,E.cx+E.x11),c(F.cy+F.y11,F.cx+F.x11),!D),B.arc(F.cx,F.cy,Q,c(F.y11,F.x11),c(F.y01,F.x01),!D))):(B.moveTo(T,U),B.arc(0,0,x,G,H,!D)):B.moveTo(T,U),p>u&&K>u?P>u?(E=j(V,W,Y,Z,p,-P,D),F=j(T,U,$,_,p,-P,D),B.lineTo(E.cx+E.x01,E.cy+E.y01),P<O?B.arc(E.cx,E.cy,P,c(E.y01,E.x01),c(F.y01,F.x01),!D):(B.arc(E.cx,E.cy,P,c(E.y01,E.x01),c(E.y11,E.x11),!D),B.arc(0,0,p,c(E.cy+E.y11,E.cx+E.x11),c(F.cy+F.y11,F.cx+F.x11),D),B.arc(F.cx,F.cy,P,c(F.y11,F.x11),c(F.y01,F.x01),!D))):B.arc(0,0,p,J,I,D):B.lineTo(V,W)}else B.moveTo(0,0);if(B.closePath(),n)return B=null,n+""||null}return D.centroid=function(){var n=(+y.apply(this,arguments)+ +g.apply(this,arguments))/2,t=(+w.apply(this,arguments)+ +z.apply(this,arguments))/2-e/2;return[i(t)*n,a(t)*n]},D.innerRadius=function(n){return arguments.length?(y="function"==typeof n?n:l(+n),D):y},D.outerRadius=function(n){return arguments.length?(g="function"==typeof n?n:l(+n),D):g},D.cornerRadius=function(n){return arguments.length?(k="function"==typeof n?n:l(+n),D):k},D.padRadius=function(n){return arguments.length?(q=null==n?null:"function"==typeof n?n:l(+n),D):q},D.startAngle=function(n){return arguments.length?(w="function"==typeof n?n:l(+n),D):w},D.endAngle=function(n){return arguments.length?(z="function"==typeof n?n:l(+n),D):z},D.padAngle=function(n){return arguments.length?(A="function"==typeof n?n:l(+n),D):A},D.context=function(n){return arguments.length?(B=null==n?null:n,D):B},D}export{g as d};