Text this: Nonequilibrium transport and the fluctuation theorem in the thermodynamic behaviors of nonlinear photonic systems