The Boston online retailer, set to report earnings on Thursday, is facing widening losses, declining active customers and a general slowdown in the pace of e-commerce sales.