/* Cached on Thu, 30 Jan 2025 23:28:49 */
function oAuth() {
    function showOAuthDialog(provider, callback) {
        var winSizes = {
            vk: "width=656, height=377",
            fb: "width=410, height=307",
            twitter: "width=750, height=765",
            mail: "width=445, height=407",
            google: "width=450, height=630",
            linkedin: "width=456, height=672"
        };
        window.open(
            '/oAuth/' + provider + '/?callback=' + callback,
            '_blank',
            ['left=100, top=100', winSizes[provider]].join(', ')
        );
    }
    this.twitter = function(callback) {
        if (typeof(window[callback]) != 'function')
            throw('Callback must be a function!');
        showOAuthDialog('twitter', callback);
    }
    this.google = function(callback) {
        if (typeof(window[callback]) != 'function')
            throw('Callback must be a function!');
        showOAuthDialog('google', callback);
    }
    this.mail = function(callback) {
        if (typeof(window[callback]) != 'function')
            throw('Callback must be a function!');
        showOAuthDialog('mail', callback);
    }
    this.vk = function(callback) {
        if (typeof(window[callback]) != 'function')
            throw('Callback must be a function!');
        showOAuthDialog('vk', callback);
    }
    this.fb = function(callback) {
        if (typeof(window[callback]) != 'function')
            throw('Callback must be a function!');
        showOAuthDialog('fb', callback);
    };
    this.linkedin = function(callback) {
        if (typeof(window[callback]) != 'function')
            throw('Callback must be a function!');
        showOAuthDialog('linkedin', callback);
    }
}
window.oA = new oAuth();