Debt - Components of Interest Expense, Related Fees, Losses on Debt Extinguishment and Cash Paid for Interest Expense for Debt (Details) - USD ($) $ in Thousands |
12 Months Ended |
Dec. 31, 2022 |
Dec. 31, 2021 |
Dec. 31, 2020 |
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
$ 54,749
|
[1] |
$ 54,447
|
[2] |
$ 59,605
|
[3] |
Amortization of debt issuance costs |
|
4,800
|
|
10,451
|
[4] |
5,005
|
|
Total interest expense and fees |
|
62,347
|
|
67,523
|
|
66,874
|
|
Cash paid for interest expense |
|
52,075
|
|
51,469
|
|
58,274
|
|
Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
2,798
|
|
2,625
|
|
2,264
|
|
SBA Debentures |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
3,997
|
[1] |
1,580
|
[2] |
3,464
|
[3] |
Amortization of debt issuance costs |
|
581
|
|
452
|
[4] |
551
|
|
Total interest expense and fees |
|
4,578
|
|
2,032
|
|
4,015
|
|
Cash paid for interest expense |
|
2,835
|
|
2,272
|
|
4,285
|
|
SBA Debentures | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
0
|
|
0
|
|
0
|
|
2022 Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
1,011
|
[1],[5] |
7,102
|
[2] |
7,307
|
[3] |
Amortization of debt issuance costs |
|
50
|
[5] |
360
|
[4] |
360
|
|
Total interest expense and fees |
|
1,061
|
[5] |
7,462
|
|
7,667
|
|
Cash paid for interest expense |
|
2,293
|
[5] |
6,938
|
|
6,938
|
|
2022 Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
0
|
[5] |
0
|
|
0
|
|
July 2024 Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
5,009
|
[1] |
5,009
|
[2] |
5,009
|
[3] |
Amortization of debt issuance costs |
|
295
|
|
295
|
[4] |
294
|
|
Total interest expense and fees |
|
5,304
|
|
5,304
|
|
5,303
|
|
Cash paid for interest expense |
|
5,009
|
|
5,008
|
|
5,009
|
|
July 2024 Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
0
|
|
0
|
|
0
|
|
February 2025 Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
2,140
|
[1] |
2,140
|
[2] |
1,938
|
[3] |
Amortization of debt issuance costs |
|
115
|
|
115
|
[4] |
103
|
|
Total interest expense and fees |
|
2,255
|
|
2,255
|
|
2,041
|
|
Cash paid for interest expense |
|
2,140
|
|
2,140
|
|
1,070
|
|
February 2025 Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
0
|
|
0
|
|
0
|
|
June 2025 Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
3,017
|
[1] |
3,017
|
[2] |
1,743
|
[3] |
Amortization of debt issuance costs |
|
162
|
|
162
|
[4] |
92
|
|
Total interest expense and fees |
|
3,179
|
|
3,179
|
|
1,835
|
|
Cash paid for interest expense |
|
3,017
|
|
3,017
|
|
1,509
|
|
June 2025 Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
0
|
|
0
|
|
0
|
|
June 2025 3-Year Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
[1] |
1,567
|
|
|
|
|
|
Amortization of debt issuance costs |
|
81
|
|
|
|
|
|
Total interest expense and fees |
|
1,648
|
|
|
|
|
|
Cash paid for interest expense |
|
1,500
|
|
|
|
|
|
June 2025 3-Year Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
0
|
|
|
|
|
|
March 2026 A Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
2,250
|
[1] |
2,250
|
[2] |
356
|
[3] |
Amortization of debt issuance costs |
|
95
|
|
93
|
[4] |
14
|
|
Total interest expense and fees |
|
2,345
|
|
2,343
|
|
370
|
|
Cash paid for interest expense |
|
2,250
|
|
1,875
|
|
0
|
|
March 2026 A Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
0
|
|
0
|
|
0
|
|
March 2026 B Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
2,275
|
[1] |
1,877
|
[2] |
|
|
Amortization of debt issuance costs |
|
103
|
|
85
|
[4] |
|
|
Total interest expense and fees |
|
2,378
|
|
1,962
|
|
|
|
Cash paid for interest expense |
|
2,275
|
|
1,138
|
|
|
|
March 2026 B Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
0
|
|
0
|
|
|
|
September 2026 Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
8,698
|
[1] |
2,513
|
[2] |
|
|
Amortization of debt issuance costs |
|
815
|
|
236
|
[4] |
|
|
Total interest expense and fees |
|
9,513
|
|
2,749
|
|
|
|
Cash paid for interest expense |
|
8,531
|
|
0
|
|
|
|
September 2026 Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
0
|
|
0
|
|
|
|
January 2027 Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
[1] |
11,630
|
|
|
|
|
|
Amortization of debt issuance costs |
|
782
|
|
|
|
|
|
Total interest expense and fees |
|
12,412
|
|
|
|
|
|
Cash paid for interest expense |
|
5,906
|
|
|
|
|
|
January 2027 Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
0
|
|
|
|
|
|
2031 Asset-Backed Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
[1] |
3,975
|
|
|
|
|
|
Amortization of debt issuance costs |
|
209
|
|
|
|
|
|
Total interest expense and fees |
|
4,184
|
|
|
|
|
|
Cash paid for interest expense |
|
3,671
|
|
|
|
|
|
2031 Asset-Backed Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
0
|
|
|
|
|
|
2033 Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
2,500
|
[1] |
2,500
|
[2] |
2,500
|
[3] |
Amortization of debt issuance costs |
|
108
|
|
108
|
[4] |
108
|
|
Total interest expense and fees |
|
2,608
|
|
2,608
|
|
2,608
|
|
Cash paid for interest expense |
|
2,500
|
|
2,500
|
|
2,500
|
|
2033 Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
0
|
|
0
|
|
0
|
|
2022 Convertible Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
923
|
[1],[5] |
10,734
|
[2] |
10,733
|
[3] |
Amortization of debt issuance costs |
|
148
|
[5] |
892
|
[4] |
892
|
|
Total interest expense and fees |
|
1,071
|
[5] |
11,626
|
|
11,625
|
|
Cash paid for interest expense |
|
5,004
|
[5] |
10,062
|
|
10,062
|
|
2022 Convertible Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
0
|
[5] |
0
|
|
0
|
|
MUFG Bank Facility |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
4,548
|
[1],[6] |
672
|
[2],[7] |
|
|
Amortization of debt issuance costs |
|
941
|
[6] |
1,228
|
[4],[7] |
|
|
Total interest expense and fees |
|
7,774
|
[6] |
3,806
|
[7] |
|
|
Cash paid for interest expense |
|
4,097
|
[6] |
672
|
[7] |
|
|
MUFG Bank Facility | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
2,285
|
[6] |
1,906
|
[7] |
|
|
SMBC Facility |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
1,209
|
[1] |
57
|
[2] |
|
|
Amortization of debt issuance costs |
|
315
|
|
33
|
[4] |
|
|
Total interest expense and fees |
|
2,037
|
|
134
|
|
|
|
Cash paid for interest expense |
|
1,047
|
|
0
|
|
|
|
SMBC Facility | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
$ 513
|
|
44
|
|
|
|
April 2025 Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
|
|
1,969
|
[2],[8] |
3,938
|
[3] |
Amortization of debt issuance costs |
|
|
|
1,667
|
[4],[8] |
381
|
|
Total interest expense and fees |
|
|
|
3,636
|
[8] |
4,319
|
|
Cash paid for interest expense |
|
|
|
2,635
|
[8] |
3,938
|
|
April 2025 Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
|
|
0
|
[8] |
0
|
|
2027 Asset-Backed Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
|
|
4,888
|
[2],[8] |
9,116
|
[3] |
Amortization of debt issuance costs |
|
|
|
2,176
|
[4],[8] |
512
|
|
Total interest expense and fees |
|
|
|
7,064
|
[8] |
9,628
|
|
Cash paid for interest expense |
|
|
|
4,972
|
[8] |
9,139
|
|
2027 Asset-Backed Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
|
|
0
|
[7] |
0
|
|
2028 Asset-Backed Notes |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
|
|
8,139
|
[2],[8] |
11,758
|
[3] |
Amortization of debt issuance costs |
|
|
|
2,351
|
[4],[8] |
257
|
|
Total interest expense and fees |
|
|
|
10,490
|
[8] |
12,015
|
|
Cash paid for interest expense |
|
|
|
8,240
|
[8] |
11,756
|
|
2028 Asset-Backed Notes | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
|
|
0
|
[8] |
0
|
|
Wells Facility |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
|
|
|
0
|
[2],[8] |
25
|
[3] |
Amortization of debt issuance costs |
|
|
|
198
|
[4],[8] |
175
|
|
Total interest expense and fees |
|
|
|
873
|
[8] |
719
|
|
Cash paid for interest expense |
|
|
|
0
|
[8] |
26
|
|
Wells Facility | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
|
|
|
$ 675
|
[8] |
519
|
|
Union Bank Facility |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Interest expense |
[3],[9] |
|
|
|
|
1,718
|
|
Amortization of debt issuance costs |
[9] |
|
|
|
|
1,266
|
|
Total interest expense and fees |
[9] |
|
|
|
|
4,729
|
|
Cash paid for interest expense |
[9] |
|
|
|
|
2,042
|
|
Union Bank Facility | Unused Facility Other Fees [Member] |
|
|
|
|
|
|
|
Debt Instrument [Line Items] |
|
|
|
|
|
|
|
Unused facility and other fees (loan fees) |
[9] |
|
|
|
|
$ 1,745
|
|
|
|