Text this: Event-Triggered Bipartite Formation Control for Switched Nonlinear Multi-Agent Systems with Function Constraints on States