I tried looking this up on Gemini AI, specifically inputting the chord progressions as
I, bVII7, IV (6-3), minIV I(6-4) 7V I
According to what it said, it appeared to use accidentals/borrowed chords, but when I asked it if this was used in the last part of the song
Edelweiss, edelweiss. Bless my homeland forever!
It said that it was not common to see that chord progression, which, from what it told me, was most commonly seen in rock, pop, and bluegrass, not in a traditional folk song. However, I've heard that progression used in the initial performance in A-flat, and again in B-flat when the captain and Maria sang it on stage. The song comes from the Sound of Music, a musical that was later adopted into film in 1965.
Does anyone know more about why this was done or has any more information about it? I really enjoy that particular arrangement and would love to play it on piano and/or guitar, as I don't like the covers that just use standard progressions. I like to shift the bass note around for unusual voicing effects, as well. For context, I am including one of the performances below.