'use strict';(function(){CodeMirror.keyMap.pcDefault["Alt-Up"]="swapLineUp";CodeMirror.keyMap.pcDefault["Alt-Down"]="swapLineDown";CodeMirror.keyMap.pcDefault["Ctrl-Space"]="autocomplete";CodeMirror.keyMap.macDefault["Alt-Space"]="autocomplete";CodeMirror.commands.backOrClose=function(a){var b=a.execCommand("clearSearch");if(!0===b)return b;if(a.getSelection())return a.setCursor(a.getCursor()),!0;a.execCommand("close")};CodeMirror.keyMap["default"].Esc="backOrClose";CodeMirror.keyMap["default"]["Alt-Pause"]=
"nextTheme";CodeMirror.defineExtension("showInCenter",function(){return CodeMirror.commands.showInCenter(this)});CodeMirror.commands.intelligentTab=function(a){if(a.getOption("indentByTab")){var b=a.getCursor("head"),e=a.getCursor("anchor");a.operation(function(){for(var d=Math.max(b.line,e.line),c=Math.min(b.line,e.line);c<=d;c++)a.indentLine(c,"smart")})}else{if(a.getOption("indentWithTabs"))return CodeMirror.Pass;var d=Array(a.getOption("indentUnit")+1).join(" ");a.replaceSelection(d)}};CodeMirror.keyMap["default"].Tab=
"intelligentTab"})();
