      if (versionArray && versionArray.length > 1) {
                        versions = versionArray[1];
                    }
                } else if (i === 'Safari') {
                    const versionArray = UserAgent.match(/version\/([\d.]+)/);
                    if (versionArray && versionArray.length > 1) {
                        versions = versionArray[1];
                    }
                } else if (i === 'Edge') {
                    const versionArray = UserAgent.match(/edge\/([\d