es-pattern-with-midpoint