Filter transactions by customer and highlight the top customer

Build an app that displays a list of customer transactions, lets the user filter it by customer name, and highlights the transactions of the top customer. The transactions array is provided in the starter code.
Customer: amount, for example Alice Anderson: 84 or Evelyn Edwards: -84.<label>, aria-label, or placeholder). As the user types, show only the transactions whose customer name contains the typed text anywhere, ignoring case. An empty filter shows every transaction; a filter with no matches shows none.<mark> element. If several customers tie for the highest total, highlight all of them. The highlight updates as the filter changes.Data:
const transactions = [
{ id: "t_101", customer: "Alice Anderson", amount: 84 },
{ id: "t_102", customer: "Bob Brown", amount: 30 },
// ... 14 transactions in total (see the starter code)
];
Example:
Filter: "" -> all 14 transactions; "Henry Harris: 140" is highlighted (highest total)
Filter: "son" -> Alice Anderson: 84, Jack Johnson: 60, Nina Nelson: 44; "Alice Anderson: 84" is highlighted
Filter: "g" -> Gina Green: 104, Ivy Ingram: 10, Kara King: -26; "Gina Green: 104" is highlighted
Filter: "zzz" -> no transactions
The tests type into your filter input and read the text on the screen, like a real user would. You don’t need test ids, specific class names, or an exact HTML structure. They only check that:
aria-label, placeholder, or name contains “Filter”.Customer: amount. Capitalization and extra spacing don’t matter.display: none or the hidden attribute).<mark> elements includes the top customer’s name and no other customer’s name.