Lichess ChessBase-ChessMaster Mix Pack

Sound replacement with ChessMaster move and Fritz capture

// ==UserScript==
// @name        Lichess ChessBase-ChessMaster Mix Pack
// @namespace   http://example.com
// @description Sound replacement with ChessMaster move and Fritz capture
// @include     http://*.lichess.org/*
// @version     1.1
// @grant       none
// ==/UserScript==
 
 
 
 
 
 
 
 
 
 $.sound = (function() {
     
  
     var Move = new Audio();
   Move.src = 'data:audio/wav;base64,UklGRqouAABXQVZFZm10IBAAAAABAAEAIlYAAESsAAACABAAZGF0YYYuAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAP///////wAAAAAAAAAAAAAAAP///////wAAAQAAAAAAAAAAAAAAAAAAAAAA//8AAAAAAAAAAAAA/////////////wAAAAD//wAAAAD+/wAAAAD//wAA///+/wAA//8AAAAAAAD///7//v8AAP//AAAAAP//AAD/////AQD///7/AAAAAAAA///+/wAA//8AAAEA///+/////v8AAAAAAAAAAP//AAAAAP7/AAAAAAAAAQAAAAAAAQD9/wAAAAD+/wAAAAABAAMAAQABAAMAAAABAAAABAAHAAUAAwAEAAIABQAIAAUABgAGAAYABgADAAUABQAFAAQABQAGAAUAAwADAAUAAwAHAAkABQAEAAUABAAFAAQABQAFAAYABAAEAAcACAAEAAYABgAHAAkACQAHAAwACgAJAAkACgAOAAoAEQAJAAoACwAMAAsACAAFAAkAAwAGAAUAAQD8/wAA+v/8//r/+//4//L/8f/r/+P/3//g/9n/0//O/8z/w/+8/7f/s/+g/5z/jP+B/2r/Yf9Y/0b/K/8l/xz/CP/y/t/+tf6c/oD+af5D/h/+4P2j/WL9Hv3m/Kv8VfzI+2b7C/ts+sL5EflS+Jf3vfba9cr0zvPx8j/ySfG38BLwqu/H733wQ/Hr8Qjz7PQu97z5f/yt/7MCRAYsClwOlBJMFq0ZmRzqHpMgeiGSISshKiCDHm8c+hlAFycUdRB5DG4IeARjAGP8kfhH9TXyn+++7XTsy+vg67LsWO4+8KXyoPUW+b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qACkAKgAsACkAKwAvAC0ALAAsACoAKAAmACIAIQAeABwAFwAWABMADwASAA4ACQAGAAYABgAEAAQABQAEAAUABgABAAMAAQAAAAEA///9//3/+f/0//L/7f/r/+f/5P/d/9n/1P/R/9H/yf/F/8X/w//A/8L/wv/C/8f/yP/K/8//1f/X/+L/5v/t//X//P8AAAgAEAAVAB4AKAApAC0AMQAwADQANQAvAC0ALQAoACUAJAAaABIAEgAIAAAA///6//T/8v/s/+T/3v/Z/9f/1P/R/83/y//O/8//zv/R/9P/1P/a/9z/4P/o/+v/7//2//j/+////wAAAgADAAUABgAFAAQAAgAAAAAA/f/3//H/7f/l/9//2f/U/8//yP/H/8H/s/+x/7L/qf+o/6r/pv+m/6r/rP+u/7L/uP+8/8L/yv/M/9H/2v/g/+b/7P/x//r//f8AAAYACQALAA8ADQALAAwADAAKAAgABwAFAAIAAAD///v/+P/1//L/8v/v/+r/7P/s/+v/6v/r/+7/8f/x//T/9f/3//n//P/9//z//P///wAAAAACAAAA////////AAAAAP7//v/8//v/+f/2//X/9v/y/+3/7P/r/+j/5//n/+b/5f/l/+P/4//l/+f/5v/p/+v/6//u//D/8f/0//f/+P/6////AAACAAMABQAHAAkACQANAA4ADQAOABAADgAMAA4ADwAPABAADwAQABEAEgAUABYAFwAaAB0AHgAgACEAIgAkACQAIwAlACgAJAAjACQAJQAhAB0AGwAbABkAGAAWABEADQALAAkABwADAAAAAAAAAAAA/v/8//j/9//4//j/9//5//v//f//////AAADAAQABgAJAAoACAAJAAsADAAOAA0ADgANAAwACgAIAAYABQADAAEAAAD///7/+//6//f/9f/0//P/8f/z//b/9v/4//r//P///wEAAwAJAAwADAASABgAGwAdACIAJAAjACUAJQAlACgAKAApACkAJwAlACYAJQAgAB8AHgAZABQAEwASAA4ADQAKAAYABAACAAAAAAD///7//f/+//3//P/+//7//v8AAAAAAQADAAQABQAGAAYABwAHAAUABQADAAIAAQD///3//P/4//b/8//v/+z/6f/k/+D/3v/b/9j/1//V/9D/0f/V/9T/1f/Y/9f/2P/a/9v/3v/e/9//4//m/+n/7f/v//D/8v/0//b/9v/5//v/+v/7//3/+v/5//r/+v/5//n/+P/3//f/9f/z//L/8//w//D/8P/v//H/9P/0//T/9P/2//j/+//+/wAAAQAAAAIABAAFAAcACQAJAAsAEQASABQAFwAVABQAFgATABEADwANAA0ACwAIAAYABAADAAAA/v/8//f/9f/z/+7/7P/q/+f/4//k/+T/5P/j/+P/4v/l/+n/6v/s//H/8v/0//f/+f/5//z/AAAAAAAABAAEAAYACgAGAAQABgACAAAAAQD+////AAD7//r//P/1//T/9f/x//D/8v/y//P/9v/2//X/+P/5//f/+//+//3/AAAEAAQABwAMAAsADQAPAA4ADwAQAA8AEQASABIAEwAUABIADwARABEADQAOAA8ADgAOAA8ADgAPABAADgAPAA4ADQAQABIAEQATABMAEgATABQAFAATABMAFQAVABUAEwAQABEAEgAQAA8ADQAJAAgACQAIAAcABQADAAEAAAAAAAAAAAAAAAAAAAAAAP//AAAAAP//AAD/////AAAAAP7//f/+//3/+f/9//3/9P/1//r/8v/w//T/7f/o/+z/6f/k/+b/5v/i/+f/6f/h/+T/6f/o/+z/8f/v//T/+f/6//7/AAD+/wIABAADAAgADAAMAAwADQAPABAAEAAQAA4ADQAPAA8ADQAKAAgACQAIAAYABQAFAAYABAAAAAAAAAAAAAEAAgABAAMAAgABAAYACAAIAAsACwAIAAkACAAIAAoABwAFAAQAAQAAAAAAAAD+//v/9//1//P/9f/y/+3/7v/s/+r/7f/t/+r/7f/t/+v/8P/z//P/9f/6//v//P8AAAEAAQAGAAgACQAOAA0ADgATABQAFAAVABMAFAAVABMAEgAUABQAEwASABMAEwARABEAEAAQABMAFAATABQAFQATABEAEAAQABAAEgATABUAEwAUABgAFwAVABUAFAATABQAEgARABIADwAPAA0ACgALAAgABQAGAAYABAACAAAAAAAAAP///v/9//r/+f/4//f/9v/0//P/8v/x//D/7//v//D/7//v//H/8f/y//P/8v/0//X/9v/4//n/+v/7//r/+//9//7///8AAAAAAAABAAEAAQACAAEAAwAEAAMABAADAAMABQAFAAIAAwAEAAMABQAEAAMABAACAAAAAQACAAEAAgACAAEAAAABAAAAAAD9//v//P/8//n/+//8//r/+v/7//v/+f/5//n/+f/5//j/9//5//j/9//6//j/9f/2//X/9f/3//X/9P/1//P/9P/1//L/8v/y//L/8//y//P/8//x//H/8f/v//L/8f/w//H/7//t//H/8f/x//L/7//v//D/7v/w//P/8P/x//L/8P/x//P/9f/3//j/9//5//v//P/8//7//f/+////AAAAAAAAAAAAAAAAAAAAAAEAAgACAAEAAAAAAAAAAQAAAP//AAAAAAAA//////7//f/8//v/+//8//v/+//8//r/+v/8//3//P/+/////P/9//7//f/+/wAA/v/8//3//P/9/wAA/v/7//7//f/7//z//f/6//n//P/7//r//P/8//3//f/8//z//v/+////AAD//wAAAQAAAAIABAAEAAUABQAGAAcACAAJAAkACQAKAAoACgAMAA0ADgAOAA0ADQAPAA0ADAAPAAwACQAKAAgABgAJAAgABgAIAAcABQAGAAUABAAEAAQABQAFAAUABQAFAAUABwAIAAkACgAKAAoACQAIAAkACgAJAAsACQAIAAgABwAGAAcABQAEAAUAAQACAAEAAAABAAAA+v/9//z/+f/5//j/9P/z//X/9f/1//b/9v/z//b/+P/2//n/+//6//7/AAD+/wAAAQABAAMAAgAAAAIABQAFAAUABwAGAAUABgAFAAQABAADAAAAAAABAAAAAAAAAP3/+v/6//n/+f/5//n/+f/6//n/+//+//3//f/+//3///8BAAAAAQADAAMABAAHAAcACAAJAAgABwAJAAkACAAJAAcABgAFAAMAAwADAAIAAgABAAAAAAAAAAAA///9//7//v/8//7/AAD//wAAAAD///3//P/9//3//f/9//3//f/9//7////9//7//v/8//7/AAD+//3//v/8//z//f/8//3//v/8//z//v///wAAAAD///3//v//////AAD//wAAAAD+////AAAAAAAA/////wAAAAABAAEAAAAAAAAAAAABAAAAAAAAAAAAAAACAAEAAgABAAAAAAAAAAIABAADAAcACAAFAAoACQAEAAgACQAGAAcACAAFAAQABAADAAIAAQABAAAAAAAAAAAAAAD///7////8//r/+v/5//r//P/9///////+/////v///wAAAAAAAAEAAAAAAAEAAQAAAAIAAgACAAMAAwAEAAUAAgABAAMABQAEAAMAAwAEAAQABAAFAAUABQAGAAcABQACAAMABAACAAMABQAEAAMABQAFAAUABgAGAAQABAAEAAQABAAFAAQABQAEAAIAAgACAAMABAACAAEAAQACAAEAAQAAAAAAAAAAAAEAAAAAAAAA/v/9////AAD//wAA/f/7//3//v/8//3////7//v//f/6//v//P/6//n/+v/5//r/+P/2//b/9f/2//T/8v/0//L/8P/y/+//8P/x/+7/7//x//P/9v/1//b/9//3//z//f/6//3////+/wIAAAAAAAQAAAAAAAMAAAD//wEAAAAAAAAA/////////v8AAP//AQD//wAAAQAAAAMABAAAAAQAAgACAAUAAwABAAYABQADAAUAAgABAAMAAQAEAAEAAwADAAAAAAABAAAAAAACAAEABAACAAEAAwABAAEAAwAAAAEAAQAAAAEAAAD////////+//7//v/8//z/+//5//v/+f/6//r/+P/2//f/9P/0//T/9v/3//f/9v/2//b/9//2//b/9//4//f/9//2//f/+P/3//j/+P/5//r/+P/2//n/+P/4//n/+v/8//v/+v/7//n/+f/7//v/+v/7//v//P/+//7//f/+/wAAAAAAAAAAAQABAAMAAQACAAEAAQACAAEAAAAAAAIAAQABAAEAAAAAAP//AAAAAAAAAAABAAEAAQABAAAAAQAAAAIAAAAEAAQABgAFAAIAAwACAAMAAQACAAIAAgAEAAIAAwABAAAAAAAAAAAAAQAAAAAA//8AAP//AAAAAAAAAAAAAP//AAD//wAA/v8AAP7////+//z/+v/7//z/+//7//n/+v/9//z//P/7//v//f/9//3//v/+//3//f8AAP//AAAAAP3//////wAAAAAAAAAAAQAAAAEAAAADAAEAAQACAAEAAQADAAMAAgAEAAIAAQAEAAIAAwADAAUAAwAGAAUABQAIAAQAAgAHAAMAAQADAAEAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAD//wIAAAACAAIAAAABAAEAAAABAAEAAAAAAAAAAAD//wAAAAD+/wAA/v/9/////f/+//7//P/5////+//7/wAA/P/7/wAA/v/9/wAA///+//////8AAP//AAD/////AAD9//3/AAD9////AAD//wAAAAD+/wAAAAAAAAAA/////wAAAAAAAAAAAAAAAAAA//8DAP7/AQACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///7/+//7//3/+//8//r/+v/4//v/+P/5//v/9//5//r/+f/5//v/+f/7//n/+//7//v/AAAAAP7//////wAAAAAAAAAAAAAAAP//AAAAAAAAAAD//wAAAAAAAAAAAAAAAAAA//8AAP//AAAAAAAAAAAAAP//AAAAAAAAAgAAAAEAAQADAAMABQAEAAMAAwADAAQABQACAAIAAgACAAEAAAAAAAAAAAAAAP3//f/8//r//P/7//3//f/9//3/+//+//3//f/9//3//v///////////wAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAA//8AAP3///8AAP//AAD+//7//f/+////AAAAAP7//////wEA/f///wgA+f8EAAMA/f8CAAQA/v8CAAAAAAAAAAAAAAAAAAAABAD+/wEAAAD+/wEA///+/wAA/v///wIA//8AAAEAAAAAAAIAAAD//wIAAQD//wIAAwACAAAAAgABAAEABAAEAAQABAAEAAMAAwADAAMAAwACAAIAAwAEAAMAAwAFAAMAAgADAAYAAgACAAUABAADAAYABQACAAUABQAGAAQAAgAFAAgAAwACAAYABgAAAAQABQABAAQAAwACAAMABAAGAAUAAAAAAAEAAAAAAAEAAQAAAAAAAwABAAAAAQADAAAAAAABAAAAAQD//wIAAQAAAAIAAAD0/wsA9P/+/wQA9f/9/wEA9v/+//r//f/9//v//v8AAPz/BgD7//7////4/wEAAAD7/wQAAQD//wMA/////wEAAAAAAAAAAAAAAAAAAAD9/wAAAAD//wAA/////wAAAAD//wAAAAABAAAAAAD//wAA///////////9/////f////z////+//3//f8AAP7/+P8BAAAA//8DAAAA//8AAAAAAAD///////8AAP///v///wAA+f/8/wAA+P/8////+//7//v/+v/7//r/+v/7//3/+v8AAPz/+/8AAP//+v/8/wQA///9/wAA///9/wEAAAD9////AAAAAP7/+v/+/wAA/f/8//7//f/9//z//P/+//7///////z//f8AAAAA/v/+/wAAAAD//////////wAAAAAAAAAA//8AAAEA/v///////v////7//v/+//3//f/7//v//P/8//n//v/6//r/+//8//r/+v/+//r/+v/+//7/+v////3/+v/+/wAA/f/8//7//v///wAA9P8BAAkA+P/0/wMAAgD0//7////4//7/AAD4//n//v/+//3/+f/5//7//v/4//3/AAD///3/AAAAAP3/AAADAP7/AAACAAAAAQABAP////8BAAAA/v8AAP///f8AAAEA+P8AAAYA+v8BAP//AAADAP//AAAAAAEAAgAAAAEABAAAAAIAAgAAAAAAAAAAAAEA//8DAAIA//8BAAEA//8AAAAAAAAAAAAAAAD//////v8AAAEA/P///wAAAAAAAAAAAQAAAAAAAAD//wEAAAABAAEAAAAAAAIAAQADAAMAAAABAAQAAQACAAMAAgAFAAMAAwACAAMAAgAAAAIAAQAAAAEAAgAAAAEAAwAAAAEAAgAAAAAAAQABAAEAAQACAAEAAwACAAEAAgAEAAEABAADAAMABAAFAAQAAgADAAUABQACAAIABAADAAIAAwAEAAAAAgAAAAAAAAADAAAAAAAAAAEAAAACAAMAAwAAAAMAAQAAAAEAAgABAAAAAwAAAAEAAgAAAAAAAAAAAAAA//8AAAAAAAAAAP7///8AAP3//v/+//3/AAD/////AAAEAAAA+f8HAAMA+v/+/wUA/v///wIA//8AAAAAAAD8////AAD//wAA+//8/wIA/v/9/wAA///9////AAD9//7/AAAAAP7////+////AAAAAAAAAAD//wAAAwD+//3/AQAAAP7///8AAP7/AAAAAAAAAAD//wAA///+/wAAAAAAAP3/+//+////AAD////////9/wAAAAD+/wAAAAD+//////8AAAAAAAD/////AAAAAAAA//8AAAAAAAAAAAAA/f///wAAAAD//wAA/////wAAAAD/////AAAAAAAAAAD//wIAAAAAAAEAAAAAAAIAAgABAAEABAADAAIAAwACAAMABAACAAEABAABAAAAAwABAAEAAQAAAAAAAAABAP//AAAAAP//AAAAAAAAAAAAAP///v8AAAEAAAAAAAAAAAAAAAEAAAAAAAAAAQABAAEAAAAAAAEAAAAAAAAAAAAAAAAA///+/wAA///+//3//////wAA/P/+/wAA/f/9////+//9//7//f/7/////////////////wAA/////wAAAAD//wAA//8AAAAAAAAAAAAAAAAAAAAAAAABAAEAAAACAAIAAAABAAAAAgABAAAAAAAAAAQAAQAAAAEAAQAAAAEAAAAAAAEAAgABAAEAAAAAAAAAAAAAAAIAAgABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAAAAIAAgABAAEAAAACAAEA//8BAAIAAAABAAEAAAAAAAIA/////wAAAAAAAAAA//8AAP///v///////v8AAAAAAAAAAAAA/////wAAAAAAAP////8AAAAA//8AAAAAAAAAAAEAAAABAAAAAAABAAAAAAADAAIAAAACAAIAAAACAAQAAQACAAIAAQACAAAAAgAAAAIAAQAAAAQAAQAAAAEAAAAAAAEAAQAAAAAAAQAAAAAAAAAAAAAAAAAAAAAA//8BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8AAP///v8AAAAA//8AAAAA//8AAAAA/v8AAAAAAAD+/wAA///9/wAAAAD9///////8///////8//3//P/9//7//f/9//z//f/9//z//P/9//3//f/9//3//f/+//3//v/9//3//v////7//v/+/wAA/v8AAP///v8AAP3///////7/AAAAAP7/AAD//wAAAAD+////AAD/////AAD+/////v/9/////f///////f////3//f///////f////////8AAAAAAAAAAAIAAAABAAIAAAAAAAAAAgAAAAAAAgAAAAAABAAAAAAAAAAAAP////////3///////7////9/////v////7/AAAAAAAA//8AAAAAAAAAAAAAAAAAAAEAAgAAAAAAAAAAAAEAAQAAAAAAAQAAAAEAAAAAAAMAAQACAAAAAQACAAAAAQAAAAAAAgABAAAAAAAAAAAAAAAAAP///v////7//v/////////9//3//v/+/wAA//8AAAAAAAAAAAAAAAD//wAAAQAAAP//AAD+//7/AAD//////v8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAD//wAAAAAAAP/////9//3//f/8//z//v/+//7//v////7///////////8AAAAAAQAAAAMAAgABAAEABAADAAIABAADAAMABAADAAIAAgACAAIAAgABAAEAAQABAAAAAAABAAAAAAABAAAAAAAAAAAAAQAAAAEAAQAAAAMAAgAAAAEAAgACAAIAAQABAAIAAQABAAEAAQABAAEAAAAAAAEAAgABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//AAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAA/v/+//7//f/+//3////+/////v/+//z//f////3//v/+//3//v/+//7//v////7///////7//v/+//////8AAP///v8AAP7//v///////v////////8AAP///////wAA/v///wAAAAAAAAAAAAD//////v///wAAAAAAAP//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAQABAAEAAgABAAEAAQABAAEAAgAEAAAAAQACAAEAAgACAAEAAQACAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAEAAgAAAAEAAAABAAIAAQAAAAAAAQABAAAAAgABAAAAAwAAAP//AAAAAP/////+//7//v/+//7//f/9//z//f/8//z//v/+//3////+////AAAAAAAAAAAAAAEAAAAAAAAAAQAAAAEAAQABAAEAAAAAAAEAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAP//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAAABAAEAAQABAAIAAgABAAIAAwACAAIAAwADAAIAAwACAAMAAwACAAMAAgABAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAP////8AAP///////wAA///+/wAA//8AAP////8AAAAA//////////////7//f8AAP////8AAP7////////////+/wAA/v///////v/+//3//v/9//z//v/+//z//f/9//3//P/9//3//f/9//3//f/9//3//f/9//3//f/9//z//f/9//3//f/9//z//P/9//3//f/+//z//P////3//P/9//z//f/9//3//v/+//3//v////3/AAAAAP//AAAAAAAAAAAAAP//////////AAD///////8AAP////8AAP7//////////////////////wAA/////////////wAAAAD//wAA//8AAAAAAAAAAAAAAAAAAAEAAQAAAAAAAAAAAP//AAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAABAAEAAAAAAAEAAAAAAAEAAAABAAAAAAABAAAAAQABAAAAAQABAAAAAQAAAAEAAAABAAAAAQABAAAAAAABAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAD+/wAAAAAAAAAA//////////////7///////7////+//7//v/+/wAA/////wAA//8AAAAAAAAAAAAAAAABAAAAAQABAAEAAQABAAAAAQABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAQABAAAAAAACAAAAAQAAAAEAAAAAAAEAAAAAAAEAAgACAAEAAgABAAEAAgACAAEAAQABAAEAAAABAAEAAQABAAEAAQAAAAAAAAAAAAEAAgAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//AAAAAP//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAA//8AAAAAAAAAAP////8AAAAA//8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQD+/wAAAQD//wAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAA///+/wAAAAD/////AAAAAP//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8AAAAAAAAAAP//AAAAAP//AAAAAAAAAAD//wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=';
     Move.volume=0.4;
   
    
     
      
        var Take = new Audio();
    Take.src = 'http://play.chessbase.com/Common/Media/Sounds/Board/capture1.mp3';
     Take.volume=0.4;
    
     
      
        var Dong = new Audio();
    Dong.src = 'http://images.chesscomfiles.com/chess-themes/sounds/_MP3_/default/notify.mp3';
      
      
      
      
        
     
      
 
      
     var baseUrl = $('body').data('sound-dir') + '/';
    Howler.volume(lichess.storage.get('sound-volume') || 0.1);
    var audio = {
      dong: 'dong',
      moveW: 'move',
      moveB: 'move',
      take: 'take',
      lowtime: 'lowtime'
    };
    var volumes = {
      lowtime: 0.5
    };
    var get = new $.lazy(function(k) {
      return new Howl({
        src: ['ogg', 'mp3'].map(function(ext) {
          return baseUrl + audio[k] + '.' + ext;
        }),
        volume: volumes[k] || 0.1
      });
    });
    var $control = $('#sound_control');
    var $toggle = $('#sound_state');
    var enabled = function() {
      return !!lichess.storage.get('sound');
    };
    $control.add($toggle).toggleClass('sound_state_on', enabled());
    var play = {
      move: function(white) {
        if (enabled()) {
          if (white) Move.play();
          else Move.play();
        }
      },
      take: function() {
        if (enabled()) Take.play();
      },
      dong: function() {
        if (enabled()) Dong.play();
      },
      lowtime: function() {
        if (enabled()) Lowtime.play();
      }
    };
    var setVolume = function(v) {
      lichess.storage.set('sound-volume', v);
      Howler.volume(v);
    };
    var manuallySetVolume = $.fp.debounce(function(v) {
      setVolume(v);
      play.move(true);
    }, 50);
    $toggle.click(function() {
      var enab = !enabled();
      if (enab) lichess.storage.set('sound', 1);
      else lichess.storage.remove('sound');
      $control.add($toggle).toggleClass('sound_state_on', enab);
      play.dong();
      return false;
    });
    $toggle.one('mouseover', function() {
      $toggle.parent().find('.slider').slider({
        orientation: "vertical",
        min: 0,
        max: 1,
        range: 'min',
        step: 0.01,
        value: Howler.volume(),
        slide: function(e, ui) {
          manuallySetVolume(ui.value);
        }
      });
    });
 
    return play;
  })();