@leanspec/ui-components 0.2.22 → 0.2.23

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 (128) hide show
  1. package/dist/{_baseUniq-D7Jo4wA-.js → _baseUniq-C4bkXOdh.js} +1 -1
  2. package/dist/{_baseUniq-DuU2z5Ko.cjs → _baseUniq-NOqaX5H-.cjs} +1 -1
  3. package/dist/{arc-bSbgZKu2.js → arc-DFohBtPV.js} +1 -1
  4. package/dist/{arc-DVobalXV.cjs → arc-tyrH719b.cjs} +1 -1
  5. package/dist/{architecture-U656AL7Q-pOUzdaWZ.js → architecture-U656AL7Q-BBwC7kfZ.js} +1 -1
  6. package/dist/{architecture-U656AL7Q-BnnsKr-v.cjs → architecture-U656AL7Q-SovojSOj.cjs} +1 -1
  7. package/dist/{architectureDiagram-VXUJARFQ-Dwe8uzg_.cjs → architectureDiagram-VXUJARFQ-C4hhcqJd.cjs} +1 -1
  8. package/dist/{architectureDiagram-VXUJARFQ-B9csKaKv.js → architectureDiagram-VXUJARFQ-_R9_zrc5.js} +3 -3
  9. package/dist/{blockDiagram-VD42YOAC-DrRsdznF.js → blockDiagram-VD42YOAC-CiyHYW6w.js} +5 -5
  10. package/dist/{blockDiagram-VD42YOAC-B4iBhDdw.cjs → blockDiagram-VD42YOAC-DDU7DL-t.cjs} +1 -1
  11. package/dist/{c4Diagram-YG6GDRKO-BRDnNTAH.cjs → c4Diagram-YG6GDRKO-B2Hnd24N.cjs} +1 -1
  12. package/dist/{c4Diagram-YG6GDRKO-Di2rkJ8i.js → c4Diagram-YG6GDRKO-D9NuNc3r.js} +2 -2
  13. package/dist/channel-CCjQuxFu.cjs +1 -0
  14. package/dist/{channel-CTeTHv-y.js → channel-mhjF1lKa.js} +1 -1
  15. package/dist/{chunk-4BX2VUAB-Ckv-xIp1.cjs → chunk-4BX2VUAB-8sPjSRf4.cjs} +1 -1
  16. package/dist/{chunk-4BX2VUAB-Dkr-Egsj.js → chunk-4BX2VUAB-D4Zhvat9.js} +1 -1
  17. package/dist/{chunk-55IACEB6-CVnZTCiR.cjs → chunk-55IACEB6-BuOA2zgr.cjs} +1 -1
  18. package/dist/{chunk-55IACEB6-D_uwi6CC.js → chunk-55IACEB6-C_MzxCLx.js} +1 -1
  19. package/dist/{chunk-B4BG7PRW-Bne1UwNu.cjs → chunk-B4BG7PRW-C0iFhfj1.cjs} +1 -1
  20. package/dist/{chunk-B4BG7PRW-BipBIVhj.js → chunk-B4BG7PRW-Q8H7OQ1o.js} +4 -4
  21. package/dist/{chunk-DI55MBZ5-UAAzyEQX.cjs → chunk-DI55MBZ5-DFTfH1ih.cjs} +1 -1
  22. package/dist/{chunk-DI55MBZ5-8tWOlvAD.js → chunk-DI55MBZ5-qwPYmgAw.js} +3 -3
  23. package/dist/{chunk-FMBD7UC4-DsaPsLgZ.cjs → chunk-FMBD7UC4-CPX03hX9.cjs} +1 -1
  24. package/dist/{chunk-FMBD7UC4-CLc8_72-.js → chunk-FMBD7UC4-DhXvRHU3.js} +1 -1
  25. package/dist/{chunk-QN33PNHL-BBlw4H4R.cjs → chunk-QN33PNHL-BL0nCK1x.cjs} +1 -1
  26. package/dist/{chunk-QN33PNHL-QKH9jByz.js → chunk-QN33PNHL-CLwAcvO2.js} +1 -1
  27. package/dist/{chunk-QZHKN3VN-BPpgPA2g.js → chunk-QZHKN3VN-3tLb49S_.js} +1 -1
  28. package/dist/{chunk-QZHKN3VN-CB9ZTvXU.cjs → chunk-QZHKN3VN-NXe7XoPI.cjs} +1 -1
  29. package/dist/{chunk-TZMSLE5B-Dl7DiX7D.cjs → chunk-TZMSLE5B-DG9JqGDb.cjs} +1 -1
  30. package/dist/{chunk-TZMSLE5B-Coq49FaX.js → chunk-TZMSLE5B-DfaYobmr.js} +1 -1
  31. package/dist/{classDiagram-2ON5EDUG-Fsj2z4ej.cjs → classDiagram-2ON5EDUG-CV-RQXaH.cjs} +1 -1
  32. package/dist/{classDiagram-v2-WZHVMYZB-DYaKkEXb.js → classDiagram-2ON5EDUG-xB0RyXwt.js} +2 -2
  33. package/dist/{classDiagram-v2-WZHVMYZB-Fsj2z4ej.cjs → classDiagram-v2-WZHVMYZB-CV-RQXaH.cjs} +1 -1
  34. package/dist/{classDiagram-2ON5EDUG-DYaKkEXb.js → classDiagram-v2-WZHVMYZB-xB0RyXwt.js} +2 -2
  35. package/dist/clone-Db2amhxD.cjs +1 -0
  36. package/dist/{clone-Ctm6tjrV.js → clone-DqT6If4_.js} +1 -1
  37. package/dist/{code-block-37QAKDTI-3zaK1Sok.js → code-block-37QAKDTI-CWOOD74I.js} +1 -1
  38. package/dist/{code-block-37QAKDTI-UmxtJ5VR.cjs → code-block-37QAKDTI-uxfAy-E5.cjs} +1 -1
  39. package/dist/components/hierarchy/hierarchy-tree.d.ts +8 -1
  40. package/dist/components/hierarchy/hierarchy-tree.d.ts.map +1 -1
  41. package/dist/components/layout/index.d.ts +1 -1
  42. package/dist/components/layout/index.d.ts.map +1 -1
  43. package/dist/components/layout/loading-skeletons.d.ts +39 -0
  44. package/dist/components/layout/loading-skeletons.d.ts.map +1 -1
  45. package/dist/{cose-bilkent-S5V4N54A-iUMgKFJZ.js → cose-bilkent-S5V4N54A-DBS7wwrE.js} +1 -1
  46. package/dist/{cose-bilkent-S5V4N54A-BMt11jHq.cjs → cose-bilkent-S5V4N54A-SbkkFEUD.cjs} +1 -1
  47. package/dist/{dagre-6UL2VRFP-CKc2IEbO.js → dagre-6UL2VRFP-Lv6cE2gX.js} +5 -5
  48. package/dist/{dagre-6UL2VRFP-sN44kpPp.cjs → dagre-6UL2VRFP-PalD6t9U.cjs} +1 -1
  49. package/dist/{diagram-PSM6KHXK-DERIvROx.js → diagram-PSM6KHXK-8QKT-Vki.js} +4 -4
  50. package/dist/{diagram-PSM6KHXK-Ltn89usT.cjs → diagram-PSM6KHXK-v8YbZXb0.cjs} +1 -1
  51. package/dist/{diagram-QEK2KX5R-B6CdcylU.js → diagram-QEK2KX5R-Bqh-tlSV.js} +3 -3
  52. package/dist/{diagram-QEK2KX5R-CDZWBlgA.cjs → diagram-QEK2KX5R-BzjP3pVl.cjs} +1 -1
  53. package/dist/{diagram-S2PKOQOG-5f_4uCtF.js → diagram-S2PKOQOG-Csj0p-s-.js} +3 -3
  54. package/dist/{diagram-S2PKOQOG-D4WcZEo0.cjs → diagram-S2PKOQOG-IkbiPUJ8.cjs} +1 -1
  55. package/dist/{erDiagram-Q2GNP2WA-mIz8VRgG.cjs → erDiagram-Q2GNP2WA-BkUigWGJ.cjs} +1 -1
  56. package/dist/{erDiagram-Q2GNP2WA-CnN7DF_N.js → erDiagram-Q2GNP2WA-sDpapMNP.js} +4 -4
  57. package/dist/{flowDiagram-NV44I4VS-Dl3ZZj2W.js → flowDiagram-NV44I4VS-CitCGiJE.js} +5 -5
  58. package/dist/{flowDiagram-NV44I4VS-BwUl8_y0.cjs → flowDiagram-NV44I4VS-CkSnWJRl.cjs} +1 -1
  59. package/dist/{ganttDiagram-JELNMOA3-Dl_PUPHn.cjs → ganttDiagram-JELNMOA3-7lQJBEfz.cjs} +1 -1
  60. package/dist/{ganttDiagram-JELNMOA3-q87tSGGF.js → ganttDiagram-JELNMOA3-DAaUYzNs.js} +2 -2
  61. package/dist/{gitGraph-F6HP7TQM-Cq9d8Pu6.cjs → gitGraph-F6HP7TQM-BOxOUe-M.cjs} +1 -1
  62. package/dist/{gitGraph-F6HP7TQM-C4DmI2Gg.js → gitGraph-F6HP7TQM-C2AsvVF3.js} +1 -1
  63. package/dist/{gitGraphDiagram-NY62KEGX-DMhKqh_S.cjs → gitGraphDiagram-NY62KEGX-ZRyPj0Wi.cjs} +1 -1
  64. package/dist/{gitGraphDiagram-NY62KEGX-NeHUXng4.js → gitGraphDiagram-NY62KEGX-lj732X3H.js} +4 -4
  65. package/dist/{graph-Da1z0n_J.js → graph-Bg_3T7Ud.js} +2 -2
  66. package/dist/{graph-AuIe-DO_.cjs → graph-Cu_dYuuO.cjs} +1 -1
  67. package/dist/{index-KEDsBA0n.cjs → index-Dy6CZ8M8.cjs} +241 -241
  68. package/dist/{index-B5zgF_S5.js → index-sw7mRKux.js} +19164 -18799
  69. package/dist/index.cjs +1 -1
  70. package/dist/index.js +485 -475
  71. package/dist/{info-NVLQJR56-FWiEuR29.cjs → info-NVLQJR56-CVPwWxmd.cjs} +1 -1
  72. package/dist/info-NVLQJR56-CkwixcJh.js +5 -0
  73. package/dist/{infoDiagram-WHAUD3N6-Dvc-cZjb.cjs → infoDiagram-WHAUD3N6-BMwDBsqy.cjs} +1 -1
  74. package/dist/{infoDiagram-WHAUD3N6-Cj-s-gtw.js → infoDiagram-WHAUD3N6-BbjOpAi3.js} +2 -2
  75. package/dist/{journeyDiagram-XKPGCS4Q-BbXXFBC-.js → journeyDiagram-XKPGCS4Q-Cx34P8cj.js} +4 -4
  76. package/dist/{journeyDiagram-XKPGCS4Q-B54o9W3g.cjs → journeyDiagram-XKPGCS4Q-owe1muzO.cjs} +1 -1
  77. package/dist/{kanban-definition-3W4ZIXB7-BQfiIWMB.cjs → kanban-definition-3W4ZIXB7-BG76XYj7.cjs} +1 -1
  78. package/dist/{kanban-definition-3W4ZIXB7-ClCUbNCO.js → kanban-definition-3W4ZIXB7-BP3ykzKL.js} +2 -2
  79. package/dist/{layout-9b_FTQ6g.cjs → layout-BM-_iYaN.cjs} +1 -1
  80. package/dist/{layout-BoJlbrAK.js → layout-Bft_7Aja.js} +4 -4
  81. package/dist/lib/hierarchy.d.ts +7 -1
  82. package/dist/lib/hierarchy.d.ts.map +1 -1
  83. package/dist/lib/index.d.ts +1 -1
  84. package/dist/lib/index.d.ts.map +1 -1
  85. package/dist/{linear-4rmylyIU.js → linear-BDIyMYXP.js} +1 -1
  86. package/dist/{linear-FU7lEwDb.cjs → linear-DTAQTaEQ.cjs} +1 -1
  87. package/dist/{mermaid-4DMBBIKO-CGMd2ylH.cjs → mermaid-4DMBBIKO-B7O_d629.cjs} +1 -1
  88. package/dist/mermaid-4DMBBIKO-hCNdiULh.js +4 -0
  89. package/dist/{mermaid-parser.core-BbeEQ08m.js → mermaid-parser.core-BQu7eTx9.js} +10 -10
  90. package/dist/{mermaid-parser.core-CQwGaxt2.cjs → mermaid-parser.core-DYuBLIYw.cjs} +2 -2
  91. package/dist/{min-Ddv5U3O-.cjs → min-B_0S1fKc.cjs} +1 -1
  92. package/dist/{min-C8aXS73f.js → min-g4o2CnuX.js} +2 -2
  93. package/dist/{mindmap-definition-VGOIOE7T-Gp-Ji6eO.cjs → mindmap-definition-VGOIOE7T-CkItDrx9.cjs} +1 -1
  94. package/dist/{mindmap-definition-VGOIOE7T-BRNm-2aJ.js → mindmap-definition-VGOIOE7T-CteUNe1z.js} +3 -3
  95. package/dist/{packet-BFZMPI3H-CJ8lOlJN.js → packet-BFZMPI3H-85mavqoW.js} +1 -1
  96. package/dist/{packet-BFZMPI3H-CpWVF6Ne.cjs → packet-BFZMPI3H-Dvo7vnhK.cjs} +1 -1
  97. package/dist/{pie-7BOR55EZ-Ceke0LDu.cjs → pie-7BOR55EZ-CSQSin36.cjs} +1 -1
  98. package/dist/pie-7BOR55EZ-DEUNQ2Gx.js +5 -0
  99. package/dist/{pieDiagram-ADFJNKIX-CwhRxtMH.cjs → pieDiagram-ADFJNKIX-BHhXUCfj.cjs} +1 -1
  100. package/dist/{pieDiagram-ADFJNKIX-BVRqurYx.js → pieDiagram-ADFJNKIX-COS6mtim.js} +4 -4
  101. package/dist/{quadrantDiagram-AYHSOK5B-DBTVya8p.cjs → quadrantDiagram-AYHSOK5B-D_HlZ7yZ.cjs} +1 -1
  102. package/dist/{quadrantDiagram-AYHSOK5B-CcsZBY3e.js → quadrantDiagram-AYHSOK5B-DmRa7VCS.js} +2 -2
  103. package/dist/{radar-NHE76QYJ-CX8DsGdu.cjs → radar-NHE76QYJ-BcVzBWDr.cjs} +1 -1
  104. package/dist/radar-NHE76QYJ-CdgX_Cpr.js +5 -0
  105. package/dist/{requirementDiagram-UZGBJVZJ-5bxQUo0r.cjs → requirementDiagram-UZGBJVZJ-BHFRZggR.cjs} +1 -1
  106. package/dist/{requirementDiagram-UZGBJVZJ-CV5SUGj-.js → requirementDiagram-UZGBJVZJ-CcQIz-20.js} +3 -3
  107. package/dist/{sankeyDiagram-TZEHDZUN-D33DzO8E.cjs → sankeyDiagram-TZEHDZUN-CSkEJj9g.cjs} +1 -1
  108. package/dist/{sankeyDiagram-TZEHDZUN-BFPvVGcz.js → sankeyDiagram-TZEHDZUN-CpcshR0Z.js} +1 -1
  109. package/dist/{sequenceDiagram-WL72ISMW-CQ5u3b_o.js → sequenceDiagram-WL72ISMW-B1iDbV8x.js} +3 -3
  110. package/dist/{sequenceDiagram-WL72ISMW-DFEVNSSA.cjs → sequenceDiagram-WL72ISMW-DscxgBA5.cjs} +1 -1
  111. package/dist/{stateDiagram-FKZM4ZOC-zOb-V3pD.js → stateDiagram-FKZM4ZOC-DIutB6RS.js} +4 -4
  112. package/dist/{stateDiagram-FKZM4ZOC-sKqH3kHZ.cjs → stateDiagram-FKZM4ZOC-c19kgfCN.cjs} +1 -1
  113. package/dist/{stateDiagram-v2-4FDKWEC3-_Mzc1jVl.js → stateDiagram-v2-4FDKWEC3-BKEaZomO.js} +2 -2
  114. package/dist/{stateDiagram-v2-4FDKWEC3-DwWb55sM.cjs → stateDiagram-v2-4FDKWEC3-CCn-Iy_C.cjs} +1 -1
  115. package/dist/{timeline-definition-IT6M3QCI-D19MQs5w.cjs → timeline-definition-IT6M3QCI-CfRSUfqZ.cjs} +1 -1
  116. package/dist/{timeline-definition-IT6M3QCI-B2T2QrC5.js → timeline-definition-IT6M3QCI-D1yY4TSO.js} +2 -2
  117. package/dist/{treemap-KMMF4GRG-C7E3CtG7.cjs → treemap-KMMF4GRG-Cn6nuBab.cjs} +1 -1
  118. package/dist/{treemap-KMMF4GRG-wB3pBnFc.js → treemap-KMMF4GRG-KtkxYt13.js} +1 -1
  119. package/dist/ui-components.css +1 -1
  120. package/dist/{xychartDiagram-PRI3JC2R-hKFxVf6x.cjs → xychartDiagram-PRI3JC2R-OeJ2-Nwx.cjs} +1 -1
  121. package/dist/{xychartDiagram-PRI3JC2R-BSPghzKh.js → xychartDiagram-PRI3JC2R-a_g9ptTp.js} +2 -2
  122. package/package.json +1 -1
  123. package/dist/channel-Dzz86sIh.cjs +0 -1
  124. package/dist/clone-JAtNXNmq.cjs +0 -1
  125. package/dist/info-NVLQJR56-A56PvZ_B.js +0 -5
  126. package/dist/mermaid-4DMBBIKO-CNvUKRvV.js +0 -4
  127. package/dist/pie-7BOR55EZ-BCyVC33Q.js +0 -5
  128. package/dist/radar-NHE76QYJ-C6zEuLeW.js +0 -5
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-CQwGaxt2.cjs");exports.InfoModule=e.InfoModule;exports.createInfoServices=e.createInfoServices;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-DYuBLIYw.cjs");exports.InfoModule=e.InfoModule;exports.createInfoServices=e.createInfoServices;
@@ -0,0 +1,5 @@
1
+ import { I as r, c as a } from "./mermaid-parser.core-BQu7eTx9.js";
2
+ export {
3
+ r as InfoModule,
4
+ a as createInfoServices
5
+ };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-KEDsBA0n.cjs"),s=require("./mermaid-parser.core-CQwGaxt2.cjs");var o={parse:e.__name(async r=>{const a=await s.parse("info",r);e.log.debug(a)},"parse")},i={version:e.package_default.version+""},g=e.__name(()=>i.version,"getVersion"),d={getVersion:g},v=e.__name((r,a,n)=>{e.log.debug(`rendering info diagram
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Dy6CZ8M8.cjs"),s=require("./mermaid-parser.core-DYuBLIYw.cjs");var o={parse:e.__name(async r=>{const a=await s.parse("info",r);e.log.debug(a)},"parse")},i={version:e.package_default.version+""},g=e.__name(()=>i.version,"getVersion"),d={getVersion:g},v=e.__name((r,a,n)=>{e.log.debug(`rendering info diagram
2
2
  `+r);const t=e.selectSvgElement(a);e.configureSvgSize(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),c={draw:v},p={parser:o,db:d,renderer:c};exports.diagram=p;
@@ -1,5 +1,5 @@
1
- import { _ as e, l as s, P as o, i, Q as g } from "./index-B5zgF_S5.js";
2
- import { p } from "./mermaid-parser.core-BbeEQ08m.js";
1
+ import { _ as e, l as s, P as o, i, Q as g } from "./index-sw7mRKux.js";
2
+ import { p } from "./mermaid-parser.core-BQu7eTx9.js";
3
3
  var v = {
4
4
  parse: /* @__PURE__ */ e(async (r) => {
5
5
  const a = await p("info", r);
@@ -1,7 +1,7 @@
1
- import { a as gt, g as lt, f as mt, d as xt } from "./chunk-TZMSLE5B-Coq49FaX.js";
2
- import { g as kt } from "./chunk-FMBD7UC4-CLc8_72-.js";
3
- import { _ as n, g as _t, s as vt, d as bt, e as wt, z as Tt, y as St, f as R, h as X, i as $t, D as Mt } from "./index-B5zgF_S5.js";
4
- import { d as et } from "./arc-bSbgZKu2.js";
1
+ import { a as gt, g as lt, f as mt, d as xt } from "./chunk-TZMSLE5B-DfaYobmr.js";
2
+ import { g as kt } from "./chunk-FMBD7UC4-DhXvRHU3.js";
3
+ import { _ as n, g as _t, s as vt, d as bt, e as wt, z as Tt, y as St, f as R, h as X, i as $t, D as Mt } from "./index-sw7mRKux.js";
4
+ import { d as et } from "./arc-DFohBtPV.js";
5
5
  var U = (function() {
6
6
  var t = /* @__PURE__ */ n(function(h, i, a, l) {
7
7
  for (a = a || {}, l = h.length; l--; a[h[l]] = i) ;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./chunk-TZMSLE5B-Dl7DiX7D.cjs"),ft=require("./chunk-FMBD7UC4-DsaPsLgZ.cjs"),i=require("./index-KEDsBA0n.cjs"),tt=require("./arc-DVobalXV.cjs");var G=(function(){var t=i.__name(function(h,n,s,l){for(s=s||{},l=h.length;l--;s[h[l]]=n);return s},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],c=[1,10],r=[1,11],f=[1,12],u=[1,13],y=[1,14],_={trace:i.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:i.__name(function(n,s,l,d,p,o,b){var x=o.length-1;switch(p){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 13:d.addTask(o[x-1],o[x]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:c,14:r,16:f,17:u,18:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:c,14:r,16:f,17:u,18:y},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:i.__name(function(n,s){if(s.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=s,l}},"parseError"),parse:i.__name(function(n){var s=this,l=[0],d=[],p=[null],o=[],b=this.table,x="",E=0,D=0,ht=2,J=1,ut=o.slice.call(arguments,1),k=Object.create(this.lexer),A={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(A.yy[q]=this.yy[q]);k.setInput(n,A.yy),A.yy.lexer=k,A.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var O=k.yylloc;o.push(O);var dt=k.options&&k.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(w){l.length=l.length-2*w,p.length=p.length-w,o.length=o.length-w}i.__name(yt,"popStack");function K(){var w;return w=d.pop()||k.lex()||J,typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=s.symbols_[w]||w),w}i.__name(K,"lex");for(var v,I,T,Y,F={},N,M,Q,z;;){if(I=l[l.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((v===null||typeof v>"u")&&(v=K()),T=b[I]&&b[I][v]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in b[I])this.terminals_[N]&&N>ht&&z.push("'"+this.terminals_[N]+"'");k.showPosition?H="Parse error on line "+(E+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./chunk-TZMSLE5B-DG9JqGDb.cjs"),ft=require("./chunk-FMBD7UC4-CPX03hX9.cjs"),i=require("./index-Dy6CZ8M8.cjs"),tt=require("./arc-tyrH719b.cjs");var G=(function(){var t=i.__name(function(h,n,s,l){for(s=s||{},l=h.length;l--;s[h[l]]=n);return s},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],c=[1,10],r=[1,11],f=[1,12],u=[1,13],y=[1,14],_={trace:i.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:i.__name(function(n,s,l,d,p,o,b){var x=o.length-1;switch(p){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 13:d.addTask(o[x-1],o[x]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:c,14:r,16:f,17:u,18:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:c,14:r,16:f,17:u,18:y},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:i.__name(function(n,s){if(s.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=s,l}},"parseError"),parse:i.__name(function(n){var s=this,l=[0],d=[],p=[null],o=[],b=this.table,x="",E=0,D=0,ht=2,J=1,ut=o.slice.call(arguments,1),k=Object.create(this.lexer),A={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(A.yy[q]=this.yy[q]);k.setInput(n,A.yy),A.yy.lexer=k,A.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var O=k.yylloc;o.push(O);var dt=k.options&&k.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(w){l.length=l.length-2*w,p.length=p.length-w,o.length=o.length-w}i.__name(yt,"popStack");function K(){var w;return w=d.pop()||k.lex()||J,typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=s.symbols_[w]||w),w}i.__name(K,"lex");for(var v,I,T,Y,F={},N,M,Q,z;;){if(I=l[l.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((v===null||typeof v>"u")&&(v=K()),T=b[I]&&b[I][v]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in b[I])this.terminals_[N]&&N>ht&&z.push("'"+this.terminals_[N]+"'");k.showPosition?H="Parse error on line "+(E+1)+`:
