v3.22.0.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Operating activities      
Net loss $ (520,379) $ (1,166,391) $ (579,646)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:      
Depreciation and amortization 14,897 13,871 12,255
Stock-based compensation 778,215 1,270,702 241,970
Deferred income taxes 43,316 (20,385) (7,199)
Impairment of assets held for sale 0 674 23,407
Non-cash operating lease expense 33,821 35,049 0
Unrealized and realized loss (gain) from marketable securities, net 73,311 0 0
Other operating activities 2,722 3,606 2,772
Changes in operating assets and liabilities:      
Accounts receivable (35,237) (108,476) (23,905)
Prepaid expenses and other current assets (10,929) (18,565) 18,809
Other assets (3,345) (8,605) (22,251)
Accounts payable 57,767 (34,681) 23,424
Accrued liabilities 15,245 38,505 3,733
Deferred revenue, current and noncurrent 24,732 (30,905) (134,396)
Customer deposits, current and noncurrent (104,944) (230,873) 279,226
Operating lease liabilities, current and noncurrent (32,156) (43,639) 0
Other noncurrent liabilities (3,185) 3,505 (3,414)
Net cash used in operating activities 333,851 (296,608) (165,215)
Investing activities      
Purchases of property and equipment (12,627) (12,236) (13,096)
Purchases of marketable securities (308,315) 0 0
Proceeds from the sale of assets held for sale 0 942,529 100,000
Purchases of equity method investments 0 (2,934) (25,868)
Return of capital from equity method investment 0 0 17,000
Purchases of alternative investments (50,941) 0 0
Purchases of privately-held securities (23,009) 0 0
Other investing activities (3,020) 250 0
Net cash used in investing activities (397,912) (14,920) (21,964)
Financing activities      
Proceeds from the issuance of common stock, net of issuance costs 0 199,369 544,413
Proceeds from issuance of debt, net of issuance costs 507,455 298,829 16,897
Principal payments on borrowings (200,000) (400,000) (150,000)
Proceeds from the exercise of common stock options 0 0 7,500
Repurchase of common stock 0 (3,777) (11,202)
Redemption of redeemable convertible preferred stock 0 0 (168,000)
Repurchase of convertible preferred stock 0 0 (13,873)
Other financing activities (708) (497) (1,202)
Net cash provided by financing activities 306,747 1,036,453 324,533
Effect of foreign exchange on cash, cash equivalents, and restricted cash (3,918) 1,259 (2,227)
Net increase (decrease) in cash, cash equivalents, and restricted cash 238,768 726,184 135,127
Cash, cash equivalents, and restricted cash - beginning of period 2,128,146 1,401,962 1,266,835
Cash, cash equivalents, and restricted cash - end of period 2,366,914 2,128,146 1,401,962
Supplemental disclosures of cash flow information:      
Cash paid for income taxes 4,131 14,283 8,579
Cash paid for interest 2,774 11,432 2,710
Supplemental disclosures of non-cash investing and financing information:      
Reclassification of redeemable convertible preferred stock into convertible preferred stock upon expiration of redemption option 0 0 4,163
Convertible Preferred Stock [Member]      
Supplemental disclosures of non-cash investing and financing information:      
Conversion of stock 0 10,810 7,375
Redeemable Convertible Preferred Stock [Member]      
Supplemental disclosures of non-cash investing and financing information:      
Conversion of stock 0 0 26,069
Conversion of Redeemable Convertible Preferred Stock to Common Stock [Member]      
Supplemental disclosures of non-cash investing and financing information:      
Conversion of stock 0 2,138,988 0
Conversion Of Convertible Preferred Stock Warrants Into Common Stock Warrants [Member]      
Supplemental disclosures of non-cash investing and financing information:      
Conversion of stock $ 0 $ 31,007 $ 0