Marketable Securities and Fair Value Measurements - Fair Value Measured On A Recurring Basis (Detail) - USD ($) $ in Thousands | Dec. 31, 2017 | Dec. 31, 2016 |
Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | $ 272,031 | $ 250,981 |
Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 39,948 | 59,783 |
Fair Value, Measurements, Recurring | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Notes Receivable, Fair Value Disclosure | 4,476 | 2,047 |
Assets measured at fair value | 581,947 | 406,195 |
Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Notes Receivable, Fair Value Disclosure | 0 | 0 |
Assets measured at fair value | 313,735 | 144,330 |
Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Notes Receivable, Fair Value Disclosure | 0 | 0 |
Assets measured at fair value | 263,736 | 259,818 |
Fair Value, Measurements, Recurring | Fair Value, Inputs, Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Notes Receivable, Fair Value Disclosure | 4,476 | 2,047 |
Assets measured at fair value | 4,476 | 2,047 |
Money market funds | Fair Value, Measurements, Recurring | Cash Equivalents | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Money market funds | 253,155 | 87,179 |
Money market funds | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Cash Equivalents | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Money market funds | 253,155 | 87,179 |
Money market funds | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Cash Equivalents | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Money market funds | 0 | 0 |
Commercial paper | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 58,502 | 42,391 |
Commercial paper | Fair Value, Measurements, Recurring | Cash Equivalents | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Money market funds | 7,246 | 2,499 |
Commercial paper | Fair Value, Measurements, Recurring | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 58,502 | 42,391 |
Commercial paper | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Cash Equivalents | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Money market funds | 0 | 0 |
Commercial paper | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 0 | 0 |
Commercial paper | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Cash Equivalents | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Money market funds | 7,246 | 2,499 |
Commercial paper | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 58,502 | 42,391 |
Corporate bonds | Fair Value, Measurements, Recurring | Cash Equivalents | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Money market funds | 2,016 | 750 |
Corporate bonds | Fair Value, Measurements, Recurring | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 145,557 | 122,689 |
Corporate bonds | Fair Value, Measurements, Recurring | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 24,993 | 40,812 |
Corporate bonds | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Cash Equivalents | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Money market funds | 0 | 0 |
Corporate bonds | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 0 | 0 |
Corporate bonds | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 0 | 0 |
Corporate bonds | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Cash Equivalents | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Money market funds | 2,016 | 750 |
Corporate bonds | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 145,557 | 122,689 |
Corporate bonds | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 24,993 | 40,812 |
U.S. government agency bonds | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 3,006 | 28,908 |
U.S. government agency bonds | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 14,955 | 6,789 |
U.S. government agency bonds | Fair Value, Measurements, Recurring | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 3,006 | 28,908 |
U.S. government agency bonds | Fair Value, Measurements, Recurring | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 14,955 | 6,789 |
U.S. government agency bonds | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 0 | 0 |
U.S. government agency bonds | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 0 | 0 |
U.S. government agency bonds | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 3,006 | 28,908 |
U.S. government agency bonds | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 14,955 | 6,789 |
Israeli funds | Fair Value, Measurements, Recurring | Other assets | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Other assets | 3,075 | 2,956 |
Israeli funds | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Other assets | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Other assets | 0 | 0 |
Israeli funds | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Other assets | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Other assets | 3,075 | 2,956 |
Municipal Securities | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | 5,847 |
Municipal Securities | Fair Value, Measurements, Recurring | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | 5,847 |
Municipal Securities | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | 0 |
Municipal Securities | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | 5,847 |
Asset-backed Securities | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | 177 |
Asset-backed Securities | Fair Value, Measurements, Recurring | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | 45,146 |
Asset-backed Securities | Fair Value, Measurements, Recurring | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | 177 |
Asset-backed Securities | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | 45,146 |
Asset-backed Securities | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | 0 |
Asset-backed Securities | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | 0 |
Asset-backed Securities | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | 177 |
Certificates of Deposit | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 4,386 | 6,000 |
Certificates of Deposit | Fair Value, Measurements, Recurring | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 4,386 | 6,000 |
Certificates of Deposit | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 0 | 0 |
Certificates of Deposit | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 4,386 | 6,000 |
U.S. Government Treasury Bonds | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 60,580 | 45,146 |
U.S. Government Treasury Bonds | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | 12,005 |
U.S. Government Treasury Bonds | Fair Value, Measurements, Recurring | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 60,580 | |
U.S. Government Treasury Bonds | Fair Value, Measurements, Recurring | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | 12,005 |
U.S. Government Treasury Bonds | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | 60,580 | |
U.S. Government Treasury Bonds | Fair Value, Measurements, Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | 12,005 |
U.S. Government Treasury Bonds | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Short-term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | $ 0 | |
U.S. Government Treasury Bonds | Fair Value, Measurements, Recurring | Significant Other Observable Inputs (Level 2) | Long Term Investments | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Investments | | $ 0 |