@fgbg/mdocs 0.8.6 → 0.8.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/dist/web/assets/{MergeView-VZ6bbVA6.js → MergeView-BBr64bam.js} +1 -1
- package/dist/web/assets/{_baseUniq-BvvfWdEG.js → _baseUniq-DPiuTO9O.js} +1 -1
- package/dist/web/assets/{arc-DYhjBLf6.js → arc-BjFiPdRI.js} +1 -1
- package/dist/web/assets/{architectureDiagram-Q4EWVU46-BgNdGheS.js → architectureDiagram-Q4EWVU46-Bg5q-eAF.js} +1 -1
- package/dist/web/assets/{blockDiagram-DXYQGD6D-DU0wwlDz.js → blockDiagram-DXYQGD6D-BD2W9g1m.js} +1 -1
- package/dist/web/assets/{c4Diagram-AHTNJAMY-_dNb7E64.js → c4Diagram-AHTNJAMY-EutGBUph.js} +1 -1
- package/dist/web/assets/channel-DXrjDOYn.js +1 -0
- package/dist/web/assets/{chunk-4BX2VUAB-DXxtpdAl.js → chunk-4BX2VUAB-DjI4WDbc.js} +1 -1
- package/dist/web/assets/{chunk-4TB4RGXK-Ckh5URVJ.js → chunk-4TB4RGXK-STKj2CZp.js} +1 -1
- package/dist/web/assets/{chunk-55IACEB6-DzUPs8aB.js → chunk-55IACEB6-DjjX4E45.js} +1 -1
- package/dist/web/assets/{chunk-EDXVE4YY-CIdJZV2p.js → chunk-EDXVE4YY-BV5S3HvN.js} +1 -1
- package/dist/web/assets/{chunk-FMBD7UC4-CWkkP_lP.js → chunk-FMBD7UC4-BqEWdzLG.js} +1 -1
- package/dist/web/assets/{chunk-OYMX7WX6-DQGsPvaL.js → chunk-OYMX7WX6-CaY5tJMJ.js} +1 -1
- package/dist/web/assets/{chunk-QZHKN3VN-Co5ffBEb.js → chunk-QZHKN3VN-Dpnf7BSM.js} +1 -1
- package/dist/web/assets/{chunk-YZCP3GAM-D7Fve6o6.js → chunk-YZCP3GAM-CkhOhodd.js} +1 -1
- package/dist/web/assets/classDiagram-6PBFFD2Q-9bBkEPwQ.js +1 -0
- package/dist/web/assets/classDiagram-v2-HSJHXN6E-9bBkEPwQ.js +1 -0
- package/dist/web/assets/clone-CeG9DhNI.js +1 -0
- package/dist/web/assets/{cose-bilkent-S5V4N54A-x84fYJq7.js → cose-bilkent-S5V4N54A-TnRvn8wH.js} +1 -1
- package/dist/web/assets/cpp-Bp17OOWP.js +1 -0
- package/dist/web/assets/{dagre-KV5264BT-BaMErQEX.js → dagre-KV5264BT-sJWGoaLD.js} +1 -1
- package/dist/web/assets/{diagram-5BDNPKRD-CzP5m-tO.js → diagram-5BDNPKRD-D-m_kU_W.js} +1 -1
- package/dist/web/assets/{diagram-G4DWMVQ6-DaPj8hjA.js → diagram-G4DWMVQ6-Czc0GOtJ.js} +1 -1
- package/dist/web/assets/{diagram-MMDJMWI5-Dn99zUWc.js → diagram-MMDJMWI5-IOAJuFuD.js} +1 -1
- package/dist/web/assets/{diagram-TYMM5635-52OHK41U.js → diagram-TYMM5635-B6J_V3un.js} +1 -1
- package/dist/web/assets/{erDiagram-SMLLAGMA-BMbs67k6.js → erDiagram-SMLLAGMA-Dzv2Z19V.js} +1 -1
- package/dist/web/assets/{flowDiagram-DWJPFMVM-CYUjLkKt.js → flowDiagram-DWJPFMVM-BEVdVQjJ.js} +1 -1
- package/dist/web/assets/{ganttDiagram-T4ZO3ILL-CYGOS0VZ.js → ganttDiagram-T4ZO3ILL-CqDRowWZ.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-UUTBAWPF-DrvIi-8k.js → gitGraphDiagram-UUTBAWPF-id1A35b6.js} +1 -1
- package/dist/web/assets/{graph-qrd19I6J.js → graph-D1ZUACO1.js} +1 -1
- package/dist/web/assets/{index-BXM0M0so.js → index-CG_5hNy2.js} +180 -175
- package/dist/web/assets/{infoDiagram-42DDH7IO-BdfFgyQI.js → infoDiagram-42DDH7IO-VCo7Y_XY.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-UXIWVN3A-BoqOI3s4.js → ishikawaDiagram-UXIWVN3A-2zkFwtGK.js} +1 -1
- package/dist/web/assets/{journeyDiagram-VCZTEJTY-DnGnSDDB.js → journeyDiagram-VCZTEJTY-9xfjIDzZ.js} +1 -1
- package/dist/web/assets/{kanban-definition-6JOO6SKY-Bhk0TGMI.js → kanban-definition-6JOO6SKY-CtlIC6o7.js} +1 -1
- package/dist/web/assets/{layout-C0CHEWKu.js → layout-BwiWnDDL.js} +1 -1
- package/dist/web/assets/{linear-ObetDQxc.js → linear-BCmqTrEt.js} +1 -1
- package/dist/web/assets/{min-DCf5eEyU.js → min-HUIhyFEJ.js} +1 -1
- package/dist/web/assets/{mindmap-definition-QFDTVHPH-Cogg0H71.js → mindmap-definition-QFDTVHPH-CxMrCCZd.js} +1 -1
- package/dist/web/assets/{pieDiagram-DEJITSTG-CvyOMAM_.js → pieDiagram-DEJITSTG-DfotdBjp.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-34T5L4WZ-6v3o7zJq.js → quadrantDiagram-34T5L4WZ-BQP7wk7X.js} +1 -1
- package/dist/web/assets/{requirementDiagram-MS252O5E-C48M3Ctb.js → requirementDiagram-MS252O5E-B_TtEKSs.js} +1 -1
- package/dist/web/assets/ruby-CM5gBc7p.js +1 -0
- package/dist/web/assets/{sankeyDiagram-XADWPNL6-BkY9QIeK.js → sankeyDiagram-XADWPNL6-DaSKJ2JV.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-FGHM5R23-DA2_Xhf4.js → sequenceDiagram-FGHM5R23-BjmdElN-.js} +1 -1
- package/dist/web/assets/{stateDiagram-FHFEXIEX-DDOfu0lM.js → stateDiagram-FHFEXIEX-BNaY_Ekl.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-QKLJ7IA2-spf8Ruqx.js +1 -0
- package/dist/web/assets/svelte-DR4MIrkg.js +1 -0
- package/dist/web/assets/{timeline-definition-GMOUNBTQ-M9gHmOMM.js → timeline-definition-GMOUNBTQ-BsVGIy02.js} +1 -1
- package/dist/web/assets/{vennDiagram-DHZGUBPP-BmSvHIZe.js → vennDiagram-DHZGUBPP-DvxeoAnH.js} +1 -1
- package/dist/web/assets/vue-DMJtu8ND.js +1 -0
- package/dist/web/assets/wardley-RL74JXVD-Cefj9jwz.js +162 -0
- package/dist/web/assets/{wardleyDiagram-NUSXRM2D-gdDzS24Z.js → wardleyDiagram-NUSXRM2D-IHiVP54x.js} +1 -1
- package/dist/web/assets/{xychartDiagram-5P7HB3ND-BvuXhMv6.js → xychartDiagram-5P7HB3ND-juQThxJ3.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +4 -2
- package/dist/web/assets/abap-BdImnpbu.js +0 -1
- package/dist/web/assets/actionscript-3-CoDkCxhg.js +0 -1
- package/dist/web/assets/ada-bCR0ucgS.js +0 -1
- package/dist/web/assets/andromeeda-CF6_y_Qj.js +0 -1
- package/dist/web/assets/angular-html-DA-rfuFy.js +0 -1
- package/dist/web/assets/angular-ts-BrjP3tb8.js +0 -1
- package/dist/web/assets/apache-Pmp26Uib.js +0 -1
- package/dist/web/assets/apex-D8_7TLub.js +0 -1
- package/dist/web/assets/apl-CORt7UWP.js +0 -1
- package/dist/web/assets/applescript-Co6uUVPk.js +0 -1
- package/dist/web/assets/ara-BRHolxvo.js +0 -1
- package/dist/web/assets/asciidoc-Ve4PFQV2.js +0 -1
- package/dist/web/assets/asm-D_Q5rh1f.js +0 -1
- package/dist/web/assets/astro-HNnZUWAn.js +0 -1
- package/dist/web/assets/aurora-x-DOuLBLNn.js +0 -1
- package/dist/web/assets/awk-DMzUqQB5.js +0 -1
- package/dist/web/assets/ayu-dark-BXQCOcka.js +0 -1
- package/dist/web/assets/ayu-light-McBaoK3Y.js +0 -1
- package/dist/web/assets/ayu-mirage-urwrJgdN.js +0 -1
- package/dist/web/assets/ballerina-BFfxhgS-.js +0 -1
- package/dist/web/assets/bat-BkioyH1T.js +0 -1
- package/dist/web/assets/beancount-k_qm7-4y.js +0 -1
- package/dist/web/assets/berry-uYugtg8r.js +0 -1
- package/dist/web/assets/bibtex-CHM0blh-.js +0 -1
- package/dist/web/assets/bicep-Bmn6On1c.js +0 -1
- package/dist/web/assets/bird2-BIv1doCn.js +0 -1
- package/dist/web/assets/blade-BjGOyj-B.js +0 -1
- package/dist/web/assets/bsl-BO_Y6i37.js +0 -1
- package/dist/web/assets/c3-eo99z4R2.js +0 -1
- package/dist/web/assets/cadence-Bv_4Rxtq.js +0 -1
- package/dist/web/assets/cairo-KRGpt6FW.js +0 -1
- package/dist/web/assets/catppuccin-frappe-BCqV45_h.js +0 -1
- package/dist/web/assets/catppuccin-latte-BWlfbWlw.js +0 -1
- package/dist/web/assets/catppuccin-macchiato-L0ooYkqX.js +0 -1
- package/dist/web/assets/catppuccin-mocha-CPxVXonm.js +0 -1
- package/dist/web/assets/channel-D_v-WKtf.js +0 -1
- package/dist/web/assets/clarity-D53aC0YG.js +0 -1
- package/dist/web/assets/classDiagram-6PBFFD2Q-D0zuFHCi.js +0 -1
- package/dist/web/assets/classDiagram-v2-HSJHXN6E-D0zuFHCi.js +0 -1
- package/dist/web/assets/clojure-P80f7IUj.js +0 -1
- package/dist/web/assets/clone-BI1UZtFu.js +0 -1
- package/dist/web/assets/cobol-nBiQ_Alo.js +0 -1
- package/dist/web/assets/codeowners-Bp6g37R7.js +0 -1
- package/dist/web/assets/codeql-DsOJ9woJ.js +0 -1
- package/dist/web/assets/coffee-Ch7k5sss.js +0 -1
- package/dist/web/assets/common-lisp-Cg-RD9OK.js +0 -1
- package/dist/web/assets/coq-DkFqJrB1.js +0 -1
- package/dist/web/assets/cpp-CofmeUqb.js +0 -1
- package/dist/web/assets/crystal-DNxU26gB.js +0 -1
- package/dist/web/assets/csv-fuZLfV_i.js +0 -1
- package/dist/web/assets/cue-D82EKSYY.js +0 -1
- package/dist/web/assets/cypher-COkxafJQ.js +0 -1
- package/dist/web/assets/d-85-TOEBH.js +0 -1
- package/dist/web/assets/dark-plus-DNUujdjh.js +0 -1
- package/dist/web/assets/dart-bE4Kk8sk.js +0 -1
- package/dist/web/assets/dax-CEL-wOlO.js +0 -1
- package/dist/web/assets/desktop-BmXAJ9_W.js +0 -1
- package/dist/web/assets/dotenv-Da5cRb03.js +0 -1
- package/dist/web/assets/dracula-Dl-8puSV.js +0 -1
- package/dist/web/assets/dracula-soft-CSMZw4vz.js +0 -1
- package/dist/web/assets/dream-maker-BtqSS_iP.js +0 -1
- package/dist/web/assets/edge-FbVlp4U3.js +0 -1
- package/dist/web/assets/elixir-CkH2-t6x.js +0 -1
- package/dist/web/assets/elm-DbKCFpqz.js +0 -1
- package/dist/web/assets/emacs-lisp-CXvaQtF9.js +0 -1
- package/dist/web/assets/erb-BYCe7drp.js +0 -1
- package/dist/web/assets/erlang-DsQrWhSR.js +0 -1
- package/dist/web/assets/everforest-dark-BxQkAq-6.js +0 -1
- package/dist/web/assets/everforest-light-CcLVmqFl.js +0 -1
- package/dist/web/assets/fennel-BYunw83y.js +0 -1
- package/dist/web/assets/fish-BvzEVeQv.js +0 -1
- package/dist/web/assets/fluent-C4IJs8-o.js +0 -1
- package/dist/web/assets/fortran-fixed-form-CkoXwp7k.js +0 -1
- package/dist/web/assets/fortran-free-form-BxgE0vQu.js +0 -1
- package/dist/web/assets/fsharp-CXgrBDvD.js +0 -1
- package/dist/web/assets/gdresource-BOOCDP_w.js +0 -1
- package/dist/web/assets/gdscript-C5YyOfLZ.js +0 -1
- package/dist/web/assets/gdshader-DkwncUOv.js +0 -1
- package/dist/web/assets/genie-D0YGMca9.js +0 -1
- package/dist/web/assets/gherkin-DyxjwDmM.js +0 -1
- package/dist/web/assets/git-commit-F4YmCXRG.js +0 -1
- package/dist/web/assets/git-rebase-r7XF79zn.js +0 -1
- package/dist/web/assets/github-dark-default-BuB7GGZr.js +0 -1
- package/dist/web/assets/github-dark-dimmed-CQQ2kH1a.js +0 -1
- package/dist/web/assets/github-dark-high-contrast-fZoHxlg3.js +0 -1
- package/dist/web/assets/github-dark-vbPMK5nw.js +0 -1
- package/dist/web/assets/github-light-CBO01_j6.js +0 -1
- package/dist/web/assets/github-light-default-DNniaknl.js +0 -1
- package/dist/web/assets/github-light-high-contrast-Kh_Z1r_U.js +0 -1
- package/dist/web/assets/gleam-BspZqrRM.js +0 -1
- package/dist/web/assets/glimmer-js-ByusRIyA.js +0 -1
- package/dist/web/assets/glimmer-ts-BfAWNZQY.js +0 -1
- package/dist/web/assets/glsl-DplSGwfg.js +0 -1
- package/dist/web/assets/gn-n2N0HUVH.js +0 -1
- package/dist/web/assets/gnuplot-DdkO51Og.js +0 -1
- package/dist/web/assets/groovy-gcz8RCvz.js +0 -1
- package/dist/web/assets/gruvbox-dark-hard-B-lrt2RD.js +0 -1
- package/dist/web/assets/gruvbox-dark-medium-DqRMfHwY.js +0 -1
- package/dist/web/assets/gruvbox-dark-soft-0cd3aJ5k.js +0 -1
- package/dist/web/assets/gruvbox-light-hard-CdMyBl7-.js +0 -1
- package/dist/web/assets/gruvbox-light-medium-k_NbMmjL.js +0 -1
- package/dist/web/assets/gruvbox-light-soft-B_wmbOPu.js +0 -1
- package/dist/web/assets/hack-i7_Ulhet.js +0 -1
- package/dist/web/assets/haml-D5jkg6IW.js +0 -1
- package/dist/web/assets/handlebars-BpdQsYii.js +0 -1
- package/dist/web/assets/haskell-Df6bDoY_.js +0 -1
- package/dist/web/assets/haxe-CzTSHFRz.js +0 -1
- package/dist/web/assets/hcl-BWvSN4gD.js +0 -1
- package/dist/web/assets/hjson-D5-asLiD.js +0 -1
- package/dist/web/assets/hlsl-D3lLCCz7.js +0 -1
- package/dist/web/assets/horizon-Dr-pOaOB.js +0 -1
- package/dist/web/assets/horizon-bright-Cn-bp-IR.js +0 -1
- package/dist/web/assets/houston-D7pTNItX.js +0 -1
- package/dist/web/assets/html-derivative-DlHx6ybY.js +0 -1
- package/dist/web/assets/http-jrhK8wxY.js +0 -1
- package/dist/web/assets/hurl-irOxFIW8.js +0 -1
- package/dist/web/assets/hxml-Bvhsp5Yf.js +0 -1
- package/dist/web/assets/hy-DFXneXwc.js +0 -1
- package/dist/web/assets/imba-DGztddWO.js +0 -1
- package/dist/web/assets/jinja-f2NsQr07.js +0 -1
- package/dist/web/assets/jison-wvAkD_A8.js +0 -1
- package/dist/web/assets/json5-C9tS-k6U.js +0 -1
- package/dist/web/assets/jsonl-DcaNXYhu.js +0 -1
- package/dist/web/assets/jsonnet-DFQXde-d.js +0 -1
- package/dist/web/assets/jssm-C2t-YnRu.js +0 -1
- package/dist/web/assets/julia-CxzCAyBv.js +0 -1
- package/dist/web/assets/just-VxiPbLrw.js +0 -1
- package/dist/web/assets/kanagawa-dragon-9xlKYyML.js +0 -1
- package/dist/web/assets/kanagawa-lotus-D7R2-rgR.js +0 -1
- package/dist/web/assets/kanagawa-wave-DXzwPY55.js +0 -1
- package/dist/web/assets/kdl-DV7GczEv.js +0 -1
- package/dist/web/assets/kusto-wEQ09or8.js +0 -1
- package/dist/web/assets/laserwave-Crdg5MSq.js +0 -1
- package/dist/web/assets/latex-CWtU0Tv5.js +0 -1
- package/dist/web/assets/lean-BZvkOJ9d.js +0 -1
- package/dist/web/assets/light-plus-Keeg-hmX.js +0 -1
- package/dist/web/assets/liquid-C0sCDyMI.js +0 -1
- package/dist/web/assets/llvm-DjAJT7YJ.js +0 -1
- package/dist/web/assets/log-2UxHyX5q.js +0 -1
- package/dist/web/assets/logo-BtOb2qkB.js +0 -1
- package/dist/web/assets/luau-C-HG3fhB.js +0 -1
- package/dist/web/assets/marko-DjSrsDqO.js +0 -1
- package/dist/web/assets/material-theme-BjSij5jK.js +0 -1
- package/dist/web/assets/material-theme-darker-Ci314V8G.js +0 -1
- package/dist/web/assets/material-theme-lighter-BsHhGFQr.js +0 -1
- package/dist/web/assets/material-theme-ocean-DcalBkIS.js +0 -1
- package/dist/web/assets/material-theme-palenight-GGCMgrXw.js +0 -1
- package/dist/web/assets/matlab-D7o27uSR.js +0 -1
- package/dist/web/assets/mdc-DTYItulj.js +0 -1
- package/dist/web/assets/mermaid-mWjccvbQ.js +0 -1
- package/dist/web/assets/min-dark-CDSXMz5a.js +0 -1
- package/dist/web/assets/min-light-CM5JNFAA.js +0 -1
- package/dist/web/assets/mipsasm-CKIfxQSi.js +0 -1
- package/dist/web/assets/mojo-rZm6bMo-.js +0 -1
- package/dist/web/assets/monokai-O2TR9gDo.js +0 -1
- package/dist/web/assets/moonbit-_H4v1dQx.js +0 -1
- package/dist/web/assets/move-IF9eRakj.js +0 -1
- package/dist/web/assets/narrat-DRg8JJMk.js +0 -1
- package/dist/web/assets/nextflow-C-mBbutL.js +0 -1
- package/dist/web/assets/nextflow-groovy-vE_lwT2v.js +0 -1
- package/dist/web/assets/night-owl-NZdGqbHT.js +0 -1
- package/dist/web/assets/night-owl-light-Dx-BWqtN.js +0 -1
- package/dist/web/assets/nim-BIad80T-.js +0 -1
- package/dist/web/assets/nix-CwoSXNpI.js +0 -1
- package/dist/web/assets/nord-BNMOv-tL.js +0 -1
- package/dist/web/assets/nushell-Cz2AlsmD.js +0 -1
- package/dist/web/assets/objective-c-DXmwc3jG.js +0 -1
- package/dist/web/assets/objective-cpp-CLxacb5B.js +0 -1
- package/dist/web/assets/ocaml-C0hk2d4L.js +0 -1
- package/dist/web/assets/odin-BBf5iR-q.js +0 -1
- package/dist/web/assets/one-dark-pro-DnMjqbdW.js +0 -1
- package/dist/web/assets/one-light-dsKzgxTn.js +0 -1
- package/dist/web/assets/openscad-C4EeE6gA.js +0 -1
- package/dist/web/assets/pascal-D93ZcfNL.js +0 -1
- package/dist/web/assets/perl-NvoQZIq0.js +0 -1
- package/dist/web/assets/pkl-u5AG7uiY.js +0 -1
- package/dist/web/assets/plastic-Ckcm5hoS.js +0 -1
- package/dist/web/assets/plsql-ChMvpjG-.js +0 -1
- package/dist/web/assets/po-BTJTHyun.js +0 -1
- package/dist/web/assets/poimandres-BbcZclLp.js +0 -1
- package/dist/web/assets/polar-C0HS_06l.js +0 -1
- package/dist/web/assets/postcss-CXtECtnM.js +0 -1
- package/dist/web/assets/powerquery-CEu0bR-o.js +0 -1
- package/dist/web/assets/prisma-Dd19v3D-.js +0 -1
- package/dist/web/assets/prolog-CbFg5uaA.js +0 -1
- package/dist/web/assets/pug-DKIMFp6K.js +0 -1
- package/dist/web/assets/puppet-BMWR74SV.js +0 -1
- package/dist/web/assets/purescript-CklMAg4u.js +0 -1
- package/dist/web/assets/qml-3beO22l8.js +0 -1
- package/dist/web/assets/qmldir-C8lEn-DE.js +0 -1
- package/dist/web/assets/qss-IeuSbFQv.js +0 -1
- package/dist/web/assets/r-Dspwwk_N.js +0 -1
- package/dist/web/assets/racket-BqYA7rlc.js +0 -1
- package/dist/web/assets/raku-DXvB9xmW.js +0 -1
- package/dist/web/assets/razor-BDqjjVU7.js +0 -1
- package/dist/web/assets/red-BQzOET_I.js +0 -1
- package/dist/web/assets/reg-C-SQnVFl.js +0 -1
- package/dist/web/assets/regexp-CDVJQ6XC.js +0 -1
- package/dist/web/assets/rel-C3B-1QV4.js +0 -1
- package/dist/web/assets/riscv-BM1_JUlF.js +0 -1
- package/dist/web/assets/ron-D8l8udqQ.js +0 -1
- package/dist/web/assets/rose-pine-B3EY3h2-.js +0 -1
- package/dist/web/assets/rose-pine-dawn-6WQi5eS6.js +0 -1
- package/dist/web/assets/rose-pine-moon-BTPbmVvF.js +0 -1
- package/dist/web/assets/rosmsg-BJDFO7_C.js +0 -1
- package/dist/web/assets/rst-CRjBmOyv.js +0 -1
- package/dist/web/assets/ruby-Wjq7vjNf.js +0 -1
- package/dist/web/assets/sas-cz2c8ADy.js +0 -1
- package/dist/web/assets/sass-Cj5Yp3dK.js +0 -1
- package/dist/web/assets/scala-C151Ov-r.js +0 -1
- package/dist/web/assets/scheme-C98Dy4si.js +0 -1
- package/dist/web/assets/sdbl-DVxCFoDh.js +0 -1
- package/dist/web/assets/shaderlab-Dg9Lc6iA.js +0 -1
- package/dist/web/assets/slack-dark-DBfAPHjY.js +0 -1
- package/dist/web/assets/slack-ochin-szRk-9hG.js +0 -1
- package/dist/web/assets/smalltalk-BERRCDM3.js +0 -1
- package/dist/web/assets/snazzy-light-CBYPMa6b.js +0 -1
- package/dist/web/assets/solarized-dark-Tf4Pofl7.js +0 -1
- package/dist/web/assets/solarized-light-n46tpZ2s.js +0 -1
- package/dist/web/assets/solidity-rGO070M0.js +0 -1
- package/dist/web/assets/soy-8wufbnw4.js +0 -1
- package/dist/web/assets/sparql-rVzFXLq3.js +0 -1
- package/dist/web/assets/splunk-BtCnVYZw.js +0 -1
- package/dist/web/assets/ssh-config-_ykCGR6B.js +0 -1
- package/dist/web/assets/stata-BH5u7GGu.js +0 -1
- package/dist/web/assets/stateDiagram-v2-QKLJ7IA2-DII7FK3o.js +0 -1
- package/dist/web/assets/stylus-BEDo0Tqx.js +0 -1
- package/dist/web/assets/surrealql-Bq5Q-fJD.js +0 -1
- package/dist/web/assets/svelte-Cy7k_4gC.js +0 -1
- package/dist/web/assets/synthwave-84-CNQ9Fj-_.js +0 -1
- package/dist/web/assets/system-verilog-CnnmHF94.js +0 -1
- package/dist/web/assets/systemd-4A_iFExJ.js +0 -1
- package/dist/web/assets/talonscript-CkByrt1z.js +0 -1
- package/dist/web/assets/tasl-QIJgUcNo.js +0 -1
- package/dist/web/assets/tcl-dwOrl1Do.js +0 -1
- package/dist/web/assets/templ-DhtptRzy.js +0 -1
- package/dist/web/assets/terraform-BETggiCN.js +0 -1
- package/dist/web/assets/tex-idrVyKtj.js +0 -1
- package/dist/web/assets/tokyo-night-J9jDJp4U.js +0 -1
- package/dist/web/assets/ts-tags-DQrlYJgV.js +0 -1
- package/dist/web/assets/tsv-B_m7g4N7.js +0 -1
- package/dist/web/assets/turtle-BsS91CYL.js +0 -1
- package/dist/web/assets/twig-xg9kU7Mw.js +0 -1
- package/dist/web/assets/typespec-CAFt9gP4.js +0 -1
- package/dist/web/assets/typst-DHCkPAjA.js +0 -1
- package/dist/web/assets/v-BcVCzyr7.js +0 -1
- package/dist/web/assets/vala-CsfeWuGM.js +0 -1
- package/dist/web/assets/vb-D17OF-Vu.js +0 -1
- package/dist/web/assets/verilog-BQ8w6xss.js +0 -1
- package/dist/web/assets/vesper-C5GDOJD3.js +0 -1
- package/dist/web/assets/vhdl-CeAyd5Ju.js +0 -1
- package/dist/web/assets/viml-CJc9bBzg.js +0 -1
- package/dist/web/assets/vitesse-black-BeJXV_f5.js +0 -1
- package/dist/web/assets/vitesse-dark-mzFqOv-V.js +0 -1
- package/dist/web/assets/vitesse-light-BoFwUIac.js +0 -1
- package/dist/web/assets/vue-D2xRrEX4.js +0 -1
- package/dist/web/assets/vue-html-AaS7Mt5G.js +0 -1
- package/dist/web/assets/vue-vine-BoDAl6tE.js +0 -1
- package/dist/web/assets/vyper-CDx5xZoG.js +0 -1
- package/dist/web/assets/wardley-RL74JXVD-CSQE0ln5.js +0 -162
- package/dist/web/assets/wasm-CG6Dc4jp.js +0 -1
- package/dist/web/assets/wenyan-BV7otONQ.js +0 -1
- package/dist/web/assets/wgsl-Dx-B1_4e.js +0 -1
- package/dist/web/assets/wikitext-BhOHFoWU.js +0 -1
- package/dist/web/assets/wit-5i3qLPDT.js +0 -1
- package/dist/web/assets/wolfram-lXgVvXCa.js +0 -1
- package/dist/web/assets/xsl-CtQFsRM5.js +0 -1
- package/dist/web/assets/zenscript-DVFEvuxE.js +0 -1
- package/dist/web/assets/zig-VOosw3JB.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as he}from"./chunk-4BX2VUAB-DXxtpdAl.js";import{I as $e}from"./chunk-QZHKN3VN-Co5ffBEb.js";import{t as fe,q as ge,s as ue,g as ye,a as xe,b as me,_ as $,F as Q,l as k,d as pe,c as z,u as be,G as we,A as ke,k as L,H as ve,I as Ee,K as Ce}from"./index-BXM0M0so.js";import{p as Be}from"./wardley-RL74JXVD-CSQE0ln5.js";import"./min-DCf5eEyU.js";import"./_baseUniq-BvvfWdEG.js";var p={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Te=Ee.gitGraph,D=$(()=>ve({...Te,...Q().gitGraph}),"getConfig"),i=new $e(()=>{const e=D(),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 U(){return Ce({length:7})}$(U,"getID");function ae(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},[])}$(ae,"uniqBy");var Le=$(function(e){i.records.direction=e},"setDirection"),Me=$(function(e){k.debug("options str",e),e=e==null?void 0:e.trim(),e=e||"{}";try{i.records.options=JSON.parse(e)}catch(r){k.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ie=$(function(){return i.records.options},"getOptions"),Re=$(function(e){let r=e.msg,t=e.id;const o=e.type;let s=e.tags;k.info("commit",r,t,o,s),k.debug("Entering commit:",r,t,o,s);const d=D();t=L.sanitizeText(t,d),r=L.sanitizeText(r,d),s=s==null?void 0:s.map(a=>L.sanitizeText(a,d));const n={id:t||i.records.seq+"-"+U(),message:r,seq:i.records.seq++,type:o??p.NORMAL,tags:s??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=n,k.info("main branch",d.mainBranchName),i.records.commits.has(n.id)&&k.warn(`Commit ID ${n.id} already exists`),i.records.commits.set(n.id,n),i.records.branches.set(i.records.currBranch,n.id),k.debug("in pushCommit "+n.id)},"commit"),Oe=$(function(e){let r=e.name;const t=e.order;if(r=L.sanitizeText(r,D()),i.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}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:t}),ne(r),k.debug("in createBranch")},"branch"),_e=$(e=>{let r=e.branch,t=e.id;const o=e.type,s=e.tags,d=D();r=L.sanitizeText(r,d),t&&(t=L.sanitizeText(t,d));const n=i.records.branches.get(i.records.currBranch),a=i.records.branches.get(r),l=n?i.records.commits.get(n):void 0,h=a?i.records.commits.get(a):void 0;if(l&&h&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.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 (${i.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!i.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(h===void 0||!h){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===h){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&&i.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} ${o} ${s==null?void 0:s.join(" ")}`,token:`merge ${r} ${t} ${o} ${s==null?void 0:s.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${o} ${s==null?void 0:s.join(" ")}`]},c}const g=a||"",f={id:t||`${i.records.seq}-${U()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,g],branch:i.records.currBranch,type:p.MERGE,customType:o,customId:!!t,tags:s??[]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),k.debug(i.records.branches),k.debug("in mergeBranch")},"merge"),Ge=$(function(e){let r=e.id,t=e.targetId,o=e.tags,s=e.parent;k.debug("Entering cherryPick:",r,t,o);const d=D();if(r=L.sanitizeText(r,d),t=L.sanitizeText(t,d),o=o==null?void 0:o.map(l=>L.sanitizeText(l,d)),s=L.sanitizeText(s,d),!r||!i.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=i.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===p.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||!i.records.commits.has(t)){if(a===i.records.currBranch){const f=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const l=i.records.branches.get(i.records.currBranch);if(l===void 0||!l){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const h=i.records.commits.get(l);if(h===void 0||!h){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const g={id:i.records.seq+"-"+U(),message:`cherry-picked ${n==null?void 0:n.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,n.id],branch:i.records.currBranch,type:p.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${n.id}${n.type===p.MERGE?`|parent:${s}`:""}`]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),k.debug(i.records.branches),k.debug("in cherryPick")}},"cherryPick"),ne=$(function(e){if(e=L.sanitizeText(e,D()),i.records.branches.has(e)){i.records.currBranch=e;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.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 X(e,r,t){const o=e.indexOf(r);o===-1?e.push(t):e.splice(o,1,t)}$(X,"upsert");function Z(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 i.records.branches)i.records.branches.get(s)===r.id&&o.push(s);if(k.debug(o.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const s=i.records.commits.get(r.parents[0]);X(e,r,s),r.parents[1]&&e.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const s=i.records.commits.get(r.parents[0]);X(e,r,s)}}e=ae(e,s=>s.id),Z(e)}$(Z,"prettyPrintCommitHistory");var He=$(function(){k.debug(i.records.commits);const e=se()[0];Z([e])},"prettyPrint"),Ae=$(function(){i.reset(),ke()},"clear"),Se=$(function(){return[...i.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"),De=$(function(){return i.records.branches},"getBranches"),qe=$(function(){return i.records.commits},"getCommits"),se=$(function(){const e=[...i.records.commits.values()];return e.forEach(function(r){k.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=$(function(){return i.records.currBranch},"getCurrentBranch"),We=$(function(){return i.records.direction},"getDirection"),Ne=$(function(){return i.records.head},"getHead"),oe={commitType:p,getConfig:D,setDirection:Le,setOptions:Me,getOptions:Ie,commit:Re,branch:Oe,merge:_e,cherryPick:Ge,checkout:ne,prettyPrint:He,clear:Ae,getBranchesAsObjArray:Se,getBranches:De,getCommits:qe,getCommitsArray:se,getCurrentBranch:Pe,getDirection:We,getHead:Ne,setAccTitle:me,getAccTitle:xe,getAccDescription:ye,setAccDescription:ue,setDiagramTitle:ge,getDiagramTitle:fe},Fe=$((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)ze(t,r)},"populate"),ze=$((e,r)=>{const o={Commit:$(s=>r.commit(Ye(s)),"Commit"),Branch:$(s=>r.branch(je(s)),"Branch"),Merge:$(s=>r.merge(Ke(s)),"Merge"),Checkout:$(s=>r.checkout(Ue(s)),"Checkout"),CherryPicking:$(s=>r.cherryPick(Ve(s)),"CherryPicking")}[e.$type];o?o(e):k.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ye=$(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?p[e.type]:p.NORMAL,tags:e.tags??void 0}),"parseCommit"),je=$(e=>({name:e.name,order:e.order??0}),"parseBranch"),Ke=$(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?p[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=$(e=>e.branch,"parseCheckout"),Ve=$(e=>{var t;return{id:e.id,targetId:"",tags:((t=e.tags)==null?void 0:t.length)===0?void 0:e.tags,parent:e.parent}},"parseCherryPicking"),Xe={parse:$(async e=>{const r=await Be("gitGraph",e);k.debug(r),Fe(r,oe)},"parse")},G=10,H=40,M=4,R=2,A=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),J=12,ee=new Set(["redux-color","redux-dark-color"]),Je=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),S=$((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),B=new Map,T=new Map,j=30,N=new Map,K=[],O=0,y="LR",Qe=$(()=>{B.clear(),T.clear(),N.clear(),O=0,K=[],y="LR"},"clear"),ce=$(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"),ie=$(e=>{let r,t,o;return y==="BT"?(t=$((s,d)=>s<=d,"comparisonFunc"),o=1/0):(t=$((s,d)=>s>=d,"comparisonFunc"),o=0),e.forEach(s=>{var n,a;const d=y==="TB"||y=="BT"?(n=T.get(s))==null?void 0:n.y:(a=T.get(s))==null?void 0:a.x;d!==void 0&&t(d,o)&&(r=s,o=d)}),r},"findClosestParent"),Ze=$(e=>{let r="",t=1/0;return e.forEach(o=>{const s=T.get(o).y;s<=t&&(r=o,t=s)}),r||void 0},"findClosestParentBT"),er=$((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=tr(a),s=Math.max(o,s)):d.push(a),ar(a,o)}),o=s,d.forEach(n=>{nr(n,o,t)}),e.forEach(n=>{const a=r.get(n);if(a!=null&&a.parents.length){const l=Ze(a.parents);o=T.get(l).y-H,o<=s&&(s=o);const h=B.get(a.branch).pos,g=o-G;T.set(a.id,{x:h,y:g})}})},"setParallelBTPos"),rr=$(e=>{var o;const r=ie(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=(o=T.get(r))==null?void 0:o.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),tr=$(e=>rr(e)+H,"calculateCommitPosition"),ar=$((e,r)=>{const t=B.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const o=t.pos,s=r+G;return T.set(e.id,{x:o,y:s}),{x:o,y:s}},"setCommitPosition"),nr=$((e,r,t)=>{const o=B.get(e.branch);if(!o)throw new Error(`Branch not found for commit ${e.id}`);const s=r+t,d=o.pos;T.set(e.id,{x:d,y:s})},"setRootPosition"),sr=$((e,r,t,o,s,d)=>{const{theme:n}=z(),a=V.has(n??""),l=ee.has(n??""),h=Je.has(n??"");if(d===p.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${S(s,A,l)} ${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${S(s,A,l)} ${o}-inner`);else if(d===p.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",h?"#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",h?"#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",h?"#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",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);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${S(s,A,l)}`),d===p.MERGE){const f=e.append("circle");f.attr("cx",t.x),f.attr("cy",t.y),f.attr("r",a?5:6),f.attr("class",`commit ${o} ${r.id} commit${S(s,A,l)}`)}if(d===p.REVERSE){const f=e.append("path"),c=a?4:5;f.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 ${o} ${r.id} commit${S(s,A,l)}`)}}},"drawCommitBullet"),or=$((e,r,t,o,s)=>{var d;if(r.type!==p.CHERRY_PICK&&(r.customId&&r.type===p.MERGE||r.type!==p.MERGE)&&s.showCommitLabel){const n=e.append("g"),a=n.insert("rect").attr("class","commit-label-bkg"),l=n.append("text").attr("x",o).attr("y",t.y+25).attr("class","commit-label").text(r.id),h=(d=l.node())==null?void 0:d.getBBox();if(h&&(a.attr("x",t.posWithOffset-h.width/2-R).attr("y",t.y+13.5).attr("width",h.width+2*R).attr("height",h.height+2*R),y==="TB"||y==="BT"?(a.attr("x",t.x-(h.width+4*M+5)).attr("y",t.y-12),l.attr("x",t.x-(h.width+4*M)).attr("y",t.y+h.height-12)):l.attr("x",t.posWithOffset-h.width/2),s.rotateCommitLabel))if(y==="TB"||y==="BT")l.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),a.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;n.attr("transform","translate("+g+", "+f+") rotate(-45, "+o+", "+t.y+")")}}},"drawCommitLabel"),cr=$((e,r,t,o)=>{var s;if(r.tags.length>0){let d=0,n=0,a=0;const l=[];for(const h of r.tags.reverse()){const g=e.insert("polygon"),f=e.append("circle"),c=e.append("text").attr("y",t.y-16-d).attr("class","tag-label").text(h),x=(s=c.node())==null?void 0:s.getBBox();if(!x)throw new Error("Tag bbox not found");n=Math.max(n,x.width),a=Math.max(a,x.height),c.attr("x",t.posWithOffset-x.width/2),l.push({tag:c,hole:f,rect:g,yOffset:d}),d+=20}for(const{tag:h,hole:g,rect:f,yOffset:c}of l){const x=a/2,u=t.y-19.2-c;if(f.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{p as he}from"./chunk-4BX2VUAB-DjI4WDbc.js";import{I as $e}from"./chunk-QZHKN3VN-Dpnf7BSM.js";import{t as fe,q as ge,s as ue,g as ye,a as xe,b as me,_ as $,F as Q,l as k,d as pe,c as z,u as be,G as we,A as ke,k as L,H as ve,I as Ee,K as Ce}from"./index-CG_5hNy2.js";import{p as Be}from"./wardley-RL74JXVD-Cefj9jwz.js";import"./min-HUIhyFEJ.js";import"./_baseUniq-DPiuTO9O.js";var p={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Te=Ee.gitGraph,D=$(()=>ve({...Te,...Q().gitGraph}),"getConfig"),i=new $e(()=>{const e=D(),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 U(){return Ce({length:7})}$(U,"getID");function ae(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},[])}$(ae,"uniqBy");var Le=$(function(e){i.records.direction=e},"setDirection"),Me=$(function(e){k.debug("options str",e),e=e==null?void 0:e.trim(),e=e||"{}";try{i.records.options=JSON.parse(e)}catch(r){k.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ie=$(function(){return i.records.options},"getOptions"),Re=$(function(e){let r=e.msg,t=e.id;const o=e.type;let s=e.tags;k.info("commit",r,t,o,s),k.debug("Entering commit:",r,t,o,s);const d=D();t=L.sanitizeText(t,d),r=L.sanitizeText(r,d),s=s==null?void 0:s.map(a=>L.sanitizeText(a,d));const n={id:t||i.records.seq+"-"+U(),message:r,seq:i.records.seq++,type:o??p.NORMAL,tags:s??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=n,k.info("main branch",d.mainBranchName),i.records.commits.has(n.id)&&k.warn(`Commit ID ${n.id} already exists`),i.records.commits.set(n.id,n),i.records.branches.set(i.records.currBranch,n.id),k.debug("in pushCommit "+n.id)},"commit"),Oe=$(function(e){let r=e.name;const t=e.order;if(r=L.sanitizeText(r,D()),i.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}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:t}),ne(r),k.debug("in createBranch")},"branch"),_e=$(e=>{let r=e.branch,t=e.id;const o=e.type,s=e.tags,d=D();r=L.sanitizeText(r,d),t&&(t=L.sanitizeText(t,d));const n=i.records.branches.get(i.records.currBranch),a=i.records.branches.get(r),l=n?i.records.commits.get(n):void 0,h=a?i.records.commits.get(a):void 0;if(l&&h&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.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 (${i.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!i.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(h===void 0||!h){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===h){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&&i.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} ${o} ${s==null?void 0:s.join(" ")}`,token:`merge ${r} ${t} ${o} ${s==null?void 0:s.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${o} ${s==null?void 0:s.join(" ")}`]},c}const g=a||"",f={id:t||`${i.records.seq}-${U()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,g],branch:i.records.currBranch,type:p.MERGE,customType:o,customId:!!t,tags:s??[]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),k.debug(i.records.branches),k.debug("in mergeBranch")},"merge"),Ge=$(function(e){let r=e.id,t=e.targetId,o=e.tags,s=e.parent;k.debug("Entering cherryPick:",r,t,o);const d=D();if(r=L.sanitizeText(r,d),t=L.sanitizeText(t,d),o=o==null?void 0:o.map(l=>L.sanitizeText(l,d)),s=L.sanitizeText(s,d),!r||!i.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=i.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===p.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||!i.records.commits.has(t)){if(a===i.records.currBranch){const f=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const l=i.records.branches.get(i.records.currBranch);if(l===void 0||!l){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const h=i.records.commits.get(l);if(h===void 0||!h){const f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},f}const g={id:i.records.seq+"-"+U(),message:`cherry-picked ${n==null?void 0:n.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,n.id],branch:i.records.currBranch,type:p.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${n.id}${n.type===p.MERGE?`|parent:${s}`:""}`]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),k.debug(i.records.branches),k.debug("in cherryPick")}},"cherryPick"),ne=$(function(e){if(e=L.sanitizeText(e,D()),i.records.branches.has(e)){i.records.currBranch=e;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.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 X(e,r,t){const o=e.indexOf(r);o===-1?e.push(t):e.splice(o,1,t)}$(X,"upsert");function Z(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 i.records.branches)i.records.branches.get(s)===r.id&&o.push(s);if(k.debug(o.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const s=i.records.commits.get(r.parents[0]);X(e,r,s),r.parents[1]&&e.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const s=i.records.commits.get(r.parents[0]);X(e,r,s)}}e=ae(e,s=>s.id),Z(e)}$(Z,"prettyPrintCommitHistory");var He=$(function(){k.debug(i.records.commits);const e=se()[0];Z([e])},"prettyPrint"),Ae=$(function(){i.reset(),ke()},"clear"),Se=$(function(){return[...i.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"),De=$(function(){return i.records.branches},"getBranches"),qe=$(function(){return i.records.commits},"getCommits"),se=$(function(){const e=[...i.records.commits.values()];return e.forEach(function(r){k.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=$(function(){return i.records.currBranch},"getCurrentBranch"),We=$(function(){return i.records.direction},"getDirection"),Ne=$(function(){return i.records.head},"getHead"),oe={commitType:p,getConfig:D,setDirection:Le,setOptions:Me,getOptions:Ie,commit:Re,branch:Oe,merge:_e,cherryPick:Ge,checkout:ne,prettyPrint:He,clear:Ae,getBranchesAsObjArray:Se,getBranches:De,getCommits:qe,getCommitsArray:se,getCurrentBranch:Pe,getDirection:We,getHead:Ne,setAccTitle:me,getAccTitle:xe,getAccDescription:ye,setAccDescription:ue,setDiagramTitle:ge,getDiagramTitle:fe},Fe=$((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)ze(t,r)},"populate"),ze=$((e,r)=>{const o={Commit:$(s=>r.commit(Ye(s)),"Commit"),Branch:$(s=>r.branch(je(s)),"Branch"),Merge:$(s=>r.merge(Ke(s)),"Merge"),Checkout:$(s=>r.checkout(Ue(s)),"Checkout"),CherryPicking:$(s=>r.cherryPick(Ve(s)),"CherryPicking")}[e.$type];o?o(e):k.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ye=$(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?p[e.type]:p.NORMAL,tags:e.tags??void 0}),"parseCommit"),je=$(e=>({name:e.name,order:e.order??0}),"parseBranch"),Ke=$(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?p[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=$(e=>e.branch,"parseCheckout"),Ve=$(e=>{var t;return{id:e.id,targetId:"",tags:((t=e.tags)==null?void 0:t.length)===0?void 0:e.tags,parent:e.parent}},"parseCherryPicking"),Xe={parse:$(async e=>{const r=await Be("gitGraph",e);k.debug(r),Fe(r,oe)},"parse")},G=10,H=40,M=4,R=2,A=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),J=12,ee=new Set(["redux-color","redux-dark-color"]),Je=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),S=$((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),B=new Map,T=new Map,j=30,N=new Map,K=[],O=0,y="LR",Qe=$(()=>{B.clear(),T.clear(),N.clear(),O=0,K=[],y="LR"},"clear"),ce=$(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"),ie=$(e=>{let r,t,o;return y==="BT"?(t=$((s,d)=>s<=d,"comparisonFunc"),o=1/0):(t=$((s,d)=>s>=d,"comparisonFunc"),o=0),e.forEach(s=>{var n,a;const d=y==="TB"||y=="BT"?(n=T.get(s))==null?void 0:n.y:(a=T.get(s))==null?void 0:a.x;d!==void 0&&t(d,o)&&(r=s,o=d)}),r},"findClosestParent"),Ze=$(e=>{let r="",t=1/0;return e.forEach(o=>{const s=T.get(o).y;s<=t&&(r=o,t=s)}),r||void 0},"findClosestParentBT"),er=$((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=tr(a),s=Math.max(o,s)):d.push(a),ar(a,o)}),o=s,d.forEach(n=>{nr(n,o,t)}),e.forEach(n=>{const a=r.get(n);if(a!=null&&a.parents.length){const l=Ze(a.parents);o=T.get(l).y-H,o<=s&&(s=o);const h=B.get(a.branch).pos,g=o-G;T.set(a.id,{x:h,y:g})}})},"setParallelBTPos"),rr=$(e=>{var o;const r=ie(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=(o=T.get(r))==null?void 0:o.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),tr=$(e=>rr(e)+H,"calculateCommitPosition"),ar=$((e,r)=>{const t=B.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const o=t.pos,s=r+G;return T.set(e.id,{x:o,y:s}),{x:o,y:s}},"setCommitPosition"),nr=$((e,r,t)=>{const o=B.get(e.branch);if(!o)throw new Error(`Branch not found for commit ${e.id}`);const s=r+t,d=o.pos;T.set(e.id,{x:d,y:s})},"setRootPosition"),sr=$((e,r,t,o,s,d)=>{const{theme:n}=z(),a=V.has(n??""),l=ee.has(n??""),h=Je.has(n??"");if(d===p.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${S(s,A,l)} ${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${S(s,A,l)} ${o}-inner`);else if(d===p.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",h?"#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",h?"#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",h?"#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",h?"#000000":"#fff").attr("class",`commit ${r.id} ${o}`);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${S(s,A,l)}`),d===p.MERGE){const f=e.append("circle");f.attr("cx",t.x),f.attr("cy",t.y),f.attr("r",a?5:6),f.attr("class",`commit ${o} ${r.id} commit${S(s,A,l)}`)}if(d===p.REVERSE){const f=e.append("path"),c=a?4:5;f.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 ${o} ${r.id} commit${S(s,A,l)}`)}}},"drawCommitBullet"),or=$((e,r,t,o,s)=>{var d;if(r.type!==p.CHERRY_PICK&&(r.customId&&r.type===p.MERGE||r.type!==p.MERGE)&&s.showCommitLabel){const n=e.append("g"),a=n.insert("rect").attr("class","commit-label-bkg"),l=n.append("text").attr("x",o).attr("y",t.y+25).attr("class","commit-label").text(r.id),h=(d=l.node())==null?void 0:d.getBBox();if(h&&(a.attr("x",t.posWithOffset-h.width/2-R).attr("y",t.y+13.5).attr("width",h.width+2*R).attr("height",h.height+2*R),y==="TB"||y==="BT"?(a.attr("x",t.x-(h.width+4*M+5)).attr("y",t.y-12),l.attr("x",t.x-(h.width+4*M)).attr("y",t.y+h.height-12)):l.attr("x",t.posWithOffset-h.width/2),s.rotateCommitLabel))if(y==="TB"||y==="BT")l.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),a.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;n.attr("transform","translate("+g+", "+f+") rotate(-45, "+o+", "+t.y+")")}}},"drawCommitLabel"),cr=$((e,r,t,o)=>{var s;if(r.tags.length>0){let d=0,n=0,a=0;const l=[];for(const h of r.tags.reverse()){const g=e.insert("polygon"),f=e.append("circle"),c=e.append("text").attr("y",t.y-16-d).attr("class","tag-label").text(h),x=(s=c.node())==null?void 0:s.getBBox();if(!x)throw new Error("Tag bbox not found");n=Math.max(n,x.width),a=Math.max(a,x.height),c.attr("x",t.posWithOffset-x.width/2),l.push({tag:c,hole:f,rect:g,yOffset:d}),d+=20}for(const{tag:h,hole:g,rect:f,yOffset:c}of l){const x=a/2,u=t.y-19.2-c;if(f.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${o-n/2-M/2},${u+R}
|
|
3
3
|
${o-n/2-M/2},${u-R}
|
|
4
4
|
${t.posWithOffset-n/2-M},${u-x-R}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b3 as T,b4 as C,b5 as z,b6 as R,b7 as S,b8 as k,b9 as V,ba as L,bb as K,bc as j,bd as ee,be as te,bf as re,bg as se,bh as ne,bi as ie,aJ as ae,bj as oe,bk as ue,bl as he,bm as y,bn as v,bo as $}from"./index-
|
|
1
|
+
import{b3 as T,b4 as C,b5 as z,b6 as R,b7 as S,b8 as k,b9 as V,ba as L,bb as K,bc as j,bd as ee,be as te,bf as re,bg as se,bh as ne,bi as ie,aJ as ae,bj as oe,bk as ue,bl as he,bm as y,bn as v,bo as $}from"./index-CG_5hNy2.js";import{k as d,g as Y,s as de,e as ce,f as fe,h as ge,j as le,d as be,l as _e,b as pe,m,n as g,r as ye}from"./_baseUniq-DPiuTO9O.js";function me(t,e){return t&&T(e,d(e),t)}function je(t,e){return t&&T(e,C(e),t)}function Te(t,e){return T(t,Y(t),e)}var Oe=Object.getOwnPropertySymbols,q=Oe?function(t){for(var e=[];t;)ce(e,Y(t)),t=z(t);return e}:de;function Ae(t,e){return T(t,q(t),e)}function Ee(t){return fe(t,C,q)}var Ce=Object.prototype,Le=Ce.hasOwnProperty;function we(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Le.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function Ne(t,e){var r=e?R(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var Fe=/\w*$/;function Pe(t){var e=new t.constructor(t.source,Fe.exec(t));return e.lastIndex=t.lastIndex,e}var I=S?S.prototype:void 0,D=I?I.valueOf:void 0;function Se(t){return D?Object(D.call(t)):{}}var ve="[object Boolean]",$e="[object Date]",Ie="[object Map]",De="[object Number]",Me="[object RegExp]",Ge="[object Set]",Ue="[object String]",xe="[object Symbol]",Be="[object ArrayBuffer]",Re="[object DataView]",Ve="[object Float32Array]",Ke="[object Float64Array]",Ye="[object Int8Array]",qe="[object Int16Array]",He="[object Int32Array]",Je="[object Uint8Array]",We="[object Uint8ClampedArray]",Qe="[object Uint16Array]",Xe="[object Uint32Array]";function Ze(t,e,r){var s=t.constructor;switch(e){case Be:return R(t);case ve:case $e:return new s(+t);case Re:return Ne(t,r);case Ve:case Ke:case Ye:case qe:case He:case Je:case We:case Qe:case Xe:return k(t,r);case Ie:return new s;case De:case Ue:return new s(t);case Me:return Pe(t);case Ge:return new s;case xe:return Se(t)}}var ze="[object Map]";function ke(t){return V(t)&&L(t)==ze}var M=j&&j.isMap,et=M?K(M):ke,tt="[object Set]";function rt(t){return V(t)&&L(t)==tt}var G=j&&j.isSet,st=G?K(G):rt,nt=1,it=2,at=4,H="[object Arguments]",ot="[object Array]",ut="[object Boolean]",ht="[object Date]",dt="[object Error]",J="[object Function]",ct="[object GeneratorFunction]",ft="[object Map]",gt="[object Number]",W="[object Object]",lt="[object RegExp]",bt="[object Set]",_t="[object String]",pt="[object Symbol]",yt="[object WeakMap]",mt="[object ArrayBuffer]",jt="[object DataView]",Tt="[object Float32Array]",Ot="[object Float64Array]",At="[object Int8Array]",Et="[object Int16Array]",Ct="[object Int32Array]",Lt="[object Uint8Array]",wt="[object Uint8ClampedArray]",Nt="[object Uint16Array]",Ft="[object Uint32Array]",o={};o[H]=o[ot]=o[mt]=o[jt]=o[ut]=o[ht]=o[Tt]=o[Ot]=o[At]=o[Et]=o[Ct]=o[ft]=o[gt]=o[W]=o[lt]=o[bt]=o[_t]=o[pt]=o[Lt]=o[wt]=o[Nt]=o[Ft]=!0;o[dt]=o[J]=o[yt]=!1;function O(t,e,r,s,n,a){var i,u=e&nt,h=e&it,X=e&at;if(i!==void 0)return i;if(!ee(t))return t;var w=ae(t);if(w){if(i=we(t),!u)return te(t,i)}else{var b=L(t),N=b==J||b==ct;if(re(t))return se(t,u);if(b==W||b==H||N&&!n){if(i=h||N?{}:ne(t),!u)return h?Ae(t,je(i,t)):Te(t,me(i,t))}else{if(!o[b])return n?t:{};i=Ze(t,b,u)}}a||(a=new ie);var F=a.get(t);if(F)return F;a.set(t,i),st(t)?t.forEach(function(c){i.add(O(c,e,r,c,t,a))}):et(t)&&t.forEach(function(c,f){i.set(f,O(c,e,r,f,t,a))});var Z=X?h?Ee:le:h?C:d,P=w?void 0:Z(t);return ge(P||t,function(c,f){P&&(f=c,c=t[f]),oe(i,f,O(c,e,r,f,t,a))}),i}function Pt(t,e){return be(e,function(r){return t[r]})}function A(t){return t==null?[]:Pt(t,d(t))}function _(t){return t===void 0}var St=ue(function(t){return _e(pe(t,1,he,!0))}),vt="\0",l="\0",U="";class Q{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=y(void 0),this._defaultEdgeLabelFn=y(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[l]={}),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 v(e)||(e=y(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return d(this._nodes)}sources(){var e=this;return m(this.nodes(),function(r){return $(e._in[r])})}sinks(){var e=this;return m(this.nodes(),function(r){return $(e._out[r])})}setNodes(e,r){var s=arguments,n=this;return g(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]=l,this._children[e]={},this._children[l][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],g(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),g(d(this._in[e]),r),delete this._in[e],delete this._preds[e],g(d(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(_(r))r=l;else{r+="";for(var s=r;!_(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!==l)return r}}children(e){if(_(e)&&(e=l),this._isCompound){var r=this._children[e];if(r)return d(r)}else{if(e===l)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var r=this._preds[e];if(r)return d(r)}successors(e){var r=this._sucs[e];if(r)return d(r)}neighbors(e){var r=this.predecessors(e);if(r)return St(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;g(this._nodes,function(i,u){e(u)&&r.setNode(u,i)}),g(this._edgeObjs,function(i){r.hasNode(i.v)&&r.hasNode(i.w)&&r.setEdge(i,s.edge(i))});var n={};function a(i){var u=s.parent(i);return u===void 0||r.hasNode(u)?(n[i]=u,u):u in n?n[u]:a(u)}return this._isCompound&&g(r.nodes(),function(i){r.setParent(i,a(i))}),r}setDefaultEdgeLabel(e){return v(e)||(e=y(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return A(this._edgeObjs)}setPath(e,r){var s=this,n=arguments;return ye(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,_(s)||(s=""+s);var u=p(this._isDirected,e,r,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,u))return a&&(this._edgeLabels[u]=n),this;if(!_(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[u]=a?n:this._defaultEdgeLabelFn(e,r,s);var h=$t(this._isDirected,e,r,s);return e=h.v,r=h.w,Object.freeze(h),this._edgeObjs[u]=h,x(this._preds[r],e),x(this._sucs[e],r),this._in[r][u]=h,this._out[e][u]=h,this._edgeCount++,this}edge(e,r,s){var n=arguments.length===1?E(this._isDirected,arguments[0]):p(this._isDirected,e,r,s);return this._edgeLabels[n]}hasEdge(e,r,s){var n=arguments.length===1?E(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?E(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],B(this._preds[r],e),B(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=A(s);return r?m(n,function(a){return a.v===r}):n}}outEdges(e,r){var s=this._out[e];if(s){var n=A(s);return r?m(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))}}Q.prototype._nodeCount=0;Q.prototype._edgeCount=0;function x(t,e){t[e]?t[e]++:t[e]=1}function B(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+U+a+U+(_(s)?vt:s)}function $t(t,e,r,s){var n=""+e,a=""+r;if(!t&&n>a){var i=n;n=a,a=i}var u={v:n,w:a};return s&&(u.name=s),u}function E(t,e){return p(t,e.v,e.w,e.name)}export{Q as G,O as b,_ as i,A as v};
|