Pathway to chaos through hierarchical superfluidity in blue-detuned cavity-BEC systems