@ensocode/server 0.3.6 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/phone/assets/{abnfDiagram-VCTEODGH-CcwMwkZ2.js → abnfDiagram-VCTEODGH-BYULU5bQ.js} +1 -1
- package/out/phone/assets/architecture-7GRP2DOG-2pbpN4eZ.js +1 -0
- package/out/phone/assets/{architectureDiagram-5GKGNRK7-C4vXoVVW.js → architectureDiagram-5GKGNRK7-B9-XfmwY.js} +1 -1
- package/out/phone/assets/{blockDiagram-I7D4REHJ-btZonF7x.js → blockDiagram-I7D4REHJ-BDjx5h4I.js} +1 -1
- package/out/phone/assets/{c4Diagram-7LVT6UL2-wbgQC5h_.js → c4Diagram-7LVT6UL2-BLCrWT5z.js} +1 -1
- package/out/phone/assets/channel-D6Jp0e5s.js +1 -0
- package/out/phone/assets/{chunk-4HAMMTFA-ClL6ufY7.js → chunk-4HAMMTFA-CBLX5PPK.js} +1 -1
- package/out/phone/assets/{chunk-75Z2AOVW-CsGKueom.js → chunk-75Z2AOVW-BjNsM64u.js} +1 -1
- package/out/phone/assets/{chunk-DU6HZSFF-BOrl8wD9.js → chunk-DU6HZSFF-D32XGmy5.js} +1 -1
- package/out/phone/assets/{chunk-F27PBJKO-CQYtYMPT.js → chunk-F27PBJKO-DYrJ0RKS.js} +1 -1
- package/out/phone/assets/{chunk-GMAD6QVW-D2uUUIys.js → chunk-GMAD6QVW-C8yUEx5a.js} +1 -1
- package/out/phone/assets/{chunk-GVQU2GXP-k4NEAgCW.js → chunk-GVQU2GXP-nOF6gFr6.js} +1 -1
- package/out/phone/assets/{chunk-IMKFNOWR-DGBKnQoB.js → chunk-IMKFNOWR-Bw90xROV.js} +1 -1
- package/out/phone/assets/{chunk-L3NEJ4N5-BrOC_Q4h.js → chunk-L3NEJ4N5-hIXFqCYn.js} +1 -1
- package/out/phone/assets/{chunk-OSK3NFVY-Cpg-5-0Y.js → chunk-OSK3NFVY-CDR6cbF7.js} +1 -1
- package/out/phone/assets/{chunk-P2QGCYS3-Cwbos3wS.js → chunk-P2QGCYS3-B5LBNgEn.js} +1 -1
- package/out/phone/assets/{chunk-POPQ4Y6H-CtPqYixr.js → chunk-POPQ4Y6H-Ctie8lW0.js} +1 -1
- package/out/phone/assets/{chunk-PWAF6VOD-HDvh5SEv.js → chunk-PWAF6VOD-VUQ3ZQa0.js} +1 -1
- package/out/phone/assets/{chunk-SHT3W25Y-DKgmKLLr.js → chunk-SHT3W25Y-ThT795xc.js} +1 -1
- package/out/phone/assets/{chunk-SVP7TREG-DLVIWYD0.js → chunk-SVP7TREG-DaLedBcS.js} +1 -1
- package/out/phone/assets/{chunk-TICWLB2K-DzvrdWmw.js → chunk-TICWLB2K-EZdof5x9.js} +1 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-DDYMR8uV.js +1 -0
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-DDYMR8uV.js +1 -0
- package/out/phone/assets/{cynefin-OW5HDTMX-Cx32WN9e.js → cynefin-OW5HDTMX-s8d8cA90.js} +1 -1
- package/out/phone/assets/{cynefinDiagram-5FMLGOSQ-k3jOnfBl.js → cynefinDiagram-5FMLGOSQ-BvUrZrEv.js} +1 -1
- package/out/phone/assets/{dagre-GXQ25YYZ-CTEzzJig.js → dagre-GXQ25YYZ-Y4KQyhxZ.js} +1 -1
- package/out/phone/assets/desk-BpEz3CoY.js +2 -0
- package/out/phone/assets/{diagram-S7CK7UJ4-BpfiB5rc.js → diagram-S7CK7UJ4-BOnQE44W.js} +1 -1
- package/out/phone/assets/{diagram-UQ7AKVKN-BpJj6V2i.js → diagram-UQ7AKVKN-DinAxyUq.js} +1 -1
- package/out/phone/assets/{diagram-VSXAHHWV-BXTUks5P.js → diagram-VSXAHHWV-1SZEAZcR.js} +1 -1
- package/out/phone/assets/{diagram-VX7I27RA-BGaGiVKW.js → diagram-VX7I27RA-CeqFT5PL.js} +1 -1
- package/out/phone/assets/{diagram-Z3DM3KII-DhtDyIq2.js → diagram-Z3DM3KII-CKUQZLUU.js} +1 -1
- package/out/phone/assets/{ebnfDiagram-PWID7BFC-TUM8eXrc.js → ebnfDiagram-PWID7BFC-D-vPzzm8.js} +1 -1
- package/out/phone/assets/{erDiagram-RLTQ6QDP-DqLrmkHj.js → erDiagram-RLTQ6QDP--yabuiWQ.js} +1 -1
- package/out/phone/assets/eventmodeling-NTZA5JFV-BVUcXI_2.js +1 -0
- package/out/phone/assets/flowDiagram-HODETNUW-lyDnpL9j.js +1 -0
- package/out/phone/assets/{ganttDiagram-EL5Y4UJY-Bfx_3wSL.js → ganttDiagram-EL5Y4UJY-DuceHpP7.js} +1 -1
- package/out/phone/assets/{gitGraph-4MIJSDKK-BByrtu13.js → gitGraph-4MIJSDKK-Dy69JGci.js} +1 -1
- package/out/phone/assets/{gitGraphDiagram-WWUBYQGX-DX-_HrkV.js → gitGraphDiagram-WWUBYQGX-DAsGy8VO.js} +1 -1
- package/out/phone/assets/{info-A6RAGUB7-B9AtEuqS.js → info-A6RAGUB7-Bi2rn7zz.js} +1 -1
- package/out/phone/assets/{infoDiagram-27XIBGKW-BlTJ4y54.js → infoDiagram-27XIBGKW-DLYnX9vk.js} +1 -1
- package/out/phone/assets/{ishikawaDiagram-5VMMS53U-W8zt5UiH.js → ishikawaDiagram-5VMMS53U-frgoq43k.js} +1 -1
- package/out/phone/assets/{journeyDiagram-3NMN7TZE-ClJSjx26.js → journeyDiagram-3NMN7TZE-LfNbEnHq.js} +1 -1
- package/out/phone/assets/{kanban-definition-UXKFOSKX-BPyXsdoL.js → kanban-definition-UXKFOSKX-BYOUPJHU.js} +1 -1
- package/out/phone/assets/{line-DMsvqHhd.js → line-_FhXTvX4.js} +1 -1
- package/out/phone/assets/main-CfWT8VXG.js +1656 -0
- package/out/phone/assets/main-TDCArlgf.css +1 -0
- package/out/phone/assets/{mermaid-parser.core-BteiwAAk.js → mermaid-parser.core-ByliMPZm.js} +3 -3
- package/out/phone/assets/{mermaid.core-BLIwkLpP.js → mermaid.core-Mmd8_4Nr.js} +4 -4
- package/out/phone/assets/{mindmap-definition-YA3MSWOX-CtvOuG70.js → mindmap-definition-YA3MSWOX-C96rrhDe.js} +1 -1
- package/out/phone/assets/{packet-AYTQ26CC-D9BlJkYf.js → packet-AYTQ26CC-CMANaRii.js} +1 -1
- package/out/phone/assets/{pegDiagram-XKGWAZYB-BCIWH2f6.js → pegDiagram-XKGWAZYB-CGL6jEdQ.js} +1 -1
- package/out/phone/assets/{pie-WAS4IAKB-no-EBGVU.js → pie-WAS4IAKB-Dqr8Yw0J.js} +1 -1
- package/out/phone/assets/{pieDiagram-E7YTZNPT-CSjCYWAz.js → pieDiagram-E7YTZNPT-CFhX0DbB.js} +1 -1
- package/out/phone/assets/{quadrantDiagram-AXDQQJYC-Bh1Jh1q-.js → quadrantDiagram-AXDQQJYC-CIy7q7Mf.js} +1 -1
- package/out/phone/assets/{radar-RG4KPBEZ-BVweBCte.js → radar-RG4KPBEZ-Lx6rDXGt.js} +1 -1
- package/out/phone/assets/{railroad-74A4TZTK-kUK_6AdA.js → railroad-74A4TZTK-CFfqCtSc.js} +1 -1
- package/out/phone/assets/railroad-abnf-HS5TGJTU-Cc2ok2-H.js +1 -0
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-B-egGDno.js +1 -0
- package/out/phone/assets/railroad-peg-WCYAUIDC-DGbcDKYr.js +1 -0
- package/out/phone/assets/{railroadDiagram-O6MQD6OU-DDKZuEH9.js → railroadDiagram-O6MQD6OU-NmlxNdEs.js} +1 -1
- package/out/phone/assets/{requirementDiagram-BXWQKSXE-BAdrpp8Z.js → requirementDiagram-BXWQKSXE-C1PDc05u.js} +1 -1
- package/out/phone/assets/{sankeyDiagram-P5KCCOFB-Dm0dmnQJ.js → sankeyDiagram-P5KCCOFB-CfwTCG6L.js} +1 -1
- package/out/phone/assets/{sequenceDiagram-WJ2MYXX4-DtN1lgR9.js → sequenceDiagram-WJ2MYXX4-A-L3mYui.js} +1 -1
- package/out/phone/assets/{stateDiagram-D77RDMKH-m5U6QGoM.js → stateDiagram-D77RDMKH-nRUGxe4_.js} +1 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-Bk1aRZ0l.js +1 -0
- package/out/phone/assets/storage-DU47Rb1q.js +36 -0
- package/out/phone/assets/{swimlanes-42K2YHIH-jWtOgaZK.js → swimlanes-42K2YHIH-7K-yTToK.js} +1 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-C1bEcwWi.js +8 -0
- package/out/phone/assets/{timeline-definition-24CTP7MA-CncsPQSQ.js → timeline-definition-24CTP7MA-DXbVHlED.js} +1 -1
- package/out/phone/assets/{treeView-Q6P3EWNA-BNIDY5fM.js → treeView-Q6P3EWNA-M_osDfi3.js} +1 -1
- package/out/phone/assets/{treemap-WGGIJYW6-FkDWRKqS.js → treemap-WGGIJYW6-BMi5B7KJ.js} +1 -1
- package/out/phone/assets/{vennDiagram-4TSXK5OY-CeyTscuj.js → vennDiagram-4TSXK5OY-D3EpIx9s.js} +1 -1
- package/out/phone/assets/{wardley-WFR3VGLG-CEuN_S8l.js → wardley-WFR3VGLG-nB8yKilO.js} +1 -1
- package/out/phone/assets/{wardleyDiagram-VM6X3IG4-DE3tgI7J.js → wardleyDiagram-VM6X3IG4-DSghcmRr.js} +1 -1
- package/out/phone/assets/{xychartDiagram-S5SC5T6Z-Di64LYy0.js → xychartDiagram-S5SC5T6Z-BEl0ProS.js} +1 -1
- package/out/phone/desk.html +2 -2
- package/out/phone/index.html +3 -3
- package/out/renderer/assets/{abnfDiagram-VCTEODGH-B7uu_Gw1.js → abnfDiagram-VCTEODGH-BB3W0IRN.js} +1 -1
- package/out/renderer/assets/{arc-CkW2-Pr7.js → arc-r0xtJ5ab.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-5GKGNRK7-2E0AYPn5.js → architectureDiagram-5GKGNRK7-BC8Ww6fQ.js} +1 -1
- package/out/renderer/assets/{blockDiagram-I7D4REHJ-BsSmBeco.js → blockDiagram-I7D4REHJ-wup9ZluJ.js} +1 -1
- package/out/renderer/assets/{c4Diagram-7LVT6UL2-gzVW5Xek.js → c4Diagram-7LVT6UL2-BwWATTxt.js} +1 -1
- package/out/renderer/assets/channel-CPp6hdRq.js +1 -0
- package/out/renderer/assets/{chunk-2Q5K7J3B-K_IlhZEX.js → chunk-2Q5K7J3B-Dw4JQaKM.js} +1 -1
- package/out/renderer/assets/{chunk-5VM5RSS4-r65AjBn5.js → chunk-5VM5RSS4-p6eptEa6.js} +1 -1
- package/out/renderer/assets/{chunk-F27PBJKO-CZszqKBI.js → chunk-F27PBJKO-crFPFXKS.js} +1 -1
- package/out/renderer/assets/{chunk-IMKFNOWR-7mYCkNCZ.js → chunk-IMKFNOWR-Bnu9wgyD.js} +1 -1
- package/out/renderer/assets/{chunk-JWPE2WC7-B-cBpNJA.js → chunk-JWPE2WC7-B8Xhiasd.js} +1 -1
- package/out/renderer/assets/{chunk-POPQ4Y6H-CjWY4_mJ.js → chunk-POPQ4Y6H-Cgaq3GTd.js} +1 -1
- package/out/renderer/assets/{chunk-SVP7TREG-g5p-RdlH.js → chunk-SVP7TREG-Dxz3ENUO.js} +1 -1
- package/out/renderer/assets/{chunk-TICWLB2K-BMr5sD7G.js → chunk-TICWLB2K-DKsdmE8K.js} +1 -1
- package/out/renderer/assets/{chunk-XXDRQBXY-CNfQgYe3.js → chunk-XXDRQBXY-D4zS63eZ.js} +1 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-Be_lIO5F.js +1 -0
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-Be_lIO5F.js +1 -0
- package/out/renderer/assets/{cose-bilkent-JH36ORCC-ByPl0yeB.js → cose-bilkent-JH36ORCC-Cd7k91g4.js} +1 -1
- package/out/renderer/assets/{cynefin-OW5HDTMX-CMTgEepT.js → cynefin-OW5HDTMX-qIf7N9zE.js} +1 -1
- package/out/renderer/assets/{cynefinDiagram-5FMLGOSQ-DYx_JMNT.js → cynefinDiagram-5FMLGOSQ-DZq47G9W.js} +1 -1
- package/out/renderer/assets/{cytoscape-fcose-BcbfusAa.js → cytoscape-fcose-BUV0U04U.js} +1 -1
- package/out/renderer/assets/{dagre-GXQ25YYZ-p-Meu2Lo.js → dagre-GXQ25YYZ-jHWFk6Gs.js} +1 -1
- package/out/renderer/assets/{diagram-S7CK7UJ4-1m9BA3xi.js → diagram-S7CK7UJ4-BM99y_vq.js} +1 -1
- package/out/renderer/assets/{diagram-UQ7AKVKN-Cg3zgAxc.js → diagram-UQ7AKVKN-DWw2eBQS.js} +1 -1
- package/out/renderer/assets/{diagram-VSXAHHWV-B58Hl37z.js → diagram-VSXAHHWV-BpQqnXFN.js} +1 -1
- package/out/renderer/assets/{diagram-VX7I27RA-C7dhzeqr.js → diagram-VX7I27RA-DIwy3ILe.js} +1 -1
- package/out/renderer/assets/{diagram-Z3DM3KII-C-Bn7OHR.js → diagram-Z3DM3KII-CyggPXCP.js} +1 -1
- package/out/renderer/assets/{ebnfDiagram-PWID7BFC-BcrVBxSI.js → ebnfDiagram-PWID7BFC-BW1zQBfH.js} +1 -1
- package/out/renderer/assets/{erDiagram-RLTQ6QDP-CZHJHTxr.js → erDiagram-RLTQ6QDP-DeBd9wgY.js} +1 -1
- package/out/renderer/assets/{flowDiagram-HODETNUW-oCdJ784z.js → flowDiagram-HODETNUW-DuHDP4W5.js} +1 -1
- package/out/renderer/assets/{ganttDiagram-EL5Y4UJY-C9TlTohh.js → ganttDiagram-EL5Y4UJY-BWzm5BP7.js} +1 -1
- package/out/renderer/assets/{gitGraphDiagram-WWUBYQGX-RVFZsGPP.js → gitGraphDiagram-WWUBYQGX-BVW6A1c7.js} +1 -1
- package/out/renderer/assets/globals-BMp8RrrF.css +1 -0
- package/out/renderer/assets/globals-BTwoz2I6.js +2603 -0
- package/out/renderer/assets/index-DzCbQXPw.js +131 -0
- package/out/renderer/assets/{index-B49rZgqC.css → index-F_0FxVZ_.css} +1 -1
- package/out/renderer/assets/{infoDiagram-27XIBGKW-CxE810pn.js → infoDiagram-27XIBGKW-BnQ0QqrX.js} +1 -1
- package/out/renderer/assets/{ishikawaDiagram-5VMMS53U-Osr2JJcF.js → ishikawaDiagram-5VMMS53U-C8Kybb7-.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-3NMN7TZE-Bigxb8hB.js → journeyDiagram-3NMN7TZE-BFN7ls5V.js} +1 -1
- package/out/renderer/assets/{kanban-definition-UXKFOSKX-DVP3FCG8.js → kanban-definition-UXKFOSKX-DDNfT2Ap.js} +1 -1
- package/out/renderer/assets/{layout-Dn80hFs0.js → layout-DG726kRG.js} +1 -1
- package/out/renderer/assets/{linear-B4dfTk2J.js → linear-CyRBABsR.js} +1 -1
- package/out/renderer/assets/{mermaid.core-uI5XQTV1.js → mermaid.core-DPQo0NhF.js} +5 -5
- package/out/renderer/assets/{mindmap-definition-YA3MSWOX-BD7FdpQU.js → mindmap-definition-YA3MSWOX-BKjiHq0N.js} +1 -1
- package/out/renderer/assets/{pegDiagram-XKGWAZYB-DU5iHhXs.js → pegDiagram-XKGWAZYB-cGBsq_Dp.js} +1 -1
- package/out/renderer/assets/{pieDiagram-E7YTZNPT-DpEVmuWZ.js → pieDiagram-E7YTZNPT-CB8FqRel.js} +1 -1
- package/out/renderer/assets/{quadrantDiagram-AXDQQJYC-CcEfCONf.js → quadrantDiagram-AXDQQJYC-CZsQnmHv.js} +1 -1
- package/out/renderer/assets/{railroadDiagram-O6MQD6OU-BWnKKcat.js → railroadDiagram-O6MQD6OU-CtHtwIss.js} +1 -1
- package/out/renderer/assets/{requirementDiagram-BXWQKSXE-B7sPFe0g.js → requirementDiagram-BXWQKSXE-C8IKRBmx.js} +1 -1
- package/out/renderer/assets/{sankeyDiagram-P5KCCOFB-ClwzZmCX.js → sankeyDiagram-P5KCCOFB-DxIvac4Q.js} +1 -1
- package/out/renderer/assets/{sequenceDiagram-WJ2MYXX4-Dn8StCfr.js → sequenceDiagram-WJ2MYXX4-CW0GnaxQ.js} +1 -1
- package/out/renderer/assets/settings-C-kHWSQ1.js +27 -0
- package/out/renderer/assets/{sizeCapture-INFHLROL-Csrj-WKZ.js → sizeCapture-INFHLROL-CUNNzORL.js} +1 -1
- package/out/renderer/assets/{stateDiagram-D77RDMKH-CuJq0aAV.js → stateDiagram-D77RDMKH-b6LNqPfN.js} +1 -1
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-CwGKVtdP.js +1 -0
- package/out/renderer/assets/{swimlanes-42K2YHIH-CjyTBmUr.js → swimlanes-42K2YHIH-C2Pjkv6k.js} +1 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-BqwKnfw9.js +8 -0
- package/out/renderer/assets/{timeline-definition-24CTP7MA-BSTk1WRZ.js → timeline-definition-24CTP7MA-DVo6WWfn.js} +1 -1
- package/out/renderer/assets/{vennDiagram-4TSXK5OY-oO2Udqo9.js → vennDiagram-4TSXK5OY-I_UOGgKE.js} +1 -1
- package/out/renderer/assets/{wardleyDiagram-VM6X3IG4-C27UPHbe.js → wardleyDiagram-VM6X3IG4-pgaJTE-_.js} +1 -1
- package/out/renderer/assets/{xychartDiagram-S5SC5T6Z-_SQkHfU0.js → xychartDiagram-S5SC5T6Z-C0CTpbX7.js} +1 -1
- package/out/renderer/index.html +4 -4
- package/out/renderer/settings.html +4 -4
- package/out/renderer/web-preload.js +51 -1
- package/out/server/agent.js +1795 -366
- package/out/server/chunks/{agent-BlAuVqNp.js → agent-2QNVhuY3.js} +749 -191
- package/out/server/chunks/{gpuBackendInstall-C-ypqydV.js → gpuBackendInstall-BsVsFpgX.js} +5 -5
- package/out/server/chunks/{loadProvider-CQUR_oho.js → loadProvider-BdIE3W6z.js} +2 -2
- package/out/server/chunks/{manifest-CojWIAHB.js → manifest-VLS5iL-K.js} +30 -4
- package/out/server/chunks/{workflowPresets-DQ3QX6Ju.js → workflowPresets-BJwuORhf.js} +764 -291
- package/out/server/index.js +51030 -36062
- package/out/server/plugin-host.js +59 -3
- package/package.json +1 -1
- package/out/phone/assets/architecture-7GRP2DOG-K5Dyn6vg.js +0 -1
- package/out/phone/assets/channel-C0dO6zWg.js +0 -1
- package/out/phone/assets/classDiagram-ZZMXUADV-CWPX0UEe.js +0 -1
- package/out/phone/assets/classDiagram-v2-VYDZK3BY-CWPX0UEe.js +0 -1
- package/out/phone/assets/desk-9dPB4fYu.js +0 -2
- package/out/phone/assets/eventmodeling-NTZA5JFV-_H7VbKRu.js +0 -1
- package/out/phone/assets/flowDiagram-HODETNUW-HeI2O8Jm.js +0 -1
- package/out/phone/assets/main-DNRbLxEx.css +0 -1
- package/out/phone/assets/main-QdYtohlX.js +0 -1643
- package/out/phone/assets/railroad-abnf-HS5TGJTU-Df9jtRyX.js +0 -1
- package/out/phone/assets/railroad-ebnf-LZEXJU2U-vjjsvYjl.js +0 -1
- package/out/phone/assets/railroad-peg-WCYAUIDC-DrKQG8aR.js +0 -1
- package/out/phone/assets/stateDiagram-v2-MP3YSRHH-g06bNGjI.js +0 -1
- package/out/phone/assets/storage-p-WxHA1h.js +0 -1
- package/out/phone/assets/swimlanesDiagram-VR7AAH4N-CwlfCnnJ.js +0 -8
- package/out/renderer/assets/channel-AuDXnH14.js +0 -1
- package/out/renderer/assets/classDiagram-ZZMXUADV-D8JIsdAI.js +0 -1
- package/out/renderer/assets/classDiagram-v2-VYDZK3BY-D8JIsdAI.js +0 -1
- package/out/renderer/assets/globals-BJ2xID1e.js +0 -2539
- package/out/renderer/assets/globals-l3kDGoYH.css +0 -1
- package/out/renderer/assets/index-CHNrHypo.js +0 -117
- package/out/renderer/assets/settings-CUBQyINw.js +0 -34
- package/out/renderer/assets/stateDiagram-v2-MP3YSRHH-CXFPvfab.js +0 -1
- package/out/renderer/assets/swimlanesDiagram-VR7AAH4N-D83-vEQi.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as le}from"./chunk-2Q5K7J3B-K_IlhZEX.js";import{p as he}from"./chunk-JWPE2WC7-B-cBpNJA.js";import{q as $e,p as fe,s as ge,g as ue,a as ye,b as xe,_ as h,A as J,l as w,j as me,c as W,z as pe,B as be,r as we,k as B,D as ke,E as ve,F as Ce}from"./mermaid.core-uI5XQTV1.js";import{p as Ee}from"./cynefin-OW5HDTMX-CMTgEepT.js";import"./globals-BJ2xID1e.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),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 Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.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}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))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===m.MERGE&&!o)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||!d.records.commits.has(t)){if(a===d.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 l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.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 V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.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"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),Pe=h(function(){return d.records.direction},"getDirection"),We=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:qe,getDirection:Pe,getHead:We,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,q=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),q.clear(),I=0,z=[],y="LR"},"clear"),oe=h(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(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.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${H(o,G,l)} ${s}-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${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{I as le}from"./chunk-2Q5K7J3B-Dw4JQaKM.js";import{p as he}from"./chunk-JWPE2WC7-B8Xhiasd.js";import{q as $e,p as fe,s as ge,g as ue,a as ye,b as xe,_ as h,A as J,l as w,j as me,c as W,z as pe,B as be,r as we,k as B,D as ke,E as ve,F as Ce}from"./mermaid.core-DPQo0NhF.js";import{p as Ee}from"./cynefin-OW5HDTMX-qIf7N9zE.js";import"./globals-BTwoz2I6.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),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 Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.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}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))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===m.MERGE&&!o)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||!d.records.commits.has(t)){if(a===d.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 l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.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 V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.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"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),Pe=h(function(){return d.records.direction},"getDirection"),We=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:qe,getDirection:Pe,getHead:We,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,q=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),q.clear(),I=0,z=[],y="LR"},"clear"),oe=h(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(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.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${H(o,G,l)} ${s}-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${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${s-i/2-L/2},${x+R}
|
|
3
3
|
${s-i/2-L/2},${x-R}
|
|
4
4
|
${t.posWithOffset-i/2-L},${x-c-R}
|