AngularJS webapp working in Chrome but not in Safari

I have an AngularJs 1.0.7 app. I have made a refactoring and compress some js files. I have deployed to production, and for some reason it is working perfectly in Google Chrome v74 but it has stopped working in Safari v11.1.

When you open the website in Safari, nothing happens and I can see next error in the console. Please find screenshot.
enter image description here

Source: AngularJS