Monolithic all-fiberized nanosecond laser with kilowatt average power and megawatt peak power