Regularity for one-phase Bernoulli problems with discontinuous weights and applications | Synapse