Net Loss per Share (Details) - USD ($) $ / shares in Units, $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2019 |
Dec. 31, 2018 |
Dec. 31, 2017 |
|
| Numerator | |||
| Net loss | $ (235,222) | $ (38,330) | $ (29,423) |
| Denominator: | |||
| Weighted-average shares of common stock outstanding, basic and diluted (in shares) | 61,393,666 | 55,833,492 | 49,062,611 |
| Net loss per share, basic and diluted (in dollars per share) | $ (3.83) | $ (0.69) | $ (0.60) |
| Stock options | |||
| Potential dilutive securities that would have been anti-dilutive | |||
| Potential dilutive securities that would have been anti-dilutive due to net loss (in shares) | 4,373,895 | 4,057,788 | 4,559,176 |
| Restricted stock units | |||
| Potential dilutive securities that would have been anti-dilutive | |||
| Potential dilutive securities that would have been anti-dilutive due to net loss (in shares) | 3,694,915 | 1,139,045 | 1,413,423 |