XML 52 R34.htm IDEA: XBRL DOCUMENT v3.24.0.1
Cash and Cash Equivalents, and Investments and Fair Value Measurements (Tables)
12 Months Ended
Dec. 31, 2023
Cash and Cash Equivalents [Abstract]  
Schedule of Cash and Cash Equivalents, and Investments
The following tables present our cash and cash equivalents, and investments’ fair value level classification, adjusted cost, unrealized gain, unrealized loss and fair value as of December 31, 2023 and 2022 (in thousands):

 December 31, 2023
 Fair Value LevelAdjusted CostUnrealized GainUnrealized LossFair Value
Cash and cash equivalents:   
Cash$45,050 $— $— $45,050 
Money market fundsLevel 190,707 — — 90,707 
Total cash and cash equivalents$135,757 $— $— $135,757 
Short-term investments:   
Corporate debt securitiesLevel 2$69,548 $— $(170)$69,378 
U.S. treasury securitiesLevel 125,734 — (114)25,620 
Agency bonds
Level 2
99,505 — (246)99,259 
Total short-term investments$194,787 $— $(530)$194,257 
Long-term investments:
Corporate debt securitiesLevel 2$191,467 $898 $(213)$192,152 
U.S. treasury securitiesLevel 157,287 165 (57)57,395 
Total long-term investments$248,754 $1,063 $(270)$249,547 

 December 31, 2022
 Fair Value LevelAdjusted CostUnrealized GainUnrealized LossFair Value
Cash and cash equivalents:   
Cash$33,532 $— $— $33,532 
Money market fundsLevel 1440,145 — — 440,145 
Total cash and cash equivalents$473,677 $— $— $473,677 
Short-term investments:   
Commercial paperLevel 2$11,744 $— $(29)$11,715 
Corporate debt securitiesLevel 2491,459 — (4,130)487,329 
U.S. treasury securities
Level 1
85,271 — (342)84,929 
Total short-term investments$588,474 $— $(4,501)$583,973 
Long-term investments:
Corporate debt securitiesLevel 2$125,735 $158 $(909)$124,984 
U.S. treasury securitiesLevel 1$30,633 $122 $— $30,755 
Agency bondsLevel 260,635 — (141)60,494 
Total long-term investments$217,003 $280 $(1,050)$216,233 
Schedule of Realized Gain (Loss) Related to Investments
The following table presents the gross realized gain and loss related to our investments (in thousands):
 Years Ended December 31,
 202320222021
Realized gain$346 $64 $84 
Realized loss(2,452)(9,739)(262)
Realized (loss)/gain on sale of investments$(2,106)$(9,675)$(178)
Schedule of Available-for-sale Securities Reconciliation
The following table presents our cash equivalents and investments' adjusted cost and fair value by contractual maturity as of December 31, 2023 (in thousands):
December 31, 2023
 CostFair Value
Due within one year$194,787 $194,257 
Due after one year through three years248,754 249,547 
Investments not due at a single maturity date90,707 90,707 
Total$534,248 $534,511