#set page(width: auto, height: auto)
#import "/src/lib.typ": *

#let make-diagram(_seq) = {
  diagram({
    _par("a")
    _par("b")
    _par("c")
    _seq("a", "b")
    _seq("c", "b")
    _seq("a", "b", enable-dst: true)
    _seq("a", "b")
    _seq("c", "b")
    _seq("a", "b", enable-dst: true)
    _seq("a", "b")
    _seq("c", "b")
    _seq("a", "b", enable-dst: true)
    _seq("a", "b")
    _seq("c", "b")

    _evt("b", "disable")
    _evt("b", "disable")
    _evt("b", "disable")
  })
}

#make-diagram(_seq)
#pagebreak()
#make-diagram(_seq.with(outer-lifeline-connect: true))
