I found a bug within this template that it cannot show the asterisks on the password properly (syntax error). The simple fix is just to use iterators to wrap the ast variable so it becomes an array and is compatible with selectMany:

password = [[...ast].selectMany(6,9)]
ast = *