Text this: Semigroup-theoretic analysis of supply-chain disruptions and resilience.