Features of the generation of a collisionless electrostatic shock wave in a laser-ablation plasma