XML 27 R8.htm IDEA: XBRL DOCUMENT v3.24.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Cash flows from operating activities:      
Net loss $ (133,088,000) $ (190,774,000) $ (222,697,000)
Adjustments to reconcile net loss to net cash used in operating activities:      
Depreciation expense 51,602,000 42,619,000 28,799,000
Amortization of intangible assets 20,424,000 21,696,000 21,238,000
Non-cash lease expense 22,678,000 25,448,000 23,065,000
Amortization of debt discount and issuance costs 2,476,000 3,169,000 3,185,000
Amortization of deferred contract costs 15,548,000 8,916,000 6,294,000
Stock-based compensation 136,303,000 145,796,000 140,488,000
Deferred income taxes (900,000) 0 0
Provision for credit losses 2,025,000 2,406,000 196,000
(Gain) loss on disposals of property and equipment 505,000 854,000 (300,000)
Amortization and accretion of discounts and premiums on investments (646,000) 3,137,000 2,221,000
Impairment of operating lease right-of-use assets 744,000 2,083,000 0
Impairment expense 4,316,000 0 0
Net gain on extinguishment of debt (52,416,000) (54,391,000) 0
Other adjustments 648,000 3,688,000 4,000
Changes in operating assets and liabilities:      
Accounts receivable (32,945,000) (27,359,000) (14,563,000)
Prepaid expenses and other current assets 8,709,000 (6,758,000) (4,777,000)
Other assets (23,137,000) (35,396,000) (10,423,000)
Accounts payable 382,000 (4,724,000) 146,000
Accrued expenses (7,856,000) 8,289,000 4,261,000
Operating lease liabilities (22,074,000) (22,778,000) (22,629,000)
Other liabilities 7,064,000 4,447,000 7,010,000
Net cash (used in) provided by operating activities 362,000 (69,632,000) (38,482,000)
Cash flows from investing activities:      
Purchases of marketable securities (132,233,000) (355,479,000) (928,155,000)
Sales of marketable securities 25,625,000 161,918,000 66,527,000
Maturities of marketable securities 433,767,000 535,040,000 118,085,000
Business acquisitions, net of cash acquired 0 (25,902,000) (1,169,000)
Advance payment for purchase of property and equipment 0 (42,197,000) 0
Purchases of property and equipment (10,976,000) (19,975,000) (34,816,000)
Proceeds from sale of property and equipment 49,000 492,000 588,000
Capitalized internal-use software (21,292,000) (18,146,000) (13,479,000)
Purchases of intangible assets 0 0 (2,092,000)
Net cash (used in) provided by investing activities 294,940,000 235,751,000 (794,511,000)
Cash flows from financing activities:      
Issuance of convertible note, net of issuance costs 0 0 930,775,000
Payments of debt issuance costs 0 0 (1,351,000)
Cash paid for debt extinguishment (310,540,000) (177,082,000) 0
Repayments of finance lease liabilities (27,175,000) (22,532,000) (13,568,000)
Cash received for restricted stock sold in advance of vesting conditions 0 10,655,000 0
Cash paid for early sale of restricted shares 0 (10,655,000) 0
Payment of deferred consideration for business acquisitions (4,393,000) 0 0
Proceeds from exercise of vested stock options 2,169,000 5,688,000 12,626,000
Proceeds from employee stock purchase plan 8,559,000 4,777,000 8,069,000
Net cash (used in) provided by financing activities (331,380,000) (189,149,000) 936,551,000
Effects of exchange rate changes on cash, cash equivalents, and restricted cash 608,000 (390,000) (477,000)
Net increase (decrease) in cash, cash equivalents, and restricted cash (35,470,000) (23,420,000) 103,081,000
Cash, cash equivalents, and restricted cash at beginning of period 143,541,000 166,961,000 63,880,000
Cash, cash equivalents, and restricted cash at end of period 108,071,000 143,541,000 166,961,000
Supplemental disclosure of cash flow information:      
Cash paid for interest 1,574,000 2,656,000 1,938,000
Cash paid for income taxes, net of refunds received 331,000 250,000 267,000
Noncash investing and financing activities:      
Property and equipment additions not yet paid in cash or financed 640,000 1,492,000 18,275,000
Vesting of early-exercised stock options 0 0 405,000
Stock-based compensation capitalized to internal-use software 9,975,000 7,997,000 4,446,000
Assets obtained in exchange for operating lease obligations 5,769,000 29,606,000 32,458,000
Assets obtained in exchange for finance lease obligations 0 23,575,000 31,529,000
Net non-cash change in operating lease assets and liabilities associated with modifications and terminations (4,425,000) 3,126,000 0
Interest paid for finance leases 1,329,000 2,381,000 1,754,000
Purchase consideration associated with business combination, accrued but not paid 0 8,000,000 0
Deployments of prepaid capital equipment 8,665,000 5,184,000 0
Receivable related to shares of restricted stock 0 0 10,655,000
Reconciliation of cash, cash equivalents, and restricted cash as shown in the statements of cash flows      
Cash and cash equivalents 107,921,000 143,391,000 166,068,000
Restricted cash 150,000 150,000 0
Restricted cash included in other assets 0 0 893,000
Total cash, cash equivalents, and restricted cash $ 108,071,000 $ 143,541,000 $ 166,961,000