v3.22.0.1

Fair Value Measurement and Financial Instruments | 12 Months Ended
--- | ---
Dec. 31, 2021
Fair Value Disclosures [Abstract] |
Fair Value Measurement and Financial Instruments | Fair Value Measurements and Financial Instruments The following table summarizes the Company’s financial assets and liabilities measured at fair value on a recurring basis (in thousands):
| As of December 31, 2020
| Level 1 | Level 2 | Level 3 | Total
Assets |  |  |  |
Cash equivalents: |  |  |  |
Money market funds | $ | 22,676 |  | $ | — |  | $ | — |  | $ | 22,676 |
Certificates of deposit | 278,281 |  | — |  | — |  | 278,281 |
U.S. government debt securities | — |  | 1,392,966 |  | — |  | 1,392,966 |
Commercial paper | — |  | 779,527 |  | — |  | 779,527 |
Corporate debt securities | — |  | 229,633 |  | — |  | 229,633 |
| 300,957 |  | 2,402,126 |  | — |  | 2,703,083 |
Marketable securities: |  |  |  |
Certificates of deposit | 142,991 |  | — |  | — |  | 142,991 |
U.S. government and government agency debt securities | — |  | 65,867 |  | — |  | 65,867 |
Commercial paper | — |  | 241,623 |  | — |  | 241,623 |
Corporate debt securities | — |  | 267,618 |  | — |  | 267,618 |
Mortgage-backed and asset-backed securities | — |  | 37,353 |  | — |  | 37,353 |
Mutual funds | — |  | 155,248 |  | — |  | 155,248 |
| 142,991 |  | 767,709 |  | — |  | 910,700 |
Funds receivable and amounts held on behalf of customers: |  |  |  |
U.S. government and government agency debt securities | — |  | 466,219 |  | — |  | 466,219 |
Prepaids and other current assets: |  |  |  |
Foreign exchange derivative assets | — |  | 12,478 |  | — |  | 12,478 |
Other assets, noncurrent: |  |  |  |
Corporate debt securities | — |  | — |  | 11,490 |  | 11,490 |
Total assets at fair value | $ | 443,948 |  | $ | 3,648,532 |  | $ | 11,490 |  | $ | 4,103,970 |
Liabilities |  |  |  |
Accrued expenses and other current liabilities: |  |  |  |
Foreign exchange derivative liabilities | $ | — |  | $ | 32,250 |  | $ | — |  | $ | 32,250 |
Derivative warrant liability (Note 10) | — |  | — |  | 985,181 |  | 985,181 |
Total liabilities at fair value | $ | — |  | $ | 32,250 |  | $ | 985,181 |  | $ | 1,017,431 |
| As of December 31, 2021
| Level 1 | Level 2 | Level 3 | Total
Assets |  |  |  |
Cash equivalents: |  |  |  |
Money market funds | $ | 1,923,184 |  | $ | — |  | $ | — |  | $ | 1,923,184 |
Certificates of deposit | 31,117 |  | — |  | — |  | 31,117 |
Commercial paper | — |  | 163,959 |  | — |  | 163,959 |
Corporate debt securities | — |  | 41,439 |  | — |  | 41,439 |
| 1,954,301 |  | 205,398 |  | — |  | 2,159,699 |
Marketable securities: |  |  |  |
Certificates of deposit | 364,234 |  | — |  | — |  | 364,234 |
U.S. government and government agency debt securities | — |  | 863 |  | — |  | 863 |
Commercial paper | — |  | 993,004 |  | — |  | 993,004 |
Corporate debt securities | — |  | 862,901 |  | — |  | 862,901 |
Mortgage-backed and asset-backed securities | — |  | 34,036 |  | — |  | 34,036 |
| 364,234 |  | 1,890,804 |  | — |  | 2,255,038 |
Funds receivable and amounts held on behalf of customers: |  |  |  |
Money market funds | 466,319 |  | — |  | — |  | 466,319 |
Prepaids and other current assets: |  |  |  |
Foreign exchange derivative assets | — |  | 25,918 |  | — |  | 25,918 |
Other assets, noncurrent: |  |  |  |
Corporate debt securities | — |  | — |  | 10,451 |  | 10,451 |
Total assets at fair value | $ | 2,784,854 |  | $ | 2,122,120 |  | $ | 10,451 |  | $ | 4,917,425 |
Liabilities |  |  |  |
Accrued expenses and other current liabilities: |  |  |  |
Foreign exchange derivative liabilities | $ | — |  | $ | 10,280 |  | $ | — |  | $ | 10,280 |
Total liabilities at fair value | $ | — |  | $ | 10,280 |  | $ | — |  | $ | 10,280 |
The following table presents additional information about investments that are measured at fair value for which the Company has utilized Level 3 inputs to determine fair value (in thousands):
| December 31,
| 2020 |  | 2021
| Derivative Warrant Liability | Other Assets, Noncurrent |  | Derivative Warrant Liability | Other Assets, Noncurrent
Balance, beginning of year | $ | — |  | $ | 13,029 |  |  | $ | 985,181 |  | $ | 11,490 |
Additions | 116,641 |  | — |  |  | — |  | — |
Reclassifications to equity | — |  | — |  |  | (1,277,168) |  | — |
Total realized and unrealized gains (losses): |  |  |  |  |
Included in earnings | 868,540 |  | — |  |  | 291,987 |  | — |
Included in other comprehensive income (loss) | — |  | (1,539) |  |  | — |  | (1,039) |
Balance, end of year | $ | 985,181 |  | $ | 11,490 |  |  | $ | — |  | $ | 10,451 |
Changes in unrealized gains or losses included in other comprehensive income (loss) related to investments held at the reporting date | $ | — |  | $ | (1,539) |  |  | $ | — |  | $ | (1,039) |
There were no transfers of financial instruments between valuation levels during the years ended December 31, 2020 and 2021. The Company amended the anti-dilution feature in the warrant agreements associated with the Second Lien Credit Agreement which resulted in a change in classification from liability to equity. Accordingly, the Company recorded $292.0 million in other income (expense), net through March 30, 2021, the modification date, and as such the warrants were no longer subject to marked-to-market charges. The balance of $1.3 billion was then reclassified from liability to equity as the amended warrants met the requirements for equity classification. Refer to Note 10, Debt, for additional information. The following table presents additional information about valuation techniques and inputs used for investments that are measured at fair value and categorized within Level 3 as of December 31, 2020 (fair value amounts in thousands):
| Fair Value | Valuation Technique | Unobservable Inputs | Inputs Value
Liability |  |  |  |
Derivative warrant liability | $ | 985,181 |  | Black-Scholes option-pricing model | Stock volatility | 44.4 | %
|  |  | Risk-free rate | 0.9 | %
|  |  | Expected term | 9.3 years
Derivatives Not Designated as Hedging Instruments As of December 31, 2020, the fair value of foreign exchange derivative assets and liabilities totaled $12.5 million and $32.3 million, respectively, with the aggregate notional amount totaling $1.4 billion. As of December 31, 2021, the fair value of foreign exchange derivative assets and liabilities totaled $25.9 million and $10.3 million, respectively, with the aggregate notional amount totaling $2.4 billion. Derivative assets are included in prepaids and other current assets and derivative liabilities are included in accrued expenses and other current liabilities in the consolidated balance sheets. The Company recorded total net realized gains (losses) of $(21.7) million and $19.3 million and net unrealized gains (losses) of $(24.6) million and $35.4 million for the years ended December 31, 2020 and 2021, respectively, related to foreign exchange derivative assets and liabilities. The realized and unrealized gains and losses on non-designated derivatives are reported in other income (expense), net in the consolidated statements of operations. The cash flows related to derivative instruments not designated as hedging instruments are classified within operating activities in the consolidated statements of cash flows. The Company has master netting arrangements with the respective counterparties to its derivative contracts, which are designed to reduce credit risk by permitting net settlement of transactions with the same counterparty. The Company presents its derivative assets and derivative liabilities at their gross fair values in its consolidated balance sheets. As of December 31, 2020, the potential effect of these rights of set-off associated with the Company’s derivative contracts would be a reduction to both assets and liabilities of $11.4 million, resulting in net derivative assets of $1.1 million and net derivative liabilities of $20.9 million. As of December 31, 2021, the potential effect of these rights of set-off associated with the Company’s derivative contracts would be a reduction to both assets and liabilities of $10.3 million, resulting in net derivative assets of $15.6 million.

