@pb33f/cowboy-components 0.13.0 → 0.13.1

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 (126) hide show
  1. package/dist/{_baseUniq-CwhnPBuZ.js → _baseUniq-CL3reOBl.js} +1 -1
  2. package/dist/{_baseUniq-D4w9OEfi.cjs → _baseUniq-CacIA2LC.cjs} +1 -1
  3. package/dist/{arc-C1ekKGkb.js → arc-2E-fJnok.js} +1 -1
  4. package/dist/{arc-R701-DfQ.cjs → arc-Cah-EtVa.cjs} +1 -1
  5. package/dist/{architecture-YZFGNWBL-BSnkfFiL.cjs → architecture-YZFGNWBL-_gv9FazX.cjs} +1 -1
  6. package/dist/{architecture-YZFGNWBL-Cv-BGlq1.js → architecture-YZFGNWBL-fFrwoJ4k.js} +1 -1
  7. package/dist/{architectureDiagram-Q4EWVU46-Bi5_oLbN.js → architectureDiagram-Q4EWVU46-B3fgqlMK.js} +4 -4
  8. package/dist/{architectureDiagram-Q4EWVU46-7qN01149.cjs → architectureDiagram-Q4EWVU46-DtZlfd53.cjs} +1 -1
  9. package/dist/{blockDiagram-DXYQGD6D-C72mCfQb.cjs → blockDiagram-DXYQGD6D-CUmPhtkh.cjs} +1 -1
  10. package/dist/{blockDiagram-DXYQGD6D-DPZDIH8c.js → blockDiagram-DXYQGD6D-CX0JRAKx.js} +5 -5
  11. package/dist/{c4Diagram-AHTNJAMY-CzTGAiLN.js → c4Diagram-AHTNJAMY-BfMyY6ox.js} +2 -2
  12. package/dist/{c4Diagram-AHTNJAMY-vYFfYNT2.cjs → c4Diagram-AHTNJAMY-DLeN9ZAF.cjs} +1 -1
  13. package/dist/{change-list-item-BQAfTtYI.cjs → change-list-item-CrZn84tY.cjs} +2 -2
  14. package/dist/{change-list-item-BEl0JMXU.js → change-list-item-DMLMmZ6U.js} +2 -2
  15. package/dist/{channel-Bcdtr5hc.js → channel-CMrLSZsY.js} +1 -1
  16. package/dist/{channel-xkWi7eyU.cjs → channel-IzC5TEAD.cjs} +1 -1
  17. package/dist/{chunk-4BX2VUAB-Crsil6rQ.js → chunk-4BX2VUAB-Bn2rH23T.js} +1 -1
  18. package/dist/{chunk-4BX2VUAB-D5fkGnKT.cjs → chunk-4BX2VUAB-CeMFPKaY.cjs} +1 -1
  19. package/dist/{chunk-4TB4RGXK-BK_Zwn1u.cjs → chunk-4TB4RGXK-BbYCdNI3.cjs} +1 -1
  20. package/dist/{chunk-4TB4RGXK-CqgUAjqs.js → chunk-4TB4RGXK-C5Pdp8au.js} +5 -5
  21. package/dist/{chunk-55IACEB6-CVOd63y7.cjs → chunk-55IACEB6-DX9DtTQS.cjs} +1 -1
  22. package/dist/{chunk-55IACEB6-BHM-gGnN.js → chunk-55IACEB6-DdI_-Q_K.js} +1 -1
  23. package/dist/{chunk-EDXVE4YY-XhKW7gue.js → chunk-EDXVE4YY-CCku7m5j.js} +1 -1
  24. package/dist/{chunk-EDXVE4YY-Cg8LIvnn.cjs → chunk-EDXVE4YY-nccXma-D.cjs} +1 -1
  25. package/dist/{chunk-FMBD7UC4-DZgUWYcc.js → chunk-FMBD7UC4-BG1WV71B.js} +1 -1
  26. package/dist/{chunk-FMBD7UC4-ClqO-tFT.cjs → chunk-FMBD7UC4-Bt5qtKsR.cjs} +1 -1
  27. package/dist/{chunk-OYMX7WX6-DPeZUR-5.cjs → chunk-OYMX7WX6-DTbRX5BF.cjs} +1 -1
  28. package/dist/{chunk-OYMX7WX6-DDhPRCvb.js → chunk-OYMX7WX6-Dj8r6q8i.js} +3 -3
  29. package/dist/{chunk-QZHKN3VN-CEfUDcqe.js → chunk-QZHKN3VN-LZahlHwm.js} +1 -1
  30. package/dist/{chunk-QZHKN3VN-DfLK5brs.cjs → chunk-QZHKN3VN-v9FRBMwC.cjs} +1 -1
  31. package/dist/{chunk-YZCP3GAM-BseNjeX_.js → chunk-YZCP3GAM-BfcbLjwl.js} +1 -1
  32. package/dist/{chunk-YZCP3GAM-CUdZyEqp.cjs → chunk-YZCP3GAM-DJNk9cax.cjs} +1 -1
  33. package/dist/{classDiagram-v2-HSJHXN6E-DY4pBvUq.js → classDiagram-6PBFFD2Q-BHEetvl6.js} +2 -2
  34. package/dist/{classDiagram-6PBFFD2Q-DANanUVD.cjs → classDiagram-6PBFFD2Q-DnanA8bA.cjs} +1 -1
  35. package/dist/{classDiagram-6PBFFD2Q-DY4pBvUq.js → classDiagram-v2-HSJHXN6E-BHEetvl6.js} +2 -2
  36. package/dist/{classDiagram-v2-HSJHXN6E-DANanUVD.cjs → classDiagram-v2-HSJHXN6E-DnanA8bA.cjs} +1 -1
  37. package/dist/clone-Bqh1gJUP.cjs +1 -0
  38. package/dist/{clone-Dd6Qonyi.js → clone-C3LRmiE8.js} +1 -1
  39. package/dist/components/diff-viewer/diff-viewer.d.ts +3 -0
  40. package/dist/components/diff-viewer/diff-viewer.js +29 -1
  41. package/dist/components/model-tree/tree.js +1 -2
  42. package/dist/{cose-bilkent-S5V4N54A-BEI30FIt.cjs → cose-bilkent-S5V4N54A-CdEgH7NU.cjs} +1 -1
  43. package/dist/{cose-bilkent-S5V4N54A-CPd0mzpZ.js → cose-bilkent-S5V4N54A-FFskauHi.js} +2 -2
  44. package/dist/{cowboy-components-BDlH5KPd.cjs → cowboy-components-DlcOqYuh.cjs} +3 -3
  45. package/dist/{cowboy-components-C1bHeXpH.js → cowboy-components-_6157Gms.js} +34 -34
  46. package/dist/{dagre-KV5264BT-lXj1bQdQ.cjs → dagre-KV5264BT-BBKAH5Vs.cjs} +1 -1
  47. package/dist/{dagre-KV5264BT-DKYFh03U.js → dagre-KV5264BT-BnGcCOZB.js} +5 -5
  48. package/dist/{diagram-5BDNPKRD-B5z67jan.js → diagram-5BDNPKRD-C9cE16Nq.js} +4 -4
  49. package/dist/{diagram-5BDNPKRD-BxdT4j_p.cjs → diagram-5BDNPKRD-Caf5-T5J.cjs} +1 -1
  50. package/dist/{diagram-G4DWMVQ6-CYhKfvVo.cjs → diagram-G4DWMVQ6-B_Z6cYPf.cjs} +1 -1
  51. package/dist/{diagram-G4DWMVQ6-CW505eM5.js → diagram-G4DWMVQ6-eVnE9je7.js} +4 -4
  52. package/dist/{diagram-MMDJMWI5-CnbCy2d4.cjs → diagram-MMDJMWI5-Btfr_jTp.cjs} +1 -1
  53. package/dist/{diagram-MMDJMWI5-CguvhYVm.js → diagram-MMDJMWI5-CAOLJUQB.js} +3 -3
  54. package/dist/{diagram-TYMM5635-DNaputK9.js → diagram-TYMM5635-B5eh2zfi.js} +3 -3
  55. package/dist/{diagram-TYMM5635-CTqk1SDy.cjs → diagram-TYMM5635-pKdjOMF8.cjs} +1 -1
  56. package/dist/{erDiagram-SMLLAGMA-CbVmsYT2.js → erDiagram-SMLLAGMA-B2OnES7y.js} +4 -4
  57. package/dist/{erDiagram-SMLLAGMA-C8J_QyFx.cjs → erDiagram-SMLLAGMA-DIG0NSaA.cjs} +1 -1
  58. package/dist/{flowDiagram-DWJPFMVM-CilWme2B.cjs → flowDiagram-DWJPFMVM-2zskCMow.cjs} +1 -1
  59. package/dist/{flowDiagram-DWJPFMVM-CzhP7Mva.js → flowDiagram-DWJPFMVM-CXPAxHvt.js} +6 -6
  60. package/dist/{ganttDiagram-T4ZO3ILL-CJPTfw3M.cjs → ganttDiagram-T4ZO3ILL-BeVChtO1.cjs} +1 -1
  61. package/dist/{ganttDiagram-T4ZO3ILL-D1VjNn5T.js → ganttDiagram-T4ZO3ILL-D6Frz-JF.js} +3 -3
  62. package/dist/{gitGraph-7Q5UKJZL-Dt7RPGLj.cjs → gitGraph-7Q5UKJZL-BJ6cbAq9.cjs} +1 -1
  63. package/dist/{gitGraph-7Q5UKJZL-KIImqmsm.js → gitGraph-7Q5UKJZL-ZUTHDSj9.js} +1 -1
  64. package/dist/{gitGraphDiagram-UUTBAWPF-oNmbFzsW.js → gitGraphDiagram-UUTBAWPF--sskoNSw.js} +4 -4
  65. package/dist/{gitGraphDiagram-UUTBAWPF-RgZxgljz.cjs → gitGraphDiagram-UUTBAWPF-Bk5mBktt.cjs} +1 -1
  66. package/dist/{graph-D7t_ZgqQ.cjs → graph-CitLzybf.cjs} +1 -1
  67. package/dist/{graph-CFIa3BqY.js → graph-n3mQ-eMa.js} +2 -2
  68. package/dist/info-OMHHGYJF-D5oOa7Mo.js +5 -0
  69. package/dist/{info-OMHHGYJF-DNwPREtC.cjs → info-OMHHGYJF-Drd77e1G.cjs} +1 -1
  70. package/dist/{infoDiagram-42DDH7IO-D6tfy_kQ.js → infoDiagram-42DDH7IO-BYCSBry1.js} +2 -2
  71. package/dist/{infoDiagram-42DDH7IO-xpnPsX13.cjs → infoDiagram-42DDH7IO-Drbr569o.cjs} +1 -1
  72. package/dist/{ishikawaDiagram-UXIWVN3A-cN7Egzi1.cjs → ishikawaDiagram-UXIWVN3A-DTTtSjta.cjs} +1 -1
  73. package/dist/{ishikawaDiagram-UXIWVN3A-1C3ML4wN.js → ishikawaDiagram-UXIWVN3A-DtA8KbKf.js} +1 -1
  74. package/dist/{journeyDiagram-VCZTEJTY-CuHlve7g.cjs → journeyDiagram-VCZTEJTY-B2Mj0NKu.cjs} +1 -1
  75. package/dist/{journeyDiagram-VCZTEJTY-BBnQnZeo.js → journeyDiagram-VCZTEJTY-NGtPMfE0.js} +4 -4
  76. package/dist/{kanban-definition-6JOO6SKY-w_-A-pcU.cjs → kanban-definition-6JOO6SKY-BBqZKCyL.cjs} +1 -1
  77. package/dist/{kanban-definition-6JOO6SKY-CIUOm1v3.js → kanban-definition-6JOO6SKY-BH9sPBGO.js} +2 -2
  78. package/dist/{layout-DkbTnSOk.cjs → layout-BXXLjgVz.cjs} +1 -1
  79. package/dist/{layout-B94Gbndw.js → layout-Dxl_HlKH.js} +4 -4
  80. package/dist/{linear-ofqYQwLM.js → linear-CZplgftO.js} +1 -1
  81. package/dist/{linear-C0WOPIXr.cjs → linear-DpB2Zi1A.cjs} +1 -1
  82. package/dist/{mermaid-parser.core-D5yJiPW9.cjs → mermaid-parser.core-By3g6lf1.cjs} +2 -2
  83. package/dist/{mermaid-parser.core-SWTLxzuR.js → mermaid-parser.core-DsLOyQb-.js} +13 -13
  84. package/dist/{min-BVt52F4Z.js → min-CqEuxX5S.js} +2 -2
  85. package/dist/{min-CCJ14kSC.cjs → min-sstTPxgN.cjs} +1 -1
  86. package/dist/{mindmap-definition-QFDTVHPH-DkHlEc6j.cjs → mindmap-definition-QFDTVHPH-B3Oxj65X.cjs} +1 -1
  87. package/dist/{mindmap-definition-QFDTVHPH-BBABzpZ_.js → mindmap-definition-QFDTVHPH-BNYDl_JS.js} +3 -3
  88. package/dist/{packet-4T2RLAQJ-C_GHj8I6.js → packet-4T2RLAQJ-Dz7awUWB.js} +1 -1
  89. package/dist/{packet-4T2RLAQJ-D-3BTAOL.cjs → packet-4T2RLAQJ-E5BuU-_N.cjs} +1 -1
  90. package/dist/pie-ZZUOXDRM-DjXev5ml.js +5 -0
  91. package/dist/{pie-ZZUOXDRM-CCr4-X6f.cjs → pie-ZZUOXDRM-Dy70KTXz.cjs} +1 -1
  92. package/dist/{pieDiagram-DEJITSTG-DpV5UNcT.cjs → pieDiagram-DEJITSTG-HFspfzyv.cjs} +1 -1
  93. package/dist/{pieDiagram-DEJITSTG-oeQHkFGB.js → pieDiagram-DEJITSTG-N6CuTO5d.js} +4 -4
  94. package/dist/{quadrantDiagram-34T5L4WZ-CHmpNV-R.cjs → quadrantDiagram-34T5L4WZ-BFmWaVMB.cjs} +1 -1
  95. package/dist/{quadrantDiagram-34T5L4WZ-OYjSZG43.js → quadrantDiagram-34T5L4WZ-aciP1QIx.js} +2 -2
  96. package/dist/{radar-PYXPWWZC-C1rOl50T.cjs → radar-PYXPWWZC-BF0Fb1TH.cjs} +1 -1
  97. package/dist/radar-PYXPWWZC-atHOjpus.js +5 -0
  98. package/dist/{requirementDiagram-MS252O5E-CwRW6-r7.js → requirementDiagram-MS252O5E-BKe1ubad.js} +3 -3
  99. package/dist/{requirementDiagram-MS252O5E-CD_xeIto.cjs → requirementDiagram-MS252O5E-DkopqGtb.cjs} +1 -1
  100. package/dist/{sankeyDiagram-XADWPNL6-CQfVCItY.js → sankeyDiagram-XADWPNL6-CXWxDxz9.js} +1 -1
  101. package/dist/{sankeyDiagram-XADWPNL6-RMkMjKAW.cjs → sankeyDiagram-XADWPNL6-DrZ6paqw.cjs} +1 -1
  102. package/dist/{sequenceDiagram-FGHM5R23-Bg1onFX3.cjs → sequenceDiagram-FGHM5R23-AgywoQ1Q.cjs} +1 -1
  103. package/dist/{sequenceDiagram-FGHM5R23-CHy2erSS.js → sequenceDiagram-FGHM5R23-DeT0Ej2-.js} +3 -3
  104. package/dist/{stateDiagram-FHFEXIEX-CMl5lVVr.js → stateDiagram-FHFEXIEX-7A28ex_-.js} +4 -4
  105. package/dist/{stateDiagram-FHFEXIEX-CYMON_a_.cjs → stateDiagram-FHFEXIEX-CKm2mS6U.cjs} +1 -1
  106. package/dist/{stateDiagram-v2-QKLJ7IA2-k0ixVO2x.cjs → stateDiagram-v2-QKLJ7IA2-COHQmika.cjs} +1 -1
  107. package/dist/{stateDiagram-v2-QKLJ7IA2-Ddx6MvoK.js → stateDiagram-v2-QKLJ7IA2-DKdmAkPd.js} +2 -2
  108. package/dist/{timeline-definition-GMOUNBTQ-tsduD7s8.cjs → timeline-definition-GMOUNBTQ-CLIWGUDx.cjs} +1 -1
  109. package/dist/{timeline-definition-GMOUNBTQ-wGoPQPZW.js → timeline-definition-GMOUNBTQ-a3VL8qvl.js} +2 -2
  110. package/dist/{treeView-SZITEDCU-DLnrlNgm.js → treeView-SZITEDCU-BI7UKP6V.js} +1 -1
  111. package/dist/{treeView-SZITEDCU-0cNlhBgJ.cjs → treeView-SZITEDCU-DhzhM13M.cjs} +1 -1
  112. package/dist/{treemap-W4RFUUIX-CKAFw4rq.cjs → treemap-W4RFUUIX-D27UX2aI.cjs} +1 -1
  113. package/dist/{treemap-W4RFUUIX-BhmjFGQ3.js → treemap-W4RFUUIX-DBHIrtnC.js} +1 -1
  114. package/dist/{vennDiagram-DHZGUBPP-D0_k6R1t.js → vennDiagram-DHZGUBPP-BA4bv3TJ.js} +1 -1
  115. package/dist/{vennDiagram-DHZGUBPP-cIbatSRt.cjs → vennDiagram-DHZGUBPP-u9RE2cv7.cjs} +1 -1
  116. package/dist/{wardley-RL74JXVD-ClNl5KuH.js → wardley-RL74JXVD-9hft70S_.js} +1 -1
  117. package/dist/{wardley-RL74JXVD-E_57jQp4.cjs → wardley-RL74JXVD-CAZiB4K3.cjs} +1 -1
  118. package/dist/{wardleyDiagram-NUSXRM2D-DrU9h_lF.cjs → wardleyDiagram-NUSXRM2D-CKCVdEN3.cjs} +1 -1
  119. package/dist/{wardleyDiagram-NUSXRM2D-CdC2HbGc.js → wardleyDiagram-NUSXRM2D-DBsr2UYG.js} +3 -3
  120. package/dist/{xychartDiagram-5P7HB3ND-BsPkSpoT.cjs → xychartDiagram-5P7HB3ND-BfkKtA74.cjs} +1 -1
  121. package/dist/{xychartDiagram-5P7HB3ND-y-_Hnheq.js → xychartDiagram-5P7HB3ND-CIeY2sBx.js} +2 -2
  122. package/package.json +1 -1
  123. package/dist/clone-xz9tAnT8.cjs +0 -1
  124. package/dist/info-OMHHGYJF-CoCJYW0-.js +0 -5
  125. package/dist/pie-ZZUOXDRM-BZwBUxgW.js +0 -5
  126. package/dist/radar-PYXPWWZC-CeYN6kDE.js +0 -5
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const se=require("./chunk-4BX2VUAB-D5fkGnKT.cjs"),ce=require("./chunk-QZHKN3VN-DfLK5brs.cjs"),c=require("./cowboy-components-BDlH5KPd.cjs"),ie=require("./mermaid-parser.core-D5yJiPW9.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},de=c.defaultConfig_default.gitGraph,G=c.__name(()=>c.cleanAndMerge({...de,...c.getConfig().gitGraph}),"getConfig"),l=new ce.ImperativeState(()=>{const e=G(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function N(){return c.random({length:7})}c.__name(N,"getID");function J(e,r){const t=Object.create(null);return e.reduce((o,s)=>{const d=r(s);return t[d]||(t[d]=!0,o.push(s)),o},[])}c.__name(J,"uniqBy");var le=c.__name(function(e){l.records.direction=e},"setDirection"),he=c.__name(function(e){c.log.debug("options str",e),e=e?.trim(),e=e||"{}";try{l.records.options=JSON.parse(e)}catch(r){c.log.error("error while parsing gitGraph options",r.message)}},"setOptions"),$e=c.__name(function(){return l.records.options},"getOptions"),ge=c.__name(function(e){let r=e.msg,t=e.id;const o=e.type;let s=e.tags;c.log.info("commit",r,t,o,s),c.log.debug("Entering commit:",r,t,o,s);const d=G();t=c.common_default.sanitizeText(t,d),r=c.common_default.sanitizeText(r,d),s=s?.map(a=>c.common_default.sanitizeText(a,d));const n={id:t||l.records.seq+"-"+N(),message:r,seq:l.records.seq++,type:o??x.NORMAL,tags:s??[],parents:l.records.head==null?[]:[l.records.head.id],branch:l.records.currBranch};l.records.head=n,c.log.info("main branch",d.mainBranchName),l.records.commits.has(n.id)&&c.log.warn(`Commit ID ${n.id} already exists`),l.records.commits.set(n.id,n),l.records.branches.set(l.records.currBranch,n.id),c.log.debug("in pushCommit "+n.id)},"commit"),fe=c.__name(function(e){let r=e.name;const t=e.order;if(r=c.common_default.sanitizeText(r,G()),l.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);l.records.branches.set(r,l.records.head!=null?l.records.head.id:null),l.records.branchConfig.set(r,{name:r,order:t}),Z(r),c.log.debug("in createBranch")},"branch"),me=c.__name(e=>{let r=e.branch,t=e.id;const o=e.type,s=e.tags,d=G();r=c.common_default.sanitizeText(r,d),t&&(t=c.common_default.sanitizeText(t,d));const n=l.records.branches.get(l.records.currBranch),a=l.records.branches.get(r),h=n?l.records.commits.get(n):void 0,g=a?l.records.commits.get(a):void 0;if(h&&g&&h.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(l.records.currBranch===r){const i=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(h===void 0||!h){const i=new Error(`Incorrect usage of "merge". Current branch (${l.records.currBranch})has no commits`);throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},i}if(!l.records.branches.has(r)){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},i}if(g===void 0||!g){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},i}if(h===g){const i=new Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(t&&l.records.commits.has(t)){const i=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw i.hash={text:`merge ${r} ${t} ${o} ${s?.join(" ")}`,token:`merge ${r} ${t} ${o} ${s?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${o} ${s?.join(" ")}`]},i}const f=a||"",$={id:t||`${l.records.seq}-${N()}`,message:`merged branch ${r} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,f],branch:l.records.currBranch,type:x.MERGE,customType:o,customId:!!t,tags:s??[]};l.records.head=$,l.records.commits.set($.id,$),l.records.branches.set(l.records.currBranch,$.id),c.log.debug(l.records.branches),c.log.debug("in mergeBranch")},"merge"),ue=c.__name(function(e){let r=e.id,t=e.targetId,o=e.tags,s=e.parent;c.log.debug("Entering cherryPick:",r,t,o);const d=G();if(r=c.common_default.sanitizeText(r,d),t=c.common_default.sanitizeText(t,d),o=o?.map(h=>c.common_default.sanitizeText(h,d)),s=c.common_default.sanitizeText(s,d),!r||!l.records.commits.has(r)){const h=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw h.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},h}const n=l.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(s&&!(Array.isArray(n.parents)&&n.parents.includes(s)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===x.MERGE&&!s)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!l.records.commits.has(t)){if(a===l.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const h=l.records.branches.get(l.records.currBranch);if(h===void 0||!h){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g=l.records.commits.get(h);if(g===void 0||!g){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f={id:l.records.seq+"-"+N(),message:`cherry-picked ${n?.message} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,n.id],branch:l.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${n.id}${n.type===x.MERGE?`|parent:${s}`:""}`]};l.records.head=f,l.records.commits.set(f.id,f),l.records.branches.set(l.records.currBranch,f.id),c.log.debug(l.records.branches),c.log.debug("in cherryPick")}},"cherryPick"),Z=c.__name(function(e){if(e=c.common_default.sanitizeText(e,G()),l.records.branches.has(e)){l.records.currBranch=e;const r=l.records.branches.get(l.records.currBranch);r===void 0||!r?l.records.head=null:l.records.head=l.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function j(e,r,t){const o=e.indexOf(r);o===-1?e.push(t):e.splice(o,1,t)}c.__name(j,"upsert");function K(e){const r=e.reduce((s,d)=>s.seq>d.seq?s:d,e[0]);let t="";e.forEach(function(s){s===r?t+=" *":t+=" |"});const o=[t,r.id,r.seq];for(const s in l.records.branches)l.records.branches.get(s)===r.id&&o.push(s);if(c.log.debug(o.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const s=l.records.commits.get(r.parents[0]);j(e,r,s),r.parents[1]&&e.push(l.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const s=l.records.commits.get(r.parents[0]);j(e,r,s)}}e=J(e,s=>s.id),K(e)}c.__name(K,"prettyPrintCommitHistory");var ye=c.__name(function(){c.log.debug(l.records.commits);const e=ee()[0];K([e])},"prettyPrint"),xe=c.__name(function(){l.reset(),c.clear()},"clear"),pe=c.__name(function(){return[...l.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),be=c.__name(function(){return l.records.branches},"getBranches"),_e=c.__name(function(){return l.records.commits},"getCommits"),ee=c.__name(function(){const e=[...l.records.commits.values()];return e.forEach(function(r){c.log.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),we=c.__name(function(){return l.records.currBranch},"getCurrentBranch"),ke=c.__name(function(){return l.records.direction},"getDirection"),Ce=c.__name(function(){return l.records.head},"getHead"),re={commitType:x,getConfig:G,setDirection:le,setOptions:he,getOptions:$e,commit:ge,branch:fe,merge:me,cherryPick:ue,checkout:Z,prettyPrint:ye,clear:xe,getBranchesAsObjArray:pe,getBranches:be,getCommits:_e,getCommitsArray:ee,getCurrentBranch:we,getDirection:ke,getHead:Ce,setAccTitle:c.setAccTitle,getAccTitle:c.getAccTitle,getAccDescription:c.getAccDescription,setAccDescription:c.setAccDescription,setDiagramTitle:c.setDiagramTitle,getDiagramTitle:c.getDiagramTitle},ve=c.__name((e,r)=>{se.populateCommonDb(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Be(t,r)},"populate"),Be=c.__name((e,r)=>{const o={Commit:c.__name(s=>r.commit(Ee(s)),"Commit"),Branch:c.__name(s=>r.branch(Te(s)),"Branch"),Merge:c.__name(s=>r.merge(Le(s)),"Merge"),Checkout:c.__name(s=>r.checkout(Me(s)),"Checkout"),CherryPicking:c.__name(s=>r.cherryPick(Re(s)),"CherryPicking")}[e.$type];o?o(e):c.log.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ee=c.__name(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?x[e.type]:x.NORMAL,tags:e.tags??void 0}),"parseCommit"),Te=c.__name(e=>({name:e.name,order:e.order??0}),"parseBranch"),Le=c.__name(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?x[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Me=c.__name(e=>e.branch,"parseCheckout"),Re=c.__name(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ie={parse:c.__name(async e=>{const r=await ie.parse("gitGraph",e);c.log.debug(r),ve(r,re)},"parse")},M=10,R=40,B=4,T=2,I=8,F=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),U=12,V=new Set(["redux-color","redux-dark-color"]),Oe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),O=c.__name((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),k=new Map,C=new Map,P=30,A=new Map,W=[],L=0,u="LR",Ge=c.__name(()=>{k.clear(),C.clear(),A.clear(),L=0,W=[],u="LR"},"clear"),te=c.__name(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(o=>{const s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.setAttribute("dy","1em"),s.setAttribute("x","0"),s.setAttribute("class","row"),s.textContent=o.trim(),r.appendChild(s)}),r},"drawText"),ae=c.__name(e=>{let r,t,o;return u==="BT"?(t=c.__name((s,d)=>s<=d,"comparisonFunc"),o=1/0):(t=c.__name((s,d)=>s>=d,"comparisonFunc"),o=0),e.forEach(s=>{const d=u==="TB"||u=="BT"?C.get(s)?.y:C.get(s)?.x;d!==void 0&&t(d,o)&&(r=s,o=d)}),r},"findClosestParent"),He=c.__name(e=>{let r="",t=1/0;return e.forEach(o=>{const s=C.get(o).y;s<=t&&(r=o,t=s)}),r||void 0},"findClosestParentBT"),Se=c.__name((e,r,t)=>{let o=t,s=t;const d=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(o=De(a),s=Math.max(o,s)):d.push(a),qe(a,o)}),o=s,d.forEach(n=>{Pe(n,o,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const h=He(a.parents);o=C.get(h).y-R,o<=s&&(s=o);const g=k.get(a.branch).pos,f=o-M;C.set(a.id,{x:g,y:f})}})},"setParallelBTPos"),Ae=c.__name(e=>{const r=ae(e.parents.filter(o=>o!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=C.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),De=c.__name(e=>Ae(e)+R,"calculateCommitPosition"),qe=c.__name((e,r)=>{const t=k.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const o=t.pos,s=r+M;return C.set(e.id,{x:o,y:s}),{x:o,y:s}},"setCommitPosition"),Pe=c.__name((e,r,t)=>{const o=k.get(e.branch);if(!o)throw new Error(`Branch not found for commit ${e.id}`);const s=r+t,d=o.pos;C.set(e.id,{x:d,y:s})},"setRootPosition"),We=c.__name((e,r,t,o,s,d)=>{const{theme:n}=c.getConfig2(),a=F.has(n??""),h=V.has(n??""),g=Oe.has(n??"");if(d===x.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${O(s,I,h)} ${o}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${O(s,I,h)} ${o}-inner`);else if(d===x.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${o}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",g?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",g?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",g?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",g?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);else{const f=e.append("circle");if(f.attr("cx",t.x),f.attr("cy",t.y),f.attr("r",a?7:10),f.attr("class",`commit ${r.id} commit${O(s,I,h)}`),d===x.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${o} ${r.id} commit${O(s,I,h)}`)}if(d===x.REVERSE){const $=e.append("path"),i=a?4:5;$.attr("d",`M ${t.x-i},${t.y-i}L${t.x+i},${t.y+i}M${t.x-i},${t.y+i}L${t.x+i},${t.y-i}`).attr("class",`commit ${o} ${r.id} commit${O(s,I,h)}`)}}},"drawCommitBullet"),Ne=c.__name((e,r,t,o,s)=>{if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&s.showCommitLabel){const d=e.append("g"),n=d.insert("rect").attr("class","commit-label-bkg"),a=d.append("text").attr("x",o).attr("y",t.y+25).attr("class","commit-label").text(r.id),h=a.node()?.getBBox();if(h&&(n.attr("x",t.posWithOffset-h.width/2-T).attr("y",t.y+13.5).attr("width",h.width+2*T).attr("height",h.height+2*T),u==="TB"||u==="BT"?(n.attr("x",t.x-(h.width+4*B+5)).attr("y",t.y-12),a.attr("x",t.x-(h.width+4*B)).attr("y",t.y+h.height-12)):a.attr("x",t.posWithOffset-h.width/2),s.rotateCommitLabel))if(u==="TB"||u==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const g=-7.5-(h.width+10)/25*9.5,f=10+h.width/25*8.5;d.attr("transform","translate("+g+", "+f+") rotate(-45, "+o+", "+t.y+")")}}},"drawCommitLabel"),Fe=c.__name((e,r,t,o)=>{if(r.tags.length>0){let s=0,d=0,n=0;const a=[];for(const h of r.tags.reverse()){const g=e.insert("polygon"),f=e.append("circle"),$=e.append("text").attr("y",t.y-16-s).attr("class","tag-label").text(h),i=$.node()?.getBBox();if(!i)throw new Error("Tag bbox not found");d=Math.max(d,i.width),n=Math.max(n,i.height),$.attr("x",t.posWithOffset-i.width/2),a.push({tag:$,hole:f,rect:g,yOffset:s}),s+=20}for(const{tag:h,hole:g,rect:f,yOffset:$}of a){const i=n/2,y=t.y-19.2-$;if(f.attr("class","tag-label-bkg").attr("points",`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const se=require("./chunk-4BX2VUAB-CeMFPKaY.cjs"),ce=require("./chunk-QZHKN3VN-v9FRBMwC.cjs"),c=require("./cowboy-components-DlcOqYuh.cjs"),ie=require("./mermaid-parser.core-By3g6lf1.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},de=c.defaultConfig_default.gitGraph,G=c.__name(()=>c.cleanAndMerge({...de,...c.getConfig().gitGraph}),"getConfig"),l=new ce.ImperativeState(()=>{const e=G(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function N(){return c.random({length:7})}c.__name(N,"getID");function J(e,r){const t=Object.create(null);return e.reduce((o,s)=>{const d=r(s);return t[d]||(t[d]=!0,o.push(s)),o},[])}c.__name(J,"uniqBy");var le=c.__name(function(e){l.records.direction=e},"setDirection"),he=c.__name(function(e){c.log.debug("options str",e),e=e?.trim(),e=e||"{}";try{l.records.options=JSON.parse(e)}catch(r){c.log.error("error while parsing gitGraph options",r.message)}},"setOptions"),$e=c.__name(function(){return l.records.options},"getOptions"),ge=c.__name(function(e){let r=e.msg,t=e.id;const o=e.type;let s=e.tags;c.log.info("commit",r,t,o,s),c.log.debug("Entering commit:",r,t,o,s);const d=G();t=c.common_default.sanitizeText(t,d),r=c.common_default.sanitizeText(r,d),s=s?.map(a=>c.common_default.sanitizeText(a,d));const n={id:t||l.records.seq+"-"+N(),message:r,seq:l.records.seq++,type:o??x.NORMAL,tags:s??[],parents:l.records.head==null?[]:[l.records.head.id],branch:l.records.currBranch};l.records.head=n,c.log.info("main branch",d.mainBranchName),l.records.commits.has(n.id)&&c.log.warn(`Commit ID ${n.id} already exists`),l.records.commits.set(n.id,n),l.records.branches.set(l.records.currBranch,n.id),c.log.debug("in pushCommit "+n.id)},"commit"),fe=c.__name(function(e){let r=e.name;const t=e.order;if(r=c.common_default.sanitizeText(r,G()),l.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);l.records.branches.set(r,l.records.head!=null?l.records.head.id:null),l.records.branchConfig.set(r,{name:r,order:t}),Z(r),c.log.debug("in createBranch")},"branch"),me=c.__name(e=>{let r=e.branch,t=e.id;const o=e.type,s=e.tags,d=G();r=c.common_default.sanitizeText(r,d),t&&(t=c.common_default.sanitizeText(t,d));const n=l.records.branches.get(l.records.currBranch),a=l.records.branches.get(r),h=n?l.records.commits.get(n):void 0,g=a?l.records.commits.get(a):void 0;if(h&&g&&h.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(l.records.currBranch===r){const i=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(h===void 0||!h){const i=new Error(`Incorrect usage of "merge". Current branch (${l.records.currBranch})has no commits`);throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},i}if(!l.records.branches.has(r)){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},i}if(g===void 0||!g){const i=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},i}if(h===g){const i=new Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(t&&l.records.commits.has(t)){const i=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw i.hash={text:`merge ${r} ${t} ${o} ${s?.join(" ")}`,token:`merge ${r} ${t} ${o} ${s?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${o} ${s?.join(" ")}`]},i}const f=a||"",$={id:t||`${l.records.seq}-${N()}`,message:`merged branch ${r} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,f],branch:l.records.currBranch,type:x.MERGE,customType:o,customId:!!t,tags:s??[]};l.records.head=$,l.records.commits.set($.id,$),l.records.branches.set(l.records.currBranch,$.id),c.log.debug(l.records.branches),c.log.debug("in mergeBranch")},"merge"),ue=c.__name(function(e){let r=e.id,t=e.targetId,o=e.tags,s=e.parent;c.log.debug("Entering cherryPick:",r,t,o);const d=G();if(r=c.common_default.sanitizeText(r,d),t=c.common_default.sanitizeText(t,d),o=o?.map(h=>c.common_default.sanitizeText(h,d)),s=c.common_default.sanitizeText(s,d),!r||!l.records.commits.has(r)){const h=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw h.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},h}const n=l.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(s&&!(Array.isArray(n.parents)&&n.parents.includes(s)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===x.MERGE&&!s)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!l.records.commits.has(t)){if(a===l.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const h=l.records.branches.get(l.records.currBranch);if(h===void 0||!h){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g=l.records.commits.get(h);if(g===void 0||!g){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f={id:l.records.seq+"-"+N(),message:`cherry-picked ${n?.message} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,n.id],branch:l.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${n.id}${n.type===x.MERGE?`|parent:${s}`:""}`]};l.records.head=f,l.records.commits.set(f.id,f),l.records.branches.set(l.records.currBranch,f.id),c.log.debug(l.records.branches),c.log.debug("in cherryPick")}},"cherryPick"),Z=c.__name(function(e){if(e=c.common_default.sanitizeText(e,G()),l.records.branches.has(e)){l.records.currBranch=e;const r=l.records.branches.get(l.records.currBranch);r===void 0||!r?l.records.head=null:l.records.head=l.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function j(e,r,t){const o=e.indexOf(r);o===-1?e.push(t):e.splice(o,1,t)}c.__name(j,"upsert");function K(e){const r=e.reduce((s,d)=>s.seq>d.seq?s:d,e[0]);let t="";e.forEach(function(s){s===r?t+=" *":t+=" |"});const o=[t,r.id,r.seq];for(const s in l.records.branches)l.records.branches.get(s)===r.id&&o.push(s);if(c.log.debug(o.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const s=l.records.commits.get(r.parents[0]);j(e,r,s),r.parents[1]&&e.push(l.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const s=l.records.commits.get(r.parents[0]);j(e,r,s)}}e=J(e,s=>s.id),K(e)}c.__name(K,"prettyPrintCommitHistory");var ye=c.__name(function(){c.log.debug(l.records.commits);const e=ee()[0];K([e])},"prettyPrint"),xe=c.__name(function(){l.reset(),c.clear()},"clear"),pe=c.__name(function(){return[...l.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),be=c.__name(function(){return l.records.branches},"getBranches"),_e=c.__name(function(){return l.records.commits},"getCommits"),ee=c.__name(function(){const e=[...l.records.commits.values()];return e.forEach(function(r){c.log.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),we=c.__name(function(){return l.records.currBranch},"getCurrentBranch"),ke=c.__name(function(){return l.records.direction},"getDirection"),Ce=c.__name(function(){return l.records.head},"getHead"),re={commitType:x,getConfig:G,setDirection:le,setOptions:he,getOptions:$e,commit:ge,branch:fe,merge:me,cherryPick:ue,checkout:Z,prettyPrint:ye,clear:xe,getBranchesAsObjArray:pe,getBranches:be,getCommits:_e,getCommitsArray:ee,getCurrentBranch:we,getDirection:ke,getHead:Ce,setAccTitle:c.setAccTitle,getAccTitle:c.getAccTitle,getAccDescription:c.getAccDescription,setAccDescription:c.setAccDescription,setDiagramTitle:c.setDiagramTitle,getDiagramTitle:c.getDiagramTitle},ve=c.__name((e,r)=>{se.populateCommonDb(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Be(t,r)},"populate"),Be=c.__name((e,r)=>{const o={Commit:c.__name(s=>r.commit(Ee(s)),"Commit"),Branch:c.__name(s=>r.branch(Te(s)),"Branch"),Merge:c.__name(s=>r.merge(Le(s)),"Merge"),Checkout:c.__name(s=>r.checkout(Me(s)),"Checkout"),CherryPicking:c.__name(s=>r.cherryPick(Re(s)),"CherryPicking")}[e.$type];o?o(e):c.log.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ee=c.__name(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?x[e.type]:x.NORMAL,tags:e.tags??void 0}),"parseCommit"),Te=c.__name(e=>({name:e.name,order:e.order??0}),"parseBranch"),Le=c.__name(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?x[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Me=c.__name(e=>e.branch,"parseCheckout"),Re=c.__name(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ie={parse:c.__name(async e=>{const r=await ie.parse("gitGraph",e);c.log.debug(r),ve(r,re)},"parse")},M=10,R=40,B=4,T=2,I=8,F=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),U=12,V=new Set(["redux-color","redux-dark-color"]),Oe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),O=c.__name((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),k=new Map,C=new Map,P=30,A=new Map,W=[],L=0,u="LR",Ge=c.__name(()=>{k.clear(),C.clear(),A.clear(),L=0,W=[],u="LR"},"clear"),te=c.__name(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(o=>{const s=document.createElementNS("http://www.w3.org/2000/svg","tspan");s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s.setAttribute("dy","1em"),s.setAttribute("x","0"),s.setAttribute("class","row"),s.textContent=o.trim(),r.appendChild(s)}),r},"drawText"),ae=c.__name(e=>{let r,t,o;return u==="BT"?(t=c.__name((s,d)=>s<=d,"comparisonFunc"),o=1/0):(t=c.__name((s,d)=>s>=d,"comparisonFunc"),o=0),e.forEach(s=>{const d=u==="TB"||u=="BT"?C.get(s)?.y:C.get(s)?.x;d!==void 0&&t(d,o)&&(r=s,o=d)}),r},"findClosestParent"),He=c.__name(e=>{let r="",t=1/0;return e.forEach(o=>{const s=C.get(o).y;s<=t&&(r=o,t=s)}),r||void 0},"findClosestParentBT"),Se=c.__name((e,r,t)=>{let o=t,s=t;const d=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(o=De(a),s=Math.max(o,s)):d.push(a),qe(a,o)}),o=s,d.forEach(n=>{Pe(n,o,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const h=He(a.parents);o=C.get(h).y-R,o<=s&&(s=o);const g=k.get(a.branch).pos,f=o-M;C.set(a.id,{x:g,y:f})}})},"setParallelBTPos"),Ae=c.__name(e=>{const r=ae(e.parents.filter(o=>o!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=C.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),De=c.__name(e=>Ae(e)+R,"calculateCommitPosition"),qe=c.__name((e,r)=>{const t=k.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const o=t.pos,s=r+M;return C.set(e.id,{x:o,y:s}),{x:o,y:s}},"setCommitPosition"),Pe=c.__name((e,r,t)=>{const o=k.get(e.branch);if(!o)throw new Error(`Branch not found for commit ${e.id}`);const s=r+t,d=o.pos;C.set(e.id,{x:d,y:s})},"setRootPosition"),We=c.__name((e,r,t,o,s,d)=>{const{theme:n}=c.getConfig2(),a=F.has(n??""),h=V.has(n??""),g=Oe.has(n??"");if(d===x.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${O(s,I,h)} ${o}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${O(s,I,h)} ${o}-inner`);else if(d===x.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${o}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",g?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",g?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",g?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",g?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);else{const f=e.append("circle");if(f.attr("cx",t.x),f.attr("cy",t.y),f.attr("r",a?7:10),f.attr("class",`commit ${r.id} commit${O(s,I,h)}`),d===x.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${o} ${r.id} commit${O(s,I,h)}`)}if(d===x.REVERSE){const $=e.append("path"),i=a?4:5;$.attr("d",`M ${t.x-i},${t.y-i}L${t.x+i},${t.y+i}M${t.x-i},${t.y+i}L${t.x+i},${t.y-i}`).attr("class",`commit ${o} ${r.id} commit${O(s,I,h)}`)}}},"drawCommitBullet"),Ne=c.__name((e,r,t,o,s)=>{if(r.type!==x.CHERRY_PICK&&(r.customId&&r.type===x.MERGE||r.type!==x.MERGE)&&s.showCommitLabel){const d=e.append("g"),n=d.insert("rect").attr("class","commit-label-bkg"),a=d.append("text").attr("x",o).attr("y",t.y+25).attr("class","commit-label").text(r.id),h=a.node()?.getBBox();if(h&&(n.attr("x",t.posWithOffset-h.width/2-T).attr("y",t.y+13.5).attr("width",h.width+2*T).attr("height",h.height+2*T),u==="TB"||u==="BT"?(n.attr("x",t.x-(h.width+4*B+5)).attr("y",t.y-12),a.attr("x",t.x-(h.width+4*B)).attr("y",t.y+h.height-12)):a.attr("x",t.posWithOffset-h.width/2),s.rotateCommitLabel))if(u==="TB"||u==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const g=-7.5-(h.width+10)/25*9.5,f=10+h.width/25*8.5;d.attr("transform","translate("+g+", "+f+") rotate(-45, "+o+", "+t.y+")")}}},"drawCommitLabel"),Fe=c.__name((e,r,t,o)=>{if(r.tags.length>0){let s=0,d=0,n=0;const a=[];for(const h of r.tags.reverse()){const g=e.insert("polygon"),f=e.append("circle"),$=e.append("text").attr("y",t.y-16-s).attr("class","tag-label").text(h),i=$.node()?.getBBox();if(!i)throw new Error("Tag bbox not found");d=Math.max(d,i.width),n=Math.max(n,i.height),$.attr("x",t.posWithOffset-i.width/2),a.push({tag:$,hole:f,rect:g,yOffset:s}),s+=20}for(const{tag:h,hole:g,rect:f,yOffset:$}of a){const i=n/2,y=t.y-19.2-$;if(f.attr("class","tag-label-bkg").attr("points",`
2
2
  ${o-d/2-B/2},${y+T}
3
3
  ${o-d/2-B/2},${y-T}
4
4
  ${t.posWithOffset-d/2-B},${y-i-T}
@@ -1 +1 @@
1
- "use strict";const o=require("./cowboy-components-BDlH5KPd.cjs"),u=require("./_baseUniq-D4w9OEfi.cjs");function B(t,e){return t&&o.copyObject(e,u.keys(e),t)}function x(t,e){return t&&o.copyObject(e,o.keysIn(e),t)}function R(t,e){return o.copyObject(t,u.getSymbols(t),e)}var V=Object.getOwnPropertySymbols,v=V?function(t){for(var e=[];t;)u.arrayPush(e,u.getSymbols(t)),t=o.getPrototype(t);return e}:u.stubArray;function k(t,e){return o.copyObject(t,v(t),e)}function q(t){return u.baseGetAllKeys(t,o.keysIn,v)}var K=Object.prototype,Y=K.hasOwnProperty;function H(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Y.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function W(t,e){var r=e?o.cloneArrayBuffer(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var J=/\w*$/;function Q(t){var e=new t.constructor(t.source,J.exec(t));return e.lastIndex=t.lastIndex,e}var L=o.Symbol?o.Symbol.prototype:void 0,w=L?L.valueOf:void 0;function X(t){return w?Object(w.call(t)):{}}var Z="[object Boolean]",z="[object Date]",ee="[object Map]",te="[object Number]",re="[object RegExp]",se="[object Set]",ne="[object String]",ie="[object Symbol]",oe="[object ArrayBuffer]",ae="[object DataView]",ue="[object Float32Array]",he="[object Float64Array]",ce="[object Int8Array]",de="[object Int16Array]",fe="[object Int32Array]",le="[object Uint8Array]",ge="[object Uint8ClampedArray]",be="[object Uint16Array]",_e="[object Uint32Array]";function pe(t,e,r){var s=t.constructor;switch(e){case oe:return o.cloneArrayBuffer(t);case Z:case z:return new s(+t);case ae:return W(t,r);case ue:case he:case ce:case de:case fe:case le:case ge:case be:case _e:return o.cloneTypedArray(t,r);case ee:return new s;case te:case ne:return new s(t);case re:return Q(t);case se:return new s;case ie:return X(t)}}var ye="[object Map]";function me(t){return o.isObjectLike(t)&&o.getTag(t)==ye}var N=o.nodeUtil&&o.nodeUtil.isMap,je=N?o.baseUnary(N):me,Te="[object Set]";function Oe(t){return o.isObjectLike(t)&&o.getTag(t)==Te}var F=o.nodeUtil&&o.nodeUtil.isSet,Ee=F?o.baseUnary(F):Oe,Ae=1,Ce=2,Le=4,I="[object Arguments]",we="[object Array]",Ne="[object Boolean]",Fe="[object Date]",Se="[object Error]",D="[object Function]",$e="[object GeneratorFunction]",Pe="[object Map]",ve="[object Number]",M="[object Object]",Ie="[object RegExp]",De="[object Set]",Me="[object String]",Ue="[object Symbol]",Ge="[object WeakMap]",Be="[object ArrayBuffer]",xe="[object DataView]",Re="[object Float32Array]",Ve="[object Float64Array]",ke="[object Int8Array]",qe="[object Int16Array]",Ke="[object Int32Array]",Ye="[object Uint8Array]",He="[object Uint8ClampedArray]",We="[object Uint16Array]",Je="[object Uint32Array]",h={};h[I]=h[we]=h[Be]=h[xe]=h[Ne]=h[Fe]=h[Re]=h[Ve]=h[ke]=h[qe]=h[Ke]=h[Pe]=h[ve]=h[M]=h[Ie]=h[De]=h[Me]=h[Ue]=h[Ye]=h[He]=h[We]=h[Je]=!0;h[Se]=h[D]=h[Ge]=!1;function y(t,e,r,s,n,a){var i,c=e&Ae,d=e&Ce,U=e&Le;if(i!==void 0)return i;if(!o.isObject(t))return t;var O=o.isArray(t);if(O){if(i=H(t),!c)return o.copyArray(t,i)}else{var _=o.getTag(t),E=_==D||_==$e;if(o.isBuffer(t))return o.cloneBuffer(t,c);if(_==M||_==I||E&&!n){if(i=d||E?{}:o.initCloneObject(t),!c)return d?k(t,x(i,t)):R(t,B(i,t))}else{if(!h[_])return n?t:{};i=pe(t,_,c)}}a||(a=new o.Stack);var A=a.get(t);if(A)return A;a.set(t,i),Ee(t)?t.forEach(function(f){i.add(y(f,e,r,f,t,a))}):je(t)&&t.forEach(function(f,l){i.set(l,y(f,e,r,l,t,a))});var G=U?d?q:u.getAllKeys:d?o.keysIn:u.keys,C=O?void 0:G(t);return u.arrayEach(C||t,function(f,l){C&&(l=f,f=t[l]),o.assignValue(i,l,y(f,e,r,l,t,a))}),i}function Qe(t,e){return u.arrayMap(e,function(r){return t[r]})}function m(t){return t==null?[]:Qe(t,u.keys(t))}function b(t){return t===void 0}var Xe=o.baseRest(function(t){return u.baseUniq(u.baseFlatten(t,1,o.isArrayLikeObject,!0))}),Ze="\0",g="\0",S="";class T{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=o.constant$2(void 0),this._defaultEdgeLabelFn=o.constant$2(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[g]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return o.isFunction(e)||(e=o.constant$2(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return u.keys(this._nodes)}sources(){var e=this;return u.filter(this.nodes(),function(r){return o.isEmpty(e._in[r])})}sinks(){var e=this;return u.filter(this.nodes(),function(r){return o.isEmpty(e._out[r])})}setNodes(e,r){var s=arguments,n=this;return u.forEach(e,function(a){s.length>1?n.setNode(a,r):n.setNode(a)}),this}setNode(e,r){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=g,this._children[e]={},this._children[g][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var r=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],u.forEach(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),u.forEach(u.keys(this._in[e]),r),delete this._in[e],delete this._preds[e],u.forEach(u.keys(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(b(r))r=g;else{r+="";for(var s=r;!b(s);s=this.parent(s))if(s===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==g)return r}}children(e){if(b(e)&&(e=g),this._isCompound){var r=this._children[e];if(r)return u.keys(r)}else{if(e===g)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return u.keys(r)}successors(e){var r=this._sucs[e];if(r)return u.keys(r)}neighbors(e){var r=this.predecessors(e);if(r)return Xe(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var s=this;u.forEach(this._nodes,function(i,c){e(c)&&r.setNode(c,i)}),u.forEach(this._edgeObjs,function(i){r.hasNode(i.v)&&r.hasNode(i.w)&&r.setEdge(i,s.edge(i))});var n={};function a(i){var c=s.parent(i);return c===void 0||r.hasNode(c)?(n[i]=c,c):c in n?n[c]:a(c)}return this._isCompound&&u.forEach(r.nodes(),function(i){r.setParent(i,a(i))}),r}setDefaultEdgeLabel(e){return o.isFunction(e)||(e=o.constant$2(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return m(this._edgeObjs)}setPath(e,r){var s=this,n=arguments;return u.reduce(e,function(a,i){return n.length>1?s.setEdge(a,i,r):s.setEdge(a,i),i}),this}setEdge(){var e,r,s,n,a=!1,i=arguments[0];typeof i=="object"&&i!==null&&"v"in i?(e=i.v,r=i.w,s=i.name,arguments.length===2&&(n=arguments[1],a=!0)):(e=i,r=arguments[1],s=arguments[3],arguments.length>2&&(n=arguments[2],a=!0)),e=""+e,r=""+r,b(s)||(s=""+s);var c=p(this._isDirected,e,r,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,c))return a&&(this._edgeLabels[c]=n),this;if(!b(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[c]=a?n:this._defaultEdgeLabelFn(e,r,s);var d=ze(this._isDirected,e,r,s);return e=d.v,r=d.w,Object.freeze(d),this._edgeObjs[c]=d,$(this._preds[r],e),$(this._sucs[e],r),this._in[r][c]=d,this._out[e][c]=d,this._edgeCount++,this}edge(e,r,s){var n=arguments.length===1?j(this._isDirected,arguments[0]):p(this._isDirected,e,r,s);return this._edgeLabels[n]}hasEdge(e,r,s){var n=arguments.length===1?j(this._isDirected,arguments[0]):p(this._isDirected,e,r,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,n)}removeEdge(e,r,s){var n=arguments.length===1?j(this._isDirected,arguments[0]):p(this._isDirected,e,r,s),a=this._edgeObjs[n];return a&&(e=a.v,r=a.w,delete this._edgeLabels[n],delete this._edgeObjs[n],P(this._preds[r],e),P(this._sucs[e],r),delete this._in[r][n],delete this._out[e][n],this._edgeCount--),this}inEdges(e,r){var s=this._in[e];if(s){var n=m(s);return r?u.filter(n,function(a){return a.v===r}):n}}outEdges(e,r){var s=this._out[e];if(s){var n=m(s);return r?u.filter(n,function(a){return a.w===r}):n}}nodeEdges(e,r){var s=this.inEdges(e,r);if(s)return s.concat(this.outEdges(e,r))}}T.prototype._nodeCount=0;T.prototype._edgeCount=0;function $(t,e){t[e]?t[e]++:t[e]=1}function P(t,e){--t[e]||delete t[e]}function p(t,e,r,s){var n=""+e,a=""+r;if(!t&&n>a){var i=n;n=a,a=i}return n+S+a+S+(b(s)?Ze:s)}function ze(t,e,r,s){var n=""+e,a=""+r;if(!t&&n>a){var i=n;n=a,a=i}var c={v:n,w:a};return s&&(c.name=s),c}function j(t,e){return p(t,e.v,e.w,e.name)}exports.Graph=T;exports.baseClone=y;exports.isUndefined=b;exports.values=m;
1
+ "use strict";const o=require("./cowboy-components-DlcOqYuh.cjs"),u=require("./_baseUniq-CacIA2LC.cjs");function B(t,e){return t&&o.copyObject(e,u.keys(e),t)}function x(t,e){return t&&o.copyObject(e,o.keysIn(e),t)}function R(t,e){return o.copyObject(t,u.getSymbols(t),e)}var V=Object.getOwnPropertySymbols,v=V?function(t){for(var e=[];t;)u.arrayPush(e,u.getSymbols(t)),t=o.getPrototype(t);return e}:u.stubArray;function k(t,e){return o.copyObject(t,v(t),e)}function q(t){return u.baseGetAllKeys(t,o.keysIn,v)}var K=Object.prototype,Y=K.hasOwnProperty;function H(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Y.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function W(t,e){var r=e?o.cloneArrayBuffer(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var J=/\w*$/;function Q(t){var e=new t.constructor(t.source,J.exec(t));return e.lastIndex=t.lastIndex,e}var L=o.Symbol?o.Symbol.prototype:void 0,w=L?L.valueOf:void 0;function X(t){return w?Object(w.call(t)):{}}var Z="[object Boolean]",z="[object Date]",ee="[object Map]",te="[object Number]",re="[object RegExp]",se="[object Set]",ne="[object String]",ie="[object Symbol]",oe="[object ArrayBuffer]",ae="[object DataView]",ue="[object Float32Array]",he="[object Float64Array]",ce="[object Int8Array]",de="[object Int16Array]",fe="[object Int32Array]",le="[object Uint8Array]",ge="[object Uint8ClampedArray]",be="[object Uint16Array]",_e="[object Uint32Array]";function pe(t,e,r){var s=t.constructor;switch(e){case oe:return o.cloneArrayBuffer(t);case Z:case z:return new s(+t);case ae:return W(t,r);case ue:case he:case ce:case de:case fe:case le:case ge:case be:case _e:return o.cloneTypedArray(t,r);case ee:return new s;case te:case ne:return new s(t);case re:return Q(t);case se:return new s;case ie:return X(t)}}var ye="[object Map]";function me(t){return o.isObjectLike(t)&&o.getTag(t)==ye}var N=o.nodeUtil&&o.nodeUtil.isMap,je=N?o.baseUnary(N):me,Te="[object Set]";function Oe(t){return o.isObjectLike(t)&&o.getTag(t)==Te}var F=o.nodeUtil&&o.nodeUtil.isSet,Ee=F?o.baseUnary(F):Oe,Ae=1,Ce=2,Le=4,I="[object Arguments]",we="[object Array]",Ne="[object Boolean]",Fe="[object Date]",Se="[object Error]",D="[object Function]",$e="[object GeneratorFunction]",Pe="[object Map]",ve="[object Number]",M="[object Object]",Ie="[object RegExp]",De="[object Set]",Me="[object String]",Ue="[object Symbol]",Ge="[object WeakMap]",Be="[object ArrayBuffer]",xe="[object DataView]",Re="[object Float32Array]",Ve="[object Float64Array]",ke="[object Int8Array]",qe="[object Int16Array]",Ke="[object Int32Array]",Ye="[object Uint8Array]",He="[object Uint8ClampedArray]",We="[object Uint16Array]",Je="[object Uint32Array]",h={};h[I]=h[we]=h[Be]=h[xe]=h[Ne]=h[Fe]=h[Re]=h[Ve]=h[ke]=h[qe]=h[Ke]=h[Pe]=h[ve]=h[M]=h[Ie]=h[De]=h[Me]=h[Ue]=h[Ye]=h[He]=h[We]=h[Je]=!0;h[Se]=h[D]=h[Ge]=!1;function y(t,e,r,s,n,a){var i,c=e&Ae,d=e&Ce,U=e&Le;if(i!==void 0)return i;if(!o.isObject(t))return t;var O=o.isArray(t);if(O){if(i=H(t),!c)return o.copyArray(t,i)}else{var _=o.getTag(t),E=_==D||_==$e;if(o.isBuffer(t))return o.cloneBuffer(t,c);if(_==M||_==I||E&&!n){if(i=d||E?{}:o.initCloneObject(t),!c)return d?k(t,x(i,t)):R(t,B(i,t))}else{if(!h[_])return n?t:{};i=pe(t,_,c)}}a||(a=new o.Stack);var A=a.get(t);if(A)return A;a.set(t,i),Ee(t)?t.forEach(function(f){i.add(y(f,e,r,f,t,a))}):je(t)&&t.forEach(function(f,l){i.set(l,y(f,e,r,l,t,a))});var G=U?d?q:u.getAllKeys:d?o.keysIn:u.keys,C=O?void 0:G(t);return u.arrayEach(C||t,function(f,l){C&&(l=f,f=t[l]),o.assignValue(i,l,y(f,e,r,l,t,a))}),i}function Qe(t,e){return u.arrayMap(e,function(r){return t[r]})}function m(t){return t==null?[]:Qe(t,u.keys(t))}function b(t){return t===void 0}var Xe=o.baseRest(function(t){return u.baseUniq(u.baseFlatten(t,1,o.isArrayLikeObject,!0))}),Ze="\0",g="\0",S="";class T{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=o.constant$2(void 0),this._defaultEdgeLabelFn=o.constant$2(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[g]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return o.isFunction(e)||(e=o.constant$2(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return u.keys(this._nodes)}sources(){var e=this;return u.filter(this.nodes(),function(r){return o.isEmpty(e._in[r])})}sinks(){var e=this;return u.filter(this.nodes(),function(r){return o.isEmpty(e._out[r])})}setNodes(e,r){var s=arguments,n=this;return u.forEach(e,function(a){s.length>1?n.setNode(a,r):n.setNode(a)}),this}setNode(e,r){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=r),this):(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=g,this._children[e]={},this._children[g][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var r=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],u.forEach(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),u.forEach(u.keys(this._in[e]),r),delete this._in[e],delete this._preds[e],u.forEach(u.keys(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(b(r))r=g;else{r+="";for(var s=r;!b(s);s=this.parent(s))if(s===e)throw new Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==g)return r}}children(e){if(b(e)&&(e=g),this._isCompound){var r=this._children[e];if(r)return u.keys(r)}else{if(e===g)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return u.keys(r)}successors(e){var r=this._sucs[e];if(r)return u.keys(r)}neighbors(e){var r=this.predecessors(e);if(r)return Xe(r,this.successors(e))}isLeaf(e){var r;return this.isDirected()?r=this.successors(e):r=this.neighbors(e),r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var s=this;u.forEach(this._nodes,function(i,c){e(c)&&r.setNode(c,i)}),u.forEach(this._edgeObjs,function(i){r.hasNode(i.v)&&r.hasNode(i.w)&&r.setEdge(i,s.edge(i))});var n={};function a(i){var c=s.parent(i);return c===void 0||r.hasNode(c)?(n[i]=c,c):c in n?n[c]:a(c)}return this._isCompound&&u.forEach(r.nodes(),function(i){r.setParent(i,a(i))}),r}setDefaultEdgeLabel(e){return o.isFunction(e)||(e=o.constant$2(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return m(this._edgeObjs)}setPath(e,r){var s=this,n=arguments;return u.reduce(e,function(a,i){return n.length>1?s.setEdge(a,i,r):s.setEdge(a,i),i}),this}setEdge(){var e,r,s,n,a=!1,i=arguments[0];typeof i=="object"&&i!==null&&"v"in i?(e=i.v,r=i.w,s=i.name,arguments.length===2&&(n=arguments[1],a=!0)):(e=i,r=arguments[1],s=arguments[3],arguments.length>2&&(n=arguments[2],a=!0)),e=""+e,r=""+r,b(s)||(s=""+s);var c=p(this._isDirected,e,r,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,c))return a&&(this._edgeLabels[c]=n),this;if(!b(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[c]=a?n:this._defaultEdgeLabelFn(e,r,s);var d=ze(this._isDirected,e,r,s);return e=d.v,r=d.w,Object.freeze(d),this._edgeObjs[c]=d,$(this._preds[r],e),$(this._sucs[e],r),this._in[r][c]=d,this._out[e][c]=d,this._edgeCount++,this}edge(e,r,s){var n=arguments.length===1?j(this._isDirected,arguments[0]):p(this._isDirected,e,r,s);return this._edgeLabels[n]}hasEdge(e,r,s){var n=arguments.length===1?j(this._isDirected,arguments[0]):p(this._isDirected,e,r,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,n)}removeEdge(e,r,s){var n=arguments.length===1?j(this._isDirected,arguments[0]):p(this._isDirected,e,r,s),a=this._edgeObjs[n];return a&&(e=a.v,r=a.w,delete this._edgeLabels[n],delete this._edgeObjs[n],P(this._preds[r],e),P(this._sucs[e],r),delete this._in[r][n],delete this._out[e][n],this._edgeCount--),this}inEdges(e,r){var s=this._in[e];if(s){var n=m(s);return r?u.filter(n,function(a){return a.v===r}):n}}outEdges(e,r){var s=this._out[e];if(s){var n=m(s);return r?u.filter(n,function(a){return a.w===r}):n}}nodeEdges(e,r){var s=this.inEdges(e,r);if(s)return s.concat(this.outEdges(e,r))}}T.prototype._nodeCount=0;T.prototype._edgeCount=0;function $(t,e){t[e]?t[e]++:t[e]=1}function P(t,e){--t[e]||delete t[e]}function p(t,e,r,s){var n=""+e,a=""+r;if(!t&&n>a){var i=n;n=a,a=i}return n+S+a+S+(b(s)?Ze:s)}function ze(t,e,r,s){var n=""+e,a=""+r;if(!t&&n>a){var i=n;n=a,a=i}var c={v:n,w:a};return s&&(c.name=s),c}function j(t,e){return p(t,e.v,e.w,e.name)}exports.Graph=T;exports.baseClone=y;exports.isUndefined=b;exports.values=m;
@@ -1,5 +1,5 @@
1
- import { aR as T, aS as C, aT as z, aU as R, aV as S, aW as k, aX as V, aY as L, aZ as K, a_ as j, a$ as ee, b0 as te, b1 as re, b2 as se, b3 as ne, b4 as ie, b5 as ae, aH as oe, b6 as ue, b7 as he, b8 as y, b9 as $, ba as v } from "./cowboy-components-C1bHeXpH.js";
2
- import { k as d, g as Y, s as de, e as ce, f as fe, h as ge, j as le, c as be, l as _e, b as pe, m, n as g, r as ye } from "./_baseUniq-CwhnPBuZ.js";
1
+ import { aR as T, aS as C, aT as z, aU as R, aV as S, aW as k, aX as V, aY as L, aZ as K, a_ as j, a$ as ee, b0 as te, b1 as re, b2 as se, b3 as ne, b4 as ie, b5 as ae, aH as oe, b6 as ue, b7 as he, b8 as y, b9 as $, ba as v } from "./cowboy-components-_6157Gms.js";
2
+ import { k as d, g as Y, s as de, e as ce, f as fe, h as ge, j as le, c as be, l as _e, b as pe, m, n as g, r as ye } from "./_baseUniq-CL3reOBl.js";
3
3
  function me(t, e) {
4
4
  return t && T(e, d(e), t);
5
5
  }
@@ -0,0 +1,5 @@
1
+ import { I as r, c as a } from "./mermaid-parser.core-DsLOyQb-.js";
2
+ export {
3
+ r as InfoModule,
4
+ a as createInfoServices
5
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-D5yJiPW9.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-By3g6lf1.cjs");exports.InfoModule=e.InfoModule;exports.createInfoServices=e.createInfoServices;
@@ -1,5 +1,5 @@
1
- import { _ as a, l as s, I as o, e as i } from "./cowboy-components-C1bHeXpH.js";
2
- import { p as g } from "./mermaid-parser.core-SWTLxzuR.js";
1
+ import { _ as a, l as s, I as o, e as i } from "./cowboy-components-_6157Gms.js";
2
+ import { p as g } from "./mermaid-parser.core-DsLOyQb-.js";
3
3
  var p = {
4
4
  parse: /* @__PURE__ */ a(async (r) => {
5
5
  const e = await g("info", r);
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cowboy-components-BDlH5KPd.cjs"),o=require("./mermaid-parser.core-D5yJiPW9.cjs");var s={parse:e.__name(async r=>{const a=await o.parse("info",r);e.log.debug(a)},"parse")},i={version:"11.14.0"},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("./cowboy-components-DlcOqYuh.cjs"),o=require("./mermaid-parser.core-By3g6lf1.cjs");var s={parse:e.__name(async r=>{const a=await o.parse("info",r);e.log.debug(a)},"parse")},i={version:"11.14.0"},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},m={parser:s,db:d,renderer:c};exports.diagram=m;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cowboy-components-BDlH5KPd.cjs");var J=(function(){var i=e.__name(function(T,t,s,n){for(s=s||{},n=T.length;n--;s[T[n]]=t);return s},"o"),h=[1,4],l=[1,14],r=[1,12],o=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],g=[1,6,13,14],_=[1,23],w=[1,24],x=[1,6,7,11,13,14],D={trace:e.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},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,2],[12,1],[12,1],[12,1]],performAction:e.__name(function(t,s,n,c,p,a,v){var k=a.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(a[k-1].length,a[k].trim());break;case 16:c.addNode(0,a[k].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:l,7:[1,10],9:9,12:11,13:r,14:o},i(y,[2,3]),{1:[2,2]},i(y,[2,4]),i(y,[2,5]),{1:[2,6],6:l,12:15,13:r,14:o},{6:l,9:16,12:11,13:r,14:o},{6:f,7:d,10:17,11:m},i(u,[2,18],{14:[1,21]}),i(u,[2,16]),i(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:l,12:15,13:r,14:o},i(g,[2,14],{7:_,11:w}),i(x,[2,8]),i(x,[2,9]),i(x,[2,10]),i(u,[2,15]),i(g,[2,13],{7:_,11:w}),i(x,[2,11]),i(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e.__name(function(t,s){if(s.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=s,n}},"parseError"),parse:e.__name(function(t){var s=this,n=[0],c=[],p=[null],a=[],v=this.table,k="",I=0,$=0,L=2,A=1,C=a.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(S.yy[P]=this.yy[P]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;a.push(R);var G=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(B){n.length=n.length-2*B,p.length=p.length-B,a.length=a.length-B}e.__name(Y,"popStack");function tt(){var B;return B=c.pop()||b.lex()||A,typeof B!="number"&&(B instanceof Array&&(c=B,B=c.pop()),B=s.symbols_[B]||B),B}e.__name(tt,"lex");for(var M,W,N,q,j={},U,V,et,Z;;){if(W=n[n.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var K="";Z=[];for(U in v[W])this.terminals_[U]&&U>L&&Z.push("'"+this.terminals_[U]+"'");b.showPosition?K="Parse error on line "+(I+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./cowboy-components-DlcOqYuh.cjs");var J=(function(){var i=e.__name(function(T,t,s,n){for(s=s||{},n=T.length;n--;s[T[n]]=t);return s},"o"),h=[1,4],l=[1,14],r=[1,12],o=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],g=[1,6,13,14],_=[1,23],w=[1,24],x=[1,6,7,11,13,14],D={trace:e.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},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,2],[12,1],[12,1],[12,1]],performAction:e.__name(function(t,s,n,c,p,a,v){var k=a.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(a[k-1].length,a[k].trim());break;case 16:c.addNode(0,a[k].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:l,7:[1,10],9:9,12:11,13:r,14:o},i(y,[2,3]),{1:[2,2]},i(y,[2,4]),i(y,[2,5]),{1:[2,6],6:l,12:15,13:r,14:o},{6:l,9:16,12:11,13:r,14:o},{6:f,7:d,10:17,11:m},i(u,[2,18],{14:[1,21]}),i(u,[2,16]),i(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:l,12:15,13:r,14:o},i(g,[2,14],{7:_,11:w}),i(x,[2,8]),i(x,[2,9]),i(x,[2,10]),i(u,[2,15]),i(g,[2,13],{7:_,11:w}),i(x,[2,11]),i(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e.__name(function(t,s){if(s.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=s,n}},"parseError"),parse:e.__name(function(t){var s=this,n=[0],c=[],p=[null],a=[],v=this.table,k="",I=0,$=0,L=2,A=1,C=a.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(S.yy[P]=this.yy[P]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;a.push(R);var G=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(B){n.length=n.length-2*B,p.length=p.length-B,a.length=a.length-B}e.__name(Y,"popStack");function tt(){var B;return B=c.pop()||b.lex()||A,typeof B!="number"&&(B instanceof Array&&(c=B,B=c.pop()),B=s.symbols_[B]||B),B}e.__name(tt,"lex");for(var M,W,N,q,j={},U,V,et,Z;;){if(W=n[n.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var K="";Z=[];for(U in v[W])this.terminals_[U]&&U>L&&Z.push("'"+this.terminals_[U]+"'");b.showPosition?K="Parse error on line "+(I+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+Z.join(", ")+", got '"+(this.terminals_[M]||M)+"'":K="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(K,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:Z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:n.push(M),p.push(b.yytext),a.push(b.yylloc),n.push(N[1]),M=null,$=b.yyleng,k=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(V=this.productions_[N[1]][1],j.$=p[p.length-V],j._$={first_line:a[a.length-(V||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(V||1)].first_column,last_column:a[a.length-1].last_column},G&&(j._$.range=[a[a.length-(V||1)].range[0],a[a.length-1].range[1]]),q=this.performAction.apply(j,[k,$,I,S.yy,N[1],p,a].concat(C)),typeof q<"u")return q;V&&(n=n.slice(0,-1*V*2),p=p.slice(0,-1*V),a=a.slice(0,-1*V)),n.push(this.productions_[N[1]][0]),p.push(j.$),a.push(j._$),et=v[n[n.length-2]][n[n.length-1]],n.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:e.__name(function(s,n){if(this.yy.parser)this.yy.parser.parseError(s,n);else throw new Error(s)},"parseError"),setInput:e.__name(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:e.__name(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.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),t},"input"),unput:e.__name(function(t){var s=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=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),n.length-1&&(this.yylineno-=n.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:n?(n.length===c.length?this.yylloc.first_column:0)+c[c.length-n.length].length-n[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:e.__name(function(){return this._more=!0,this},"more"),reject:e.__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:e.__name(function(t){this.unput(this.match.slice(t))},"less"),pastInput:e.__name(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e.__name(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e.__name(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import { _ as o, c as ot, N as ut, I as dt, as as yt, z as ft, k as pt, p as it, a as gt, b as kt, g as mt, s as wt, q as _t, e as bt } from "./cowboy-components-C1bHeXpH.js";
1
+ import { _ as o, c as ot, N as ut, I as dt, as as yt, z as ft, k as pt, p as it, a as gt, b as kt, g as mt, s as wt, q as _t, e as bt } from "./cowboy-components-_6157Gms.js";
2
2
  var J = (function() {
3
3
  var e = /* @__PURE__ */ o(function(T, t, s, i) {
4
4
  for (s = s || {}, i = T.length; i--; s[T[i]] = t) ;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("./chunk-FMBD7UC4-ClqO-tFT.cjs"),j=require("./chunk-YZCP3GAM-CUdZyEqp.cjs"),n=require("./cowboy-components-BDlH5KPd.cjs"),et=require("./arc-R701-DfQ.cjs");var X=(function(){var t=n.__name(function(h,r,a,l){for(a=a||{},l=h.length;l--;a[h[l]]=r);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],_={trace:n.__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:n.__name(function(r,a,l,y,d,c,v){var x=c.length-1;switch(d){case 1:return c[x-1];case 2:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 13:y.addTask(c[x-1],c[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:s,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:f,14:i,16:u,17:p,18:o},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:n.__name(function(r,a){if(a.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=a,l}},"parseError"),parse:n.__name(function(r){var a=this,l=[0],y=[],d=[null],c=[],v=this.table,x="",E=0,J=0,ht=2,K=1,ut=c.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(r,A.yy),A.yy.lexer=k,A.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var O=k.yylloc;c.push(O);var yt=k.options&&k.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}n.__name(dt,"popStack");function Q(){var w;return w=y.pop()||k.lex()||K,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=a.symbols_[w]||w),w}n.__name(Q,"lex");for(var b,I,T,Y,F={},N,M,tt,z;;){if(I=l[l.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((b===null||typeof b>"u")&&(b=Q()),T=v[I]&&v[I][b]),typeof T>"u"||!T.length||!T[0]){var G="";z=[];for(N in v[I])this.terminals_[N]&&N>ht&&z.push("'"+this.terminals_[N]+"'");k.showPosition?G="Parse error on line "+(E+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("./chunk-FMBD7UC4-Bt5qtKsR.cjs"),j=require("./chunk-YZCP3GAM-DJNk9cax.cjs"),n=require("./cowboy-components-DlcOqYuh.cjs"),et=require("./arc-Cah-EtVa.cjs");var X=(function(){var t=n.__name(function(h,r,a,l){for(a=a||{},l=h.length;l--;a[h[l]]=r);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],_={trace:n.__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:n.__name(function(r,a,l,y,d,c,v){var x=c.length-1;switch(d){case 1:return c[x-1];case 2:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 13:y.addTask(c[x-1],c[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:s,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:f,14:i,16:u,17:p,18:o},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:n.__name(function(r,a){if(a.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=a,l}},"parseError"),parse:n.__name(function(r){var a=this,l=[0],y=[],d=[null],c=[],v=this.table,x="",E=0,J=0,ht=2,K=1,ut=c.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(r,A.yy),A.yy.lexer=k,A.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var O=k.yylloc;c.push(O);var yt=k.options&&k.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}n.__name(dt,"popStack");function Q(){var w;return w=y.pop()||k.lex()||K,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=a.symbols_[w]||w),w}n.__name(Q,"lex");for(var b,I,T,Y,F={},N,M,tt,z;;){if(I=l[l.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((b===null||typeof b>"u")&&(b=Q()),T=v[I]&&v[I][b]),typeof T>"u"||!T.length||!T[0]){var G="";z=[];for(N in v[I])this.terminals_[N]&&N>ht&&z.push("'"+this.terminals_[N]+"'");k.showPosition?G="Parse error on line "+(E+1)+`:
2
2
  `+k.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":G="Parse error on line "+(E+1)+": Unexpected "+(b==K?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(G,{text:k.match,token:this.terminals_[b]||b,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: "+b);switch(T[0]){case 1:l.push(b),d.push(k.yytext),c.push(k.yylloc),l.push(T[1]),b=null,J=k.yyleng,x=k.yytext,E=k.yylineno,O=k.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},yt&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),Y=this.performAction.apply(F,[x,J,E,A.yy,T[1],d,c].concat(ut)),typeof Y<"u")return Y;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),tt=v[l[l.length-2]][l[l.length-1]],l.push(tt);break;case 3:return!0}}return!0},"parse")},g=(function(){var h={EOF:1,parseError:n.__name(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:n.__name(function(r,a){return this.yy=a||this.yy||{},this._input=r,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 r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:n.__name(function(r){var a=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var y=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 d=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===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-a]),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(r){this.unput(this.match.slice(r))},"less"),pastInput:n.__name(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,7 +1,7 @@
1
- import { g as gt } from "./chunk-FMBD7UC4-DZgUWYcc.js";
2
- import { a as mt, g as lt, h as xt, d as kt } from "./chunk-YZCP3GAM-BseNjeX_.js";
3
- import { _ as s, g as _t, s as vt, a as bt, b as wt, q as Tt, p as St, c as R, d as X, e as $t, z as Mt } from "./cowboy-components-C1bHeXpH.js";
4
- import { d as it } from "./arc-C1ekKGkb.js";
1
+ import { g as gt } from "./chunk-FMBD7UC4-BG1WV71B.js";
2
+ import { a as mt, g as lt, h as xt, d as kt } from "./chunk-YZCP3GAM-BfcbLjwl.js";
3
+ import { _ as s, g as _t, s as vt, a as bt, b as wt, q as Tt, p as St, c as R, d as X, e as $t, z as Mt } from "./cowboy-components-_6157Gms.js";
4
+ import { d as it } from "./arc-2E-fJnok.js";
5
5
  var U = (function() {
6
6
  var t = /* @__PURE__ */ s(function(h, r, n, l) {
7
7
  for (n = n || {}, l = h.length; l--; n[h[l]] = r) ;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./cowboy-components-BDlH5KPd.cjs"),le=require("./chunk-FMBD7UC4-ClqO-tFT.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"),h=[1,4],p=[1,13],r=[1,12],d=[1,15],b=[1,16],y=[1,20],l=[1,19],D=[6,7,8],C=[1,26],g=[1,24],w=[1,25],k=[6,7,11],F=[1,31],x=[6,7,11,24],B=[1,6,13,16,17,20,23],f=[1,35],T=[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,u,t,G){var c=t.length-1;switch(u){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:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:b,18:17,19:18,20:y,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:b,18:17,19:18,20:y,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},{6:C,7:g,10:23,11:w},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:y,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:F}),e(k,[2,22]),e(k,[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:w},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},e(B,[2,14],{7:f,11:T}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:F}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:M}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:f,11:T}),e(L,[2,11]),e(L,[2,12]),e(k,[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=[],u=[null],t=[],G=this.table,c="",U=0,ee=0,re=2,te=1,ae=t.slice.call(arguments,1),m=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]);m.setInput(s,R.yy),R.yy.lexer=m,R.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var K=m.yylloc;t.push(K);var oe=m.options&&m.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,u.length=u.length-S,t.length=t.length-S}n.__name(ce,"popStack");function ne(){var S;return S=o.pop()||m.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]+"'");m.showPosition?q="Parse error on line "+(U+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./cowboy-components-DlcOqYuh.cjs"),le=require("./chunk-FMBD7UC4-Bt5qtKsR.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"),h=[1,4],p=[1,13],r=[1,12],d=[1,15],b=[1,16],y=[1,20],l=[1,19],D=[6,7,8],C=[1,26],g=[1,24],w=[1,25],k=[6,7,11],F=[1,31],x=[6,7,11,24],B=[1,6,13,16,17,20,23],f=[1,35],T=[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,u,t,G){var c=t.length-1;switch(u){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:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:b,18:17,19:18,20:y,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:b,18:17,19:18,20:y,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},{6:C,7:g,10:23,11:w},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:y,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:F}),e(k,[2,22]),e(k,[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:w},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},e(B,[2,14],{7:f,11:T}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:F}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:M}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:f,11:T}),e(L,[2,11]),e(L,[2,12]),e(k,[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=[],u=[null],t=[],G=this.table,c="",U=0,ee=0,re=2,te=1,ae=t.slice.call(arguments,1),m=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]);m.setInput(s,R.yy),R.yy.lexer=m,R.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var K=m.yylloc;t.push(K);var oe=m.options&&m.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,u.length=u.length-S,t.length=t.length-S}n.__name(ce,"popStack");function ne(){var S;return S=o.pop()||m.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]+"'");m.showPosition?q="Parse error on line "+(U+1)+`:
2
2
  `+m.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:m.match,token:this.terminals_[E]||E,line:m.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),u.push(m.yytext),t.push(m.yylloc),a.push(N[1]),E=null,ee=m.yyleng,c=m.yytext,U=m.yylineno,K=m.yylloc;break;case 2:if(I=this.productions_[N[1]][1],j.$=u[u.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],u,t].concat(ae)),typeof Y<"u")return Y;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),t=t.slice(0,-1*I)),a.push(this.productions_[N[1]][0]),u.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 u=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=[u[0],u[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, c as H, I as fe, af as ye, ag as be, ah as me, Y as _e, G as Y, i as j, t as ke, J as Ee, V as Se, W as ce, X as le } from "./cowboy-components-C1bHeXpH.js";
2
- import { g as Ne } from "./chunk-FMBD7UC4-DZgUWYcc.js";
1
+ import { _ as o, l as te, c as H, I as fe, af as ye, ag as be, ah as me, Y as _e, G as Y, i as j, t as ke, J as Ee, V as Se, W as ce, X as le } from "./cowboy-components-_6157Gms.js";
2
+ import { g as Ne } from "./chunk-FMBD7UC4-BG1WV71B.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-D7t_ZgqQ.cjs"),d=require("./_baseUniq-D4w9OEfi.cjs"),v=require("./min-CCJ14kSC.cjs"),m=require("./cowboy-components-BDlH5KPd.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 Ve(e,n){return e&&d.baseForOwn(e,d.castFunction(n))}function Ye(e,n){return e>n}var $e=Object.prototype,qe=$e.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,Ye):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 V(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$2(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,V("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=V(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 Y(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.calcCutValue=se;y.leaveEdge=le;y.enterEdge=ve;y.exchangeEdges=pe;function y(e){e=pn(e),Y(e);var n=ue(e);q(n),$(n,e);for(var r,t;r=le(n);)t=ve(n,e,r),pe(n,e,r,t)}function $(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),$(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=Y;function Bn(e){Y(e),ue(e)}function Q(e){y(e)}function Vn(e){var n=k(e,"root",{},"_root"),r=Yn(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=$n(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 Yn(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 $n(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=V("_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),Ve(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",()=>Vn(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",()=>$r(e)),n(" undoCoordinateSystem",()=>xn(e)),n(" translateGraph",()=>Vr(e)),n(" assignNodeIntersects",()=>Yr(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 Vr(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 Yr(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 $r(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-CitLzybf.cjs"),d=require("./_baseUniq-CacIA2LC.cjs"),v=require("./min-sstTPxgN.cjs"),m=require("./cowboy-components-DlcOqYuh.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 Ve(e,n){return e&&d.baseForOwn(e,d.castFunction(n))}function Ye(e,n){return e>n}var $e=Object.prototype,qe=$e.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,Ye):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 V(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$2(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,V("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=V(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 Y(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.calcCutValue=se;y.leaveEdge=le;y.enterEdge=ve;y.exchangeEdges=pe;function y(e){e=pn(e),Y(e);var n=ue(e);q(n),$(n,e);for(var r,t;r=le(n);)t=ve(n,e,r),pe(n,e,r,t)}function $(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),$(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=Y;function Bn(e){Y(e),ue(e)}function Q(e){y(e)}function Vn(e){var n=k(e,"root",{},"_root"),r=Yn(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=$n(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 Yn(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 $n(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=V("_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),Ve(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",()=>Vn(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",()=>$r(e)),n(" undoCoordinateSystem",()=>xn(e)),n(" translateGraph",()=>Vr(e)),n(" assignNodeIntersects",()=>Yr(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 Vr(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 Yr(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 $r(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-CFIa3BqY.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-CwhnPBuZ.js";
3
- import { f as O, b as me, a as He, c as Ue, m as w, d as P } from "./min-BVt52F4Z.js";
4
- import { a$ as M, bl as Ze, bm as Je, b6 as ge, bn as S, aS as ye, bo as Ke, aG as Qe, bp as en, bq as nn, aI as xe, br as rn, b5 as Ee, aH as ke, aZ as tn, b8 as an, bs as X } from "./cowboy-components-C1bHeXpH.js";
1
+ import { b as Ve, G as g, i as m, v as E } from "./graph-n3mQ-eMa.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-CL3reOBl.js";
3
+ import { f as O, b as me, a as He, c as Ue, m as w, d as P } from "./min-CqEuxX5S.js";
4
+ import { a$ as M, bl as Ze, bm as Je, b6 as ge, bn as S, aS as ye, bo as Ke, aG as Qe, bp as en, bq as nn, aI as xe, br as rn, b5 as Ee, aH as ke, aZ as tn, b8 as an, bs as X } from "./cowboy-components-_6157Gms.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,4 @@
1
- import { aM as j, aN as p, aO as w, aP as q, aQ as k } from "./cowboy-components-C1bHeXpH.js";
1
+ import { aM as j, aN as p, aO as w, aP as q, aQ as k } from "./cowboy-components-_6157Gms.js";
2
2
  import { i as D } from "./init-DjUOC4st.js";
3
3
  import { e as M, f as F, a as P, b as z } from "./defaultLocale-BgPVtth8.js";
4
4
  function g(n, r) {
@@ -1 +1 @@
1
- "use strict";const m=require("./cowboy-components-BDlH5KPd.cjs"),x=require("./init-CHZsXQcr.cjs"),g=require("./defaultLocale-C4wbwF1n.cjs");function p(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function D(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function d(n){let r,t,e;n.length!==2?(r=p,t=(a,f)=>p(n(a),f),e=(a,f)=>n(a)-f):(r=n===p||n===D?n:F,t=n,e=n);function u(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<0?i=l+1:s=l}while(i<s)}return i}function c(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<=0?i=l+1:s=l}while(i<s)}return i}function o(a,f,i=0,s=a.length){const l=u(a,f,i,s-1);return l>i&&e(a[l-1],f)>-e(a[l],f)?l-1:l}return{left:u,center:o,right:c}}function F(){return 0}function $(n){return n===null?NaN:+n}const z=d(p),B=z.right;d($).center;const I=Math.sqrt(50),P=Math.sqrt(10),V=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),c=e/Math.pow(10,u),o=c>=I?10:c>=P?5:c>=V?2:1;let a,f,i;return u<0?(i=Math.pow(10,-u)/o,a=Math.round(n*i),f=Math.round(r*i),a/i<n&&++a,f/i>r&&--f,i=-i):(i=Math.pow(10,u)*o,a=Math.round(n/i),f=Math.round(r/i),a*i<n&&++a,f*i>r&&--f),f<a&&.5<=t&&t<2?v(n,r,t*2):[a,f,i]}function C(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,c,o]=e?v(r,n,t):v(n,r,t);if(!(c>=u))return[];const a=c-u+1,f=new Array(a);if(e)if(o<0)for(let i=0;i<a;++i)f[i]=(c-i)/-o;else for(let i=0;i<a;++i)f[i]=(c-i)*o;else if(o<0)for(let i=0;i<a;++i)f[i]=(u+i)/-o;else for(let i=0;i<a;++i)f[i]=(u+i)*o;return f}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function A(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function L(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(c){for(u=0;u<t;++u)e[u]=n[u]*(1-c)+r[u]*c;return e}}function O(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function T(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),c=new Array(t),o;for(o=0;o<e;++o)u[o]=w(n[o],r[o]);for(;o<t;++o)c[o]=r[o];return function(a){for(o=0;o<e;++o)c[o]=u[o](a);return c}}function E(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function G(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=w(n[u],r[u]):e[u]=r[u];return function(c){for(u in t)e[u]=t[u](c);return e}}function w(n,r){var t=typeof r,e;return r==null||t==="boolean"?m.constant$1(r):(t==="number"?m.interpolateNumber:t==="string"?(e=m.color(r))?(r=e,m.interpolateRgb):m.interpolateString:r instanceof m.color?m.interpolateRgb:r instanceof Date?E:O(r)?L:Array.isArray(r)?T:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?G:m.interpolateNumber)(n,r)}function H(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function J(n){return Math.max(0,-g.exponent(Math.abs(n)))}function K(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g.exponent(r)/3)))*3-g.exponent(Math.abs(n)))}function Q(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g.exponent(r)-g.exponent(n))+1}function U(n){return function(){return n}}function W(n){return+n}var k=[0,1];function M(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:U(isNaN(r)?NaN:.5)}function X(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Y(n,r,t){var e=n[0],u=n[1],c=r[0],o=r[1];return u<e?(e=N(u,e),c=t(o,c)):(e=N(e,u),c=t(c,o)),function(a){return c(e(a))}}function Z(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),c=new Array(e),o=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++o<e;)u[o]=N(n[o],n[o+1]),c[o]=t(r[o],r[o+1]);return function(a){var f=B(n,a,1,e)-1;return c[f](u[f](a))}}function R(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function _(){var n=k,r=k,t=w,e,u,c,o=M,a,f,i;function s(){var h=Math.min(n.length,r.length);return o!==M&&(o=X(n[0],n[h-1])),a=h>2?Z:Y,f=i=null,l}function l(h){return h==null||isNaN(h=+h)?c:(f||(f=a(n.map(e),r,t)))(e(o(h)))}return l.invert=function(h){return o(u((i||(i=a(r,n.map(e),m.interpolateNumber)))(h)))},l.domain=function(h){return arguments.length?(n=Array.from(h,W),s()):n.slice()},l.range=function(h){return arguments.length?(r=Array.from(h),s()):r.slice()},l.rangeRound=function(h){return r=Array.from(h),t=H,s()},l.clamp=function(h){return arguments.length?(o=h?!0:M,s()):o!==M},l.interpolate=function(h){return arguments.length?(t=h,s()):t},l.unknown=function(h){return arguments.length?(c=h,l):c},function(h,j){return e=h,u=j,s()}}function q(){return _()(M,M)}function b(n,r,t,e){var u=A(n,r,t),c;switch(e=g.formatSpecifier(e??",f"),e.type){case"s":{var o=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(c=K(u,o))&&(e.precision=c),g.formatPrefix(e,o)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(c=Q(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=c-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(c=J(u))&&(e.precision=c-(e.type==="%")*2);break}}return g.format(e)}function nn(n){var r=n.domain;return n.ticks=function(t){var e=r();return C(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return b(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,c=e.length-1,o=e[u],a=e[c],f,i,s=10;for(a<o&&(i=o,o=a,a=i,i=u,u=c,c=i);s-- >0;){if(i=y(o,a,t),i===f)return e[u]=o,e[c]=a,r(e);if(i>0)o=Math.floor(o/i)*i,a=Math.ceil(a/i)*i;else if(i<0)o=Math.ceil(o*i)/i,a=Math.floor(a*i)/i;else break;f=i}return n},n}function S(){var n=q();return n.copy=function(){return R(n,S())},x.initRange.apply(n,arguments),nn(n)}exports.bisector=d;exports.continuous=q;exports.copy=R;exports.linear=S;exports.tickStep=A;
1
+ "use strict";const m=require("./cowboy-components-DlcOqYuh.cjs"),x=require("./init-CHZsXQcr.cjs"),g=require("./defaultLocale-C4wbwF1n.cjs");function p(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function D(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function d(n){let r,t,e;n.length!==2?(r=p,t=(a,f)=>p(n(a),f),e=(a,f)=>n(a)-f):(r=n===p||n===D?n:F,t=n,e=n);function u(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<0?i=l+1:s=l}while(i<s)}return i}function c(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<=0?i=l+1:s=l}while(i<s)}return i}function o(a,f,i=0,s=a.length){const l=u(a,f,i,s-1);return l>i&&e(a[l-1],f)>-e(a[l],f)?l-1:l}return{left:u,center:o,right:c}}function F(){return 0}function $(n){return n===null?NaN:+n}const z=d(p),B=z.right;d($).center;const I=Math.sqrt(50),P=Math.sqrt(10),V=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),c=e/Math.pow(10,u),o=c>=I?10:c>=P?5:c>=V?2:1;let a,f,i;return u<0?(i=Math.pow(10,-u)/o,a=Math.round(n*i),f=Math.round(r*i),a/i<n&&++a,f/i>r&&--f,i=-i):(i=Math.pow(10,u)*o,a=Math.round(n/i),f=Math.round(r/i),a*i<n&&++a,f*i>r&&--f),f<a&&.5<=t&&t<2?v(n,r,t*2):[a,f,i]}function C(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,c,o]=e?v(r,n,t):v(n,r,t);if(!(c>=u))return[];const a=c-u+1,f=new Array(a);if(e)if(o<0)for(let i=0;i<a;++i)f[i]=(c-i)/-o;else for(let i=0;i<a;++i)f[i]=(c-i)*o;else if(o<0)for(let i=0;i<a;++i)f[i]=(u+i)/-o;else for(let i=0;i<a;++i)f[i]=(u+i)*o;return f}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function A(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function L(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(c){for(u=0;u<t;++u)e[u]=n[u]*(1-c)+r[u]*c;return e}}function O(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function T(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),c=new Array(t),o;for(o=0;o<e;++o)u[o]=w(n[o],r[o]);for(;o<t;++o)c[o]=r[o];return function(a){for(o=0;o<e;++o)c[o]=u[o](a);return c}}function E(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function G(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=w(n[u],r[u]):e[u]=r[u];return function(c){for(u in t)e[u]=t[u](c);return e}}function w(n,r){var t=typeof r,e;return r==null||t==="boolean"?m.constant$1(r):(t==="number"?m.interpolateNumber:t==="string"?(e=m.color(r))?(r=e,m.interpolateRgb):m.interpolateString:r instanceof m.color?m.interpolateRgb:r instanceof Date?E:O(r)?L:Array.isArray(r)?T:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?G:m.interpolateNumber)(n,r)}function H(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function J(n){return Math.max(0,-g.exponent(Math.abs(n)))}function K(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g.exponent(r)/3)))*3-g.exponent(Math.abs(n)))}function Q(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g.exponent(r)-g.exponent(n))+1}function U(n){return function(){return n}}function W(n){return+n}var k=[0,1];function M(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:U(isNaN(r)?NaN:.5)}function X(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Y(n,r,t){var e=n[0],u=n[1],c=r[0],o=r[1];return u<e?(e=N(u,e),c=t(o,c)):(e=N(e,u),c=t(c,o)),function(a){return c(e(a))}}function Z(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),c=new Array(e),o=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++o<e;)u[o]=N(n[o],n[o+1]),c[o]=t(r[o],r[o+1]);return function(a){var f=B(n,a,1,e)-1;return c[f](u[f](a))}}function R(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function _(){var n=k,r=k,t=w,e,u,c,o=M,a,f,i;function s(){var h=Math.min(n.length,r.length);return o!==M&&(o=X(n[0],n[h-1])),a=h>2?Z:Y,f=i=null,l}function l(h){return h==null||isNaN(h=+h)?c:(f||(f=a(n.map(e),r,t)))(e(o(h)))}return l.invert=function(h){return o(u((i||(i=a(r,n.map(e),m.interpolateNumber)))(h)))},l.domain=function(h){return arguments.length?(n=Array.from(h,W),s()):n.slice()},l.range=function(h){return arguments.length?(r=Array.from(h),s()):r.slice()},l.rangeRound=function(h){return r=Array.from(h),t=H,s()},l.clamp=function(h){return arguments.length?(o=h?!0:M,s()):o!==M},l.interpolate=function(h){return arguments.length?(t=h,s()):t},l.unknown=function(h){return arguments.length?(c=h,l):c},function(h,j){return e=h,u=j,s()}}function q(){return _()(M,M)}function b(n,r,t,e){var u=A(n,r,t),c;switch(e=g.formatSpecifier(e??",f"),e.type){case"s":{var o=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(c=K(u,o))&&(e.precision=c),g.formatPrefix(e,o)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(c=Q(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=c-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(c=J(u))&&(e.precision=c-(e.type==="%")*2);break}}return g.format(e)}function nn(n){var r=n.domain;return n.ticks=function(t){var e=r();return C(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return b(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,c=e.length-1,o=e[u],a=e[c],f,i,s=10;for(a<o&&(i=o,o=a,a=i,i=u,u=c,c=i);s-- >0;){if(i=y(o,a,t),i===f)return e[u]=o,e[c]=a,r(e);if(i>0)o=Math.floor(o/i)*i,a=Math.ceil(a/i)*i;else if(i<0)o=Math.ceil(o*i)/i,a=Math.floor(a*i)/i;else break;f=i}return n},n}function S(){var n=q();return n.copy=function(){return R(n,S())},x.initRange.apply(n,arguments),nn(n)}exports.bisector=d;exports.continuous=q;exports.copy=R;exports.linear=S;exports.tickStep=A;