| 445 | } |
| 446 | |
| 447 | function splitHidden(timeString) { |
| 448 | if (!(typeof timeString === "string")) return timeString; |
| 449 | let firstNumberIndex = timeString.split("").findIndex((c) => c > 0 && c <= 9); |
| 450 | if (firstNumberIndex === -1) |
| 451 | return `<span class="hidden">${timeString}</span>`; |
| 452 | |
| 453 | let hiddenPart = timeString.slice(0, firstNumberIndex); |
| 454 | let hightlightPart = timeString.slice(firstNumberIndex); |
| 455 | return `<span class="hidden">${hiddenPart}</span>${hightlightPart}`; |
| 456 | } |
| 457 | |
| 458 | function formatSeconds(sec, keepAll = false) { |
| 459 | if (FormatCache.has(sec)) return FormatCache.get(sec); |