Text this: Modal transformation of nonstationary electromagnetic field in unbounded nonlinear medium