XML 17 R7.htm IDEA: XBRL DOCUMENT v3.22.2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2022
Jun. 30, 2021
Cash flows from operating activities:    
Net loss $ (80,701) $ (108,978)
Adjustments to reconcile net loss to net cash used in operating activities:    
Depreciation expense 20,586 13,346
Amortization of intangible assets 10,618 10,620
Amortization of right-of-use assets and other 13,378 12,660
Amortization of debt discount and issuance costs 1,739 1,269
Amortization of deferred contract costs 3,989 2,946
Stock-based compensation 75,000 64,264
Provision for credit losses 529 (195)
Interest on finance lease (1,240) (735)
Loss on disposals of property and equipment 854 27
Amortization and accretion of discounts and premiums on investments 1,851 0
Net gain on extinguishment of debt (54,391) 0
Other adjustments 61 813
Changes in operating assets and liabilities:    
Accounts receivable (4,122) (5,612)
Prepaid expenses and other current assets (4,812) (5,494)
Other assets (6,399) (5,089)
Accounts payable 844 162
Accrued expenses 1,162 (3,835)
Operating lease liabilities (12,837) (12,856)
Other liabilities 4,021 8,804
Net cash used in operating activities (29,870) (27,883)
Cash flows from investing activities:    
Purchases of marketable securities (355,479) (333,868)
Sales of marketable securities 161,853 12,497
Maturities of marketable securities 367,880 57,253
Business acquisitions, net of cash acquired and other related payments (25,999) 0
Advance payment for purchase of property and equipment (29,310) 0
Purchases of property and equipment (8,815) (11,013)
Proceeds from sale of property and equipment 241 0
Capitalized internal-use software (8,736) (2,680)
Purchase of intangible assets 0 (2,093)
Net cash provided by (used in) investing activities 101,635 (279,904)
Cash flows from financing activities:    
Issuance of convertible note, net of issuance costs 0 930,775
Payments of other debt issuance costs 0 (1,351)
Net cash paid for debt extinguishment (177,082) 0
Repayments of finance lease liabilities (11,029) (6,579)
Cash received for restricted stock sold in advance of vesting conditions 10,655 0
Cash paid for early sale of restricted shares (7,037) 0
Proceeds from exercise of vested stock options 4,769 5,605
Proceeds from employee stock purchase plan 3,977 4,564
Net cash provided by (used in) financing activities (175,747) 933,014
Effects of exchange rate changes on cash, cash equivalents, and restricted cash (319) (141)
Net increase (decrease) in cash, cash equivalents, and restricted cash (104,301) 625,086
Cash, cash equivalents, and restricted cash at beginning of period 166,961 63,880
Cash, cash equivalents, and restricted cash at end of period 62,660 688,966
Supplemental disclosure of cash flow information:    
Cash paid for interest 1,304 759
Cash paid for income taxes, net of refunds received 180 175
Property and equipment additions not yet paid in cash 3,636 1,814
Stock-based compensation capitalized to internal-use software 3,522 754
Assets obtained in exchange for operating lease obligations 15,676 13,481
Assets obtained in exchange for finance lease obligations 22,178 15,538
Net non-cash change in operating lease assets and liabilities associated with modifications and terminations 2,960 0
Purchase consideration associated with business combination, accrued but not paid 8,126 0
Costs associated with business combination, accrued but not paid 1,873 0
Reconciliation of cash, cash equivalents, and restricted cash as shown in the statements of cash flows:    
Cash and cash equivalents 62,510 687,986
Restricted cash, current 150 87
Restricted cash, non-current 0 893
Total cash, cash equivalents, and restricted cash $ 62,660 $ 688,966