v3.19.3.a.u2
Quarterly Financial Data (Unaudited) - Summary of the Company's Information on Total Revenue, Gross Profit, Net Income (Loss) and Earnings Per Share by Quarter (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 12 Months Ended
Dec. 31, 2019
Sep. 30, 2019
Jun. 30, 2019
Mar. 31, 2019
Dec. 31, 2018
Sep. 30, 2018
Jun. 30, 2018
Mar. 31, 2018
Dec. 31, 2019
Dec. 31, 2018
Dec. 31, 2017
Quarterly Financial Information Disclosure [Abstract]                      
Total Revenue $ 411,230 $ 260,928 $ 250,101 $ 206,662 $ 275,739 $ 173,381 $ 156,810 $ 136,576 $ 1,128,921 $ 742,506 $ 512,763
Gross Profit 161,647 118,477 114,209 100,891 112,291 78,993 77,752 63,112 495,224 332,148 199,833
Net income (loss) attributable to common stockholders $ (15,717) $ (25,155) $ (9,333) $ (9,732) $ 6,778 $ (9,527) $ 526 $ (6,634) $ (59,937) $ (8,857) $ (63,509)
Basic and diluted net loss per share attributable to common stockholders $ (0.13) $ (0.22) $ (0.08) $ (0.09)         $ (0.52) $ (0.08) $ (2.24)
Basic net income (loss) per share attributable to common stockholders         $ 0.06 $ (0.09) $ 0.01 $ (0.07)      
Diluted net income (loss) per share attributable to common stockholders         $ 0.05 $ (0.09) $ 0.00 $ (0.07)