XML 20 R8.htm IDEA: XBRL DOCUMENT v3.22.4
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2022
Dec. 31, 2021
Cash flows from operating activities:        
Net loss $ (205,031) $ (22,328) $ (218,772) $ (433,532)
Adjustments to reconcile net loss to net cash provided by operating activities:        
Depreciation and amortization 15,476 12,298 30,096 25,602
Stock-based compensation 265,785 145,820 439,416 246,727
Deferred income taxes 3,291 (427) 4,813 (2,041)
Net loss on exchange derivative and capped call transactions 0 0 0 424,482
Amortization of debt discount and issuance cost 117 16,975 235 26,816
Net loss on strategic investments 7,563 22,135 19,076 53,557
Net foreign currency gain (2,203) (5,258) (5,828) (11,656)
Gain on a non-cash sale of a controlling interest of a subsidiary (2,066) 0 (45,158) 0
Other (5) 297 (5) (318)
Changes in operating assets and liabilities:        
Accounts receivable, net (107,805) (54,992) (46,491) (68,203)
Prepaid expenses and other assets (2,690) (3,897) (25,367) (25,082)
Accounts payable 18,587 10,284 49,734 20,507
Accrued expenses and other liabilities 58,260 21,119 (50,183) (63,287)
Deferred revenue 101,246 64,429 91,401 77,884
Net cash provided by operating activities 150,525 206,455 242,967 271,456
Cash flows from Investing activities:        
Business combinations, net of cash acquired 0 (2,701) (600) (3,839)
Purchases of property and equipment (4,040) (12,581) (20,536) (19,462)
Purchases of strategic investments (1,100) (42,000) (9,450) (95,000)
Purchases of marketable securities 0 0 (10,000) (21,003)
Proceeds from maturities of marketable securities 18,750 7,600 47,700 61,487
Proceeds from sales of marketable securities and strategic investments 363 0 621 186,262
Net cash provided by (used in) investing activities 13,973 (49,682) 7,735 108,445
Cash flows from financing activities:        
Proceeds from term loan facility 0 350,000 0 1,000,000
Repayment of exchangeable senior notes 0 (1,234,376) 0 (1,548,686)
Proceeds from settlement of capped call transactions 0 104,519 0 135,497
Proceeds from other financing arrangements 0 4 1,396 5
Net cash provided by (used in) financing activities 0 (779,853) 1,396 (413,184)
Effect of foreign exchange rate changes on cash, cash equivalents and restricted cash 3,522 (246) (1,417) (2,355)
Net increase (decrease) in cash, cash equivalents, and restricted cash 168,020 (623,326) 250,681 (35,638)
Cash, cash equivalents, and restricted cash at beginning of period 1,469,949 1,519,213 1,386,686 931,023
Net decrease in cash and cash equivalents included in assets held for sale 0 4,182 602 4,684
Cash, cash equivalents, and restricted cash at end of period 1,637,969 900,069 1,637,969 900,069
Reconciliation of cash, cash equivalents, and restricted cash within the consolidated balance sheets to the amounts shown in the consolidated statements of cash flows above:        
Cash and cash equivalents     1,385,265  
Restricted cash included in other non-current assets 1,354 675 1,354 675
Total cash, cash equivalents, and restricted cash 1,637,969 900,069 1,637,969 900,069
Supplemental disclosures of cash flow information:        
Income taxes paid, net of refunds 63,742 42,611 92,962 53,941
Interest paid 6,813 3,603 12,388 4,802
Non-cash investing and financing activities:        
Purchase of property and equipment included in accrued expenses and other current liabilities $ 1,385 $ 5,062 $ 1,385 $ 5,062