X
- References No definition available. + Details
Name: | us-gaap_FairValueDisclosuresAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The entire disclosure for the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined), and the measurements of those instruments as well as disclosures related to the fair value of non-financial assets and liabilities. Such disclosures about the financial instruments, assets, and liabilities would include: (1) the fair value of the required items together with their carrying amounts (as appropriate); (2) for items for which it is not practicable to estimate fair value, disclosure would include: (a) information pertinent to estimating fair value (including, carrying amount, effective interest rate, and maturity, and (b) the reasons why it is not practicable to estimate fair value; (3) significant concentrations of credit risk including: (a) information about the activity, region, or economic characteristics identifying a concentration, (b) the maximum amount of loss the entity is exposed to based on the gross fair value of the related item, (c) policy for requiring collateral or other security and information as to accessing such collateral or security, and (d) the nature and brief description of such collateral or security; (4) quantitative information about market risks and how such risks are managed; (5) for items measured on both a recurring and nonrecurring basis information regarding the inputs used to develop the fair value measurement; and (6) for items presented in the financial statement for which fair value measurement is elected: (a) information necessary to understand the reasons for the election, (b) discussion of the effect of fair value changes on earnings, (c) a description of [similar groups] items for which the election is made and the relation thereof to the balance sheet, the aggregate carrying value of items included in the balance sheet that are not eligible for the election; (7) all other required (as defined) and desired information. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueDisclosuresTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration