v3.20.4
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2020
Dec. 31, 2019
Dec. 31, 2018
Operating activities      
Net loss $ (1,166,391) $ (579,646) $ (580,027)
Adjustments to reconcile net loss to net cash used in operating activities:      
Depreciation and amortization 13,871 12,255 13,910
Stock-based compensation 1,270,702 241,970 248,503
Change in fair value of warrants (811) 3 (48,093)
Impairment of assets 674 23,407 23,700
Non-cash operating lease expense 35,049 0 0
Other operating activities 4,417 2,769 420
Changes in operating assets and liabilities:      
Accounts receivable (108,476) (23,905) (10,483)
Prepaid expenses and other current assets (18,565) 18,806 (19,361)
Other assets (28,990) (29,447) (3,424)
Accounts payable (34,681) 23,424 10,968
Accrued liabilities 38,505 3,733 26,424
Deferred revenue, current and noncurrent (30,905) (134,396) 173,744
Customer deposits, current and noncurrent (230,873) 279,226 126,028
Operating lease liability, current and noncurrent (43,639) 0 0
Deferred rent 0 (3,414) (1,321)
Other noncurrent liabilities 3,505 0 0
Net cash used in operating activities (296,608) (165,215) (39,012)
Investing activities      
Purchases of property and equipment (12,236) (13,096) (13,004)
Purchase of assets held for sale 0 0 (2,400)
Proceeds from the sale of assets held for sale 250 0 8,620
Purchase of equity method investment (2,934) (25,868) 0
Return of capital from equity method investment 0 17,000 0
Net cash used in investing activities (14,920) (21,964) (6,784)
Financing activities      
Proceeds from the issuance of common stock, net of issuance costs 942,529 100,000 96,480
Proceeds from issuance of debt, net of issuance costs 199,369 544,413 0
Principal payments on borrowings (400,000) (150,000) (56,491)
Proceeds from the exercise of common stock options 298,829 16,897 12,671
Repurchase of common stock (3,777) (11,202) (7,706)
Proceeds from the sale of redeemable convertible preferred stock 0 7,500 0
Redemption of redeemable convertible preferred stock 0 (168,000) 0
Repurchase of convertible preferred stock 0 (13,873) 0
Other financing activities (497) (1,202) 1,200
Net cash provided by financing activities 1,036,453 324,533 46,154
Effect of foreign exchange on cash, cash equivalents, and restricted cash 1,259 (2,227) (3,703)
Net increase (decrease) in cash, cash equivalents, and restricted cash 726,184 135,127 (3,345)
Cash, cash equivalents, and restricted cash - beginning of period 1,401,962 1,266,835 1,270,180
Cash, cash equivalents, and restricted cash - end of period 2,128,146 1,401,962 1,266,835
Supplemental disclosures of cash flow information:      
Cash paid for income taxes 14,283 8,579 17,098
Cash paid for interest 11,432 2,710 2,438
Supplemental disclosures of non-cash investing and financing information:      
Accretion of redeemable convertible preferred stock to redemption value 0 0 18,098
Convertible Preferred Stock [Member]      
Supplemental disclosures of non-cash investing and financing information:      
Conversion of stock 10,810 7,375 14,499
Redeemable Convertible Preferred Stock [Member]      
Supplemental disclosures of non-cash investing and financing information:      
Conversion of stock 0 26,069 0
Conversion of Redeemable Convertible Preferred Stock into Convertible Preferred Stock [Member]      
Supplemental disclosures of non-cash investing and financing information:      
Conversion of stock 0 4,163 0
Conversion of Redeemable Convertible Preferred Stock to Common Stock [Member]      
Supplemental disclosures of non-cash investing and financing information:      
Conversion of stock 2,138,988 0 0
Conversion Of Convertible Preferred Stock Warrants Into Common Stock Warrants [Member]      
Supplemental disclosures of non-cash investing and financing information:      
Conversion of stock $ 31,007 $ 0 $ 0