Income Taxes - Schedule of Aggregate Changes in Balance of Gross Unrecognized Tax Benefits (Detail) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2016 |
Dec. 31, 2015 |
Dec. 31, 2014 |
|
| Income Tax Disclosure [Abstract] | |||
| Unrecognized tax benefits, beginning balance | $ 99,127 | $ 41,377 | $ 13,370 |
| Increases in balances related to prior year tax positions | 28,677 | 6,626 | 56 |
| Increases in balances related to current year tax positions | 62,805 | 51,124 | 27,951 |
| Acquired uncertain tax positions | 13,327 | ||
| Unrecognized tax benefits, ending balance | $ 203,936 | $ 99,127 | $ 41,377 |