2
2
  `+k.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[v]||v)+"'":H="Parse error on line "+(E+1)+": Unexpected "+(v==J?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(H,{text:k.match,token:this.terminals_[v]||v,line:k.yylineno,loc:O,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+v);switch(T[0]){case 1:l.push(v),p.push(k.yytext),o.push(k.yylloc),l.push(T[1]),v=null,D=k.yyleng,x=k.yytext,E=k.yylineno,O=k.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=p[p.length-M],F._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},dt&&(F._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),Y=this.performAction.apply(F,[x,D,E,A.yy,T[1],p,o].concat(ut)),typeof Y<"u")return Y;M&&(l=l.slice(0,-1*M*2),p=p.slice(0,-1*M),o=o.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),p.push(F.$),o.push(F._$),Q=b[l[l.length-2]][l[l.length-1]],l.push(Q);break;case 3:return!0}}return!0},"parse")},g=(function(){var h={EOF:1,parseError:i.__name(function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw new Error(s)},"parseError"),setInput:i.__name(function(n,s){return this.yy=s||this.yy||{},this._input=n,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:i.__name(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var s=n.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:i.__name(function(n){var s=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=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),l.length-1&&(this.yylineno-=l.length-1);var p=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:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i.__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:i.__name(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var n=this.pastInput(),s=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-KEDsBA0n.cjs"),le=require("./chunk-FMBD7UC4-DsaPsLgZ.cjs");var J=(function(){var e=n.__name(function(O,s,i,a){for(i=i||{},a=O.length;a--;i[O[a]]=s);return i},"o"),u=[1,4],p=[1,13],r=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],C=[1,26],g=[1,24],T=[1,25],b=[6,7,11],F=[1,31],x=[6,7,11,24],B=[1,6,13,16,17,20,23],y=[1,35],w=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],A={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:n.__name(function(s,i,a,o,h,t,G){var c=t.length-1;switch(h){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",t[c-1].id),o.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:o.getLogger().info("Node: ",t[c].id),o.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:o.getLogger().trace("Icon: ",t[c]),o.decorateNode({icon:t[c]});break;case 18:case 23:o.decorateNode({class:t[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",t[c-1].id),o.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:o.getLogger().trace("Node: ",t[c].id),o.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:o.decorateNode({icon:t[c]});break;case 27:o.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:o.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:C,7:g,10:23,11:T},e(b,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(b,[2,19]),e(b,[2,21],{15:30,24:F}),e(b,[2,22]),e(b,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:T},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(B,[2,14],{7:y,11:w}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(b,[2,16],{15:37,24:F}),e(b,[2,17]),e(b,[2,18]),e(b,[2,20],{24:M}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:y,11:w}),e(L,[2,11]),e(L,[2,12]),e(b,[2,15],{24:M}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:n.__name(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:n.__name(function(s){var i=this,a=[0],o=[],h=[null],t=[],G=this.table,c="",U=0,ee=0,re=2,te=1,ae=t.slice.call(arguments,1),_=Object.create(this.lexer),R={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(R.yy[X]=this.yy[X]);_.setInput(s,R.yy),R.yy.lexer=_,R.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var K=_.yylloc;t.push(K);var oe=_.options&&_.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(S){a.length=a.length-2*S,h.length=h.length-S,t.length=t.length-S}n.__name(ce,"popStack");function ne(){var S;return S=o.pop()||_.lex()||te,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=i.symbols_[S]||S),S}n.__name(ne,"lex");for(var E,P,N,Y,j={},H,I,ie,z;;){if(P=a[a.length-1],this.defaultActions[P]?N=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ne()),N=G[P]&&G[P][E]),typeof N>"u"||!N.length||!N[0]){var q="";z=[];for(H in G[P])this.terminals_[H]&&H>re&&z.push("'"+this.terminals_[H]+"'");_.showPosition?q="Parse error on line "+(U+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-Dy6CZ8M8.cjs"),le=require("./chunk-FMBD7UC4-CPX03hX9.cjs");var J=(function(){var e=n.__name(function(O,s,i,a){for(i=i||{},a=O.length;a--;i[O[a]]=s);return i},"o"),u=[1,4],p=[1,13],r=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],C=[1,26],g=[1,24],T=[1,25],b=[6,7,11],F=[1,31],x=[6,7,11,24],B=[1,6,13,16,17,20,23],y=[1,35],w=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],A={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:n.__name(function(s,i,a,o,h,t,G){var c=t.length-1;switch(h){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",t[c-1].id),o.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:o.getLogger().info("Node: ",t[c].id),o.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:o.getLogger().trace("Icon: ",t[c]),o.decorateNode({icon:t[c]});break;case 18:case 23:o.decorateNode({class:t[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",t[c-1].id),o.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:o.getLogger().trace("Node: ",t[c].id),o.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:o.decorateNode({icon:t[c]});break;case 27:o.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:o.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:C,7:g,10:23,11:T},e(b,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(b,[2,19]),e(b,[2,21],{15:30,24:F}),e(b,[2,22]),e(b,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:T},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(B,[2,14],{7:y,11:w}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(b,[2,16],{15:37,24:F}),e(b,[2,17]),e(b,[2,18]),e(b,[2,20],{24:M}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:y,11:w}),e(L,[2,11]),e(L,[2,12]),e(b,[2,15],{24:M}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:n.__name(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:n.__name(function(s){var i=this,a=[0],o=[],h=[null],t=[],G=this.table,c="",U=0,ee=0,re=2,te=1,ae=t.slice.call(arguments,1),_=Object.create(this.lexer),R={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(R.yy[X]=this.yy[X]);_.setInput(s,R.yy),R.yy.lexer=_,R.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var K=_.yylloc;t.push(K);var oe=_.options&&_.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(S){a.length=a.length-2*S,h.length=h.length-S,t.length=t.length-S}n.__name(ce,"popStack");function ne(){var S;return S=o.pop()||_.lex()||te,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=i.symbols_[S]||S),S}n.__name(ne,"lex");for(var E,P,N,Y,j={},H,I,ie,z;;){if(P=a[a.length-1],this.defaultActions[P]?N=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ne()),N=G[P]&&G[P][E]),typeof N>"u"||!N.length||!N[0]){var q="";z=[];for(H in G[P])this.terminals_[H]&&H>re&&z.push("'"+this.terminals_[H]+"'");_.showPosition?q="Parse error on line "+(U+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[E]||E)+"'":q="Parse error on line "+(U+1)+": Unexpected "+(E==te?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(q,{text:_.match,token:this.terminals_[E]||E,line:_.yylineno,loc:K,expected:z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(N[0]){case 1:a.push(E),h.push(_.yytext),t.push(_.yylloc),a.push(N[1]),E=null,ee=_.yyleng,c=_.yytext,U=_.yylineno,K=_.yylloc;break;case 2:if(I=this.productions_[N[1]][1],j.$=h[h.length-I],j._$={first_line:t[t.length-(I||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(I||1)].first_column,last_column:t[t.length-1].last_column},oe&&(j._$.range=[t[t.length-(I||1)].range[0],t[t.length-1].range[1]]),Y=this.performAction.apply(j,[c,ee,U,R.yy,N[1],h,t].concat(ae)),typeof Y<"u")return Y;I&&(a=a.slice(0,-1*I*2),h=h.slice(0,-1*I),t=t.slice(0,-1*I)),a.push(this.productions_[N[1]][0]),h.push(j.$),t.push(j._$),ie=G[a[a.length-2]][a[a.length-1]],a.push(ie);break;case 3:return!0}}return!0},"parse")},W=(function(){var O={EOF:1,parseError:n.__name(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:n.__name(function(s,i){return this.yy=i||this.yy||{},this._input=s,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:n.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:n.__name(function(s){var i=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var o=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),a.length-1&&(this.yylineno-=a.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:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[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:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:n.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1,5 +1,5 @@
1
- import { _ as o, l as te, f as H, P as fe, am as ye, an as be, ao as me, ah as _e, M as K, m as F, A as Ee, J as ke, ai as Se, aj as ce, ak as le } from "./index-B5zgF_S5.js";
2
- import { g as Ne } from "./chunk-FMBD7UC4-CLc8_72-.js";
1
+ import { _ as o, l as te, f as H, P as fe, am as ye, an as be, ao as me, ah as _e, M as K, m as F, A as Ee, J as ke, ai as Se, aj as ce, ak as le } from "./index-sw7mRKux.js";
2
+ import { g as Ne } from "./chunk-FMBD7UC4-DhXvRHU3.js";
3
3
  var $ = (function() {
4
4
  var e = /* @__PURE__ */ o(function(O, i, n, r) {
5
5
  for (n = n || {}, r = O.length; r--; n[O[r]] = i) ;
@@ -1 +1 @@
1
- "use strict";const b=require("./graph-AuIe-DO_.cjs"),d=require("./_baseUniq-DuU2z5Ko.cjs"),v=require("./min-Ddv5U3O-.cjs"),m=require("./index-KEDsBA0n.cjs");var Ee=/\s/;function ge(e){for(var n=e.length;n--&&Ee.test(e.charAt(n)););return n}var ye=/^\s+/;function xe(e){return e&&e.slice(0,ge(e)+1).replace(ye,"")}var D=NaN,ke=/^[-+]0x[0-9a-f]+$/i,Oe=/^0b[01]+$/i,Ne=/^0o[0-7]+$/i,Le=parseInt;function Pe(e){if(typeof e=="number")return e;if(d.isSymbol(e))return D;if(m.isObject(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=m.isObject(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=xe(e);var r=Oe.test(e);return r||Ne.test(e)?Le(e.slice(2),r?2:8):ke.test(e)?D:+e}var W=1/0,Ie=17976931348623157e292;function P(e){if(!e)return e===0?e:0;if(e=Pe(e),e===W||e===-W){var n=e<0?-1:1;return n*Ie}return e===e?e:0}function _e(e){var n=P(e),r=n%1;return n===n?r?n-r:n:0}function Ce(e){return m.setToString(m.overRest(e,void 0,v.flatten),e+"")}var Re=1,Te=4;function Me(e){return b.baseClone(e,Re|Te)}var te=Object.prototype,Se=te.hasOwnProperty,Fe=m.baseRest(function(e,n){e=Object(e);var r=-1,t=n.length,a=t>2?n[2]:void 0;for(a&&m.isIterateeCall(n[0],n[1],a)&&(t=1);++r<t;)for(var o=n[r],i=m.keysIn(o),f=-1,u=i.length;++f<u;){var c=i[f],s=e[c];(s===void 0||m.eq(s,te[c])&&!Se.call(e,c))&&(e[c]=o[c])}return e});function I(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}function Ae(e){return function(n,r,t){var a=Object(n);if(!m.isArrayLike(n)){var o=d.baseIteratee(r);n=d.keys(n),r=function(f){return o(a[f],f,a)}}var i=e(n,r,t);return i>-1?a[o?n[i]:i]:void 0}}var Ge=Math.max;function je(e,n,r){var t=e==null?0:e.length;if(!t)return-1;var a=r==null?0:_e(r);return a<0&&(a=Ge(t+a,0)),d.baseFindIndex(e,d.baseIteratee(n),a)}var j=Ae(je);function Be(e,n){return e==null?e:m.baseFor(e,d.castFunction(n),m.keysIn)}function $e(e,n){return e&&d.baseForOwn(e,d.castFunction(n))}function Ve(e,n){return e>n}var Ye=Object.prototype,qe=Ye.hasOwnProperty;function Ue(e,n){return e!=null&&qe.call(e,n)}function ae(e,n){return e!=null&&d.hasPath(e,n,Ue)}function C(e,n){var r={};return n=d.baseIteratee(n),d.baseForOwn(e,function(t,a,o){m.baseAssignValue(r,a,n(t,a,o))}),r}function g(e){return e&&e.length?v.baseExtremum(e,m.identity,Ve):void 0}function B(e,n){return e&&e.length?v.baseExtremum(e,d.baseIteratee(n),v.baseLt):void 0}function De(e,n,r,t){if(!m.isObject(e))return e;n=d.castPath(n,e);for(var a=-1,o=n.length,i=o-1,f=e;f!=null&&++a<o;){var u=d.toKey(n[a]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(a!=i){var s=f[u];c=void 0,c===void 0&&(c=m.isObject(s)?s:m.isIndex(n[a+1])?[]:{})}m.assignValue(f,u,c),f=f[u]}return e}function We(e,n,r){for(var t=-1,a=n.length,o={};++t<a;){var i=n[t],f=d.baseGet(e,i);r(f,i)&&De(o,d.castPath(i,e),f)}return o}function ze(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function Xe(e,n){if(e!==n){var r=e!==void 0,t=e===null,a=e===e,o=d.isSymbol(e),i=n!==void 0,f=n===null,u=n===n,c=d.isSymbol(n);if(!f&&!c&&!o&&e>n||o&&i&&u&&!f&&!c||t&&i&&u||!r&&u||!a)return 1;if(!t&&!o&&!c&&e<n||c&&r&&a&&!t&&!o||f&&r&&a||!i&&a||!u)return-1}return 0}function He(e,n,r){for(var t=-1,a=e.criteria,o=n.criteria,i=a.length,f=r.length;++t<i;){var u=Xe(a[t],o[t]);if(u){if(t>=f)return u;var c=r[t];return u*(c=="desc"?-1:1)}}return e.index-n.index}function Je(e,n,r){n.length?n=d.arrayMap(n,function(o){return m.isArray(o)?function(i){return d.baseGet(i,o.length===1?o[0]:o)}:o}):n=[m.identity];var t=-1;n=d.arrayMap(n,m.baseUnary(d.baseIteratee));var a=v.baseMap(e,function(o,i,f){var u=d.arrayMap(n,function(c){return c(o)});return{criteria:u,index:++t,value:o}});return ze(a,function(o,i){return He(o,i,r)})}function Ke(e,n){return We(e,n,function(r,t){return d.hasIn(e,t)})}var _=Ce(function(e,n){return e==null?{}:Ke(e,n)}),Ze=Math.ceil,Qe=Math.max;function en(e,n,r,t){for(var a=-1,o=Qe(Ze((n-e)/(r||1)),0),i=Array(o);o--;)i[++a]=e,e+=r;return i}function nn(e){return function(n,r,t){return t&&typeof t!="number"&&m.isIterateeCall(n,r,t)&&(r=t=void 0),n=P(n),r===void 0?(r=n,n=0):r=P(r),t=t===void 0?n<r?1:-1:P(t),en(n,r,t)}}var x=nn(),L=m.baseRest(function(e,n){if(e==null)return[];var r=n.length;return r>1&&m.isIterateeCall(e,n[0],n[1])?n=[]:r>2&&m.isIterateeCall(n[0],n[1],n[2])&&(n=[n[0]]),Je(e,d.baseFlatten(n),[])}),rn=0;function $(e){var n=++rn;return d.toString(e)+n}function tn(e,n,r){for(var t=-1,a=e.length,o=n.length,i={};++t<a;){var f=t<o?n[t]:void 0;r(i,e[t],f)}return i}function an(e,n){return tn(e||[],n||[],m.assignValue)}class on{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return z(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&z(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,fn)),t=t._prev;return"["+n.join(", ")+"]"}}function z(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function fn(e,n){if(e!=="_next"&&e!=="_prev")return n}var un=m.constant$1(1);function dn(e,n){if(e.nodeCount()<=1)return[];var r=sn(e,n||un),t=cn(r.graph,r.buckets,r.zeroIdx);return v.flatten(v.map(t,function(a){return e.outEdges(a.v,a.w)}))}function cn(e,n,r){for(var t=[],a=n[n.length-1],o=n[0],i;e.nodeCount();){for(;i=o.dequeue();)T(e,n,r,i);for(;i=a.dequeue();)T(e,n,r,i);if(e.nodeCount()){for(var f=n.length-2;f>0;--f)if(i=n[f].dequeue(),i){t=t.concat(T(e,n,r,i,!0));break}}}return t}function T(e,n,r,t,a){var o=a?[]:void 0;return d.forEach(e.inEdges(t.v),function(i){var f=e.edge(i),u=e.node(i.v);a&&o.push({v:i.v,w:i.w}),u.out-=f,G(n,r,u)}),d.forEach(e.outEdges(t.v),function(i){var f=e.edge(i),u=i.w,c=e.node(u);c.in-=f,G(n,r,c)}),e.removeNode(t.v),o}function sn(e,n){var r=new b.Graph,t=0,a=0;d.forEach(e.nodes(),function(f){r.setNode(f,{v:f,in:0,out:0})}),d.forEach(e.edges(),function(f){var u=r.edge(f.v,f.w)||0,c=n(f),s=u+c;r.setEdge(f.v,f.w,s),a=Math.max(a,r.node(f.v).out+=c),t=Math.max(t,r.node(f.w).in+=c)});var o=x(a+t+3).map(function(){return new on}),i=t+1;return d.forEach(r.nodes(),function(f){G(o,i,r.node(f))}),{graph:r,buckets:o,zeroIdx:i}}function G(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function hn(e){var n=e.graph().acyclicer==="greedy"?dn(e,r(e)):ln(e);d.forEach(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,$("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function ln(e){var n=[],r={},t={};function a(o){Object.prototype.hasOwnProperty.call(t,o)||(t[o]=!0,r[o]=!0,d.forEach(e.outEdges(o),function(i){Object.prototype.hasOwnProperty.call(r,i.w)?n.push(i):a(i.w)}),delete r[o])}return d.forEach(e.nodes(),a),n}function vn(e){d.forEach(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function k(e,n,r,t){var a;do a=$(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function pn(e){var n=new b.Graph().setGraph(e.graph());return d.forEach(e.nodes(),function(r){n.setNode(r,e.node(r))}),d.forEach(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function ie(e){var n=new b.Graph({multigraph:e.isMultigraph()}).setGraph(e.graph());return d.forEach(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),d.forEach(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function X(e,n){var r=e.x,t=e.y,a=n.x-r,o=n.y-t,i=e.width/2,f=e.height/2;if(!a&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var u,c;return Math.abs(o)*i>Math.abs(a)*f?(o<0&&(f=-f),u=f*a/o,c=f):(a<0&&(i=-i),u=i,c=i*o/a),{x:r+u,y:t+c}}function R(e){var n=v.map(x(oe(e)+1),function(){return[]});return d.forEach(e.nodes(),function(r){var t=e.node(r),a=t.rank;b.isUndefined(a)||(n[a][t.order]=r)}),n}function wn(e){var n=v.min(v.map(e.nodes(),function(r){return e.node(r).rank}));d.forEach(e.nodes(),function(r){var t=e.node(r);ae(t,"rank")&&(t.rank-=n)})}function mn(e){var n=v.min(v.map(e.nodes(),function(o){return e.node(o).rank})),r=[];d.forEach(e.nodes(),function(o){var i=e.node(o).rank-n;r[i]||(r[i]=[]),r[i].push(o)});var t=0,a=e.graph().nodeRankFactor;d.forEach(r,function(o,i){b.isUndefined(o)&&i%a!==0?--t:t&&d.forEach(o,function(f){e.node(f).rank+=t})})}function H(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),k(e,"border",a,n)}function oe(e){return g(v.map(e.nodes(),function(n){var r=e.node(n).rank;if(!b.isUndefined(r))return r}))}function bn(e,n){var r={lhs:[],rhs:[]};return d.forEach(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function En(e,n){return n()}function gn(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&d.forEach(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var o=a.minRank,i=a.maxRank+1;o<i;++o)J(e,"borderLeft","_bl",r,a,o),J(e,"borderRight","_br",r,a,o)}}d.forEach(e.children(),n)}function J(e,n,r,t,a,o){var i={width:0,height:0,rank:o,borderType:n},f=a[n][o-1],u=k(e,"border",i,r);a[n][o]=u,e.setParent(u,t),f&&e.setEdge(f,u,{weight:1})}function yn(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&fe(e)}function xn(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&kn(e),(n==="lr"||n==="rl")&&(On(e),fe(e))}function fe(e){d.forEach(e.nodes(),function(n){K(e.node(n))}),d.forEach(e.edges(),function(n){K(e.edge(n))})}function K(e){var n=e.width;e.width=e.height,e.height=n}function kn(e){d.forEach(e.nodes(),function(n){M(e.node(n))}),d.forEach(e.edges(),function(n){var r=e.edge(n);d.forEach(r.points,M),Object.prototype.hasOwnProperty.call(r,"y")&&M(r)})}function M(e){e.y=-e.y}function On(e){d.forEach(e.nodes(),function(n){S(e.node(n))}),d.forEach(e.edges(),function(n){var r=e.edge(n);d.forEach(r.points,S),Object.prototype.hasOwnProperty.call(r,"x")&&S(r)})}function S(e){var n=e.x;e.x=e.y,e.y=n}function Nn(e){e.graph().dummyChains=[],d.forEach(e.edges(),function(n){Ln(e,n)})}function Ln(e,n){var r=n.v,t=e.node(r).rank,a=n.w,o=e.node(a).rank,i=n.name,f=e.edge(n),u=f.labelRank;if(o!==t+1){e.removeEdge(n);var c=void 0,s,h;for(h=0,++t;t<o;++h,++t)f.points=[],c={width:0,height:0,edgeLabel:f,edgeObj:n,rank:t},s=k(e,"edge",c,"_d"),t===u&&(c.width=f.width,c.height=f.height,c.dummy="edge-label",c.labelpos=f.labelpos),e.setEdge(r,s,{weight:f.weight},i),h===0&&e.graph().dummyChains.push(s),r=s;e.setEdge(r,a,{weight:f.weight},i)}}function Pn(e){d.forEach(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,a;for(e.setEdge(r.edgeObj,t);r.dummy;)a=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=a,r=e.node(n)})}function V(e){var n={};function r(t){var a=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return a.rank;n[t]=!0;var o=v.min(v.map(e.outEdges(t),function(i){return r(i.w)-e.edge(i).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),a.rank=o}d.forEach(e.sources(),r)}function N(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function ue(e){var n=new b.Graph({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var a,o;In(n,e)<t;)a=_n(n,e),o=n.hasNode(a.v)?N(e,a):-N(e,a),Cn(n,e,o);return n}function In(e,n){function r(t){d.forEach(n.nodeEdges(t),function(a){var o=a.v,i=t===o?a.w:o;!e.hasNode(i)&&!N(n,a)&&(e.setNode(i,{}),e.setEdge(t,i,{}),r(i))})}return d.forEach(e.nodes(),r),e.nodeCount()}function _n(e,n){return B(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return N(n,r)})}function Cn(e,n,r){d.forEach(e.nodes(),function(t){n.node(t).rank+=r})}function Rn(){}Rn.prototype=new Error;function de(e,n,r){m.isArray(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],o={};return d.forEach(n,function(i){if(!e.hasNode(i))throw new Error("Graph does not have node: "+i);ce(e,i,r==="post",o,t,a)}),a}function ce(e,n,r,t,a,o){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||o.push(n),d.forEach(a(n),function(i){ce(e,i,r,t,a,o)}),r&&o.push(n))}function Tn(e,n){return de(e,n,"post")}function Mn(e,n){return de(e,n,"pre")}y.initLowLimValues=q;y.initCutValues=Y;y.calcCutValue=se;y.leaveEdge=le;y.enterEdge=ve;y.exchangeEdges=pe;function y(e){e=pn(e),V(e);var n=ue(e);q(n),Y(n,e);for(var r,t;r=le(n);)t=ve(n,e,r),pe(n,e,r,t)}function Y(e,n){var r=Tn(e,e.nodes());r=r.slice(0,r.length-1),d.forEach(r,function(t){Sn(e,n,t)})}function Sn(e,n,r){var t=e.node(r),a=t.parent;e.edge(r,a).cutvalue=se(e,n,r)}function se(e,n,r){var t=e.node(r),a=t.parent,o=!0,i=n.edge(r,a),f=0;return i||(o=!1,i=n.edge(a,r)),f=i.weight,d.forEach(n.nodeEdges(r),function(u){var c=u.v===r,s=c?u.w:u.v;if(s!==a){var h=c===o,l=n.edge(u).weight;if(f+=h?l:-l,An(e,r,s)){var p=e.edge(r,s).cutvalue;f+=h?-p:p}}}),f}function q(e,n){arguments.length<2&&(n=e.nodes()[0]),he(e,{},1,n)}function he(e,n,r,t,a){var o=r,i=e.node(t);return n[t]=!0,d.forEach(e.neighbors(t),function(f){Object.prototype.hasOwnProperty.call(n,f)||(r=he(e,n,r,f,t))}),i.low=o,i.lim=r++,a?i.parent=a:delete i.parent,r}function le(e){return j(e.edges(),function(n){return e.edge(n).cutvalue<0})}function ve(e,n,r){var t=r.v,a=r.w;n.hasEdge(t,a)||(t=r.w,a=r.v);var o=e.node(t),i=e.node(a),f=o,u=!1;o.lim>i.lim&&(f=i,u=!0);var c=d.filter(n.edges(),function(s){return u===Z(e,e.node(s.v),f)&&u!==Z(e,e.node(s.w),f)});return B(c,function(s){return N(n,s)})}function pe(e,n,r,t){var a=r.v,o=r.w;e.removeEdge(a,o),e.setEdge(t.v,t.w,{}),q(e),Y(e,n),Fn(e,n)}function Fn(e,n){var r=j(e.nodes(),function(a){return!n.node(a).parent}),t=Mn(e,r);t=t.slice(1),d.forEach(t,function(a){var o=e.node(a).parent,i=n.edge(a,o),f=!1;i||(i=n.edge(o,a),f=!0),n.node(a).rank=n.node(o).rank+(f?i.minlen:-i.minlen)})}function An(e,n,r){return e.hasEdge(n,r)}function Z(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function Gn(e){switch(e.graph().ranker){case"network-simplex":Q(e);break;case"tight-tree":Bn(e);break;case"longest-path":jn(e);break;default:Q(e)}}var jn=V;function Bn(e){V(e),ue(e)}function Q(e){y(e)}function $n(e){var n=k(e,"root",{},"_root"),r=Vn(e),t=g(b.values(r))-1,a=2*t+1;e.graph().nestingRoot=n,d.forEach(e.edges(),function(i){e.edge(i).minlen*=a});var o=Yn(e)+1;d.forEach(e.children(),function(i){we(e,n,a,o,t,r,i)}),e.graph().nodeRankFactor=a}function we(e,n,r,t,a,o,i){var f=e.children(i);if(!f.length){i!==n&&e.setEdge(n,i,{weight:0,minlen:r});return}var u=H(e,"_bt"),c=H(e,"_bb"),s=e.node(i);e.setParent(u,i),s.borderTop=u,e.setParent(c,i),s.borderBottom=c,d.forEach(f,function(h){we(e,n,r,t,a,o,h);var l=e.node(h),p=l.borderTop?l.borderTop:h,w=l.borderBottom?l.borderBottom:h,E=l.borderTop?t:2*t,O=p!==w?1:a-o[i]+1;e.setEdge(u,p,{weight:E,minlen:O,nestingEdge:!0}),e.setEdge(w,c,{weight:E,minlen:O,nestingEdge:!0})}),e.parent(i)||e.setEdge(n,u,{weight:0,minlen:a+o[i]})}function Vn(e){var n={};function r(t,a){var o=e.children(t);o&&o.length&&d.forEach(o,function(i){r(i,a+1)}),n[t]=a}return d.forEach(e.children(),function(t){r(t,1)}),n}function Yn(e){return d.reduce(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function qn(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,d.forEach(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function Un(e,n,r){var t={},a;d.forEach(r,function(o){for(var i=e.parent(o),f,u;i;){if(f=e.parent(i),f?(u=t[f],t[f]=i):(u=a,a=i),u&&u!==i){n.setEdge(u,i);return}i=f}})}function Dn(e,n,r){var t=Wn(e),a=new b.Graph({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return e.node(o)});return d.forEach(e.nodes(),function(o){var i=e.node(o),f=e.parent(o);(i.rank===n||i.minRank<=n&&n<=i.maxRank)&&(a.setNode(o),a.setParent(o,f||t),d.forEach(e[r](o),function(u){var c=u.v===o?u.w:u.v,s=a.edge(c,o),h=b.isUndefined(s)?0:s.weight;a.setEdge(c,o,{weight:e.edge(u).weight+h})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&a.setNode(o,{borderLeft:i.borderLeft[n],borderRight:i.borderRight[n]}))}),a}function Wn(e){for(var n;e.hasNode(n=$("_root")););return n}function zn(e,n){for(var r=0,t=1;t<n.length;++t)r+=Xn(e,n[t-1],n[t]);return r}function Xn(e,n,r){for(var t=an(r,v.map(r,function(c,s){return s})),a=v.flatten(v.map(n,function(c){return L(v.map(e.outEdges(c),function(s){return{pos:t[s.w],weight:e.edge(s).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var i=2*o-1;o-=1;var f=v.map(new Array(i),function(){return 0}),u=0;return d.forEach(a.forEach(function(c){var s=c.pos+o;f[s]+=c.weight;for(var h=0;s>0;)s%2&&(h+=f[s+1]),s=s-1>>1,f[s]+=c.weight;u+=c.weight*h})),u}function Hn(e){var n={},r=d.filter(e.nodes(),function(f){return!e.children(f).length}),t=g(v.map(r,function(f){return e.node(f).rank})),a=v.map(x(t+1),function(){return[]});function o(f){if(!ae(n,f)){n[f]=!0;var u=e.node(f);a[u.rank].push(f),d.forEach(e.successors(f),o)}}var i=L(r,function(f){return e.node(f).rank});return d.forEach(i,o),a}function Jn(e,n){return v.map(n,function(r){var t=e.inEdges(r);if(t.length){var a=d.reduce(t,function(o,i){var f=e.edge(i),u=e.node(i.v);return{sum:o.sum+f.weight*u.order,weight:o.weight+f.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function Kn(e,n){var r={};d.forEach(e,function(a,o){var i=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i:o};b.isUndefined(a.barycenter)||(i.barycenter=a.barycenter,i.weight=a.weight)}),d.forEach(n.edges(),function(a){var o=r[a.v],i=r[a.w];!b.isUndefined(o)&&!b.isUndefined(i)&&(i.indegree++,o.out.push(r[a.w]))});var t=d.filter(r,function(a){return!a.indegree});return Zn(t)}function Zn(e){var n=[];function r(o){return function(i){i.merged||(b.isUndefined(i.barycenter)||b.isUndefined(o.barycenter)||i.barycenter>=o.barycenter)&&Qn(o,i)}}function t(o){return function(i){i.in.push(o),--i.indegree===0&&e.push(i)}}for(;e.length;){var a=e.pop();n.push(a),d.forEach(a.in.reverse(),r(a)),d.forEach(a.out,t(a))}return v.map(d.filter(n,function(o){return!o.merged}),function(o){return _(o,["vs","i","barycenter","weight"])})}function Qn(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function er(e,n){var r=bn(e,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),t=r.lhs,a=L(r.rhs,function(s){return-s.i}),o=[],i=0,f=0,u=0;t.sort(nr(!!n)),u=ee(o,a,u),d.forEach(t,function(s){u+=s.vs.length,o.push(s.vs),i+=s.barycenter*s.weight,f+=s.weight,u=ee(o,a,u)});var c={vs:v.flatten(o)};return f&&(c.barycenter=i/f,c.weight=f),c}function ee(e,n,r){for(var t;n.length&&(t=I(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function nr(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function me(e,n,r,t){var a=e.children(n),o=e.node(n),i=o?o.borderLeft:void 0,f=o?o.borderRight:void 0,u={};i&&(a=d.filter(a,function(w){return w!==i&&w!==f}));var c=Jn(e,a);d.forEach(c,function(w){if(e.children(w.v).length){var E=me(e,w.v,r,t);u[w.v]=E,Object.prototype.hasOwnProperty.call(E,"barycenter")&&tr(w,E)}});var s=Kn(c,r);rr(s,u);var h=er(s,t);if(i&&(h.vs=v.flatten([i,h.vs,f]),e.predecessors(i).length)){var l=e.node(e.predecessors(i)[0]),p=e.node(e.predecessors(f)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+p.order)/(h.weight+2),h.weight+=2}return h}function rr(e,n){d.forEach(e,function(r){r.vs=v.flatten(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function tr(e,n){b.isUndefined(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function ar(e){var n=oe(e),r=ne(e,x(1,n+1),"inEdges"),t=ne(e,x(n-1,-1,-1),"outEdges"),a=Hn(e);re(e,a);for(var o=Number.POSITIVE_INFINITY,i,f=0,u=0;u<4;++f,++u){ir(f%2?r:t,f%4>=2),a=R(e);var c=zn(e,a);c<o&&(u=0,i=Me(a),o=c)}re(e,i)}function ne(e,n,r){return v.map(n,function(t){return Dn(e,t,r)})}function ir(e,n){var r=new b.Graph;d.forEach(e,function(t){var a=t.graph().root,o=me(t,a,r,n);d.forEach(o.vs,function(i,f){t.node(i).order=f}),Un(t,r,o.vs)})}function re(e,n){d.forEach(n,function(r){d.forEach(r,function(t,a){e.node(t).order=a})})}function or(e){var n=ur(e);d.forEach(e.graph().dummyChains,function(r){for(var t=e.node(r),a=t.edgeObj,o=fr(e,n,a.v,a.w),i=o.path,f=o.lca,u=0,c=i[u],s=!0;r!==a.w;){if(t=e.node(r),s){for(;(c=i[u])!==f&&e.node(c).maxRank<t.rank;)u++;c===f&&(s=!1)}if(!s){for(;u<i.length-1&&e.node(c=i[u+1]).minRank<=t.rank;)u++;c=i[u]}e.setParent(r,c),r=e.successors(r)[0]}})}function fr(e,n,r,t){var a=[],o=[],i=Math.min(n[r].low,n[t].low),f=Math.max(n[r].lim,n[t].lim),u,c;u=r;do u=e.parent(u),a.push(u);while(u&&(n[u].low>i||f>n[u].lim));for(c=u,u=t;(u=e.parent(u))!==c;)o.push(u);return{path:a.concat(o.reverse()),lca:c}}function ur(e){var n={},r=0;function t(a){var o=r;d.forEach(e.children(a),t),n[a]={low:o,lim:r++}}return d.forEach(e.children(),t),n}function dr(e,n){var r={};function t(a,o){var i=0,f=0,u=a.length,c=I(o);return d.forEach(o,function(s,h){var l=sr(e,s),p=l?e.node(l).order:u;(l||s===c)&&(d.forEach(o.slice(f,h+1),function(w){d.forEach(e.predecessors(w),function(E){var O=e.node(E),U=O.order;(U<i||p<U)&&!(O.dummy&&e.node(w).dummy)&&be(r,E,w)})}),f=h+1,i=p)}),o}return d.reduce(n,t),r}function cr(e,n){var r={};function t(o,i,f,u,c){var s;d.forEach(x(i,f),function(h){s=o[h],e.node(s).dummy&&d.forEach(e.predecessors(s),function(l){var p=e.node(l);p.dummy&&(p.order<u||p.order>c)&&be(r,l,s)})})}function a(o,i){var f=-1,u,c=0;return d.forEach(i,function(s,h){if(e.node(s).dummy==="border"){var l=e.predecessors(s);l.length&&(u=e.node(l[0]).order,t(i,c,h,f,u),c=h,f=u)}t(i,c,i.length,u,o.length)}),i}return d.reduce(n,a),r}function sr(e,n){if(e.node(n).dummy)return j(e.predecessors(n),function(r){return e.node(r).dummy})}function be(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var a=e[n];Object.defineProperty(a,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function hr(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function lr(e,n,r,t){var a={},o={},i={};return d.forEach(n,function(f){d.forEach(f,function(u,c){a[u]=u,o[u]=u,i[u]=c})}),d.forEach(n,function(f){var u=-1;d.forEach(f,function(c){var s=t(c);if(s.length){s=L(s,function(E){return i[E]});for(var h=(s.length-1)/2,l=Math.floor(h),p=Math.ceil(h);l<=p;++l){var w=s[l];o[c]===c&&u<i[w]&&!hr(r,c,w)&&(o[w]=c,o[c]=a[c]=a[w],u=i[w])}}})}),{root:a,align:o}}function vr(e,n,r,t,a){var o={},i=pr(e,n,r,a),f=a?"borderLeft":"borderRight";function u(h,l){for(var p=i.nodes(),w=p.pop(),E={};w;)E[w]?h(w):(E[w]=!0,p.push(w),p=p.concat(l(w))),w=p.pop()}function c(h){o[h]=i.inEdges(h).reduce(function(l,p){return Math.max(l,o[p.v]+i.edge(p))},0)}function s(h){var l=i.outEdges(h).reduce(function(w,E){return Math.min(w,o[E.w]-i.edge(E))},Number.POSITIVE_INFINITY),p=e.node(h);l!==Number.POSITIVE_INFINITY&&p.borderType!==f&&(o[h]=Math.max(o[h],l))}return u(c,i.predecessors.bind(i)),u(s,i.successors.bind(i)),d.forEach(t,function(h){o[h]=o[r[h]]}),o}function pr(e,n,r,t){var a=new b.Graph,o=e.graph(),i=gr(o.nodesep,o.edgesep,t);return d.forEach(n,function(f){var u;d.forEach(f,function(c){var s=r[c];if(a.setNode(s),u){var h=r[u],l=a.edge(h,s);a.setEdge(h,s,Math.max(i(e,c,u),l||0))}u=c})}),a}function wr(e,n){return B(b.values(n),function(r){var t=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;return Be(r,function(o,i){var f=yr(e,i)/2;t=Math.max(o+f,t),a=Math.min(o-f,a)}),t-a})}function mr(e,n){var r=b.values(n),t=v.min(r),a=g(r);d.forEach(["u","d"],function(o){d.forEach(["l","r"],function(i){var f=o+i,u=e[f],c;if(u!==n){var s=b.values(u);c=i==="l"?t-v.min(s):a-g(s),c&&(e[f]=C(u,function(h){return h+c}))}})})}function br(e,n){return C(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var a=L(v.map(e,t));return(a[1]+a[2])/2})}function Er(e){var n=R(e),r=m.merge(dr(e,n),cr(e,n)),t={},a;d.forEach(["u","d"],function(i){a=i==="u"?n:b.values(n).reverse(),d.forEach(["l","r"],function(f){f==="r"&&(a=v.map(a,function(h){return b.values(h).reverse()}));var u=(i==="u"?e.predecessors:e.successors).bind(e),c=lr(e,a,r,u),s=vr(e,a,c.root,c.align,f==="r");f==="r"&&(s=C(s,function(h){return-h})),t[i+f]=s})});var o=wr(e,t);return mr(t,o),br(t,e.graph().align)}function gr(e,n,r){return function(t,a,o){var i=t.node(a),f=t.node(o),u=0,c;if(u+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":c=-i.width/2;break;case"r":c=i.width/2;break}if(c&&(u+=r?c:-c),c=0,u+=(i.dummy?n:e)/2,u+=(f.dummy?n:e)/2,u+=f.width/2,Object.prototype.hasOwnProperty.call(f,"labelpos"))switch(f.labelpos.toLowerCase()){case"l":c=f.width/2;break;case"r":c=-f.width/2;break}return c&&(u+=r?c:-c),c=0,u}}function yr(e,n){return e.node(n).width}function xr(e){e=ie(e),kr(e),$e(Er(e),function(n,r){e.node(r).x=n})}function kr(e){var n=R(e),r=e.graph().ranksep,t=0;d.forEach(n,function(a){var o=g(v.map(a,function(i){return e.node(i).height}));d.forEach(a,function(i){e.node(i).y=t+o/2}),t+=o+r})}function Or(e,n){var r=En;r("layout",()=>{var t=r(" buildLayoutGraph",()=>Fr(e));r(" runLayout",()=>Nr(t,r)),r(" updateInputGraph",()=>Lr(e,t))})}function Nr(e,n){n(" makeSpaceForEdgeLabels",()=>Ar(e)),n(" removeSelfEdges",()=>Dr(e)),n(" acyclic",()=>hn(e)),n(" nestingGraph.run",()=>$n(e)),n(" rank",()=>Gn(ie(e))),n(" injectEdgeLabelProxies",()=>Gr(e)),n(" removeEmptyRanks",()=>mn(e)),n(" nestingGraph.cleanup",()=>qn(e)),n(" normalizeRanks",()=>wn(e)),n(" assignRankMinMax",()=>jr(e)),n(" removeEdgeLabelProxies",()=>Br(e)),n(" normalize.run",()=>Nn(e)),n(" parentDummyChains",()=>or(e)),n(" addBorderSegments",()=>gn(e)),n(" order",()=>ar(e)),n(" insertSelfEdges",()=>Wr(e)),n(" adjustCoordinateSystem",()=>yn(e)),n(" position",()=>xr(e)),n(" positionSelfEdges",()=>zr(e)),n(" removeBorderNodes",()=>Ur(e)),n(" normalize.undo",()=>Pn(e)),n(" fixupEdgeLabelCoords",()=>Yr(e)),n(" undoCoordinateSystem",()=>xn(e)),n(" translateGraph",()=>$r(e)),n(" assignNodeIntersects",()=>Vr(e)),n(" reversePoints",()=>qr(e)),n(" acyclic.undo",()=>vn(e))}function Lr(e,n){d.forEach(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),d.forEach(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Pr=["nodesep","edgesep","ranksep","marginx","marginy"],Ir={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_r=["acyclicer","ranker","rankdir","align"],Cr=["width","height"],Rr={width:0,height:0},Tr=["minlen","weight","width","height","labeloffset"],Mr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Sr=["labelpos"];function Fr(e){var n=new b.Graph({multigraph:!0,compound:!0}),r=A(e.graph());return n.setGraph(m.merge({},Ir,F(r,Pr),_(r,_r))),d.forEach(e.nodes(),function(t){var a=A(e.node(t));n.setNode(t,Fe(F(a,Cr),Rr)),n.setParent(t,e.parent(t))}),d.forEach(e.edges(),function(t){var a=A(e.edge(t));n.setEdge(t,m.merge({},Mr,F(a,Tr),_(a,Sr)))}),n}function Ar(e){var n=e.graph();n.ranksep/=2,d.forEach(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Gr(e){d.forEach(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),o={rank:(a.rank-t.rank)/2+t.rank,e:n};k(e,"edge-proxy",o,"_ep")}})}function jr(e){var n=0;d.forEach(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=g(n,t.maxRank))}),e.graph().maxRank=n}function Br(e){d.forEach(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function $r(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,o=e.graph(),i=o.marginx||0,f=o.marginy||0;function u(c){var s=c.x,h=c.y,l=c.width,p=c.height;n=Math.min(n,s-l/2),r=Math.max(r,s+l/2),t=Math.min(t,h-p/2),a=Math.max(a,h+p/2)}d.forEach(e.nodes(),function(c){u(e.node(c))}),d.forEach(e.edges(),function(c){var s=e.edge(c);Object.prototype.hasOwnProperty.call(s,"x")&&u(s)}),n-=i,t-=f,d.forEach(e.nodes(),function(c){var s=e.node(c);s.x-=n,s.y-=t}),d.forEach(e.edges(),function(c){var s=e.edge(c);d.forEach(s.points,function(h){h.x-=n,h.y-=t}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=n),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=t)}),o.width=r-n+i,o.height=a-t+f}function Vr(e){d.forEach(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),o,i;r.points?(o=r.points[0],i=r.points[r.points.length-1]):(r.points=[],o=a,i=t),r.points.unshift(X(t,o)),r.points.push(X(a,i))})}function Yr(e){d.forEach(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function qr(e){d.forEach(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Ur(e){d.forEach(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),o=e.node(I(r.borderLeft)),i=e.node(I(r.borderRight));r.width=Math.abs(i.x-o.x),r.height=Math.abs(a.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),d.forEach(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function Dr(e){d.forEach(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function Wr(e){var n=R(e);d.forEach(n,function(r){var t=0;d.forEach(r,function(a,o){var i=e.node(a);i.order=o+t,d.forEach(i.selfEdges,function(f){k(e,"selfedge",{width:f.label.width,height:f.label.height,rank:i.rank,order:o+ ++t,e:f.e,label:f.label},"_se")}),delete i.selfEdges})})}function zr(e){d.forEach(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,o=t.y,i=r.x-a,f=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*i/3,y:o-f},{x:a+5*i/6,y:o-f},{x:a+i,y:o},{x:a+5*i/6,y:o+f},{x:a+2*i/3,y:o+f}],r.label.x=r.x,r.label.y=r.y}})}function F(e,n){return C(_(e,n),Number)}function A(e){var n={};return d.forEach(e,function(r,t){n[t.toLowerCase()]=r}),n}exports.layout=Or;
1
+ "use strict";const b=require("./graph-Cu_dYuuO.cjs"),d=require("./_baseUniq-NOqaX5H-.cjs"),v=require("./min-B_0S1fKc.cjs"),m=require("./index-Dy6CZ8M8.cjs");var Ee=/\s/;function ge(e){for(var n=e.length;n--&&Ee.test(e.charAt(n)););return n}var ye=/^\s+/;function xe(e){return e&&e.slice(0,ge(e)+1).replace(ye,"")}var D=NaN,ke=/^[-+]0x[0-9a-f]+$/i,Oe=/^0b[01]+$/i,Ne=/^0o[0-7]+$/i,Le=parseInt;function Pe(e){if(typeof e=="number")return e;if(d.isSymbol(e))return D;if(m.isObject(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=m.isObject(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=xe(e);var r=Oe.test(e);return r||Ne.test(e)?Le(e.slice(2),r?2:8):ke.test(e)?D:+e}var W=1/0,Ie=17976931348623157e292;function P(e){if(!e)return e===0?e:0;if(e=Pe(e),e===W||e===-W){var n=e<0?-1:1;return n*Ie}return e===e?e:0}function _e(e){var n=P(e),r=n%1;return n===n?r?n-r:n:0}function Ce(e){return m.setToString(m.overRest(e,void 0,v.flatten),e+"")}var Re=1,Te=4;function Me(e){return b.baseClone(e,Re|Te)}var te=Object.prototype,Se=te.hasOwnProperty,Fe=m.baseRest(function(e,n){e=Object(e);var r=-1,t=n.length,a=t>2?n[2]:void 0;for(a&&m.isIterateeCall(n[0],n[1],a)&&(t=1);++r<t;)for(var o=n[r],i=m.keysIn(o),f=-1,u=i.length;++f<u;){var c=i[f],s=e[c];(s===void 0||m.eq(s,te[c])&&!Se.call(e,c))&&(e[c]=o[c])}return e});function I(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}function Ae(e){return function(n,r,t){var a=Object(n);if(!m.isArrayLike(n)){var o=d.baseIteratee(r);n=d.keys(n),r=function(f){return o(a[f],f,a)}}var i=e(n,r,t);return i>-1?a[o?n[i]:i]:void 0}}var Ge=Math.max;function je(e,n,r){var t=e==null?0:e.length;if(!t)return-1;var a=r==null?0:_e(r);return a<0&&(a=Ge(t+a,0)),d.baseFindIndex(e,d.baseIteratee(n),a)}var j=Ae(je);function Be(e,n){return e==null?e:m.baseFor(e,d.castFunction(n),m.keysIn)}function $e(e,n){return e&&d.baseForOwn(e,d.castFunction(n))}function Ve(e,n){return e>n}var Ye=Object.prototype,qe=Ye.hasOwnProperty;function Ue(e,n){return e!=null&&qe.call(e,n)}function ae(e,n){return e!=null&&d.hasPath(e,n,Ue)}function C(e,n){var r={};return n=d.baseIteratee(n),d.baseForOwn(e,function(t,a,o){m.baseAssignValue(r,a,n(t,a,o))}),r}function g(e){return e&&e.length?v.baseExtremum(e,m.identity,Ve):void 0}function B(e,n){return e&&e.length?v.baseExtremum(e,d.baseIteratee(n),v.baseLt):void 0}function De(e,n,r,t){if(!m.isObject(e))return e;n=d.castPath(n,e);for(var a=-1,o=n.length,i=o-1,f=e;f!=null&&++a<o;){var u=d.toKey(n[a]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(a!=i){var s=f[u];c=void 0,c===void 0&&(c=m.isObject(s)?s:m.isIndex(n[a+1])?[]:{})}m.assignValue(f,u,c),f=f[u]}return e}function We(e,n,r){for(var t=-1,a=n.length,o={};++t<a;){var i=n[t],f=d.baseGet(e,i);r(f,i)&&De(o,d.castPath(i,e),f)}return o}function ze(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}function Xe(e,n){if(e!==n){var r=e!==void 0,t=e===null,a=e===e,o=d.isSymbol(e),i=n!==void 0,f=n===null,u=n===n,c=d.isSymbol(n);if(!f&&!c&&!o&&e>n||o&&i&&u&&!f&&!c||t&&i&&u||!r&&u||!a)return 1;if(!t&&!o&&!c&&e<n||c&&r&&a&&!t&&!o||f&&r&&a||!i&&a||!u)return-1}return 0}function He(e,n,r){for(var t=-1,a=e.criteria,o=n.criteria,i=a.length,f=r.length;++t<i;){var u=Xe(a[t],o[t]);if(u){if(t>=f)return u;var c=r[t];return u*(c=="desc"?-1:1)}}return e.index-n.index}function Je(e,n,r){n.length?n=d.arrayMap(n,function(o){return m.isArray(o)?function(i){return d.baseGet(i,o.length===1?o[0]:o)}:o}):n=[m.identity];var t=-1;n=d.arrayMap(n,m.baseUnary(d.baseIteratee));var a=v.baseMap(e,function(o,i,f){var u=d.arrayMap(n,function(c){return c(o)});return{criteria:u,index:++t,value:o}});return ze(a,function(o,i){return He(o,i,r)})}function Ke(e,n){return We(e,n,function(r,t){return d.hasIn(e,t)})}var _=Ce(function(e,n){return e==null?{}:Ke(e,n)}),Ze=Math.ceil,Qe=Math.max;function en(e,n,r,t){for(var a=-1,o=Qe(Ze((n-e)/(r||1)),0),i=Array(o);o--;)i[++a]=e,e+=r;return i}function nn(e){return function(n,r,t){return t&&typeof t!="number"&&m.isIterateeCall(n,r,t)&&(r=t=void 0),n=P(n),r===void 0?(r=n,n=0):r=P(r),t=t===void 0?n<r?1:-1:P(t),en(n,r,t)}}var x=nn(),L=m.baseRest(function(e,n){if(e==null)return[];var r=n.length;return r>1&&m.isIterateeCall(e,n[0],n[1])?n=[]:r>2&&m.isIterateeCall(n[0],n[1],n[2])&&(n=[n[0]]),Je(e,d.baseFlatten(n),[])}),rn=0;function $(e){var n=++rn;return d.toString(e)+n}function tn(e,n,r){for(var t=-1,a=e.length,o=n.length,i={};++t<a;){var f=t<o?n[t]:void 0;r(i,e[t],f)}return i}function an(e,n){return tn(e||[],n||[],m.assignValue)}class on{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return z(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&z(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,fn)),t=t._prev;return"["+n.join(", ")+"]"}}function z(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function fn(e,n){if(e!=="_next"&&e!=="_prev")return n}var un=m.constant$1(1);function dn(e,n){if(e.nodeCount()<=1)return[];var r=sn(e,n||un),t=cn(r.graph,r.buckets,r.zeroIdx);return v.flatten(v.map(t,function(a){return e.outEdges(a.v,a.w)}))}function cn(e,n,r){for(var t=[],a=n[n.length-1],o=n[0],i;e.nodeCount();){for(;i=o.dequeue();)T(e,n,r,i);for(;i=a.dequeue();)T(e,n,r,i);if(e.nodeCount()){for(var f=n.length-2;f>0;--f)if(i=n[f].dequeue(),i){t=t.concat(T(e,n,r,i,!0));break}}}return t}function T(e,n,r,t,a){var o=a?[]:void 0;return d.forEach(e.inEdges(t.v),function(i){var f=e.edge(i),u=e.node(i.v);a&&o.push({v:i.v,w:i.w}),u.out-=f,G(n,r,u)}),d.forEach(e.outEdges(t.v),function(i){var f=e.edge(i),u=i.w,c=e.node(u);c.in-=f,G(n,r,c)}),e.removeNode(t.v),o}function sn(e,n){var r=new b.Graph,t=0,a=0;d.forEach(e.nodes(),function(f){r.setNode(f,{v:f,in:0,out:0})}),d.forEach(e.edges(),function(f){var u=r.edge(f.v,f.w)||0,c=n(f),s=u+c;r.setEdge(f.v,f.w,s),a=Math.max(a,r.node(f.v).out+=c),t=Math.max(t,r.node(f.w).in+=c)});var o=x(a+t+3).map(function(){return new on}),i=t+1;return d.forEach(r.nodes(),function(f){G(o,i,r.node(f))}),{graph:r,buckets:o,zeroIdx:i}}function G(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function hn(e){var n=e.graph().acyclicer==="greedy"?dn(e,r(e)):ln(e);d.forEach(n,function(t){var a=e.edge(t);e.removeEdge(t),a.forwardName=t.name,a.reversed=!0,e.setEdge(t.w,t.v,a,$("rev"))});function r(t){return function(a){return t.edge(a).weight}}}function ln(e){var n=[],r={},t={};function a(o){Object.prototype.hasOwnProperty.call(t,o)||(t[o]=!0,r[o]=!0,d.forEach(e.outEdges(o),function(i){Object.prototype.hasOwnProperty.call(r,i.w)?n.push(i):a(i.w)}),delete r[o])}return d.forEach(e.nodes(),a),n}function vn(e){d.forEach(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}function k(e,n,r,t){var a;do a=$(t);while(e.hasNode(a));return r.dummy=n,e.setNode(a,r),a}function pn(e){var n=new b.Graph().setGraph(e.graph());return d.forEach(e.nodes(),function(r){n.setNode(r,e.node(r))}),d.forEach(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},a=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+a.weight,minlen:Math.max(t.minlen,a.minlen)})}),n}function ie(e){var n=new b.Graph({multigraph:e.isMultigraph()}).setGraph(e.graph());return d.forEach(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),d.forEach(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function X(e,n){var r=e.x,t=e.y,a=n.x-r,o=n.y-t,i=e.width/2,f=e.height/2;if(!a&&!o)throw new Error("Not possible to find intersection inside of the rectangle");var u,c;return Math.abs(o)*i>Math.abs(a)*f?(o<0&&(f=-f),u=f*a/o,c=f):(a<0&&(i=-i),u=i,c=i*o/a),{x:r+u,y:t+c}}function R(e){var n=v.map(x(oe(e)+1),function(){return[]});return d.forEach(e.nodes(),function(r){var t=e.node(r),a=t.rank;b.isUndefined(a)||(n[a][t.order]=r)}),n}function wn(e){var n=v.min(v.map(e.nodes(),function(r){return e.node(r).rank}));d.forEach(e.nodes(),function(r){var t=e.node(r);ae(t,"rank")&&(t.rank-=n)})}function mn(e){var n=v.min(v.map(e.nodes(),function(o){return e.node(o).rank})),r=[];d.forEach(e.nodes(),function(o){var i=e.node(o).rank-n;r[i]||(r[i]=[]),r[i].push(o)});var t=0,a=e.graph().nodeRankFactor;d.forEach(r,function(o,i){b.isUndefined(o)&&i%a!==0?--t:t&&d.forEach(o,function(f){e.node(f).rank+=t})})}function H(e,n,r,t){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=t),k(e,"border",a,n)}function oe(e){return g(v.map(e.nodes(),function(n){var r=e.node(n).rank;if(!b.isUndefined(r))return r}))}function bn(e,n){var r={lhs:[],rhs:[]};return d.forEach(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function En(e,n){return n()}function gn(e){function n(r){var t=e.children(r),a=e.node(r);if(t.length&&d.forEach(t,n),Object.prototype.hasOwnProperty.call(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var o=a.minRank,i=a.maxRank+1;o<i;++o)J(e,"borderLeft","_bl",r,a,o),J(e,"borderRight","_br",r,a,o)}}d.forEach(e.children(),n)}function J(e,n,r,t,a,o){var i={width:0,height:0,rank:o,borderType:n},f=a[n][o-1],u=k(e,"border",i,r);a[n][o]=u,e.setParent(u,t),f&&e.setEdge(f,u,{weight:1})}function yn(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&fe(e)}function xn(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&kn(e),(n==="lr"||n==="rl")&&(On(e),fe(e))}function fe(e){d.forEach(e.nodes(),function(n){K(e.node(n))}),d.forEach(e.edges(),function(n){K(e.edge(n))})}function K(e){var n=e.width;e.width=e.height,e.height=n}function kn(e){d.forEach(e.nodes(),function(n){M(e.node(n))}),d.forEach(e.edges(),function(n){var r=e.edge(n);d.forEach(r.points,M),Object.prototype.hasOwnProperty.call(r,"y")&&M(r)})}function M(e){e.y=-e.y}function On(e){d.forEach(e.nodes(),function(n){S(e.node(n))}),d.forEach(e.edges(),function(n){var r=e.edge(n);d.forEach(r.points,S),Object.prototype.hasOwnProperty.call(r,"x")&&S(r)})}function S(e){var n=e.x;e.x=e.y,e.y=n}function Nn(e){e.graph().dummyChains=[],d.forEach(e.edges(),function(n){Ln(e,n)})}function Ln(e,n){var r=n.v,t=e.node(r).rank,a=n.w,o=e.node(a).rank,i=n.name,f=e.edge(n),u=f.labelRank;if(o!==t+1){e.removeEdge(n);var c=void 0,s,h;for(h=0,++t;t<o;++h,++t)f.points=[],c={width:0,height:0,edgeLabel:f,edgeObj:n,rank:t},s=k(e,"edge",c,"_d"),t===u&&(c.width=f.width,c.height=f.height,c.dummy="edge-label",c.labelpos=f.labelpos),e.setEdge(r,s,{weight:f.weight},i),h===0&&e.graph().dummyChains.push(s),r=s;e.setEdge(r,a,{weight:f.weight},i)}}function Pn(e){d.forEach(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,a;for(e.setEdge(r.edgeObj,t);r.dummy;)a=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=a,r=e.node(n)})}function V(e){var n={};function r(t){var a=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return a.rank;n[t]=!0;var o=v.min(v.map(e.outEdges(t),function(i){return r(i.w)-e.edge(i).minlen}));return(o===Number.POSITIVE_INFINITY||o===void 0||o===null)&&(o=0),a.rank=o}d.forEach(e.sources(),r)}function N(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function ue(e){var n=new b.Graph({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var a,o;In(n,e)<t;)a=_n(n,e),o=n.hasNode(a.v)?N(e,a):-N(e,a),Cn(n,e,o);return n}function In(e,n){function r(t){d.forEach(n.nodeEdges(t),function(a){var o=a.v,i=t===o?a.w:o;!e.hasNode(i)&&!N(n,a)&&(e.setNode(i,{}),e.setEdge(t,i,{}),r(i))})}return d.forEach(e.nodes(),r),e.nodeCount()}function _n(e,n){return B(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return N(n,r)})}function Cn(e,n,r){d.forEach(e.nodes(),function(t){n.node(t).rank+=r})}function Rn(){}Rn.prototype=new Error;function de(e,n,r){m.isArray(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],o={};return d.forEach(n,function(i){if(!e.hasNode(i))throw new Error("Graph does not have node: "+i);ce(e,i,r==="post",o,t,a)}),a}function ce(e,n,r,t,a,o){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||o.push(n),d.forEach(a(n),function(i){ce(e,i,r,t,a,o)}),r&&o.push(n))}function Tn(e,n){return de(e,n,"post")}function Mn(e,n){return de(e,n,"pre")}y.initLowLimValues=q;y.initCutValues=Y;y.calcCutValue=se;y.leaveEdge=le;y.enterEdge=ve;y.exchangeEdges=pe;function y(e){e=pn(e),V(e);var n=ue(e);q(n),Y(n,e);for(var r,t;r=le(n);)t=ve(n,e,r),pe(n,e,r,t)}function Y(e,n){var r=Tn(e,e.nodes());r=r.slice(0,r.length-1),d.forEach(r,function(t){Sn(e,n,t)})}function Sn(e,n,r){var t=e.node(r),a=t.parent;e.edge(r,a).cutvalue=se(e,n,r)}function se(e,n,r){var t=e.node(r),a=t.parent,o=!0,i=n.edge(r,a),f=0;return i||(o=!1,i=n.edge(a,r)),f=i.weight,d.forEach(n.nodeEdges(r),function(u){var c=u.v===r,s=c?u.w:u.v;if(s!==a){var h=c===o,l=n.edge(u).weight;if(f+=h?l:-l,An(e,r,s)){var p=e.edge(r,s).cutvalue;f+=h?-p:p}}}),f}function q(e,n){arguments.length<2&&(n=e.nodes()[0]),he(e,{},1,n)}function he(e,n,r,t,a){var o=r,i=e.node(t);return n[t]=!0,d.forEach(e.neighbors(t),function(f){Object.prototype.hasOwnProperty.call(n,f)||(r=he(e,n,r,f,t))}),i.low=o,i.lim=r++,a?i.parent=a:delete i.parent,r}function le(e){return j(e.edges(),function(n){return e.edge(n).cutvalue<0})}function ve(e,n,r){var t=r.v,a=r.w;n.hasEdge(t,a)||(t=r.w,a=r.v);var o=e.node(t),i=e.node(a),f=o,u=!1;o.lim>i.lim&&(f=i,u=!0);var c=d.filter(n.edges(),function(s){return u===Z(e,e.node(s.v),f)&&u!==Z(e,e.node(s.w),f)});return B(c,function(s){return N(n,s)})}function pe(e,n,r,t){var a=r.v,o=r.w;e.removeEdge(a,o),e.setEdge(t.v,t.w,{}),q(e),Y(e,n),Fn(e,n)}function Fn(e,n){var r=j(e.nodes(),function(a){return!n.node(a).parent}),t=Mn(e,r);t=t.slice(1),d.forEach(t,function(a){var o=e.node(a).parent,i=n.edge(a,o),f=!1;i||(i=n.edge(o,a),f=!0),n.node(a).rank=n.node(o).rank+(f?i.minlen:-i.minlen)})}function An(e,n,r){return e.hasEdge(n,r)}function Z(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function Gn(e){switch(e.graph().ranker){case"network-simplex":Q(e);break;case"tight-tree":Bn(e);break;case"longest-path":jn(e);break;default:Q(e)}}var jn=V;function Bn(e){V(e),ue(e)}function Q(e){y(e)}function $n(e){var n=k(e,"root",{},"_root"),r=Vn(e),t=g(b.values(r))-1,a=2*t+1;e.graph().nestingRoot=n,d.forEach(e.edges(),function(i){e.edge(i).minlen*=a});var o=Yn(e)+1;d.forEach(e.children(),function(i){we(e,n,a,o,t,r,i)}),e.graph().nodeRankFactor=a}function we(e,n,r,t,a,o,i){var f=e.children(i);if(!f.length){i!==n&&e.setEdge(n,i,{weight:0,minlen:r});return}var u=H(e,"_bt"),c=H(e,"_bb"),s=e.node(i);e.setParent(u,i),s.borderTop=u,e.setParent(c,i),s.borderBottom=c,d.forEach(f,function(h){we(e,n,r,t,a,o,h);var l=e.node(h),p=l.borderTop?l.borderTop:h,w=l.borderBottom?l.borderBottom:h,E=l.borderTop?t:2*t,O=p!==w?1:a-o[i]+1;e.setEdge(u,p,{weight:E,minlen:O,nestingEdge:!0}),e.setEdge(w,c,{weight:E,minlen:O,nestingEdge:!0})}),e.parent(i)||e.setEdge(n,u,{weight:0,minlen:a+o[i]})}function Vn(e){var n={};function r(t,a){var o=e.children(t);o&&o.length&&d.forEach(o,function(i){r(i,a+1)}),n[t]=a}return d.forEach(e.children(),function(t){r(t,1)}),n}function Yn(e){return d.reduce(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function qn(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,d.forEach(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}function Un(e,n,r){var t={},a;d.forEach(r,function(o){for(var i=e.parent(o),f,u;i;){if(f=e.parent(i),f?(u=t[f],t[f]=i):(u=a,a=i),u&&u!==i){n.setEdge(u,i);return}i=f}})}function Dn(e,n,r){var t=Wn(e),a=new b.Graph({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(o){return e.node(o)});return d.forEach(e.nodes(),function(o){var i=e.node(o),f=e.parent(o);(i.rank===n||i.minRank<=n&&n<=i.maxRank)&&(a.setNode(o),a.setParent(o,f||t),d.forEach(e[r](o),function(u){var c=u.v===o?u.w:u.v,s=a.edge(c,o),h=b.isUndefined(s)?0:s.weight;a.setEdge(c,o,{weight:e.edge(u).weight+h})}),Object.prototype.hasOwnProperty.call(i,"minRank")&&a.setNode(o,{borderLeft:i.borderLeft[n],borderRight:i.borderRight[n]}))}),a}function Wn(e){for(var n;e.hasNode(n=$("_root")););return n}function zn(e,n){for(var r=0,t=1;t<n.length;++t)r+=Xn(e,n[t-1],n[t]);return r}function Xn(e,n,r){for(var t=an(r,v.map(r,function(c,s){return s})),a=v.flatten(v.map(n,function(c){return L(v.map(e.outEdges(c),function(s){return{pos:t[s.w],weight:e.edge(s).weight}}),"pos")})),o=1;o<r.length;)o<<=1;var i=2*o-1;o-=1;var f=v.map(new Array(i),function(){return 0}),u=0;return d.forEach(a.forEach(function(c){var s=c.pos+o;f[s]+=c.weight;for(var h=0;s>0;)s%2&&(h+=f[s+1]),s=s-1>>1,f[s]+=c.weight;u+=c.weight*h})),u}function Hn(e){var n={},r=d.filter(e.nodes(),function(f){return!e.children(f).length}),t=g(v.map(r,function(f){return e.node(f).rank})),a=v.map(x(t+1),function(){return[]});function o(f){if(!ae(n,f)){n[f]=!0;var u=e.node(f);a[u.rank].push(f),d.forEach(e.successors(f),o)}}var i=L(r,function(f){return e.node(f).rank});return d.forEach(i,o),a}function Jn(e,n){return v.map(n,function(r){var t=e.inEdges(r);if(t.length){var a=d.reduce(t,function(o,i){var f=e.edge(i),u=e.node(i.v);return{sum:o.sum+f.weight*u.order,weight:o.weight+f.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:r}})}function Kn(e,n){var r={};d.forEach(e,function(a,o){var i=r[a.v]={indegree:0,in:[],out:[],vs:[a.v],i:o};b.isUndefined(a.barycenter)||(i.barycenter=a.barycenter,i.weight=a.weight)}),d.forEach(n.edges(),function(a){var o=r[a.v],i=r[a.w];!b.isUndefined(o)&&!b.isUndefined(i)&&(i.indegree++,o.out.push(r[a.w]))});var t=d.filter(r,function(a){return!a.indegree});return Zn(t)}function Zn(e){var n=[];function r(o){return function(i){i.merged||(b.isUndefined(i.barycenter)||b.isUndefined(o.barycenter)||i.barycenter>=o.barycenter)&&Qn(o,i)}}function t(o){return function(i){i.in.push(o),--i.indegree===0&&e.push(i)}}for(;e.length;){var a=e.pop();n.push(a),d.forEach(a.in.reverse(),r(a)),d.forEach(a.out,t(a))}return v.map(d.filter(n,function(o){return!o.merged}),function(o){return _(o,["vs","i","barycenter","weight"])})}function Qn(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function er(e,n){var r=bn(e,function(s){return Object.prototype.hasOwnProperty.call(s,"barycenter")}),t=r.lhs,a=L(r.rhs,function(s){return-s.i}),o=[],i=0,f=0,u=0;t.sort(nr(!!n)),u=ee(o,a,u),d.forEach(t,function(s){u+=s.vs.length,o.push(s.vs),i+=s.barycenter*s.weight,f+=s.weight,u=ee(o,a,u)});var c={vs:v.flatten(o)};return f&&(c.barycenter=i/f,c.weight=f),c}function ee(e,n,r){for(var t;n.length&&(t=I(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function nr(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function me(e,n,r,t){var a=e.children(n),o=e.node(n),i=o?o.borderLeft:void 0,f=o?o.borderRight:void 0,u={};i&&(a=d.filter(a,function(w){return w!==i&&w!==f}));var c=Jn(e,a);d.forEach(c,function(w){if(e.children(w.v).length){var E=me(e,w.v,r,t);u[w.v]=E,Object.prototype.hasOwnProperty.call(E,"barycenter")&&tr(w,E)}});var s=Kn(c,r);rr(s,u);var h=er(s,t);if(i&&(h.vs=v.flatten([i,h.vs,f]),e.predecessors(i).length)){var l=e.node(e.predecessors(i)[0]),p=e.node(e.predecessors(f)[0]);Object.prototype.hasOwnProperty.call(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+p.order)/(h.weight+2),h.weight+=2}return h}function rr(e,n){d.forEach(e,function(r){r.vs=v.flatten(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function tr(e,n){b.isUndefined(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function ar(e){var n=oe(e),r=ne(e,x(1,n+1),"inEdges"),t=ne(e,x(n-1,-1,-1),"outEdges"),a=Hn(e);re(e,a);for(var o=Number.POSITIVE_INFINITY,i,f=0,u=0;u<4;++f,++u){ir(f%2?r:t,f%4>=2),a=R(e);var c=zn(e,a);c<o&&(u=0,i=Me(a),o=c)}re(e,i)}function ne(e,n,r){return v.map(n,function(t){return Dn(e,t,r)})}function ir(e,n){var r=new b.Graph;d.forEach(e,function(t){var a=t.graph().root,o=me(t,a,r,n);d.forEach(o.vs,function(i,f){t.node(i).order=f}),Un(t,r,o.vs)})}function re(e,n){d.forEach(n,function(r){d.forEach(r,function(t,a){e.node(t).order=a})})}function or(e){var n=ur(e);d.forEach(e.graph().dummyChains,function(r){for(var t=e.node(r),a=t.edgeObj,o=fr(e,n,a.v,a.w),i=o.path,f=o.lca,u=0,c=i[u],s=!0;r!==a.w;){if(t=e.node(r),s){for(;(c=i[u])!==f&&e.node(c).maxRank<t.rank;)u++;c===f&&(s=!1)}if(!s){for(;u<i.length-1&&e.node(c=i[u+1]).minRank<=t.rank;)u++;c=i[u]}e.setParent(r,c),r=e.successors(r)[0]}})}function fr(e,n,r,t){var a=[],o=[],i=Math.min(n[r].low,n[t].low),f=Math.max(n[r].lim,n[t].lim),u,c;u=r;do u=e.parent(u),a.push(u);while(u&&(n[u].low>i||f>n[u].lim));for(c=u,u=t;(u=e.parent(u))!==c;)o.push(u);return{path:a.concat(o.reverse()),lca:c}}function ur(e){var n={},r=0;function t(a){var o=r;d.forEach(e.children(a),t),n[a]={low:o,lim:r++}}return d.forEach(e.children(),t),n}function dr(e,n){var r={};function t(a,o){var i=0,f=0,u=a.length,c=I(o);return d.forEach(o,function(s,h){var l=sr(e,s),p=l?e.node(l).order:u;(l||s===c)&&(d.forEach(o.slice(f,h+1),function(w){d.forEach(e.predecessors(w),function(E){var O=e.node(E),U=O.order;(U<i||p<U)&&!(O.dummy&&e.node(w).dummy)&&be(r,E,w)})}),f=h+1,i=p)}),o}return d.reduce(n,t),r}function cr(e,n){var r={};function t(o,i,f,u,c){var s;d.forEach(x(i,f),function(h){s=o[h],e.node(s).dummy&&d.forEach(e.predecessors(s),function(l){var p=e.node(l);p.dummy&&(p.order<u||p.order>c)&&be(r,l,s)})})}function a(o,i){var f=-1,u,c=0;return d.forEach(i,function(s,h){if(e.node(s).dummy==="border"){var l=e.predecessors(s);l.length&&(u=e.node(l[0]).order,t(i,c,h,f,u),c=h,f=u)}t(i,c,i.length,u,o.length)}),i}return d.reduce(n,a),r}function sr(e,n){if(e.node(n).dummy)return j(e.predecessors(n),function(r){return e.node(r).dummy})}function be(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var a=e[n];Object.defineProperty(a,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function hr(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function lr(e,n,r,t){var a={},o={},i={};return d.forEach(n,function(f){d.forEach(f,function(u,c){a[u]=u,o[u]=u,i[u]=c})}),d.forEach(n,function(f){var u=-1;d.forEach(f,function(c){var s=t(c);if(s.length){s=L(s,function(E){return i[E]});for(var h=(s.length-1)/2,l=Math.floor(h),p=Math.ceil(h);l<=p;++l){var w=s[l];o[c]===c&&u<i[w]&&!hr(r,c,w)&&(o[w]=c,o[c]=a[c]=a[w],u=i[w])}}})}),{root:a,align:o}}function vr(e,n,r,t,a){var o={},i=pr(e,n,r,a),f=a?"borderLeft":"borderRight";function u(h,l){for(var p=i.nodes(),w=p.pop(),E={};w;)E[w]?h(w):(E[w]=!0,p.push(w),p=p.concat(l(w))),w=p.pop()}function c(h){o[h]=i.inEdges(h).reduce(function(l,p){return Math.max(l,o[p.v]+i.edge(p))},0)}function s(h){var l=i.outEdges(h).reduce(function(w,E){return Math.min(w,o[E.w]-i.edge(E))},Number.POSITIVE_INFINITY),p=e.node(h);l!==Number.POSITIVE_INFINITY&&p.borderType!==f&&(o[h]=Math.max(o[h],l))}return u(c,i.predecessors.bind(i)),u(s,i.successors.bind(i)),d.forEach(t,function(h){o[h]=o[r[h]]}),o}function pr(e,n,r,t){var a=new b.Graph,o=e.graph(),i=gr(o.nodesep,o.edgesep,t);return d.forEach(n,function(f){var u;d.forEach(f,function(c){var s=r[c];if(a.setNode(s),u){var h=r[u],l=a.edge(h,s);a.setEdge(h,s,Math.max(i(e,c,u),l||0))}u=c})}),a}function wr(e,n){return B(b.values(n),function(r){var t=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;return Be(r,function(o,i){var f=yr(e,i)/2;t=Math.max(o+f,t),a=Math.min(o-f,a)}),t-a})}function mr(e,n){var r=b.values(n),t=v.min(r),a=g(r);d.forEach(["u","d"],function(o){d.forEach(["l","r"],function(i){var f=o+i,u=e[f],c;if(u!==n){var s=b.values(u);c=i==="l"?t-v.min(s):a-g(s),c&&(e[f]=C(u,function(h){return h+c}))}})})}function br(e,n){return C(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var a=L(v.map(e,t));return(a[1]+a[2])/2})}function Er(e){var n=R(e),r=m.merge(dr(e,n),cr(e,n)),t={},a;d.forEach(["u","d"],function(i){a=i==="u"?n:b.values(n).reverse(),d.forEach(["l","r"],function(f){f==="r"&&(a=v.map(a,function(h){return b.values(h).reverse()}));var u=(i==="u"?e.predecessors:e.successors).bind(e),c=lr(e,a,r,u),s=vr(e,a,c.root,c.align,f==="r");f==="r"&&(s=C(s,function(h){return-h})),t[i+f]=s})});var o=wr(e,t);return mr(t,o),br(t,e.graph().align)}function gr(e,n,r){return function(t,a,o){var i=t.node(a),f=t.node(o),u=0,c;if(u+=i.width/2,Object.prototype.hasOwnProperty.call(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":c=-i.width/2;break;case"r":c=i.width/2;break}if(c&&(u+=r?c:-c),c=0,u+=(i.dummy?n:e)/2,u+=(f.dummy?n:e)/2,u+=f.width/2,Object.prototype.hasOwnProperty.call(f,"labelpos"))switch(f.labelpos.toLowerCase()){case"l":c=f.width/2;break;case"r":c=-f.width/2;break}return c&&(u+=r?c:-c),c=0,u}}function yr(e,n){return e.node(n).width}function xr(e){e=ie(e),kr(e),$e(Er(e),function(n,r){e.node(r).x=n})}function kr(e){var n=R(e),r=e.graph().ranksep,t=0;d.forEach(n,function(a){var o=g(v.map(a,function(i){return e.node(i).height}));d.forEach(a,function(i){e.node(i).y=t+o/2}),t+=o+r})}function Or(e,n){var r=En;r("layout",()=>{var t=r(" buildLayoutGraph",()=>Fr(e));r(" runLayout",()=>Nr(t,r)),r(" updateInputGraph",()=>Lr(e,t))})}function Nr(e,n){n(" makeSpaceForEdgeLabels",()=>Ar(e)),n(" removeSelfEdges",()=>Dr(e)),n(" acyclic",()=>hn(e)),n(" nestingGraph.run",()=>$n(e)),n(" rank",()=>Gn(ie(e))),n(" injectEdgeLabelProxies",()=>Gr(e)),n(" removeEmptyRanks",()=>mn(e)),n(" nestingGraph.cleanup",()=>qn(e)),n(" normalizeRanks",()=>wn(e)),n(" assignRankMinMax",()=>jr(e)),n(" removeEdgeLabelProxies",()=>Br(e)),n(" normalize.run",()=>Nn(e)),n(" parentDummyChains",()=>or(e)),n(" addBorderSegments",()=>gn(e)),n(" order",()=>ar(e)),n(" insertSelfEdges",()=>Wr(e)),n(" adjustCoordinateSystem",()=>yn(e)),n(" position",()=>xr(e)),n(" positionSelfEdges",()=>zr(e)),n(" removeBorderNodes",()=>Ur(e)),n(" normalize.undo",()=>Pn(e)),n(" fixupEdgeLabelCoords",()=>Yr(e)),n(" undoCoordinateSystem",()=>xn(e)),n(" translateGraph",()=>$r(e)),n(" assignNodeIntersects",()=>Vr(e)),n(" reversePoints",()=>qr(e)),n(" acyclic.undo",()=>vn(e))}function Lr(e,n){d.forEach(e.nodes(),function(r){var t=e.node(r),a=n.node(r);t&&(t.x=a.x,t.y=a.y,n.children(r).length&&(t.width=a.width,t.height=a.height))}),d.forEach(e.edges(),function(r){var t=e.edge(r),a=n.edge(r);t.points=a.points,Object.prototype.hasOwnProperty.call(a,"x")&&(t.x=a.x,t.y=a.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var Pr=["nodesep","edgesep","ranksep","marginx","marginy"],Ir={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_r=["acyclicer","ranker","rankdir","align"],Cr=["width","height"],Rr={width:0,height:0},Tr=["minlen","weight","width","height","labeloffset"],Mr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Sr=["labelpos"];function Fr(e){var n=new b.Graph({multigraph:!0,compound:!0}),r=A(e.graph());return n.setGraph(m.merge({},Ir,F(r,Pr),_(r,_r))),d.forEach(e.nodes(),function(t){var a=A(e.node(t));n.setNode(t,Fe(F(a,Cr),Rr)),n.setParent(t,e.parent(t))}),d.forEach(e.edges(),function(t){var a=A(e.edge(t));n.setEdge(t,m.merge({},Mr,F(a,Tr),_(a,Sr)))}),n}function Ar(e){var n=e.graph();n.ranksep/=2,d.forEach(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Gr(e){d.forEach(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),a=e.node(n.w),o={rank:(a.rank-t.rank)/2+t.rank,e:n};k(e,"edge-proxy",o,"_ep")}})}function jr(e){var n=0;d.forEach(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=g(n,t.maxRank))}),e.graph().maxRank=n}function Br(e){d.forEach(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function $r(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,a=0,o=e.graph(),i=o.marginx||0,f=o.marginy||0;function u(c){var s=c.x,h=c.y,l=c.width,p=c.height;n=Math.min(n,s-l/2),r=Math.max(r,s+l/2),t=Math.min(t,h-p/2),a=Math.max(a,h+p/2)}d.forEach(e.nodes(),function(c){u(e.node(c))}),d.forEach(e.edges(),function(c){var s=e.edge(c);Object.prototype.hasOwnProperty.call(s,"x")&&u(s)}),n-=i,t-=f,d.forEach(e.nodes(),function(c){var s=e.node(c);s.x-=n,s.y-=t}),d.forEach(e.edges(),function(c){var s=e.edge(c);d.forEach(s.points,function(h){h.x-=n,h.y-=t}),Object.prototype.hasOwnProperty.call(s,"x")&&(s.x-=n),Object.prototype.hasOwnProperty.call(s,"y")&&(s.y-=t)}),o.width=r-n+i,o.height=a-t+f}function Vr(e){d.forEach(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),a=e.node(n.w),o,i;r.points?(o=r.points[0],i=r.points[r.points.length-1]):(r.points=[],o=a,i=t),r.points.unshift(X(t,o)),r.points.push(X(a,i))})}function Yr(e){d.forEach(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function qr(e){d.forEach(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Ur(e){d.forEach(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),a=e.node(r.borderBottom),o=e.node(I(r.borderLeft)),i=e.node(I(r.borderRight));r.width=Math.abs(i.x-o.x),r.height=Math.abs(a.y-t.y),r.x=o.x+r.width/2,r.y=t.y+r.height/2}}),d.forEach(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function Dr(e){d.forEach(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function Wr(e){var n=R(e);d.forEach(n,function(r){var t=0;d.forEach(r,function(a,o){var i=e.node(a);i.order=o+t,d.forEach(i.selfEdges,function(f){k(e,"selfedge",{width:f.label.width,height:f.label.height,rank:i.rank,order:o+ ++t,e:f.e,label:f.label},"_se")}),delete i.selfEdges})})}function zr(e){d.forEach(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),a=t.x+t.width/2,o=t.y,i=r.x-a,f=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:a+2*i/3,y:o-f},{x:a+5*i/6,y:o-f},{x:a+i,y:o},{x:a+5*i/6,y:o+f},{x:a+2*i/3,y:o+f}],r.label.x=r.x,r.label.y=r.y}})}function F(e,n){return C(_(e,n),Number)}function A(e){var n={};return d.forEach(e,function(r,t){n[t.toLowerCase()]=r}),n}exports.layout=Or;
@@ -1,7 +1,7 @@
1
- import { b as Ve, G as g, i as m, v as E } from "./graph-Da1z0n_J.js";
2
- import { i as z, d as I, k as Ye, o as $e, p as ve, q as pe, t as De, u as we, v as qe, w as be, c as V, x as We, b as ze, y as Xe, n as f, m as C, r as B } from "./_baseUniq-D7Jo4wA-.js";
3
- import { f as O, b as me, a as He, c as Ue, m as w, d as P } from "./min-C8aXS73f.js";
4
- import { a$ as M, bx as Je, by as Ke, b6 as ge, bz as S, aS as ye, bq as Ze, aI as Qe, bv as en, bA as nn, aK as xe, bu as rn, b5 as Ee, aJ as ke, aZ as tn, b8 as an, bB as X } from "./index-B5zgF_S5.js";
1
+ import { b as Ve, G as g, i as m, v as E } from "./graph-Bg_3T7Ud.js";
2
+ import { i as z, d as I, k as Ye, o as $e, p as ve, q as pe, t as De, u as we, v as qe, w as be, c as V, x as We, b as ze, y as Xe, n as f, m as C, r as B } from "./_baseUniq-C4bkXOdh.js";
3
+ import { f as O, b as me, a as He, c as Ue, m as w, d as P } from "./min-g4o2CnuX.js";
4
+ import { a$ as M, bx as Je, by as Ke, b6 as ge, bz as S, aS as ye, bq as Ze, aI as Qe, bv as en, bA as nn, aK as xe, bu as rn, b5 as Ee, aJ as ke, aZ as tn, b8 as an, bB as X } from "./index-sw7mRKux.js";
5
5
  var on = /\s/;
6
6
  function un(e) {
7
7
  for (var n = e.length; n-- && on.test(e.charAt(n)); )
@@ -1,4 +1,5 @@
1
1
  import { LightweightSpec } from '../types/specs';
2
+ export type SortOption = 'id-desc' | 'id-asc' | 'updated-desc' | 'title-asc' | 'title-desc' | 'priority-desc' | 'priority-asc';
2
3
  export interface HierarchyNode extends LightweightSpec {
3
4
  childNodes: HierarchyNode[];
4
5
  }
@@ -6,7 +7,12 @@ export interface HierarchyNode extends LightweightSpec {
6
7
  * Builds a hierarchical tree structure from a flat list of specs.
7
8
  *
8
9
  * @param specs Flat list of specs
10
+ * @param sortBy Sort option for the hierarchy nodes (default: 'id-desc')
9
11
  * @returns Array of root nodes, each containing their children recursively
10
12
  */
11
- export declare function buildHierarchy(specs: LightweightSpec[]): HierarchyNode[];
13
+ export declare function buildHierarchy(specs: LightweightSpec[], sortBy?: SortOption): HierarchyNode[];
14
+ /**
15
+ * Get all IDs of nodes that have children (expandable nodes)
16
+ */
17
+ export declare function getAllParentIds(nodes: HierarchyNode[]): Set<string>;
12
18
  //# sourceMappingURL=hierarchy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hierarchy.d.ts","sourceRoot":"","sources":["../../src/lib/hierarchy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,WAAW,aAAc,SAAQ,eAAe;IACpD,UAAU,EAAE,aAAa,EAAE,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,EAAE,GAAG,aAAa,EAAE,CAyCxE"}
1
+ {"version":3,"file":"hierarchy.d.ts","sourceRoot":"","sources":["../../src/lib/hierarchy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,GAAG,WAAW,GAAG,YAAY,GAAG,eAAe,GAAG,cAAc,CAAC;AAE/H,MAAM,WAAW,aAAc,SAAQ,eAAe;IACpD,UAAU,EAAE,aAAa,EAAE,CAAC;CAC7B;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,MAAM,GAAE,UAAsB,GAAG,aAAa,EAAE,CAgFxG;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAYnE"}
@@ -1,5 +1,5 @@
1
1
  export { cn } from './utils';
2
2
  export { formatDate, formatDateTime, formatRelativeTime, formatDuration, } from './date-utils';
3
3
  export { PROJECT_COLORS, getColorFromString, getContrastColor, getInitials, } from './color-utils';
4
- export { buildHierarchy, type HierarchyNode } from './hierarchy';
4
+ export { buildHierarchy, type HierarchyNode, type SortOption, getAllParentIds } from './hierarchy';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC"}
@@ -1,4 +1,4 @@
1
- import { aP as y, aQ as b } from "./index-B5zgF_S5.js";
1
+ import { aP as y, aQ as b } from "./index-sw7mRKux.js";
2
2
  import { i as A } from "./init-DjUOC4st.js";
3
3
  import { e as M, f as R, a as q, b as F } from "./defaultLocale-D7EN2tov.js";
4
4
  function P(n, r) {
@@ -1 +1 @@
1
- "use strict";const w=require("./index-KEDsBA0n.cjs"),R=require("./init-CHZsXQcr.cjs"),s=require("./defaultLocale-DIVzfLaQ.cjs");function S(n,r){return n=+n,r=+r,function(i){return Math.round(n*(1-i)+r*i)}}function g(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function F(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function N(n){let r,i,t;n.length!==2?(r=g,i=(u,o)=>g(n(u),o),t=(u,o)=>n(u)-o):(r=n===g||n===F?n:z,i=n,t=n);function c(u,o,e=0,m=u.length){if(e<m){if(r(o,o)!==0)return m;do{const l=e+m>>>1;i(u[l],o)<0?e=l+1:m=l}while(e<m)}return e}function f(u,o,e=0,m=u.length){if(e<m){if(r(o,o)!==0)return m;do{const l=e+m>>>1;i(u[l],o)<=0?e=l+1:m=l}while(e<m)}return e}function a(u,o,e=0,m=u.length){const l=c(u,o,e,m-1);return l>e&&t(u[l-1],o)>-t(u[l],o)?l-1:l}return{left:c,center:a,right:f}}function z(){return 0}function I(n){return n===null?NaN:+n}const P=N(g),j=P.right;N(I).center;const B=Math.sqrt(50),L=Math.sqrt(10),$=Math.sqrt(2);function d(n,r,i){const t=(r-n)/Math.max(0,i),c=Math.floor(Math.log10(t)),f=t/Math.pow(10,c),a=f>=B?10:f>=L?5:f>=$?2:1;let u,o,e;return c<0?(e=Math.pow(10,-c)/a,u=Math.round(n*e),o=Math.round(r*e),u/e<n&&++u,o/e>r&&--o,e=-e):(e=Math.pow(10,c)*a,u=Math.round(n/e),o=Math.round(r/e),u*e<n&&++u,o*e>r&&--o),o<u&&.5<=i&&i<2?d(n,r,i*2):[u,o,e]}function C(n,r,i){if(r=+r,n=+n,i=+i,!(i>0))return[];if(n===r)return[n];const t=r<n,[c,f,a]=t?d(r,n,i):d(n,r,i);if(!(f>=c))return[];const u=f-c+1,o=new Array(u);if(t)if(a<0)for(let e=0;e<u;++e)o[e]=(f-e)/-a;else for(let e=0;e<u;++e)o[e]=(f-e)*a;else if(a<0)for(let e=0;e<u;++e)o[e]=(c+e)/-a;else for(let e=0;e<u;++e)o[e]=(c+e)*a;return o}function p(n,r,i){return r=+r,n=+n,i=+i,d(n,r,i)[2]}function y(n,r,i){r=+r,n=+n,i=+i;const t=r<n,c=t?p(r,n,i):p(n,r,i);return(t?-1:1)*(c<0?1/-c:c)}function D(n){return Math.max(0,-s.exponent(Math.abs(n)))}function E(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(s.exponent(r)/3)))*3-s.exponent(Math.abs(n)))}function G(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,s.exponent(r)-s.exponent(n))+1}function H(n){return function(){return n}}function J(n){return+n}var k=[0,1];function M(n){return n}function v(n,r){return(r-=n=+n)?function(i){return(i-n)/r}:H(isNaN(r)?NaN:.5)}function K(n,r){var i;return n>r&&(i=n,n=r,r=i),function(t){return Math.max(n,Math.min(r,t))}}function O(n,r,i){var t=n[0],c=n[1],f=r[0],a=r[1];return c<t?(t=v(c,t),f=i(a,f)):(t=v(t,c),f=i(f,a)),function(u){return f(t(u))}}function Q(n,r,i){var t=Math.min(n.length,r.length)-1,c=new Array(t),f=new Array(t),a=-1;for(n[t]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<t;)c[a]=v(n[a],n[a+1]),f[a]=i(r[a],r[a+1]);return function(u){var o=j(n,u,1,t)-1;return f[o](c[o](u))}}function q(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function T(){var n=k,r=k,i=w.interpolate,t,c,f,a=M,u,o,e;function m(){var h=Math.min(n.length,r.length);return a!==M&&(a=K(n[0],n[h-1])),u=h>2?Q:O,o=e=null,l}function l(h){return h==null||isNaN(h=+h)?f:(o||(o=u(n.map(t),r,i)))(t(a(h)))}return l.invert=function(h){return a(c((e||(e=u(r,n.map(t),w.interpolateNumber)))(h)))},l.domain=function(h){return arguments.length?(n=Array.from(h,J),m()):n.slice()},l.range=function(h){return arguments.length?(r=Array.from(h),m()):r.slice()},l.rangeRound=function(h){return r=Array.from(h),i=S,m()},l.clamp=function(h){return arguments.length?(a=h?!0:M,m()):a!==M},l.interpolate=function(h){return arguments.length?(i=h,m()):i},l.unknown=function(h){return arguments.length?(f=h,l):f},function(h,x){return t=h,c=x,m()}}function A(){return T()(M,M)}function U(n,r,i,t){var c=y(n,r,i),f;switch(t=s.formatSpecifier(t??",f"),t.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return t.precision==null&&!isNaN(f=E(c,a))&&(t.precision=f),s.formatPrefix(t,a)}case"":case"e":case"g":case"p":case"r":{t.precision==null&&!isNaN(f=G(c,Math.max(Math.abs(n),Math.abs(r))))&&(t.precision=f-(t.type==="e"));break}case"f":case"%":{t.precision==null&&!isNaN(f=D(c))&&(t.precision=f-(t.type==="%")*2);break}}return s.format(t)}function V(n){var r=n.domain;return n.ticks=function(i){var t=r();return C(t[0],t[t.length-1],i??10)},n.tickFormat=function(i,t){var c=r();return U(c[0],c[c.length-1],i??10,t)},n.nice=function(i){i==null&&(i=10);var t=r(),c=0,f=t.length-1,a=t[c],u=t[f],o,e,m=10;for(u<a&&(e=a,a=u,u=e,e=c,c=f,f=e);m-- >0;){if(e=p(a,u,i),e===o)return t[c]=a,t[f]=u,r(t);if(e>0)a=Math.floor(a/e)*e,u=Math.ceil(u/e)*e;else if(e<0)a=Math.ceil(a*e)/e,u=Math.floor(u*e)/e;else break;o=e}return n},n}function b(){var n=A();return n.copy=function(){return q(n,b())},R.initRange.apply(n,arguments),V(n)}exports.bisector=N;exports.continuous=A;exports.copy=q;exports.linear=b;exports.tickStep=y;
1
+ "use strict";const w=require("./index-Dy6CZ8M8.cjs"),R=require("./init-CHZsXQcr.cjs"),s=require("./defaultLocale-DIVzfLaQ.cjs");function S(n,r){return n=+n,r=+r,function(i){return Math.round(n*(1-i)+r*i)}}function g(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function F(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function N(n){let r,i,t;n.length!==2?(r=g,i=(u,o)=>g(n(u),o),t=(u,o)=>n(u)-o):(r=n===g||n===F?n:z,i=n,t=n);function c(u,o,e=0,m=u.length){if(e<m){if(r(o,o)!==0)return m;do{const l=e+m>>>1;i(u[l],o)<0?e=l+1:m=l}while(e<m)}return e}function f(u,o,e=0,m=u.length){if(e<m){if(r(o,o)!==0)return m;do{const l=e+m>>>1;i(u[l],o)<=0?e=l+1:m=l}while(e<m)}return e}function a(u,o,e=0,m=u.length){const l=c(u,o,e,m-1);return l>e&&t(u[l-1],o)>-t(u[l],o)?l-1:l}return{left:c,center:a,right:f}}function z(){return 0}function I(n){return n===null?NaN:+n}const P=N(g),j=P.right;N(I).center;const B=Math.sqrt(50),L=Math.sqrt(10),$=Math.sqrt(2);function d(n,r,i){const t=(r-n)/Math.max(0,i),c=Math.floor(Math.log10(t)),f=t/Math.pow(10,c),a=f>=B?10:f>=L?5:f>=$?2:1;let u,o,e;return c<0?(e=Math.pow(10,-c)/a,u=Math.round(n*e),o=Math.round(r*e),u/e<n&&++u,o/e>r&&--o,e=-e):(e=Math.pow(10,c)*a,u=Math.round(n/e),o=Math.round(r/e),u*e<n&&++u,o*e>r&&--o),o<u&&.5<=i&&i<2?d(n,r,i*2):[u,o,e]}function C(n,r,i){if(r=+r,n=+n,i=+i,!(i>0))return[];if(n===r)return[n];const t=r<n,[c,f,a]=t?d(r,n,i):d(n,r,i);if(!(f>=c))return[];const u=f-c+1,o=new Array(u);if(t)if(a<0)for(let e=0;e<u;++e)o[e]=(f-e)/-a;else for(let e=0;e<u;++e)o[e]=(f-e)*a;else if(a<0)for(let e=0;e<u;++e)o[e]=(c+e)/-a;else for(let e=0;e<u;++e)o[e]=(c+e)*a;return o}function p(n,r,i){return r=+r,n=+n,i=+i,d(n,r,i)[2]}function y(n,r,i){r=+r,n=+n,i=+i;const t=r<n,c=t?p(r,n,i):p(n,r,i);return(t?-1:1)*(c<0?1/-c:c)}function D(n){return Math.max(0,-s.exponent(Math.abs(n)))}function E(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(s.exponent(r)/3)))*3-s.exponent(Math.abs(n)))}function G(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,s.exponent(r)-s.exponent(n))+1}function H(n){return function(){return n}}function J(n){return+n}var k=[0,1];function M(n){return n}function v(n,r){return(r-=n=+n)?function(i){return(i-n)/r}:H(isNaN(r)?NaN:.5)}function K(n,r){var i;return n>r&&(i=n,n=r,r=i),function(t){return Math.max(n,Math.min(r,t))}}function O(n,r,i){var t=n[0],c=n[1],f=r[0],a=r[1];return c<t?(t=v(c,t),f=i(a,f)):(t=v(t,c),f=i(f,a)),function(u){return f(t(u))}}function Q(n,r,i){var t=Math.min(n.length,r.length)-1,c=new Array(t),f=new Array(t),a=-1;for(n[t]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<t;)c[a]=v(n[a],n[a+1]),f[a]=i(r[a],r[a+1]);return function(u){var o=j(n,u,1,t)-1;return f[o](c[o](u))}}function q(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function T(){var n=k,r=k,i=w.interpolate,t,c,f,a=M,u,o,e;function m(){var h=Math.min(n.length,r.length);return a!==M&&(a=K(n[0],n[h-1])),u=h>2?Q:O,o=e=null,l}function l(h){return h==null||isNaN(h=+h)?f:(o||(o=u(n.map(t),r,i)))(t(a(h)))}return l.invert=function(h){return a(c((e||(e=u(r,n.map(t),w.interpolateNumber)))(h)))},l.domain=function(h){return arguments.length?(n=Array.from(h,J),m()):n.slice()},l.range=function(h){return arguments.length?(r=Array.from(h),m()):r.slice()},l.rangeRound=function(h){return r=Array.from(h),i=S,m()},l.clamp=function(h){return arguments.length?(a=h?!0:M,m()):a!==M},l.interpolate=function(h){return arguments.length?(i=h,m()):i},l.unknown=function(h){return arguments.length?(f=h,l):f},function(h,x){return t=h,c=x,m()}}function A(){return T()(M,M)}function U(n,r,i,t){var c=y(n,r,i),f;switch(t=s.formatSpecifier(t??",f"),t.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return t.precision==null&&!isNaN(f=E(c,a))&&(t.precision=f),s.formatPrefix(t,a)}case"":case"e":case"g":case"p":case"r":{t.precision==null&&!isNaN(f=G(c,Math.max(Math.abs(n),Math.abs(r))))&&(t.precision=f-(t.type==="e"));break}case"f":case"%":{t.precision==null&&!isNaN(f=D(c))&&(t.precision=f-(t.type==="%")*2);break}}return s.format(t)}function V(n){var r=n.domain;return n.ticks=function(i){var t=r();return C(t[0],t[t.length-1],i??10)},n.tickFormat=function(i,t){var c=r();return U(c[0],c[c.length-1],i??10,t)},n.nice=function(i){i==null&&(i=10);var t=r(),c=0,f=t.length-1,a=t[c],u=t[f],o,e,m=10;for(u<a&&(e=a,a=u,u=e,e=c,c=f,f=e);m-- >0;){if(e=p(a,u,i),e===o)return t[c]=a,t[f]=u,r(t);if(e>0)a=Math.floor(a/e)*e,u=Math.ceil(u/e)*e;else if(e<0)a=Math.ceil(a*e)/e,u=Math.floor(u*e)/e;else break;o=e}return n},n}function b(){var n=A();return n.copy=function(){return q(n,b())},R.initRange.apply(n,arguments),V(n)}exports.bisector=N;exports.continuous=A;exports.copy=q;exports.linear=b;exports.tickStep=y;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-KEDsBA0n.cjs");exports.Mermaid=e.tt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Dy6CZ8M8.cjs");exports.Mermaid=e.tt;
@@ -0,0 +1,4 @@
1
+ import { t as e } from "./index-sw7mRKux.js";
2
+ export {
3
+ e as Mermaid
4
+ };
@@ -1,6 +1,6 @@
1
- import { m as st, f as Sd, d as kd } from "./min-C8aXS73f.js";
2
- import { b as Id, l as Cd, d as wd, m as Nd, r as Co, n as Rs } from "./_baseUniq-D7Jo4wA-.js";
3
- import { ba as _d } from "./index-B5zgF_S5.js";
1
+ import { m as st, f as Sd, d as kd } from "./min-g4o2CnuX.js";
2
+ import { b as Id, l as Cd, d as wd, m as Nd, r as Co, n as Rs } from "./_baseUniq-C4bkXOdh.js";
3
+ import { ba as _d } from "./index-sw7mRKux.js";
4
4
  function bd(t, e) {
5
5
  return Id(st(t, e));
6
6
  }
@@ -14111,31 +14111,31 @@ function Mx(t = St) {
14111
14111
  A(Mx, "createTreemapServices");
14112
14112
  var nt = {}, Dx = {
14113
14113
  info: /* @__PURE__ */ A(async () => {
14114
- const { createInfoServices: t } = await import("./info-NVLQJR56-A56PvZ_B.js"), e = t().Info.parser.LangiumParser;
14114
+ const { createInfoServices: t } = await import("./info-NVLQJR56-CkwixcJh.js"), e = t().Info.parser.LangiumParser;
14115
14115
  nt.info = e;
14116
14116
  }, "info"),
14117
14117
  packet: /* @__PURE__ */ A(async () => {
14118
- const { createPacketServices: t } = await import("./packet-BFZMPI3H-CJ8lOlJN.js"), e = t().Packet.parser.LangiumParser;
14118
+ const { createPacketServices: t } = await import("./packet-BFZMPI3H-85mavqoW.js"), e = t().Packet.parser.LangiumParser;
14119
14119
  nt.packet = e;
14120
14120
  }, "packet"),
14121
14121
  pie: /* @__PURE__ */ A(async () => {
14122
- const { createPieServices: t } = await import("./pie-7BOR55EZ-BCyVC33Q.js"), e = t().Pie.parser.LangiumParser;
14122
+ const { createPieServices: t } = await import("./pie-7BOR55EZ-DEUNQ2Gx.js"), e = t().Pie.parser.LangiumParser;
14123
14123
  nt.pie = e;
14124
14124
  }, "pie"),
14125
14125
  architecture: /* @__PURE__ */ A(async () => {
14126
- const { createArchitectureServices: t } = await import("./architecture-U656AL7Q-pOUzdaWZ.js"), e = t().Architecture.parser.LangiumParser;
14126
+ const { createArchitectureServices: t } = await import("./architecture-U656AL7Q-BBwC7kfZ.js"), e = t().Architecture.parser.LangiumParser;
14127
14127
  nt.architecture = e;
14128
14128
  }, "architecture"),
14129
14129
  gitGraph: /* @__PURE__ */ A(async () => {
14130
- const { createGitGraphServices: t } = await import("./gitGraph-F6HP7TQM-C4DmI2Gg.js"), e = t().GitGraph.parser.LangiumParser;
14130
+ const { createGitGraphServices: t } = await import("./gitGraph-F6HP7TQM-C2AsvVF3.js"), e = t().GitGraph.parser.LangiumParser;
14131
14131
  nt.gitGraph = e;
14132
14132
  }, "gitGraph"),
14133
14133
  radar: /* @__PURE__ */ A(async () => {
14134
- const { createRadarServices: t } = await import("./radar-NHE76QYJ-C6zEuLeW.js"), e = t().Radar.parser.LangiumParser;
14134
+ const { createRadarServices: t } = await import("./radar-NHE76QYJ-CdgX_Cpr.js"), e = t().Radar.parser.LangiumParser;
14135
14135
  nt.radar = e;
14136
14136
  }, "radar"),
14137
14137
  treemap: /* @__PURE__ */ A(async () => {
14138
- const { createTreemapServices: t } = await import("./treemap-KMMF4GRG-wB3pBnFc.js"), e = t().Treemap.parser.LangiumParser;
14138
+ const { createTreemapServices: t } = await import("./treemap-KMMF4GRG-KtkxYt13.js"), e = t().Treemap.parser.LangiumParser;
14139
14139
  nt.treemap = e;
14140
14140
  }, "treemap")
14141
14141
  };