define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"],function(d,l,b){var k=d("../../lib/dom");k.importCssString("#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);-webkit-transition: all 0.5s;transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 1000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}");
b.exports.overlayPage=function(d,h,c,a,g,e){function m(a){27===a.keyCode&&f.click()}c=c?"top: "+c+";":"";g=g?"bottom: "+g+";":"";a=a?"right: "+a+";":"";e=e?"left: "+e+";":"";var f=document.createElement("div"),b=document.createElement("div");f.style.cssText="margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; background-color: rgba(0, 0, 0, 0.3);";f.addEventListener("click",function(){document.removeEventListener("keydown",m);f.parentNode.removeChild(f);d.focus();
f=null});document.addEventListener("keydown",m);b.style.cssText=c+a+g+e;b.addEventListener("click",function(a){a.stopPropagation()});c=k.createElement("div");c.style.position="relative";a=k.createElement("div");a.className="ace_closeButton";a.addEventListener("click",function(){f.click()});c.appendChild(a);b.appendChild(c);b.appendChild(h);f.appendChild(b);document.body.appendChild(f);d.blur()}});
define("ace/ext/menu_tools/get_editor_keyboard_shortcuts",["require","exports","module","ace/lib/keys"],function(d,l,b){d("../../lib/keys");b.exports.getEditorKeybordShortcuts=function(b){var d=[],h={};b.keyBinding.$handlers.forEach(function(c){c=c.commandKeyBinding;for(var a in c){var b=a.replace(/(^|-)\w/g,function(a){return a.toUpperCase()}),e=c[a];Array.isArray(e)||(e=[e]);e.forEach(function(a){"string"!=typeof a&&(a=a.name);h[a]?h[a].key+="|"+b:(h[a]={key:b,command:a},d.push(h[a]))})}});return d}});
define("ace/ext/keybinding_menu","require exports module ace/editor ace/ext/menu_tools/overlay_page ace/ext/menu_tools/get_editor_keyboard_shortcuts".split(" "),function(d,l,b){function k(b){if(!document.getElementById("kbshortcutmenu")){var c=d("./menu_tools/overlay_page").overlayPage,a=d("./menu_tools/get_editor_keyboard_shortcuts").getEditorKeybordShortcuts,g=a(b),a=document.createElement("div"),g=g.reduce(function(a,b){return a+'<div class="ace_optionsMenuEntry"><span class="ace_optionsMenuCommand">'+
b.command+'</span> : <span class="ace_optionsMenuKey">'+b.key+"</span></div>"},"");a.id="kbshortcutmenu";a.innerHTML="<h1>Keyboard Shortcuts</h1>"+g+"</div>";c(b,a,"0","0","0",null)}}var n=d("ace/editor").Editor;b.exports.init=function(b){n.prototype.showKeyboardShortcuts=function(){k(this)};b.commands.addCommands([{name:"showKeyboardShortcuts",bindKey:{win:"Ctrl-Alt-h",mac:"Command-Alt-h"},exec:function(b,a){b.showKeyboardShortcuts()}}])}});
(function(){window.require(["ace/ext/keybinding_menu"],function(){})})();
