Here some diagrams used to develop of the code:
Diagrams.net:
view source file - edit file on diagrams.net
Mermaid:
view source file
Dot (Graphviz):