(self.webpackChunkopencelium=self.webpackChunkopencelium||[]).push([[568,292],{55292:(e,o,n)=>{!function(e){function o(o,n,t){var i,r=o.getWrapperElement();return(i=r.appendChild(document.createElement("div"))).className=t?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(r,"dialog-opened"),i}function n(e,o){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=o}e.defineExtension("openDialog",(function(t,i,r){r||(r={}),n(this,null);var u=o(this,t,r.bottom),s=!1,l=this;function a(o){if("string"==typeof o)d.value=o;else{if(s)return;s=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),l.focus(),r.onClose&&r.onClose(u)}}var c,d=u.getElementsByTagName("input")[0];return d?(d.focus(),r.value&&(d.value=r.value,!1!==r.selectValueOnOpen&&d.select()),r.onInput&&e.on(d,"input",(function(e){r.onInput(e,d.value,a)})),r.onKeyUp&&e.on(d,"keyup",(function(e){r.onKeyUp(e,d.value,a)})),e.on(d,"keydown",(function(o){r&&r.onKeyDown&&r.onKeyDown(o,d.value,a)||((27==o.keyCode||!1!==r.closeOnEnter&&13==o.keyCode)&&(d.blur(),e.e_stop(o),a()),13==o.keyCode&&i(d.value,o))})),!1!==r.closeOnBlur&&e.on(u,"focusout",(function(e){null!==e.relatedTarget&&a()}))):(c=u.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){a(),l.focus()})),!1!==r.closeOnBlur&&e.on(c,"blur",a),c.focus()),a})),e.defineExtension("openConfirm",(function(t,i,r){n(this,null);var u=o(this,t,r&&r.bottom),s=u.getElementsByTagName("button"),l=!1,a=this,c=1;function d(){l||(l=!0,e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u),a.focus())}s[0].focus();for(var f=0;f<s.length;++f){var p=s[f];!function(o){e.on(p,"click",(function(n){e.e_preventDefault(n),d(),o&&o(a)}))}(i[f]),e.on(p,"blur",(function(){--c,setTimeout((function(){c<=0&&d()}),200)})),e.on(p,"focus",(function(){++c}))}})),e.defineExtension("openNotification",(function(t,i){n(this,a);var r,u=o(this,t,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;function a(){s||(s=!0,clearTimeout(r),e.rmClass(u.parentNode,"dialog-opened"),u.parentNode.removeChild(u))}return e.on(u,"click",(function(o){e.e_preventDefault(o),a()})),l&&(r=setTimeout(a,l)),a}))}(n(4631))},14568:(e,o,n)=>{!function(e){"use strict";function o(e,o){var n=Number(o);return/^[-+]/.test(o)?e.getCursor().line+n:n-1}e.defineOption("search",{bottom:!1}),e.commands.jumpToLine=function(e){var n=e.getCursor();!function(e,o,n,t,i){e.openDialog?e.openDialog(o,i,{value:t,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,t))}(e,function(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,(function(t){var i;if(t)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(t))e.setCursor(o(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(t)){var r=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(r=n.line+r+1),e.setCursor(r-1,n.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(t))&&e.setCursor(o(e,i[1]),n.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(n(4631),n(55292))}}]);