ber-security.graylog.graylog-plugin-alert-wizard.5.2.1.source-code.fa2a51840478b6cc4fc8ccbcc36d3e83.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graylog-plugin-alert-wizard Show documentation
Show all versions of graylog-plugin-alert-wizard Show documentation
Graylog ${project.artifactId} plugin.
The newest version!
(()=>{var X=(v,C)=>()=>(C||v((C={exports:{}}).exports,C),C.exports);var J=X((j,W)=>{ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(v,C,z){"use strict";var L=v("./lib/dom"),R=v("./lib/oop"),_=v("./lib/event_emitter").EventEmitter,w=v("./lib/lang"),T=v("./range").Range,x=v("./range_list").RangeList,S=v("./keyboard/hash_handler").HashHandler,P=v("./tokenizer").Tokenizer,N=v("./clipboard"),$={CURRENT_WORD:function(t){return t.session.getTextRange(t.session.getWordRange())},SELECTION:function(t,e,n){var l=t.session.getTextRange();return n?l.replace(/\n\r?([ \t]*\S)/g,`
`+n+"$1"):l},CURRENT_LINE:function(t){return t.session.getLine(t.getCursorPosition().row)},PREV_LINE:function(t){return t.session.getLine(t.getCursorPosition().row-1)},LINE_INDEX:function(t){return t.getCursorPosition().row},LINE_NUMBER:function(t){return t.getCursorPosition().row+1},SOFT_TABS:function(t){return t.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(t){return t.session.getTabSize()},CLIPBOARD:function(t){return N.getText&&N.getText()},FILENAME:function(t){return/[^/\\]*$/.exec(this.FILEPATH(t))[0]},FILENAME_BASE:function(t){return/[^/\\]*$/.exec(this.FILEPATH(t))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(t){return this.FILEPATH(t).replace(/[^/\\]*$/,"")},FILEPATH:function(t){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(t){var e=t.session.$mode||{};return e.blockComment&&e.blockComment.start||""},BLOCK_COMMENT_END:function(t){var e=t.session.$mode||{};return e.blockComment&&e.blockComment.end||""},LINE_COMMENT:function(t){var e=t.session.$mode||{};return e.lineCommentStart||""},CURRENT_YEAR:b.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:b.bind(null,{year:"2-digit"}),CURRENT_MONTH:b.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:b.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:b.bind(null,{month:"short"}),CURRENT_DATE:b.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:b.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:b.bind(null,{weekday:"short"}),CURRENT_HOUR:b.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:b.bind(null,{minute:"2-digit"}),CURRENT_SECOND:b.bind(null,{second:"2-digit"})};$.SELECTED_TEXT=$.SELECTION;function b(t){var e=new Date().toLocaleString("en-us",t);return e.length==1?"0"+e:e}var M=function(){this.snippetMap={},this.snippetNameMap={}};(function(){R.implement(this,_),this.getTokenizer=function(){return M.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function e(i){return i=i.substr(1),/^\d+$/.test(i)?[{tabstopId:parseInt(i,10)}]:[{text:i}]}function n(i){return"(?:[^\\\\"+i+"]|\\\\.)"}var l={regex:"/("+n("/")+"+)/",onMatch:function(i,o,r){var s=r[0];return s.fmtString=!0,s.guard=i.slice(1,-1),s.flag="",""},next:"formatString"};return M.$tokenizer=new P({start:[{regex:/\\./,onMatch:function(i,o,r){var s=i[1];return(s=="}"&&r.length||"`$\\".indexOf(s)!=-1)&&(i=s),[i]}},{regex:/}/,onMatch:function(i,o,r){return[r.length?r.shift():i]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(i,o,r){var s=e(i.substr(1));return r.unshift(s[0]),s},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+n("\\|")+"*\\|",onMatch:function(i,o,r){var s=i.slice(1,-1).replace(/\\[,|\\]|,/g,function(u){return u.length==2?u[1]:"\0"}).split("\0").map(function(u){return{value:u}});return r[0].choices=s,[s[0]]},next:"start"},l,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(i,o,r){return r.length&&r[0].expectElse?(r[0].expectElse=!1,r[0].ifEnd={elseEnd:r[0]},[r[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(i,o,r){var s=i[1];return s=="}"&&r.length||"`$\\".indexOf(s)!=-1?i=s:s=="n"?i=`
`:s=="t"?i=" ":"ulULE".indexOf(s)!=-1&&(i={changeCase:s,local:s>"a"}),[i]}},{regex:"/\\w*}",onMatch:function(i,o,r){var s=r.shift();return s&&(s.flag=i.slice(1,-1)),this.next=s&&s.tabstopId?"start":"",[s||i]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(i,o,r){return[{text:i.slice(1)}]}},{regex:/\${\w+/,onMatch:function(i,o,r){var s={text:i.slice(2)};return r.unshift(s),[s]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(i,o,r){var s=r.shift();return this.next=s&&s.tabstopId?"start":"",[s||i]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(i,o,r){var s=r[0];return s.formatFunction=i.slice(2,-1),[r.shift()]},next:"formatString"},l,{regex:/:[\?\-+]?/,onMatch:function(i,o,r){i[1]=="+"&&(r[0].ifEnd=r[0]),i[1]=="?"&&(r[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),M.$tokenizer},this.tokenizeTmSnippet=function(e,n){return this.getTokenizer().getLineTokens(e,n).tokens.map(function(l){return l.value||l})},this.getVariableValue=function(e,n,l){if(/^\d+$/.test(n))return(this.variables.__||{})[n]||"";if(/^[A-Z]\d+$/.test(n))return(this.variables[n[0]+"__"]||{})[n.substr(1)]||"";if(n=n.replace(/^TM_/,""),!this.variables.hasOwnProperty(n))return"";var i=this.variables[n];return typeof i=="function"&&(i=this.variables[n](e,n,l)),i==null?"":i},this.variables=$,this.tmStrFormat=function(e,n,l){if(!n.fmt)return e;var i=n.flag||"",o=n.guard;o=new RegExp(o,i.replace(/[^gim]/g,""));var r=typeof n.fmt=="string"?this.tokenizeTmSnippet(n.fmt,"formatString"):n.fmt,s=this,u=e.replace(o,function(){var h=s.variables.__;s.variables.__=[].slice.call(arguments);for(var d=s.resolveVariables(r,l),y="E",m=0;m1?(U=H[H.length-1].length,K+=H.length-1):U+=E.length,G+=E}else E&&(E.start?E.end={row:K,column:U}:E.start={row:K,column:U})}),{text:G,tabstops:h,tokens:u}};this.getDisplayTextForSnippet=function(e,n){var l=t.call(this,e,n);return l.text},this.insertSnippetForSelection=function(e,n,l){var i=t.call(this,e,n),o=e.getSelectionRange();l&&l.compareRange(o)===0&&(o=l);var r=e.session.replace(o,i.text),s=new p(e),u=e.inVirtualSelectionMode&&e.selection.index;s.addTabstops(i.tabstops,o.start,r,u)},this.insertSnippet=function(e,n,l){var i=this;if(e.inVirtualSelectionMode)return i.insertSnippetForSelection(e,n,l);e.forEachSelection(function(){i.insertSnippetForSelection(e,n,l)},null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var n=e.session.$mode.$id||"";if(n=n.split("/").pop(),n==="html"||n==="php"){n==="php"&&!e.session.$mode.inlinePhp&&(n="html");var l=e.getCursorPosition(),i=e.session.getState(l.row);typeof i=="object"&&(i=i[0]),i.substring&&(i.substring(0,3)=="js-"?n="javascript":i.substring(0,4)=="css-"?n="css":i.substring(0,4)=="php-"&&(n="php"))}return n},this.getActiveScopes=function(e){var n=this.$getScope(e),l=[n],i=this.snippetMap;return i[n]&&i[n].includeScopes&&l.push.apply(l,i[n].includeScopes),l.push("_"),l},this.expandWithTab=function(e,n){var l=this,i=e.forEachSelection(function(){return l.expandSnippetForSelection(e,n)},null,{keepOrder:!0});return i&&e.tabstopManager&&e.tabstopManager.tabNext(),i},this.expandSnippetForSelection=function(e,n){var l=e.getCursorPosition(),i=e.session.getLine(l.row),o=i.substring(0,l.column),r=i.substr(l.column),s=this.snippetMap,u;return this.getActiveScopes(e).some(function(h){var d=s[h];return d&&(u=this.findMatchingSnippet(d,o,r)),!!u},this),u?(n&&n.dryRun||(e.session.doc.removeInLine(l.row,l.column-u.replaceBefore.length,l.column+u.replaceAfter.length),this.variables.M__=u.matchBefore,this.variables.T__=u.matchAfter,this.insertSnippetForSelection(e,u.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(e,n,l){for(var i=e.length;i--;){var o=e[i];if(!(o.startRe&&!o.startRe.test(n))&&!(o.endRe&&!o.endRe.test(l))&&!(!o.startRe&&!o.endRe))return o.matchBefore=o.startRe?o.startRe.exec(n):[""],o.matchAfter=o.endRe?o.endRe.exec(l):[""],o.replaceBefore=o.triggerRe?o.triggerRe.exec(n)[0]:"",o.replaceAfter=o.endTriggerRe?o.endTriggerRe.exec(l)[0]:"",o}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,n){var l=this.snippetMap,i=this.snippetNameMap,o=this;e||(e=[]);function r(h){return h&&!/^\^?\(.*\)\$?$|^\\b$/.test(h)&&(h="(?:"+h+")"),h||""}function s(h,d,y){return h=r(h),d=r(d),y?(h=d+h,h&&h[h.length-1]!="$"&&(h=h+"$")):(h=h+d,h&&h[0]!="^"&&(h="^"+h)),new RegExp(h)}function u(h){h.scope||(h.scope=n||"_"),n=h.scope,l[n]||(l[n]=[],i[n]={});var d=i[n];if(h.name){var y=d[h.name];y&&o.unregister(y),d[h.name]=h}l[n].push(h),h.prefix&&(h.tabTrigger=h.prefix),!h.content&&h.body&&(h.content=Array.isArray(h.body)?h.body.join(`
`):h.body),h.tabTrigger&&!h.trigger&&(!h.guard&&/^\w/.test(h.tabTrigger)&&(h.guard="\\b"),h.trigger=w.escapeRegExp(h.tabTrigger)),!(!h.trigger&&!h.guard&&!h.endTrigger&&!h.endGuard)&&(h.startRe=s(h.trigger,h.guard,!0),h.triggerRe=new RegExp(h.trigger),h.endRe=s(h.endTrigger,h.endGuard,!0),h.endTriggerRe=new RegExp(h.endTrigger))}Array.isArray(e)?e.forEach(u):Object.keys(e).forEach(function(h){u(e[h])}),this._signal("registerSnippets",{scope:n})},this.unregister=function(e,n){var l=this.snippetMap,i=this.snippetNameMap;function o(r){var s=i[r.scope||n];if(s&&s[r.name]){delete s[r.name];var u=l[r.scope||n],h=u&&u.indexOf(r);h>=0&&u.splice(h,1)}}e.content?o(e):Array.isArray(e)&&e.forEach(o)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var n=[],l={},i=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,o;o=i.exec(e);){if(o[1])try{l=JSON.parse(o[1]),n.push(l)}catch{}if(o[4])l.content=o[4].replace(/^\t/gm,""),n.push(l),l={};else{var r=o[2],s=o[3];if(r=="regex"){var u=/\/((?:[^\/\\]|\\.)*)|$/g;l.guard=u.exec(s)[1],l.trigger=u.exec(s)[1],l.endTrigger=u.exec(s)[1],l.endGuard=u.exec(s)[1]}else r=="snippet"?(l.tabTrigger=s.match(/^\S*/)[0],l.name||(l.name=s)):r&&(l[r]=s)}}return n},this.getSnippetByName=function(e,n){var l=this.snippetNameMap,i;return this.getActiveScopes(n).some(function(o){var r=l[o];return r&&(i=r[e]),!!i},this),i}}).call(M.prototype);var p=function(t){if(t.tabstopManager)return t.tabstopManager;t.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=w.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(t)};(function(){this.attach=function(t){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=t,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(t){for(var e=t.action[0]=="r",n=this.selectedTabstop||{},l=n.parents||{},i=(this.tabstops||[]).slice(),o=0;o2&&(this.tabstops.length&&r.push(r.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,r))},this.addTabstopMarkers=function(t){var e=this.editor.session;t.forEach(function(n){n.markerId||(n.markerId=e.addMarker(n,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(t){var e=this.editor.session;t.forEach(function(n){e.removeMarker(n.markerId),n.markerId=null})},this.removeRange=function(t){var e=t.tabstop.indexOf(t);e!=-1&&t.tabstop.splice(e,1),e=this.ranges.indexOf(t),e!=-1&&this.ranges.splice(e,1),e=t.tabstop.rangeList.ranges.indexOf(t),e!=-1&&t.tabstop.splice(e,1),this.editor.session.removeMarker(t.markerId),t.tabstop.length||(e=this.tabstops.indexOf(t.tabstop),e!=-1&&this.tabstops.splice(e,1),this.tabstops.length||this.detach())},this.keyboardHandler=new S,this.keyboardHandler.bindKeys({Tab:function(t){C.snippetManager&&C.snippetManager.expandWithTab(t)||(t.tabstopManager.tabNext(1),t.renderer.scrollCursorIntoView())},"Shift-Tab":function(t){t.tabstopManager.tabNext(-1),t.renderer.scrollCursorIntoView()},Esc:function(t){t.tabstopManager.detach()}})}).call(p.prototype);var f=function(t,e){t.row==0&&(t.column+=e.column),t.row+=e.row},c=function(t,e){t.row==e.row&&(t.column-=e.column),t.row-=e.row};L.importCssString(`
.ace_snippet-marker {
-moz-box-sizing: border-box;
box-sizing: border-box;
background: rgba(194, 193, 208, 0.09);
border: 1px dotted rgba(211, 208, 235, 0.62);
position: absolute;
}`,"snippets.css",!1),C.snippetManager=new M;var a=v("./editor").Editor;(function(){this.insertSnippet=function(t,e){return C.snippetManager.insertSnippet(this,t,e)},this.expandSnippet=function(t){return C.snippetManager.expandWithTab(this,t)}}).call(a.prototype)});ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],function(v,C,z){"use strict";var L=v("../virtual_renderer").VirtualRenderer,R=v("../editor").Editor,_=v("../range").Range,w=v("../lib/event"),T=v("../lib/lang"),x=v("../lib/dom"),S=function($){return"suggest-aria-id:".concat($)},P=function($){var b=new L($);b.$maxLines=4;var M=new R(b);return M.setHighlightActiveLine(!1),M.setShowPrintMargin(!1),M.renderer.setShowGutter(!1),M.renderer.setHighlightGutterLine(!1),M.$mouseHandler.$focusTimeout=0,M.$highlightTagPending=!0,M},N=function(){function $(b){var M=x.createElement("div"),p=new P(M);b&&b.appendChild(M),M.style.display="none",p.renderer.content.style.cursor="default",p.renderer.setStyle("ace_autocomplete"),p.renderer.container.setAttribute("role","listbox"),p.renderer.container.setAttribute("aria-label","Autocomplete suggestions"),p.setOption("displayIndentGuides",!1),p.setOption("dragDelay",150);var f=function(){};p.focus=f,p.$isFocused=!0,p.renderer.$cursorLayer.restartTimer=f,p.renderer.$cursorLayer.element.style.opacity=0,p.renderer.$maxLines=8,p.renderer.$keepTextAreaAtCursor=!1,p.setHighlightActiveLine(!1),p.session.highlight(""),p.session.$searchHighlight.clazz="ace_highlight-marker",p.on("mousedown",function(i){var o=i.getDocumentPosition();p.selection.moveToPosition(o),t.start.row=t.end.row=o.row,i.stop()});var c,a=new _(-1,0,-1,1/0),t=new _(-1,0,-1,1/0);t.id=p.session.addMarker(t,"ace_active-line","fullLine"),p.setSelectOnHover=function(i){i?a.id&&(p.session.removeMarker(a.id),a.id=null):a.id=p.session.addMarker(a,"ace_line-hover","fullLine")},p.setSelectOnHover(!1),p.on("mousemove",function(i){if(!c){c=i;return}if(!(c.x==i.x&&c.y==i.y)){c=i,c.scrollTop=p.renderer.scrollTop;var o=c.getDocumentPosition().row;a.start.row!=o&&(a.id||p.setRow(o),n(o))}}),p.renderer.on("beforeRender",function(){if(c&&a.start.row!=-1){c.$pos=null;var i=c.getDocumentPosition().row;a.id||p.setRow(i),n(i,!0)}}),p.renderer.on("afterRender",function(){var i=p.getRow(),o=p.renderer.$textLayer,r=o.element.childNodes[i-o.config.firstRow],s=document.activeElement;if(r!==o.selectedNode&&o.selectedNode&&(x.removeCssClass(o.selectedNode,"ace_selected"),s.removeAttribute("aria-activedescendant"),o.selectedNode.removeAttribute("id")),o.selectedNode=r,r){x.addCssClass(r,"ace_selected");var u=S(i);r.id=u,p.renderer.container.setAttribute("aria-activedescendant",u),s.setAttribute("aria-activedescendant",u),r.setAttribute("role","option"),r.setAttribute("aria-label",p.getData(i).value),r.setAttribute("aria-setsize",p.data.length),r.setAttribute("aria-posinset",i)}});var e=function(){n(-1)},n=function(i,o){i!==a.start.row&&(a.start.row=a.end.row=i,o||p.session._emit("changeBackMarker"),p._emit("changeHoverMarker"))};p.getHoveredRow=function(){return a.start.row},w.addListener(p.container,"mouseout",e),p.on("hide",e),p.on("changeSelection",e),p.session.doc.getLength=function(){return p.data.length},p.session.doc.getLine=function(i){var o=p.data[i];return typeof o=="string"?o:o&&o.value||""};var l=p.session.bgTokenizer;return l.$tokenizeRow=function(i){var o=p.data[i],r=[];if(!o)return r;typeof o=="string"&&(o={value:o});var s=o.caption||o.value||o.name;function u(D,I){D&&r.push({type:(o.className||"")+(I||""),value:D})}for(var h=s.toLowerCase(),d=(p.filterText||"").toLowerCase(),y=0,m=0,g=0;g<=d.length;g++)if(g!=m&&(o.matchMask&1<=m?r="bottom":r="top"),r==="top"?(g.bottom=i.top-this.$borderSize,g.top=g.bottom-m):r==="bottom"&&(g.top=i.top+o+this.$borderSize,g.bottom=g.top+m);var D=g.top>=0&&g.bottom<=h;if(!s&&!D)return!1;D?y.$maxPixelHeight=null:r==="top"?y.$maxPixelHeight=O:y.$maxPixelHeight=k,r==="top"?(u.style.top="",u.style.bottom=h-g.bottom+"px",p.isTopdown=!1):(u.style.top=g.top+"px",u.style.bottom="",p.isTopdown=!0),u.style.display="";var I=i.left;return I+u.offsetWidth>d&&(I=d-u.offsetWidth),u.style.left=I+"px",u.style.right="",p.isOpen||(p.isOpen=!0,this._signal("show"),c=null),p.anchorPos=i,p.anchor=r,!0},p.show=function(i,o,r){this.tryShow(i,o,r?"bottom":void 0,!0)},p.goTo=function(i){var o=this.getRow(),r=this.session.getLength()-1;switch(i){case"up":o=o<=0?r:o-1;break;case"down":o=o>=r?-1:o+1;break;case"start":o=0;break;case"end":o=r;break}this.setRow(o)},p.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},p.$imageSize=0,p.$borderSize=1,p}return $}();x.importCssString(`
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
background-color: #CAD6FA;
z-index: 1;
}
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
background-color: #3a674e;
}
.ace_editor.ace_autocomplete .ace_line-hover {
border: 1px solid #abbffe;
margin-top: -1px;
background: rgba(233,233,253,0.4);
position: absolute;
z-index: 2;
}
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
border: 1px solid rgba(109, 150, 13, 0.8);
background: rgba(58, 103, 78, 0.62);
}
.ace_completion-meta {
opacity: 0.5;
margin: 0 0.9em;
}
.ace_completion-message {
color: blue;
}
.ace_editor.ace_autocomplete .ace_completion-highlight{
color: #2d69c7;
}
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{
color: #93ca12;
}
.ace_editor.ace_autocomplete {
width: 300px;
z-index: 200000;
border: 1px lightgray solid;
position: fixed;
box-shadow: 2px 3px 5px rgba(0,0,0,.2);
line-height: 1.4;
background: #fefefe;
color: #111;
}
.ace_dark.ace_editor.ace_autocomplete {
border: 1px #484747 solid;
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
line-height: 1.4;
background: #25282c;
color: #c1c1c1;
}
.ace_autocomplete_right .ace_text-layer {
width: calc(100% - 8px);
}
.ace_autocomplete_right .ace_line {
display: flex;
}
.ace_autocomplete_right .ace_completion-meta {
flex: 1;
text-align: right;
}
`,"autocompletion.css",!1),C.AcePopup=N,C.$singleLineEditor=P,C.getAriaId=S});ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets"],function(v,C,z){"use strict";var L=v("../snippets").snippetManager,R=function(){function _(){this.editor=null}return _.prototype.show=function(w,T,x){if(x=x||"",w&&this.editor&&this.editor!==w&&(this.hide(),this.editor=null),!w||!T)return!1;var S=T.snippet?L.getDisplayTextForSnippet(w,T.snippet):T.value;return!S||!S.startsWith(x)?!1:(this.editor=w,S=S.slice(x.length),S===""?w.removeGhostText():w.setGhostText(S),!0)},_.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},_.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},_.prototype.destroy=function(){this.hide(),this.editor=null},_}();C.AceInline=R});ace.define("ace/autocomplete/util",["require","exports","module"],function(v,C,z){"use strict";C.parForEach=function(R,_,w){var T=0,x=R.length;x===0&&w();for(var S=0;S=0&&w.test(R[x]);x--)T.push(R[x]);return T.reverse().join("")},C.retrieveFollowingIdentifier=function(R,_,w){w=w||L;for(var T=[],x=_;xthis.filterText&&c.lastIndexOf(this.filterText,0)===0)var a=this.filtered;else var a=this.all;this.filterText=c,a=this.filterCompletions(a,this.filterText),a=a.sort(function(e,n){return n.exactMatch-e.exactMatch||n.$score-e.$score||(e.caption||e.value).localeCompare(n.caption||n.value)});var t=null;a=a.filter(function(e){var n=e.snippet||e.caption||e.value;return n===t?!1:(t=n,!0)}),this.filtered=a},f.prototype.filterCompletions=function(c,a){var t=[],e=a.toUpperCase(),n=a.toLowerCase();e:for(var l=0,i;i=c[l];l++){var o=!this.ignoreCaption&&i.caption||i.value||i.snippet;if(o){var r=-1,s=0,u=0,h,d;if(this.exactMatch){if(a!==o.substr(0,a.length))continue e}else{var y=o.toLowerCase().indexOf(n);if(y>-1)u=y;else for(var m=0;m=0&&(k<0||g0&&(r===-1&&(u+=10),u+=d,s=s|1<",w.escapeHTML(t.caption),"","
",w.escapeHTML(P(t.snippet))].join(""))},id:"snippetCompleter"},$=[N,x,S];C.setCompleters=function(t){$.length=0,t&&$.push.apply($,t)},C.addCompleter=function(t){$.push(t)},C.textCompleter=x,C.keyWordCompleter=S,C.snippetCompleter=N;var b={name:"expandSnippet",exec:function(t){return L.expandWithTab(t)},bindKey:"Tab"},M=function(t,e){p(e.session.$mode)},p=function(t){typeof t=="string"&&(t=_.$modes[t]),t&&(L.files||(L.files={}),f(t.$id,t.snippetFileId),t.modes&&t.modes.forEach(p))},f=function(t,e){!e||!t||L.files[t]||(L.files[t]={},_.loadModule(e,function(n){n&&(L.files[t]=n,!n.snippets&&n.snippetText&&(n.snippets=L.parseSnippetFile(n.snippetText)),L.register(n.snippets||[],n.scope),n.includeScopes&&(L.snippetMap[n.scope].includeScopes=n.includeScopes,n.includeScopes.forEach(function(l){p("ace/mode/"+l)})))}))},c=function(t){var e=t.editor,n=e.completer&&e.completer.activated;if(t.command.name==="backspace")n&&!T.getCompletionPrefix(e)&&e.completer.detach();else if(t.command.name==="insertstring"){var l=T.getCompletionPrefix(e);if(l&&!n){var i=R.for(e);i.autoInsert=!1,i.showPopup(e)}}},a=v("../editor").Editor;v("../config").defineOptions(a.prototype,"editor",{enableBasicAutocompletion:{set:function(t){t?(this.completers||(this.completers=Array.isArray(t)?t:$),this.commands.addCommand(R.startCommand)):this.commands.removeCommand(R.startCommand)},value:!1},enableLiveAutocompletion:{set:function(t){t?(this.completers||(this.completers=Array.isArray(t)?t:$),this.commands.on("afterExec",c)):this.commands.removeListener("afterExec",c)},value:!1},enableSnippets:{set:function(t){t?(this.commands.addCommand(b),this.on("changeMode",M),M(null,this)):(this.commands.removeCommand(b),this.off("changeMode",M))},value:!1}})});(function(){ace.require(["ace/ext/language_tools"],function(v){typeof W=="object"&&typeof j=="object"&&W&&(W.exports=v)})})()});J();})();
//# sourceMappingURL=fa2a51840478b6cc4fc8ccbcc36d3e83.js.map