@infinilabs/ui-web-cli 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -239,7 +239,7 @@ Please check the server is up and running`),o.rejectWith({},[l,s,c])}),o}functi
239
239
  `?F+w:typeof F=="string"?F.replace(/\t/g,g):F});var C=[];E.forEach(function(F,X){if(typeof F=="object"){var te=F.tabstopId,H=C[te];if(H||(H=C[te]=[],H.index=te,H.value=""),H.indexOf(F)===-1){H.push(F);var W=E.indexOf(F,X+1);if(W!==-1){var Q=E.slice(X+1,W),ie=Q.some(function(ce){return typeof ce=="object"});ie&&!H.value?H.value=Q:Q.length&&(!H.value||typeof H.value!="string")&&(H.value=Q.join(""))}}}}),C.forEach(function(F){F.length=0});var x={};function T(F){for(var X=[],te=0;te<F.length;te++){var H=F[te];if(typeof H=="object"){if(x[H.tabstopId])continue;var W=F.lastIndexOf(H,te-1);H=X[W]||{tabstopId:H.tabstopId}}X[te]=H}return X}for(var M=0;M<E.length;M++){var L=E[M];if(typeof L=="object"){var j=L.tabstopId,D=E.indexOf(L,M+1);if(x[j]){x[j]===L&&(x[j]=null);continue}var V=C[j],Z=typeof V.value=="string"?[V.value]:T(V.value);Z.unshift(M+1,Math.max(0,D-M)),Z.push(L),x[j]=L,E.splice.apply(E,Z),V.indexOf(L)===-1&&V.push(L)}}var J=0,I=0,U="";E.forEach(function(F){if(typeof F=="string"){var X=F.split(`
240
240
  `);X.length>1?(I=X[X.length-1].length,J+=X.length-1):I+=F.length,U+=F}else F.start?F.end={row:J,column:I}:F.start={row:J,column:I}});var K=h.getSelectionRange(),z=h.session.replace(K,U),G=new d(h),k=h.inVirtualSelectionMode&&h.selection.index;G.addTabstops(C,K.start,z,k)},this.insertSnippet=function(h,y){var p=this;if(h.inVirtualSelectionMode)return p.insertSnippetForSelection(h,y);h.forEachSelection(function(){p.insertSnippetForSelection(h,y)},null,{keepOrder:!0}),h.tabstopManager&&h.tabstopManager.tabNext()},this.$getScope=function(h){var y=h.session.$mode.$id||"";if(y=y.split("/").pop(),y==="html"||y==="php"){y==="php"&&!h.session.$mode.inlinePhp&&(y="html");var p=h.getCursorPosition(),m=h.session.getState(p.row);typeof m=="object"&&(m=m[0]),m.substring&&(m.substring(0,3)=="js-"?y="javascript":m.substring(0,4)=="css-"?y="css":m.substring(0,4)=="php-"&&(y="php"))}return y},this.getActiveScopes=function(h){var y=this.$getScope(h),p=[y],m=this.snippetMap;return m[y]&&m[y].includeScopes&&p.push.apply(p,m[y].includeScopes),p.push("_"),p},this.expandWithTab=function(h,y){var p=this,m=h.forEachSelection(function(){return p.expandSnippetForSelection(h,y)},null,{keepOrder:!0});return m&&h.tabstopManager&&h.tabstopManager.tabNext(),m},this.expandSnippetForSelection=function(h,y){var p=h.getCursorPosition(),m=h.session.getLine(p.row),g=m.substring(0,p.column),w=m.substr(p.column),E=this.snippetMap,C;return this.getActiveScopes(h).some(function(x){var T=E[x];return T&&(C=this.findMatchingSnippet(T,g,w)),!!C},this),C?(y&&y.dryRun||(h.session.doc.removeInLine(p.row,p.column-C.replaceBefore.length,p.column+C.replaceAfter.length),this.variables.M__=C.matchBefore,this.variables.T__=C.matchAfter,this.insertSnippetForSelection(h,C.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(h,y,p){for(var m=h.length;m--;){var g=h[m];if(!(g.startRe&&!g.startRe.test(y))&&!(g.endRe&&!g.endRe.test(p))&&!(!g.startRe&&!g.endRe))return g.matchBefore=g.startRe?g.startRe.exec(y):[""],g.matchAfter=g.endRe?g.endRe.exec(p):[""],g.replaceBefore=g.triggerRe?g.triggerRe.exec(y)[0]:"",g.replaceAfter=g.endTriggerRe?g.endTriggerRe.exec(p)[0]:"",g}},this.snippetMap={},this.snippetNameMap={},this.register=function(h,y){var p=this.snippetMap,m=this.snippetNameMap,g=this;h||(h=[]);function w(x){return x&&!/^\^?\(.*\)\$?$|^\\b$/.test(x)&&(x="(?:"+x+")"),x||""}function E(x,T,M){return x=w(x),T=w(T),x=T+x,x&&x[x.length-1]!="$"&&(x=x+"$"),new RegExp(x)}function C(x){x.scope||(x.scope=y||"_"),y=x.scope,p[y]||(p[y]=[],m[y]={});var T=m[y];if(x.name){var M=T[x.name];M&&g.unregister(M),T[x.name]=x}p[y].push(x),x.tabTrigger&&!x.trigger&&(!x.guard&&/^\w/.test(x.tabTrigger)&&(x.guard="\\b"),x.trigger=i.escapeRegExp(x.tabTrigger)),!(!x.trigger&&!x.guard&&!x.endTrigger&&!x.endGuard)&&(x.startRe=E(x.trigger,x.guard),x.triggerRe=new RegExp(x.trigger,"",!0),x.endRe=E(x.endTrigger,x.endGuard),x.endTriggerRe=new RegExp(x.endTrigger,"",!0))}h&&h.content?C(h):Array.isArray(h)&&h.forEach(C),this._signal("registerSnippets",{scope:y})},this.unregister=function(h,y){var p=this.snippetMap,m=this.snippetNameMap;function g(w){var E=m[w.scope||y];if(E&&E[w.name]){delete E[w.name];var C=p[w.scope||y],x=C&&C.indexOf(w);x>=0&&C.splice(x,1)}}h.content?g(h):Array.isArray(h)&&h.forEach(g)},this.parseSnippetFile=function(h){h=h.replace(/\r/g,"");for(var y=[],p={},m=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,g;g=m.exec(h);){if(g[1])try{p=JSON.parse(g[1]),y.push(p)}catch{}if(g[4])p.content=g[4].replace(/^\t/gm,""),y.push(p),p={};else{var w=g[2],E=g[3];if(w=="regex"){var C=/\/((?:[^\/\\]|\\.)*)|$/g;p.guard=C.exec(E)[1],p.trigger=C.exec(E)[1],p.endTrigger=C.exec(E)[1],p.endGuard=C.exec(E)[1]}else w=="snippet"?(p.tabTrigger=E.match(/^\S*/)[0],p.name||(p.name=E)):p[w]=E}}return y},this.getSnippetByName=function(h,y){var p=this.snippetNameMap,m;return this.getActiveScopes(y).some(function(g){var w=p[g];return w&&(m=w[h]),!!m},this),m}}).call(f.prototype);var d=function(h){if(h.tabstopManager)return h.tabstopManager;h.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=i.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(h)};(function(){this.attach=function(h){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=h,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(h){var y=h.action[0]=="r",p=h.start,m=h.end,g=p.row,w=m.row,E=w-g,C=m.column-p.column;if(y&&(E=-E,C=-C),!this.$inChange&&y){var x=this.selectedTabstop,T=x&&!x.some(function(D){return u(D.start,p)<=0&&u(D.end,m)>=0});if(T)return this.detach()}for(var M=this.ranges,L=0;L<M.length;L++){var j=M[L];if(!(j.end.row<p.row)){if(y&&u(p,j.start)<0&&u(m,j.end)>0){this.removeRange(j),L--;continue}j.start.row==g&&j.start.column>p.column&&(j.start.column+=C),j.end.row==g&&j.end.column>=p.column&&(j.end.column+=C),j.start.row>=g&&(j.start.row+=E),j.end.row>=g&&(j.end.row+=E),u(j.start,j.end)>0&&this.removeRange(j)}}M.length||this.detach()},this.updateLinkedFields=function(){var h=this.selectedTabstop;if(!(!h||!h.hasLinkedRanges)){this.$inChange=!0;for(var y=this.editor.session,p=y.getTextRange(h.firstNonLinked),m=h.length;m--;){var g=h[m];if(g.linked){var w=t.snippetManager.tmStrFormat(p,g.original);y.replace(g,w)}}this.$inChange=!1}},this.onAfterExec=function(h){h.command&&!h.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var h=this.editor.selection.lead,y=this.editor.selection.anchor,p=this.editor.selection.isEmpty(),m=this.ranges.length;m--;)if(!this.ranges[m].linked){var g=this.ranges[m].contains(h.row,h.column),w=p||this.ranges[m].contains(y.row,y.column);if(g&&w)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(h){var y=this.tabstops.length,p=this.index+(h||1);p=Math.min(Math.max(p,1),y),p==y&&(p=0),this.selectTabstop(p),p===0&&this.detach()},this.selectTabstop=function(h){this.$openTabstops=null;var y=this.tabstops[this.index];if(y&&this.addTabstopMarkers(y),this.index=h,y=this.tabstops[this.index],!(!y||!y.length)){if(this.selectedTabstop=y,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(y.firstNonLinked);else{var p=this.editor.multiSelect;p.toSingleRange(y.firstNonLinked.clone());for(var m=y.length;m--;)y.hasLinkedRanges&&y[m].linked||p.addRange(y[m].clone(),!0);p.ranges[0]&&p.addRange(p.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(h,y,p){if(this.$openTabstops||(this.$openTabstops=[]),!h[0]){var m=a.fromPoints(p,p);S(m.start,y),S(m.end,y),h[0]=[m],h[0].index=0}var g=this.index,w=[g+1,0],E=this.ranges;h.forEach(function(C,x){for(var T=this.$openTabstops[x]||C,M=C.length;M--;){var L=C[M],j=a.fromPoints(L.start,L.end||L.start);b(j.start,y),b(j.end,y),j.original=L,j.tabstop=T,E.push(j),T!=C?T.unshift(j):T[M]=j,L.fmtString?(j.linked=!0,T.hasLinkedRanges=!0):T.firstNonLinked||(T.firstNonLinked=j)}T.firstNonLinked||(T.hasLinkedRanges=!1),T===C&&(w.push(T),this.$openTabstops[x]=T),this.addTabstopMarkers(T)},this),w.length>2&&(this.tabstops.length&&w.push(w.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,w))},this.addTabstopMarkers=function(h){var y=this.editor.session;h.forEach(function(p){p.markerId||(p.markerId=y.addMarker(p,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(h){var y=this.editor.session;h.forEach(function(p){y.removeMarker(p.markerId),p.markerId=null})},this.removeRange=function(h){var y=h.tabstop.indexOf(h);h.tabstop.splice(y,1),y=this.ranges.indexOf(h),this.ranges.splice(y,1),this.editor.session.removeMarker(h.markerId),h.tabstop.length||(y=this.tabstops.indexOf(h.tabstop),y!=-1&&this.tabstops.splice(y,1),this.tabstops.length||this.detach())},this.keyboardHandler=new s,this.keyboardHandler.bindKeys({Tab:function(h){t.snippetManager&&t.snippetManager.expandWithTab(h)||h.tabstopManager.tabNext(1)},"Shift-Tab":function(h){h.tabstopManager.tabNext(-1)},Esc:function(h){h.tabstopManager.detach()},Return:function(h){return!1}})}).call(d.prototype),l.prototype.onChange;var b=function(h,y){h.row==0&&(h.column+=y.column),h.row+=y.row},S=function(h,y){h.row==y.row&&(h.column-=y.column),h.row-=y.row};e("./lib/dom").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;}"),t.snippetManager=new f;var O=e("./editor").Editor;(function(){this.insertSnippet=function(h,y){return t.snippetManager.insertSnippet(this,h,y)},this.expandSnippet=function(h){return t.snippetManager.expandWithTab(this,h)}}).call(O.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(e,t,n){var r=e("../virtual_renderer").VirtualRenderer,o=e("../editor").Editor,i=e("../range").Range,a=e("../lib/event"),l=e("../lib/lang"),s=e("../lib/dom"),c=function(f){var d=new r(f);d.$maxLines=4;var b=new o(d);return b.setHighlightActiveLine(!1),b.setShowPrintMargin(!1),b.renderer.setShowGutter(!1),b.renderer.setHighlightGutterLine(!1),b.$mouseHandler.$focusWaitTimout=0,b.$highlightTagPending=!0,b},u=function(f){var d=s.createElement("div"),b=new c(d);f&&f.appendChild(d),d.style.display="none",b.renderer.content.style.cursor="default",b.renderer.setStyle("ace_autocomplete"),b.setOption("displayIndentGuides",!1),b.setOption("dragDelay",150);var S=function(){};b.focus=S,b.$isFocused=!0,b.renderer.$cursorLayer.restartTimer=S,b.renderer.$cursorLayer.element.style.opacity=0,b.renderer.$maxLines=8,b.renderer.$keepTextAreaAtCursor=!1,b.setHighlightActiveLine(!1),b.session.highlight(""),b.session.$searchHighlight.clazz="ace_highlight-marker",b.on("mousedown",function(w){var E=w.getDocumentPosition();b.selection.moveToPosition(E),y.start.row=y.end.row=E.row,w.stop()});var O,h=new i(-1,0,-1,1/0),y=new i(-1,0,-1,1/0);y.id=b.session.addMarker(y,"ace_active-line","fullLine"),b.setSelectOnHover=function(w){w?h.id&&(b.session.removeMarker(h.id),h.id=null):h.id=b.session.addMarker(h,"ace_line-hover","fullLine")},b.setSelectOnHover(!1),b.on("mousemove",function(w){if(!O){O=w;return}if(!(O.x==w.x&&O.y==w.y)){O=w,O.scrollTop=b.renderer.scrollTop;var E=O.getDocumentPosition().row;h.start.row!=E&&(h.id||b.setRow(E),m(E))}}),b.renderer.on("beforeRender",function(){if(O&&h.start.row!=-1){O.$pos=null;var w=O.getDocumentPosition().row;h.id||b.setRow(w),m(w,!0)}}),b.renderer.on("afterRender",function(){var w=b.getRow(),E=b.renderer.$textLayer,C=E.element.childNodes[w-E.config.firstRow];C!=E.selectedNode&&(E.selectedNode&&s.removeCssClass(E.selectedNode,"ace_selected"),E.selectedNode=C,C&&s.addCssClass(C,"ace_selected"))});var p=function(){m(-1)},m=function(w,E){w!==h.start.row&&(h.start.row=h.end.row=w,E||b.session._emit("changeBackMarker"),b._emit("changeHoverMarker"))};b.getHoveredRow=function(){return h.start.row},a.addListener(b.container,"mouseout",p),b.on("hide",p),b.on("changeSelection",p),b.session.doc.getLength=function(){return b.data.length},b.session.doc.getLine=function(w){var E=b.data[w];return typeof E=="string"?E:E&&E.value||""};var g=b.session.bgTokenizer;return g.$tokenizeRow=function(w){var E=b.data[w],C=[];if(!E)return C;typeof E=="string"&&(E={value:E}),E.caption||(E.caption=E.value||E.name);for(var x=-1,T,M,L=0;L<E.caption.length;L++)M=E.caption[L],T=E.matchMask&1<<L?1:0,x!==T?(C.push({type:E.className||(T?"completion-highlight":""),value:M}),x=T):C[C.length-1].value+=M;if(E.meta){var j=b.renderer.$size.scrollerWidth/b.renderer.layerConfig.characterWidth,D=E.meta;D.length+E.caption.length>j-2&&(D=D.substr(0,j-E.caption.length-3)+"…"),C.push({type:"rightAlignedText",value:D})}return C},g.$updateOnChange=S,g.start=S,b.session.$computeWidth=function(){return this.screenWidth=0},b.$blockScrolling=1/0,b.isOpen=!1,b.isTopdown=!1,b.autoSelect=!0,b.data=[],b.setData=function(w){b.setValue(l.stringRepeat(`
241
241
  `,w.length),-1),b.data=w||[],b.setRow(0)},b.getData=function(w){return b.data[w]},b.getRow=function(){return y.start.row},b.setRow=function(w){w=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,w)),y.start.row!=w&&(b.selection.clearSelection(),y.start.row=y.end.row=w||0,b.session._emit("changeBackMarker"),b.moveCursorTo(w||0,0),b.isOpen&&b._signal("select"))},b.on("changeSelection",function(){b.isOpen&&b.setRow(b.selection.lead.row),b.renderer.scrollCursorIntoView()}),b.hide=function(){this.container.style.display="none",this._signal("hide"),b.isOpen=!1},b.show=function(w,E,C){var x=this.container,T=window.innerHeight,M=window.innerWidth,L=this.renderer,j=L.$maxLines*E*1.4,D=w.top+this.$borderSize,V=D>T/2&&!C;V&&D+E+j>T?(L.$maxPixelHeight=D-2*this.$borderSize,x.style.top="",x.style.bottom=T-D+"px",b.isTopdown=!1):(D+=E,L.$maxPixelHeight=T-D-.2*E,x.style.top=D+"px",x.style.bottom="",b.isTopdown=!0),x.style.display="",this.renderer.$textLayer.checkForSizeChanges();var Z=w.left;Z+x.offsetWidth>M&&(Z=M-x.offsetWidth),x.style.left=Z+"px",this._signal("show"),O=null,b.isOpen=!0},b.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},b.$imageSize=0,b.$borderSize=1,b};s.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4);}.ace_editor.ace_autocomplete .ace_line-hover { position: absolute; z-index: 2;}.ace_editor.ace_autocomplete .ace_scroller { background: none; border: none; box-shadow: none;}.ace_rightAlignedText { color: gray; display: inline-block; position: absolute; right: 4px; text-align: right; z-index: -1;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #000; text-shadow: 0 0 0.01em;}.ace_editor.ace_autocomplete { width: 280px; z-index: 200000; background: #fbfbfb; color: #444; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4;}"),t.AcePopup=u}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t,n){t.parForEach=function(o,i,a){var l=0,s=o.length;s===0&&a();for(var c=0;c<s;c++)i(o[c],function(u,f){l++,l===s&&a(u,f)})};var r=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(o,i,a){a=a||r;for(var l=[],s=i-1;s>=0&&a.test(o[s]);s--)l.push(o[s]);return l.reverse().join("")},t.retrieveFollowingIdentifier=function(o,i,a){a=a||r;for(var l=[],s=i;s<o.length&&a.test(o[s]);s++)l.push(o[s]);return l},t.getCompletionPrefix=function(o){var i=o.getCursorPosition(),a=o.session.getLine(i.row),l;return o.completers.forEach((function(s){s.identifierRegexps&&s.identifierRegexps.forEach((function(c){!l&&c&&(l=this.retrievePrecedingIdentifier(a,i.column,c))}).bind(this))}).bind(this)),l||this.retrievePrecedingIdentifier(a,i.column)}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],function(e,t,n){var r=e("./keyboard/hash_handler").HashHandler,o=e("./autocomplete/popup").AcePopup,i=e("./autocomplete/util");e("./lib/event");var a=e("./lib/lang"),l=e("./lib/dom"),s=e("./snippets").snippetManager,c=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=a.delayedCall((function(){this.updateCompletions(!0)}).bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new o(document.body||document.documentElement),this.popup.on("click",(function(f){this.insertMatch(),f.stop()}).bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(f,d,b){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered),f.keyBinding.addKeyboardHandler(this.keyboardHandler);var S=f.renderer;if(this.popup.setRow(this.autoSelect?0:-1),b)b&&!d&&this.detach();else{this.popup.setTheme(f.getTheme()),this.popup.setFontSize(f.getFontSize());var O=S.layerConfig.lineHeight,h=S.$cursorLayer.getPixelPosition(this.base,!0);h.left-=this.popup.getTextLeftOffset();var y=f.container.getBoundingClientRect();h.top+=y.top-S.layerConfig.offset,h.left+=y.left-f.renderer.scrollLeft,h.left+=S.gutterWidth,this.popup.show(h,O)}},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(f){var d=this.editor.selection.lead;(d.row!=this.base.row||d.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(f){var d=document.activeElement,b=this.editor.textInput.getElement(),S=f.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(f.relatedTarget),O=this.popup&&this.popup.container;d!=b&&d.parentNode!=O&&!S&&d!=this.tooltipNode&&f.relatedTarget!=b&&this.detach()},this.mousedownListener=function(f){this.detach()},this.mousewheelListener=function(f){this.detach()},this.goTo=function(f){var d=this.popup.getRow(),b=this.popup.session.getLength()-1;switch(f){case"up":d=d<=0?b:d-1;break;case"down":d=d>=b?-1:d+1;break;case"start":d=0;break;case"end":d=b;break}this.popup.setRow(d)},this.insertMatch=function(f,d){if(f||(f=this.popup.getData(this.popup.getRow())),!f)return!1;if(f.completer&&f.completer.insertMatch)f.completer.insertMatch(this.editor,f);else{if(this.completions.filterText)for(var b=this.editor.selection.getAllRanges(),S=0,O;O=b[S];S++)O.start.column-=this.completions.filterText.length,this.editor.session.remove(O);f.snippet?s.insertSnippet(this.editor,f.snippet):this.editor.execCommand("insertstring",f.value||f)}this.detach()},this.commands={Up:function(f){f.completer.goTo("up")},Down:function(f){f.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(f){f.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(f){f.completer.goTo("end")},Esc:function(f){f.completer.detach()},Return:function(f){return f.completer.insertMatch()},"Shift-Return":function(f){f.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(f){var d=f.completer.insertMatch();if(!d&&!f.tabstopManager)f.completer.goTo("down");else return d},PageUp:function(f){f.completer.popup.gotoPageUp()},PageDown:function(f){f.completer.popup.gotoPageDown()}},this.gatherCompletions=function(f,d){var b=f.getSession(),S=f.getCursorPosition(),O=i.getCompletionPrefix(f);this.base=b.doc.createAnchor(S.row,S.column-O.length),this.base.$insertRight=!0;var h=[],y=f.completers.length;return f.completers.forEach(function(p,m){p.getCompletions(f,b,S,O,function(g,w){!g&&w&&(h=h.concat(w)),d(null,{prefix:i.getCompletionPrefix(f),matches:h,finished:--y===0})})}),!0},this.showPopup=function(f){this.editor&&this.detach(),this.activated=!0,this.editor=f,f.completer!=this&&(f.completer&&f.completer.detach(),f.completer=this),f.on("changeSelection",this.changeListener),f.on("blur",this.blurListener),f.on("mousedown",this.mousedownListener),f.on("mousewheel",this.mousewheelListener),this.updateCompletions()},this.updateCompletions=function(f){if(f&&this.base&&this.completions){var d=this.editor.getCursorPosition(),b=this.editor.session.getTextRange({start:this.base,end:d});if(b==this.completions.filterText)return;if(this.completions.setFilter(b),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==b&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,b,f);return}var S=this.gatherCompletionsId;this.gatherCompletions(this.editor,(function(O,h){var y=(function(){if(h.finished)return this.detach()}).bind(this),p=h.prefix,m=h&&h.matches;if(!m||!m.length)return y();if(!(p.indexOf(h.prefix)!==0||S!=this.gatherCompletionsId)){this.completions=new u(m),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(p);var g=this.completions.filtered;if(!g.length||g.length==1&&g[0].value==p&&!g[0].snippet)return y();if(this.autoInsert&&g.length==1&&h.finished)return this.insertMatch(g[0]);this.openPopup(this.editor,p,f)}}).bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var f=this.popup,d=f.data,b=d&&(d[f.getHoveredRow()]||d[f.getRow()]),S=null;if(!b||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();if(this.editor.completers.some(function(O){return O.getDocTooltip&&(S=O.getDocTooltip(b)),S}),S||(S=b),typeof S=="string"&&(S={docText:S}),!S||!(S.docHTML||S.docText))return this.hideDocTooltip();this.showDocTooltip(S)},this.showDocTooltip=function(f){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var d=this.tooltipNode;f.docHTML?d.innerHTML=f.docHTML:f.docText&&(d.textContent=f.docText),d.parentNode||document.body.appendChild(d);var b=this.popup,S=b.container.getBoundingClientRect();d.style.top=b.container.style.top,d.style.bottom=b.container.style.bottom,window.innerWidth-S.right<320?(d.style.right=window.innerWidth-S.left+"px",d.style.left=""):(d.style.left=S.right+1+"px",d.style.right=""),d.style.display="block"},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var f=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==f&&this.editor.focus(),this.tooltipNode=null,f.parentNode&&f.parentNode.removeChild(f)}},this.onTooltipClick=function(f){for(var d=f.target;d&&d!=this.tooltipNode;){if(d.nodeName=="A"&&d.href){d.rel="noreferrer",d.target="_blank";break}d=d.parentNode}}}).call(c.prototype),c.startCommand={name:"startAutocomplete",exec:function(f){f.completer||(f.completer=new c),f.completer.autoInsert=!1,f.completer.autoSelect=!0,f.completer.showPopup(f),f.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var u=function(f,d){this.all=f,this.filtered=f,this.filterText=d||"",this.exactMatch=!1};(function(){this.setFilter=function(f){if(f.length>this.filterText&&f.lastIndexOf(this.filterText,0)===0)var d=this.filtered;else var d=this.all;this.filterText=f,d=this.filterCompletions(d,this.filterText),d=d.sort(function(S,O){return O.exactMatch-S.exactMatch||O.score-S.score});var b=null;d=d.filter(function(S){var O=S.snippet||S.caption||S.value;return O===b?!1:(b=O,!0)}),this.filtered=d},this.filterCompletions=function(f,d){var b=[],S=d.toUpperCase(),O=d.toLowerCase();e:for(var h=0,y;y=f[h];h++){var p=y.value||y.caption||y.snippet;if(p){var m=-1,g=0,w=0,E,C;if(this.exactMatch){if(d!==p.substr(0,d.length))continue e}else for(var x=0;x<d.length;x++){var T=p.indexOf(O[x],m+1),M=p.indexOf(S[x],m+1);if(E=T>=0&&(M<0||T<M)?T:M,E<0)continue e;C=E-m-1,C>0&&(m===-1&&(w+=10),w+=C),g=g|1<<E,m=E}y.matchMask=g,y.exactMatch=w?0:1,y.score=(y.score||0)-w,b.push(y)}}return b}}).call(u.prototype),t.Autocomplete=c,t.FilteredList=u}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function i(l,s){var c=l.getTextRange(r.fromPoints({row:0,column:0},s));return c.split(o).length-1}function a(l,s){var c=i(l,s),u=l.getValue().split(o),f=Object.create(null),d=u[c];return u.forEach(function(b,S){if(!(!b||b===d)){var O=Math.abs(c-S),h=u.length-O;f[b]?f[b]=Math.max(h,f[b]):f[b]=h}}),f}t.getCompletions=function(l,s,c,u,f){var d=a(s,c),b=Object.keys(d);f(null,b.map(function(S){return{caption:S,value:S,score:d[S],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,t,n){var r=e("../snippets").snippetManager,o=e("../autocomplete").Autocomplete,i=e("../config"),a=e("../lib/lang"),l=e("../autocomplete/util"),s=e("../autocomplete/text_completer"),c={getCompletions:function(p,m,g,w,E){if(m.$mode.completer)return m.$mode.completer.getCompletions(p,m,g,w,E);var C=p.session.getState(g.row),x=m.$mode.getCompletions(C,m,g,w);E(null,x)}},u={getCompletions:function(p,m,g,w,E){var C=r.snippetMap,x=[];r.getActiveScopes(p).forEach(function(T){for(var M=C[T]||[],L=M.length;L--;){var j=M[L],D=j.name||j.tabTrigger;D&&x.push({caption:D,snippet:j.content,meta:j.tabTrigger&&!j.name?j.tabTrigger+"⇥ ":"snippet",type:"snippet"})}},this),E(null,x)},getDocTooltip:function(p){p.type=="snippet"&&!p.docHTML&&(p.docHTML=["<b>",a.escapeHTML(p.caption),"</b>","<hr></hr>",a.escapeHTML(p.snippet)].join(""))}},f=[u,s,c];t.setCompleters=function(p){f.length=0,p&&f.push.apply(f,p)},t.addCompleter=function(p){f.push(p)},t.textCompleter=s,t.keyWordCompleter=c,t.snippetCompleter=u;var d={name:"expandSnippet",exec:function(p){return r.expandWithTab(p)},bindKey:"Tab"},b=function(p,m){S(m.session.$mode)},S=function(p){var m=p.$id;r.files||(r.files={}),O(m),p.modes&&p.modes.forEach(S)},O=function(p){if(!(!p||r.files[p])){var m=p.replace("mode","snippets");r.files[p]={},i.loadModule(m,function(g){g&&(r.files[p]=g,!g.snippets&&g.snippetText&&(g.snippets=r.parseSnippetFile(g.snippetText)),r.register(g.snippets||[],g.scope),g.includeScopes&&(r.snippetMap[g.scope].includeScopes=g.includeScopes,g.includeScopes.forEach(function(w){O("ace/mode/"+w)})))})}},h=function(p){var m=p.editor,g=m.completer&&m.completer.activated;if(p.command.name==="backspace")g&&!l.getCompletionPrefix(m)&&m.completer.detach();else if(p.command.name==="insertstring"){var w=l.getCompletionPrefix(m);w&&!g&&(m.completer||(m.completer=new o),m.completer.autoInsert=!1,m.completer.showPopup(m))}},y=e("../editor").Editor;e("../config").defineOptions(y.prototype,"editor",{enableBasicAutocompletion:{set:function(p){p?(this.completers||(this.completers=Array.isArray(p)?p:f),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(p){p?(this.completers||(this.completers=Array.isArray(p)?p:f),this.commands.on("afterExec",h)):this.commands.removeListener("afterExec",h)},value:!1},enableSnippets:{set:function(p){p?(this.commands.addCommand(d),this.on("changeMode",b),b(null,this)):(this.commands.removeCommand(d),this.off("changeMode",b))},value:!1}})}),function(){ace.acequire(["ace/ext/language_tools"],function(){})}(),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(e,t,n){var r=e("../lib/dom"),o=e("../lib/lang"),i=e("../lib/event"),a='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;box-sizing: border-box!important;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;box-sizing: content-box!important;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',l=e("../keyboard/hash_handler").HashHandler,s=e("../lib/keys"),c=999;r.importCssString(a,"ace_searchbox");var u='<div class="ace_search right"> <span action="hide" class="ace_searchbtn_close"></span> <div class="ace_search_form"> <input class="ace_search_field" placeholder="Search for" spellcheck="false"></input> <span action="findPrev" class="ace_searchbtn prev"></span> <span action="findNext" class="ace_searchbtn next"></span> <span action="findAll" class="ace_searchbtn" title="Alt-Enter">All</span> </div> <div class="ace_replace_form"> <input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input> <span action="replaceAndFindNext" class="ace_searchbtn">Replace</span> <span action="replaceAll" class="ace_searchbtn">All</span> </div> <div class="ace_search_options"> <span action="toggleReplace" class="ace_button" title="Toggel Replace mode" style="float:left;margin-top:-2px;padding:0 5px;">+</span> <span class="ace_search_counter"></span> <span action="toggleRegexpMode" class="ace_button" title="RegExp Search">.*</span> <span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span> <span action="toggleWholeWords" class="ace_button" title="Whole Word Search">\\b</span> <span action="searchInSelection" class="ace_button" title="Search In Selection">S</span> </div></div>'.replace(/> +/g,">"),f=function(d,b,S){var O=r.createElement("div");O.innerHTML=u,this.element=O.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(d)};(function(){this.setEditor=function(d){d.searchBox=this,d.renderer.scroller.appendChild(this.element),this.editor=d},this.setSession=function(d){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(d){this.searchBox=d.querySelector(".ace_search_form"),this.replaceBox=d.querySelector(".ace_replace_form"),this.searchOption=d.querySelector("[action=searchInSelection]"),this.replaceOption=d.querySelector("[action=toggleReplace]"),this.regExpOption=d.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=d.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=d.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=d.querySelector(".ace_search_counter")},this.$init=function(){var d=this.element;this.$initElements(d);var b=this;i.addListener(d,"mousedown",function(S){setTimeout(function(){b.activeInput.focus()},0),i.stopPropagation(S)}),i.addListener(d,"click",function(S){var O=S.target||S.srcElement,h=O.getAttribute("action");h&&b[h]?b[h]():b.$searchBarKb.commands[h]&&b.$searchBarKb.commands[h].exec(b),i.stopPropagation(S)}),i.addCommandKeyListener(d,function(S,O,h){var y=s.keyCodeToString(h),p=b.$searchBarKb.findKeyCommand(O,y);p&&p.exec&&(p.exec(b),i.stopEvent(S))}),this.$onChange=o.delayedCall(function(){b.find(!1,!1)}),i.addListener(this.searchInput,"input",function(){b.$onChange.schedule(20)}),i.addListener(this.searchInput,"focus",function(){b.activeInput=b.searchInput,b.searchInput.value&&b.highlight()}),i.addListener(this.replaceInput,"focus",function(){b.activeInput=b.replaceInput,b.searchInput.value&&b.highlight()})},this.$closeSearchBarKb=new l([{bindKey:"Esc",name:"closeSearchBar",exec:function(d){d.searchBox.hide()}}]),this.$searchBarKb=new l,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(d){var b=d.isReplace=!d.isReplace;d.replaceBox.style.display=b?"":"none",d.replaceOption.checked=!1,d.$syncOptions(),d.searchInput.focus()},"Ctrl-H|Command-Option-F":function(d){d.replaceOption.checked=!0,d.$syncOptions(),d.replaceInput.focus()},"Ctrl-G|Command-G":function(d){d.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(d){d.findPrev()},esc:function(d){setTimeout(function(){d.hide()})},Return:function(d){d.activeInput==d.replaceInput&&d.replace(),d.findNext()},"Shift-Return":function(d){d.activeInput==d.replaceInput&&d.replace(),d.findPrev()},"Alt-Return":function(d){d.activeInput==d.replaceInput&&d.replaceAll(),d.findAll()},Tab:function(d){(d.activeInput==d.replaceInput?d.searchInput:d.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(d){d.regExpOption.checked=!d.regExpOption.checked,d.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(d){d.caseSensitiveOption.checked=!d.caseSensitiveOption.checked,d.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(d){d.wholeWordOption.checked=!d.wholeWordOption.checked,d.$syncOptions()}},{name:"toggleReplace",exec:function(d){d.replaceOption.checked=!d.replaceOption.checked,d.$syncOptions()}},{name:"searchInSelection",exec:function(d){d.searchOption.checked=!d.searchRange,d.setSearchRange(d.searchOption.checked&&d.editor.getSelectionRange()),d.$syncOptions()}}]),this.setSearchRange=function(d){this.searchRange=d,d?this.searchRangeMarker=this.editor.session.addMarker(d,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(d){r.setCssClass(this.replaceOption,"checked",this.searchRange),r.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",r.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.replaceBox.style.display=this.replaceOption.checked?"":"none",this.find(!1,!1,d)},this.highlight=function(d){this.editor.session.highlight(d||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(d,b,S){var O=this.editor.find(this.searchInput.value,{skipCurrent:d,backwards:b,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:S,range:this.searchRange}),h=!O&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",h),this.editor._emit("findSearchBox",{match:!h}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var d=this.editor,b=d.$search.$options.re,S=0,O=0;if(b){var h=this.searchRange?d.session.getTextRange(this.searchRange):d.getValue(),y=d.session.doc.positionToIndex(d.selection.anchor);this.searchRange&&(y-=d.session.doc.positionToIndex(this.searchRange.start));for(var p=b.lastIndex=0,m;(m=b.exec(h))&&(S++,p=m.index,p<=y&&O++,!(S>c||!m[0]&&(b.lastIndex=p+=1,p>=h.length))););}this.searchCounter.textContent=O+" of "+(S>c?c+"+":S)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var d=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),b=!d&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",b),this.editor._emit("findSearchBox",{match:!b}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(d,b){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=b,d&&(this.searchInput.value=d),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var d=document.activeElement;return d==this.searchInput||d==this.replaceInput}}).call(f.prototype),t.SearchBox=f,t.Search=function(d,b){var S=d.searchBox||new f(d);S.show(d.session.getTextRange(),b)}}),function(){ace.acequire(["ace/ext/searchbox"],function(){})}();var fl={},nb;function dN(){return nb||(nb=1,fl.id="ace/mode/json_worker",fl.src=`"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.column<point2.column;return point1.row<point2.row||point1.row==point2.row&&bColIsAfter}function $getTransformedPoint(delta,point,moveIfEqual){var deltaIsInsert="insert"==delta.action,deltaRowShift=(deltaIsInsert?1:-1)*(delta.end.row-delta.start.row),deltaColShift=(deltaIsInsert?1:-1)*(delta.end.column-delta.start.column),deltaStart=delta.start,deltaEnd=deltaIsInsert?deltaStart:delta.end;return $pointsInOrder(point,deltaStart,moveIfEqual)?{row:point.row,column:point.column}:$pointsInOrder(deltaEnd,point,!moveIfEqual)?{row:point.row+deltaRowShift,column:point.column+(point.row==deltaEnd.row?deltaColShift:0)}:{row:deltaStart.row,column:deltaStart.column}}oop.implement(this,EventEmitter),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(delta){if(!(delta.start.row==delta.end.row&&delta.start.row!=this.row||delta.start.row>this.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^\${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},exports.getMatchOffsets=function(string,regExp){var matches=[];return string.replace(regExp,function(str){matches.push({offset:arguments[arguments.length-2],length:str.length})}),matches},exports.deferredCall=function(fcn){var timer=null,callback=function(){timer=null,fcn()},deferred=function(timeout){return deferred.cancel(),timer=setTimeout(callback,timeout||0),deferred};return deferred.schedule=deferred,deferred.call=function(){return this.cancel(),fcn(),deferred},deferred.cancel=function(){return clearTimeout(timer),timer=null,deferred},deferred.isPending=function(){return timer},deferred},exports.delayedCall=function(fcn,defaultTimeout){var timer=null,callback=function(){timer=null,fcn()},_self=function(timeout){null==timer&&(timer=setTimeout(callback,timeout||defaultTimeout))};return _self.delay=function(timeout){timer&&clearTimeout(timer),timer=setTimeout(callback,timeout||defaultTimeout)},_self.schedule=_self,_self.call=function(){this.cancel(),fcn()},_self.cancel=function(){timer&&clearTimeout(timer),timer=null},_self.isPending=function(){return timer},_self}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(acequire,exports){"use strict";acequire("../range").Range;var Document=acequire("../document").Document,lang=acequire("../lib/lang"),Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document(""),deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this)),_self=this;sender.on("change",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;data.length>i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){"use strict";var at,ch,text,value,escapee={'"':'"',"\\\\":"\\\\","/":"/",b:"\\b",f:"\\f",n:"\\n",r:"\\r",t:" "},error=function(m){throw{name:"SyntaxError",message:m,at:at,text:text}},next=function(c){return c&&c!==ch&&error("Expected '"+c+"' instead of '"+ch+"'"),ch=text.charAt(at),at+=1,ch},number=function(){var number,string="";for("-"===ch&&(string="-",next("-"));ch>="0"&&"9">=ch;)string+=ch,next();if("."===ch)for(string+=".";next()&&ch>="0"&&"9">=ch;)string+=ch;if("e"===ch||"E"===ch)for(string+=ch,next(),("-"===ch||"+"===ch)&&(string+=ch,next());ch>="0"&&"9">=ch;)string+=ch,next();return number=+string,isNaN(number)?(error("Bad number"),void 0):number},string=function(){var hex,i,uffff,string="";if('"'===ch)for(;next();){if('"'===ch)return next(),string;if("\\\\"===ch)if(next(),"u"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if("string"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error("Bad string")},white=function(){for(;ch&&" ">=ch;)next()},word=function(){switch(ch){case"t":return next("t"),next("r"),next("u"),next("e"),!0;case"f":return next("f"),next("a"),next("l"),next("s"),next("e"),!1;case"n":return next("n"),next("u"),next("l"),next("l"),null}error("Unexpected '"+ch+"'")},array=function(){var array=[];if("["===ch){if(next("["),white(),"]"===ch)return next("]"),array;for(;ch;){if(array.push(value()),white(),"]"===ch)return next("]"),array;next(","),white()}}error("Bad array")},object=function(){var key,object={};if("{"===ch){if(next("{"),white(),"}"===ch)return next("}"),object;for(;ch;){if(key=string(),white(),next(":"),Object.hasOwnProperty.call(object,key)&&error('Duplicate key "'+key+'"'),object[key]=value(),white(),"}"===ch)return next("}"),object;next(","),white()}}error("Bad object")};return value=function(){switch(white(),ch){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return ch>="0"&&"9">=ch?number():word()}},function(source,reviver){var result;return text=source,at=0,ch=" ",result=value(),white(),ch&&error("Syntax error"),"function"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&"object"==typeof value)for(k in value)Object.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({"":result},""):result}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(acequire,exports){"use strict";var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,parse=acequire("./json/json_parse"),JsonWorker=exports.JsonWorker=function(sender){Mirror.call(this,sender),this.setTimeout(200)};oop.inherits(JsonWorker,Mirror),function(){this.onUpdate=function(){var value=this.doc.getValue(),errors=[];try{value&&parse(value)}catch(e){var pos=this.doc.indexToPosition(e.at-1);errors.push({row:pos.row,column:pos.column,text:e.message,type:"error"})}this.sender.emit("annotate",errors)}}.call(JsonWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0
242
- }()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r   ᠎              \\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`),fl}ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(i,o),t.JsonHighlightRules=i}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var l=i.getLine(a),s=l.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var f=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),f)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(l){l&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+l.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+l.end)))};r.inherits(a,i),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(l,s,c){var u=l.getLine(c);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var f=this._getFoldWidgetBase(l,s,c);return!f&&this.startRegionRe.test(u)?"start":f},this.getFoldWidgetRange=function(l,s,c,u){var f=l.getLine(c);if(this.startRegionRe.test(f))return this.getCommentRegionBlock(l,f,c);var S=f.match(this.foldingStartMarker);if(S){var d=S.index;if(S[1])return this.openingBracketBlock(l,S[1],c,d);var b=l.getCommentFoldRange(c,d+S[0].length,1);return b&&!b.isMultiLine()&&(u?b=this.getSectionRange(l,c):s!="all"&&(b=null)),b}if(s!=="markbegin"){var S=f.match(this.foldingStopMarker);if(S){var d=S.index+S[0].length;return S[1]?this.closingBracketBlock(l,S[1],c,d):l.getCommentFoldRange(c,d,-1)}}},this.getSectionRange=function(l,s){var c=l.getLine(s),u=c.search(/\S/),f=s,d=c.length;s=s+1;for(var b=s,S=l.getLength();++s<S;){c=l.getLine(s);var O=c.search(/\S/);if(O!==-1){if(u>O)break;var h=this.getFoldWidgetRange(l,"all",s);if(h){if(h.start.row<=f)break;if(h.isMultiLine())s=h.end.row;else if(u==O)break}b=s}}return new o(f,d,b,l.getLine(b).length)},this.getCommentRegionBlock=function(l,s,c){for(var u=s.search(/\s*$/),f=l.getLength(),d=c,b=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,S=1;++c<f;){s=l.getLine(c);var O=b.exec(s);if(O&&(O[1]?S--:S++,!S))break}var h=c;if(h>d)return new o(d,u,h,s.length)}}).call(a.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("./behaviour/cstyle").CstyleBehaviour,s=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=i,this.$outdent=new a,this.$behaviour=new l,this.foldingRules=new s};r.inherits(u,o),(function(){this.getNextLineIndent=function(f,d,b){var S=this.$getIndent(d);if(f=="start"){var O=d.match(/^.*[\{\(\[]\s*$/);O&&(S+=b)}return S},this.checkOutdent=function(f,d,b){return this.$outdent.checkOutdent(d,b)},this.autoOutdent=function(f,d,b){this.$outdent.autoOutdent(d,b)},this.createWorker=function(f){var d=new c(["ace"],dN(),"JsonWorker");return d.attachToDocument(f.getDocument()),d.on("annotate",function(b){f.setAnnotations(b.data)}),d.on("terminate",function(){f.clearAnnotations()}),d},this.$id="ace/mode/json"}).call(u.prototype),t.Mode=u});const rb=(e,t,n)=>({type:n.type,value:n.value,position:{lineNumber:e,column:t}}),fN=(e,t)=>{let n="";return t.map(r=>{const o=n.length+1;return n+=r.value,rb(e,o,r)})},pN=(e,t,n)=>{let r="";for(const o of n){const i=r.length+1;r+=o.value;const a=r.length;if(!(t<i)&&!(t>a+1))return rb(e,i,o)}return null};class hN{constructor(t){this.session=t}getTokens(t){var o;if(t<1)return null;const n=this.session.getLength();if(t>n)return null;const r=(o=this.session)==null?void 0:o.getTokens(t-1);return!r||!r.length?[]:fN(t,r)}getTokenAt(t){const n=this.session.getTokens(t.lineNumber-1);return n?pN(t.lineNumber,t.column,n):null}}function mN(e){return e.match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/)}function gN(e){if(!e)return!1;for(const t of e.split(`
242
+ }()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r   ᠎              \\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`),fl}ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(i,o),t.JsonHighlightRules=i}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var l=i.getLine(a),s=l.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var f=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),f)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(l){l&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+l.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+l.end)))};r.inherits(a,i),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(l,s,c){var u=l.getLine(c);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var f=this._getFoldWidgetBase(l,s,c);return!f&&this.startRegionRe.test(u)?"start":f},this.getFoldWidgetRange=function(l,s,c,u){var f=l.getLine(c);if(this.startRegionRe.test(f))return this.getCommentRegionBlock(l,f,c);var S=f.match(this.foldingStartMarker);if(S){var d=S.index;if(S[1])return this.openingBracketBlock(l,S[1],c,d);var b=l.getCommentFoldRange(c,d+S[0].length,1);return b&&!b.isMultiLine()&&(u?b=this.getSectionRange(l,c):s!="all"&&(b=null)),b}if(s!=="markbegin"){var S=f.match(this.foldingStopMarker);if(S){var d=S.index+S[0].length;return S[1]?this.closingBracketBlock(l,S[1],c,d):l.getCommentFoldRange(c,d,-1)}}},this.getSectionRange=function(l,s){var c=l.getLine(s),u=c.search(/\S/),f=s,d=c.length;s=s+1;for(var b=s,S=l.getLength();++s<S;){c=l.getLine(s);var O=c.search(/\S/);if(O!==-1){if(u>O)break;var h=this.getFoldWidgetRange(l,"all",s);if(h){if(h.start.row<=f)break;if(h.isMultiLine())s=h.end.row;else if(u==O)break}b=s}}return new o(f,d,b,l.getLine(b).length)},this.getCommentRegionBlock=function(l,s,c){for(var u=s.search(/\s*$/),f=l.getLength(),d=c,b=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,S=1;++c<f;){s=l.getLine(c);var O=b.exec(s);if(O&&(O[1]?S--:S++,!S))break}var h=c;if(h>d)return new o(d,u,h,s.length)}}).call(a.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("./behaviour/cstyle").CstyleBehaviour,s=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=i,this.$outdent=new a,this.$behaviour=new l,this.foldingRules=new s};r.inherits(u,o),(function(){this.getNextLineIndent=function(f,d,b){var S=this.$getIndent(d);if(f=="start"){var O=d.match(/^.*[\{\(\[]\s*$/);O&&(S+=b)}return S},this.checkOutdent=function(f,d,b){return this.$outdent.checkOutdent(d,b)},this.autoOutdent=function(f,d,b){this.$outdent.autoOutdent(d,b)},this.createWorker=function(f){var d=new c(["ace"],dN(),"JsonWorker");return d.attachToDocument(f.getDocument()),d.on("annotate",function(b){f.setAnnotations(b.data)}),d.on("terminate",function(){f.clearAnnotations()}),d},this.$id="ace/mode/json"}).call(u.prototype),t.Mode=u});const rb=(e,t,n)=>({type:n.type,value:n.value,position:{lineNumber:e,column:t}}),fN=(e,t)=>{let n="";return t.map(r=>{const o=n.length+1;return n+=r.value,rb(e,o,r)})},pN=(e,t,n)=>{let r="";for(const o of n){const i=r.length+1;r+=o.value;const a=r.length;if(!(t<i)&&!(t>a+1))return rb(e,i,o)}return null};class hN{constructor(t){this.session=t}getTokens(t){var o;if(t<1)return null;const n=this.session.getLength();if(t>n)return null;const r=(o=this.session)==null?void 0:o.getTokens(t-1);return!r||!r.length?[]:fN(t,r)}getTokenAt(t){var r;const n=(r=this.session)==null?void 0:r.getTokens(t.lineNumber-1);return n?pN(t.lineNumber,t.column,n):null}}function mN(e){return e.match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/)}function gN(e){if(!e)return!1;for(const t of e.split(`
243
243
  `))if(mN(t))return!0;return!1}function vN(e){let t="NONE";const n=[];let r=[],o="";const i=e.trim().split(`
244
244
  `);let a;const l=/^\s*$/,s=/^\s*(?:#|\/{2,})(.*)\n?$/,c=/^\s*#!/,u=/^([^']*)'/,f=/^((?:[^\\"]|\\.)*)"/,d=/^((?:[^\\"']|\\.)+)/,b=/^\s*curl\s+/,S=/-X ?(GET|HEAD|POST|PUT|DELETE)/,O=/[\s"']https?:\/\//,h=/[\s"']https?:\/\/[^\/ ]+\/+([^\s"']+)/,y=/[\s"'][^\/ ]+\/+([^\s"']+)/,p=/^.+\s(--data|-d)\s*/,m=/^\s*(GET|HEAD|POST|PUT|DELETE)\s+\/?(.+)/;i.length>0&&c.test(i[0])&&i.shift();function g(){return o.length>0?!0:i.length===0?!1:(o=i.shift().replace(/[\r\n]+/g,`
245
245
  `)+`
@@ -267,12 +267,12 @@ Please check the server is up and running`),o.rejectWith({},[l,s,c])}),o}functi
267
267
  `+t.prev+t.base;return n+fr.call(e,","+n)+`
268
268
  `+t.prev}function Fl(e,t){var n=Gf(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=Kr(e,o)?t(e[o],e):""}var i=typeof Hf=="function"?Hf(e):[],a;if(wi){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l]}for(var s in e)Kr(e,s)&&(n&&String(Number(s))===s&&s<e.length||wi&&a["$"+s]instanceof Symbol||(M0.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof Hf=="function")for(var c=0;c<i.length;c++)N0.call(e,i[c])&&r.push("["+t(i[c])+"]: "+t(e[i[c]],e));return r}var U0=vi,xi=ff,ZL=AL,eF=Ra,Dl=U0("%WeakMap%",!0),Bl=U0("%Map%",!0),tF=xi("WeakMap.prototype.get",!0),nF=xi("WeakMap.prototype.set",!0),rF=xi("WeakMap.prototype.has",!0),oF=xi("Map.prototype.get",!0),iF=xi("Map.prototype.set",!0),aF=xi("Map.prototype.has",!0),Yf=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},sF=function(e,t){var n=Yf(e,t);return n&&n.value},lF=function(e,t,n){var r=Yf(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},cF=function(e,t){return!!Yf(e,t)},uF=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new eF("Side channel does not contain "+ZL(i))},get:function(i){if(Dl&&i&&(typeof i=="object"||typeof i=="function")){if(t)return tF(t,i)}else if(Bl){if(n)return oF(n,i)}else if(r)return sF(r,i)},has:function(i){if(Dl&&i&&(typeof i=="object"||typeof i=="function")){if(t)return rF(t,i)}else if(Bl){if(n)return aF(n,i)}else if(r)return cF(r,i);return!1},set:function(i,a){Dl&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Dl),nF(t,i,a)):Bl?(n||(n=new Bl),iF(n,i,a)):(r||(r={key:{},next:null}),lF(r,i,a))}};return o},dF=String.prototype.replace,fF=/%20/g,Jf={RFC1738:"RFC1738",RFC3986:"RFC3986"},Qf={default:Jf.RFC3986,formatters:{RFC1738:function(e){return dF.call(e,fF,"+")},RFC3986:function(e){return String(e)}},RFC1738:Jf.RFC1738,RFC3986:Jf.RFC3986},pF=Qf,Zf=Object.prototype.hasOwnProperty,Io=Array.isArray,pr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),hF=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Io(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},G0=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},mF=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Io(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Zf.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return Io(t)&&!Io(n)&&(o=G0(t,r)),Io(t)&&Io(n)?(n.forEach(function(i,a){if(Zf.call(t,a)){var l=t[a];l&&typeof l=="object"&&i&&typeof i=="object"?t[a]=e(l,i,r):t.push(i)}else t[a]=i}),t):Object.keys(n).reduce(function(i,a){var l=n[a];return Zf.call(i,a)?i[a]=e(i[a],l,r):i[a]=l,i},o)},gF=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},vF=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},ep=1024,_F=function(t,n,r,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(b){return"%26%23"+parseInt(b.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;s+=ep){for(var c=a.length>=ep?a.slice(s,s+ep):a,u=[],f=0;f<c.length;++f){var d=c.charCodeAt(f);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===pF.RFC1738&&(d===40||d===41)){u[u.length]=c.charAt(f);continue}if(d<128){u[u.length]=pr[d];continue}if(d<2048){u[u.length]=pr[192|d>>6]+pr[128|d&63];continue}if(d<55296||d>=57344){u[u.length]=pr[224|d>>12]+pr[128|d>>6&63]+pr[128|d&63];continue}f+=1,d=65536+((d&1023)<<10|c.charCodeAt(f)&1023),u[u.length]=pr[240|d>>18]+pr[128|d>>12&63]+pr[128|d>>6&63]+pr[128|d&63]}l+=u.join("")}return l},yF=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var c=l[s],u=a[c];typeof u=="object"&&u!==null&&r.indexOf(u)===-1&&(n.push({obj:a,prop:c}),r.push(u))}return hF(n),t},bF=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},wF=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},xF=function(t,n){return[].concat(t,n)},SF=function(t,n){if(Io(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},K0={arrayToObject:G0,assign:gF,combine:xF,compact:yF,decode:vF,encode:_F,isBuffer:wF,isRegExp:bF,maybeMap:SF,merge:mF},X0=uF,zl=K0,ka=Qf,CF=Object.prototype.hasOwnProperty,Y0={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},hr=Array.isArray,EF=Array.prototype.push,J0=function(e,t){EF.apply(e,hr(t)?t:[t])},OF=Date.prototype.toISOString,Q0=ka.default,Qt={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:zl.encode,encodeValuesOnly:!1,format:Q0,formatter:ka.formatters[Q0],indices:!1,serializeDate:function(t){return OF.call(t)},skipNulls:!1,strictNullHandling:!1},$F=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},tp={},TF=function e(t,n,r,o,i,a,l,s,c,u,f,d,b,S,O,h,y,p){for(var m=t,g=p,w=0,E=!1;(g=g.get(tp))!==void 0&&!E;){var C=g.get(t);if(w+=1,typeof C<"u"){if(C===w)throw new RangeError("Cyclic object value");E=!0}typeof g.get(tp)>"u"&&(w=0)}if(typeof u=="function"?m=u(n,m):m instanceof Date?m=b(m):r==="comma"&&hr(m)&&(m=zl.maybeMap(m,function(z){return z instanceof Date?b(z):z})),m===null){if(a)return c&&!h?c(n,Qt.encoder,y,"key",S):n;m=""}if($F(m)||zl.isBuffer(m)){if(c){var x=h?n:c(n,Qt.encoder,y,"key",S);return[O(x)+"="+O(c(m,Qt.encoder,y,"value",S))]}return[O(n)+"="+O(String(m))]}var T=[];if(typeof m>"u")return T;var M;if(r==="comma"&&hr(m))h&&c&&(m=zl.maybeMap(m,c)),M=[{value:m.length>0?m.join(",")||null:void 0}];else if(hr(u))M=u;else{var L=Object.keys(m);M=f?L.sort(f):L}var j=s?n.replace(/\./g,"%2E"):n,D=o&&hr(m)&&m.length===1?j+"[]":j;if(i&&hr(m)&&m.length===0)return D+"[]";for(var V=0;V<M.length;++V){var Z=M[V],J=typeof Z=="object"&&typeof Z.value<"u"?Z.value:m[Z];if(!(l&&J===null)){var I=d&&s?Z.replace(/\./g,"%2E"):Z,U=hr(m)?typeof r=="function"?r(D,I):D:D+(d?"."+I:"["+I+"]");p.set(t,w);var K=X0();K.set(tp,p),J0(T,e(J,U,r,o,i,a,l,s,r==="comma"&&h&&hr(m)?null:c,u,f,d,b,S,O,h,y,K))}}return T},PF=function(t){if(!t)return Qt;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||Qt.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=ka.default;if(typeof t.format<"u"){if(!CF.call(ka.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=ka.formatters[r],i=Qt.filter;(typeof t.filter=="function"||hr(t.filter))&&(i=t.filter);var a;if(t.arrayFormat in Y0?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=Qt.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Qt.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Qt.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Qt.allowEmptyArrays,arrayFormat:a,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Qt.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Qt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Qt.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Qt.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Qt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Qt.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Qt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Qt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Qt.strictNullHandling}},RF=function(e,t){var n=e,r=PF(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):hr(r.filter)&&(i=r.filter,o=i);var a=[];if(typeof n!="object"||n===null)return"";var l=Y0[r.arrayFormat],s=l==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=X0(),u=0;u<o.length;++u){var f=o[u];r.skipNulls&&n[f]===null||J0(a,TF(n[f],f,l,s,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var d=a.join(r.delimiter),b=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),d.length>0?b+d:""},Si=K0,np=Object.prototype.hasOwnProperty,jF=Array.isArray,Bt={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Si.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},MF=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Z0=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},IF="utf8=%26%2310003%3B",AF="utf8=%E2%9C%93",NF=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=n.parameterLimit===1/0?void 0:n.parameterLimit,a=o.split(n.delimiter,i),l=-1,s,c=n.charset;if(n.charsetSentinel)for(s=0;s<a.length;++s)a[s].indexOf("utf8=")===0&&(a[s]===AF?c="utf-8":a[s]===IF&&(c="iso-8859-1"),l=s,s=a.length);for(s=0;s<a.length;++s)if(s!==l){var u=a[s],f=u.indexOf("]="),d=f===-1?u.indexOf("="):f+1,b,S;d===-1?(b=n.decoder(u,Bt.decoder,c,"key"),S=n.strictNullHandling?null:""):(b=n.decoder(u.slice(0,d),Bt.decoder,c,"key"),S=Si.maybeMap(Z0(u.slice(d+1),n),function(h){return n.decoder(h,Bt.decoder,c,"value")})),S&&n.interpretNumericEntities&&c==="iso-8859-1"&&(S=MF(S)),u.indexOf("[]=")>-1&&(S=jF(S)?[S]:S);var O=np.call(r,b);O&&n.duplicates==="combine"?r[b]=Si.combine(r[b],S):(!O||n.duplicates==="last")&&(r[b]=S)}return r},kF=function(e,t,n,r){for(var o=r?t:Z0(t,n),i=e.length-1;i>=0;--i){var a,l=e[i];if(l==="[]"&&n.parseArrays)a=n.allowEmptyArrays&&(o===""||n.strictNullHandling&&o===null)?[]:[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,c=n.decodeDotInKeys?s.replace(/%2E/g,"."):s,u=parseInt(c,10);!n.parseArrays&&c===""?a={0:o}:!isNaN(u)&&l!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=o):c!=="__proto__"&&(a[c]=o)}o=a}return o},LF=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=r.depth>0&&a.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!r.plainObjects&&np.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var f=0;r.depth>0&&(s=l.exec(i))!==null&&f<r.depth;){if(f+=1,!r.plainObjects&&np.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(s[1])}if(s){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(s.index)+"]")}return kF(u,n,r,o)}},FF=function(t){if(!t)return Bt;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Bt.charset:t.charset,r=typeof t.duplicates>"u"?Bt.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:Bt.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Bt.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Bt.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Bt.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Bt.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Bt.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Bt.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Bt.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Bt.decoder,delimiter:typeof t.delimiter=="string"||Si.isRegExp(t.delimiter)?t.delimiter:Bt.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Bt.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Bt.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Bt.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Bt.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Bt.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Bt.strictNullHandling}},DF=function(e,t){var n=FF(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?NF(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),a=0;a<i.length;++a){var l=i[a],s=LF(l,r[l],n,typeof e=="string");o=Si.merge(o,s,n)}return n.allowSparse===!0?o:Si.compact(o)},BF=RF,zF=DF,qF=Qf,VF={formats:qF,parse:zF,stringify:BF};const HF=nc(VF);var WF=SL;function Bn(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var UF=/^([a-z0-9.+-]+:)/i,GF=/:[0-9]*$/,KF=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,XF=["<",">",'"',"`"," ","\r",`
269
269
  `," "],YF=["{","}","|","\\","^","`"].concat(XF),rp=["'"].concat(YF),ew=["%","/","?",";","#"].concat(rp),tw=["/","?","#"],JF=255,nw=/^[+a-z0-9A-Z_-]{0,63}$/,QF=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ZF={javascript:!0,"javascript:":!0},op={javascript:!0,"javascript:":!0},Ci={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ip=HF;function La(e,t,n){if(e&&typeof e=="object"&&e instanceof Bn)return e;var r=new Bn;return r.parse(e,t,n),r}Bn.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r<e.indexOf("#")?"?":"#",i=e.split(o),a=/\\/g;i[0]=i[0].replace(a,"/"),e=i.join(o);var l=e;if(l=l.trim(),!n&&e.split("#").length===1){var s=KF.exec(l);if(s)return this.path=l,this.href=l,this.pathname=s[1],s[2]?(this.search=s[2],t?this.query=ip.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var c=UF.exec(l);if(c){c=c[0];var u=c.toLowerCase();this.protocol=u,l=l.substr(c.length)}if(n||c||l.match(/^\/\/[^@/]+@[^@/]+/)){var f=l.substr(0,2)==="//";f&&!(c&&op[c])&&(l=l.substr(2),this.slashes=!0)}if(!op[c]&&(f||c&&!Ci[c])){for(var d=-1,b=0;b<tw.length;b++){var S=l.indexOf(tw[b]);S!==-1&&(d===-1||S<d)&&(d=S)}var O,h;d===-1?h=l.lastIndexOf("@"):h=l.lastIndexOf("@",d),h!==-1&&(O=l.slice(0,h),l=l.slice(h+1),this.auth=decodeURIComponent(O)),d=-1;for(var b=0;b<ew.length;b++){var S=l.indexOf(ew[b]);S!==-1&&(d===-1||S<d)&&(d=S)}d===-1&&(d=l.length),this.host=l.slice(0,d),l=l.slice(d),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y)for(var p=this.hostname.split(/\./),b=0,m=p.length;b<m;b++){var g=p[b];if(g&&!g.match(nw)){for(var w="",E=0,C=g.length;E<C;E++)g.charCodeAt(E)>127?w+="x":w+=g[E];if(!w.match(nw)){var x=p.slice(0,b),T=p.slice(b+1),M=g.match(QF);M&&(x.push(M[1]),T.unshift(M[2])),T.length&&(l="/"+T.join(".")+l),this.hostname=x.join(".");break}}}this.hostname.length>JF?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=WF.toASCII(this.hostname));var L=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+L,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!ZF[u])for(var b=0,m=rp.length;b<m;b++){var D=rp[b];if(l.indexOf(D)!==-1){var V=encodeURIComponent(D);V===D&&(V=escape(D)),l=l.split(D).join(V)}}var Z=l.indexOf("#");Z!==-1&&(this.hash=l.substr(Z),l=l.slice(0,Z));var J=l.indexOf("?");if(J!==-1?(this.search=l.substr(J),this.query=l.substr(J+1),t&&(this.query=ip.parse(this.query)),l=l.slice(0,J)):t&&(this.search="",this.query={}),l&&(this.pathname=l),Ci[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var L=this.pathname||"",I=this.search||"";this.path=L+I}return this.href=this.format(),this};function eD(e){return typeof e=="string"&&(e=La(e)),e instanceof Bn?e.format():Bn.prototype.format.call(e)}Bn.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=ip.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||i&&"?"+i||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Ci[t])&&o!==!1?(o="//"+(o||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):o||(o=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),n=n.replace(/[?#]/g,function(l){return encodeURIComponent(l)}),a=a.replace("#","%23"),t+o+n+a+r};function tD(e,t){return La(e,!1,!0).resolve(t)}Bn.prototype.resolve=function(e){return this.resolveObject(La(e,!1,!0)).format()};function nD(e,t){return e?La(e,!1,!0).resolveObject(t):t}Bn.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new Bn;t.parse(e,!1,!0),e=t}for(var n=new Bn,r=Object.keys(this),o=0;o<r.length;o++){var i=r[o];n[i]=this[i]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),l=0;l<a.length;l++){var s=a[l];s!=="protocol"&&(n[s]=e[s])}return Ci[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Ci[e.protocol]){for(var c=Object.keys(e),u=0;u<c.length;u++){var f=c[u];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,!e.host&&!op[e.protocol]){for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),m[0]!==""&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}else n.pathname=e.pathname;if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var d=n.pathname||"",b=n.search||"";n.path=d+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var S=n.pathname&&n.pathname.charAt(0)==="/",O=e.host||e.pathname&&e.pathname.charAt(0)==="/",h=O||S||n.host&&e.pathname,y=h,p=n.pathname&&n.pathname.split("/")||[],m=e.pathname&&e.pathname.split("/")||[],g=n.protocol&&!Ci[n.protocol];if(g&&(n.hostname="",n.port=null,n.host&&(p[0]===""?p[0]=n.host:p.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(m[0]===""?m[0]=e.host:m.unshift(e.host)),e.host=null),h=h&&(m[0]===""||p[0]==="")),O)n.host=e.host||e.host===""?e.host:n.host,n.hostname=e.hostname||e.hostname===""?e.hostname:n.hostname,n.search=e.search,n.query=e.query,p=m;else if(m.length)p||(p=[]),p.pop(),p=p.concat(m),n.search=e.search,n.query=e.query;else if(e.search!=null){if(g){n.host=p.shift(),n.hostname=n.host;var w=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;w&&(n.auth=w.shift(),n.hostname=w.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!p.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=p.slice(-1)[0],C=(n.host||e.host||p.length>1)&&(E==="."||E==="..")||E==="",x=0,T=p.length;T>=0;T--)E=p[T],E==="."?p.splice(T,1):E===".."?(p.splice(T,1),x++):x&&(p.splice(T,1),x--);if(!h&&!y)for(;x--;x)p.unshift("..");h&&p[0]!==""&&(!p[0]||p[0].charAt(0)!=="/")&&p.unshift(""),C&&p.join("/").substr(-1)!=="/"&&p.push("");var M=p[0]===""||p[0]&&p[0].charAt(0)==="/";if(g){n.hostname=M?"":p.length?p.shift():"",n.host=n.hostname;var w=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;w&&(n.auth=w.shift(),n.hostname=w.shift(),n.host=n.hostname)}return h=h||n.host&&p.length,h&&!M&&p.unshift(""),p.length>0?n.pathname=p.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},Bn.prototype.parseHost=function(){var e=this.host,t=GF.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var rD=La,oD=tD,rw=nD,iD=eD,aD=Bn;function sD(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function lD(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!r)continue;e=r+"/"+e,t=r.charAt(0)==="/"}return e=sD(cD(e.split("/"),function(o){return!!o}),!t).join("/"),(t?"/":"")+e||"."}function cD(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var ow=function(e){function t(){var r=this||self;return delete e.prototype.__magic__,r}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var n=__magic__;return n}(Object),uD=iD,iw=rD,aw=oD,sw=aD,Yr=ow.URL,lw=ow.URLSearchParams,dD=/%/g,fD=/\\/g,pD=/\n/g,hD=/\r/g,mD=/\t/g,gD=47;function vD(e){var t=e??null;return!!(t!==null&&(t!=null&&t.href)&&(t!=null&&t.origin))}function _D(e){if(e.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var t=e.pathname,n=0;n<t.length;n++)if(t[n]==="%"){var r=t.codePointAt(n+2)|32;if(t[n+1]==="2"&&r===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(t)}function yD(e){return e.includes("%")&&(e=e.replace(dD,"%25")),e.includes("\\")&&(e=e.replace(fD,"%5C")),e.includes(`
270
- `)&&(e=e.replace(pD,"%0A")),e.includes("\r")&&(e=e.replace(hD,"%0D")),e.includes(" ")&&(e=e.replace(mD,"%09")),e}var cw=function(t){if(typeof t>"u")throw new TypeError('The "domain" argument must be specified');return new Yr("http://"+t).hostname},uw=function(t){if(typeof t>"u")throw new TypeError('The "domain" argument must be specified');return new Yr("http://"+t).hostname},dw=function(t){var n=new Yr("file://"),r=lD(t),o=t.charCodeAt(t.length-1);return o===gD&&r[r.length-1]!=="/"&&(r+="/"),n.pathname=yD(r),n},fw=function(t){if(!vD(t)&&typeof t!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof t+" ("+t+")");var n=new Yr(t);if(n.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return _D(n)},pw=function(t,n){var r,o,i,a;if(n===void 0&&(n={}),!(t instanceof Yr))return uD(t);if(typeof n!="object"||n===null)throw new TypeError('The "options" argument must be of type object.');var l=(r=n.auth)!=null?r:!0,s=(o=n.fragment)!=null?o:!0,c=(i=n.search)!=null?i:!0;(a=n.unicode)!=null;var u=new Yr(t.toString());return l||(u.username="",u.password=""),s||(u.hash=""),c||(u.search=""),u.toString()},bD={format:pw,parse:iw,resolve:aw,resolveObject:rw,Url:sw,URL:Yr,URLSearchParams:lw,domainToASCII:cw,domainToUnicode:uw,pathToFileURL:dw,fileURLToPath:fw};const hw=Ip(Object.freeze(Object.defineProperty({__proto__:null,URL:Yr,URLSearchParams:lw,Url:sw,default:bD,domainToASCII:cw,domainToUnicode:uw,fileURLToPath:fw,format:pw,parse:iw,pathToFileURL:dw,resolve:aw,resolveObject:rw},Symbol.toStringTag,{value:"Module"})));(function(e){var t=vL,n=_l,r=_L,o=wL,i=hw,a=e;a.request=function(l,s){typeof l=="string"?l=i.parse(l):l=r(l);var c=yt.location.protocol.search(/^https?:$/)===-1?"http:":"",u=l.protocol||c,f=l.hostname||l.host,d=l.port,b=l.path||"/";f&&f.indexOf(":")!==-1&&(f="["+f+"]"),l.url=(f?u+"//"+f:"")+(d?":"+d:"")+b,l.method=(l.method||"GET").toUpperCase(),l.headers=l.headers||{};var S=new t(l);return s&&S.on("response",s),S},a.get=function(s,c){var u=a.request(s,c);return u.end(),u},a.ClientRequest=t,a.IncomingMessage=n.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=o,a.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(pb),function(e){var t=pb,n=hw,r=e.exports;for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.request=function(a,l){return a=i(a),t.request.call(this,a,l)},r.get=function(a,l){return a=i(a),t.get.call(this,a,l)};function i(a){if(typeof a=="string"&&(a=n.parse(a)),a.protocol||(a.protocol="https:"),a.protocol!=="https:")throw new Error('Protocol "'+a.protocol+'" not supported. Expected "https:"');return a}}(WN);const mw={__template:{field:""},field:"{field}",size:10,shard_size:10,shard_min_doc_count:10,min_doc_count:10,include:{__one_of:["*",{pattern:"",flags:""}]},exclude:{__one_of:["*",{pattern:"",flags:""}]},execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash"]},background_filter:{__scope_link:"GLOBAL.filter"},mutual_information:{include_negatives:{__one_of:[!0,!1]}},chi_square:{include_negatives:{__one_of:[!0,!1]},background_is_superset:{__one_of:[!0,!1]}},percentage:{},gnd:{background_is_superset:{__one_of:[!0,!1]}},script_heuristic:{__template:{script:"_subset_freq/(_superset_freq - _subset_freq + 1)"},script:{}}},Ei={__template:{field:""},field:"{field}",missing:0,script:{}},wD={__template:{field:""},field:"{field}"},Oi={__one_of:["skip","insert_zeros"]},Jr={__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Oi},ap={"*":{aggs:{__template:{NAME:{AGG_TYPE:{}}}},adjacency_matrix:{filters:{}},diversified_sampler:{shard_size:"",field:""},min:Ei,max:Ei,avg:Ei,sum:Ei,stats:Ei,extended_stats:Ei,value_count:{__template:{field:""},field:"{field}",script:{}},global:{},filter:{},filters:{__template:{filters:{NAME:{}}},filters:{"*":{__scope_link:"GLOBAL.filter"}},other_bucket:{__one_of:[!0,!1]},other_bucket_key:""},missing:wD,nested:{__template:{path:""},path:""},reverse_nested:{__template:{path:""},path:""},terms:{__template:{field:"",size:10},field:"{field}",size:10,shard_size:10,order:{__template:{_key:"asc"},_term:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},min_doc_count:10,script:{},include:".*",exclude:".*",execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]},show_term_doc_count_error:{__one_of:[!0,!1]},collect_mode:{__one_of:["depth_first","breadth_first"]},missing:""},significant_text:{...mw,filter_duplicate_text:"__flag__"},significant_terms:mw,range:{__template:{field:"",ranges:[{from:50,to:100}]},field:"{field}",ranges:[{to:50,from:100,key:""}],keyed:{__one_of:[!0,!1]},script:{}},date_range:{__template:{field:"",ranges:[{from:"now-10d/d",to:"now"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:""}],keyed:{__one_of:[!0,!1]},script:{}},ip_range:{__template:{field:"",ranges:[{from:"10.0.0.5",to:"10.0.0.10"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:"",mask:"10.0.0.127/25"}],keyed:{__one_of:[!0,!1]},script:{}},histogram:{__template:{field:"price",interval:50},field:"{field}",interval:50,extended_bounds:{__template:{min:0,max:50},min:0,max:50},min_doc_count:0,order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},missing:0},date_histogram:{__template:{field:"date",interval:"month"},field:"{field}",interval:{__one_of:["year","quarter","week","day","hour","minute","second"]},min_doc_count:0,extended_bounds:{__template:{min:"now/d",max:"now/d"},min:"now/d",max:"now/d"},order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},pre_zone:"-01:00",post_zone:"-01:00",pre_zone_adjust_large_interval:{__one_of:[!0,!1]},factor:1e3,pre_offset:"1d",post_offset:"1d",format:"yyyy-MM-dd",time_zone:"00:00",missing:""},geo_distance:{__template:{field:"location",origin:{lat:52.376,lon:4.894},ranges:[{from:100,to:300}]},field:"{field}",origin:{lat:0,lon:0},unit:{__one_of:["mi","km","in","yd","m","cm","mm"]},ranges:[{from:50,to:100}],distance_type:{__one_of:["arc","sloppy_arc","plane"]}},geohash_grid:{__template:{field:"",precision:3},field:"{field}",precision:{__one_of:[1,2,3,4,5,6,7,8,9,10,11,12]},size:10,shard_size:10},composite:{__template:{sources:[{NAME:{AGG_TYPE:{}}}]},sources:[{__scope_link:".",__template:{NAME:{AGG_TYPE:{}}}}],size:10,after:{}},percentiles:{__template:{field:"",percents:[1,5,25,50,75,95,99]},field:"{field}",percents:{__template:[1,5,25,50,75,95,99],__any_of:[]},script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},cardinality:{__template:{field:""},precision_threshold:100,rehash:!0,script:{},missing:""},cumulative_cardinality:{__template:{buckets_path:""},buckets_path:"",format:""},scripted_metric:{__template:{init_script:"",map_script:"",combine_script:"",reduce_script:""},init_script:{__scope_link:"GLOBAL.script"},map_script:{__scope_link:"GLOBAL.script"},combine_script:{__scope_link:"GLOBAL.script"},reduce_script:{__scope_link:"GLOBAL.script"},lang:"groovy",params:{},reduce_params:{}},geo_bounds:{__template:{field:""},field:"{field}",wrap_longitude:{__one_of:[!0,!1]}},top_hits:{__template:{size:10},from:0,size:10,sort:{__template:[],__scope_link:"search.sort"},highlight:{},explain:{__one_of:[!0,!1]},_source:{__template:"",__scope_link:"search._source"},script_fields:{__scope_link:"search.script_fields"},docvalue_fields:["{field}"],version:{__one_of:[!0,!1]}},percentile_ranks:{__template:{field:"",values:[10,15]},field:"{field}",values:[],script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},sampler:{__template:{},field:"{field}",script:{},shard_size:100,max_docs_per_value:3,execution_hint:{__one_of:["map","global_ordinals","bytes_hash"]}},children:{__template:{type:""},type:""},derivative:Jr,avg_bucket:Jr,max_bucket:Jr,min_bucket:Jr,stats_bucket:Jr,extended_stats_bucket:{...Jr,sigma:""},percentiles_bucket:{...Jr,percents:[]},sum_bucket:Jr,moving_avg:{__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Oi,window:5,model:{__one_of:["simple","linear","ewma","holt","holt_winters"]},settings:{type:{__one_of:["add","mult"]},alpha:.5,beta:.5,gamma:.5,period:7}},cumulative_sum:{__template:{buckets_path:""},buckets_path:"",format:""},serial_diff:{__template:{buckets_path:"",lag:7},lag:7,gap_policy:Oi,buckets_path:"",format:""},bucket_script:{__template:{buckets_path:{},script:""},buckets_path:{},format:"",gap_policy:Oi,script:""},bucket_selector:{__template:{buckets_path:{},script:""},buckets_path:{},gap_policy:Oi,script:""},bucket_sort:{__template:{sort:[]},sort:["{field}"],from:0,size:0,gap_policy:Oi},matrix_stats:{__template:{fields:[]},fields:["{field}"]}}},{terms:xD,histogram:SD,date_histogram:CD}=ap["*"],ED=e=>{e.addGlobalAutocompleteRules("aggregations",ap),e.addGlobalAutocompleteRules("aggs",ap),e.addGlobalAutocompleteRules("groupByAggs",{"*":{terms:xD,histogram:SD,date_histogram:CD}})},OD=e=>{const t={filter:{},routing:"1",search_routing:"1,2",index_routing:"1"};e.addGlobalAutocompleteRules("aliases",{"*":t})},$D=e=>{e.addEndpointDescription("update",{data_autocomplete_rules:{script:{},doc:{},upsert:{},scripted_upsert:{__one_of:[!0,!1]}}}),e.addEndpointDescription("put_script",{methods:["POST","PUT"],patterns:["_scripts/{lang}/{id}","_scripts/{lang}/{id}/_create"],url_components:{lang:["groovy","expressions"]},data_autocomplete_rules:{script:""}}),e.addEndpointDescription("termvectors",{data_autocomplete_rules:{fields:["{field}"],offsets:{__one_of:[!1,!0]},payloads:{__one_of:[!1,!0]},positions:{__one_of:[!1,!0]},term_statistics:{__one_of:[!0,!1]},field_statistics:{__one_of:[!1,!0]},per_field_analyzer:{__template:{FIELD:""},"{field}":""},routing:"",version:1,version_type:["external","external_gt","external_gte","force","internal"],doc:{},filter:{max_num_terms:1,min_term_freq:1,max_term_freq:1,min_doc_freq:1,max_doc_freq:1,min_word_length:1,max_word_length:1}}})},Nt={};Nt.and={__template:{filters:[{}]},filters:[{__scope_link:"."}]},Nt.bool={__scope_link:"GLOBAL.query"},Nt.exists={__template:{field:"FIELD_NAME"},field:"{field}"},Nt.ids={__template:{values:["ID"]},type:"{type}",values:[""]},Nt.limit={__template:{value:100},value:100},Nt.geo_bounding_box={__template:{FIELD:{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.717,lon:-73.99}}},"{field}":{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.73,lon:-74.1}},type:{__one_of:["memory","indexed"]}},Nt.geo_distance={__template:{distance:100,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},distance:100,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},optimize_bbox:{__one_of:["memory","indexed","none"]},"{field}":{lat:40.73,lon:-74.1}},Nt.geo_distance_range={__template:{from:100,to:200,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},from:100,to:200,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},include_lower:{__one_of:[!0,!1]},include_upper:{__one_of:[!0,!1]},"{field}":{lat:40.73,lon:-74.1}},Nt.geo_polygon={__template:{FIELD:{points:[{lat:40.73,lon:-74.1},{lat:40.83,lon:-75.1}]}},"{field}":{points:[{lat:40.73,lon:-74.1}]}},Nt.geo_shape={__template:{FIELD:{shape:{type:"envelope",coordinates:[[-45,45],[45,-45]]},relation:"within"}},"{field}":{shape:{type:"",coordinates:[]},indexed_shape:{id:"",index:"{index}",type:"{type}",shape_field_name:"shape"},relation:{__one_of:["within","intersects","disjoint"]}}},Nt.has_child={__template:{type:"TYPE",filter:{}},type:"{type}",query:{},filter:{},_scope:"",min_children:1,max_children:10},Nt.has_parent={__template:{parent_type:"TYPE",filter:{}},parent_type:"{type}",query:{},filter:{},_scope:""},Nt.m=Nt.missing={__template:{field:"FIELD"},existence:{__one_of:[!0,!1]},null_value:{__one_of:[!0,!1]},field:"{field}"},Nt.not={__template:{filter:{}},filter:{}},Nt.range={__template:{FIELD:{gte:10,lte:20}},"{field}":{gte:1,gt:1,lte:20,lt:20,time_zone:"+01:00",format:"dd/MM/yyyy||yyyy",execution:{__one_of:["index","fielddata"]}}},Nt.or={__template:{filters:[{}]},filters:[{__scope_link:"."}]},Nt.prefix={__template:{FIELD:"VALUE"},"{field}":""},Nt.query={},Nt.script={__template:{script:{}},script:{}},Nt.term={__template:{FIELD:"VALUE"},"{field}":""},Nt.terms={__template:{FIELD:["VALUE1","VALUE2"]},field:["{field}"],execution:{__one_of:["plain","bool","and","or","bool_nocache","and_nocache","or_nocache"]}},Nt.nested={__template:{path:"path_to_nested_doc",query:{}},query:{},path:"",_name:""};const TD=e=>{e.addGlobalAutocompleteRules("filter",Nt)},gw={boundary_chars:{},boundary_max_scan:20,boundary_scanner:{__one_of:["chars","sentence","word"]},boundary_scanner_locale:{},encoder:{__one_of:["default","html"]},force_source:{__one_of:["false","true"]},fragmenter:{__one_of:["simple","span"]},highlight_query:{__scope_link:"GLOBAL.query"},matched_fields:["FIELD"],order:{},no_match_size:0,number_of_fragments:5,phrase_limit:256,pre_tags:{},post_tags:{},require_field_match:{__one_of:["true","false"]},tags_schema:{}},PD=e=>{e.addGlobalAutocompleteRules("highlight",{...gw,fields:{"{field}":{fragment_size:20,...gw}}}),e.addGlobalAutocompleteRules("script",{__template:{source:"SCRIPT"},source:"SCRIPT",file:"FILE_SCRIPT_NAME",id:"SCRIPT_ID",lang:"",params:{}})},gt={on_failure:[],ignore_failure:{__one_of:[!1,!0]},if:"",tag:""},RD={append:{__template:{field:"",value:[]},field:"",value:[],...gt}},jD={bytes:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},MD={circle:{__template:{field:"",error_distance:"",shape_type:""},field:"",target_field:"",error_distance:"",shape_type:{__one_of:["geo_shape","shape"]},ignore_missing:{__one_of:[!1,!0]},...gt}},ID={csv:{__template:{field:"",target_fields:[""]},field:"",target_fields:[""],separator:"",quote:"",empty_value:"",trim:{__one_of:[!0,!1]},ignore_missing:{__one_of:[!1,!0]},...gt}},AD={convert:{__template:{field:"",type:""},field:"",type:{__one_of:["integer","float","string","boolean","auto"]},target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},ND={date:{__template:{field:"",formats:[]},field:"",target_field:"@timestamp",formats:[],timezone:"UTC",locale:"ENGLISH",...gt}},kD={date_index_name:{__template:{field:"",date_rounding:""},field:"",date_rounding:{__one_of:["y","M","w","d","h","m","s"]},date_formats:[],timezone:"UTC",locale:"ENGLISH",index_name_format:"yyyy-MM-dd",...gt}},LD={dissect:{__template:{field:"",pattern:""},field:"",pattern:"",append_separator:"",ignore_missing:{__one_of:[!1,!0]},...gt}},FD={dot_expander:{__template:{field:""},field:"",path:"",...gt}},DD={drop:{__template:{},...gt}},BD={fail:{__template:{message:""},message:"",...gt}},zD={foreach:{__template:{field:"",processor:{}},field:"",processor:{__scope_link:"_processor"},...gt}},qD={geoip:{__template:{field:""},field:"",target_field:"",database_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]},first_only:{__one_of:[!1,!0]}}},VD={grok:{__template:{field:"",patterns:[]},field:"",patterns:[],pattern_definitions:{},trace_match:{__one_of:[!1,!0]},ignore_missing:{__one_of:[!1,!0]},...gt}},HD={gsub:{__template:{field:"",pattern:"",replacement:""},field:"",pattern:"",replacement:"",...gt}},WD={html_strip:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},UD={inference:{__template:{model_id:"",field_map:{},inference_config:{}},model_id:"",field_map:{},inference_config:{},target_field:"",...gt}},GD={join:{__template:{field:"",separator:""},field:"",separator:"",...gt}},KD={json:{__template:{field:""},field:"",target_field:"",add_to_root:{__one_of:[!1,!0]},...gt}},XD={kv:{__template:{field:"",field_split:"",value_split:""},field:"",field_split:"",value_split:"",target_field:"",include_keys:[],ignore_missing:{__one_of:[!1,!0]},...gt}},YD={lowercase:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},JD={pipeline:{__template:{name:""},name:"",...gt}},QD={remove:{__template:{field:""},field:"",...gt}},ZD={rename:{__template:{field:"",target_field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},eB={script:{__template:{},lang:"painless",file:"",id:"",source:"",params:{},...gt}},tB={set:{__template:{field:"",value:""},field:"",value:"",override:{__one_of:[!0,!1]},...gt}},nB={set_security_user:{__template:{field:""},field:"",properties:[""],...gt}},rB={split:{__template:{field:"",separator:""},field:"",separator:"",ignore_missing:{__one_of:[!1,!0]},...gt}},oB={sort:{__template:{field:""},field:"",order:"asc",...gt}},iB={trim:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},aB={uppercase:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},sB={urldecode:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},vw={__one_of:[RD,jD,ID,MD,AD,ND,kD,LD,FD,DD,BD,zD,qD,VD,HD,WD,UD,GD,KD,XD,YD,JD,QD,ZD,eB,tB,nB,rB,oB,iB,aB,sB,{user_agent:{__template:{field:""},field:"",target_field:"",regex_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]}}}]},_w={description:"",processors:[vw],version:123},lB=e=>{e.addEndpointDescription("_processor",{data_autocomplete_rules:vw}),e.addEndpointDescription("ingest.put_pipeline",{methods:["PUT"],patterns:["_ingest/pipeline/{id}"],data_autocomplete_rules:_w}),e.addEndpointDescription("ingest.simulate",{data_autocomplete_rules:{pipeline:_w,docs:[]}})},Pt=Object.freeze({__one_of:[!0,!1]}),cB=e=>{e.addEndpointDescription("put_mapping",{priority:10,data_autocomplete_rules:{__template:{properties:{FIELD:{}}},_source:{enabled:Pt},_all:{enabled:Pt},_field_names:{index:Pt},_routing:{required:Pt},_index:{enabled:Pt},_parent:{__template:{type:""},type:"{type}"},_timestamp:{enabled:Pt,format:"YYYY-MM-dd",default:""},dynamic_date_formats:["yyyy-MM-dd"],date_detection:Pt,numeric_detection:Pt,properties:{"*":{type:{__one_of:["text","keyword","float","half_float","scaled_float","double","byte","short","integer","long","date","boolean","binary","object","nested","geo_point","geo_shape"]},store:Pt,index:Pt,term_vector:{__one_of:["no","yes","with_offsets","with_positions","with_positions_offsets"]},boost:1,null_value:"",doc_values:Pt,eager_global_ordinals:Pt,norms:Pt,coerce:Pt,index_options:{__one_of:["docs","freqs","positions"]},analyzer:"standard",search_analyzer:"standard",include_in_all:{__one_of:[!1,!0]},ignore_above:10,position_increment_gap:0,precision_step:4,ignore_malformed:Pt,scaling_factor:100,lat_lon:{__one_of:[!0,!1]},geohash:{__one_of:[!0,!1]},geohash_precision:"1m",geohash_prefix:{__one_of:[!0,!1]},validate:{__one_of:[!0,!1]},validate_lat:{__one_of:[!0,!1]},validate_lon:{__one_of:[!0,!1]},normalize:{__one_of:[!0,!1]},normalize_lat:{__one_of:[!0,!1]},normalize_lon:{__one_of:[!0,!1]},tree:{__one_of:["geohash","quadtree"]},precision:"5km",tree_levels:12,distance_error_pct:.025,orientation:"ccw",format:{__one_of:[[...["date","date_time","date_time_no_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","week_date_time_no_millis"].flatMap(function(t){return["basic_"+t,"strict_"+t]}),"date","date_hour","date_hour_minute","date_hour_minute_second","date_hour_minute_second_fraction","date_hour_minute_second_millis","date_optional_time","date_time","date_time_no_millis","hour","hour_minute","hour_minute_second","hour_minute_second_fraction","hour_minute_second_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","weekDateTimeNoMillis","weekyear","strict_weekyear","weekyear_week","strict_weekyear_week","strict_date_optional_time_nanos","weekyear_week_day","strict_weekyear_week_day","year","year_month","year_month_day","epoch_millis","epoch_second"].sort()]},fielddata:{filter:{regex:"",frequency:{min:.001,max:.1,min_segment_size:500}}},similarity:{__one_of:["default","BM25"]},properties:{__scope_link:"put_mapping.{type}.properties"},fields:{"*":{__scope_link:"put_mapping.type.properties.field"}},copy_to:{__one_of:["{field}",["{field}"]]},include_in_parent:Pt,include_in_root:Pt}}}})},uB=e=>{e.addEndpointDescription("put_settings",{data_autocomplete_rules:{refresh_interval:"1s",number_of_shards:1,number_of_replicas:1,"blocks.read_only":Pt,"blocks.read":Pt,"blocks.write":Pt,"blocks.metadata":Pt,term_index_interval:32,term_index_divisor:1,"translog.flush_threshold_ops":5e3,"translog.flush_threshold_size":"200mb","translog.flush_threshold_period":"30m","translog.disable_flush":Pt,"cache.filter.max_size":"2gb","cache.filter.expire":"2h","gateway.snapshot_interval":"10s","translog.durability":{__one_of:["request","async"]},routing:{allocation:{include:{tag:""},exclude:{tag:""},require:{tag:""},total_shards_per_node:-1}},"recovery.initial_shards":{__one_of:["quorum","quorum-1","half","full","full-1"]},"ttl.disable_purge":Pt,analysis:{analyzer:{},tokenizer:{},filter:{},char_filter:{}},"cache.query.enable":Pt,shadow_replicas:Pt,shared_filesystem:Pt,data_path:"path",codec:{__one_of:["default","best_compression","lucene_default"]}}})},yw={FIELD:"REGEXP"},bw={FIELD:{}},ww={FIELD:{value:""}},xw={FIELD:{gte:10,lte:20}},Sw={match:{span_term:{FIELD:"VALUE"}},end:3},Cw={clauses:[{span_term:{FIELD:{value:"VALUE"}}}],slop:12,in_order:!1},Ew={FIELD:{value:"VALUE"}},Ow={include:{span_term:{FIELD:{value:"VALUE"}}},exclude:{span_term:{FIELD:{value:"VALUE"}}}},$w={clauses:[{span_term:{FIELD:{value:"VALUE"}}}]},Tw={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},Pw={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},Rw={FIELD:{value:"VALUE"}},jw={cutoff_frequency:.001,query:"",operator:{__one_of:["and","or"]},zero_terms_query:{__one_of:["none","all"]},max_expansions:10,analyzer:"",boost:1,lenient:{__one_of:["true","false"]},fuzzy_transpositions:{__one_of:["true","false"]},auto_generate_synonyms_phrase_query:{__one_of:["true","false"]},fuzziness:1,prefix_length:1,minimum_should_match:1},Mw={docvalue_fields:["FIELD"],from:{},size:{},sort:{},name:{},highlight:{},_source:{__one_of:["true","false"]},explain:{__one_of:["true","false"]},script_fields:{__template:{FIELD:{script:{}}},"{field}":{script:{}}},version:{__one_of:["true","false"]}},Iw={span_first:{__template:Sw,__scope_link:".span_first"},span_near:{__template:Cw,__scope_link:".span_near"},span_or:{__template:$w,__scope_link:".span_or"},span_not:{__template:Ow,__scope_link:".span_not"},span_term:{__template:Ew,__scope_link:".span_term"},span_containing:{__template:Tw,__scope_link:".span_containing"},span_within:{__template:Pw,__scope_link:".span_within"}},Tr={...Iw,field_masking_span:{__template:{query:{SPAN_QUERY:{}}},query:Iw,field:""}},dB={wildcard:{__template:Rw,__scope_link:".wildcard"},fuzzy:{__template:bw,__scope_link:".fuzzy"},prefix:{__template:ww,__scope_link:".prefix"},range:{__template:xw,__scope_link:".range"},regexp:{__template:yw,__scope_link:".regexp"}},sp={__template:{FIELD:{origin:"",scale:""}},"{field}":{origin:"",scale:"",offset:"",decay:.5}},Aw={script_score:{__template:{script:"_score * doc['f'].value"},script:{}},boost_factor:2,random_score:{seed:314159265359},linear:sp,exp:sp,gauss:sp,field_value_factor:{__template:{field:""},field:"{field}",factor:1.2,modifier:{__one_of:["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]}}},fB=[ED,OD,$D,TD,PD,lB,cB,uB,e=>{e.addGlobalAutocompleteRules("query",{match:{__template:{FIELD:"TEXT"},"{field}":{type:{__one_of:["phrase","phrase_prefix","boolean"]},...jw}},match_phrase:{__template:{FIELD:"PHRASE"},"{field}":{query:"",analyzer:"",slop:1}},match_phrase_prefix:{__template:{FIELD:"PREFIX"},"{field}":{query:"",analyzer:"",max_expansions:10,prefix_length:1,fuzziness:.1}},regexp:{__template:yw,"{field}":{value:"",flags:{__one_of:["ALL","ANYSTRING","COMPLEMENT","EMPTY","INTERSECTION","INTERVAL","NONE"]},max_determinized_states:1e4}},multi_match:{__template:{query:"",fields:[]},...jw,fields:["{field}"],use_dis_max:{__template:!0,__one_of:[!0,!1]},tie_breaker:0,type:{__one_of:["best_fields","most_fields","cross_fields","phrase","phrase_prefix"]}},bool:{must:[{__scope_link:"."}],must_not:[{__scope_link:"."}],should:[{__scope_link:"."}],filter:[{__scope_link:"GLOBAL.filter"}],minimum_should_match:1,boost:1},boosting:{positive:{__scope_link:"."},negative:{__scope_link:"."},negative_boost:.2},ids:{type:"",values:[]},constant_score:{__template:{filter:{},boost:1.2},query:{},filter:{},boost:1.2},dis_max:{__template:{tie_breaker:.7,boost:1.2,queries:[]},tie_breaker:.7,boost:1.2,queries:[{__scope_link:"."}]},distance_feature:{__template:{field:"",origin:"",pivot:""},field:"{field}",origin:"",pivot:""},exists:{field:""},field:{"{field}":{query:"",boost:2,enable_position_increments:{__template:!1,__one_of:[!0,!1]}}},fuzzy:{__template:bw,"{field}":{value:"",boost:1,fuzziness:.5,prefix_length:0}},has_child:{__template:{type:"TYPE",query:{}},inner_hits:{...Mw},type:"{type}",score_mode:{__one_of:["none","max","sum","avg"]},_scope:"",query:{},min_children:1,max_children:10},has_parent:{__template:{parent_type:"TYPE",query:{}},parent_type:"{type}",score_mode:{__one_of:["none","score"]},_scope:"",query:{}},match_all:{boost:1},more_like_this:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},fields:["{field}"],like:"",percent_terms_to_match:.3,min_term_freq:2,max_query_terms:25,stop_words:[""],min_doc_freq:5,max_doc_freq:100,min_word_len:0,max_word_len:0,boost_terms:1,boost:1,analyzer:"",docs:[{_index:"{index}",_type:"{type}",_id:""}],ids:[""]},mlt:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},__scope_link:".more_like_this"},prefix:{__template:ww,"{field}":{value:"",boost:1}},query_string:{__template:{default_field:"FIELD",query:"this AND that OR thus"},query:"",default_field:"{field}",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",allow_leading_wildcard:{__one_of:[!0,!1]},enable_position_increments:{__one_of:[!0,!1]},fuzzy_max_expansions:50,fuzziness:.5,fuzzy_prefix_length:0,phrase_slop:0,boost:1,analyze_wildcard:{__one_of:[!1,!0]},auto_generate_phrase_queries:{__one_of:[!1,!0]},minimum_should_match:"20%",lenient:{__one_of:[!1,!0]},use_dis_max:{__one_of:[!0,!1]},tie_breaker:0,time_zone:"+01:00"},simple_query_string:{__template:{query:"",fields:[]},query:"",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",flags:"OR|AND|PREFIX",locale:"ROOT",lenient:{__one_of:[!0,!1]}},range:{__template:xw,"{field}":{__template:{gte:10,lte:20},gte:10,gt:10,lte:20,lt:20,time_zone:"+01:00",boost:1,format:"dd/MM/yyyy||yyyy"}},span_first:{__template:Sw,match:Tr},span_multi:{__template:{match:{MULTI_TERM_QUERY:{}}},match:dB},span_near:{__template:Cw,clauses:[Tr],slop:12,in_order:{__one_of:[!1,!0]},collect_payloads:{__one_of:[!1,!0]}},span_term:{__template:Ew,"{field}":{value:"",boost:2}},span_not:{__template:Ow,include:Tr,exclude:Tr},span_or:{__template:$w,clauses:[Tr]},span_containing:{__template:Tw,little:Tr,big:Tr},span_within:{__template:Pw,little:Tr,big:Tr},term:{__template:{FIELD:{value:"VALUE"}},"{field}":{value:"",boost:2}},terms:{__template:{FIELD:["VALUE1","VALUE2"]},"{field}":[""]},wildcard:{__template:Rw,"{field}":{value:"",boost:2}},nested:{__template:{path:"path_to_nested_doc",query:{}},inner_hits:{...Mw},path:"",query:{},score_mode:{__one_of:["avg","total","max","none"]}},percolate:{__template:{field:"",document:{}},field:"",document:{},name:"",documents:[{}],document_type:"",index:"",type:"",id:"",routing:"",preference:""},common:{__template:{FIELD:{query:{}}},"{field}":{query:{},cutoff_frequency:.001,minimum_should_match:{low_freq:{},high_freq:{}}}},custom_filters_score:{__template:{query:{},filters:[{filter:{}}]},query:{},filters:[{filter:{},boost:2,script:{}}],score_mode:{__one_of:["first","min","max","total","avg","multiply"]},max_boost:2,params:{},lang:""},indices:{__template:{indices:["INDEX1","INDEX2"],query:{}},indices:["{index}"],query:{},no_match_query:{__scope_link:"."}},geo_shape:{__template:{location:{},relation:"within"},__scope_link:".filter.geo_shape"},function_score:we.defaults({__template:{query:{},functions:[{}]},query:{},functions:[we.defaults({filter:{},weight:1},Aw)],boost:1,boost_mode:{__one_of:["multiply","replace","sum","avg","max","min"]},score_mode:{__one_of:["multiply","sum","first","avg","max","min"]},max_boost:10,min_score:1},Aw),script:{__template:{script:"_score * doc['f'].value"},script:{}},wrapper:{__template:{query:"QUERY_BASE64_ENCODED"},query:""}})},e=>{e.addEndpointDescription("reindex",{methods:["POST"],patterns:["_reindex"],data_autocomplete_rules:{__template:{source:{},dest:{}},source:{index:"",type:"",query:{__scope_link:"GLOBAL.query"},sort:{__template:{FIELD:"desc"},FIELD:{__one_of:["asc","desc"]}},size:1e3,remote:{__template:{host:""},host:"",username:"",password:"",socket_timeout:"30s",connect_timeout:"30s"}},dest:{index:"",version_type:{__one_of:["internal","external"]},op_type:"create",routing:{__one_of:["keep","discard","=SOME TEXT"]},pipeline:""},conflicts:"proceed",size:10,script:{__scope_link:"GLOBAL.script"}}})},e=>{e.addEndpointDescription("search",{priority:10,data_autocomplete_rules:{query:{},profile:{__one_of:["true","false"]},aggs:{__template:{NAME:{AGG_TYPE:{}}}},post_filter:{__scope_link:"GLOBAL.filter"},size:{__template:20},from:0,sort:{__template:[{FIELD:{order:"desc"}}],__any_of:[{"{field}":{order:{__one_of:["desc","asc"]},missing:{__one_of:["_last","_first"]},mode:{__one_of:["min","max","avg","sum"]},nested_path:"",nested_filter:{__scope_link:"GLOBAL.filter"}}},"{field}","_score",{_geo_distance:{__template:{FIELD:{lat:40,lon:-70},order:"asc"},"{field}":{__one_of:[{__template:{lat:40,lon:-70},lat:40,lon:-70},[{__template:{lat:40,lon:-70},lat:40,lon:-70}],[""],""]},distance_type:{__one_of:["sloppy_arc","arc","plane"]},sort_mode:{__one_of:["min","max","avg"]},order:{__one_of:["asc","desc"]},unit:"km"}}]},stored_fields:["{field}"],suggest:{__template:{YOUR_SUGGESTION:{text:"YOUR TEXT",term:{FIELD:"MESSAGE"}}},"*":{include:[],exclude:[]}},docvalue_fields:["{field}"],collapse:{__template:{field:"FIELD"}},indices_boost:{__template:[{INDEX:1}]},rescore:{__template:{query:{},window_size:50}},script_fields:{__template:{FIELD:{script:{}}},"*":{__scope_link:"GLOBAL.script"}},partial_fields:{__template:{NAME:{include:[]}},"*":{include:[],exclude:[]}},highlight:{},_source:{__one_of:["{field}",["{field}"],{includes:{__one_of:["{field}",["{field}"]]},excludes:{__one_of:["{field}",["{field}"]]}}]},explain:{__one_of:[!0,!1]},stats:[""],timeout:"1s",version:{__one_of:[!0,!1]},track_total_hits:{__one_of:[!0,!1]}}}),e.addEndpointDescription("search_template",{data_autocomplete_rules:{template:{__one_of:[{__scope_link:"search"},{__scope_link:"GLOBAL.script"}]},params:{}}}),e.addEndpointDescription("render_search_template",{data_autocomplete_rules:{__one_of:[{source:{__scope_link:"search"}},{__scope_link:"GLOBAL.script"}],params:{}}}),e.addEndpointDescription("_search/template/{id}",{data_autocomplete_rules:{template:{__scope_link:"search"}}})}];class pB{constructor(){this.name="es",this.globalRules={},this.endpoints={},this.extensionSpecFilePaths=[],this.hasLoadedSpec=!1}addGlobalAutocompleteRules(t,n){this.globalRules[t]=n}addEndpointDescription(t,n={}){let r={};this.endpoints[t]&&(r={...this.endpoints[t]});let o;we.each(n.patterns||[],function(i){i.indexOf("{indices}")>=0&&(o=o||{},o.ignore_unavailable="__flag__",o.allow_no_indices="__flag__",o.expand_wildcards=["open","closed"])}),o&&(n.url_params=we.assign(n.url_params||{},r.url_params),we.defaults(n.url_params,o)),we.assign(r,n),we.defaults(r,{id:t,patterns:[t],methods:["GET"]}),this.endpoints[t]=r}asJson(){return{name:this.name,globals:this.globalRules,endpoints:this.endpoints}}addExtensionSpecFilePath(t){this.extensionSpecFilePaths.push(t)}addProcessorDefinition(t){if(!this.hasLoadedSpec)throw new Error("Cannot add a processor definition because spec definitions have not loaded!");this.endpoints._processor.data_autocomplete_rules.__one_of.push(t)}setup(){return{addExtensionSpecFilePath:this.addExtensionSpecFilePath.bind(this)}}start(){if(this.hasLoadedSpec)throw new Error("Service has already started!");return this.loadJsonSpec(),this.loadJSSpec(),this.hasLoadedSpec=!0,{addProcessorDefinition:this.addProcessorDefinition.bind(this)}}async loadJSONSpecInDir(){const t=Object.assign({"../lib/spec_definitions/json/generated/_common.json":()=>Promise.resolve().then(()=>S4),"../lib/spec_definitions/json/generated/bulk.json":()=>Promise.resolve().then(()=>C4),"../lib/spec_definitions/json/generated/cat.aliases.json":()=>Promise.resolve().then(()=>E4),"../lib/spec_definitions/json/generated/cat.allocation.json":()=>Promise.resolve().then(()=>O4),"../lib/spec_definitions/json/generated/cat.count.json":()=>Promise.resolve().then(()=>$4),"../lib/spec_definitions/json/generated/cat.fielddata.json":()=>Promise.resolve().then(()=>T4),"../lib/spec_definitions/json/generated/cat.health.json":()=>Promise.resolve().then(()=>P4),"../lib/spec_definitions/json/generated/cat.help.json":()=>Promise.resolve().then(()=>R4),"../lib/spec_definitions/json/generated/cat.indices.json":()=>Promise.resolve().then(()=>j4),"../lib/spec_definitions/json/generated/cat.master.json":()=>Promise.resolve().then(()=>M4),"../lib/spec_definitions/json/generated/cat.nodeattrs.json":()=>Promise.resolve().then(()=>I4),"../lib/spec_definitions/json/generated/cat.nodes.json":()=>Promise.resolve().then(()=>A4),"../lib/spec_definitions/json/generated/cat.pending_tasks.json":()=>Promise.resolve().then(()=>N4),"../lib/spec_definitions/json/generated/cat.plugins.json":()=>Promise.resolve().then(()=>k4),"../lib/spec_definitions/json/generated/cat.recovery.json":()=>Promise.resolve().then(()=>L4),"../lib/spec_definitions/json/generated/cat.repositories.json":()=>Promise.resolve().then(()=>F4),"../lib/spec_definitions/json/generated/cat.segments.json":()=>Promise.resolve().then(()=>D4),"../lib/spec_definitions/json/generated/cat.shards.json":()=>Promise.resolve().then(()=>B4),"../lib/spec_definitions/json/generated/cat.snapshots.json":()=>Promise.resolve().then(()=>z4),"../lib/spec_definitions/json/generated/cat.tasks.json":()=>Promise.resolve().then(()=>q4),"../lib/spec_definitions/json/generated/cat.templates.json":()=>Promise.resolve().then(()=>V4),"../lib/spec_definitions/json/generated/cat.thread_pool.json":()=>Promise.resolve().then(()=>H4),"../lib/spec_definitions/json/generated/clear_scroll.json":()=>Promise.resolve().then(()=>W4),"../lib/spec_definitions/json/generated/cluster.allocation_explain.json":()=>Promise.resolve().then(()=>U4),"../lib/spec_definitions/json/generated/cluster.delete_component_template.json":()=>Promise.resolve().then(()=>G4),"../lib/spec_definitions/json/generated/cluster.get_component_template.json":()=>Promise.resolve().then(()=>K4),"../lib/spec_definitions/json/generated/cluster.get_settings.json":()=>Promise.resolve().then(()=>X4),"../lib/spec_definitions/json/generated/cluster.health.json":()=>Promise.resolve().then(()=>Y4),"../lib/spec_definitions/json/generated/cluster.pending_tasks.json":()=>Promise.resolve().then(()=>J4),"../lib/spec_definitions/json/generated/cluster.put_component_template.json":()=>Promise.resolve().then(()=>Q4),"../lib/spec_definitions/json/generated/cluster.put_settings.json":()=>Promise.resolve().then(()=>Z4),"../lib/spec_definitions/json/generated/cluster.remote_info.json":()=>Promise.resolve().then(()=>e8),"../lib/spec_definitions/json/generated/cluster.reroute.json":()=>Promise.resolve().then(()=>t8),"../lib/spec_definitions/json/generated/cluster.state.json":()=>Promise.resolve().then(()=>n8),"../lib/spec_definitions/json/generated/cluster.stats.json":()=>Promise.resolve().then(()=>r8),"../lib/spec_definitions/json/generated/count.json":()=>Promise.resolve().then(()=>o8),"../lib/spec_definitions/json/generated/create.json":()=>Promise.resolve().then(()=>i8),"../lib/spec_definitions/json/generated/delete.json":()=>Promise.resolve().then(()=>a8),"../lib/spec_definitions/json/generated/delete_by_query.json":()=>Promise.resolve().then(()=>s8),"../lib/spec_definitions/json/generated/delete_by_query_rethrottle.json":()=>Promise.resolve().then(()=>l8),"../lib/spec_definitions/json/generated/delete_script.json":()=>Promise.resolve().then(()=>c8),"../lib/spec_definitions/json/generated/exists.json":()=>Promise.resolve().then(()=>u8),"../lib/spec_definitions/json/generated/exists_source.json":()=>Promise.resolve().then(()=>d8),"../lib/spec_definitions/json/generated/explain.json":()=>Promise.resolve().then(()=>f8),"../lib/spec_definitions/json/generated/field_caps.json":()=>Promise.resolve().then(()=>p8),"../lib/spec_definitions/json/generated/get.json":()=>Promise.resolve().then(()=>h8),"../lib/spec_definitions/json/generated/get_script.json":()=>Promise.resolve().then(()=>m8),"../lib/spec_definitions/json/generated/get_script_context.json":()=>Promise.resolve().then(()=>g8),"../lib/spec_definitions/json/generated/get_script_languages.json":()=>Promise.resolve().then(()=>v8),"../lib/spec_definitions/json/generated/get_source.json":()=>Promise.resolve().then(()=>_8),"../lib/spec_definitions/json/generated/index.json":()=>Promise.resolve().then(()=>y8),"../lib/spec_definitions/json/generated/indices.analyze.json":()=>Promise.resolve().then(()=>b8),"../lib/spec_definitions/json/generated/indices.clear_cache.json":()=>Promise.resolve().then(()=>w8),"../lib/spec_definitions/json/generated/indices.clone.json":()=>Promise.resolve().then(()=>x8),"../lib/spec_definitions/json/generated/indices.close.json":()=>Promise.resolve().then(()=>S8),"../lib/spec_definitions/json/generated/indices.create.json":()=>Promise.resolve().then(()=>C8),"../lib/spec_definitions/json/generated/indices.delete.json":()=>Promise.resolve().then(()=>E8),"../lib/spec_definitions/json/generated/indices.delete_alias.json":()=>Promise.resolve().then(()=>O8),"../lib/spec_definitions/json/generated/indices.delete_template.json":()=>Promise.resolve().then(()=>$8),"../lib/spec_definitions/json/generated/indices.exists.json":()=>Promise.resolve().then(()=>T8),"../lib/spec_definitions/json/generated/indices.exists_alias.json":()=>Promise.resolve().then(()=>P8),"../lib/spec_definitions/json/generated/indices.exists_template.json":()=>Promise.resolve().then(()=>R8),"../lib/spec_definitions/json/generated/indices.exists_type.json":()=>Promise.resolve().then(()=>j8),"../lib/spec_definitions/json/generated/indices.flush.json":()=>Promise.resolve().then(()=>M8),"../lib/spec_definitions/json/generated/indices.flush_synced.json":()=>Promise.resolve().then(()=>I8),"../lib/spec_definitions/json/generated/indices.forcemerge.json":()=>Promise.resolve().then(()=>A8),"../lib/spec_definitions/json/generated/indices.get.json":()=>Promise.resolve().then(()=>N8),"../lib/spec_definitions/json/generated/indices.get_alias.json":()=>Promise.resolve().then(()=>k8),"../lib/spec_definitions/json/generated/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>L8),"../lib/spec_definitions/json/generated/indices.get_mapping.json":()=>Promise.resolve().then(()=>F8),"../lib/spec_definitions/json/generated/indices.get_settings.json":()=>Promise.resolve().then(()=>D8),"../lib/spec_definitions/json/generated/indices.get_template.json":()=>Promise.resolve().then(()=>B8),"../lib/spec_definitions/json/generated/indices.get_upgrade.json":()=>Promise.resolve().then(()=>z8),"../lib/spec_definitions/json/generated/indices.open.json":()=>Promise.resolve().then(()=>q8),"../lib/spec_definitions/json/generated/indices.put_alias.json":()=>Promise.resolve().then(()=>V8),"../lib/spec_definitions/json/generated/indices.put_mapping.json":()=>Promise.resolve().then(()=>H8),"../lib/spec_definitions/json/generated/indices.put_settings.json":()=>Promise.resolve().then(()=>W8),"../lib/spec_definitions/json/generated/indices.put_template.json":()=>Promise.resolve().then(()=>U8),"../lib/spec_definitions/json/generated/indices.recovery.json":()=>Promise.resolve().then(()=>G8),"../lib/spec_definitions/json/generated/indices.refresh.json":()=>Promise.resolve().then(()=>K8),"../lib/spec_definitions/json/generated/indices.rollover.json":()=>Promise.resolve().then(()=>X8),"../lib/spec_definitions/json/generated/indices.segments.json":()=>Promise.resolve().then(()=>Y8),"../lib/spec_definitions/json/generated/indices.shard_stores.json":()=>Promise.resolve().then(()=>J8),"../lib/spec_definitions/json/generated/indices.shrink.json":()=>Promise.resolve().then(()=>Q8),"../lib/spec_definitions/json/generated/indices.split.json":()=>Promise.resolve().then(()=>Z8),"../lib/spec_definitions/json/generated/indices.stats.json":()=>Promise.resolve().then(()=>e3),"../lib/spec_definitions/json/generated/indices.update_aliases.json":()=>Promise.resolve().then(()=>t3),"../lib/spec_definitions/json/generated/indices.upgrade.json":()=>Promise.resolve().then(()=>n3),"../lib/spec_definitions/json/generated/indices.validate_query.json":()=>Promise.resolve().then(()=>r3),"../lib/spec_definitions/json/generated/info.json":()=>Promise.resolve().then(()=>o3),"../lib/spec_definitions/json/generated/ingest.delete_pipeline.json":()=>Promise.resolve().then(()=>i3),"../lib/spec_definitions/json/generated/ingest.get_pipeline.json":()=>Promise.resolve().then(()=>a3),"../lib/spec_definitions/json/generated/ingest.processor_grok.json":()=>Promise.resolve().then(()=>s3),"../lib/spec_definitions/json/generated/ingest.put_pipeline.json":()=>Promise.resolve().then(()=>l3),"../lib/spec_definitions/json/generated/ingest.simulate.json":()=>Promise.resolve().then(()=>c3),"../lib/spec_definitions/json/generated/mget.json":()=>Promise.resolve().then(()=>u3),"../lib/spec_definitions/json/generated/msearch.json":()=>Promise.resolve().then(()=>d3),"../lib/spec_definitions/json/generated/msearch_template.json":()=>Promise.resolve().then(()=>f3),"../lib/spec_definitions/json/generated/mtermvectors.json":()=>Promise.resolve().then(()=>p3),"../lib/spec_definitions/json/generated/nodes.hot_threads.json":()=>Promise.resolve().then(()=>h3),"../lib/spec_definitions/json/generated/nodes.info.json":()=>Promise.resolve().then(()=>m3),"../lib/spec_definitions/json/generated/nodes.reload_secure_settings.json":()=>Promise.resolve().then(()=>g3),"../lib/spec_definitions/json/generated/nodes.stats.json":()=>Promise.resolve().then(()=>v3),"../lib/spec_definitions/json/generated/nodes.usage.json":()=>Promise.resolve().then(()=>_3),"../lib/spec_definitions/json/generated/ping.json":()=>Promise.resolve().then(()=>y3),"../lib/spec_definitions/json/generated/put_script.json":()=>Promise.resolve().then(()=>b3),"../lib/spec_definitions/json/generated/rank_eval.json":()=>Promise.resolve().then(()=>w3),"../lib/spec_definitions/json/generated/reindex.json":()=>Promise.resolve().then(()=>x3),"../lib/spec_definitions/json/generated/reindex_rethrottle.json":()=>Promise.resolve().then(()=>S3),"../lib/spec_definitions/json/generated/render_search_template.json":()=>Promise.resolve().then(()=>C3),"../lib/spec_definitions/json/generated/scripts_painless_execute.json":()=>Promise.resolve().then(()=>E3),"../lib/spec_definitions/json/generated/scroll.json":()=>Promise.resolve().then(()=>O3),"../lib/spec_definitions/json/generated/search.json":()=>Promise.resolve().then(()=>$3),"../lib/spec_definitions/json/generated/search_shards.json":()=>Promise.resolve().then(()=>T3),"../lib/spec_definitions/json/generated/search_template.json":()=>Promise.resolve().then(()=>P3),"../lib/spec_definitions/json/generated/snapshot.cleanup_repository.json":()=>Promise.resolve().then(()=>R3),"../lib/spec_definitions/json/generated/snapshot.create.json":()=>Promise.resolve().then(()=>j3),"../lib/spec_definitions/json/generated/snapshot.create_repository.json":()=>Promise.resolve().then(()=>M3),"../lib/spec_definitions/json/generated/snapshot.delete.json":()=>Promise.resolve().then(()=>I3),"../lib/spec_definitions/json/generated/snapshot.delete_repository.json":()=>Promise.resolve().then(()=>A3),"../lib/spec_definitions/json/generated/snapshot.get.json":()=>Promise.resolve().then(()=>N3),"../lib/spec_definitions/json/generated/snapshot.get_repository.json":()=>Promise.resolve().then(()=>k3),"../lib/spec_definitions/json/generated/snapshot.restore.json":()=>Promise.resolve().then(()=>L3),"../lib/spec_definitions/json/generated/snapshot.status.json":()=>Promise.resolve().then(()=>F3),"../lib/spec_definitions/json/generated/snapshot.verify_repository.json":()=>Promise.resolve().then(()=>D3),"../lib/spec_definitions/json/generated/tasks.cancel.json":()=>Promise.resolve().then(()=>B3),"../lib/spec_definitions/json/generated/tasks.get.json":()=>Promise.resolve().then(()=>z3),"../lib/spec_definitions/json/generated/tasks.list.json":()=>Promise.resolve().then(()=>q3),"../lib/spec_definitions/json/generated/termvectors.json":()=>Promise.resolve().then(()=>V3),"../lib/spec_definitions/json/generated/update.json":()=>Promise.resolve().then(()=>H3),"../lib/spec_definitions/json/generated/update_by_query.json":()=>Promise.resolve().then(()=>W3),"../lib/spec_definitions/json/generated/update_by_query_rethrottle.json":()=>Promise.resolve().then(()=>U3)}),n=await this.loadAllSpecFromModules(t),r=Object.assign({"../lib/spec_definitions/json/overrides/clear_scroll.json":()=>Promise.resolve().then(()=>G3),"../lib/spec_definitions/json/overrides/cluster.health.json":()=>Promise.resolve().then(()=>K3),"../lib/spec_definitions/json/overrides/cluster.put_component_template.json":()=>Promise.resolve().then(()=>X3),"../lib/spec_definitions/json/overrides/cluster.put_settings.json":()=>Promise.resolve().then(()=>Y3),"../lib/spec_definitions/json/overrides/cluster.reroute.json":()=>Promise.resolve().then(()=>J3),"../lib/spec_definitions/json/overrides/count.json":()=>Promise.resolve().then(()=>Q3),"../lib/spec_definitions/json/overrides/indices.analyze.json":()=>Promise.resolve().then(()=>Z3),"../lib/spec_definitions/json/overrides/indices.clone.json":()=>Promise.resolve().then(()=>e6),"../lib/spec_definitions/json/overrides/indices.create.json":()=>Promise.resolve().then(()=>t6),"../lib/spec_definitions/json/overrides/indices.delete_template.json":()=>Promise.resolve().then(()=>n6),"../lib/spec_definitions/json/overrides/indices.exists_template.json":()=>Promise.resolve().then(()=>r6),"../lib/spec_definitions/json/overrides/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>o6),"../lib/spec_definitions/json/overrides/indices.get_mapping.json":()=>Promise.resolve().then(()=>i6),"../lib/spec_definitions/json/overrides/indices.get_template.json":()=>Promise.resolve().then(()=>a6),"../lib/spec_definitions/json/overrides/indices.put_alias.json":()=>Promise.resolve().then(()=>s6),"../lib/spec_definitions/json/overrides/indices.put_settings.json":()=>Promise.resolve().then(()=>l6),"../lib/spec_definitions/json/overrides/indices.put_template.json":()=>Promise.resolve().then(()=>c6),"../lib/spec_definitions/json/overrides/indices.rollover.json":()=>Promise.resolve().then(()=>u6),"../lib/spec_definitions/json/overrides/indices.update_aliases.json":()=>Promise.resolve().then(()=>d6),"../lib/spec_definitions/json/overrides/indices.validate_query.json":()=>Promise.resolve().then(()=>f6),"../lib/spec_definitions/json/overrides/snapshot.create.json":()=>Promise.resolve().then(()=>p6),"../lib/spec_definitions/json/overrides/snapshot.create_repository.json":()=>Promise.resolve().then(()=>h6),"../lib/spec_definitions/json/overrides/snapshot.restore.json":()=>Promise.resolve().then(()=>m6),"../lib/spec_definitions/json/overrides/update_by_query.json":()=>Promise.resolve().then(()=>g6)}),o=await this.loadAllSpecFromModules(r);return we.merge(n,o)}async loadAllSpecFromModules(t){const n=Object.keys(t).map(async o=>(await t[o]()).default);return(await Promise.all(n)).reduce((o,i)=>we.merge(o,i),{})}loadJsonSpec(){const t=this.loadJSONSpecInDir();Object.keys(t).forEach(n=>{this.addEndpointDescription(n,t[n])})}loadJSSpec(){fB.forEach(t=>t(this))}}class hB extends $o{constructor(t,n,r){super(t,n),this.description=r}getTerms(){const t={name:this.name};return this.description==="__flag__"?t.meta="flag":(t.meta="param",t.insertValue=this.name+"="),[t]}}class mB{constructor(t,n){this.rootComponent=new Pn("ROOT"),we.isUndefined(n)&&(n={pretty:"__flag__",format:["json","yaml"],filter_path:""}),t=we.clone(t||{}),we.defaults(t,n),we.each(t,(r,o)=>{const i=new hB(o,this.rootComponent,r);Array.isArray(r)?new Fn(o,r,i):r==="__flag__"&&new Fn(o,["true","false"],i)})}getTopLevelComponents(){return this.rootComponent.next}}function gB(e,t){const n=e.getTerms;return e.getTerms=function(r,o){let i=n.call(e,r,o);return i&&(i=we.map(i,a=>(we.isObject(a)||(a={name:a}),we.defaults(a,t))),i)},e}function Nw(e,t){function n(){}n.prototype=e;const r=new n;return t&&(t.unshift(r),we.assign.apply(we,t),t.shift()),r}function ql(e,t,n,r,o){this.parentName=e,this.components=t,this.contextExtensionList=n,this.depth=r||0,this.priority=o}function lp(e,t,n,r){if(!e||e.length===0)return t;const o=e[0],i=[];return we.each(t,function(a){const l=Nw(n,a.contextExtensionList);we.each(a.components,function(s){const c=s.match(o,l,r);if(c&&!we.isEmpty(c)){let u,f;c.next&&!Array.isArray(c.next)?u=[c.next]:u=c.next,c.context_values?(f=[],[].push.apply(f,a.contextExtensionList),f.push(c.context_values)):f=a.contextExtensionList;let d=a.priority;we.isNumber(c.priority)&&(we.isNumber(d)?d=Math.min(d,c.priority):d=c.priority),i.push(new ql(s.name,u,f,a.depth+1,d))}})}),i.length===0?we.map(t,function(a){return new ql(a.name,[],a.contextExtensionList)}):lp(e.slice(1),i,n,r)}function $i(e,t,n,r,o){let i=lp(e,[new ql("ROOT",o,[])],t,n);if(r){let a=[];we.each(i,function(l){const s=Nw(t,l.contextExtensionList);we.each(l.components,function(c){we.each(c.getTerms(s,n),function(u){we.isObject(u)||(u={name:u}),a.push(u)})})}),a=we.uniq(a),t.autoCompleteSet=a}if(i.length!==0){let a;i=we.sortBy(i,function(l){return we.isNumber(l.priority)?l.priority:Number.MAX_VALUE}),a=we.find(i,function(l){return we.isEmpty(l.components)}),!a&&i.length>1&&!r&&console.info("more then one context active for current path, but autocomplete isn't requested",i),a||(a=i[0]),we.each(a.contextExtensionList,function(l){we.assign(t,l)})}}function vB(e,t){this.parametrizedComponentFactories=t,this.endpointId=e}function _B(e,t,n,r){const o=lp(e,[new ql("ROOT",r,[])],t,n);return[].concat.apply([],we.map(o,"components"))}class yB extends Pn{constructor(t,n){super("__scope_link"),we.isString(t)&&t[0]==="."&&(t==="."?t=n.endpointId:t=n.endpointId+t),this.link=t,this.compilingContext=n}resolveLinkToComponents(t,n){if(we.isFunction(this.link)){const a=this.link(t,n);return Fa(a,this.compilingContext)}if(!we.isString(this.link))throw new Error("unsupported link format",this.link);let r=this.link.replace(/\./g,"{").split(/(\{)/);const o=r[0];let i;try{if(o==="GLOBAL"){if(r.length<3)throw new Error("missing term in global link: "+this.link);const a=r[2];i=t.globalComponentResolver(a),r=r.slice(3)}else r=r.slice(1),i=t.endpointComponentResolver(o)}catch(a){throw new Error("failed to resolve link ["+this.link+"]: "+a)}return _B(r,t,n,i)}getTerms(t,n){const r=[],o=this.resolveLinkToComponents(t,n);return we.each(o,function(i){r.push.apply(r,i.getTerms(t,n))}),r}match(t,n,r){const o={next:[]},i=this.resolveLinkToComponents(n,r);return we.each(i,function(a){const l=a.match(t,n,r);l&&l.next&&o.next.push.apply(o.next,l.next)}),o}}function cp(e){if(e.__template)return e.__raw&&we.isString(e.__template)?{__raw:!0,value:e.__template}:e.__template;if(e.__one_of)return cp(e.__one_of[0]);if(e.__any_of)return[];if(e.__scope_link)return{};if(Array.isArray(e)){if(e.length===1&&we.isObject(e[0])){const t=cp(e[0]);return t!=null?[t]:[]}return[]}else return we.isObject(e)?{}:(we.isString(e)&&!/^\{.*\}$/.test(e),e)}function bB(e){const t={},n=cp(e);return we.isUndefined(n)||(t.template=n),t}function Fa(e,t){if(Array.isArray(e))return[Lw(e,t)];if(we.isObject(e)){if(e.__scope_link)return[new yB(e.__scope_link,t)];if(e.__any_of)return[Lw(e.__any_of,t)];if(e.__one_of)return we.flatten(we.map(e.__one_of,function(r){return Fa(r,t)}));const n=wB(e,t);return e.__condition?[xB(e.__condition,n)]:[n]}else return we.isString(e)&&/^\{.*\}$/.test(e)?[kw(e,t)]:[new $o(e)]}function kw(e,t,n){e=e.substr(1,e.length-2).toLowerCase();let r=t.parametrizedComponentFactories.getComponent(e,!0);if(!r)throw new Error("no factory found for '"+e+"'");return r=r(e,null,n),we.isUndefined(n)||(r=gB(r,{template:n})),r}function wB(e,t){const n=new $o("{"),r=[],o=[];return we.each(e,function(i,a){if(a.indexOf("__")===0)return;const l=bB(i);let s;/^\{.*\}$/.test(a)?(s=kw(a,t,l.template),o.push(s)):a==="*"?(s=new Pn(a),o.push(s)):(l.name=a,s=new $o(a,null,[l]),r.push(s)),we.map(Fa(i,t),function(c){s.addComponent(c)})}),n.addComponent(new xN("inner",r,o)),n}function Lw(e,t){const n=new $o("[");return we.each(e,function(r){we.each(Fa(r,t),function(o){n.addComponent(o)})}),n}function xB(e,t){if(e.lines_regex)return new bN(function(n,r){const o=r.getLines(n.requestStartRow,r.getCurrentPosition().lineNumber).join(`
270
+ `)&&(e=e.replace(pD,"%0A")),e.includes("\r")&&(e=e.replace(hD,"%0D")),e.includes(" ")&&(e=e.replace(mD,"%09")),e}var cw=function(t){if(typeof t>"u")throw new TypeError('The "domain" argument must be specified');return new Yr("http://"+t).hostname},uw=function(t){if(typeof t>"u")throw new TypeError('The "domain" argument must be specified');return new Yr("http://"+t).hostname},dw=function(t){var n=new Yr("file://"),r=lD(t),o=t.charCodeAt(t.length-1);return o===gD&&r[r.length-1]!=="/"&&(r+="/"),n.pathname=yD(r),n},fw=function(t){if(!vD(t)&&typeof t!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof t+" ("+t+")");var n=new Yr(t);if(n.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return _D(n)},pw=function(t,n){var r,o,i,a;if(n===void 0&&(n={}),!(t instanceof Yr))return uD(t);if(typeof n!="object"||n===null)throw new TypeError('The "options" argument must be of type object.');var l=(r=n.auth)!=null?r:!0,s=(o=n.fragment)!=null?o:!0,c=(i=n.search)!=null?i:!0;(a=n.unicode)!=null;var u=new Yr(t.toString());return l||(u.username="",u.password=""),s||(u.hash=""),c||(u.search=""),u.toString()},bD={format:pw,parse:iw,resolve:aw,resolveObject:rw,Url:sw,URL:Yr,URLSearchParams:lw,domainToASCII:cw,domainToUnicode:uw,pathToFileURL:dw,fileURLToPath:fw};const hw=Ip(Object.freeze(Object.defineProperty({__proto__:null,URL:Yr,URLSearchParams:lw,Url:sw,default:bD,domainToASCII:cw,domainToUnicode:uw,fileURLToPath:fw,format:pw,parse:iw,pathToFileURL:dw,resolve:aw,resolveObject:rw},Symbol.toStringTag,{value:"Module"})));(function(e){var t=vL,n=_l,r=_L,o=wL,i=hw,a=e;a.request=function(l,s){typeof l=="string"?l=i.parse(l):l=r(l);var c=yt.location.protocol.search(/^https?:$/)===-1?"http:":"",u=l.protocol||c,f=l.hostname||l.host,d=l.port,b=l.path||"/";f&&f.indexOf(":")!==-1&&(f="["+f+"]"),l.url=(f?u+"//"+f:"")+(d?":"+d:"")+b,l.method=(l.method||"GET").toUpperCase(),l.headers=l.headers||{};var S=new t(l);return s&&S.on("response",s),S},a.get=function(s,c){var u=a.request(s,c);return u.end(),u},a.ClientRequest=t,a.IncomingMessage=n.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=o,a.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(pb),function(e){var t=pb,n=hw,r=e.exports;for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.request=function(a,l){return a=i(a),t.request.call(this,a,l)},r.get=function(a,l){return a=i(a),t.get.call(this,a,l)};function i(a){if(typeof a=="string"&&(a=n.parse(a)),a.protocol||(a.protocol="https:"),a.protocol!=="https:")throw new Error('Protocol "'+a.protocol+'" not supported. Expected "https:"');return a}}(WN);const mw={__template:{field:""},field:"{field}",size:10,shard_size:10,shard_min_doc_count:10,min_doc_count:10,include:{__one_of:["*",{pattern:"",flags:""}]},exclude:{__one_of:["*",{pattern:"",flags:""}]},execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash"]},background_filter:{__scope_link:"GLOBAL.filter"},mutual_information:{include_negatives:{__one_of:[!0,!1]}},chi_square:{include_negatives:{__one_of:[!0,!1]},background_is_superset:{__one_of:[!0,!1]}},percentage:{},gnd:{background_is_superset:{__one_of:[!0,!1]}},script_heuristic:{__template:{script:"_subset_freq/(_superset_freq - _subset_freq + 1)"},script:{}}},Ei={__template:{field:""},field:"{field}",missing:0,script:{}},wD={__template:{field:""},field:"{field}"},Oi={__one_of:["skip","insert_zeros"]},Jr={__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Oi},ap={"*":{aggs:{__template:{NAME:{AGG_TYPE:{}}}},adjacency_matrix:{filters:{}},diversified_sampler:{shard_size:"",field:""},min:Ei,max:Ei,avg:Ei,sum:Ei,stats:Ei,extended_stats:Ei,value_count:{__template:{field:""},field:"{field}",script:{}},global:{},filter:{},filters:{__template:{filters:{NAME:{}}},filters:{"*":{__scope_link:"GLOBAL.filter"}},other_bucket:{__one_of:[!0,!1]},other_bucket_key:""},missing:wD,nested:{__template:{path:""},path:""},reverse_nested:{__template:{path:""},path:""},terms:{__template:{field:"",size:10},field:"{field}",size:10,shard_size:10,order:{__template:{_key:"asc"},_term:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},min_doc_count:10,script:{},include:".*",exclude:".*",execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]},show_term_doc_count_error:{__one_of:[!0,!1]},collect_mode:{__one_of:["depth_first","breadth_first"]},missing:""},significant_text:{...mw,filter_duplicate_text:"__flag__"},significant_terms:mw,range:{__template:{field:"",ranges:[{from:50,to:100}]},field:"{field}",ranges:[{to:50,from:100,key:""}],keyed:{__one_of:[!0,!1]},script:{}},date_range:{__template:{field:"",ranges:[{from:"now-10d/d",to:"now"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:""}],keyed:{__one_of:[!0,!1]},script:{}},ip_range:{__template:{field:"",ranges:[{from:"10.0.0.5",to:"10.0.0.10"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:"",mask:"10.0.0.127/25"}],keyed:{__one_of:[!0,!1]},script:{}},histogram:{__template:{field:"price",interval:50},field:"{field}",interval:50,extended_bounds:{__template:{min:0,max:50},min:0,max:50},min_doc_count:0,order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},missing:0},date_histogram:{__template:{field:"date",interval:"month"},field:"{field}",interval:{__one_of:["year","quarter","week","day","hour","minute","second"]},min_doc_count:0,extended_bounds:{__template:{min:"now/d",max:"now/d"},min:"now/d",max:"now/d"},order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},pre_zone:"-01:00",post_zone:"-01:00",pre_zone_adjust_large_interval:{__one_of:[!0,!1]},factor:1e3,pre_offset:"1d",post_offset:"1d",format:"yyyy-MM-dd",time_zone:"00:00",missing:""},geo_distance:{__template:{field:"location",origin:{lat:52.376,lon:4.894},ranges:[{from:100,to:300}]},field:"{field}",origin:{lat:0,lon:0},unit:{__one_of:["mi","km","in","yd","m","cm","mm"]},ranges:[{from:50,to:100}],distance_type:{__one_of:["arc","sloppy_arc","plane"]}},geohash_grid:{__template:{field:"",precision:3},field:"{field}",precision:{__one_of:[1,2,3,4,5,6,7,8,9,10,11,12]},size:10,shard_size:10},composite:{__template:{sources:[{NAME:{AGG_TYPE:{}}}]},sources:[{__scope_link:".",__template:{NAME:{AGG_TYPE:{}}}}],size:10,after:{}},percentiles:{__template:{field:"",percents:[1,5,25,50,75,95,99]},field:"{field}",percents:{__template:[1,5,25,50,75,95,99],__any_of:[]},script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},cardinality:{__template:{field:""},precision_threshold:100,rehash:!0,script:{},missing:""},cumulative_cardinality:{__template:{buckets_path:""},buckets_path:"",format:""},scripted_metric:{__template:{init_script:"",map_script:"",combine_script:"",reduce_script:""},init_script:{__scope_link:"GLOBAL.script"},map_script:{__scope_link:"GLOBAL.script"},combine_script:{__scope_link:"GLOBAL.script"},reduce_script:{__scope_link:"GLOBAL.script"},lang:"groovy",params:{},reduce_params:{}},geo_bounds:{__template:{field:""},field:"{field}",wrap_longitude:{__one_of:[!0,!1]}},top_hits:{__template:{size:10},from:0,size:10,sort:{__template:[],__scope_link:"search.sort"},highlight:{},explain:{__one_of:[!0,!1]},_source:{__template:"",__scope_link:"search._source"},script_fields:{__scope_link:"search.script_fields"},docvalue_fields:["{field}"],version:{__one_of:[!0,!1]}},percentile_ranks:{__template:{field:"",values:[10,15]},field:"{field}",values:[],script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},sampler:{__template:{},field:"{field}",script:{},shard_size:100,max_docs_per_value:3,execution_hint:{__one_of:["map","global_ordinals","bytes_hash"]}},children:{__template:{type:""},type:""},derivative:Jr,avg_bucket:Jr,max_bucket:Jr,min_bucket:Jr,stats_bucket:Jr,extended_stats_bucket:{...Jr,sigma:""},percentiles_bucket:{...Jr,percents:[]},sum_bucket:Jr,moving_avg:{__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Oi,window:5,model:{__one_of:["simple","linear","ewma","holt","holt_winters"]},settings:{type:{__one_of:["add","mult"]},alpha:.5,beta:.5,gamma:.5,period:7}},cumulative_sum:{__template:{buckets_path:""},buckets_path:"",format:""},serial_diff:{__template:{buckets_path:"",lag:7},lag:7,gap_policy:Oi,buckets_path:"",format:""},bucket_script:{__template:{buckets_path:{},script:""},buckets_path:{},format:"",gap_policy:Oi,script:""},bucket_selector:{__template:{buckets_path:{},script:""},buckets_path:{},gap_policy:Oi,script:""},bucket_sort:{__template:{sort:[]},sort:["{field}"],from:0,size:0,gap_policy:Oi},matrix_stats:{__template:{fields:[]},fields:["{field}"]}}},{terms:xD,histogram:SD,date_histogram:CD}=ap["*"],ED=e=>{e.addGlobalAutocompleteRules("aggregations",ap),e.addGlobalAutocompleteRules("aggs",ap),e.addGlobalAutocompleteRules("groupByAggs",{"*":{terms:xD,histogram:SD,date_histogram:CD}})},OD=e=>{const t={filter:{},routing:"1",search_routing:"1,2",index_routing:"1"};e.addGlobalAutocompleteRules("aliases",{"*":t})},$D=e=>{e.addEndpointDescription("update",{data_autocomplete_rules:{script:{},doc:{},upsert:{},scripted_upsert:{__one_of:[!0,!1]}}}),e.addEndpointDescription("put_script",{methods:["POST","PUT"],patterns:["_scripts/{lang}/{id}","_scripts/{lang}/{id}/_create"],url_components:{lang:["groovy","expressions"]},data_autocomplete_rules:{script:""}}),e.addEndpointDescription("termvectors",{data_autocomplete_rules:{fields:["{field}"],offsets:{__one_of:[!1,!0]},payloads:{__one_of:[!1,!0]},positions:{__one_of:[!1,!0]},term_statistics:{__one_of:[!0,!1]},field_statistics:{__one_of:[!1,!0]},per_field_analyzer:{__template:{FIELD:""},"{field}":""},routing:"",version:1,version_type:["external","external_gt","external_gte","force","internal"],doc:{},filter:{max_num_terms:1,min_term_freq:1,max_term_freq:1,min_doc_freq:1,max_doc_freq:1,min_word_length:1,max_word_length:1}}})},Nt={};Nt.and={__template:{filters:[{}]},filters:[{__scope_link:"."}]},Nt.bool={__scope_link:"GLOBAL.query"},Nt.exists={__template:{field:"FIELD_NAME"},field:"{field}"},Nt.ids={__template:{values:["ID"]},type:"{type}",values:[""]},Nt.limit={__template:{value:100},value:100},Nt.geo_bounding_box={__template:{FIELD:{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.717,lon:-73.99}}},"{field}":{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.73,lon:-74.1}},type:{__one_of:["memory","indexed"]}},Nt.geo_distance={__template:{distance:100,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},distance:100,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},optimize_bbox:{__one_of:["memory","indexed","none"]},"{field}":{lat:40.73,lon:-74.1}},Nt.geo_distance_range={__template:{from:100,to:200,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},from:100,to:200,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},include_lower:{__one_of:[!0,!1]},include_upper:{__one_of:[!0,!1]},"{field}":{lat:40.73,lon:-74.1}},Nt.geo_polygon={__template:{FIELD:{points:[{lat:40.73,lon:-74.1},{lat:40.83,lon:-75.1}]}},"{field}":{points:[{lat:40.73,lon:-74.1}]}},Nt.geo_shape={__template:{FIELD:{shape:{type:"envelope",coordinates:[[-45,45],[45,-45]]},relation:"within"}},"{field}":{shape:{type:"",coordinates:[]},indexed_shape:{id:"",index:"{index}",type:"{type}",shape_field_name:"shape"},relation:{__one_of:["within","intersects","disjoint"]}}},Nt.has_child={__template:{type:"TYPE",filter:{}},type:"{type}",query:{},filter:{},_scope:"",min_children:1,max_children:10},Nt.has_parent={__template:{parent_type:"TYPE",filter:{}},parent_type:"{type}",query:{},filter:{},_scope:""},Nt.m=Nt.missing={__template:{field:"FIELD"},existence:{__one_of:[!0,!1]},null_value:{__one_of:[!0,!1]},field:"{field}"},Nt.not={__template:{filter:{}},filter:{}},Nt.range={__template:{FIELD:{gte:10,lte:20}},"{field}":{gte:1,gt:1,lte:20,lt:20,time_zone:"+01:00",format:"dd/MM/yyyy||yyyy",execution:{__one_of:["index","fielddata"]}}},Nt.or={__template:{filters:[{}]},filters:[{__scope_link:"."}]},Nt.prefix={__template:{FIELD:"VALUE"},"{field}":""},Nt.query={},Nt.script={__template:{script:{}},script:{}},Nt.term={__template:{FIELD:"VALUE"},"{field}":""},Nt.terms={__template:{FIELD:["VALUE1","VALUE2"]},field:["{field}"],execution:{__one_of:["plain","bool","and","or","bool_nocache","and_nocache","or_nocache"]}},Nt.nested={__template:{path:"path_to_nested_doc",query:{}},query:{},path:"",_name:""};const TD=e=>{e.addGlobalAutocompleteRules("filter",Nt)},gw={boundary_chars:{},boundary_max_scan:20,boundary_scanner:{__one_of:["chars","sentence","word"]},boundary_scanner_locale:{},encoder:{__one_of:["default","html"]},force_source:{__one_of:["false","true"]},fragmenter:{__one_of:["simple","span"]},highlight_query:{__scope_link:"GLOBAL.query"},matched_fields:["FIELD"],order:{},no_match_size:0,number_of_fragments:5,phrase_limit:256,pre_tags:{},post_tags:{},require_field_match:{__one_of:["true","false"]},tags_schema:{}},PD=e=>{e.addGlobalAutocompleteRules("highlight",{...gw,fields:{"{field}":{fragment_size:20,...gw}}}),e.addGlobalAutocompleteRules("script",{__template:{source:"SCRIPT"},source:"SCRIPT",file:"FILE_SCRIPT_NAME",id:"SCRIPT_ID",lang:"",params:{}})},gt={on_failure:[],ignore_failure:{__one_of:[!1,!0]},if:"",tag:""},RD={append:{__template:{field:"",value:[]},field:"",value:[],...gt}},jD={bytes:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},MD={circle:{__template:{field:"",error_distance:"",shape_type:""},field:"",target_field:"",error_distance:"",shape_type:{__one_of:["geo_shape","shape"]},ignore_missing:{__one_of:[!1,!0]},...gt}},ID={csv:{__template:{field:"",target_fields:[""]},field:"",target_fields:[""],separator:"",quote:"",empty_value:"",trim:{__one_of:[!0,!1]},ignore_missing:{__one_of:[!1,!0]},...gt}},AD={convert:{__template:{field:"",type:""},field:"",type:{__one_of:["integer","float","string","boolean","auto"]},target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},ND={date:{__template:{field:"",formats:[]},field:"",target_field:"@timestamp",formats:[],timezone:"UTC",locale:"ENGLISH",...gt}},kD={date_index_name:{__template:{field:"",date_rounding:""},field:"",date_rounding:{__one_of:["y","M","w","d","h","m","s"]},date_formats:[],timezone:"UTC",locale:"ENGLISH",index_name_format:"yyyy-MM-dd",...gt}},LD={dissect:{__template:{field:"",pattern:""},field:"",pattern:"",append_separator:"",ignore_missing:{__one_of:[!1,!0]},...gt}},FD={dot_expander:{__template:{field:""},field:"",path:"",...gt}},DD={drop:{__template:{},...gt}},BD={fail:{__template:{message:""},message:"",...gt}},zD={foreach:{__template:{field:"",processor:{}},field:"",processor:{__scope_link:"_processor"},...gt}},qD={geoip:{__template:{field:""},field:"",target_field:"",database_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]},first_only:{__one_of:[!1,!0]}}},VD={grok:{__template:{field:"",patterns:[]},field:"",patterns:[],pattern_definitions:{},trace_match:{__one_of:[!1,!0]},ignore_missing:{__one_of:[!1,!0]},...gt}},HD={gsub:{__template:{field:"",pattern:"",replacement:""},field:"",pattern:"",replacement:"",...gt}},WD={html_strip:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},UD={inference:{__template:{model_id:"",field_map:{},inference_config:{}},model_id:"",field_map:{},inference_config:{},target_field:"",...gt}},GD={join:{__template:{field:"",separator:""},field:"",separator:"",...gt}},KD={json:{__template:{field:""},field:"",target_field:"",add_to_root:{__one_of:[!1,!0]},...gt}},XD={kv:{__template:{field:"",field_split:"",value_split:""},field:"",field_split:"",value_split:"",target_field:"",include_keys:[],ignore_missing:{__one_of:[!1,!0]},...gt}},YD={lowercase:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},JD={pipeline:{__template:{name:""},name:"",...gt}},QD={remove:{__template:{field:""},field:"",...gt}},ZD={rename:{__template:{field:"",target_field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},eB={script:{__template:{},lang:"painless",file:"",id:"",source:"",params:{},...gt}},tB={set:{__template:{field:"",value:""},field:"",value:"",override:{__one_of:[!0,!1]},...gt}},nB={set_security_user:{__template:{field:""},field:"",properties:[""],...gt}},rB={split:{__template:{field:"",separator:""},field:"",separator:"",ignore_missing:{__one_of:[!1,!0]},...gt}},oB={sort:{__template:{field:""},field:"",order:"asc",...gt}},iB={trim:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},aB={uppercase:{__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},sB={urldecode:{__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]},...gt}},vw={__one_of:[RD,jD,ID,MD,AD,ND,kD,LD,FD,DD,BD,zD,qD,VD,HD,WD,UD,GD,KD,XD,YD,JD,QD,ZD,eB,tB,nB,rB,oB,iB,aB,sB,{user_agent:{__template:{field:""},field:"",target_field:"",regex_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]}}}]},_w={description:"",processors:[vw],version:123},lB=e=>{e.addEndpointDescription("_processor",{data_autocomplete_rules:vw}),e.addEndpointDescription("ingest.put_pipeline",{methods:["PUT"],patterns:["_ingest/pipeline/{id}"],data_autocomplete_rules:_w}),e.addEndpointDescription("ingest.simulate",{data_autocomplete_rules:{pipeline:_w,docs:[]}})},Pt=Object.freeze({__one_of:[!0,!1]}),cB=e=>{e.addEndpointDescription("put_mapping",{priority:10,data_autocomplete_rules:{__template:{properties:{FIELD:{}}},_source:{enabled:Pt},_all:{enabled:Pt},_field_names:{index:Pt},_routing:{required:Pt},_index:{enabled:Pt},_parent:{__template:{type:""},type:"{type}"},_timestamp:{enabled:Pt,format:"YYYY-MM-dd",default:""},dynamic_date_formats:["yyyy-MM-dd"],date_detection:Pt,numeric_detection:Pt,properties:{"*":{type:{__one_of:["text","keyword","float","half_float","scaled_float","double","byte","short","integer","long","date","boolean","binary","object","nested","geo_point","geo_shape"]},store:Pt,index:Pt,term_vector:{__one_of:["no","yes","with_offsets","with_positions","with_positions_offsets"]},boost:1,null_value:"",doc_values:Pt,eager_global_ordinals:Pt,norms:Pt,coerce:Pt,index_options:{__one_of:["docs","freqs","positions"]},analyzer:"standard",search_analyzer:"standard",include_in_all:{__one_of:[!1,!0]},ignore_above:10,position_increment_gap:0,precision_step:4,ignore_malformed:Pt,scaling_factor:100,lat_lon:{__one_of:[!0,!1]},geohash:{__one_of:[!0,!1]},geohash_precision:"1m",geohash_prefix:{__one_of:[!0,!1]},validate:{__one_of:[!0,!1]},validate_lat:{__one_of:[!0,!1]},validate_lon:{__one_of:[!0,!1]},normalize:{__one_of:[!0,!1]},normalize_lat:{__one_of:[!0,!1]},normalize_lon:{__one_of:[!0,!1]},tree:{__one_of:["geohash","quadtree"]},precision:"5km",tree_levels:12,distance_error_pct:.025,orientation:"ccw",format:{__one_of:[[...["date","date_time","date_time_no_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","week_date_time_no_millis"].flatMap(function(t){return["basic_"+t,"strict_"+t]}),"date","date_hour","date_hour_minute","date_hour_minute_second","date_hour_minute_second_fraction","date_hour_minute_second_millis","date_optional_time","date_time","date_time_no_millis","hour","hour_minute","hour_minute_second","hour_minute_second_fraction","hour_minute_second_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","weekDateTimeNoMillis","weekyear","strict_weekyear","weekyear_week","strict_weekyear_week","strict_date_optional_time_nanos","weekyear_week_day","strict_weekyear_week_day","year","year_month","year_month_day","epoch_millis","epoch_second"].sort()]},fielddata:{filter:{regex:"",frequency:{min:.001,max:.1,min_segment_size:500}}},similarity:{__one_of:["default","BM25"]},properties:{__scope_link:"put_mapping.{type}.properties"},fields:{"*":{__scope_link:"put_mapping.type.properties.field"}},copy_to:{__one_of:["{field}",["{field}"]]},include_in_parent:Pt,include_in_root:Pt}}}})},uB=e=>{e.addEndpointDescription("put_settings",{data_autocomplete_rules:{refresh_interval:"1s",number_of_shards:1,number_of_replicas:1,"blocks.read_only":Pt,"blocks.read":Pt,"blocks.write":Pt,"blocks.metadata":Pt,term_index_interval:32,term_index_divisor:1,"translog.flush_threshold_ops":5e3,"translog.flush_threshold_size":"200mb","translog.flush_threshold_period":"30m","translog.disable_flush":Pt,"cache.filter.max_size":"2gb","cache.filter.expire":"2h","gateway.snapshot_interval":"10s","translog.durability":{__one_of:["request","async"]},routing:{allocation:{include:{tag:""},exclude:{tag:""},require:{tag:""},total_shards_per_node:-1}},"recovery.initial_shards":{__one_of:["quorum","quorum-1","half","full","full-1"]},"ttl.disable_purge":Pt,analysis:{analyzer:{},tokenizer:{},filter:{},char_filter:{}},"cache.query.enable":Pt,shadow_replicas:Pt,shared_filesystem:Pt,data_path:"path",codec:{__one_of:["default","best_compression","lucene_default"]}}})},yw={FIELD:"REGEXP"},bw={FIELD:{}},ww={FIELD:{value:""}},xw={FIELD:{gte:10,lte:20}},Sw={match:{span_term:{FIELD:"VALUE"}},end:3},Cw={clauses:[{span_term:{FIELD:{value:"VALUE"}}}],slop:12,in_order:!1},Ew={FIELD:{value:"VALUE"}},Ow={include:{span_term:{FIELD:{value:"VALUE"}}},exclude:{span_term:{FIELD:{value:"VALUE"}}}},$w={clauses:[{span_term:{FIELD:{value:"VALUE"}}}]},Tw={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},Pw={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},Rw={FIELD:{value:"VALUE"}},jw={cutoff_frequency:.001,query:"",operator:{__one_of:["and","or"]},zero_terms_query:{__one_of:["none","all"]},max_expansions:10,analyzer:"",boost:1,lenient:{__one_of:["true","false"]},fuzzy_transpositions:{__one_of:["true","false"]},auto_generate_synonyms_phrase_query:{__one_of:["true","false"]},fuzziness:1,prefix_length:1,minimum_should_match:1},Mw={docvalue_fields:["FIELD"],from:{},size:{},sort:{},name:{},highlight:{},_source:{__one_of:["true","false"]},explain:{__one_of:["true","false"]},script_fields:{__template:{FIELD:{script:{}}},"{field}":{script:{}}},version:{__one_of:["true","false"]}},Iw={span_first:{__template:Sw,__scope_link:".span_first"},span_near:{__template:Cw,__scope_link:".span_near"},span_or:{__template:$w,__scope_link:".span_or"},span_not:{__template:Ow,__scope_link:".span_not"},span_term:{__template:Ew,__scope_link:".span_term"},span_containing:{__template:Tw,__scope_link:".span_containing"},span_within:{__template:Pw,__scope_link:".span_within"}},Tr={...Iw,field_masking_span:{__template:{query:{SPAN_QUERY:{}}},query:Iw,field:""}},dB={wildcard:{__template:Rw,__scope_link:".wildcard"},fuzzy:{__template:bw,__scope_link:".fuzzy"},prefix:{__template:ww,__scope_link:".prefix"},range:{__template:xw,__scope_link:".range"},regexp:{__template:yw,__scope_link:".regexp"}},sp={__template:{FIELD:{origin:"",scale:""}},"{field}":{origin:"",scale:"",offset:"",decay:.5}},Aw={script_score:{__template:{script:"_score * doc['f'].value"},script:{}},boost_factor:2,random_score:{seed:314159265359},linear:sp,exp:sp,gauss:sp,field_value_factor:{__template:{field:""},field:"{field}",factor:1.2,modifier:{__one_of:["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]}}},fB=[ED,OD,$D,TD,PD,lB,cB,uB,e=>{e.addGlobalAutocompleteRules("query",{match:{__template:{FIELD:"TEXT"},"{field}":{type:{__one_of:["phrase","phrase_prefix","boolean"]},...jw}},match_phrase:{__template:{FIELD:"PHRASE"},"{field}":{query:"",analyzer:"",slop:1}},match_phrase_prefix:{__template:{FIELD:"PREFIX"},"{field}":{query:"",analyzer:"",max_expansions:10,prefix_length:1,fuzziness:.1}},regexp:{__template:yw,"{field}":{value:"",flags:{__one_of:["ALL","ANYSTRING","COMPLEMENT","EMPTY","INTERSECTION","INTERVAL","NONE"]},max_determinized_states:1e4}},multi_match:{__template:{query:"",fields:[]},...jw,fields:["{field}"],use_dis_max:{__template:!0,__one_of:[!0,!1]},tie_breaker:0,type:{__one_of:["best_fields","most_fields","cross_fields","phrase","phrase_prefix"]}},bool:{must:[{__scope_link:"."}],must_not:[{__scope_link:"."}],should:[{__scope_link:"."}],filter:[{__scope_link:"GLOBAL.filter"}],minimum_should_match:1,boost:1},boosting:{positive:{__scope_link:"."},negative:{__scope_link:"."},negative_boost:.2},ids:{type:"",values:[]},constant_score:{__template:{filter:{},boost:1.2},query:{},filter:{},boost:1.2},dis_max:{__template:{tie_breaker:.7,boost:1.2,queries:[]},tie_breaker:.7,boost:1.2,queries:[{__scope_link:"."}]},distance_feature:{__template:{field:"",origin:"",pivot:""},field:"{field}",origin:"",pivot:""},exists:{field:""},field:{"{field}":{query:"",boost:2,enable_position_increments:{__template:!1,__one_of:[!0,!1]}}},fuzzy:{__template:bw,"{field}":{value:"",boost:1,fuzziness:.5,prefix_length:0}},has_child:{__template:{type:"TYPE",query:{}},inner_hits:{...Mw},type:"{type}",score_mode:{__one_of:["none","max","sum","avg"]},_scope:"",query:{},min_children:1,max_children:10},has_parent:{__template:{parent_type:"TYPE",query:{}},parent_type:"{type}",score_mode:{__one_of:["none","score"]},_scope:"",query:{}},match_all:{boost:1},more_like_this:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},fields:["{field}"],like:"",percent_terms_to_match:.3,min_term_freq:2,max_query_terms:25,stop_words:[""],min_doc_freq:5,max_doc_freq:100,min_word_len:0,max_word_len:0,boost_terms:1,boost:1,analyzer:"",docs:[{_index:"{index}",_type:"{type}",_id:""}],ids:[""]},mlt:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},__scope_link:".more_like_this"},prefix:{__template:ww,"{field}":{value:"",boost:1}},query_string:{__template:{default_field:"FIELD",query:"this AND that OR thus"},query:"",default_field:"{field}",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",allow_leading_wildcard:{__one_of:[!0,!1]},enable_position_increments:{__one_of:[!0,!1]},fuzzy_max_expansions:50,fuzziness:.5,fuzzy_prefix_length:0,phrase_slop:0,boost:1,analyze_wildcard:{__one_of:[!1,!0]},auto_generate_phrase_queries:{__one_of:[!1,!0]},minimum_should_match:"20%",lenient:{__one_of:[!1,!0]},use_dis_max:{__one_of:[!0,!1]},tie_breaker:0,time_zone:"+01:00"},simple_query_string:{__template:{query:"",fields:[]},query:"",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",flags:"OR|AND|PREFIX",locale:"ROOT",lenient:{__one_of:[!0,!1]}},range:{__template:xw,"{field}":{__template:{gte:10,lte:20},gte:10,gt:10,lte:20,lt:20,time_zone:"+01:00",boost:1,format:"dd/MM/yyyy||yyyy"}},span_first:{__template:Sw,match:Tr},span_multi:{__template:{match:{MULTI_TERM_QUERY:{}}},match:dB},span_near:{__template:Cw,clauses:[Tr],slop:12,in_order:{__one_of:[!1,!0]},collect_payloads:{__one_of:[!1,!0]}},span_term:{__template:Ew,"{field}":{value:"",boost:2}},span_not:{__template:Ow,include:Tr,exclude:Tr},span_or:{__template:$w,clauses:[Tr]},span_containing:{__template:Tw,little:Tr,big:Tr},span_within:{__template:Pw,little:Tr,big:Tr},term:{__template:{FIELD:{value:"VALUE"}},"{field}":{value:"",boost:2}},terms:{__template:{FIELD:["VALUE1","VALUE2"]},"{field}":[""]},wildcard:{__template:Rw,"{field}":{value:"",boost:2}},nested:{__template:{path:"path_to_nested_doc",query:{}},inner_hits:{...Mw},path:"",query:{},score_mode:{__one_of:["avg","total","max","none"]}},percolate:{__template:{field:"",document:{}},field:"",document:{},name:"",documents:[{}],document_type:"",index:"",type:"",id:"",routing:"",preference:""},common:{__template:{FIELD:{query:{}}},"{field}":{query:{},cutoff_frequency:.001,minimum_should_match:{low_freq:{},high_freq:{}}}},custom_filters_score:{__template:{query:{},filters:[{filter:{}}]},query:{},filters:[{filter:{},boost:2,script:{}}],score_mode:{__one_of:["first","min","max","total","avg","multiply"]},max_boost:2,params:{},lang:""},indices:{__template:{indices:["INDEX1","INDEX2"],query:{}},indices:["{index}"],query:{},no_match_query:{__scope_link:"."}},geo_shape:{__template:{location:{},relation:"within"},__scope_link:".filter.geo_shape"},function_score:we.defaults({__template:{query:{},functions:[{}]},query:{},functions:[we.defaults({filter:{},weight:1},Aw)],boost:1,boost_mode:{__one_of:["multiply","replace","sum","avg","max","min"]},score_mode:{__one_of:["multiply","sum","first","avg","max","min"]},max_boost:10,min_score:1},Aw),script:{__template:{script:"_score * doc['f'].value"},script:{}},wrapper:{__template:{query:"QUERY_BASE64_ENCODED"},query:""}})},e=>{e.addEndpointDescription("reindex",{methods:["POST"],patterns:["_reindex"],data_autocomplete_rules:{__template:{source:{},dest:{}},source:{index:"",type:"",query:{__scope_link:"GLOBAL.query"},sort:{__template:{FIELD:"desc"},FIELD:{__one_of:["asc","desc"]}},size:1e3,remote:{__template:{host:""},host:"",username:"",password:"",socket_timeout:"30s",connect_timeout:"30s"}},dest:{index:"",version_type:{__one_of:["internal","external"]},op_type:"create",routing:{__one_of:["keep","discard","=SOME TEXT"]},pipeline:""},conflicts:"proceed",size:10,script:{__scope_link:"GLOBAL.script"}}})},e=>{e.addEndpointDescription("search",{priority:10,data_autocomplete_rules:{query:{},profile:{__one_of:["true","false"]},aggs:{__template:{NAME:{AGG_TYPE:{}}}},post_filter:{__scope_link:"GLOBAL.filter"},size:{__template:20},from:0,sort:{__template:[{FIELD:{order:"desc"}}],__any_of:[{"{field}":{order:{__one_of:["desc","asc"]},missing:{__one_of:["_last","_first"]},mode:{__one_of:["min","max","avg","sum"]},nested_path:"",nested_filter:{__scope_link:"GLOBAL.filter"}}},"{field}","_score",{_geo_distance:{__template:{FIELD:{lat:40,lon:-70},order:"asc"},"{field}":{__one_of:[{__template:{lat:40,lon:-70},lat:40,lon:-70},[{__template:{lat:40,lon:-70},lat:40,lon:-70}],[""],""]},distance_type:{__one_of:["sloppy_arc","arc","plane"]},sort_mode:{__one_of:["min","max","avg"]},order:{__one_of:["asc","desc"]},unit:"km"}}]},stored_fields:["{field}"],suggest:{__template:{YOUR_SUGGESTION:{text:"YOUR TEXT",term:{FIELD:"MESSAGE"}}},"*":{include:[],exclude:[]}},docvalue_fields:["{field}"],collapse:{__template:{field:"FIELD"}},indices_boost:{__template:[{INDEX:1}]},rescore:{__template:{query:{},window_size:50}},script_fields:{__template:{FIELD:{script:{}}},"*":{__scope_link:"GLOBAL.script"}},partial_fields:{__template:{NAME:{include:[]}},"*":{include:[],exclude:[]}},highlight:{},_source:{__one_of:["{field}",["{field}"],{includes:{__one_of:["{field}",["{field}"]]},excludes:{__one_of:["{field}",["{field}"]]}}]},explain:{__one_of:[!0,!1]},stats:[""],timeout:"1s",version:{__one_of:[!0,!1]},track_total_hits:{__one_of:[!0,!1]}}}),e.addEndpointDescription("search_template",{data_autocomplete_rules:{template:{__one_of:[{__scope_link:"search"},{__scope_link:"GLOBAL.script"}]},params:{}}}),e.addEndpointDescription("render_search_template",{data_autocomplete_rules:{__one_of:[{source:{__scope_link:"search"}},{__scope_link:"GLOBAL.script"}],params:{}}}),e.addEndpointDescription("_search/template/{id}",{data_autocomplete_rules:{template:{__scope_link:"search"}}})}];class pB{constructor(){this.name="es",this.globalRules={},this.endpoints={},this.extensionSpecFilePaths=[],this.hasLoadedSpec=!1}addGlobalAutocompleteRules(t,n){this.globalRules[t]=n}addEndpointDescription(t,n={}){let r={};this.endpoints[t]&&(r={...this.endpoints[t]});let o;we.each(n.patterns||[],function(i){i.indexOf("{indices}")>=0&&(o=o||{},o.ignore_unavailable="__flag__",o.allow_no_indices="__flag__",o.expand_wildcards=["open","closed"])}),o&&(n.url_params=we.assign(n.url_params||{},r.url_params),we.defaults(n.url_params,o)),we.assign(r,n),we.defaults(r,{id:t,patterns:[t],methods:["GET"]}),this.endpoints[t]=r}asJson(){return{name:this.name,globals:this.globalRules,endpoints:this.endpoints}}addExtensionSpecFilePath(t){this.extensionSpecFilePaths.push(t)}addProcessorDefinition(t){if(!this.hasLoadedSpec)throw new Error("Cannot add a processor definition because spec definitions have not loaded!");this.endpoints._processor.data_autocomplete_rules.__one_of.push(t)}setup(){return{addExtensionSpecFilePath:this.addExtensionSpecFilePath.bind(this)}}start(){if(this.hasLoadedSpec)throw new Error("Service has already started!");return this.loadJsonSpec(),this.loadJSSpec(),this.hasLoadedSpec=!0,{addProcessorDefinition:this.addProcessorDefinition.bind(this)}}async loadJSONSpecInDir(){const t=Object.assign({"../lib/spec_definitions/json/generated/_common.json":()=>Promise.resolve().then(()=>S4),"../lib/spec_definitions/json/generated/bulk.json":()=>Promise.resolve().then(()=>C4),"../lib/spec_definitions/json/generated/cat.aliases.json":()=>Promise.resolve().then(()=>E4),"../lib/spec_definitions/json/generated/cat.allocation.json":()=>Promise.resolve().then(()=>O4),"../lib/spec_definitions/json/generated/cat.count.json":()=>Promise.resolve().then(()=>$4),"../lib/spec_definitions/json/generated/cat.fielddata.json":()=>Promise.resolve().then(()=>T4),"../lib/spec_definitions/json/generated/cat.health.json":()=>Promise.resolve().then(()=>P4),"../lib/spec_definitions/json/generated/cat.help.json":()=>Promise.resolve().then(()=>R4),"../lib/spec_definitions/json/generated/cat.indices.json":()=>Promise.resolve().then(()=>j4),"../lib/spec_definitions/json/generated/cat.master.json":()=>Promise.resolve().then(()=>M4),"../lib/spec_definitions/json/generated/cat.nodeattrs.json":()=>Promise.resolve().then(()=>I4),"../lib/spec_definitions/json/generated/cat.nodes.json":()=>Promise.resolve().then(()=>A4),"../lib/spec_definitions/json/generated/cat.pending_tasks.json":()=>Promise.resolve().then(()=>N4),"../lib/spec_definitions/json/generated/cat.plugins.json":()=>Promise.resolve().then(()=>k4),"../lib/spec_definitions/json/generated/cat.recovery.json":()=>Promise.resolve().then(()=>L4),"../lib/spec_definitions/json/generated/cat.repositories.json":()=>Promise.resolve().then(()=>F4),"../lib/spec_definitions/json/generated/cat.segments.json":()=>Promise.resolve().then(()=>D4),"../lib/spec_definitions/json/generated/cat.shards.json":()=>Promise.resolve().then(()=>B4),"../lib/spec_definitions/json/generated/cat.snapshots.json":()=>Promise.resolve().then(()=>z4),"../lib/spec_definitions/json/generated/cat.tasks.json":()=>Promise.resolve().then(()=>q4),"../lib/spec_definitions/json/generated/cat.templates.json":()=>Promise.resolve().then(()=>V4),"../lib/spec_definitions/json/generated/cat.thread_pool.json":()=>Promise.resolve().then(()=>H4),"../lib/spec_definitions/json/generated/clear_scroll.json":()=>Promise.resolve().then(()=>W4),"../lib/spec_definitions/json/generated/cluster.allocation_explain.json":()=>Promise.resolve().then(()=>U4),"../lib/spec_definitions/json/generated/cluster.delete_component_template.json":()=>Promise.resolve().then(()=>G4),"../lib/spec_definitions/json/generated/cluster.get_component_template.json":()=>Promise.resolve().then(()=>K4),"../lib/spec_definitions/json/generated/cluster.get_settings.json":()=>Promise.resolve().then(()=>X4),"../lib/spec_definitions/json/generated/cluster.health.json":()=>Promise.resolve().then(()=>Y4),"../lib/spec_definitions/json/generated/cluster.pending_tasks.json":()=>Promise.resolve().then(()=>J4),"../lib/spec_definitions/json/generated/cluster.put_component_template.json":()=>Promise.resolve().then(()=>Q4),"../lib/spec_definitions/json/generated/cluster.put_settings.json":()=>Promise.resolve().then(()=>Z4),"../lib/spec_definitions/json/generated/cluster.remote_info.json":()=>Promise.resolve().then(()=>e3),"../lib/spec_definitions/json/generated/cluster.reroute.json":()=>Promise.resolve().then(()=>t3),"../lib/spec_definitions/json/generated/cluster.state.json":()=>Promise.resolve().then(()=>n3),"../lib/spec_definitions/json/generated/cluster.stats.json":()=>Promise.resolve().then(()=>r3),"../lib/spec_definitions/json/generated/count.json":()=>Promise.resolve().then(()=>o3),"../lib/spec_definitions/json/generated/create.json":()=>Promise.resolve().then(()=>i3),"../lib/spec_definitions/json/generated/delete.json":()=>Promise.resolve().then(()=>a3),"../lib/spec_definitions/json/generated/delete_by_query.json":()=>Promise.resolve().then(()=>s3),"../lib/spec_definitions/json/generated/delete_by_query_rethrottle.json":()=>Promise.resolve().then(()=>l3),"../lib/spec_definitions/json/generated/delete_script.json":()=>Promise.resolve().then(()=>c3),"../lib/spec_definitions/json/generated/exists.json":()=>Promise.resolve().then(()=>u3),"../lib/spec_definitions/json/generated/exists_source.json":()=>Promise.resolve().then(()=>d3),"../lib/spec_definitions/json/generated/explain.json":()=>Promise.resolve().then(()=>f3),"../lib/spec_definitions/json/generated/field_caps.json":()=>Promise.resolve().then(()=>p3),"../lib/spec_definitions/json/generated/get.json":()=>Promise.resolve().then(()=>h3),"../lib/spec_definitions/json/generated/get_script.json":()=>Promise.resolve().then(()=>m3),"../lib/spec_definitions/json/generated/get_script_context.json":()=>Promise.resolve().then(()=>g3),"../lib/spec_definitions/json/generated/get_script_languages.json":()=>Promise.resolve().then(()=>v3),"../lib/spec_definitions/json/generated/get_source.json":()=>Promise.resolve().then(()=>_3),"../lib/spec_definitions/json/generated/index.json":()=>Promise.resolve().then(()=>y3),"../lib/spec_definitions/json/generated/indices.analyze.json":()=>Promise.resolve().then(()=>b3),"../lib/spec_definitions/json/generated/indices.clear_cache.json":()=>Promise.resolve().then(()=>w3),"../lib/spec_definitions/json/generated/indices.clone.json":()=>Promise.resolve().then(()=>x3),"../lib/spec_definitions/json/generated/indices.close.json":()=>Promise.resolve().then(()=>S3),"../lib/spec_definitions/json/generated/indices.create.json":()=>Promise.resolve().then(()=>C3),"../lib/spec_definitions/json/generated/indices.delete.json":()=>Promise.resolve().then(()=>E3),"../lib/spec_definitions/json/generated/indices.delete_alias.json":()=>Promise.resolve().then(()=>O3),"../lib/spec_definitions/json/generated/indices.delete_template.json":()=>Promise.resolve().then(()=>$3),"../lib/spec_definitions/json/generated/indices.exists.json":()=>Promise.resolve().then(()=>T3),"../lib/spec_definitions/json/generated/indices.exists_alias.json":()=>Promise.resolve().then(()=>P3),"../lib/spec_definitions/json/generated/indices.exists_template.json":()=>Promise.resolve().then(()=>R3),"../lib/spec_definitions/json/generated/indices.exists_type.json":()=>Promise.resolve().then(()=>j3),"../lib/spec_definitions/json/generated/indices.flush.json":()=>Promise.resolve().then(()=>M3),"../lib/spec_definitions/json/generated/indices.flush_synced.json":()=>Promise.resolve().then(()=>I3),"../lib/spec_definitions/json/generated/indices.forcemerge.json":()=>Promise.resolve().then(()=>A3),"../lib/spec_definitions/json/generated/indices.get.json":()=>Promise.resolve().then(()=>N3),"../lib/spec_definitions/json/generated/indices.get_alias.json":()=>Promise.resolve().then(()=>k3),"../lib/spec_definitions/json/generated/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>L3),"../lib/spec_definitions/json/generated/indices.get_mapping.json":()=>Promise.resolve().then(()=>F3),"../lib/spec_definitions/json/generated/indices.get_settings.json":()=>Promise.resolve().then(()=>D3),"../lib/spec_definitions/json/generated/indices.get_template.json":()=>Promise.resolve().then(()=>B3),"../lib/spec_definitions/json/generated/indices.get_upgrade.json":()=>Promise.resolve().then(()=>z3),"../lib/spec_definitions/json/generated/indices.open.json":()=>Promise.resolve().then(()=>q3),"../lib/spec_definitions/json/generated/indices.put_alias.json":()=>Promise.resolve().then(()=>V3),"../lib/spec_definitions/json/generated/indices.put_mapping.json":()=>Promise.resolve().then(()=>H3),"../lib/spec_definitions/json/generated/indices.put_settings.json":()=>Promise.resolve().then(()=>W3),"../lib/spec_definitions/json/generated/indices.put_template.json":()=>Promise.resolve().then(()=>U3),"../lib/spec_definitions/json/generated/indices.recovery.json":()=>Promise.resolve().then(()=>G3),"../lib/spec_definitions/json/generated/indices.refresh.json":()=>Promise.resolve().then(()=>K3),"../lib/spec_definitions/json/generated/indices.rollover.json":()=>Promise.resolve().then(()=>X3),"../lib/spec_definitions/json/generated/indices.segments.json":()=>Promise.resolve().then(()=>Y3),"../lib/spec_definitions/json/generated/indices.shard_stores.json":()=>Promise.resolve().then(()=>J3),"../lib/spec_definitions/json/generated/indices.shrink.json":()=>Promise.resolve().then(()=>Q3),"../lib/spec_definitions/json/generated/indices.split.json":()=>Promise.resolve().then(()=>Z3),"../lib/spec_definitions/json/generated/indices.stats.json":()=>Promise.resolve().then(()=>e6),"../lib/spec_definitions/json/generated/indices.update_aliases.json":()=>Promise.resolve().then(()=>t6),"../lib/spec_definitions/json/generated/indices.upgrade.json":()=>Promise.resolve().then(()=>n6),"../lib/spec_definitions/json/generated/indices.validate_query.json":()=>Promise.resolve().then(()=>r6),"../lib/spec_definitions/json/generated/info.json":()=>Promise.resolve().then(()=>o6),"../lib/spec_definitions/json/generated/ingest.delete_pipeline.json":()=>Promise.resolve().then(()=>i6),"../lib/spec_definitions/json/generated/ingest.get_pipeline.json":()=>Promise.resolve().then(()=>a6),"../lib/spec_definitions/json/generated/ingest.processor_grok.json":()=>Promise.resolve().then(()=>s6),"../lib/spec_definitions/json/generated/ingest.put_pipeline.json":()=>Promise.resolve().then(()=>l6),"../lib/spec_definitions/json/generated/ingest.simulate.json":()=>Promise.resolve().then(()=>c6),"../lib/spec_definitions/json/generated/mget.json":()=>Promise.resolve().then(()=>u6),"../lib/spec_definitions/json/generated/msearch.json":()=>Promise.resolve().then(()=>d6),"../lib/spec_definitions/json/generated/msearch_template.json":()=>Promise.resolve().then(()=>f6),"../lib/spec_definitions/json/generated/mtermvectors.json":()=>Promise.resolve().then(()=>p6),"../lib/spec_definitions/json/generated/nodes.hot_threads.json":()=>Promise.resolve().then(()=>h6),"../lib/spec_definitions/json/generated/nodes.info.json":()=>Promise.resolve().then(()=>m6),"../lib/spec_definitions/json/generated/nodes.reload_secure_settings.json":()=>Promise.resolve().then(()=>g6),"../lib/spec_definitions/json/generated/nodes.stats.json":()=>Promise.resolve().then(()=>v6),"../lib/spec_definitions/json/generated/nodes.usage.json":()=>Promise.resolve().then(()=>_6),"../lib/spec_definitions/json/generated/ping.json":()=>Promise.resolve().then(()=>y6),"../lib/spec_definitions/json/generated/put_script.json":()=>Promise.resolve().then(()=>b6),"../lib/spec_definitions/json/generated/rank_eval.json":()=>Promise.resolve().then(()=>w6),"../lib/spec_definitions/json/generated/reindex.json":()=>Promise.resolve().then(()=>x6),"../lib/spec_definitions/json/generated/reindex_rethrottle.json":()=>Promise.resolve().then(()=>S6),"../lib/spec_definitions/json/generated/render_search_template.json":()=>Promise.resolve().then(()=>C6),"../lib/spec_definitions/json/generated/scripts_painless_execute.json":()=>Promise.resolve().then(()=>E6),"../lib/spec_definitions/json/generated/scroll.json":()=>Promise.resolve().then(()=>O6),"../lib/spec_definitions/json/generated/search.json":()=>Promise.resolve().then(()=>$6),"../lib/spec_definitions/json/generated/search_shards.json":()=>Promise.resolve().then(()=>T6),"../lib/spec_definitions/json/generated/search_template.json":()=>Promise.resolve().then(()=>P6),"../lib/spec_definitions/json/generated/snapshot.cleanup_repository.json":()=>Promise.resolve().then(()=>R6),"../lib/spec_definitions/json/generated/snapshot.create.json":()=>Promise.resolve().then(()=>j6),"../lib/spec_definitions/json/generated/snapshot.create_repository.json":()=>Promise.resolve().then(()=>M6),"../lib/spec_definitions/json/generated/snapshot.delete.json":()=>Promise.resolve().then(()=>I6),"../lib/spec_definitions/json/generated/snapshot.delete_repository.json":()=>Promise.resolve().then(()=>A6),"../lib/spec_definitions/json/generated/snapshot.get.json":()=>Promise.resolve().then(()=>N6),"../lib/spec_definitions/json/generated/snapshot.get_repository.json":()=>Promise.resolve().then(()=>k6),"../lib/spec_definitions/json/generated/snapshot.restore.json":()=>Promise.resolve().then(()=>L6),"../lib/spec_definitions/json/generated/snapshot.status.json":()=>Promise.resolve().then(()=>F6),"../lib/spec_definitions/json/generated/snapshot.verify_repository.json":()=>Promise.resolve().then(()=>D6),"../lib/spec_definitions/json/generated/tasks.cancel.json":()=>Promise.resolve().then(()=>B6),"../lib/spec_definitions/json/generated/tasks.get.json":()=>Promise.resolve().then(()=>z6),"../lib/spec_definitions/json/generated/tasks.list.json":()=>Promise.resolve().then(()=>q6),"../lib/spec_definitions/json/generated/termvectors.json":()=>Promise.resolve().then(()=>V6),"../lib/spec_definitions/json/generated/update.json":()=>Promise.resolve().then(()=>H6),"../lib/spec_definitions/json/generated/update_by_query.json":()=>Promise.resolve().then(()=>W6),"../lib/spec_definitions/json/generated/update_by_query_rethrottle.json":()=>Promise.resolve().then(()=>U6)}),n=await this.loadAllSpecFromModules(t),r=Object.assign({"../lib/spec_definitions/json/overrides/clear_scroll.json":()=>Promise.resolve().then(()=>G6),"../lib/spec_definitions/json/overrides/cluster.health.json":()=>Promise.resolve().then(()=>K6),"../lib/spec_definitions/json/overrides/cluster.put_component_template.json":()=>Promise.resolve().then(()=>X6),"../lib/spec_definitions/json/overrides/cluster.put_settings.json":()=>Promise.resolve().then(()=>Y6),"../lib/spec_definitions/json/overrides/cluster.reroute.json":()=>Promise.resolve().then(()=>J6),"../lib/spec_definitions/json/overrides/count.json":()=>Promise.resolve().then(()=>Q6),"../lib/spec_definitions/json/overrides/indices.analyze.json":()=>Promise.resolve().then(()=>Z6),"../lib/spec_definitions/json/overrides/indices.clone.json":()=>Promise.resolve().then(()=>e8),"../lib/spec_definitions/json/overrides/indices.create.json":()=>Promise.resolve().then(()=>t8),"../lib/spec_definitions/json/overrides/indices.delete_template.json":()=>Promise.resolve().then(()=>n8),"../lib/spec_definitions/json/overrides/indices.exists_template.json":()=>Promise.resolve().then(()=>r8),"../lib/spec_definitions/json/overrides/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>o8),"../lib/spec_definitions/json/overrides/indices.get_mapping.json":()=>Promise.resolve().then(()=>i8),"../lib/spec_definitions/json/overrides/indices.get_template.json":()=>Promise.resolve().then(()=>a8),"../lib/spec_definitions/json/overrides/indices.put_alias.json":()=>Promise.resolve().then(()=>s8),"../lib/spec_definitions/json/overrides/indices.put_settings.json":()=>Promise.resolve().then(()=>l8),"../lib/spec_definitions/json/overrides/indices.put_template.json":()=>Promise.resolve().then(()=>c8),"../lib/spec_definitions/json/overrides/indices.rollover.json":()=>Promise.resolve().then(()=>u8),"../lib/spec_definitions/json/overrides/indices.update_aliases.json":()=>Promise.resolve().then(()=>d8),"../lib/spec_definitions/json/overrides/indices.validate_query.json":()=>Promise.resolve().then(()=>f8),"../lib/spec_definitions/json/overrides/snapshot.create.json":()=>Promise.resolve().then(()=>p8),"../lib/spec_definitions/json/overrides/snapshot.create_repository.json":()=>Promise.resolve().then(()=>h8),"../lib/spec_definitions/json/overrides/snapshot.restore.json":()=>Promise.resolve().then(()=>m8),"../lib/spec_definitions/json/overrides/update_by_query.json":()=>Promise.resolve().then(()=>g8)}),o=await this.loadAllSpecFromModules(r);return we.merge(n,o)}async loadAllSpecFromModules(t){const n=Object.keys(t).map(async o=>(await t[o]()).default);return(await Promise.all(n)).reduce((o,i)=>we.merge(o,i),{})}loadJsonSpec(){const t=this.loadJSONSpecInDir();Object.keys(t).forEach(n=>{this.addEndpointDescription(n,t[n])})}loadJSSpec(){fB.forEach(t=>t(this))}}class hB extends $o{constructor(t,n,r){super(t,n),this.description=r}getTerms(){const t={name:this.name};return this.description==="__flag__"?t.meta="flag":(t.meta="param",t.insertValue=this.name+"="),[t]}}class mB{constructor(t,n){this.rootComponent=new Pn("ROOT"),we.isUndefined(n)&&(n={pretty:"__flag__",format:["json","yaml"],filter_path:""}),t=we.clone(t||{}),we.defaults(t,n),we.each(t,(r,o)=>{const i=new hB(o,this.rootComponent,r);Array.isArray(r)?new Fn(o,r,i):r==="__flag__"&&new Fn(o,["true","false"],i)})}getTopLevelComponents(){return this.rootComponent.next}}function gB(e,t){const n=e.getTerms;return e.getTerms=function(r,o){let i=n.call(e,r,o);return i&&(i=we.map(i,a=>(we.isObject(a)||(a={name:a}),we.defaults(a,t))),i)},e}function Nw(e,t){function n(){}n.prototype=e;const r=new n;return t&&(t.unshift(r),we.assign.apply(we,t),t.shift()),r}function ql(e,t,n,r,o){this.parentName=e,this.components=t,this.contextExtensionList=n,this.depth=r||0,this.priority=o}function lp(e,t,n,r){if(!e||e.length===0)return t;const o=e[0],i=[];return we.each(t,function(a){const l=Nw(n,a.contextExtensionList);we.each(a.components,function(s){const c=s.match(o,l,r);if(c&&!we.isEmpty(c)){let u,f;c.next&&!Array.isArray(c.next)?u=[c.next]:u=c.next,c.context_values?(f=[],[].push.apply(f,a.contextExtensionList),f.push(c.context_values)):f=a.contextExtensionList;let d=a.priority;we.isNumber(c.priority)&&(we.isNumber(d)?d=Math.min(d,c.priority):d=c.priority),i.push(new ql(s.name,u,f,a.depth+1,d))}})}),i.length===0?we.map(t,function(a){return new ql(a.name,[],a.contextExtensionList)}):lp(e.slice(1),i,n,r)}function $i(e,t,n,r,o){let i=lp(e,[new ql("ROOT",o,[])],t,n);if(r){let a=[];we.each(i,function(l){const s=Nw(t,l.contextExtensionList);we.each(l.components,function(c){we.each(c.getTerms(s,n),function(u){we.isObject(u)||(u={name:u}),a.push(u)})})}),a=we.uniq(a),t.autoCompleteSet=a}if(i.length!==0){let a;i=we.sortBy(i,function(l){return we.isNumber(l.priority)?l.priority:Number.MAX_VALUE}),a=we.find(i,function(l){return we.isEmpty(l.components)}),!a&&i.length>1&&!r&&console.info("more then one context active for current path, but autocomplete isn't requested",i),a||(a=i[0]),we.each(a.contextExtensionList,function(l){we.assign(t,l)})}}function vB(e,t){this.parametrizedComponentFactories=t,this.endpointId=e}function _B(e,t,n,r){const o=lp(e,[new ql("ROOT",r,[])],t,n);return[].concat.apply([],we.map(o,"components"))}class yB extends Pn{constructor(t,n){super("__scope_link"),we.isString(t)&&t[0]==="."&&(t==="."?t=n.endpointId:t=n.endpointId+t),this.link=t,this.compilingContext=n}resolveLinkToComponents(t,n){if(we.isFunction(this.link)){const a=this.link(t,n);return Fa(a,this.compilingContext)}if(!we.isString(this.link))throw new Error("unsupported link format",this.link);let r=this.link.replace(/\./g,"{").split(/(\{)/);const o=r[0];let i;try{if(o==="GLOBAL"){if(r.length<3)throw new Error("missing term in global link: "+this.link);const a=r[2];i=t.globalComponentResolver(a),r=r.slice(3)}else r=r.slice(1),i=t.endpointComponentResolver(o)}catch(a){throw new Error("failed to resolve link ["+this.link+"]: "+a)}return _B(r,t,n,i)}getTerms(t,n){const r=[],o=this.resolveLinkToComponents(t,n);return we.each(o,function(i){r.push.apply(r,i.getTerms(t,n))}),r}match(t,n,r){const o={next:[]},i=this.resolveLinkToComponents(n,r);return we.each(i,function(a){const l=a.match(t,n,r);l&&l.next&&o.next.push.apply(o.next,l.next)}),o}}function cp(e){if(e.__template)return e.__raw&&we.isString(e.__template)?{__raw:!0,value:e.__template}:e.__template;if(e.__one_of)return cp(e.__one_of[0]);if(e.__any_of)return[];if(e.__scope_link)return{};if(Array.isArray(e)){if(e.length===1&&we.isObject(e[0])){const t=cp(e[0]);return t!=null?[t]:[]}return[]}else return we.isObject(e)?{}:(we.isString(e)&&!/^\{.*\}$/.test(e),e)}function bB(e){const t={},n=cp(e);return we.isUndefined(n)||(t.template=n),t}function Fa(e,t){if(Array.isArray(e))return[Lw(e,t)];if(we.isObject(e)){if(e.__scope_link)return[new yB(e.__scope_link,t)];if(e.__any_of)return[Lw(e.__any_of,t)];if(e.__one_of)return we.flatten(we.map(e.__one_of,function(r){return Fa(r,t)}));const n=wB(e,t);return e.__condition?[xB(e.__condition,n)]:[n]}else return we.isString(e)&&/^\{.*\}$/.test(e)?[kw(e,t)]:[new $o(e)]}function kw(e,t,n){e=e.substr(1,e.length-2).toLowerCase();let r=t.parametrizedComponentFactories.getComponent(e,!0);if(!r)throw new Error("no factory found for '"+e+"'");return r=r(e,null,n),we.isUndefined(n)||(r=gB(r,{template:n})),r}function wB(e,t){const n=new $o("{"),r=[],o=[];return we.each(e,function(i,a){if(a.indexOf("__")===0)return;const l=bB(i);let s;/^\{.*\}$/.test(a)?(s=kw(a,t,l.template),o.push(s)):a==="*"?(s=new Pn(a),o.push(s)):(l.name=a,s=new $o(a,null,[l]),r.push(s)),we.map(Fa(i,t),function(c){s.addComponent(c)})}),n.addComponent(new xN("inner",r,o)),n}function Lw(e,t){const n=new $o("[");return we.each(e,function(r){we.each(Fa(r,t),function(o){n.addComponent(o)})}),n}function xB(e,t){if(e.lines_regex)return new bN(function(n,r){const o=r.getLines(n.requestStartRow,r.getCurrentPosition().lineNumber).join(`
271
271
  `);return new RegExp(e.lines_regex,"m").test(o)},t);throw"unknown condition type - got: "+JSON.stringify(e)}function SB(){return[new wN("__global__")]}function Fw(e,t,n){return Fa(t,new vB(e,n))}function up(e,t){this.globalRules=Object.create(null),this.endpoints=Object.create(null),this.urlPatternMatcher=new EN(e),this.globalBodyComponentFactories=t,this.name=""}(function(e){e.addGlobalAutocompleteRules=function(t,n){this.globalRules[t]=Fw("GLOBAL."+t,n,this.globalBodyComponentFactories)},e.getGlobalAutocompleteComponents=function(t,n){const r=this.globalRules[t];if(we.isUndefined(r)&&(n||we.isUndefined(n)))throw new Error("failed to resolve global components for ['"+t+"']");return r},e.addEndpointDescription=function(t,n){const r={};we.assign(r,n||{}),we.defaults(r,{id:t,patterns:[t],methods:["GET"]}),we.each(r.patterns,o=>{this.urlPatternMatcher.addEndpoint(o,r)}),r.paramsAutocomplete=new mB(r.url_params),r.bodyAutocompleteRootComponents=Fw(r.id,r.data_autocomplete_rules,this.globalBodyComponentFactories),this.endpoints[t]=r},e.getEndpointDescriptionByEndpoint=function(t){return this.endpoints[t]},e.getTopLevelUrlCompleteComponents=function(t){return this.urlPatternMatcher.getTopLevelComponents(t)},e.getUnmatchedEndpointComponents=function(){return SB()},e.clear=function(){this.endpoints={},this.globalRules={}}})(up.prototype);let Da=new up;const Dw=e=>e[0]==="_"&&e!=="_all",Ba=(e,t)=>new qN(e,t),CB={getComponent:function(e,t,n){if(this[e])return this[e];if(n)return Ba},index:function(e,t){if(!Dw(e))return new vl(e,t,!1)},indices:function(e,t){if(!Dw(e))return new vl(e,t,!0)},type:function(e,t){return new db(e,t,!1)},types:function(e,t){return new db(e,t,!0)},id:function(e,t){return Ba(e,t)},transform_id:function(e,t){return Ba(e,t)},username:function(e,t){return new fb(e,t)},user:function(e,t){return new fb(e,t)},template:function(e,t){return new VN(e,t)},task_id:function(e,t){return Ba(e,t)},ids:function(e,t){return Ba(e,t)},fields:function(e,t){return new ub(e,t,!0)},field:function(e,t){return new ub(e,t,!1)},nodes:function(e,t){return new Fn(e,["_local","_master","data:true","data:false","master:true","master:false"],t)},node:function(e,t){return new Fn(e,[],t,!1)}};function EB(){return Da.getUnmatchedEndpointComponents()}function OB(e){return Da.getEndpointDescriptionByEndpoint(e)}function $B(e){const t=OB(e);if(!t)throw new Error("failed to resolve endpoint ['"+e+"']");return t.bodyAutocompleteRootComponents}function Vl(e){return Da.getTopLevelUrlCompleteComponents(e)}function TB(e,t){return Da.getGlobalAutocompleteComponents(e,t)}function PB(e,t,n){t=t||CB,n=n||t;const r=new up(t,n),o=[];return we.each(e,function(i,a){o.unshift(a),we.each(i.globals||{},function(l,s){r.addGlobalAutocompleteRules(s,l)}),we.each(i.endpoints||{},function(l,s){r.addEndpointDescription(s,l)})}),r.name=o.join(","),r}const Bw=new pB;Bw.start();const RB=Bw.asJson();Da=PB({es:RB});const Wt={REQUEST_START:2,IN_REQUEST:4,MULTI_DOC_CUR_DOC_END:8,REQUEST_END:16,BETWEEN_REQUESTS:32};class zw{constructor(t){this.editor=t,this.MODE=Wt}getRowParseMode(t=this.editor.getCurrentPosition().lineNumber){const n=this.editor.getLineCount();if(t>n||t<1)return Wt.BETWEEN_REQUESTS;const r=this.editor.getLineState(t);if(!r)return Wt.BETWEEN_REQUESTS;if(r!=="start"&&r!=="start-sql")return Wt.IN_REQUEST;let o=(this.editor.getLineValue(t)||"").trim();return!o||o[0]==="#"?Wt.BETWEEN_REQUESTS:o.indexOf("}",o.length-1)>=0?(t++,t<n+1&&(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")===0)?Wt.MULTI_DOC_CUR_DOC_END|Wt.IN_REQUEST:Wt.REQUEST_END|Wt.MULTI_DOC_CUR_DOC_END):(t++,t>=n+1||(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")!==0)?Wt.REQUEST_START|Wt.REQUEST_END:Wt.REQUEST_START)}rowPredicate(t,n,r){return(this.getRowParseMode(t)&r)>0}isEndRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Wt.REQUEST_END)}isRequestEdge(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Wt.REQUEST_END|Wt.REQUEST_START)}isStartRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Wt.REQUEST_START)}isInBetweenRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Wt.BETWEEN_REQUESTS)}isInRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Wt.IN_REQUEST)}isMultiDocDocEndRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Wt.MULTI_DOC_CUR_DOC_END)}isEmptyToken(t){const n=t&&t.getCurrentToken?t.getCurrentToken():t;return!n||n.type==="whitespace"}isUrlOrMethodToken(t){const n=(t==null?void 0:t.getCurrentToken())||t;return n&&n.type&&(n.type==="method"||n.type.indexOf("url")===0)}nextNonEmptyToken(t){let n=t.stepForward();for(;n&&this.isEmptyToken(n);)n=t.stepForward();return n}prevNonEmptyToken(t){let n=t.stepBackward();for(;(n||t.getCurrentPosition().lineNumber>1)&&this.isEmptyToken(n);)n=t.stepBackward();return n}}function jB(e){return!(e==="_all"||e[0]!=="_")}class MB extends Fn{constructor(t,n,r){super(t,NN,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!we.find(t,jB)}getDefaultTermMeta(){return"command"}getContextKey(){return"command"}}function IB(){return[new MB("command",null,!0)]}let mr=null;function dp(e){switch((e||{}).type){case"url.param":case"url.equal":case"url.value":case"url.questionmark":case"url.amp":return!0;default:return!1}}function Hl(e,t,n,r){const o=Oo({editor:e,position:t}),i=t;let a=[];const l={};l.tokensLineCache=o.tokensLineCache;const s={looking_for_key:0,looking_for_scope_start:1,start:3};let c=s.start,u=o.getCurrentToken();l.token=u,u?i.column===1&&(u=o.stepBackward(),c=s.looking_for_scope_start):i.column===1&&(u=o.stepBackward(),c=s.start);let f=!1;for(;u&&u.type.indexOf("url")===-1&&u.type!=="method";u=o.stepBackward())switch(u.type!=="whitespace"&&(f=!0),u.type){case"variable":c===s.looking_for_key&&a.unshift(u.value.trim().replace(/"/g,"")),c=s.looking_for_scope_start;break;case"paren.lparen":a.unshift(u.value),c===s.looking_for_scope_start&&(c=s.looking_for_key);break;case"paren.rparen":c=s.looking_for_scope_start;let b=1;for(u=o.stepBackward();u&&b>0;){switch(u.type){case"paren.lparen":b--;break;case"paren.rparen":b++;break}b>0&&(u=o.stepBackward())}if(!u)return{};continue;case"punctuation.end_triple_quote":for(c=s.looking_for_scope_start,u=o.stepBackward();u;u=o.stepBackward())if(u.type==="punctuation.start_triple_quote"){u=o.stepBackward();break}if(!u)return{};continue;case"punctuation.start_triple_quote":c===s.start?c=s.looking_for_key:c===s.looking_for_key&&(c=s.looking_for_scope_start),a.unshift('"""');continue;case"string":case"constant.numeric":case"constant.language.boolean":case"text":c===s.start?c=s.looking_for_key:c===s.looking_for_key&&(c=s.looking_for_scope_start);break;case"punctuation.comma":c===s.start&&(c=s.looking_for_scope_start);break;case"punctuation.colon":case"whitespace":c===s.start&&(c=s.looking_for_key);break}if(f&&(!a||a.length===0)&&!r)return{};if(l.urlTokenPath=[],o.getCurrentPosition().lineNumber===i.lineNumber){if(u&&(u.type==="url.part"||u.type==="url.param"||u.type==="url.value")||u.type==="url.select_keyword")if(r&&(u.type==="url.part"||u.type==="url.select_keyword")&&(l.urlTokenPath.push(u.value),l.urlTokenPath.push(Vd)),u=o.stepBackward(),u.type==="whitespace")for(;u.type==="whitespace";)u=o.stepBackward();else for(;u.value.trim()==="";)u=o.stepBackward();a=null}l.bodyTokenPath=a,l.urlParamsTokenPath=null,l.requestStartRow=o.getCurrentPosition().lineNumber;let d;for(;u&&dp(u);){switch(u.type){case"url.value":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.param":const b=d;d={},d[u.value]=b;break;case"url.amp":case"url.questionmark":l.urlParamsTokenPath||(l.urlParamsTokenPath=[]),l.urlParamsTokenPath.unshift(d||{}),d=null;break}u=o.stepBackward()}for(d=null;u&&u.type.indexOf("url")!==-1;){switch(u.type){case"url.select_keyword":case"url.part":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.slash":d&&(l.urlTokenPath.unshift(d),d=null);break}for(u=n.prevNonEmptyToken(o);u.value.trim()==="";)u=n.prevNonEmptyToken(o)}return d&&l.urlTokenPath.unshift(d),!l.bodyTokenPath&&!l.urlParamsTokenPath?l.urlTokenPath.length>0&&(l.otherTokenValues=l.urlTokenPath[0]):l.urlTokenPath.push(Vd),u&&u.type==="method"&&(l.method=u.value),l}function qw(e){switch((e||{}).type){case"url.slash":case"url.comma":case"url.part":return!0;default:return!1}}function Wl(e,t,n){return we.map(e,function(r){return typeof r!="object"&&(r={name:r}),we.defaults(r,{meta:t,template:n})})}function AB({coreEditor:e}){const t=new zw(e);function n(p){const m=p.context;i(m,e.getCurrentPosition(),p.insertValue);let g;m.autoCompleteType==="body"?(g=typeof p.insertValue=="string"?'"'+p.insertValue+'"':p.insertValue+"",(p.insertValue==="["||p.insertValue==="{")&&(g="")):g=p.insertValue+"";let w=g,E=!1;if(m.addTemplate&&!we.isUndefined(p.template)&&!we.isNull(p.template)){let T;p.template.__raw&&p.template.value?T=p.template.value.split(`
272
272
  `):T=Zy(p.template,!0).split(`
273
273
  `);let M=e.getLineValue(m.rangeToReplace.start.lineNumber);M=M.match(/^\s*/)[0];for(let L=1;L<T.length;L++)T[L]=M+T[L];w+=": "+T.join(`
274
- `),E=!0}else E=!0,p.value==="["?w+="[]":p.value==="{"?w+="{}":E=!1;w=m.prefixToAdd+w+m.suffixToAdd,e.off("changeSelection",h),m.rangeToReplace.start.column!==m.rangeToReplace.end.column?e.replace(m.rangeToReplace,w):e.insert(w),e.clearSelection();let C={lineNumber:m.rangeToReplace.start.lineNumber,column:m.rangeToReplace.start.column+g.length+m.prefixToAdd.length+(E?0:m.suffixToAdd.length)};const x=Oo({editor:e,position:C});if(m.autoCompleteType==="body"){let T=t.nextNonEmptyToken(x);switch(T?T.type:"NOTOKEN"){case"paren.rparen":C=x.getCurrentPosition();break;case"punctuation.colon":T=t.nextNonEmptyToken(x),(T||{}).type==="paren.lparen"&&(T=t.nextNonEmptyToken(x),C=x.getCurrentPosition(),T&&T.value.indexOf('"')===0&&C.column++);break;case"paren.lparen":case"punctuation.comma":x.stepForward(),C=x.getCurrentPosition();break}e.moveCursorToPosition(C)}e.on("changeSelection",h)}function r(p,m){const g={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:p};switch(g.autoCompleteType=o(m),g.autoCompleteType){case"path":d(g,m);break;case"url_params":b(g,m);break;case"method":f(g);break;case"body":S(g,m);break;default:return null}return g.autoCompleteSet?(i(g,m),g.createdWithToken=we.clone(g.updatedForToken),g):null}function o(p){let m=t.getRowParseMode();if(m&t.MODE.IN_REQUEST)return"body";if(m&t.MODE.REQUEST_START){const g=Oo({editor:e,position:p});let w=g.getCurrentToken();for(;w.type==="url.comma";)w=g.stepBackward();switch(w.type){case"method":return"method";case"whitespace":switch(w=t.prevNonEmptyToken(g),(w||{}).type){case"method":return"path";default:return qw(w)?"path":dp(w)?"url_params":null}default:return qw(w)?"path":dp(w)?"url_params":null}}return m&t.MODE.REQUEST_END?"body":e.getLineValue(p.lineNumber).trim()===""?(m=t.getRowParseMode(p.lineNumber-1),m&t.MODE.REQUEST_START&&m&t.MODE.REQUEST_END?"body":"method"):null}function i(p,m,g){p.updatedForToken=we.clone(e.getTokenAt({lineNumber:m.lineNumber,column:m.column})),p.updatedForToken||(p.updatedForToken={value:"",type:"",position:{column:m.column,lineNumber:m.lineNumber}});let w=p.createdWithToken;switch(w||(w=p.updatedForToken),p.updatedForToken.type){case"variable":case"string":case"text":case"constant.numeric":case"constant.language.boolean":case"method":case"url.index":case"url.type":case"url.id":case"url.method":case"url.endpoint":case"url.part":case"url.param":case"url.value":p.rangeToReplace={start:{lineNumber:m.lineNumber,column:w.position.column},end:{lineNumber:m.lineNumber,column:p.updatedForToken.position.column+p.updatedForToken.value.length}},p.replacingToken=!0;break;default:g&&p.updatedForToken.value===g?(p.rangeToReplace={start:{lineNumber:m.lineNumber,column:w.position.column},end:{lineNumber:m.lineNumber,column:p.updatedForToken.position.column+p.updatedForToken.value.length}},p.replacingToken=!0):(p.rangeToReplace={start:{lineNumber:m.lineNumber,column:m.column},end:{lineNumber:m.lineNumber,column:m.column}},p.replacingToken=!1);break}switch(p.textBoxPosition={lineNumber:p.rangeToReplace.start.lineNumber,column:p.rangeToReplace.start.column},p.autoCompleteType){case"path":c(p);break;case"url_params":l(p);break;case"method":s(p);break;case"body":a(p);break}}function a(p){p.prefixToAdd="",p.suffixToAdd="";let m=Oo({editor:e,position:e.getCurrentPosition()}),g=t.nextNonEmptyToken(m);switch(g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":p.addTemplate=!0;break;case"punctuation.colon":if(p.addTemplate=!1,g=t.nextNonEmptyToken(m),!(g&&g.value==="{")||(g=t.nextNonEmptyToken(m),!(g&&g.value==="}")))break;switch(p.addTemplate=!0,p.rangeToReplace.end.lineNumber=m.getCurrentTokenLineNumber(),p.rangeToReplace.end.column=m.getCurrentTokenColumn()+g.value.length,g=t.nextNonEmptyToken(m),g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:p.suffixToAdd=", "}break;default:p.addTemplate=!0,p.suffixToAdd=", ";break}m=Oo({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentToken();let w;if(p.replacingToken)w=0;else{const E=e.getCurrentPosition();E.column===p.updatedForToken.position.column?w=-1:E.column<p.updatedForToken.position.column+p.updatedForToken.value.length?w=0:w=1}switch((t.isEmptyToken(g)||w<=0)&&(g=t.prevNonEmptyToken(m)),g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:g&&g.type.indexOf("url")<0&&(p.prefixToAdd=", ")}return p}function l(p){p.prefixToAdd="",p.suffixToAdd=""}function s(p){p.prefixToAdd="",p.suffixToAdd="";const m=Oo({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentPosition().lineNumber,w=t.nextNonEmptyToken(m);(m.getCurrentPosition().lineNumber!==g||!w)&&(p.suffixToAdd=" ")}function c(p){p.prefixToAdd="",p.suffixToAdd=""}function u(p,m){const g=[];let w=-1;return(p||[]).forEach((E,C)=>{const x=E.value.toUpperCase();if(["FROM","JOIN"].includes(x)&&p.length>C+2&&C+2!=m){let T=p[C+2].value;T.includes("(")||(T=T.replace(/^"+/,"").replace(/"+$/,""),g.push(T),w=C)}}),{indices:g.join(","),idx:w}}function f(p){p.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((m,g)=>({name:m,score:-g,meta:"method"}))}function d(p,m){var E,C;const g=Hl(e,m,t);p.method=g.method,p.token=g.token,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath;let w;if(g.method==="LOAD")w=IB();else if(g.method==="SELECT"){const x=(g.tokensLineCache||[]).findIndex(j=>j.value===g.token.value);let{indices:T,idx:M}=u(g.tokensLineCache,x);if(M>-1&&x<M){const j=Pa(T);p.autoCompleteSet=Wl(j,"field");return}const L=((E=g.otherTokenValues)==null?void 0:E.length)||0;if(L>0)switch(g.otherTokenValues[L-1].toUpperCase()){case"FROM":!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],w=[new vl("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(L>1&&!g.token.value.includes("=")){T===""&&(T=g.otherTokenValues[L-2],T=T.replace(/^"+/,"").replace(/"+$/,""));const j=Pa(T);p.autoCompleteSet=Wl(j,"field");return}}}else if(g.method=="FROM"){const x=(g.tokensLineCache||[]).findIndex(T=>T.value===g.token.value);if(g.tokensLineCache[x-2].value=="FROM")!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],w=[new vl("indices",null,!0)]);else{let T=g.otherTokenValues[0];T=T.replace(/^"+/,"").replace(/"+$/,"");const M=((C=g.otherTokenValues)==null?void 0:C.length)||0;let L=!0,j=null;for(let D=x-1;D>=0;D--){const V=g.tokensLineCache[D];if(j===null&&V.value.trim()!=""&&(j=V),V.type=="url.select_keyword"&&V.value.toUpperCase()!="SELECT"){L=!1;break}}switch(L&&j.value!=","&&j.value.toUpperCase()!="SELECT"&&(L=!1),g.otherTokenValues[M-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":L=!0}if(L&&!g.token.value.includes("=")){const D=Pa(T);p.autoCompleteSet=Wl(D,"field");return}}}else w=Vl(p.method);$i(p.urlTokenPath,p,e,!0,w),p.autoCompleteSet=Wl(p.autoCompleteSet,"endpoint")}function b(p,m){const g=Hl(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,!g.urlTokenPath||($i(g.urlTokenPath,p,e,!1,Vl(p.method)),!p.endpoint)||!g.urlParamsTokenPath)return p;let w=[];const E=g.urlParamsTokenPath.pop();return E&&(w=Object.keys(E),p.otherTokenValues=E[w[0]]),$i(w,p,e,!0,p.endpoint.paramsAutocomplete.getTopLevelComponents(p.method)),p}function S(p,m){const g=Hl(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,p.requestStartRow=g.requestStartRow,!g.urlTokenPath||($i(g.urlTokenPath,p,e,!1,Vl(p.method)),p.bodyTokenPath=g.bodyTokenPath,!g.bodyTokenPath))return p;p.endpointComponentResolver=$B,p.globalComponentResolver=TB;let w;return p.endpoint?w=p.endpoint.bodyAutocompleteRootComponents:w=EB(),$i(g.bodyTokenPath,p,e,!0,w),p}const O=we.debounce(function(m){let g=null;try{g=e.getTokenAt(m)}catch{}if(!g){if(m.lineNumber===1){mr=null;return}g={position:{column:0,lineNumber:0},value:"",type:""}}if(g.position.lineNumber=m.lineNumber,t.isEmptyToken(g)){const w=e.getTokenAt({...m,column:m.column+1});t.isEmptyToken(w)?(g.position.column=m.column,mr=g):(w.position.lineNumber=m.lineNumber,mr=w);return}if(!mr){mr=g;return}if(mr.position.column!==g.position.column||mr.position.lineNumber!==g.position.lineNumber||mr.value===g.value){mr=g;return}switch(g.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}mr=g,e.execCommand("startAutocomplete")},100);function h(){const p=e.getCurrentPosition();p&&!e.isCompleterActive()&&O(p)}function y(p,m,g){try{const w=r(e,p);if(!w)g(null,[]);else{const E=we.map(w.autoCompleteSet.filter(C=>!!C&&C.name!=null),function(C){typeof C!="object"?C={name:C}:C=we.clone(C);const x={value:C.name,meta:"API",score:0,context:w};return w.method==="LOAD"&&w.autoCompleteType==="path"&&(x.completer={insertMatch(){n(C),e.execCommand("exec_request")}}),w.autoCompleteType==="body"&&(x.completer={insertMatch(){return n(C)}}),we.defaults(C,x)});E.sort(function(C,x){return C.score>x.score?-1:C.score<x.score?1:C.name<x.name?-1:C.name===x.name?0:1}),g(null,we.map(E,function(C,x){return C.insertValue=C.insertValue||C.value,C.value=""+C.value,C.score=-x,C}))}}catch(w){console.error(w),g(w,null)}}return e.on("changeSelection",h),{getCompletions:y}}async function NB(){return(await Promise.resolve().then(()=>V6)).someFunction()}const kB={id:"sense_editor/mode/worker",src:NB},{TextHighlightRules:LB}=tt.acequire("ace/mode/text_highlight_rules"),FB=tt.acequire("ace/lib/oop"),fp=function(){const o=this.createKeywordMapper({keyword:["describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is","avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score","true|false","null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape"].join("|")},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"constant",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"entity.name.function",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:o,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"⇐|<⇒|\\*|\\.|\\:\\:|\\+|\\-|\\/|\\/\\/|%|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};FB.inherits(fp,LB);const DB=tt.acequire("ace/lib/oop"),{TextHighlightRules:BB}=tt.acequire("ace/mode/text_highlight_rules"),zB="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function pp(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:zB},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}DB.inherits(pp,BB);const{JsonHighlightRules:qB}=tt.acequire("ace/mode/json_highlight_rules"),VB=tt.acequire("ace/lib/oop"),Vw=function(e){e=e||"json";const t={},n=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("(?:[^"]*_)?script"|"inline"|"source")(\\s*?)(:)(\\s*?)(""")',next:"script-start",merge:!1,push:!0},{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"punctuation.start_triple_quote",regex:'"""',next:"string_literal",merge:!1,push:!0},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"invalid.illegal",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"invalid.illegal",regex:"\\/\\/.*$"},{token:"paren.lparen",merge:!1,regex:"{",next:e,push:!0},{token:"paren.lparen",merge:!1,regex:"[[(]"},{token:"paren.rparen",merge:!1,regex:"[\\])]"},{token:"paren.rparen",regex:"}",merge:!1,next:"pop"},{token:"punctuation.comma",regex:","},{token:"punctuation.colon",regex:":"},{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}];return t[e]=n,t[e+"-sql"]=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("query")(\\s*?)(:)(\\s*?)(""")',next:"sql-start",merge:!1,push:!0}].concat(n),t.string_literal=[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"},{token:"multi_string",regex:"."}],t};function Hw(){const e=Vw("start");this.$rules={...e},this.embedRules(pp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(fp,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}VB.inherits(Hw,qB);function Ww(e,t){e.$rules=we.defaultsDeep(e.$rules,Vw(t)),e.embedRules(pp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(fp,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}async function HB(){return(await Promise.resolve().then(()=>v5)).someFunction()}const WB={id:"ace/mode/json_worker",src:HB},{WorkerClient:UB}=tt.acequire("ace/worker/worker_client"),GB=tt.acequire("ace/lib/oop"),{Mode:KB}=tt.acequire("ace/mode/json"),{Tokenizer:XB}=tt.acequire("ace/tokenizer"),{MatchingBraceOutdent:YB}=tt.acequire("ace/mode/matching_brace_outdent"),{CstyleBehaviour:JB}=tt.acequire("ace/mode/behaviour/cstyle"),{FoldMode:QB}=tt.acequire("ace/mode/folding/cstyle"),Uw=function(){const t=new Hw;t.normalizeRules(),this.$tokenizer=new XB(t.getRules()),this.$outdent=new YB,this.$behaviour=new JB,this.foldingRules=new QB};GB.inherits(Uw,KB),Uw.prototype.createWorker=function(e){const t=new UB(["ace"],WB,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(n){e.setAnnotations(n.data)}),t.on("terminate",function(){e.clearAnnotations()}),t};function Xt(e,t,n,r){return typeof t=="object"&&(t=t.source),[{token:e.concat(["whitespace"]),regex:t+"(\\s*)$",next:n},{token:e,regex:t,next:r}]}function Ti(){return[].concat.apply([],arguments)}const ZB=tt.acequire("ace/lib/oop"),{TextHighlightRules:ez}=tt.acequire("ace/mode/text_highlight_rules");function hp(){const e="describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is",t="true|false",n="avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score",r="null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape";this.createKeywordMapper({keyword:[e,n,t,r].join("|")},"identifier",!0);const o=[e,n,t,r].join("|").split("|");let i=Xt(["url.part"],/([^?\/,\s]+)/,"start");i=i.map(a=>(a.onMatch=(l,s,c)=>o.includes(l==null?void 0:l.toLowerCase())?"url.select_keyword":a.token,a)),this.$rules={"start-sql":[{token:"whitespace",regex:"\\s+"},{token:"paren.lparen",regex:"{",next:"json-sql",push:!0},{regex:"",next:"start"}],start:Ti([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],Xt(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:Ti(Xt(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),Xt(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),Xt(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),Xt(["whitespace"],/(\s+)/,"start","url")),url:Ti(Xt(["url.part"],/(_sql)/,"start-sql","url-sql"),i,Xt(["url.comma"],/(,)/,"start"),Xt(["url.slash"],/(\/)/,"start"),Xt(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:Ti(Xt(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),Xt(["url.param"],/([^&=]+)/,"start"),Xt(["url.amp"],/(&)/,"start")),"url-sql":Ti(Xt(["url.part"],/([^?\/,\s]+)/,"start-sql"),Xt(["url.comma"],/(,)/,"start-sql"),Xt(["url.slash"],/(\/)/,"start-sql"),Xt(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":Ti(Xt(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),Xt(["url.param"],/([^&=]+)/,"start-sql"),Xt(["url.amp"],/(&)/,"start-sql"))},Ww(this),this.constructor===hp&&this.normalizeRules()}ZB.inherits(hp,ez);const tz=tt.acequire("ace/lib/oop"),{TextHighlightRules:nz}=tt.acequire("ace/mode/text_highlight_rules"),rz="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function Gw(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:rz},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}tz.inherits(Gw,nz);const oz=tt.acequire("ace/lib/oop"),iz=tt.acequire("ace/mode/text").Mode;tt.acequire("ace/tokenizer");function mp(){}oz.inherits(mp,iz),(function(){this.HighlightRules=Gw,this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return t.match(/^.*[\{\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}).call(mp.prototype);const az=tt.acequire("ace/lib/oop"),sz=tt.acequire("ace/mode/text").Mode,lz=tt.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,cz=tt.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,uz=tt.acequire("ace/mode/folding/cstyle").FoldMode,dz=tt.acequire("ace/worker/worker_client").WorkerClient,fz=tt.acequire("ace/tokenizer").Tokenizer;function gp(){this.$tokenizer=new fz(new hp().getRules()),this.$outdent=new lz,this.$behaviour=new cz,this.foldingRules=new uz,this.createModeDelegates({"script-":mp})}az.inherits(gp,sz),(function(){this.getCompletions=function(){return[]},this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return e!=="string_literal"&&t.match(/^.*[\{\(\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){const t=new dz(["ace","sense_editor"],kB,"SenseWorker");return t.attachToDocument(e.getDocument()),t.on("error",function(n){e.setAnnotations([n.data])}),t.on("ok",function(n){e.setAnnotations(n.data)}),t}}).call(gp.prototype);var za={exports:{}};(function(){tt.define("ace/autocomplete/text_completer",["require","exports","module"],function(n,r){r.getCompletions=function(o,i,a,l,s){s(null,[])}}),tt.acequire("ace/ext/language_tools").setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o,i)=>{const{coreEditor:a}=n,l={lineNumber:r.row+1,column:r.column+1};a.autocompleter(l,o,i)}}])})();const pz=tt.acequire("ace/range").Range,Ul=({start:e,end:t})=>new pz(e.lineNumber-1,e.column-1,t.lineNumber-1,t.column-1);class hz{constructor(t,n){this.editor=t,this.setActionsBar=(i,a="top")=>{i===null?this.$actions.css("visibility","hidden"):a==="top"?this.$actions.css({bottom:"auto",top:i,visibility:"visible"}):this.$actions.css({top:"auto",bottom:i,visibility:"visible"})},this.hideActionsBar=()=>{this.setActionsBar(null)},this.$actions=Tt(n),this.editor.setShowPrintMargin(!1),this.parser=new zw(this),this.autocompleter=AB({coreEditor:this}).getCompletions;const r=this.editor.getSession();r.setMode(new gp);const o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=ob(this.editor),this._aceOnPaste=this.editor.onPaste,this.editor.onPaste=this.DO_NOT_USE_onPaste.bind(this),this.editor.setOptions({enableBasicAutocompletion:!0}),this.editor.$blockScrolling=1/0,this.hideActionsBar(),this.editor.focus(),t.coreEditor=this}setMaxTokenCount(t){var r;(r=this.editor.getSession().getMode().getTokenizer())==null||r.$setMaxTokenCount(t)}getParser(){return this.parser}getAutocompleter(){return this.autocompleter}waitForLatestTokens(){return new Promise(t=>{const n=this.editor.getSession(),r=25,o=()=>{n.bgTokenizer&&(n.bgTokenizer.running?setTimeout(o,r):t())};setTimeout(o,0)})}getLineState(t){return this.editor.getSession().getState(t-1)}getValueInRange(t){return this.editor.getSession().getTextRange(Ul(t))}getTokenProvider(){return new hN(this.editor.getSession())}getValue(){return this.editor.getValue()}async setValue(t,n){this.editor.getSession().setValue(t),n&&await this.forceRetokenize()}getLineValue(t){return this.editor.getSession().getLine(t-1)}getCurrentPosition(){const t=this.editor.getCursorPosition();return{lineNumber:t.row+1,column:t.column+1}}clearSelection(){this.editor.clearSelection()}getTokenAt(t){return this.getTokenProvider().getTokenAt(t)}insert(t,n){if(typeof t=="string"){this.editor.insert(t);return}this.editor.getSession().getDocument().insert({column:t.column-1,row:t.lineNumber-1},n||"")}moveCursorToPosition(t){this.editor.moveCursorToPosition({row:t.lineNumber-1,column:t.column-1})}replace(t,n){this.editor.getSession().replace(Ul(t),n)}getLines(t,n){return this.editor.getSession().getLines(t-1,n-1)}replaceRange(t,n){const r=this.editor.getCursorPosition();this.editor.getSession().replace(Ul(t),n);const o=Math.max(t.start.lineNumber-1+n.split(`
275
- `).length-1,1);r.row=Math.min(r.row,o),this.editor.moveCursorToPosition(r),this.editor.clearSelection()}getSelectionRange(){const t=this.editor.getSelectionRange();return{start:{lineNumber:t.start.row+1,column:t.start.column+1},end:{lineNumber:t.end.row+1,column:t.end.column+1}}}getLineCount(){return this.editor.getSession().getLength()}addMarker(t){return this.editor.getSession().addMarker(Ul(t),"ace_snippet-marker","fullLine",!1)}removeMarker(t){this.editor.getSession().removeMarker(t)}getWrapLimit(){return this.editor.getSession().getWrapLimit()}on(t,n){t==="changeCursor"?this.editor.getSession().selection.on(t,n):t==="changeSelection"?this.editor.on(t,n):this.editor.getSession().on(t,n)}off(t,n){t==="changeSelection"&&this.editor.off(t,n)}isCompleterActive(){return!!(this.editor.completer&&this.editor.completer.activated)}forceRetokenize(){const t=this.editor.getSession();return new Promise(n=>{setTimeout(function(){let r;for(r=0;r<t.getLength();r++)t.getTokens(r);n()})})}DO_NOT_USE_onPaste(t){if(t&&gN(t)){const n=vN(t);this.editor.insert(n);return}this._aceOnPaste.call(this.editor,t)}execCommand(t){this.editor.execCommand(t)}getContainer(){return this.editor.container}setStyles(t){this.editor.getSession().setUseWrapMode(t.wrapLines),this.editor.container.style.fontSize=t.fontSize}registerKeyboardShortcut(t){this.editor.commands.addCommand({exec:t.fn,name:t.name,bindKey:t.keys})}legacyUpdateUI(t){if(this.$actions&&t){const n=Tt(this.editor.container).offset().top,r=t.start.lineNumber,o=t.start.column,i=this.getLineValue(r),a=this.getWrapLimit()-5,l=i.length>a,s=n-(window.pageYOffset||0),c=d=>this.editor.renderer.textToScreenCoordinates(d-1,o).pageY-s,u=c(r);if(u>=0){const{bottom:d}=this.editor.container.getBoundingClientRect();if(u>d-s){this.setActionsBar(0,"bottom");return}let b=0;if(l){const S=Tt(this.editor.container.querySelector("textArea")),O=this.getLineValue(r).length<a;if(S&&O)b+=this.getLineValue(r).length*S.height();else{if(r>1){this.setActionsBar(c(r-1));return}this.setActionsBar(c(r+1));return}}this.setActionsBar(u+b);return}if(this.editor.renderer.textToScreenCoordinates(t.end.lineNumber,t.end.column).pageY-n>=0){this.setActionsBar(0);return}}}registerAutocompleter(t){langTools.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o)=>{const i={lineNumber:n.row+1,column:n.column+1};t(i,r,o)}}])}destroy(){this.editor.destroy()}}(za.exports==null?{}:za.exports).default||za.exports,(za.exports==null?{}:za.exports).getCompletions;const mz=tt.acequire("ace/lib/oop"),gz=tt.acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function vp(){this.$rules={},Ww(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===vp&&this.normalizeRules()}mz.inherits(vp,gz);const vz=tt.acequire("ace/lib/oop"),_z=tt.acequire("ace/mode/json").Mode,yz=tt.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,bz=tt.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,wz=tt.acequire("ace/mode/folding/cstyle").FoldMode;tt.acequire("ace/worker/worker_client");const xz=tt.acequire("ace/tokenizer").Tokenizer;function _p(){this.$tokenizer=new xz(new vp().getRules()),this.$outdent=new yz,this.$behaviour=new bz,this.foldingRules=new wz}vz.inherits(_p,_z),(function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}).call(_p.prototype);function Sz(e){const t=tt.acequire("ace/ace").edit(e),n=new _p;return t.$blockScrolling=1/0,t.resize=ob(t),t.update=(r,o,i)=>{typeof o=="function"&&(i=o,o=void 0);const a=t.getSession();a.setMode(r?o||n:"ace/mode/text"),a.setValue(r),typeof i=="function"&&setTimeout(i)},t.append=(r,o,i)=>{typeof o=="function"&&(i=o,o=!0),we.isUndefined(o)&&(o=!0);const a=t.getSession(),l=a.getLength();o&&t.moveCursorTo(Math.max(0,l-1),0),a.insert({row:l,column:0},`
274
+ `),E=!0}else E=!0,p.value==="["?w+="[]":p.value==="{"?w+="{}":E=!1;w=m.prefixToAdd+w+m.suffixToAdd,e.off("changeSelection",h),m.rangeToReplace.start.column!==m.rangeToReplace.end.column?e.replace(m.rangeToReplace,w):e.insert(w),e.clearSelection();let C={lineNumber:m.rangeToReplace.start.lineNumber,column:m.rangeToReplace.start.column+g.length+m.prefixToAdd.length+(E?0:m.suffixToAdd.length)};const x=Oo({editor:e,position:C});if(m.autoCompleteType==="body"){let T=t.nextNonEmptyToken(x);switch(T?T.type:"NOTOKEN"){case"paren.rparen":C=x.getCurrentPosition();break;case"punctuation.colon":T=t.nextNonEmptyToken(x),(T||{}).type==="paren.lparen"&&(T=t.nextNonEmptyToken(x),C=x.getCurrentPosition(),T&&T.value.indexOf('"')===0&&C.column++);break;case"paren.lparen":case"punctuation.comma":x.stepForward(),C=x.getCurrentPosition();break}e.moveCursorToPosition(C)}e.on("changeSelection",h)}function r(p,m){const g={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:p};switch(g.autoCompleteType=o(m),g.autoCompleteType){case"path":d(g,m);break;case"url_params":b(g,m);break;case"method":f(g);break;case"body":S(g,m);break;default:return null}return g.autoCompleteSet?(i(g,m),g.createdWithToken=we.clone(g.updatedForToken),g):null}function o(p){let m=t.getRowParseMode();if(m&t.MODE.IN_REQUEST)return"body";if(m&t.MODE.REQUEST_START){const g=Oo({editor:e,position:p});let w=g.getCurrentToken();for(;w.type==="url.comma";)w=g.stepBackward();switch(w.type){case"method":return"method";case"whitespace":switch(w=t.prevNonEmptyToken(g),(w||{}).type){case"method":return"path";default:return qw(w)?"path":dp(w)?"url_params":null}default:return qw(w)?"path":dp(w)?"url_params":null}}return m&t.MODE.REQUEST_END?"body":e.getLineValue(p.lineNumber).trim()===""?(m=t.getRowParseMode(p.lineNumber-1),m&t.MODE.REQUEST_START&&m&t.MODE.REQUEST_END?"body":"method"):null}function i(p,m,g){p.updatedForToken=we.clone(e.getTokenAt({lineNumber:m.lineNumber,column:m.column})),p.updatedForToken||(p.updatedForToken={value:"",type:"",position:{column:m.column,lineNumber:m.lineNumber}});let w=p.createdWithToken;switch(w||(w=p.updatedForToken),p.updatedForToken.type){case"variable":case"string":case"text":case"constant.numeric":case"constant.language.boolean":case"method":case"url.index":case"url.type":case"url.id":case"url.method":case"url.endpoint":case"url.part":case"url.param":case"url.value":p.rangeToReplace={start:{lineNumber:m.lineNumber,column:w.position.column},end:{lineNumber:m.lineNumber,column:p.updatedForToken.position.column+p.updatedForToken.value.length}},p.replacingToken=!0;break;default:g&&p.updatedForToken.value===g?(p.rangeToReplace={start:{lineNumber:m.lineNumber,column:w.position.column},end:{lineNumber:m.lineNumber,column:p.updatedForToken.position.column+p.updatedForToken.value.length}},p.replacingToken=!0):(p.rangeToReplace={start:{lineNumber:m.lineNumber,column:m.column},end:{lineNumber:m.lineNumber,column:m.column}},p.replacingToken=!1);break}switch(p.textBoxPosition={lineNumber:p.rangeToReplace.start.lineNumber,column:p.rangeToReplace.start.column},p.autoCompleteType){case"path":c(p);break;case"url_params":l(p);break;case"method":s(p);break;case"body":a(p);break}}function a(p){p.prefixToAdd="",p.suffixToAdd="";let m=Oo({editor:e,position:e.getCurrentPosition()}),g=t.nextNonEmptyToken(m);switch(g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":p.addTemplate=!0;break;case"punctuation.colon":if(p.addTemplate=!1,g=t.nextNonEmptyToken(m),!(g&&g.value==="{")||(g=t.nextNonEmptyToken(m),!(g&&g.value==="}")))break;switch(p.addTemplate=!0,p.rangeToReplace.end.lineNumber=m.getCurrentTokenLineNumber(),p.rangeToReplace.end.column=m.getCurrentTokenColumn()+g.value.length,g=t.nextNonEmptyToken(m),g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:p.suffixToAdd=", "}break;default:p.addTemplate=!0,p.suffixToAdd=", ";break}m=Oo({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentToken();let w;if(p.replacingToken)w=0;else{const E=e.getCurrentPosition();E.column===p.updatedForToken.position.column?w=-1:E.column<p.updatedForToken.position.column+p.updatedForToken.value.length?w=0:w=1}switch((t.isEmptyToken(g)||w<=0)&&(g=t.prevNonEmptyToken(m)),g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:g&&g.type.indexOf("url")<0&&(p.prefixToAdd=", ")}return p}function l(p){p.prefixToAdd="",p.suffixToAdd=""}function s(p){p.prefixToAdd="",p.suffixToAdd="";const m=Oo({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentPosition().lineNumber,w=t.nextNonEmptyToken(m);(m.getCurrentPosition().lineNumber!==g||!w)&&(p.suffixToAdd=" ")}function c(p){p.prefixToAdd="",p.suffixToAdd=""}function u(p,m){const g=[];let w=-1;return(p||[]).forEach((E,C)=>{const x=E.value.toUpperCase();if(["FROM","JOIN"].includes(x)&&p.length>C+2&&C+2!=m){let T=p[C+2].value;T.includes("(")||(T=T.replace(/^"+/,"").replace(/"+$/,""),g.push(T),w=C)}}),{indices:g.join(","),idx:w}}function f(p){p.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((m,g)=>({name:m,score:-g,meta:"method"}))}function d(p,m){var E,C;const g=Hl(e,m,t);p.method=g.method,p.token=g.token,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath;let w;if(g.method==="LOAD")w=IB();else if(g.method==="SELECT"){const x=(g.tokensLineCache||[]).findIndex(j=>j.value===g.token.value);let{indices:T,idx:M}=u(g.tokensLineCache,x);if(M>-1&&x<M){const j=Pa(T);p.autoCompleteSet=Wl(j,"field");return}const L=((E=g.otherTokenValues)==null?void 0:E.length)||0;if(L>0)switch(g.otherTokenValues[L-1].toUpperCase()){case"FROM":!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],w=[new vl("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(L>1&&!g.token.value.includes("=")){T===""&&(T=g.otherTokenValues[L-2],T=T.replace(/^"+/,"").replace(/"+$/,""));const j=Pa(T);p.autoCompleteSet=Wl(j,"field");return}}}else if(g.method=="FROM"){const x=(g.tokensLineCache||[]).findIndex(T=>T.value===g.token.value);if(g.tokensLineCache[x-2].value=="FROM")!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],w=[new vl("indices",null,!0)]);else{let T=g.otherTokenValues[0];T=T.replace(/^"+/,"").replace(/"+$/,"");const M=((C=g.otherTokenValues)==null?void 0:C.length)||0;let L=!0,j=null;for(let D=x-1;D>=0;D--){const V=g.tokensLineCache[D];if(j===null&&V.value.trim()!=""&&(j=V),V.type=="url.select_keyword"&&V.value.toUpperCase()!="SELECT"){L=!1;break}}switch(L&&j.value!=","&&j.value.toUpperCase()!="SELECT"&&(L=!1),g.otherTokenValues[M-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":L=!0}if(L&&!g.token.value.includes("=")){const D=Pa(T);p.autoCompleteSet=Wl(D,"field");return}}}else w=Vl(p.method);$i(p.urlTokenPath,p,e,!0,w),p.autoCompleteSet=Wl(p.autoCompleteSet,"endpoint")}function b(p,m){const g=Hl(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,!g.urlTokenPath||($i(g.urlTokenPath,p,e,!1,Vl(p.method)),!p.endpoint)||!g.urlParamsTokenPath)return p;let w=[];const E=g.urlParamsTokenPath.pop();return E&&(w=Object.keys(E),p.otherTokenValues=E[w[0]]),$i(w,p,e,!0,p.endpoint.paramsAutocomplete.getTopLevelComponents(p.method)),p}function S(p,m){const g=Hl(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,p.requestStartRow=g.requestStartRow,!g.urlTokenPath||($i(g.urlTokenPath,p,e,!1,Vl(p.method)),p.bodyTokenPath=g.bodyTokenPath,!g.bodyTokenPath))return p;p.endpointComponentResolver=$B,p.globalComponentResolver=TB;let w;return p.endpoint?w=p.endpoint.bodyAutocompleteRootComponents:w=EB(),$i(g.bodyTokenPath,p,e,!0,w),p}const O=we.debounce(function(m){let g=null;try{g=e.getTokenAt(m)}catch{}if(!g){if(m.lineNumber===1){mr=null;return}g={position:{column:0,lineNumber:0},value:"",type:""}}if(g.position.lineNumber=m.lineNumber,t.isEmptyToken(g)){const w=e.getTokenAt({...m,column:m.column+1});t.isEmptyToken(w)?(g.position.column=m.column,mr=g):(w.position.lineNumber=m.lineNumber,mr=w);return}if(!mr){mr=g;return}if(mr.position.column!==g.position.column||mr.position.lineNumber!==g.position.lineNumber||mr.value===g.value){mr=g;return}switch(g.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}mr=g,e.execCommand("startAutocomplete")},100);function h(){const p=e.getCurrentPosition();p&&!e.isCompleterActive()&&O(p)}function y(p,m,g){try{const w=r(e,p);if(!w)g(null,[]);else{const E=we.map(w.autoCompleteSet.filter(C=>!!C&&C.name!=null),function(C){typeof C!="object"?C={name:C}:C=we.clone(C);const x={value:C.name,meta:"API",score:0,context:w};return w.method==="LOAD"&&w.autoCompleteType==="path"&&(x.completer={insertMatch(){n(C),e.execCommand("exec_request")}}),w.autoCompleteType==="body"&&(x.completer={insertMatch(){return n(C)}}),we.defaults(C,x)});E.sort(function(C,x){return C.score>x.score?-1:C.score<x.score?1:C.name<x.name?-1:C.name===x.name?0:1}),g(null,we.map(E,function(C,x){return C.insertValue=C.insertValue||C.value,C.value=""+C.value,C.score=-x,C}))}}catch(w){console.error(w),g(w,null)}}return e.on("changeSelection",h),{getCompletions:y}}async function NB(){return(await Promise.resolve().then(()=>V8)).someFunction()}const kB={id:"sense_editor/mode/worker",src:NB},{TextHighlightRules:LB}=tt.acequire("ace/mode/text_highlight_rules"),FB=tt.acequire("ace/lib/oop"),fp=function(){const o=this.createKeywordMapper({keyword:["describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is","avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score","true|false","null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape"].join("|")},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"constant",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"entity.name.function",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:o,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"⇐|<⇒|\\*|\\.|\\:\\:|\\+|\\-|\\/|\\/\\/|%|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};FB.inherits(fp,LB);const DB=tt.acequire("ace/lib/oop"),{TextHighlightRules:BB}=tt.acequire("ace/mode/text_highlight_rules"),zB="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function pp(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:zB},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}DB.inherits(pp,BB);const{JsonHighlightRules:qB}=tt.acequire("ace/mode/json_highlight_rules"),VB=tt.acequire("ace/lib/oop"),Vw=function(e){e=e||"json";const t={},n=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("(?:[^"]*_)?script"|"inline"|"source")(\\s*?)(:)(\\s*?)(""")',next:"script-start",merge:!1,push:!0},{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"punctuation.start_triple_quote",regex:'"""',next:"string_literal",merge:!1,push:!0},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"invalid.illegal",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"invalid.illegal",regex:"\\/\\/.*$"},{token:"paren.lparen",merge:!1,regex:"{",next:e,push:!0},{token:"paren.lparen",merge:!1,regex:"[[(]"},{token:"paren.rparen",merge:!1,regex:"[\\])]"},{token:"paren.rparen",regex:"}",merge:!1,next:"pop"},{token:"punctuation.comma",regex:","},{token:"punctuation.colon",regex:":"},{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}];return t[e]=n,t[e+"-sql"]=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("query")(\\s*?)(:)(\\s*?)(""")',next:"sql-start",merge:!1,push:!0}].concat(n),t.string_literal=[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"},{token:"multi_string",regex:"."}],t};function Hw(){const e=Vw("start");this.$rules={...e},this.embedRules(pp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(fp,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}VB.inherits(Hw,qB);function Ww(e,t){e.$rules=we.defaultsDeep(e.$rules,Vw(t)),e.embedRules(pp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(fp,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}async function HB(){return(await Promise.resolve().then(()=>v5)).someFunction()}const WB={id:"ace/mode/json_worker",src:HB},{WorkerClient:UB}=tt.acequire("ace/worker/worker_client"),GB=tt.acequire("ace/lib/oop"),{Mode:KB}=tt.acequire("ace/mode/json"),{Tokenizer:XB}=tt.acequire("ace/tokenizer"),{MatchingBraceOutdent:YB}=tt.acequire("ace/mode/matching_brace_outdent"),{CstyleBehaviour:JB}=tt.acequire("ace/mode/behaviour/cstyle"),{FoldMode:QB}=tt.acequire("ace/mode/folding/cstyle"),Uw=function(){const t=new Hw;t.normalizeRules(),this.$tokenizer=new XB(t.getRules()),this.$outdent=new YB,this.$behaviour=new JB,this.foldingRules=new QB};GB.inherits(Uw,KB),Uw.prototype.createWorker=function(e){const t=new UB(["ace"],WB,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(n){e.setAnnotations(n.data)}),t.on("terminate",function(){e.clearAnnotations()}),t};function Xt(e,t,n,r){return typeof t=="object"&&(t=t.source),[{token:e.concat(["whitespace"]),regex:t+"(\\s*)$",next:n},{token:e,regex:t,next:r}]}function Ti(){return[].concat.apply([],arguments)}const ZB=tt.acequire("ace/lib/oop"),{TextHighlightRules:ez}=tt.acequire("ace/mode/text_highlight_rules");function hp(){const e="describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is",t="true|false",n="avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score",r="null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape";this.createKeywordMapper({keyword:[e,n,t,r].join("|")},"identifier",!0);const o=[e,n,t,r].join("|").split("|");let i=Xt(["url.part"],/([^?\/,\s]+)/,"start");i=i.map(a=>(a.onMatch=(l,s,c)=>o.includes(l==null?void 0:l.toLowerCase())?"url.select_keyword":a.token,a)),this.$rules={"start-sql":[{token:"whitespace",regex:"\\s+"},{token:"paren.lparen",regex:"{",next:"json-sql",push:!0},{regex:"",next:"start"}],start:Ti([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],Xt(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:Ti(Xt(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),Xt(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),Xt(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),Xt(["whitespace"],/(\s+)/,"start","url")),url:Ti(Xt(["url.part"],/(_sql)/,"start-sql","url-sql"),i,Xt(["url.comma"],/(,)/,"start"),Xt(["url.slash"],/(\/)/,"start"),Xt(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:Ti(Xt(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),Xt(["url.param"],/([^&=]+)/,"start"),Xt(["url.amp"],/(&)/,"start")),"url-sql":Ti(Xt(["url.part"],/([^?\/,\s]+)/,"start-sql"),Xt(["url.comma"],/(,)/,"start-sql"),Xt(["url.slash"],/(\/)/,"start-sql"),Xt(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":Ti(Xt(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),Xt(["url.param"],/([^&=]+)/,"start-sql"),Xt(["url.amp"],/(&)/,"start-sql"))},Ww(this),this.constructor===hp&&this.normalizeRules()}ZB.inherits(hp,ez);const tz=tt.acequire("ace/lib/oop"),{TextHighlightRules:nz}=tt.acequire("ace/mode/text_highlight_rules"),rz="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function Gw(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:rz},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}tz.inherits(Gw,nz);const oz=tt.acequire("ace/lib/oop"),iz=tt.acequire("ace/mode/text").Mode;tt.acequire("ace/tokenizer");function mp(){}oz.inherits(mp,iz),(function(){this.HighlightRules=Gw,this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return t.match(/^.*[\{\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}).call(mp.prototype);const az=tt.acequire("ace/lib/oop"),sz=tt.acequire("ace/mode/text").Mode,lz=tt.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,cz=tt.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,uz=tt.acequire("ace/mode/folding/cstyle").FoldMode,dz=tt.acequire("ace/worker/worker_client").WorkerClient,fz=tt.acequire("ace/tokenizer").Tokenizer;function gp(){this.$tokenizer=new fz(new hp().getRules()),this.$outdent=new lz,this.$behaviour=new cz,this.foldingRules=new uz,this.createModeDelegates({"script-":mp})}az.inherits(gp,sz),(function(){this.getCompletions=function(){return[]},this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return e!=="string_literal"&&t.match(/^.*[\{\(\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){const t=new dz(["ace","sense_editor"],kB,"SenseWorker");return t.attachToDocument(e.getDocument()),t.on("error",function(n){e.setAnnotations([n.data])}),t.on("ok",function(n){e.setAnnotations(n.data)}),t}}).call(gp.prototype);var za={exports:{}};(function(){tt.define("ace/autocomplete/text_completer",["require","exports","module"],function(n,r){r.getCompletions=function(o,i,a,l,s){s(null,[])}}),tt.acequire("ace/ext/language_tools").setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o,i)=>{const{coreEditor:a}=n,l={lineNumber:r.row+1,column:r.column+1};a.autocompleter(l,o,i)}}])})();const pz=tt.acequire("ace/range").Range,Ul=({start:e,end:t})=>new pz(e.lineNumber-1,e.column-1,t.lineNumber-1,t.column-1);class hz{constructor(t,n){this.editor=t,this.setActionsBar=(i,a="top")=>{i===null?this.$actions.css("visibility","hidden"):a==="top"?this.$actions.css({bottom:"auto",top:i,visibility:"visible"}):this.$actions.css({top:"auto",bottom:i,visibility:"visible"})},this.hideActionsBar=()=>{this.setActionsBar(null)},this.$actions=Tt(n),this.editor.setShowPrintMargin(!1),this.parser=new zw(this),this.autocompleter=AB({coreEditor:this}).getCompletions;const r=this.editor.getSession();r.setMode(new gp);const o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=ob(this.editor),this._aceOnPaste=this.editor.onPaste,this.editor.onPaste=this.DO_NOT_USE_onPaste.bind(this),this.editor.setOptions({enableBasicAutocompletion:!0}),this.editor.$blockScrolling=1/0,this.hideActionsBar(),this.editor.focus(),t.coreEditor=this}setMaxTokenCount(t){var r;(r=this.editor.getSession().getMode().getTokenizer())==null||r.$setMaxTokenCount(t)}getParser(){return this.parser}getAutocompleter(){return this.autocompleter}waitForLatestTokens(){return new Promise(t=>{const n=this.editor.getSession(),r=25,o=()=>{n.bgTokenizer&&(n.bgTokenizer.running?setTimeout(o,r):t())};setTimeout(o,0)})}getLineState(t){return this.editor.getSession().getState(t-1)}getValueInRange(t){return this.editor.getSession().getTextRange(Ul(t))}getTokenProvider(){return new hN(this.editor.getSession())}getValue(){return this.editor.getValue()}async setValue(t,n){this.editor.getSession().setValue(t),n&&await this.forceRetokenize()}getLineValue(t){return this.editor.getSession().getLine(t-1)}getCurrentPosition(){const t=this.editor.getCursorPosition();return{lineNumber:t.row+1,column:t.column+1}}clearSelection(){this.editor.clearSelection()}getTokenAt(t){return this.getTokenProvider().getTokenAt(t)}insert(t,n){if(typeof t=="string"){this.editor.insert(t);return}this.editor.getSession().getDocument().insert({column:t.column-1,row:t.lineNumber-1},n||"")}moveCursorToPosition(t){this.editor.moveCursorToPosition({row:t.lineNumber-1,column:t.column-1})}replace(t,n){this.editor.getSession().replace(Ul(t),n)}getLines(t,n){return this.editor.getSession().getLines(t-1,n-1)}replaceRange(t,n){const r=this.editor.getCursorPosition();this.editor.getSession().replace(Ul(t),n);const o=Math.max(t.start.lineNumber-1+n.split(`
275
+ `).length-1,1);r.row=Math.min(r.row,o),this.editor.moveCursorToPosition(r),this.editor.clearSelection()}getSelectionRange(){const t=this.editor.getSelectionRange();return{start:{lineNumber:t.start.row+1,column:t.start.column+1},end:{lineNumber:t.end.row+1,column:t.end.column+1}}}getLineCount(){return this.editor.getSession().getLength()}addMarker(t){return this.editor.getSession().addMarker(Ul(t),"ace_snippet-marker","fullLine",!1)}removeMarker(t){this.editor.getSession().removeMarker(t)}getWrapLimit(){return this.editor.getSession().getWrapLimit()}on(t,n){t==="changeCursor"?this.editor.getSession().selection.on(t,n):t==="changeSelection"?this.editor.on(t,n):this.editor.getSession().on(t,n)}off(t,n){t==="changeSelection"&&this.editor.off(t,n)}isCompleterActive(){return!!(this.editor.completer&&this.editor.completer.activated)}forceRetokenize(){const t=this.editor.getSession();return console.log(333333,t,this.editor),new Promise(n=>{setTimeout(function(){let r;for(r=0;r<t.getLength();r++)console.log(4444444,r,t.getTokens),t.getTokens(r);n()})})}DO_NOT_USE_onPaste(t){if(t&&gN(t)){const n=vN(t);this.editor.insert(n);return}this._aceOnPaste.call(this.editor,t)}execCommand(t){this.editor.execCommand(t)}getContainer(){return this.editor.container}setStyles(t){this.editor.getSession().setUseWrapMode(t.wrapLines),this.editor.container.style.fontSize=t.fontSize}registerKeyboardShortcut(t){this.editor.commands.addCommand({exec:t.fn,name:t.name,bindKey:t.keys})}legacyUpdateUI(t){if(this.$actions&&t){const n=Tt(this.editor.container).offset().top,r=t.start.lineNumber,o=t.start.column,i=this.getLineValue(r),a=this.getWrapLimit()-5,l=i.length>a,s=n-(window.pageYOffset||0),c=d=>this.editor.renderer.textToScreenCoordinates(d-1,o).pageY-s,u=c(r);if(u>=0){const{bottom:d}=this.editor.container.getBoundingClientRect();if(u>d-s){this.setActionsBar(0,"bottom");return}let b=0;if(l){const S=Tt(this.editor.container.querySelector("textArea")),O=this.getLineValue(r).length<a;if(S&&O)b+=this.getLineValue(r).length*S.height();else{if(r>1){this.setActionsBar(c(r-1));return}this.setActionsBar(c(r+1));return}}this.setActionsBar(u+b);return}if(this.editor.renderer.textToScreenCoordinates(t.end.lineNumber,t.end.column).pageY-n>=0){this.setActionsBar(0);return}}}registerAutocompleter(t){langTools.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o)=>{const i={lineNumber:n.row+1,column:n.column+1};t(i,r,o)}}])}destroy(){this.editor.destroy()}}(za.exports==null?{}:za.exports).default||za.exports,(za.exports==null?{}:za.exports).getCompletions;const mz=tt.acequire("ace/lib/oop"),gz=tt.acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function vp(){this.$rules={},Ww(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===vp&&this.normalizeRules()}mz.inherits(vp,gz);const vz=tt.acequire("ace/lib/oop"),_z=tt.acequire("ace/mode/json").Mode,yz=tt.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,bz=tt.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,wz=tt.acequire("ace/mode/folding/cstyle").FoldMode;tt.acequire("ace/worker/worker_client");const xz=tt.acequire("ace/tokenizer").Tokenizer;function _p(){this.$tokenizer=new xz(new vp().getRules()),this.$outdent=new yz,this.$behaviour=new bz,this.foldingRules=new wz}vz.inherits(_p,_z),(function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}).call(_p.prototype);function Sz(e){const t=tt.acequire("ace/ace").edit(e),n=new _p;return t.$blockScrolling=1/0,t.resize=ob(t),t.update=(r,o,i)=>{typeof o=="function"&&(i=o,o=void 0);const a=t.getSession();a.setMode(r?o||n:"ace/mode/text"),a.setValue(r),typeof i=="function"&&setTimeout(i)},t.append=(r,o,i)=>{typeof o=="function"&&(i=o,o=!0),we.isUndefined(o)&&(o=!0);const a=t.getSession(),l=a.getLength();o&&t.moveCursorTo(Math.max(0,l-1),0),a.insert({row:l,column:0},`
276
276
  `+r),t.moveCursorTo(l+1,0),typeof i=="function"&&setTimeout(i)},function(o){o.setMode("ace/mode/text"),o.setFoldStyle("markbeginend"),o.setTabSize(2),o.setUseWrapMode(!0)}(t.getSession()),t.setShowPrintMargin(!1),t.setReadOnly(!0),t}const Cz=({value:e=[],onChange:t})=>{const[n,r]=A.useState(!1),[o,i]=A.useState(""),a=u=>{i(u.target.value)},l=()=>{r(!0)},s=A.useCallback(u=>{if(u.target.value.length==0)return Wy.warning(he.jsx(on.FormattedMessage,{id:"command.message.invalid.tag"}));t&&t([...e||[],u.target.value]),r(!1),i("")},[e,t]),c=A.useCallback(u=>{const f=[...e];f.splice(u,1),t&&t(f)},[e,t]);return he.jsxs("div",{children:[e.map((u,f)=>he.jsx(dl,{closable:!0,style:{padding:"0 5px",fontSize:14,margin:"5px 10px 5px 0"},onClose:()=>c(f),children:u},f)),n&&he.jsx(Co,{value:o,onChange:a,style:{width:100},onBlur:s,onPressEnter:s}),!n&&he.jsxs(dl,{onClick:l,style:{padding:"0 5px",fontSize:14},children:[he.jsx(_n.PlusOutlined,{})," ",he.jsx(on.FormattedMessage,{id:"command.btn.newtag"})]})]})},Ez=e=>{const[t]=Nn.useForm(),n=async()=>{try{const r=await t.validateFields();e.onConfirm(r)}catch(r){console.error(r)}};return he.jsx(Ln,{title:he.jsx(on.FormattedMessage,{id:"command.manage.save.title"}),open:!0,onCancel:e.onClose,onOk:n,zIndex:1003,cancelText:he.jsx(on.FormattedMessage,{id:"form.button.cancel"}),okText:he.jsx(on.FormattedMessage,{id:"form.button.save"}),children:he.jsxs(Nn,{layout:"vertical",children:[he.jsx(Nn.Item,{name:"title",label:he.jsx(on.FormattedMessage,{id:"command.table.field.name"}),rules:[{required:!0,message:"请输入标题"}],children:he.jsx(Co,{})}),he.jsx(Nn.Item,{name:"tag",label:he.jsx(on.FormattedMessage,{id:"command.table.field.tag"}),children:he.jsx(Cz,{})})]})})};class Oz extends A.Component{constructor(t){super(t),this.mouseEnter=()=>{this.state.isPopoverOpen||this.props.getCurl().then(n=>{this.setState({curlCode:n})})},this.onButtonClick=()=>{this.setState(n=>({isPopoverOpen:!n.isPopoverOpen}))},this.closePopover=()=>{this.setState({isPopoverOpen:!1})},this.openDocs=async()=>{this.closePopover();const n=await this.props.getDocumentation();n&&window.open(n,"_blank")},this.autoIndent=n=>{this.closePopover(),this.props.autoIndent(n)},this.saveAsCommonCommand=()=>{this.setState({isPopoverOpen:!1,modalVisible:!0})},this.handleClose=()=>{this.setState({modalVisible:!1})},this.handleConfirm=async n=>{var a,l;const r=await this.props.saveAsCommonCommand(),o={...n,requests:r},i=await((a=await cN(o))==null?void 0:a.json());i.error?Ta.error({message:((l=i.error)==null?void 0:l.reason)||i.error}):(this.handleClose(),Ta.success({message:he.jsx(on.FormattedMessage,{id:"app.message.save.success"})}),AN(i))},this.state={curlCode:"",isPopoverOpen:!1,modalVisible:!1}}async copyAsCurl(){try{await this.copyText(this.state.curlCode),Ta.open({message:"Request copied as cURL",placement:"bottomRight"})}catch(t){console.error(t),Ta.error({message:"Could not copy request as cURL",placement:"bottomRight"})}}async copyText(t){var n;if((n=window.navigator)!=null&&n.clipboard){await window.navigator.clipboard.writeText(t);return}throw new Error("Could not copy to clipboard!")}render(){var t,n;return he.jsxs("span",{onMouseEnter:this.mouseEnter,children:[he.jsx(pd,{id:"contextMenu",open:this.state.isPopoverOpen,placement:"bottomLeft",content:he.jsxs("div",{children:[(t=window.navigator)!=null&&t.clipboard?he.jsx("div",{children:he.jsx(dr,{type:"text",id:"ConCopyAsCurl",disabled:!((n=window.navigator)!=null&&n.clipboard),onClick:()=>{this.closePopover(),this.copyAsCurl()},children:he.jsx(on.FormattedMessage,{id:"console.menu.copy_as_curl"})},"Copy as cURL")}):null,he.jsx("div",{children:he.jsx(dr,{type:"text",onClick:this.autoIndent,children:he.jsx(on.FormattedMessage,{id:"console.menu.auto_indent"})},"Auto indent")}),he.jsx("div",{children:he.jsx(dr,{type:"text",onClick:this.saveAsCommonCommand,children:he.jsx(on.FormattedMessage,{id:"console.menu.save_as_command"})},"Save as common command")})]}),children:he.jsx("button",{className:"euiButtonIcon--primary",style:{color:"#0061a6",border:"none"},onClick:this.onButtonClick,children:he.jsx(_n.SettingOutlined,{})})}),this.state.modalVisible&&he.jsx(Ez,{onClose:this.handleClose,onConfirm:this.handleConfirm})]})}}function $z(e,t,n){const r=e.getLineValue(t.lineNumber),o={...Hl(e,{column:r.length+1,lineNumber:t.lineNumber},n,!0)},i=Vl(o.method);return $i(o.urlTokenPath,o,e,!0,i),o.endpoint}async function Tz(e,t){t.preventDefault(),await e.autoIndent(),e.getCoreEditor().getContainer().focus()}function Pz(e,t){return e.getRequestsInRange().then(n=>{if(!n||n.length===0)return null;const r=n[0].range.end;r.column=r.column-1;const o=$z(e.getCoreEditor(),r,e.parser);return o&&o.documentation&&o.documentation.indexOf("http")!==-1?o.documentation.replace("/master/",`/${t}/`).replace("/current/",`/${t}/`):null})}const Gl=(e,t)=>()=>{const n=A.useContext(e);if(!n)throw new Error(`${t} should be used inside of ${t}Provider!`);return n};var yp={};(function(e){var t=yt&&yt.__spreadArray||function(C,x,T){if(T||arguments.length===2)for(var M=0,L=x.length,j;M<L;M++)(j||!(M in x))&&(j||(j=Array.prototype.slice.call(x,0,M)),j[M]=x[M]);return C.concat(j||Array.prototype.slice.call(x))};Object.defineProperty(e,"__esModule",{value:!0}),e.dual=e.getEndomorphismMonoid=e.SK=e.hole=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.unsafeCoerce=e.apply=e.getRing=e.getSemiring=e.getMonoid=e.getSemigroup=e.getBooleanAlgebra=void 0,e.identity=s,e.constant=c,e.flip=u,e.flow=f,e.tuple=d,e.increment=b,e.decrement=S,e.absurd=O,e.tupled=h,e.untupled=y,e.pipe=p,e.not=g;var n=function(C){return function(){return{meet:function(x,T){return function(M){return C.meet(x(M),T(M))}},join:function(x,T){return function(M){return C.join(x(M),T(M))}},zero:function(){return C.zero},one:function(){return C.one},implies:function(x,T){return function(M){return C.implies(x(M),T(M))}},not:function(x){return function(T){return C.not(x(T))}}}}};e.getBooleanAlgebra=n;var r=function(C){return function(){return{concat:function(x,T){return function(M){return C.concat(x(M),T(M))}}}}};e.getSemigroup=r;var o=function(C){var x=(0,e.getSemigroup)(C);return function(){return{concat:x().concat,empty:function(){return C.empty}}}};e.getMonoid=o;var i=function(C){return{add:function(x,T){return function(M){return C.add(x(M),T(M))}},zero:function(){return C.zero},mul:function(x,T){return function(M){return C.mul(x(M),T(M))}},one:function(){return C.one}}};e.getSemiring=i;var a=function(C){var x=(0,e.getSemiring)(C);return{add:x.add,mul:x.mul,one:x.one,zero:x.zero,sub:function(T,M){return function(L){return C.sub(T(L),M(L))}}}};e.getRing=a;var l=function(C){return function(x){return x(C)}};e.apply=l;function s(C){return C}e.unsafeCoerce=s;function c(C){return function(){return C}}e.constTrue=c(!0),e.constFalse=c(!1),e.constNull=c(null),e.constUndefined=c(void 0),e.constVoid=e.constUndefined;function u(C){return function(){for(var x=[],T=0;T<arguments.length;T++)x[T]=arguments[T];return x.length>1?C(x[1],x[0]):function(M){return C(M)(x[0])}}}function f(C,x,T,M,L,j,D,V,Z){switch(arguments.length){case 1:return C;case 2:return function(){return x(C.apply(this,arguments))};case 3:return function(){return T(x(C.apply(this,arguments)))};case 4:return function(){return M(T(x(C.apply(this,arguments))))};case 5:return function(){return L(M(T(x(C.apply(this,arguments)))))};case 6:return function(){return j(L(M(T(x(C.apply(this,arguments))))))};case 7:return function(){return D(j(L(M(T(x(C.apply(this,arguments)))))))};case 8:return function(){return V(D(j(L(M(T(x(C.apply(this,arguments))))))))};case 9:return function(){return Z(V(D(j(L(M(T(x(C.apply(this,arguments)))))))))}}}function d(){for(var C=[],x=0;x<arguments.length;x++)C[x]=arguments[x];return C}function b(C){return C+1}function S(C){return C-1}function O(C){throw new Error("Called `absurd` function which should be uncallable")}function h(C){return function(x){return C.apply(void 0,x)}}function y(C){return function(){for(var x=[],T=0;T<arguments.length;T++)x[T]=arguments[T];return C(x)}}function p(C,x,T,M,L,j,D,V,Z){switch(arguments.length){case 1:return C;case 2:return x(C);case 3:return T(x(C));case 4:return M(T(x(C)));case 5:return L(M(T(x(C))));case 6:return j(L(M(T(x(C)))));case 7:return D(j(L(M(T(x(C))))));case 8:return V(D(j(L(M(T(x(C)))))));case 9:return Z(V(D(j(L(M(T(x(C))))))));default:{for(var J=arguments[0],I=1;I<arguments.length;I++)J=arguments[I](J);return J}}}e.hole=O;var m=function(C,x){return x};e.SK=m;function g(C){return function(x){return!C(x)}}var w=function(){return{concat:function(C,x){return f(C,x)},empty:s}};e.getEndomorphismMonoid=w;var E=function(C,x){var T=typeof C=="number"?function(M){return M.length>=C}:C;return function(){var M=Array.from(arguments);return T(arguments)?x.apply(this,M):function(L){return x.apply(void 0,t([L],M,!1))}}};e.dual=E})(yp);const bp={data:null,type:"unknown"},Kw=Ga.produce({requestInFlight:!1,lastResult:bp},yp.identity),Rz=(e,t)=>Ga.produce(e,n=>{if(t.type==="sendRequest"){n.requestInFlight=!0,n.lastResult=bp;return}if(t.type==="requestSuccess"){n.requestInFlight=!1,n.lastResult=t.payload;return}if(t.type==="requestFail"){n.requestInFlight=!1,n.lastResult={...bp,error:t.payload};return}}),Xw=A.createContext(Kw),Yw=A.createContext(()=>{});function jz({children:e}){const[t,n]=A.useReducer(Rz,Kw);return he.jsx(Xw.Provider,{value:t,children:he.jsx(Yw.Provider,{value:n,children:e})})}const Jw=Gl(Xw,"RequestReadContext"),Mz=Gl(Yw,"RequestActionContext"),Qw=A.createContext(null);function Iz({children:e,value:t}){return he.jsx(Qw.Provider,{value:t,children:e})}const wp=()=>{const e=A.useContext(Qw);if(e==null)throw new Error("useServicesContext must be used inside the ServicesContextProvider.");return e},Zw=Ga.produce({ready:!1,currentTextObject:null,sensorEditor:null},yp.identity),Az=(e,t)=>Ga.produce(e,n=>{if(t.type==="setInputEditor"){t.payload&&(n.ready=!0,n.sensorEditor=t.payload);return}if(t.type==="setCurrentTextObject"){n.currentTextObject=t.payload;return}return n}),ex=A.createContext(Zw),tx=A.createContext(()=>{});function Nz({children:e}){const[t,n]=A.useReducer(Az,Zw,r=>({...r}));return he.jsx(ex.Provider,{value:t,children:he.jsx(tx.Provider,{value:n,children:e})})}const nx=Gl(ex,"EditorReadContext"),kz=Gl(tx,"EditorActionContext");function Lz(e){const{requests:t}=e._source;return t.map(r=>{const{method:o,path:i,body:a}=r;return["LOAD","FROM","SELECT"].includes((o||"").toUpperCase())?a:`${o} ${i}
277
277
  ${a}`}).join(`
278
278
  `)}const rx=e=>{const t=Mz(),{clusterID:n}=wp(),{sensorEditor:r}=nx();return A.useCallback(async()=>{let o="";try{if(!r)return;const i=await r.getRequestsInRange();if(!i.length){console.info("No request selected. Select a request by placing the cursor inside it.");return}for(let l=0;l<i.length;l++){const{url:s,method:c,data:u}=i[l];switch(c==null?void 0:c.toUpperCase()){case"LOAD":o="LOAD";const f=u[0]?u[0].slice(4).trim():s,d=kN(f),b=r.getCoreEditor().getCurrentPosition().lineNumber,S=await r.getRequestRange(b),O=Lz(d);await r.getCoreEditor().replaceRange(S,O);continue;case"CONFIG":const h=s;let y=0;if(u&&u.length>0){const T=u[0].split(" ");if(T.length>=3&&(y=parseInt(T[2]),isNaN(y))){t({type:"requestSuccess",payload:{data:{success:!1,error:"wrong config value: "+T[2]}}});continue}}h=="MaxTokenCount"&&localStorage.setItem("editor:"+h,y+""),t({type:"requestSuccess",payload:{data:{success:!0}}});continue;case"FROM":i[l].url="_sql",i[l].method="POST",i[l].rawRequest=i[l].data[0];let p=i[l].data[0]||"";const m=p.search(/\s+(select)\s+/i);if(m==-1){const x=Error("invalid FROM request");throw x.name="FRONT_ERROR",x}const g=p.slice(0,m);p=p.slice(m);const w=p.search(/\s+(order|where|limit)\s+/i);w>-1?p=p.slice(0,w)+" "+g+p.slice(w):p=p+" "+g;let E={query:p.trim()};i[l].data[0]=JSON.stringify(E);break;case"SELECT":i[l].url="_sql",i[l].method="POST",i[l].rawRequest=i[l].data[0];let C={query:i[l].data[0]};i[l].data[0]=JSON.stringify(C);break}}t({type:"sendRequest",payload:void 0});const a=await e({requests:i,clusterID:n});t({type:"requestSuccess",payload:{data:a}})}catch(i){if(o==="LOAD")return;if(i){let a={data:[i]};i.name==="FRONT_ERROR"&&(a={data:[{response:{value:(i==null?void 0:i.message)||i,contentType:"plain/text"}}]}),t({type:"requestSuccess",payload:a})}else t({type:"requestFail",payload:void 0})}},[t,n,r])},Fz=()=>{const e=kz();return A.useCallback(t=>{e({type:"setInputEditor",payload:t})},[e])},Dz=500,Bz=()=>{const e=A.useRef(Promise.resolve()),{services:{objectStorageClient:t}}=wp(),{currentTextObject:n}=nx();return A.useCallback(we.throttle(r=>{const{current:o}=e;n&&o.finally(()=>t.text.update({...n,text:r,updatedAt:Date.now()}))},Dz,{trailing:!0}),[t,n])};function ox(e,t){e.setStyles?e.setStyles({wrapLines:t.wrapMode,fontSize:t.fontSize+"px"}):(e.getSession().setUseWrapMode(t.wrapMode),e.container.style.fontSize=t.fontSize+"px")}function xp(e){return[e.clientWidth,e.clientHeight]}class zz extends ef.EventEmitter{constructor(t,n={}){super(),this.destroyed=!1,this.expectedSize=null,this.el=t,this.observer=new Tp(()=>{if(this.expectedSize){const r=we.isEqual(xp(t),this.expectedSize);if(this.expectedSize=null,r)return}this.emit("resize")}),n.disabled||this.enable()}enable(){this.destroyed||(this.expectedSize=xp(this.el),this.observer.observe(this.el))}modifySizeWithoutTriggeringResize(t){try{t()}finally{this.el&&(this.expectedSize=xp(this.el))}}destroy(){this.destroyed||(this.destroyed=!0,this.observer.disconnect(),this.observer=null,this.expectedSize=null,this.el=null,this.removeAllListeners())}}function ix(e,...t){const n=new zz(e);return n.on("resize",()=>t.forEach(r=>{r.getCoreEditor?r.getCoreEditor().resize():r.resize(),r.updateActionsBar&&r.updateActionsBar()})),()=>n.destroy()}const qz={position:"absolute",top:"0",left:"0",bottom:"0",right:"0"},Vz=e=>{const t=Bz(),{saveCurrentTextObjectRef:n,sendRequestToES:r}=e,o=rx(r);return A.useEffect(()=>{n.current=t},[n,t]),he.jsx(Wr,{title:he.jsx(on.FormattedMessage,{id:"console.SendRequestButton.ToolTip"}),children:he.jsx("button",{"data-test-subj":"sendRequestButton","aria-label":"Click to send request",className:"conApp__editorActionButton conApp__editorActionButton--success",onClick:o,children:he.jsx(_n.PlayCircleOutlined,{})})})},Hz=`GET _search
@@ -280,11 +280,11 @@ ${a}`}).join(`
280
280
  "query": {
281
281
  "match_all": {}
282
282
  }
283
- }`,Wz=({selectedCluster:e,initialText:t,saveEditorContent:n,paneKey:r,sendRequestToES:o})=>{var y;const{id:i,endpoint:a}=e,l=A.useRef(null),s=A.useRef(null),c=A.useRef(null),u=Fz(),f=A.useRef(null),d=A.useRef(null),b=A.useRef(()=>{}),S=A.useRef(()=>{});b.current=rx(o);const{services:{settings:O}}=wp();A.useEffect(()=>{const p=tt.edit(l.current);d.current=p;const m=new hz(p,s.current);p.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:()=>{b.current(),p.execCommand("iSearch")}});const g=new uN(m);c.current=g,u(g),g.paneKey=r,g.update(t||Hz),ox(g.getCoreEditor(),{fontSize:12,wrapMode:!0,autocomplete:{fields:!1,indices:!1,templates:!1},polling:!1,tripleQuotes:!1});function w(){let x;g.getCoreEditor().on("change",()=>{x&&clearTimeout(x),x=window.setTimeout(E,500)})}function E(){try{const x=g.getCoreEditor().getValue();n(x)}catch(x){console.error(x)}}const C=ix(l.current,g);return w(),()=>{C(),c.current&&c.current.getCoreEditor().destroy()}},[t,r,n,u]),A.useEffect(()=>{i&&(cb(O,O.getAutocomplete(),i),d.current&&(d.current.clusterID=i)&&(d.current.clusterInfo=e))},[i]);const h=async()=>{const p=c.current;if(p==null){console.warn("editor is null");return}const m=await p.getRequestsInRange();return m==null?void 0:m.map(w=>({method:w.method,path:w.url,body:(w.data||[]).join(`
283
+ }`,Wz=({selectedCluster:e,initialText:t,saveEditorContent:n,paneKey:r,sendRequestToES:o})=>{var y;const{id:i,endpoint:a}=e,l=A.useRef(null),s=A.useRef(null),c=A.useRef(null),u=Fz(),f=A.useRef(null),d=A.useRef(null),b=A.useRef(()=>{}),S=A.useRef(()=>{});b.current=rx(o);const{services:{settings:O}}=wp();A.useEffect(()=>{console.log(55555,l.current,l.current,tt);const p=tt.edit(l.current);console.log(666666,p),d.current=p;const m=new hz(p,s.current);p.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:()=>{b.current(),p.execCommand("iSearch")}});const g=new uN(m);c.current=g,u(g),g.paneKey=r,g.update(t||Hz),ox(g.getCoreEditor(),{fontSize:12,wrapMode:!0,autocomplete:{fields:!1,indices:!1,templates:!1},polling:!1,tripleQuotes:!1});function w(){let x;g.getCoreEditor().on("change",()=>{x&&clearTimeout(x),x=window.setTimeout(E,500)})}function E(){try{const x=g.getCoreEditor().getValue();console.log(121212,x),n(x)}catch(x){console.error(x)}}const C=ix(l.current,g);return w(),()=>{C(),c.current&&c.current.getCoreEditor().destroy()}},[t,r,n,u]),A.useEffect(()=>{i&&(cb(O,O.getAutocomplete(),i),d.current&&(d.current.clusterID=i)&&(d.current.clusterInfo=e))},[i]);const h=async()=>{const p=c.current;if(p==null){console.warn("editor is null");return}const m=await p.getRequestsInRange();return m==null?void 0:m.map(w=>({method:w.method,path:w.url,body:(w.data||[]).join(`
284
284
  `)}))};return he.jsx("div",{style:{...qz,height:"100%"},"data-test-subj":"console-application",className:"conApp",children:he.jsxs("div",{className:"conApp__editor",children:[he.jsx("ul",{className:"conApp__autoComplete",id:"autocomplete"}),he.jsxs("div",{className:"conApp__editorActions",id:"ConAppEditorActions",ref:s,children:[he.jsx(Vz,{saveCurrentTextObjectRef:S,sendRequestToES:o}),he.jsx(Oz,{getCurl:()=>c.current.getRequestsAsCURL(a),getDocumentation:()=>Pz(c.current,""),autoIndent:p=>{Tz(c.current,p)},saveAsCommonCommand:h,ref:f})]}),he.jsx("div",{ref:l,id:`Editor_${(y=c.current)==null?void 0:y.paneKey}`,className:"conApp__editorContent","data-test-subj":"request-editor",onClick:()=>{var p,m;(p=f.current)==null||p.closePopover(),(m=d.current)==null||m.focus()}})]})})};ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"list.markup",regex:/^(?:-{3}|\.{3})\s*(?=#|$)/},{token:"list.markup",regex:/^\s*[\-?](?:$|\s)/},{token:"constant",regex:"!![\\w//]+"},{token:"constant.language",regex:"[&\\*][a-zA-Z0-9-_]+"},{token:["meta.tag","keyword"],regex:/^(\s*\w.*?)(:(?=\s|$))/},{token:["meta.tag","keyword"],regex:/(\w+?)(\s*:(?=\s|$))/},{token:"keyword.operator",regex:"<<\\w*:\\w*"},{token:"keyword.operator",regex:"-\\s*(?=[{])"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:/[|>][-+\d\s]*$/,onMatch:function(a,l,s,c){var u=/^\s*/.exec(c)[0];return s.length<1?s.push(this.next):s[0]="mlString",s.length<2?s.push(u.length):s[1]=u.length,this.token},next:"mlString"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"constant.numeric",regex:/(\b|[+\-\.])[\d_]+(?:(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)(?=[^\d-\w]|$)/},{token:"constant.numeric",regex:/[+\-]?\.inf\b|NaN\b|0x[\dA-Fa-f_]+|0b[10_]+/},{token:"constant.language.boolean",regex:"\\b(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:/[^\s,:\[\]\{\}]+/}],mlString:[{token:"indent",regex:/^\s*$/},{token:"indent",regex:/^\s*/,onMatch:function(a,l,s){var c=s[1];return c>=a.length?(this.next="start",s.splice(0)):this.next="mlString",this.token},next:"mlString"},{token:"string",regex:".+"}]},this.normalizeRules()};r.inherits(i,o),t.YamlHighlightRules=i}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var l=i.getLine(a),s=l.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var f=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),f)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){var r=e("../../lib/oop"),o=e("./fold_mode").FoldMode,i=e("../../range").Range,a=t.FoldMode=function(){};r.inherits(a,o),(function(){this.getFoldWidgetRange=function(l,s,c){var u=this.indentationBlock(l,c);if(u)return u;var f=/\S/,d=l.getLine(c),b=d.search(f);if(!(b==-1||d[b]!="#")){for(var S=d.length,O=l.getLength(),h=c,y=c;++c<O;){d=l.getLine(c);var p=d.search(f);if(p!=-1){if(d[p]!="#")break;y=c}}if(y>h){var m=l.getLine(y).length;return new i(h,S,y,m)}}},this.getFoldWidget=function(l,s,c){var u=l.getLine(c),f=u.search(/\S/),d=l.getLine(c+1),b=l.getLine(c-1),S=b.search(/\S/),O=d.search(/\S/);if(f==-1)return l.foldWidgets[c-1]=S!=-1&&S<O?"start":"","";if(S==-1){if(f==O&&u[f]=="#"&&d[f]=="#")return l.foldWidgets[c-1]="",l.foldWidgets[c+1]="","start"}else if(S==f&&u[f]=="#"&&b[f]=="#"&&l.getLine(c-2).search(/\S/)==-1)return l.foldWidgets[c-1]="start",l.foldWidgets[c+1]="","";return S!=-1&&S<f?l.foldWidgets[c-1]="start":l.foldWidgets[c-1]="",f<O?"start":""}}).call(a.prototype)}),ace.define("ace/mode/yaml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/yaml_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/coffee"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./yaml_highlight_rules").YamlHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("./folding/coffee").FoldMode,s=function(){this.HighlightRules=i,this.$outdent=new a,this.foldingRules=new l,this.$behaviour=this.$defaultBehaviour};r.inherits(s,o),(function(){this.lineCommentStart=["#","//"],this.getNextLineIndent=function(c,u,f){var d=this.$getIndent(u);if(c=="start"){var b=u.match(/^.*[\{\(\[]\s*$/);b&&(d+=f)}return d},this.checkOutdent=function(c,u,f){return this.$outdent.checkOutdent(u,f)},this.autoOutdent=function(c,u,f){this.$outdent.autoOutdent(u,f)},this.$id="ace/mode/yaml"}).call(s.prototype),t.Mode=s});const ax=e=>!!(e&&e.indexOf("application/json")>=0);function Uz(e){return e?ax(e)?"ace/mode/json":e.indexOf("application/yaml")>=0?"ace/mode/yaml":"ace/mode/text":"ace/mode/text"}function Gz({clusterID:e}){const t=A.useRef(null),n=A.useRef(null),r="ConAppOutputTextarea",{lastResult:{data:o,error:i}}=Jw();return A.useEffect(()=>{var a;(a=n.current)==null||a.setValue("")},[e]),A.useEffect(()=>{n.current=Sz(t.current);const a=t.current.querySelector("textarea");a.setAttribute("id",r),a.setAttribute("readonly","true"),ox(n.current,{fontSize:12,wrapMode:!0});const l=ix(t.current,n.current);return()=>{l(),n.current.destroy()}},[]),A.useEffect(()=>{var l;const a=n.current;if(o){if(!o.length){a.update(JSON.stringify(o,null,2),"ace/mode/json");return}a.update(o.map(s=>{const{value:c,contentType:u}=s.response;if(ax(u)){let f="",d=c;if(d=="")return"";try{let b="";if(d[0]=="#"){const S=d.indexOf(`
285
285
  `);f=d.slice(0,S),d=d.slice(S),b=f+`
286
286
  `+JSON.stringify(JSON.parse(d),null,2)}else b=JSON.stringify(JSON.parse(d),null,2);return b}catch(b){console.error(b)}}return c}).join(`
287
- `))}else if(i){const s=Uz((l=i.response)==null?void 0:l.contentType);if(s=="ace/mode/json"){a.update(JSON.stringify(JSON.parse(i.response.value),null,2),s);return}a.update(i.response.value,s)}else a.update("")},[o,i]),he.jsx("div",{ref:t,className:"conApp__outputContent","data-test-subj":"response-editor",children:he.jsx("div",{id:"ConAppOutput"})})}class Sp{constructor(){this.panels=[]}registerPanel(t){this.panels.push(t)}getPanels(){return this.panels}}const sx=A.createContext({registry:new Sp});function lx({children:e,registry:t}){return he.jsx(sx.Provider,{value:{registry:t},children:e})}const Kz=()=>{const e=A.useContext(sx);if(e===void 0)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e};function cx({children:e,className:t,initialWidth:n=100,style:r={}}){const[o,i]=A.useState(`${n}%`),{registry:a}=Kz(),l=A.useRef(null);return A.useEffect(()=>{a.registerPanel({width:n,setWidth(s){i(s+"%"),this.width=s},getWidth(){return l.current.getBoundingClientRect().width}})},[n,a]),he.jsx("div",{className:t,ref:l,style:{...r,width:o,display:"flex"},children:e})}function Xz(e){return he.jsx("button",{...e,children:he.jsx(_n.PauseOutlined,{})})}const ux={isDragging:!1,currentResizerPos:-1},dx=(e,t)=>e/t*100,Yz=({children:e,className:t,onPanelWidthChange:n,resizerClassName:r})=>{const o=A.Children.toArray(e),[i,a]=o,l=A.useRef(new Sp),s=A.useRef(null),[c,u]=A.useState(ux),f=()=>s.current.getBoundingClientRect().width,d=A.useCallback(O=>{u({...c,isDragging:!0,currentResizerPos:O.clientX})},[c]),b=A.useCallback(O=>{const{key:h}=O;if(h==="ArrowLeft"||h==="ArrowRight"){O.preventDefault();const{current:y}=l,[p,m]=y.getPanels(),g=p.width-(h==="ArrowLeft"?1:-1),w=m.width-(h==="ArrowRight"?1:-1);p.setWidth(g),m.setWidth(w),n&&n([g,w])}},[n]);A.useEffect(()=>{var O;((O=oe==null?void 0:oe.env)==null?void 0:O.NODE_ENV)!=="production"&&o.length>2&&console.warn("[Split Panels Container] Detected more than two children; ignoring additional children.")},[o.length]);const S=[i,he.jsx(Xz,{className:r,onKeyDown:b,onMouseDown:d},"resizer"),a];return he.jsx(lx,{registry:l.current,children:he.jsx("div",{className:t,ref:s,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:O=>{if(c.isDragging){const{clientX:h}=O,{current:y}=l,[p,m]=y.getPanels(),g=h-c.currentResizerPos,w=f(),E=dx(p.getWidth()+g,w),C=dx(m.getWidth()-g,w);p.setWidth(E),m.setWidth(C),n&&n([E,C]),u({...c,currentResizerPos:h})}},onMouseUp:()=>{u(ux)},children:S})})},Jz=100;class Qz{constructor(t){this.storage=t,this.changeEmitter=new dS.BehaviorSubject(this.getHistory()||[])}getHistoryKeys(){return this.storage.keys().filter(t=>t.indexOf("hist_elem")===0).sort().reverse()}getHistory(){return this.getHistoryKeys().map(t=>this.storage.get(t))}change(t){const n=this.changeEmitter.subscribe(t);return()=>n.unsubscribe()}addToHistory(t,n,r){const o=this.getHistoryKeys();o.splice(0,Jz),o.forEach(l=>{this.storage.delete(l)});const i=new Date().getTime(),a="hist_elem_"+i;this.storage.set(a,{time:i,endpoint:t,method:n,data:r}),this.changeEmitter.next(this.getHistory())}updateCurrentState(t){const n=new Date().getTime();this.storage.set("editor_state",{time:n,content:t})}getLegacySavedEditorState(){const t=this.storage.get("editor_state");if(!t)return;const{time:n,content:r}=t;return{time:n,content:r}}deleteLegacySavedEditorState(){this.storage.delete("editor_state")}clearHistory(){this.getHistoryKeys().forEach(t=>this.storage.delete(t))}}function Zz(e){return new Qz(e.storage)}class e4{constructor(t,n){this.engine=t,this.prefix=n}encode(t){return JSON.stringify(t)}decode(t){if(typeof t=="string")return JSON.parse(t)}encodeKey(t){return`${this.prefix}${t}`}decodeKey(t){if(we.startsWith(t,this.prefix))return`${t.slice(this.prefix.length)}`}set(t,n){return this.engine.setItem(this.encodeKey(t),this.encode(n)),n}has(t){return this.engine.getItem(this.encodeKey(t))!=null}get(t,n){return this.has(t)?this.decode(this.engine.getItem(this.encodeKey(t))):n}delete(t){return this.engine.removeItem(this.encodeKey(t))}keys(){return we.transform(we.keys(this.engine),(t,n)=>{const r=this.decodeKey(n);r!=null&&t.push(r)})}}function t4(e){return new e4(e.engine,e.prefix)}class n4{constructor(t){this.storage=t}getFontSize(){return this.storage.get("font_size",12)}setFontSize(t){return this.storage.set("font_size",t),!0}getWrapMode(){return this.storage.get("wrap_mode",!0)}setWrapMode(t){return this.storage.set("wrap_mode",t),!0}setTripleQuotes(t){return this.storage.set("triple_quotes",t),!0}getTripleQuotes(){return this.storage.get("triple_quotes",!0)}getAutocomplete(){return this.storage.get("autocomplete_settings",{fields:!0,indices:!0,templates:!0,commands:!0})}setAutocomplete(t){return this.storage.set("autocomplete_settings",t),!0}getPolling(){return this.storage.get("console_polling",!0)}setPolling(t){return this.storage.set("console_polling",t),!0}toJSON(){return{autocomplete:this.getAutocomplete(),wrapMode:this.getWrapMode(),tripleQuotes:this.getTripleQuotes(),fontSize:parseFloat(this.getFontSize()),polling:!!this.getPolling()}}updateSettings({fontSize:t,wrapMode:n,tripleQuotes:r,autocomplete:o,polling:i}){this.setFontSize(t),this.setWrapMode(n),this.setTripleQuotes(r),this.setAutocomplete(o),this.setPolling(i)}}function r4({storage:e}){return new n4(e)}const o4="text-object";class i4{constructor(t,n){this.client=t,this.prefix=`console_local_${n}`}async create(t){const n=hS.v4(),r={id:n,...t};return this.client.set(`${this.prefix}_${n}`,r),r}async update(t){this.client.set(`${this.prefix}_${t.id}`,t)}async findAll(){const t=this.client.keys().filter(r=>r.includes(this.prefix)),n=[];for(const r of t)n.push(this.client.get(r));return n}}const a4=e=>({text:new i4(e,o4)}),qa="#00bb1b",fx="#fcca00",px="#ff4d4f",s4="#bbbbbb",Cp="#d8d8d8",hx={green:qa,yellow:fx,red:px,available:qa,unavailable:Cp,online:qa,offline:Cp,active:fx,normal:qa,acknowledged:qa,error:px,gray:s4};function l4(e){return hx[e]}const c4=({status:e,size:t=14})=>{if(e=="unavailable"||!hx[e])return he.jsx("span",{children:he.jsx(_n.CloseCircleOutlined,{style:{fontSize:14,color:Cp}})});const n=l4(e);return he.jsx("div",{style:{background:n,height:t,width:t,borderRadius:t,display:"inline-block",verticalAlign:"text-bottom"}})},u4=e=>e<=199?"default":e<=299?"secondary":e<=399?"primary":e<=499?"warning":"danger",mx=({requestInProgress:e,requestResult:t,selectedCluster:n,left:r})=>{var a;let o=null;const i=he.jsxs("div",{className:"base-info",children:[he.jsxs("div",{className:"info-item health",children:[he.jsxs("span",{children:[" ",he.jsx(on.FormattedMessage,{id:"console.cluster.status"}),":"]}),he.jsx("i",{style:{position:"absolute",top:1,right:0},children:he.jsx(c4,{status:(a=n==null?void 0:n.labels)==null?void 0:a.health_status})})]}),he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(on.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),he.jsx(xo,{color:"default",children:n==null?void 0:n.host})]}),he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(on.FormattedMessage,{id:"console.cluster.version"}),":"]}),he.jsx(xo,{color:"default",children:n==null?void 0:n.version})]})]});if(e)o=he.jsx(xo,{color:"hollow",children:"Request in progress"});else if(t){const{endpoint:l,method:s,statusCode:c,statusText:u,timeElapsedMs:f}=t;o=he.jsx(he.Fragment,{children:he.jsxs("div",{className:"status_info",children:[he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(on.FormattedMessage,{id:"console.response.status"}),":"]}),he.jsx(Wr,{placement:"top",title:he.jsx("span",{children:`${s} ${l.startsWith("/")?l:"/"+l}`}),children:he.jsx("span",{children:he.jsxs(xo,{color:u4(c),children:[c," - ",u]})})})]}),he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(on.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),he.jsx(Wr,{placement:"top",title:he.jsx("span",{children:"Time Elapsed"}),children:he.jsx("span",{children:he.jsxs(xo,{color:"default",children:[f," ","ms"]})})})]})]})})}return he.jsx("div",{className:"request-status-bar",children:r?he.jsx("div",{className:"bar-item",children:i}):he.jsx("div",{className:"bar-item",children:o})})},gx=50,vx="0px",d4=({selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i})=>{var u,f,d,b,S,O,h,y,p,m,g;const{requestInFlight:a,lastResult:{data:l,error:s}}=Jw(),c=(l==null?void 0:l[l.length-1])??s;return he.jsx("div",{className:"Console",style:{height:"100%"},children:he.jsxs(Yz,{resizerClassName:"resizer",children:[he.jsxs(cx,{style:{height:"calc(100%)",position:"relative",minWidth:vx,paddingBottom:26},initialWidth:gx,children:[he.jsx(Wz,{selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i}),he.jsx("div",{style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:he.jsx(mx,{requestInProgress:a,selectedCluster:e,left:!0,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(u=c.response)==null?void 0:u.statusCode,statusText:(f=c.response)==null?void 0:f.statusText,timeElapsedMs:(d=c.response)==null?void 0:d.timeMs,requestHeader:(b=c.request)==null?void 0:b.header,responseHeader:(S=c.response)==null?void 0:S.header}:void 0})})]}),he.jsxs(cx,{style:{height:"calc(100%)",position:"relative",minWidth:vx,paddingBottom:26},initialWidth:gx,children:[he.jsx(xa,{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",items:[{key:"result",label:"Result",children:he.jsx("div",{style:{height:"100%"},children:he.jsx(Gz,{clusterID:e==null?void 0:e.id})})},{key:"headers",label:"Headers",children:he.jsx(xa,{animated:!1,items:[{key:"1",label:"Request",children:he.jsx(Yy,{code:(O=c==null?void 0:c.request)==null?void 0:O.header})},{key:"2",label:"Response",children:he.jsx(Yy,{code:(h=c==null?void 0:c.response)==null?void 0:h.header})}]})}]}),he.jsx("div",{style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:he.jsx(mx,{requestInProgress:a,selectedCluster:e,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(y=c.response)==null?void 0:y.statusCode,statusText:(p=c.response)==null?void 0:p.statusText,timeElapsedMs:(m=c.response)==null?void 0:m.timeMs,requestHeader:c.request.header,responseHeader:(g=c.response)==null?void 0:g.header}:void 0})})]})]})})},_x=e=>{var a;const t=A.useRef(new Sp),{storage:n,history:r,objectStorageClient:o,settings:i}=A.useMemo(()=>{const l=t4({engine:window.localStorage,prefix:"sense:"}),s=Zz({storage:l}),c=a4(l),u=r4({storage:l});return{storage:l,history:s,objectStorageClient:c,settings:u}},[]);return he.jsx(lx,{registry:t.current,children:he.jsx(jz,{children:he.jsx(Nz,{children:he.jsx(Iz,{value:{services:{history:r,storage:n,objectStorageClient:o,settings:i},clusterID:(a=e.selectedCluster)==null?void 0:a.id},children:he.jsx(d4,{...e})})})})})},f4=({id:e,index:t,moveTabNode:n,children:r})=>{const o=A.useRef(null),[,i]=Ql.useDrop({accept:"DND_NODE",hover:s=>{const c=s.index,u=t;c!==u&&(n(c,u),s.index=u)}}),[{isDragging:a},l]=Ql.useDrag({type:"DND_NODE",item:{id:e,index:t},collect:s=>({isDragging:s.isDragging()})});return l(i(o)),he.jsx("div",{ref:o,style:{opacity:a?.5:1},children:r})},p4=({id:e,index:t,moveTabNode:n,children:r})=>he.jsx(f4,{id:e,index:t,moveTabNode:n,children:r}),h4=({children:e,onTabNodeMoved:t,tabData:n,editorHeight:r,tabBarExtraContent:o,renderTabBarItemIcon:i,addTab:a,updateTableData:l,sendRequestToES:s,...c})=>{const[u,f]=A.useState(n),[d,b]=A.useState(n.activeKey),[S,O]=A.useState([]),h=A.useCallback(x=>{O(T=>T.map(M=>M.key===d?{...M,content:x}:M)),f(T=>{const M={...T};return M.panes=M.panes.map(L=>L.key===d?{...L,content:x}:L),M}),l(u)},[d]);A.useEffect(()=>{var T;const x=(T=n==null?void 0:n.panes)==null?void 0:T.map(M=>({label:M.title,children:he.jsx(_x,{height:r-35,selectedCluster:M.cluster,paneKey:M.key,saveEditorContent:h,initialText:M.content,isActive:M.key==d,sendRequestToES:s}),key:M.key,closable:M.closable,icon:i&&i(M)}));O(x)},[]);const[y,p]=A.useState(n.order||[]),m=(x,T)=>{const M=[...y];A.Children.forEach(e,D=>{M.indexOf(D.key)===-1&&M.push(D.key)});const L=M.indexOf(x),j=M.indexOf(T);M.splice(L,1),M.splice(j,0,x),p(M),typeof t=="function"&&t(M)},g=(x,T)=>he.jsx("div",{children:he.jsx(T,{...x,children:M=>he.jsx(p4,{id:M.key,index:M.key,moveTabNode:m,children:M},M.key)})}),w=x=>{b(x);const T={...u,activeKey:x};f(T),l(T)};A.useEffect(()=>{var M;if(!a)return;const x=[...S];x.unshift({label:a.title,children:he.jsx(_x,{height:r-35,selectedCluster:a.cluster,paneKey:a.key,saveEditorContent:h,initialText:a.content,isActive:a.key==d,sendRequestToES:s}),key:a.key,closable:a.closable,icon:i&&i(a)}),O(x),b(a.key);const T={...u};(M=T.panes)==null||M.unshift(a),f(T),l(T)},[a]);const E=x=>{var D;let T=d,M=-1;S==null||S.forEach((V,Z)=>{V.key===x&&(M=Z-1)});const L=S.filter(V=>V.key!==x);L.length&&T===x&&(M>=0?T=L[M].key:T=L[0].key),O(L),b(T);let j={...u};j.panes=(D=j.panes)==null?void 0:D.filter(V=>V.key!==x),f(j),l(j)},C=(x,T)=>{T==="add"||E(x)};return he.jsx(Ql.DndProvider,{backend:cS.HTML5Backend,children:he.jsx(xa,{...c,type:"editable-card",hideAdd:!0,renderTabBar:g,tabBarExtraContent:o,activeKey:d,items:S,onChange:w,onEdit:C})})},m4=()=>he.jsx("div",{className:"resize-bar",children:he.jsxs("div",{children:[he.jsx("div",{className:"dash"}),he.jsx("div",{className:"dash"})]})}),g4="data:image/svg+xml,%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2ZM20,20H4V10H20ZM20,8H4V4H20Z'/%3e%3c/svg%3e",v4="data:image/svg+xml,%3csvg%20width='512px'%20height='512px'%20viewBox='0%200%20512%20512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M352,153H40.247a24.028,24.028,0,0,0-24,24V458a24.028,24.028,0,0,0,24,24H352a24.028,24.028,0,0,0,24-24V177A24.028,24.028,0,0,0,352,153Zm-8,32v45.22H48.247V185ZM48.247,450V262.22H344V450Z'%20class='ci-primary'/%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M472,32H152a24.028,24.028,0,0,0-24,24v65h32V64H464V339.143H408v32h64a24.028,24.028,0,0,0,24-24V56A24.028,24.028,0,0,0,472,32Z'%20class='ci-primary'/%3e%3c/svg%3e",_4=e=>{const[t,n]=A.useState(e.data||[]);A.useEffect(()=>{o(t)},[t,e.panes]);const r=l=>{const{onItemClick:s}=e;s&&typeof s=="function"&&s(l)},o=(l={})=>{var s,c,u;((s=l.data)==null?void 0:s.length)>0&&((c=e.panes)==null?void 0:c.length)===0&&r((u=l.data[0])==null?void 0:u._source)},{children:i,DataSourceSelector:a}=e;return he.jsx("div",{children:a?he.jsx(a,{width:34,dropdownWidth:400,onChange:l=>r(l),getClusterList:o,children:i}):null})},y4=(e={})=>he.jsx("img",{height:"14px",width:"14px",...e,src:g4}),b4=(e={})=>he.jsx("img",{height:"14px",width:"14px",...e,src:v4});function w4(e){const t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:t}const x4=({minimize:e=!1,resizeable:t=!1,height:n="50vh",DataSourceSelector:r,tabData:o={activeKey:"cqhngq82sdb12fth1d3g:1721989243672",panes:[{key:"cqhngq82sdb12fth1d3g:1721989243672",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:`GET _search
287
+ `))}else if(i){const s=Uz((l=i.response)==null?void 0:l.contentType);if(s=="ace/mode/json"){a.update(JSON.stringify(JSON.parse(i.response.value),null,2),s);return}a.update(i.response.value,s)}else a.update("")},[o,i]),he.jsx("div",{ref:t,className:"conApp__outputContent","data-test-subj":"response-editor",children:he.jsx("div",{id:"ConAppOutput"})})}class Sp{constructor(){this.panels=[]}registerPanel(t){this.panels.push(t)}getPanels(){return this.panels}}const sx=A.createContext({registry:new Sp});function lx({children:e,registry:t}){return he.jsx(sx.Provider,{value:{registry:t},children:e})}const Kz=()=>{const e=A.useContext(sx);if(e===void 0)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e};function cx({children:e,className:t,initialWidth:n=100,style:r={}}){const[o,i]=A.useState(`${n}%`),{registry:a}=Kz(),l=A.useRef(null);return A.useEffect(()=>{a.registerPanel({width:n,setWidth(s){i(s+"%"),this.width=s},getWidth(){return l.current.getBoundingClientRect().width}})},[n,a]),he.jsx("div",{className:t,ref:l,style:{...r,width:o,display:"flex"},children:e})}function Xz(e){return he.jsx("button",{...e,children:he.jsx(_n.PauseOutlined,{})})}const ux={isDragging:!1,currentResizerPos:-1},dx=(e,t)=>e/t*100,Yz=({children:e,className:t,onPanelWidthChange:n,resizerClassName:r})=>{const o=A.Children.toArray(e),[i,a]=o,l=A.useRef(new Sp),s=A.useRef(null),[c,u]=A.useState(ux),f=()=>s.current.getBoundingClientRect().width,d=A.useCallback(O=>{u({...c,isDragging:!0,currentResizerPos:O.clientX})},[c]),b=A.useCallback(O=>{const{key:h}=O;if(h==="ArrowLeft"||h==="ArrowRight"){O.preventDefault();const{current:y}=l,[p,m]=y.getPanels(),g=p.width-(h==="ArrowLeft"?1:-1),w=m.width-(h==="ArrowRight"?1:-1);p.setWidth(g),m.setWidth(w),n&&n([g,w])}},[n]);A.useEffect(()=>{var O;((O=oe==null?void 0:oe.env)==null?void 0:O.NODE_ENV)!=="production"&&o.length>2&&console.warn("[Split Panels Container] Detected more than two children; ignoring additional children.")},[o.length]);const S=[i,he.jsx(Xz,{className:r,onKeyDown:b,onMouseDown:d},"resizer"),a];return he.jsx(lx,{registry:l.current,children:he.jsx("div",{className:t,ref:s,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:O=>{if(c.isDragging){const{clientX:h}=O,{current:y}=l,[p,m]=y.getPanels(),g=h-c.currentResizerPos,w=f(),E=dx(p.getWidth()+g,w),C=dx(m.getWidth()-g,w);p.setWidth(E),m.setWidth(C),n&&n([E,C]),u({...c,currentResizerPos:h})}},onMouseUp:()=>{u(ux)},children:S})})},Jz=100;class Qz{constructor(t){this.storage=t,this.changeEmitter=new dS.BehaviorSubject(this.getHistory()||[])}getHistoryKeys(){return this.storage.keys().filter(t=>t.indexOf("hist_elem")===0).sort().reverse()}getHistory(){return this.getHistoryKeys().map(t=>this.storage.get(t))}change(t){const n=this.changeEmitter.subscribe(t);return()=>n.unsubscribe()}addToHistory(t,n,r){const o=this.getHistoryKeys();o.splice(0,Jz),o.forEach(l=>{this.storage.delete(l)});const i=new Date().getTime(),a="hist_elem_"+i;this.storage.set(a,{time:i,endpoint:t,method:n,data:r}),this.changeEmitter.next(this.getHistory())}updateCurrentState(t){const n=new Date().getTime();this.storage.set("editor_state",{time:n,content:t})}getLegacySavedEditorState(){const t=this.storage.get("editor_state");if(!t)return;const{time:n,content:r}=t;return{time:n,content:r}}deleteLegacySavedEditorState(){this.storage.delete("editor_state")}clearHistory(){this.getHistoryKeys().forEach(t=>this.storage.delete(t))}}function Zz(e){return new Qz(e.storage)}class e4{constructor(t,n){this.engine=t,this.prefix=n}encode(t){return JSON.stringify(t)}decode(t){if(typeof t=="string")return JSON.parse(t)}encodeKey(t){return`${this.prefix}${t}`}decodeKey(t){if(we.startsWith(t,this.prefix))return`${t.slice(this.prefix.length)}`}set(t,n){return this.engine.setItem(this.encodeKey(t),this.encode(n)),n}has(t){return this.engine.getItem(this.encodeKey(t))!=null}get(t,n){return this.has(t)?this.decode(this.engine.getItem(this.encodeKey(t))):n}delete(t){return this.engine.removeItem(this.encodeKey(t))}keys(){return we.transform(we.keys(this.engine),(t,n)=>{const r=this.decodeKey(n);r!=null&&t.push(r)})}}function t4(e){return new e4(e.engine,e.prefix)}class n4{constructor(t){this.storage=t}getFontSize(){return this.storage.get("font_size",12)}setFontSize(t){return this.storage.set("font_size",t),!0}getWrapMode(){return this.storage.get("wrap_mode",!0)}setWrapMode(t){return this.storage.set("wrap_mode",t),!0}setTripleQuotes(t){return this.storage.set("triple_quotes",t),!0}getTripleQuotes(){return this.storage.get("triple_quotes",!0)}getAutocomplete(){return this.storage.get("autocomplete_settings",{fields:!0,indices:!0,templates:!0,commands:!0})}setAutocomplete(t){return this.storage.set("autocomplete_settings",t),!0}getPolling(){return this.storage.get("console_polling",!0)}setPolling(t){return this.storage.set("console_polling",t),!0}toJSON(){return{autocomplete:this.getAutocomplete(),wrapMode:this.getWrapMode(),tripleQuotes:this.getTripleQuotes(),fontSize:parseFloat(this.getFontSize()),polling:!!this.getPolling()}}updateSettings({fontSize:t,wrapMode:n,tripleQuotes:r,autocomplete:o,polling:i}){this.setFontSize(t),this.setWrapMode(n),this.setTripleQuotes(r),this.setAutocomplete(o),this.setPolling(i)}}function r4({storage:e}){return new n4(e)}const o4="text-object";class i4{constructor(t,n){this.client=t,this.prefix=`console_local_${n}`}async create(t){const n=hS.v4(),r={id:n,...t};return this.client.set(`${this.prefix}_${n}`,r),r}async update(t){this.client.set(`${this.prefix}_${t.id}`,t)}async findAll(){const t=this.client.keys().filter(r=>r.includes(this.prefix)),n=[];for(const r of t)n.push(this.client.get(r));return n}}const a4=e=>({text:new i4(e,o4)}),qa="#00bb1b",fx="#fcca00",px="#ff4d4f",s4="#bbbbbb",Cp="#d8d8d8",hx={green:qa,yellow:fx,red:px,available:qa,unavailable:Cp,online:qa,offline:Cp,active:fx,normal:qa,acknowledged:qa,error:px,gray:s4};function l4(e){return hx[e]}const c4=({status:e,size:t=14})=>{if(e=="unavailable"||!hx[e])return he.jsx("span",{children:he.jsx(_n.CloseCircleOutlined,{style:{fontSize:14,color:Cp}})});const n=l4(e);return he.jsx("div",{style:{background:n,height:t,width:t,borderRadius:t,display:"inline-block",verticalAlign:"text-bottom"}})},u4=e=>e<=199?"default":e<=299?"secondary":e<=399?"primary":e<=499?"warning":"danger",mx=({requestInProgress:e,requestResult:t,selectedCluster:n,left:r})=>{var a;let o=null;const i=he.jsxs("div",{className:"base-info",children:[he.jsxs("div",{className:"info-item health",children:[he.jsxs("span",{children:[" ",he.jsx(on.FormattedMessage,{id:"console.cluster.status"}),":"]}),he.jsx("i",{style:{position:"absolute",top:1,right:0},children:he.jsx(c4,{status:(a=n==null?void 0:n.labels)==null?void 0:a.health_status})})]}),he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(on.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),he.jsx(xo,{color:"default",children:n==null?void 0:n.host})]}),he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(on.FormattedMessage,{id:"console.cluster.version"}),":"]}),he.jsx(xo,{color:"default",children:n==null?void 0:n.version})]})]});if(e)o=he.jsx(xo,{color:"hollow",children:"Request in progress"});else if(t){const{endpoint:l,method:s,statusCode:c,statusText:u,timeElapsedMs:f}=t;o=he.jsx(he.Fragment,{children:he.jsxs("div",{className:"status_info",children:[he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(on.FormattedMessage,{id:"console.response.status"}),":"]}),he.jsx(Wr,{placement:"top",title:he.jsx("span",{children:`${s} ${l.startsWith("/")?l:"/"+l}`}),children:he.jsx("span",{children:he.jsxs(xo,{color:u4(c),children:[c," - ",u]})})})]}),he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(on.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),he.jsx(Wr,{placement:"top",title:he.jsx("span",{children:"Time Elapsed"}),children:he.jsx("span",{children:he.jsxs(xo,{color:"default",children:[f," ","ms"]})})})]})]})})}return he.jsx("div",{className:"request-status-bar",children:r?he.jsx("div",{className:"bar-item",children:i}):he.jsx("div",{className:"bar-item",children:o})})},gx=50,vx="0px",d4=({selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i})=>{var u,f,d,b,S,O,h,y,p,m,g;const{requestInFlight:a,lastResult:{data:l,error:s}}=Jw(),c=(l==null?void 0:l[l.length-1])??s;return he.jsx("div",{className:"Console",style:{height:"100%"},children:he.jsxs(Yz,{resizerClassName:"resizer",children:[he.jsxs(cx,{style:{height:"calc(100%)",position:"relative",minWidth:vx,paddingBottom:26},initialWidth:gx,children:[he.jsx(Wz,{selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i}),he.jsx("div",{style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:he.jsx(mx,{requestInProgress:a,selectedCluster:e,left:!0,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(u=c.response)==null?void 0:u.statusCode,statusText:(f=c.response)==null?void 0:f.statusText,timeElapsedMs:(d=c.response)==null?void 0:d.timeMs,requestHeader:(b=c.request)==null?void 0:b.header,responseHeader:(S=c.response)==null?void 0:S.header}:void 0})})]}),he.jsxs(cx,{style:{height:"calc(100%)",position:"relative",minWidth:vx,paddingBottom:26},initialWidth:gx,children:[he.jsx(xa,{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",items:[{key:"result",label:"Result",children:he.jsx("div",{style:{height:"100%"},children:he.jsx(Gz,{clusterID:e==null?void 0:e.id})})},{key:"headers",label:"Headers",children:he.jsx(xa,{animated:!1,items:[{key:"1",label:"Request",children:he.jsx(Yy,{code:(O=c==null?void 0:c.request)==null?void 0:O.header})},{key:"2",label:"Response",children:he.jsx(Yy,{code:(h=c==null?void 0:c.response)==null?void 0:h.header})}]})}]}),he.jsx("div",{style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:he.jsx(mx,{requestInProgress:a,selectedCluster:e,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(y=c.response)==null?void 0:y.statusCode,statusText:(p=c.response)==null?void 0:p.statusText,timeElapsedMs:(m=c.response)==null?void 0:m.timeMs,requestHeader:c.request.header,responseHeader:(g=c.response)==null?void 0:g.header}:void 0})})]})]})})},_x=e=>{var a;const t=A.useRef(new Sp),{storage:n,history:r,objectStorageClient:o,settings:i}=A.useMemo(()=>{const l=t4({engine:window.localStorage,prefix:"sense:"}),s=Zz({storage:l}),c=a4(l),u=r4({storage:l});return{storage:l,history:s,objectStorageClient:c,settings:u}},[]);return he.jsx(lx,{registry:t.current,children:he.jsx(jz,{children:he.jsx(Nz,{children:he.jsx(Iz,{value:{services:{history:r,storage:n,objectStorageClient:o,settings:i},clusterID:(a=e.selectedCluster)==null?void 0:a.id},children:he.jsx(d4,{...e})})})})})},f4=({id:e,index:t,moveTabNode:n,children:r})=>{const o=A.useRef(null),[,i]=Ql.useDrop({accept:"DND_NODE",hover:s=>{const c=s.index,u=t;c!==u&&(n(c,u),s.index=u)}}),[{isDragging:a},l]=Ql.useDrag({type:"DND_NODE",item:{id:e,index:t},collect:s=>({isDragging:s.isDragging()})});return l(i(o)),he.jsx("div",{ref:o,style:{opacity:a?.5:1},children:r})},p4=({id:e,index:t,moveTabNode:n,children:r})=>he.jsx(f4,{id:e,index:t,moveTabNode:n,children:r}),h4=({children:e,onTabNodeMoved:t,tabData:n,editorHeight:r,tabBarExtraContent:o,renderTabBarItemIcon:i,addTab:a,updateTabData:l,sendRequestToES:s,...c})=>{const[u,f]=A.useState(n),[d,b]=A.useState(n.activeKey),[S,O]=A.useState([]),h=A.useCallback(x=>{O(T=>T.map(M=>M.key===d?{...M,content:x}:M)),f(T=>{const M={...T};return M.panes=M.panes.map(L=>L.key===d?{...L,content:x}:L),M}),l(u)},[d]);A.useEffect(()=>{var T;const x=(T=n==null?void 0:n.panes)==null?void 0:T.map(M=>({label:M.title,children:he.jsx(_x,{height:r-35,selectedCluster:M.cluster,paneKey:M.key,saveEditorContent:h,initialText:M.content,isActive:M.key==d,sendRequestToES:s}),key:M.key,closable:M.closable,icon:i&&i(M)}));O(x)},[]);const[y,p]=A.useState(n.order||[]),m=(x,T)=>{const M=[...y];A.Children.forEach(e,D=>{M.indexOf(D.key)===-1&&M.push(D.key)});const L=M.indexOf(x),j=M.indexOf(T);M.splice(L,1),M.splice(j,0,x),p(M),typeof t=="function"&&t(M)},g=(x,T)=>he.jsx("div",{children:he.jsx(T,{...x,children:M=>he.jsx(p4,{id:M.key,index:M.key,moveTabNode:m,children:M},M.key)})}),w=x=>{b(x);const T={...u,activeKey:x};f(T),l(T)};A.useEffect(()=>{var M;if(!a)return;const x=[...S];x.unshift({label:a.title,children:he.jsx(_x,{height:r-35,selectedCluster:a.cluster,paneKey:a.key,saveEditorContent:h,initialText:a.content,isActive:a.key==d,sendRequestToES:s}),key:a.key,closable:a.closable,icon:i&&i(a)}),O(x),b(a.key);const T={...u};(M=T.panes)==null||M.unshift(a),f(T),l(T)},[a]);const E=x=>{var D;let T=d,M=-1;S==null||S.forEach((V,Z)=>{V.key===x&&(M=Z-1)});const L=S.filter(V=>V.key!==x);L.length&&T===x&&(M>=0?T=L[M].key:T=L[0].key),O(L),b(T);let j={...u};j.panes=(D=j.panes)==null?void 0:D.filter(V=>V.key!==x),f(j),l(j)},C=(x,T)=>{T==="add"||E(x)};return he.jsx(Ql.DndProvider,{backend:cS.HTML5Backend,children:he.jsx(xa,{...c,type:"editable-card",hideAdd:!0,renderTabBar:g,tabBarExtraContent:o,activeKey:d,items:S,onChange:w,onEdit:C})})},m4=()=>he.jsx("div",{className:"resize-bar",children:he.jsxs("div",{children:[he.jsx("div",{className:"dash"}),he.jsx("div",{className:"dash"})]})}),g4="data:image/svg+xml,%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2ZM20,20H4V10H20ZM20,8H4V4H20Z'/%3e%3c/svg%3e",v4="data:image/svg+xml,%3csvg%20width='512px'%20height='512px'%20viewBox='0%200%20512%20512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M352,153H40.247a24.028,24.028,0,0,0-24,24V458a24.028,24.028,0,0,0,24,24H352a24.028,24.028,0,0,0,24-24V177A24.028,24.028,0,0,0,352,153Zm-8,32v45.22H48.247V185ZM48.247,450V262.22H344V450Z'%20class='ci-primary'/%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M472,32H152a24.028,24.028,0,0,0-24,24v65h32V64H464V339.143H408v32h64a24.028,24.028,0,0,0,24-24V56A24.028,24.028,0,0,0,472,32Z'%20class='ci-primary'/%3e%3c/svg%3e",_4=e=>{const[t,n]=A.useState(e.data||[]);A.useEffect(()=>{o(t)},[t,e.panes]);const r=l=>{const{onItemClick:s}=e;s&&typeof s=="function"&&s(l)},o=(l={})=>{var s,c,u;((s=l.data)==null?void 0:s.length)>0&&((c=e.panes)==null?void 0:c.length)===0&&r((u=l.data[0])==null?void 0:u._source)},{children:i,DataSourceSelector:a}=e;return he.jsx("div",{children:a?he.jsx(a,{width:34,dropdownWidth:400,onChange:l=>r(l),getClusterList:o,children:i}):null})},y4=(e={})=>he.jsx("img",{height:"14px",width:"14px",...e,src:g4}),b4=(e={})=>he.jsx("img",{height:"14px",width:"14px",...e,src:v4});function w4(e){const t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:t}const x4=({minimize:e=!1,resizeable:t=!1,height:n="50vh",DataSourceSelector:r,tabData:o={activeKey:"cqhngq82sdb12fth1d3g:1721989243672",panes:[{key:"cqhngq82sdb12fth1d3g:1721989243672",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:`GET _search
288
288
  {
289
289
  "query": {
290
290
  "match_all": {}
@@ -300,7 +300,7 @@ GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
300
300
  }
301
301
 
302
302
  GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
303
- `}]},renderTabBarItemIcon:i,addTab:a,onMinimizeClick:l=()=>{console.warn("onMinimizeClick function is null")},newTabClick:s=()=>{console.warn("newTabClick function is null")},updateTableData:c=()=>{console.warn("updateTableData function is null")},sendRequestToES:u=()=>{console.warn("sendRequestToES function is null")}})=>{var E;const f=A.useRef(null),[d,b]=A.useState(!1),[S,O]=A.useState(w4(n));A.useEffect(()=>{const C=()=>{d&&O(f.current.offsetHeight)};return window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)}},[d]);const h=()=>{f.current!=null&&(d?(f.current.className=f.current.className.replace(" fullscreen",""),w()):f.current.className=f.current.className+" fullscreen"),O(f.current.clientHeight),b(!d)},y=A.useCallback(C=>{l(C),w()},[l]);LN((E=o.activeKey)==null?void 0:E.split(":")[0]);const p={left:he.jsxs(he.Fragment,{children:[he.jsx("div",{className:"tabbar-icon",onClick:y,children:he.jsx(_n.CodeOutlined,{})}),he.jsx(_4,{onItemClick:s,width:"300px",panes:o.panes,DataSourceSelector:r,children:he.jsx("div",{className:"tabbar-icon",children:he.jsx(_n.PlusOutlined,{})})})]}),right:he.jsxs(he.Fragment,{children:[e?he.jsx("div",{className:"tabbar-icon",onClick:y,children:he.jsx(_n.MinusOutlined,{})}):null,he.jsx("div",{className:"tabbar-icon",onClick:h,children:d?he.jsx(b4,{}):he.jsx(y4,{})})]})},m=A.useMemo(()=>["left","right"].reduce((C,x)=>({...C,[x]:p[x]}),{}),[]),g=()=>{document.body.style.overflow="hidden"},w=()=>{document.body.style.overflow=""};return he.jsx(lS.Resizable,{defaultSize:{height:S},minHeight:70,maxHeight:"100vh",handleComponent:{top:he.jsx(m4,{})},onResizeStop:(C,x,T,M)=>{O(S+M.height)},enable:{top:t,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},children:he.jsx("div",{style:{background:"#fff",height:"100%"},onMouseOver:g,onMouseOut:w,id:"console",ref:f,children:he.jsx(h4,{editorHeight:S,type:"editable-card",tabBarExtraContent:m,tabData:o,renderTabBarItemIcon:i,addTab:a,updateTableData:c,sendRequestToES:u})})})},yx={methods:[]},S4=Object.freeze(Object.defineProperty({__proto__:null,default:{documentation:yx},documentation:yx},Symbol.toStringTag,{value:"Module"})),bx={url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",type:"",_source:[],_source_excludes:[],_source_includes:[],pipeline:""},methods:["POST","PUT"],patterns:["_bulk","{indices}/_bulk","{indices}/{type}/_bulk"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html"},C4=Object.freeze(Object.defineProperty({__proto__:null,bulk:bx,default:{bulk:bx}},Symbol.toStringTag,{value:"Module"})),E4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.aliases":{url_params:{format:"",local:"__flag__",h:[],help:"__flag__",s:[],v:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cat/aliases","_cat/aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html"}}},Symbol.toStringTag,{value:"Module"})),O4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.allocation":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/allocation","_cat/allocation/{nodes}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html"}}},Symbol.toStringTag,{value:"Module"})),$4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.count":{url_params:{format:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/count","_cat/count/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html"}}},Symbol.toStringTag,{value:"Module"})),T4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.fielddata":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],h:[],help:"__flag__",s:[],v:"__flag__",fields:[]},methods:["GET"],patterns:["_cat/fielddata","_cat/fielddata/{fields}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html"}}},Symbol.toStringTag,{value:"Module"})),P4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.health":{url_params:{format:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],ts:"__flag__",v:"__flag__"},methods:["GET"],patterns:["_cat/health"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html"}}},Symbol.toStringTag,{value:"Module"})),R4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.help":{url_params:{help:"__flag__",s:[]},methods:["GET"],patterns:["_cat"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html"}}},Symbol.toStringTag,{value:"Module"})),j4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.indices":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],health:["green","yellow","red"],help:"__flag__",pri:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__",include_unloaded_segments:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cat/indices","_cat/indices/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html"}}},Symbol.toStringTag,{value:"Module"})),M4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.master":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/master"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html"}}},Symbol.toStringTag,{value:"Module"})),I4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.nodeattrs":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/nodeattrs"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html"}}},Symbol.toStringTag,{value:"Module"})),A4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.nodes":{url_params:{bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],format:"",full_id:"__flag__",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/nodes"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html"}}},Symbol.toStringTag,{value:"Module"})),N4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.pending_tasks":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/pending_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html"}}},Symbol.toStringTag,{value:"Module"})),k4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.plugins":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/plugins"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html"}}},Symbol.toStringTag,{value:"Module"})),L4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.recovery":{url_params:{format:"",active_only:"__flag__",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],detailed:"__flag__",h:[],help:"__flag__",index:[],s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/recovery","_cat/recovery/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html"}}},Symbol.toStringTag,{value:"Module"})),F4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.repositories":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/repositories"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html"}}},Symbol.toStringTag,{value:"Module"})),D4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.segments":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/segments","_cat/segments/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html"}}},Symbol.toStringTag,{value:"Module"})),B4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.shards":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/shards","_cat/shards/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html"}}},Symbol.toStringTag,{value:"Module"})),z4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.snapshots":{url_params:{format:"",ignore_unavailable:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/snapshots","_cat/snapshots/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),q4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.tasks":{url_params:{format:"",node_id:[],actions:[],detailed:"__flag__",parent_task:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),V4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.templates":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/templates","_cat/templates/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html"}}},Symbol.toStringTag,{value:"Module"})),H4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.thread_pool":{url_params:{format:"",size:["","k","m","g","t","p"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/thread_pool","_cat/thread_pool/{thread_pool_patterns}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html"}}},Symbol.toStringTag,{value:"Module"})),wx={methods:["DELETE"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api"},W4=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:wx,default:{clear_scroll:wx}},Symbol.toStringTag,{value:"Module"})),U4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.allocation_explain":{url_params:{include_yes_decisions:"__flag__",include_disk_info:"__flag__"},methods:["GET","POST"],patterns:["_cluster/allocation/explain"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html"}}},Symbol.toStringTag,{value:"Module"})),G4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.delete_component_template":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-templates.html"}}},Symbol.toStringTag,{value:"Module"})),K4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.get_component_template":{url_params:{flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_component_template","_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/getting-component-templates.html"}}},Symbol.toStringTag,{value:"Module"})),X4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.get_settings":{url_params:{flat_settings:"__flag__",master_timeout:"",timeout:"",include_defaults:"__flag__"},methods:["GET"],patterns:["_cluster/settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),Y4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.health":{url_params:{expand_wildcards:["open","closed","hidden","none","all"],level:["cluster","indices","shards"],local:"__flag__",master_timeout:"",timeout:"",wait_for_active_shards:"",wait_for_nodes:"",wait_for_events:["immediate","urgent","high","normal","low","languid"],wait_for_no_relocating_shards:"__flag__",wait_for_no_initializing_shards:"__flag__",wait_for_status:["green","yellow","red"]},methods:["GET"],patterns:["_cluster/health","_cluster/health/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html"}}},Symbol.toStringTag,{value:"Module"})),J4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.pending_tasks":{url_params:{local:"__flag__",master_timeout:""},methods:["GET"],patterns:["_cluster/pending_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html"}}},Symbol.toStringTag,{value:"Module"})),Q4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_component_template":{url_params:{create:"__flag__",master_timeout:""},methods:["PUT"],patterns:["_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html"}}},Symbol.toStringTag,{value:"Module"})),Z4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_settings":{url_params:{flat_settings:"__flag__",master_timeout:"",timeout:""},methods:["PUT"],patterns:["_cluster/settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),e8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.remote_info":{methods:["GET"],patterns:["_remote/info"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html"}}},Symbol.toStringTag,{value:"Module"})),t8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.reroute":{url_params:{dry_run:"__flag__",explain:"__flag__",retry_failed:"__flag__",metric:[],master_timeout:"",timeout:""},methods:["POST"],patterns:["_cluster/reroute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html"}}},Symbol.toStringTag,{value:"Module"})),n8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.state":{url_params:{local:"__flag__",master_timeout:"",flat_settings:"__flag__",wait_for_metadata_version:"",wait_for_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cluster/state","_cluster/state/{metrics}","_cluster/state/{metrics}/{indices}"],url_components:{metrics:["_all","blocks","master_node","metadata","nodes","routing_nodes","routing_table","version"],indices:null},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html"}}},Symbol.toStringTag,{value:"Module"})),r8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.stats":{url_params:{flat_settings:"__flag__",timeout:""},methods:["GET"],patterns:["_cluster/stats","_cluster/stats/nodes/{nodes}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html"}}},Symbol.toStringTag,{value:"Module"})),xx={url_params:{ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],min_score:"",preference:"random",routing:[],q:"",analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",lenient:"__flag__",terminate_after:""},methods:["POST","GET"],patterns:["_count","{indices}/_count"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html"},o8=Object.freeze(Object.defineProperty({__proto__:null,count:xx,default:{count:xx}},Symbol.toStringTag,{value:"Module"})),Sx={url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",version:"",version_type:["internal","external","external_gte"],pipeline:""},methods:["PUT","POST"],patterns:["{indices}/_create/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"},i8=Object.freeze(Object.defineProperty({__proto__:null,create:Sx,default:{create:Sx}},Symbol.toStringTag,{value:"Module"})),a8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete:{url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",if_seq_no:"",if_primary_term:"",version:"",version_type:["internal","external","external_gte","force"]},methods:["DELETE"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html"}}},Symbol.toStringTag,{value:"Module"})),Cx={url_params:{analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",from:"0",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",conflicts:["abort","proceed"],expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],search_timeout:"",size:"",max_docs:"all documents",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],version:"__flag__",request_cache:"__flag__",refresh:"__flag__",timeout:"",wait_for_active_shards:"",scroll_size:"",wait_for_completion:"__flag__",requests_per_second:"",slices:""},methods:["POST"],patterns:["{indices}/_delete_by_query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html"},s8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query:Cx},delete_by_query:Cx},Symbol.toStringTag,{value:"Module"})),Ex={url_params:{requests_per_second:""},methods:["POST"],patterns:["_delete_by_query/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html"},l8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query_rethrottle:Ex},delete_by_query_rethrottle:Ex},Symbol.toStringTag,{value:"Module"})),Ox={url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},c8=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_script:Ox},delete_script:Ox},Symbol.toStringTag,{value:"Module"})),$x={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["HEAD"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},u8=Object.freeze(Object.defineProperty({__proto__:null,default:{exists:$x},exists:$x},Symbol.toStringTag,{value:"Module"})),Tx={url_params:{preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["HEAD"],patterns:["{indices}/_source/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},d8=Object.freeze(Object.defineProperty({__proto__:null,default:{exists_source:Tx},exists_source:Tx},Symbol.toStringTag,{value:"Module"})),Px={url_params:{analyze_wildcard:"__flag__",analyzer:"",default_operator:["AND","OR"],df:"_all",stored_fields:[],lenient:"__flag__",preference:"random",q:"",routing:"",_source:[],_source_excludes:[],_source_includes:[]},methods:["GET","POST"],patterns:["{indices}/_explain/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html"},f8=Object.freeze(Object.defineProperty({__proto__:null,default:{explain:Px},explain:Px},Symbol.toStringTag,{value:"Module"})),Rx={url_params:{fields:[],ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],include_unmapped:"__flag__"},methods:["GET","POST"],patterns:["_field_caps","{indices}/_field_caps"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html"},p8=Object.freeze(Object.defineProperty({__proto__:null,default:{field_caps:Rx},field_caps:Rx},Symbol.toStringTag,{value:"Module"})),jx={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["GET"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},h8=Object.freeze(Object.defineProperty({__proto__:null,default:{get:jx},get:jx},Symbol.toStringTag,{value:"Module"})),Mx={url_params:{master_timeout:""},methods:["GET"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},m8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script:Mx},get_script:Mx},Symbol.toStringTag,{value:"Module"})),Ix={methods:["GET"],patterns:["_script_context"]},g8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_context:Ix},get_script_context:Ix},Symbol.toStringTag,{value:"Module"})),Ax={methods:["GET"],patterns:["_script_language"]},v8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_languages:Ax},get_script_languages:Ax},Symbol.toStringTag,{value:"Module"})),Nx={url_params:{preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["GET"],patterns:["{indices}/_source/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},_8=Object.freeze(Object.defineProperty({__proto__:null,default:{get_source:Nx},get_source:Nx},Symbol.toStringTag,{value:"Module"})),kx={url_params:{wait_for_active_shards:"",op_type:["index","create"],refresh:["true","false","wait_for"],routing:"",timeout:"",version:"",version_type:["internal","external","external_gte"],if_seq_no:"",if_primary_term:"",pipeline:""},methods:["PUT","POST"],patterns:["{indices}/_doc/{id}","{indices}/_doc"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"},y8=Object.freeze(Object.defineProperty({__proto__:null,default:{index:kx},index:kx},Symbol.toStringTag,{value:"Module"})),b8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.analyze":{url_params:{index:""},methods:["GET","POST"],patterns:["_analyze","{indices}/_analyze"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html"}}},Symbol.toStringTag,{value:"Module"})),w8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clear_cache":{url_params:{fielddata:"__flag__",fields:[],query:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],index:[],request:"__flag__"},methods:["POST"],patterns:["_cache/clear","{indices}/_cache/clear"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html"}}},Symbol.toStringTag,{value:"Module"})),x8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{url_params:{timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_clone/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html"}}},Symbol.toStringTag,{value:"Module"})),S8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.close":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],wait_for_active_shards:""},methods:["POST"],patterns:["{indices}/_close"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}},Symbol.toStringTag,{value:"Module"})),C8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.create":{url_params:{include_type_name:"__flag__",wait_for_active_shards:"",timeout:"",master_timeout:""},methods:["PUT"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html"}}},Symbol.toStringTag,{value:"Module"})),E8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["DELETE"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html"}}},Symbol.toStringTag,{value:"Module"})),O8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_alias":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["{indices}/_alias/{name}","{indices}/_aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),$8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),T8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists":{url_params:{local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",include_defaults:"__flag__"},methods:["HEAD"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html"}}},Symbol.toStringTag,{value:"Module"})),P8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_alias":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["HEAD"],patterns:["_alias/{name}","{indices}/_alias/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),R8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{url_params:{flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["HEAD"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),j8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_type":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["HEAD"],patterns:["{indices}/_mapping/{type}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html"}}},Symbol.toStringTag,{value:"Module"})),M8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.flush":{url_params:{force:"__flag__",wait_if_ongoing:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["POST","GET"],patterns:["_flush","{indices}/_flush"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html"}}},Symbol.toStringTag,{value:"Module"})),I8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.flush_synced":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","none","all"]},methods:["POST","GET"],patterns:["_flush/synced","{indices}/_flush/synced"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush-api.html"}}},Symbol.toStringTag,{value:"Module"})),A8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.forcemerge":{url_params:{flush:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],max_num_segments:"dynamic",only_expunge_deletes:"__flag__"},methods:["POST"],patterns:["_forcemerge","{indices}/_forcemerge"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html"}}},Symbol.toStringTag,{value:"Module"})),N8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get":{url_params:{include_type_name:"__flag__",local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",include_defaults:"__flag__",master_timeout:""},methods:["GET"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html"}}},Symbol.toStringTag,{value:"Module"})),k8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_alias":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["GET"],patterns:["_alias","_alias/{name}","{indices}/_alias/{name}","{indices}/_alias"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),L8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{url_params:{include_type_name:"__flag__",include_defaults:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["GET"],patterns:["_mapping/field/{fields}","{indices}/_mapping/field/{fields}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),F8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{url_params:{include_type_name:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_mapping","{indices}/_mapping"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),D8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_settings":{url_params:{master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",local:"__flag__",include_defaults:"__flag__"},methods:["GET"],patterns:["_settings","{indices}/_settings","{indices}/_settings/{name}","_settings/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html"}}},Symbol.toStringTag,{value:"Module"})),B8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{url_params:{include_type_name:"__flag__",flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_template","_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),z8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_upgrade":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_upgrade","{indices}/_upgrade"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}},Symbol.toStringTag,{value:"Module"})),q8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.open":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],wait_for_active_shards:""},methods:["POST"],patterns:["{indices}/_open"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}},Symbol.toStringTag,{value:"Module"})),V8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_alias":{url_params:{timeout:"",master_timeout:""},methods:["PUT","POST"],patterns:["{indices}/_alias/{name}","{indices}/_aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),H8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_mapping":{url_params:{include_type_name:"__flag__",timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["PUT","POST"],patterns:["{indices}/_mapping"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),W8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{url_params:{master_timeout:"",timeout:"",preserve_existing:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__"},methods:["PUT"],patterns:["_settings","{indices}/_settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),U8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_template":{url_params:{include_type_name:"__flag__",order:"",create:"__flag__",master_timeout:"",flat_settings:"__flag__"},methods:["PUT","POST"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),G8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.recovery":{url_params:{detailed:"__flag__",active_only:"__flag__"},methods:["GET"],patterns:["_recovery","{indices}/_recovery"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html"}}},Symbol.toStringTag,{value:"Module"})),K8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.refresh":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["POST","GET"],patterns:["_refresh","{indices}/_refresh"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html"}}},Symbol.toStringTag,{value:"Module"})),X8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.rollover":{url_params:{include_type_name:"__flag__",timeout:"",dry_run:"__flag__",master_timeout:"",wait_for_active_shards:""},methods:["POST"],patterns:["{alias}/_rollover","{alias}/_rollover/{new_index}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html"}}},Symbol.toStringTag,{value:"Module"})),Y8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.segments":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],verbose:"__flag__"},methods:["GET"],patterns:["_segments","{indices}/_segments"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html"}}},Symbol.toStringTag,{value:"Module"})),J8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.shard_stores":{url_params:{status:[],ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_shard_stores","{indices}/_shard_stores"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html"}}},Symbol.toStringTag,{value:"Module"})),Q8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.shrink":{url_params:{copy_settings:"__flag__",timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_shrink/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html"}}},Symbol.toStringTag,{value:"Module"})),Z8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.split":{url_params:{copy_settings:"__flag__",timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_split/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html"}}},Symbol.toStringTag,{value:"Module"})),e3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.stats":{url_params:{completion_fields:[],fielddata_fields:[],fields:[],groups:[],level:["cluster","indices","shards"],types:[],include_segment_file_sizes:"__flag__",include_unloaded_segments:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],forbid_closed_indices:"__flag__"},methods:["GET"],patterns:["_stats","_stats/{metrics}","{indices}/_stats","{indices}/_stats/{metrics}"],url_components:{metrics:["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"],indices:null},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html"}}},Symbol.toStringTag,{value:"Module"})),t3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.update_aliases":{url_params:{timeout:"",master_timeout:""},methods:["POST"],patterns:["_aliases"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),n3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.upgrade":{url_params:{allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],ignore_unavailable:"__flag__",wait_for_completion:"__flag__",only_ancient_segments:"__flag__"},methods:["POST"],patterns:["_upgrade","{indices}/_upgrade"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}},Symbol.toStringTag,{value:"Module"})),r3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{url_params:{explain:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],q:"",analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",lenient:"__flag__",rewrite:"__flag__",all_shards:"__flag__"},methods:["GET","POST"],patterns:["_validate/query","{indices}/_validate/query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html"}}},Symbol.toStringTag,{value:"Module"})),Lx={methods:["GET"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},o3=Object.freeze(Object.defineProperty({__proto__:null,default:{info:Lx},info:Lx},Symbol.toStringTag,{value:"Module"})),i3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.delete_pipeline":{url_params:{master_timeout:"",timeout:""},methods:["DELETE"],patterns:["_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),a3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.get_pipeline":{url_params:{master_timeout:""},methods:["GET"],patterns:["_ingest/pipeline","_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),s3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.processor_grok":{methods:["GET"],patterns:["_ingest/processor/grok"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get"}}},Symbol.toStringTag,{value:"Module"})),l3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.put_pipeline":{url_params:{master_timeout:"",timeout:""},methods:["PUT"],patterns:["_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),c3=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.simulate":{url_params:{verbose:"__flag__"},methods:["GET","POST"],patterns:["_ingest/pipeline/_simulate","_ingest/pipeline/{id}/_simulate"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),Fx={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[]},methods:["GET","POST"],patterns:["_mget","{indices}/_mget"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html"},u3=Object.freeze(Object.defineProperty({__proto__:null,default:{mget:Fx},mget:Fx},Symbol.toStringTag,{value:"Module"})),Dx={url_params:{search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],max_concurrent_searches:"",typed_keys:"__flag__",pre_filter_shard_size:"",max_concurrent_shard_requests:"",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_msearch","{indices}/_msearch"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html"},d3=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch:Dx},msearch:Dx},Symbol.toStringTag,{value:"Module"})),Bx={url_params:{search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],typed_keys:"__flag__",max_concurrent_searches:"",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_msearch/template","{indices}/_msearch/template"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html"},f3=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch_template:Bx},msearch_template:Bx},Symbol.toStringTag,{value:"Module"})),zx={url_params:{ids:[],term_statistics:"__flag__",field_statistics:"__flag__",fields:[],offsets:"__flag__",positions:"__flag__",payloads:"__flag__",preference:"random",routing:"",realtime:"__flag__",version:"",version_type:["internal","external","external_gte","force"]},methods:["GET","POST"],patterns:["_mtermvectors","{indices}/_mtermvectors"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html"},p3=Object.freeze(Object.defineProperty({__proto__:null,default:{mtermvectors:zx},mtermvectors:zx},Symbol.toStringTag,{value:"Module"})),h3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.hot_threads":{url_params:{interval:"",snapshots:"10",threads:"3",ignore_idle_threads:"__flag__",type:["cpu","wait","block"],timeout:""},methods:["GET"],patterns:["_nodes/hot_threads","_nodes/{nodes}/hot_threads"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html"}}},Symbol.toStringTag,{value:"Module"})),m3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.info":{url_params:{flat_settings:"__flag__",timeout:""},methods:["GET"],patterns:["_nodes","_nodes/{nodes}","_nodes/{metrics}","_nodes/{nodes}/{metrics}"],url_components:{nodes:null,metrics:["http","ingest","jvm","os","plugins","process","settings","thread_pool","transport"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html"}}},Symbol.toStringTag,{value:"Module"})),g3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.reload_secure_settings":{url_params:{timeout:""},methods:["POST"],patterns:["_nodes/reload_secure_settings","_nodes/{nodes}/reload_secure_settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/secure-settings.html#reloadable-secure-settings"}}},Symbol.toStringTag,{value:"Module"})),v3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.stats":{url_params:{completion_fields:[],fielddata_fields:[],fields:[],groups:"__flag__",level:["indices","node","shards"],types:[],timeout:"",include_segment_file_sizes:"__flag__"},methods:["GET"],patterns:["_nodes/stats","_nodes/{nodes}/stats","_nodes/stats/{metrics}","_nodes/{nodes}/stats/{metrics}","_nodes/stats/{metrics}/{index_metric}","_nodes/{nodes}/stats/{metrics}/{index_metric}"],url_components:{nodes:null,metrics:["_all","breaker","discovery","fs","http","indices","jvm","os","process","thread_pool","transport"],index_metric:["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html"}}},Symbol.toStringTag,{value:"Module"})),_3=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.usage":{url_params:{timeout:""},methods:["GET"],patterns:["_nodes/usage","_nodes/{nodes}/usage","_nodes/usage/{metrics}","_nodes/{nodes}/usage/{metrics}"],url_components:{nodes:null,metrics:["_all","rest_actions"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html"}}},Symbol.toStringTag,{value:"Module"})),qx={methods:["HEAD"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},y3=Object.freeze(Object.defineProperty({__proto__:null,default:{ping:qx},ping:qx},Symbol.toStringTag,{value:"Module"})),Vx={url_params:{timeout:"",master_timeout:"",context:""},methods:["PUT","POST"],patterns:["_scripts/{id}","_scripts/{id}/{context}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},b3=Object.freeze(Object.defineProperty({__proto__:null,default:{put_script:Vx},put_script:Vx},Symbol.toStringTag,{value:"Module"})),Hx={url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],search_type:["query_then_fetch","dfs_query_then_fetch"]},methods:["GET","POST"],patterns:["_rank_eval","{indices}/_rank_eval"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html"},w3=Object.freeze(Object.defineProperty({__proto__:null,default:{rank_eval:Hx},rank_eval:Hx},Symbol.toStringTag,{value:"Module"})),Wx={url_params:{refresh:"__flag__",timeout:"",wait_for_active_shards:"",wait_for_completion:"__flag__",requests_per_second:"",scroll:"",slices:"",max_docs:"all documents"},methods:["POST"],patterns:["_reindex"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"},x3=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex:Wx},reindex:Wx},Symbol.toStringTag,{value:"Module"})),Ux={url_params:{requests_per_second:""},methods:["POST"],patterns:["_reindex/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"},S3=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex_rethrottle:Ux},reindex_rethrottle:Ux},Symbol.toStringTag,{value:"Module"})),Gx={methods:["GET","POST"],patterns:["_render/template","_render/template/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#_validating_templates"},C3=Object.freeze(Object.defineProperty({__proto__:null,default:{render_search_template:Gx},render_search_template:Gx},Symbol.toStringTag,{value:"Module"})),Kx={methods:["GET","POST"],patterns:["_scripts/painless/_execute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html"},E3=Object.freeze(Object.defineProperty({__proto__:null,default:{scripts_painless_execute:Kx},scripts_painless_execute:Kx},Symbol.toStringTag,{value:"Module"})),Xx={url_params:{scroll:"",scroll_id:"",rest_total_hits_as_int:"__flag__"},methods:["GET","POST"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll"},O3=Object.freeze(Object.defineProperty({__proto__:null,default:{scroll:Xx},scroll:Xx},Symbol.toStringTag,{value:"Module"})),Yx={url_params:{analyzer:"",analyze_wildcard:"__flag__",ccs_minimize_roundtrips:"__flag__",default_operator:["AND","OR"],df:"",explain:"__flag__",stored_fields:[],docvalue_fields:[],from:"0",ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],size:"10",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],suggest_field:"",suggest_mode:["missing","popular","always"],suggest_size:"",suggest_text:"",timeout:"",track_scores:"__flag__",track_total_hits:"__flag__",allow_partial_search_results:"__flag__",typed_keys:"__flag__",version:"__flag__",seq_no_primary_term:"__flag__",request_cache:"__flag__",batched_reduce_size:"",max_concurrent_shard_requests:"",pre_filter_shard_size:"",rest_total_hits_as_int:"__flag__"},methods:["GET","POST"],patterns:["_search","{indices}/_search"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html"},$3=Object.freeze(Object.defineProperty({__proto__:null,default:{search:Yx},search:Yx},Symbol.toStringTag,{value:"Module"})),Jx={url_params:{preference:"random",routing:"",local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET","POST"],patterns:["_search_shards","{indices}/_search_shards"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html"},T3=Object.freeze(Object.defineProperty({__proto__:null,default:{search_shards:Jx},search_shards:Jx},Symbol.toStringTag,{value:"Module"})),Qx={url_params:{ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],preference:"random",routing:[],scroll:"",search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],explain:"__flag__",profile:"__flag__",typed_keys:"__flag__",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_search/template","{indices}/_search/template"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html"},P3=Object.freeze(Object.defineProperty({__proto__:null,default:{search_template:Qx},search_template:Qx},Symbol.toStringTag,{value:"Module"})),R3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.cleanup_repository":{url_params:{master_timeout:"",timeout:""},methods:["POST"],patterns:["_snapshot/{repository}/_cleanup"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),j3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create":{url_params:{master_timeout:"",wait_for_completion:"__flag__"},methods:["PUT","POST"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),M3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create_repository":{url_params:{master_timeout:"",timeout:"",verify:"__flag__"},methods:["PUT","POST"],patterns:["_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),I3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.delete":{url_params:{master_timeout:""},methods:["DELETE"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),A3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.delete_repository":{url_params:{master_timeout:"",timeout:""},methods:["DELETE"],patterns:["_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),N3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.get":{url_params:{master_timeout:"",ignore_unavailable:"__flag__",verbose:"__flag__"},methods:["GET"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),k3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.get_repository":{url_params:{master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_snapshot","_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),L3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.restore":{url_params:{master_timeout:"",wait_for_completion:"__flag__"},methods:["POST"],patterns:["_snapshot/{repository}/{snapshot}/_restore"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),F3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.status":{url_params:{master_timeout:"",ignore_unavailable:"__flag__"},methods:["GET"],patterns:["_snapshot/_status","_snapshot/{repository}/_status","_snapshot/{repository}/{snapshot}/_status"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),D3=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.verify_repository":{url_params:{master_timeout:"",timeout:""},methods:["POST"],patterns:["_snapshot/{repository}/_verify"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),B3=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.cancel":{url_params:{nodes:[],actions:[],parent_task_id:""},methods:["POST"],patterns:["_tasks/_cancel","_tasks/{task_id}/_cancel"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),z3=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.get":{url_params:{wait_for_completion:"__flag__",timeout:""},methods:["GET"],patterns:["_tasks/{task_id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),q3=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.list":{url_params:{nodes:[],actions:[],detailed:"__flag__",parent_task_id:"",wait_for_completion:"__flag__",group_by:["nodes","parents","none"],timeout:""},methods:["GET"],patterns:["_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),Zx={url_params:{term_statistics:"__flag__",field_statistics:"__flag__",fields:[],offsets:"__flag__",positions:"__flag__",payloads:"__flag__",preference:"random",routing:"",realtime:"__flag__",version:"",version_type:["internal","external","external_gte","force"]},methods:["GET","POST"],patterns:["{indices}/_termvectors/{id}","{indices}/_termvectors"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html"},V3=Object.freeze(Object.defineProperty({__proto__:null,default:{termvectors:Zx},termvectors:Zx},Symbol.toStringTag,{value:"Module"})),eS={url_params:{wait_for_active_shards:"",_source:[],_source_excludes:[],_source_includes:[],lang:"painless",refresh:["true","false","wait_for"],retry_on_conflict:"0",routing:"",timeout:"",if_seq_no:"",if_primary_term:""},methods:["POST"],patterns:["{indices}/_update/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html"},H3=Object.freeze(Object.defineProperty({__proto__:null,default:{update:eS},update:eS},Symbol.toStringTag,{value:"Module"})),tS={url_params:{analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",from:"0",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",conflicts:["abort","proceed"],expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",pipeline:"none",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],search_timeout:"",size:"",max_docs:"all documents",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],version:"__flag__",version_type:"__flag__",request_cache:"__flag__",refresh:"__flag__",timeout:"",wait_for_active_shards:"",scroll_size:"",wait_for_completion:"__flag__",requests_per_second:"",slices:""},methods:["POST"],patterns:["{indices}/_update_by_query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html"},W3=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:tS},update_by_query:tS},Symbol.toStringTag,{value:"Module"})),nS={url_params:{requests_per_second:""},methods:["POST"],patterns:["_update_by_query/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html"},U3=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query_rethrottle:nS},update_by_query_rethrottle:nS},Symbol.toStringTag,{value:"Module"})),rS={data_autocomplete_rules:{scroll_id:""}},G3=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:rS,default:{clear_scroll:rS}},Symbol.toStringTag,{value:"Module"})),K3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.health":{url_params:{expand_wildcards:["open","closed","hidden","none","all"],level:["cluster","indices","shards"],local:"__flag__",master_timeout:"",timeout:"",wait_for_active_shards:"",wait_for_nodes:"",wait_for_events:["immediate","urgent","high","normal","low","languid"],wait_for_no_relocating_shards:"__flag__",wait_for_no_initializing_shards:"__flag__",wait_for_status:["green","yellow","red"]}}}},Symbol.toStringTag,{value:"Module"})),X3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_component_template":{data_autocomplete_rules:{template:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}},mappings:{__scope_link:"put_mapping"}},_meta:{},version:0,allow_auto_create:!1}}}},Symbol.toStringTag,{value:"Module"})),Y3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_settings":{data_autocomplete_rules:{persistent:{cluster:{routing:{"allocation.enable":{__one_of:["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{__one_of:[!1,!0]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{_ip:"",_name:"",_host:"",_id:""},"allocation.include":{_ip:"",_name:"",_host:"",_id:""},"allocation.require":{_ip:"",_name:"",_host:"",_id:""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{values:[]}},"allocation.allow_rebalance":{__one_of:["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{__one_of:[!1,!0]}}},indices:{breaker:{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}},transient:{cluster:{routing:{"allocation.enable":{__one_of:["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{__one_of:[!1,!0]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{_ip:"",_name:"",_host:"",_id:""},"allocation.include":{_ip:"",_name:"",_host:"",_id:""},"allocation.require":{_ip:"",_name:"",_host:"",_id:""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{values:[]}},"allocation.allow_rebalance":{__one_of:["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{__one_of:[!1,!0]}}},indices:{breaker:{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}}}}}},Symbol.toStringTag,{value:"Module"})),J3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.reroute":{data_autocomplete_rules:{commands:[{move:{__template:{index:"",shard:0,from_node:"",to_node:""},index:"{index}",shard:0,from_node:"{node}",to_node:"{node}"},cancel:{__template:{index:"",shard:0,node:""},index:"{index}",shard:0,node:"{node}",allow_primary:{__one_of:[!0,!1]}},allocate:{__template:{index:"",shard:0,node:""},index:"{index}",shard:0,node:"{node}",allow_primary:{__one_of:[!0,!1]}}}],dry_run:{__one_of:[!0,!1]}}}}},Symbol.toStringTag,{value:"Module"})),oS={priority:10,data_autocomplete_rules:{query:{}}},Q3=Object.freeze(Object.defineProperty({__proto__:null,count:oS,default:{count:oS}},Symbol.toStringTag,{value:"Module"})),Z3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.analyze":{data_autocomplete_rules:{text:[],field:"{field}",analyzer:"",tokenizer:"",char_filter:[],filter:[],explain:{__one_of:[!1,!0]},attributes:[]}}}},Symbol.toStringTag,{value:"Module"})),e6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{data_autocomplete_rules:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),t6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.create":{data_autocomplete_rules:{mappings:{__scope_link:"put_mapping"},settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),n6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),r6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),o6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),i6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),a6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{patterns:["_template","_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),s6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_alias":{data_autocomplete_rules:{filter:{},routing:"1",search_routing:"1,2",index_routing:"1"}}}},Symbol.toStringTag,{value:"Module"})),l6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{data_autocomplete_rules:{__scope_link:"put_settings"}}}},Symbol.toStringTag,{value:"Module"})),c6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_template":{data_autocomplete_rules:{index_patterns:[],mappings:{__scope_link:"put_mapping"},settings:{__scope_link:"put_settings"},version:0,order:0,aliases:{__template:{NAME:{}}}},patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),u6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.rollover":{data_autocomplete_rules:{conditions:{max_age:"7d",max_docs:1e3,max_size:"5gb"},settings:{__scope_link:"put_settings"},mappings:{__scope_link:"put_mapping"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),d6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.update_aliases":{data_autocomplete_rules:{actions:{__template:[{add:{index:"test1",alias:"alias1"}}],__any_of:[{add:{index:"{index}",alias:"",filter:{},routing:"1",search_routing:"1,2",index_routing:"1"},remove:{index:"",alias:""}}]}}}}},Symbol.toStringTag,{value:"Module"})),f6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{data_autocomplete_rules:{query:{}}}}},Symbol.toStringTag,{value:"Module"})),p6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create":{data_autocomplete_rules:{indices:"*",ignore_unavailable:{__one_of:[!0,!1]},include_global_state:{__one_of:[!0,!1]},partial:{__one_of:[!0,!1]}}}}},Symbol.toStringTag,{value:"Module"})),h6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create_repository":{data_autocomplete_rules:{__template:{type:""},type:{__one_of:["fs","url","s3","hdfs","azure"]},settings:{__one_of:[{__condition:{lines_regex:`type["']\\s*:\\s*["']fs\``},__template:{location:"path"},location:"path",compress:{__one_of:[!0,!1]},concurrent_streams:5,chunk_size:"10m",max_restore_bytes_per_sec:"20mb",max_snapshot_bytes_per_sec:"20mb"},{__condition:{lines_regex:`type["']\\s*:\\s*["']url`},__template:{url:""},url:"",concurrent_streams:5},{__condition:{lines_regex:`type["']\\s*:\\s*["']s3`},__template:{bucket:""},bucket:"",region:"",base_path:"",concurrent_streams:5,chunk_size:"10m",compress:{__one_of:[!0,!1]}},{__condition:{lines_regex:`type["']\\s*:\\s*["']hdfs`},__template:{path:""},uri:"",path:"some/path",load_defaults:{__one_of:[!0,!1]},conf_location:"cfg.xml",concurrent_streams:5,compress:{__one_of:[!0,!1]},chunk_size:"10m"},{__condition:{lines_regex:`type["']\\s*:\\s*["']azure`},__template:{path:""},container:"",base_path:"",client:"default",location_mode:{__one_of:["primary_only","secondary_only"]},readonly:{__one_of:[!0,!1]},compress:{__one_of:[!0,!1]},chunk_size:"10m"}]}}}}},Symbol.toStringTag,{value:"Module"})),m6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.restore":{data_autocomplete_rules:{indices:"*",ignore_unavailable:{__one_of:[!0,!1]},include_global_state:!1,rename_pattern:"index_(.+)",rename_replacement:"restored_index_$1"}}}},Symbol.toStringTag,{value:"Module"})),iS={data_autocomplete_rules:{conflicts:"",query:{__scope_link:"GLOBAL.query"},script:{__template:{source:"",lang:"painless"},__scope_link:"GLOBAL.script"}}},g6=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:iS},update_by_query:iS},Symbol.toStringTag,{value:"Module"}));var We={exports:{}};(function(e){function t(n,r){for(let o=n,i="";o;){let a=r[o];if(typeof a=="string")return a+i;if(a)return a.location.replace(/\/*$/,"/")+(i||a.main||a.name);if(a===!1)return"";let l=o.lastIndexOf("/");if(l===-1)break;i=o.substr(l)+i,o=o.slice(0,l)}return n}if(!(e.window!==void 0&&e.document||e.acequire&&e.define)){e.console||(e.console=function(){let o=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:o})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(o,i,a,l,s){postMessage({type:"error",data:{message:o,data:s.data,file:i,line:a,col:l,stack:s.stack}})},e.normalizeModule=function(o,i){if(i.indexOf("!")!==-1){let l=i.split("!");return e.normalizeModule(o,l[0])+"!"+e.normalizeModule(o,l[1])}if(i.charAt(0)=="."){let l=o.split("/").slice(0,-1).join("/");for(i=(l?l+"/":"")+i;i.indexOf(".")!==-1&&a!=i;){var a=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},e.acequire=function(i,a){if(a||(a=i,i=null),!a.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");a=e.normalizeModule(i,a);let l=e.acequire.modules[a];if(l)return l.initialized||(l.initialized=!0,l.exports=l.factory().exports),l.exports;if(!e.acequire.tlns)return console.log("unable to load "+a);let s=t(a,e.acequire.tlns);return s.slice(-3)!=".js"&&(s+=".js"),e.acequire.id=a,e.acequire.modules[a]={},importScripts(s),e.acequire(i,a)},e.acequire.modules={},e.acequire.tlns={},e.define=function(o,i,a){if(arguments.length==2?(a=i,typeof o!="string"&&(i=o,o=e.acequire.id)):arguments.length==1&&(a=o,i=[],o=e.acequire.id),typeof a!="function")return e.acequire.modules[o]={exports:a,initialized:!0},void 0;i.length||(i=["require","exports","module"]);let l=function(s){return e.acequire(o,s)};e.acequire.modules[o]={exports:{},factory:function(){let s=this,c=a.apply(this,i.map(function(u){switch(u){case"require":return l;case"exports":return s.exports;case"module":return s;default:return l(u)}}));return c&&(s.exports=c),s}}},e.define.amd={},acequire.tlns={},e.initBaseUrls=function(o){for(let i in o)acequire.tlns[i]=o[i]},e.initSender=function(){let o=e.acequire("ace/lib/event_emitter").EventEmitter,i=e.acequire("ace/lib/oop"),a=function(){};return(function(){i.implement(this,o),this.callback=function(l,s){postMessage({type:"call",id:s,data:l})},this.emit=function(l,s){postMessage({type:"event",name:l,data:s})}}).call(a.prototype),new a};let n=e.main=null,r=e.sender=null;e.onmessage=function(o){let i=o.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),acequire("ace/lib/es5-shim"),r=e.sender=e.initSender();let a=acequire(i.module)[i.classname];n=e.main=new a(r)}}}})(void 0),ace.define("ace/lib/oop",["require","exports","module"],function(e,t){t.inherits=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,r){for(let o in r)n[o]=r[o];return n},t.implement=function(n,r){t.mixin(n,r)}}),ace.define("ace/range",["require","exports","module"],function(e,t){let n=function(o,i){return o.row-i.row||o.column-i.column},r=function(o,i,a,l){this.start={row:o,column:i},this.end={row:a,column:l}};(function(){this.isEqual=function(o){return this.start.row===o.start.row&&this.end.row===o.end.row&&this.start.column===o.start.column&&this.end.column===o.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(o,i){return this.compare(o,i)==0},this.compareRange=function(o){let i,a=o.end,l=o.start;return i=this.compare(a.row,a.column),i==1?(i=this.compare(l.row,l.column),i==1?2:i==0?1:0):i==-1?-2:(i=this.compare(l.row,l.column),i==-1?-1:i==1?42:0)},this.comparePoint=function(o){return this.compare(o.row,o.column)},this.containsRange=function(o){return this.comparePoint(o.start)==0&&this.comparePoint(o.end)==0},this.intersects=function(o){let i=this.compareRange(o);return i==-1||i==0||i==1},this.isEnd=function(o,i){return this.end.row==o&&this.end.column==i},this.isStart=function(o,i){return this.start.row==o&&this.start.column==i},this.setStart=function(o,i){typeof o=="object"?(this.start.column=o.column,this.start.row=o.row):(this.start.row=o,this.start.column=i)},this.setEnd=function(o,i){typeof o=="object"?(this.end.column=o.column,this.end.row=o.row):(this.end.row=o,this.end.column=i)},this.inside=function(o,i){return this.compare(o,i)==0?!(this.isEnd(o,i)||this.isStart(o,i)):!1},this.insideStart=function(o,i){return this.compare(o,i)==0?!this.isEnd(o,i):!1},this.insideEnd=function(o,i){return this.compare(o,i)==0?!this.isStart(o,i):!1},this.compare=function(o,i){return this.isMultiLine()||o!==this.start.row?this.start.row>o?-1:o>this.end.row?1:this.start.row===o?i>=this.start.column?0:-1:this.end.row===o?this.end.column>=i?0:1:0:this.start.column>i?-1:i>this.end.column?1:0},this.compareStart=function(o,i){return this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.compareEnd=function(o,i){return this.end.row==o&&this.end.column==i?1:this.compare(o,i)},this.compareInside=function(o,i){return this.end.row==o&&this.end.column==i?1:this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.clipRows=function(o,i){if(this.end.row>i)var a={row:i+1,column:0};else if(o>this.end.row)var a={row:o,column:0};if(this.start.row>i)var l={row:i+1,column:0};else if(o>this.start.row)var l={row:o,column:0};return r.fromPoints(l||this.start,a||this.end)},this.extend=function(o,i){let a=this.compare(o,i);if(a==0)return this;if(a==-1)var l={row:o,column:i};else var s={row:o,column:i};return r.fromPoints(l||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(o){let i=o.documentToScreenPosition(this.start),a=o.documentToScreenPosition(this.end);return new r(i.row,i.column,a.row,a.column)},this.moveBy=function(o,i){this.start.row+=o,this.start.column+=i,this.end.row+=o,this.end.column+=i}}).call(r.prototype),r.fromPoints=function(o,i){return new r(o.row,o.column,i.row,i.column)},r.comparePoints=n,r.comparePoints=function(o,i){return o.row-i.row||o.column-i.column},t.Range=r}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){t.applyDelta=function(n,r){let o=r.start.row,i=r.start.column,a=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=a.substring(0,i)+r.lines[0]+a.substring(i);else{let u=[o,1].concat(r.lines);n.splice.apply(n,u),n[o]=a.substring(0,i)+n[o],n[o+r.lines.length-1]+=a.substring(i)}break;case"remove":var s=r.end.column,c=r.end.row;o===c?n[o]=a.substring(0,i)+a.substring(s):n.splice(o,c-o+1,a.substring(0,i)+n[c].substring(s))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){let n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(i,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});let l=this._eventRegistry[i]||[],s=this._defaultHandlers[i];if(l.length||s){typeof a=="object"&&a||(a={}),a.type||(a.type=i),a.stopPropagation||(a.stopPropagation=r),a.preventDefault||(a.preventDefault=o),l=l.slice();for(let c=0;l.length>c&&(l[c](a,this),!a.propagationStopped);c++);return s&&!a.defaultPrevented?s(a,this):void 0}},n._signal=function(i,a){let l=(this._eventRegistry||{})[i];if(l){l=l.slice();for(let s=0;l.length>s;s++)l[s](a,this)}},n.once=function(i,a){let l=this;a&&this.addEventListener(i,function s(){l.removeEventListener(i,s),a.apply(null,arguments)})},n.setDefaultHandler=function(i,a){let l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[i]){let s=l[i],c=l._disabled_[i];c||(l._disabled_[i]=c=[]),c.push(s);let u=c.indexOf(a);u!=-1&&c.splice(u,1)}l[i]=a},n.removeDefaultHandler=function(i,a){let l=this._defaultHandlers;if(l){let s=l._disabled_[i];if(l[i]==a)l[i],s&&this.setDefaultHandler(i,s.pop());else if(s){let c=s.indexOf(a);c!=-1&&s.splice(c,1)}}},n.on=n.addEventListener=function(i,a,l){this._eventRegistry=this._eventRegistry||{};let s=this._eventRegistry[i];return s||(s=this._eventRegistry[i]=[]),s.indexOf(a)==-1&&s[l?"unshift":"push"](a),a},n.off=n.removeListener=n.removeEventListener=function(i,a){this._eventRegistry=this._eventRegistry||{};let l=this._eventRegistry[i];if(l){let s=l.indexOf(a);s!==-1&&l.splice(s,1)}},n.removeAllListeners=function(i){this._eventRegistry&&(this._eventRegistry[i]=[])},t.EventEmitter=n}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){let n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(i,a,l){this.$onChange=this.onChange.bind(this),this.attach(i),l===void 0?this.setPosition(a.row,a.column):this.setPosition(a,l)};(function(){function i(l,s,c){let u=c?l.column<=s.column:l.column<s.column;return l.row<s.row||l.row==s.row&&u}function a(l,s,c){let u=l.action=="insert",f=(u?1:-1)*(l.end.row-l.start.row),d=(u?1:-1)*(l.end.column-l.start.column),b=l.start,S=u?b:l.end;return i(s,b,c)?{row:s.row,column:s.column}:i(S,s,!c)?{row:s.row+f,column:s.column+(s.row==S.row?d:0)}:{row:b.row,column:b.column}}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row||l.start.row>this.row)){let s=a(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(l,s,c){let u;if(u=c?{row:l,column:s}:this.$clipPositionToDocument(l,s),this.row!=u.row||this.column!=u.column){let f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(l,s){let c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):0>l?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,s))),0>s&&(c.column=0),c}}).call(o.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t){let n=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,i=e("./range").Range,a=e("./anchor").Anchor,l=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){n.implement(this,o),this.setValue=function(s){let c=this.getLength()-1;this.remove(new i(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,c){return new a(this,s,c)},this.$split="aaa".split(/a/).length===0?function(s){return s.replace(/\r\n|\r/g,`
303
+ `}]},renderTabBarItemIcon:i,addTab:a,onMinimizeClick:l=()=>{console.warn("onMinimizeClick function is null")},newTabClick:s=()=>{console.warn("newTabClick function is null")},updateTabData:c=()=>{console.warn("updateTabData function is null")},sendRequestToES:u=()=>{console.warn("sendRequestToES function is null")}})=>{var E;const f=A.useRef(null),[d,b]=A.useState(!1),[S,O]=A.useState(w4(n));A.useEffect(()=>{const C=()=>{d&&O(f.current.offsetHeight)};return window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)}},[d]);const h=()=>{f.current!=null&&(d?(f.current.className=f.current.className.replace(" fullscreen",""),w()):f.current.className=f.current.className+" fullscreen"),O(f.current.clientHeight),b(!d)},y=A.useCallback(C=>{l(C),w()},[l]);LN((E=o.activeKey)==null?void 0:E.split(":")[0]);const p={left:he.jsxs(he.Fragment,{children:[he.jsx("div",{className:"tabbar-icon",onClick:y,children:he.jsx(_n.CodeOutlined,{})}),he.jsx(_4,{onItemClick:s,width:"300px",panes:o.panes,DataSourceSelector:r,children:he.jsx("div",{className:"tabbar-icon",children:he.jsx(_n.PlusOutlined,{})})})]}),right:he.jsxs(he.Fragment,{children:[e?he.jsx("div",{className:"tabbar-icon",onClick:y,children:he.jsx(_n.MinusOutlined,{})}):null,he.jsx("div",{className:"tabbar-icon",onClick:h,children:d?he.jsx(b4,{}):he.jsx(y4,{})})]})},m=A.useMemo(()=>["left","right"].reduce((C,x)=>({...C,[x]:p[x]}),{}),[]),g=()=>{document.body.style.overflow="hidden"},w=()=>{document.body.style.overflow=""};return he.jsx(lS.Resizable,{defaultSize:{height:S},minHeight:70,maxHeight:"100vh",handleComponent:{top:he.jsx(m4,{})},onResizeStop:(C,x,T,M)=>{O(S+M.height)},enable:{top:t,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},children:he.jsx("div",{style:{background:"#fff",height:"100%"},onMouseOver:g,onMouseOut:w,id:"console",ref:f,children:he.jsx(h4,{editorHeight:S,type:"editable-card",tabBarExtraContent:m,tabData:o,renderTabBarItemIcon:i,addTab:a,updateTabData:c,sendRequestToES:u})})})},yx={methods:[]},S4=Object.freeze(Object.defineProperty({__proto__:null,default:{documentation:yx},documentation:yx},Symbol.toStringTag,{value:"Module"})),bx={url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",type:"",_source:[],_source_excludes:[],_source_includes:[],pipeline:""},methods:["POST","PUT"],patterns:["_bulk","{indices}/_bulk","{indices}/{type}/_bulk"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html"},C4=Object.freeze(Object.defineProperty({__proto__:null,bulk:bx,default:{bulk:bx}},Symbol.toStringTag,{value:"Module"})),E4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.aliases":{url_params:{format:"",local:"__flag__",h:[],help:"__flag__",s:[],v:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cat/aliases","_cat/aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html"}}},Symbol.toStringTag,{value:"Module"})),O4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.allocation":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/allocation","_cat/allocation/{nodes}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html"}}},Symbol.toStringTag,{value:"Module"})),$4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.count":{url_params:{format:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/count","_cat/count/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html"}}},Symbol.toStringTag,{value:"Module"})),T4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.fielddata":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],h:[],help:"__flag__",s:[],v:"__flag__",fields:[]},methods:["GET"],patterns:["_cat/fielddata","_cat/fielddata/{fields}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html"}}},Symbol.toStringTag,{value:"Module"})),P4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.health":{url_params:{format:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],ts:"__flag__",v:"__flag__"},methods:["GET"],patterns:["_cat/health"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html"}}},Symbol.toStringTag,{value:"Module"})),R4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.help":{url_params:{help:"__flag__",s:[]},methods:["GET"],patterns:["_cat"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html"}}},Symbol.toStringTag,{value:"Module"})),j4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.indices":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],health:["green","yellow","red"],help:"__flag__",pri:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__",include_unloaded_segments:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cat/indices","_cat/indices/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html"}}},Symbol.toStringTag,{value:"Module"})),M4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.master":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/master"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html"}}},Symbol.toStringTag,{value:"Module"})),I4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.nodeattrs":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/nodeattrs"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html"}}},Symbol.toStringTag,{value:"Module"})),A4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.nodes":{url_params:{bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],format:"",full_id:"__flag__",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/nodes"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html"}}},Symbol.toStringTag,{value:"Module"})),N4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.pending_tasks":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/pending_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html"}}},Symbol.toStringTag,{value:"Module"})),k4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.plugins":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/plugins"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html"}}},Symbol.toStringTag,{value:"Module"})),L4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.recovery":{url_params:{format:"",active_only:"__flag__",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],detailed:"__flag__",h:[],help:"__flag__",index:[],s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/recovery","_cat/recovery/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html"}}},Symbol.toStringTag,{value:"Module"})),F4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.repositories":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/repositories"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html"}}},Symbol.toStringTag,{value:"Module"})),D4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.segments":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/segments","_cat/segments/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html"}}},Symbol.toStringTag,{value:"Module"})),B4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.shards":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/shards","_cat/shards/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html"}}},Symbol.toStringTag,{value:"Module"})),z4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.snapshots":{url_params:{format:"",ignore_unavailable:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/snapshots","_cat/snapshots/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),q4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.tasks":{url_params:{format:"",node_id:[],actions:[],detailed:"__flag__",parent_task:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),V4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.templates":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/templates","_cat/templates/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html"}}},Symbol.toStringTag,{value:"Module"})),H4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.thread_pool":{url_params:{format:"",size:["","k","m","g","t","p"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/thread_pool","_cat/thread_pool/{thread_pool_patterns}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html"}}},Symbol.toStringTag,{value:"Module"})),wx={methods:["DELETE"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api"},W4=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:wx,default:{clear_scroll:wx}},Symbol.toStringTag,{value:"Module"})),U4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.allocation_explain":{url_params:{include_yes_decisions:"__flag__",include_disk_info:"__flag__"},methods:["GET","POST"],patterns:["_cluster/allocation/explain"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html"}}},Symbol.toStringTag,{value:"Module"})),G4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.delete_component_template":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-templates.html"}}},Symbol.toStringTag,{value:"Module"})),K4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.get_component_template":{url_params:{flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_component_template","_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/getting-component-templates.html"}}},Symbol.toStringTag,{value:"Module"})),X4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.get_settings":{url_params:{flat_settings:"__flag__",master_timeout:"",timeout:"",include_defaults:"__flag__"},methods:["GET"],patterns:["_cluster/settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),Y4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.health":{url_params:{expand_wildcards:["open","closed","hidden","none","all"],level:["cluster","indices","shards"],local:"__flag__",master_timeout:"",timeout:"",wait_for_active_shards:"",wait_for_nodes:"",wait_for_events:["immediate","urgent","high","normal","low","languid"],wait_for_no_relocating_shards:"__flag__",wait_for_no_initializing_shards:"__flag__",wait_for_status:["green","yellow","red"]},methods:["GET"],patterns:["_cluster/health","_cluster/health/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html"}}},Symbol.toStringTag,{value:"Module"})),J4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.pending_tasks":{url_params:{local:"__flag__",master_timeout:""},methods:["GET"],patterns:["_cluster/pending_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html"}}},Symbol.toStringTag,{value:"Module"})),Q4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_component_template":{url_params:{create:"__flag__",master_timeout:""},methods:["PUT"],patterns:["_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html"}}},Symbol.toStringTag,{value:"Module"})),Z4=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_settings":{url_params:{flat_settings:"__flag__",master_timeout:"",timeout:""},methods:["PUT"],patterns:["_cluster/settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),e3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.remote_info":{methods:["GET"],patterns:["_remote/info"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html"}}},Symbol.toStringTag,{value:"Module"})),t3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.reroute":{url_params:{dry_run:"__flag__",explain:"__flag__",retry_failed:"__flag__",metric:[],master_timeout:"",timeout:""},methods:["POST"],patterns:["_cluster/reroute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html"}}},Symbol.toStringTag,{value:"Module"})),n3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.state":{url_params:{local:"__flag__",master_timeout:"",flat_settings:"__flag__",wait_for_metadata_version:"",wait_for_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cluster/state","_cluster/state/{metrics}","_cluster/state/{metrics}/{indices}"],url_components:{metrics:["_all","blocks","master_node","metadata","nodes","routing_nodes","routing_table","version"],indices:null},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html"}}},Symbol.toStringTag,{value:"Module"})),r3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.stats":{url_params:{flat_settings:"__flag__",timeout:""},methods:["GET"],patterns:["_cluster/stats","_cluster/stats/nodes/{nodes}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html"}}},Symbol.toStringTag,{value:"Module"})),xx={url_params:{ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],min_score:"",preference:"random",routing:[],q:"",analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",lenient:"__flag__",terminate_after:""},methods:["POST","GET"],patterns:["_count","{indices}/_count"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html"},o3=Object.freeze(Object.defineProperty({__proto__:null,count:xx,default:{count:xx}},Symbol.toStringTag,{value:"Module"})),Sx={url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",version:"",version_type:["internal","external","external_gte"],pipeline:""},methods:["PUT","POST"],patterns:["{indices}/_create/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"},i3=Object.freeze(Object.defineProperty({__proto__:null,create:Sx,default:{create:Sx}},Symbol.toStringTag,{value:"Module"})),a3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete:{url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",if_seq_no:"",if_primary_term:"",version:"",version_type:["internal","external","external_gte","force"]},methods:["DELETE"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html"}}},Symbol.toStringTag,{value:"Module"})),Cx={url_params:{analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",from:"0",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",conflicts:["abort","proceed"],expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],search_timeout:"",size:"",max_docs:"all documents",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],version:"__flag__",request_cache:"__flag__",refresh:"__flag__",timeout:"",wait_for_active_shards:"",scroll_size:"",wait_for_completion:"__flag__",requests_per_second:"",slices:""},methods:["POST"],patterns:["{indices}/_delete_by_query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html"},s3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query:Cx},delete_by_query:Cx},Symbol.toStringTag,{value:"Module"})),Ex={url_params:{requests_per_second:""},methods:["POST"],patterns:["_delete_by_query/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html"},l3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query_rethrottle:Ex},delete_by_query_rethrottle:Ex},Symbol.toStringTag,{value:"Module"})),Ox={url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},c3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_script:Ox},delete_script:Ox},Symbol.toStringTag,{value:"Module"})),$x={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["HEAD"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},u3=Object.freeze(Object.defineProperty({__proto__:null,default:{exists:$x},exists:$x},Symbol.toStringTag,{value:"Module"})),Tx={url_params:{preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["HEAD"],patterns:["{indices}/_source/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},d3=Object.freeze(Object.defineProperty({__proto__:null,default:{exists_source:Tx},exists_source:Tx},Symbol.toStringTag,{value:"Module"})),Px={url_params:{analyze_wildcard:"__flag__",analyzer:"",default_operator:["AND","OR"],df:"_all",stored_fields:[],lenient:"__flag__",preference:"random",q:"",routing:"",_source:[],_source_excludes:[],_source_includes:[]},methods:["GET","POST"],patterns:["{indices}/_explain/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html"},f3=Object.freeze(Object.defineProperty({__proto__:null,default:{explain:Px},explain:Px},Symbol.toStringTag,{value:"Module"})),Rx={url_params:{fields:[],ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],include_unmapped:"__flag__"},methods:["GET","POST"],patterns:["_field_caps","{indices}/_field_caps"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html"},p3=Object.freeze(Object.defineProperty({__proto__:null,default:{field_caps:Rx},field_caps:Rx},Symbol.toStringTag,{value:"Module"})),jx={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["GET"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},h3=Object.freeze(Object.defineProperty({__proto__:null,default:{get:jx},get:jx},Symbol.toStringTag,{value:"Module"})),Mx={url_params:{master_timeout:""},methods:["GET"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},m3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script:Mx},get_script:Mx},Symbol.toStringTag,{value:"Module"})),Ix={methods:["GET"],patterns:["_script_context"]},g3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_context:Ix},get_script_context:Ix},Symbol.toStringTag,{value:"Module"})),Ax={methods:["GET"],patterns:["_script_language"]},v3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_languages:Ax},get_script_languages:Ax},Symbol.toStringTag,{value:"Module"})),Nx={url_params:{preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["GET"],patterns:["{indices}/_source/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},_3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_source:Nx},get_source:Nx},Symbol.toStringTag,{value:"Module"})),kx={url_params:{wait_for_active_shards:"",op_type:["index","create"],refresh:["true","false","wait_for"],routing:"",timeout:"",version:"",version_type:["internal","external","external_gte"],if_seq_no:"",if_primary_term:"",pipeline:""},methods:["PUT","POST"],patterns:["{indices}/_doc/{id}","{indices}/_doc"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"},y3=Object.freeze(Object.defineProperty({__proto__:null,default:{index:kx},index:kx},Symbol.toStringTag,{value:"Module"})),b3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.analyze":{url_params:{index:""},methods:["GET","POST"],patterns:["_analyze","{indices}/_analyze"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html"}}},Symbol.toStringTag,{value:"Module"})),w3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clear_cache":{url_params:{fielddata:"__flag__",fields:[],query:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],index:[],request:"__flag__"},methods:["POST"],patterns:["_cache/clear","{indices}/_cache/clear"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html"}}},Symbol.toStringTag,{value:"Module"})),x3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{url_params:{timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_clone/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html"}}},Symbol.toStringTag,{value:"Module"})),S3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.close":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],wait_for_active_shards:""},methods:["POST"],patterns:["{indices}/_close"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}},Symbol.toStringTag,{value:"Module"})),C3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.create":{url_params:{include_type_name:"__flag__",wait_for_active_shards:"",timeout:"",master_timeout:""},methods:["PUT"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html"}}},Symbol.toStringTag,{value:"Module"})),E3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["DELETE"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html"}}},Symbol.toStringTag,{value:"Module"})),O3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_alias":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["{indices}/_alias/{name}","{indices}/_aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),$3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),T3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists":{url_params:{local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",include_defaults:"__flag__"},methods:["HEAD"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html"}}},Symbol.toStringTag,{value:"Module"})),P3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_alias":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["HEAD"],patterns:["_alias/{name}","{indices}/_alias/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),R3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{url_params:{flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["HEAD"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),j3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_type":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["HEAD"],patterns:["{indices}/_mapping/{type}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html"}}},Symbol.toStringTag,{value:"Module"})),M3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.flush":{url_params:{force:"__flag__",wait_if_ongoing:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["POST","GET"],patterns:["_flush","{indices}/_flush"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html"}}},Symbol.toStringTag,{value:"Module"})),I3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.flush_synced":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","none","all"]},methods:["POST","GET"],patterns:["_flush/synced","{indices}/_flush/synced"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush-api.html"}}},Symbol.toStringTag,{value:"Module"})),A3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.forcemerge":{url_params:{flush:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],max_num_segments:"dynamic",only_expunge_deletes:"__flag__"},methods:["POST"],patterns:["_forcemerge","{indices}/_forcemerge"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html"}}},Symbol.toStringTag,{value:"Module"})),N3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get":{url_params:{include_type_name:"__flag__",local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",include_defaults:"__flag__",master_timeout:""},methods:["GET"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html"}}},Symbol.toStringTag,{value:"Module"})),k3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_alias":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["GET"],patterns:["_alias","_alias/{name}","{indices}/_alias/{name}","{indices}/_alias"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),L3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{url_params:{include_type_name:"__flag__",include_defaults:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["GET"],patterns:["_mapping/field/{fields}","{indices}/_mapping/field/{fields}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),F3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{url_params:{include_type_name:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_mapping","{indices}/_mapping"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),D3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_settings":{url_params:{master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",local:"__flag__",include_defaults:"__flag__"},methods:["GET"],patterns:["_settings","{indices}/_settings","{indices}/_settings/{name}","_settings/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html"}}},Symbol.toStringTag,{value:"Module"})),B3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{url_params:{include_type_name:"__flag__",flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_template","_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),z3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_upgrade":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_upgrade","{indices}/_upgrade"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}},Symbol.toStringTag,{value:"Module"})),q3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.open":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],wait_for_active_shards:""},methods:["POST"],patterns:["{indices}/_open"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}},Symbol.toStringTag,{value:"Module"})),V3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_alias":{url_params:{timeout:"",master_timeout:""},methods:["PUT","POST"],patterns:["{indices}/_alias/{name}","{indices}/_aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),H3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_mapping":{url_params:{include_type_name:"__flag__",timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["PUT","POST"],patterns:["{indices}/_mapping"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),W3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{url_params:{master_timeout:"",timeout:"",preserve_existing:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__"},methods:["PUT"],patterns:["_settings","{indices}/_settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),U3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_template":{url_params:{include_type_name:"__flag__",order:"",create:"__flag__",master_timeout:"",flat_settings:"__flag__"},methods:["PUT","POST"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),G3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.recovery":{url_params:{detailed:"__flag__",active_only:"__flag__"},methods:["GET"],patterns:["_recovery","{indices}/_recovery"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html"}}},Symbol.toStringTag,{value:"Module"})),K3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.refresh":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["POST","GET"],patterns:["_refresh","{indices}/_refresh"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html"}}},Symbol.toStringTag,{value:"Module"})),X3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.rollover":{url_params:{include_type_name:"__flag__",timeout:"",dry_run:"__flag__",master_timeout:"",wait_for_active_shards:""},methods:["POST"],patterns:["{alias}/_rollover","{alias}/_rollover/{new_index}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html"}}},Symbol.toStringTag,{value:"Module"})),Y3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.segments":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],verbose:"__flag__"},methods:["GET"],patterns:["_segments","{indices}/_segments"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html"}}},Symbol.toStringTag,{value:"Module"})),J3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.shard_stores":{url_params:{status:[],ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_shard_stores","{indices}/_shard_stores"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html"}}},Symbol.toStringTag,{value:"Module"})),Q3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.shrink":{url_params:{copy_settings:"__flag__",timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_shrink/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html"}}},Symbol.toStringTag,{value:"Module"})),Z3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.split":{url_params:{copy_settings:"__flag__",timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_split/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html"}}},Symbol.toStringTag,{value:"Module"})),e6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.stats":{url_params:{completion_fields:[],fielddata_fields:[],fields:[],groups:[],level:["cluster","indices","shards"],types:[],include_segment_file_sizes:"__flag__",include_unloaded_segments:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],forbid_closed_indices:"__flag__"},methods:["GET"],patterns:["_stats","_stats/{metrics}","{indices}/_stats","{indices}/_stats/{metrics}"],url_components:{metrics:["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"],indices:null},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html"}}},Symbol.toStringTag,{value:"Module"})),t6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.update_aliases":{url_params:{timeout:"",master_timeout:""},methods:["POST"],patterns:["_aliases"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),n6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.upgrade":{url_params:{allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],ignore_unavailable:"__flag__",wait_for_completion:"__flag__",only_ancient_segments:"__flag__"},methods:["POST"],patterns:["_upgrade","{indices}/_upgrade"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}},Symbol.toStringTag,{value:"Module"})),r6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{url_params:{explain:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],q:"",analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",lenient:"__flag__",rewrite:"__flag__",all_shards:"__flag__"},methods:["GET","POST"],patterns:["_validate/query","{indices}/_validate/query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html"}}},Symbol.toStringTag,{value:"Module"})),Lx={methods:["GET"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},o6=Object.freeze(Object.defineProperty({__proto__:null,default:{info:Lx},info:Lx},Symbol.toStringTag,{value:"Module"})),i6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.delete_pipeline":{url_params:{master_timeout:"",timeout:""},methods:["DELETE"],patterns:["_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),a6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.get_pipeline":{url_params:{master_timeout:""},methods:["GET"],patterns:["_ingest/pipeline","_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),s6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.processor_grok":{methods:["GET"],patterns:["_ingest/processor/grok"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get"}}},Symbol.toStringTag,{value:"Module"})),l6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.put_pipeline":{url_params:{master_timeout:"",timeout:""},methods:["PUT"],patterns:["_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),c6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.simulate":{url_params:{verbose:"__flag__"},methods:["GET","POST"],patterns:["_ingest/pipeline/_simulate","_ingest/pipeline/{id}/_simulate"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),Fx={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[]},methods:["GET","POST"],patterns:["_mget","{indices}/_mget"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html"},u6=Object.freeze(Object.defineProperty({__proto__:null,default:{mget:Fx},mget:Fx},Symbol.toStringTag,{value:"Module"})),Dx={url_params:{search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],max_concurrent_searches:"",typed_keys:"__flag__",pre_filter_shard_size:"",max_concurrent_shard_requests:"",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_msearch","{indices}/_msearch"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html"},d6=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch:Dx},msearch:Dx},Symbol.toStringTag,{value:"Module"})),Bx={url_params:{search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],typed_keys:"__flag__",max_concurrent_searches:"",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_msearch/template","{indices}/_msearch/template"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html"},f6=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch_template:Bx},msearch_template:Bx},Symbol.toStringTag,{value:"Module"})),zx={url_params:{ids:[],term_statistics:"__flag__",field_statistics:"__flag__",fields:[],offsets:"__flag__",positions:"__flag__",payloads:"__flag__",preference:"random",routing:"",realtime:"__flag__",version:"",version_type:["internal","external","external_gte","force"]},methods:["GET","POST"],patterns:["_mtermvectors","{indices}/_mtermvectors"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html"},p6=Object.freeze(Object.defineProperty({__proto__:null,default:{mtermvectors:zx},mtermvectors:zx},Symbol.toStringTag,{value:"Module"})),h6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.hot_threads":{url_params:{interval:"",snapshots:"10",threads:"3",ignore_idle_threads:"__flag__",type:["cpu","wait","block"],timeout:""},methods:["GET"],patterns:["_nodes/hot_threads","_nodes/{nodes}/hot_threads"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html"}}},Symbol.toStringTag,{value:"Module"})),m6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.info":{url_params:{flat_settings:"__flag__",timeout:""},methods:["GET"],patterns:["_nodes","_nodes/{nodes}","_nodes/{metrics}","_nodes/{nodes}/{metrics}"],url_components:{nodes:null,metrics:["http","ingest","jvm","os","plugins","process","settings","thread_pool","transport"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html"}}},Symbol.toStringTag,{value:"Module"})),g6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.reload_secure_settings":{url_params:{timeout:""},methods:["POST"],patterns:["_nodes/reload_secure_settings","_nodes/{nodes}/reload_secure_settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/secure-settings.html#reloadable-secure-settings"}}},Symbol.toStringTag,{value:"Module"})),v6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.stats":{url_params:{completion_fields:[],fielddata_fields:[],fields:[],groups:"__flag__",level:["indices","node","shards"],types:[],timeout:"",include_segment_file_sizes:"__flag__"},methods:["GET"],patterns:["_nodes/stats","_nodes/{nodes}/stats","_nodes/stats/{metrics}","_nodes/{nodes}/stats/{metrics}","_nodes/stats/{metrics}/{index_metric}","_nodes/{nodes}/stats/{metrics}/{index_metric}"],url_components:{nodes:null,metrics:["_all","breaker","discovery","fs","http","indices","jvm","os","process","thread_pool","transport"],index_metric:["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html"}}},Symbol.toStringTag,{value:"Module"})),_6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.usage":{url_params:{timeout:""},methods:["GET"],patterns:["_nodes/usage","_nodes/{nodes}/usage","_nodes/usage/{metrics}","_nodes/{nodes}/usage/{metrics}"],url_components:{nodes:null,metrics:["_all","rest_actions"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html"}}},Symbol.toStringTag,{value:"Module"})),qx={methods:["HEAD"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},y6=Object.freeze(Object.defineProperty({__proto__:null,default:{ping:qx},ping:qx},Symbol.toStringTag,{value:"Module"})),Vx={url_params:{timeout:"",master_timeout:"",context:""},methods:["PUT","POST"],patterns:["_scripts/{id}","_scripts/{id}/{context}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},b6=Object.freeze(Object.defineProperty({__proto__:null,default:{put_script:Vx},put_script:Vx},Symbol.toStringTag,{value:"Module"})),Hx={url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],search_type:["query_then_fetch","dfs_query_then_fetch"]},methods:["GET","POST"],patterns:["_rank_eval","{indices}/_rank_eval"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html"},w6=Object.freeze(Object.defineProperty({__proto__:null,default:{rank_eval:Hx},rank_eval:Hx},Symbol.toStringTag,{value:"Module"})),Wx={url_params:{refresh:"__flag__",timeout:"",wait_for_active_shards:"",wait_for_completion:"__flag__",requests_per_second:"",scroll:"",slices:"",max_docs:"all documents"},methods:["POST"],patterns:["_reindex"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"},x6=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex:Wx},reindex:Wx},Symbol.toStringTag,{value:"Module"})),Ux={url_params:{requests_per_second:""},methods:["POST"],patterns:["_reindex/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"},S6=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex_rethrottle:Ux},reindex_rethrottle:Ux},Symbol.toStringTag,{value:"Module"})),Gx={methods:["GET","POST"],patterns:["_render/template","_render/template/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#_validating_templates"},C6=Object.freeze(Object.defineProperty({__proto__:null,default:{render_search_template:Gx},render_search_template:Gx},Symbol.toStringTag,{value:"Module"})),Kx={methods:["GET","POST"],patterns:["_scripts/painless/_execute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html"},E6=Object.freeze(Object.defineProperty({__proto__:null,default:{scripts_painless_execute:Kx},scripts_painless_execute:Kx},Symbol.toStringTag,{value:"Module"})),Xx={url_params:{scroll:"",scroll_id:"",rest_total_hits_as_int:"__flag__"},methods:["GET","POST"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll"},O6=Object.freeze(Object.defineProperty({__proto__:null,default:{scroll:Xx},scroll:Xx},Symbol.toStringTag,{value:"Module"})),Yx={url_params:{analyzer:"",analyze_wildcard:"__flag__",ccs_minimize_roundtrips:"__flag__",default_operator:["AND","OR"],df:"",explain:"__flag__",stored_fields:[],docvalue_fields:[],from:"0",ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],size:"10",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],suggest_field:"",suggest_mode:["missing","popular","always"],suggest_size:"",suggest_text:"",timeout:"",track_scores:"__flag__",track_total_hits:"__flag__",allow_partial_search_results:"__flag__",typed_keys:"__flag__",version:"__flag__",seq_no_primary_term:"__flag__",request_cache:"__flag__",batched_reduce_size:"",max_concurrent_shard_requests:"",pre_filter_shard_size:"",rest_total_hits_as_int:"__flag__"},methods:["GET","POST"],patterns:["_search","{indices}/_search"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html"},$6=Object.freeze(Object.defineProperty({__proto__:null,default:{search:Yx},search:Yx},Symbol.toStringTag,{value:"Module"})),Jx={url_params:{preference:"random",routing:"",local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET","POST"],patterns:["_search_shards","{indices}/_search_shards"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html"},T6=Object.freeze(Object.defineProperty({__proto__:null,default:{search_shards:Jx},search_shards:Jx},Symbol.toStringTag,{value:"Module"})),Qx={url_params:{ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],preference:"random",routing:[],scroll:"",search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],explain:"__flag__",profile:"__flag__",typed_keys:"__flag__",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_search/template","{indices}/_search/template"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html"},P6=Object.freeze(Object.defineProperty({__proto__:null,default:{search_template:Qx},search_template:Qx},Symbol.toStringTag,{value:"Module"})),R6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.cleanup_repository":{url_params:{master_timeout:"",timeout:""},methods:["POST"],patterns:["_snapshot/{repository}/_cleanup"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),j6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create":{url_params:{master_timeout:"",wait_for_completion:"__flag__"},methods:["PUT","POST"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),M6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create_repository":{url_params:{master_timeout:"",timeout:"",verify:"__flag__"},methods:["PUT","POST"],patterns:["_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),I6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.delete":{url_params:{master_timeout:""},methods:["DELETE"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),A6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.delete_repository":{url_params:{master_timeout:"",timeout:""},methods:["DELETE"],patterns:["_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),N6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.get":{url_params:{master_timeout:"",ignore_unavailable:"__flag__",verbose:"__flag__"},methods:["GET"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),k6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.get_repository":{url_params:{master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_snapshot","_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),L6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.restore":{url_params:{master_timeout:"",wait_for_completion:"__flag__"},methods:["POST"],patterns:["_snapshot/{repository}/{snapshot}/_restore"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),F6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.status":{url_params:{master_timeout:"",ignore_unavailable:"__flag__"},methods:["GET"],patterns:["_snapshot/_status","_snapshot/{repository}/_status","_snapshot/{repository}/{snapshot}/_status"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),D6=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.verify_repository":{url_params:{master_timeout:"",timeout:""},methods:["POST"],patterns:["_snapshot/{repository}/_verify"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),B6=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.cancel":{url_params:{nodes:[],actions:[],parent_task_id:""},methods:["POST"],patterns:["_tasks/_cancel","_tasks/{task_id}/_cancel"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),z6=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.get":{url_params:{wait_for_completion:"__flag__",timeout:""},methods:["GET"],patterns:["_tasks/{task_id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),q6=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.list":{url_params:{nodes:[],actions:[],detailed:"__flag__",parent_task_id:"",wait_for_completion:"__flag__",group_by:["nodes","parents","none"],timeout:""},methods:["GET"],patterns:["_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),Zx={url_params:{term_statistics:"__flag__",field_statistics:"__flag__",fields:[],offsets:"__flag__",positions:"__flag__",payloads:"__flag__",preference:"random",routing:"",realtime:"__flag__",version:"",version_type:["internal","external","external_gte","force"]},methods:["GET","POST"],patterns:["{indices}/_termvectors/{id}","{indices}/_termvectors"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html"},V6=Object.freeze(Object.defineProperty({__proto__:null,default:{termvectors:Zx},termvectors:Zx},Symbol.toStringTag,{value:"Module"})),eS={url_params:{wait_for_active_shards:"",_source:[],_source_excludes:[],_source_includes:[],lang:"painless",refresh:["true","false","wait_for"],retry_on_conflict:"0",routing:"",timeout:"",if_seq_no:"",if_primary_term:""},methods:["POST"],patterns:["{indices}/_update/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html"},H6=Object.freeze(Object.defineProperty({__proto__:null,default:{update:eS},update:eS},Symbol.toStringTag,{value:"Module"})),tS={url_params:{analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",from:"0",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",conflicts:["abort","proceed"],expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",pipeline:"none",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],search_timeout:"",size:"",max_docs:"all documents",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],version:"__flag__",version_type:"__flag__",request_cache:"__flag__",refresh:"__flag__",timeout:"",wait_for_active_shards:"",scroll_size:"",wait_for_completion:"__flag__",requests_per_second:"",slices:""},methods:["POST"],patterns:["{indices}/_update_by_query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html"},W6=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:tS},update_by_query:tS},Symbol.toStringTag,{value:"Module"})),nS={url_params:{requests_per_second:""},methods:["POST"],patterns:["_update_by_query/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html"},U6=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query_rethrottle:nS},update_by_query_rethrottle:nS},Symbol.toStringTag,{value:"Module"})),rS={data_autocomplete_rules:{scroll_id:""}},G6=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:rS,default:{clear_scroll:rS}},Symbol.toStringTag,{value:"Module"})),K6=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.health":{url_params:{expand_wildcards:["open","closed","hidden","none","all"],level:["cluster","indices","shards"],local:"__flag__",master_timeout:"",timeout:"",wait_for_active_shards:"",wait_for_nodes:"",wait_for_events:["immediate","urgent","high","normal","low","languid"],wait_for_no_relocating_shards:"__flag__",wait_for_no_initializing_shards:"__flag__",wait_for_status:["green","yellow","red"]}}}},Symbol.toStringTag,{value:"Module"})),X6=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_component_template":{data_autocomplete_rules:{template:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}},mappings:{__scope_link:"put_mapping"}},_meta:{},version:0,allow_auto_create:!1}}}},Symbol.toStringTag,{value:"Module"})),Y6=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_settings":{data_autocomplete_rules:{persistent:{cluster:{routing:{"allocation.enable":{__one_of:["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{__one_of:[!1,!0]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{_ip:"",_name:"",_host:"",_id:""},"allocation.include":{_ip:"",_name:"",_host:"",_id:""},"allocation.require":{_ip:"",_name:"",_host:"",_id:""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{values:[]}},"allocation.allow_rebalance":{__one_of:["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{__one_of:[!1,!0]}}},indices:{breaker:{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}},transient:{cluster:{routing:{"allocation.enable":{__one_of:["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{__one_of:[!1,!0]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{_ip:"",_name:"",_host:"",_id:""},"allocation.include":{_ip:"",_name:"",_host:"",_id:""},"allocation.require":{_ip:"",_name:"",_host:"",_id:""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{values:[]}},"allocation.allow_rebalance":{__one_of:["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{__one_of:[!1,!0]}}},indices:{breaker:{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}}}}}},Symbol.toStringTag,{value:"Module"})),J6=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.reroute":{data_autocomplete_rules:{commands:[{move:{__template:{index:"",shard:0,from_node:"",to_node:""},index:"{index}",shard:0,from_node:"{node}",to_node:"{node}"},cancel:{__template:{index:"",shard:0,node:""},index:"{index}",shard:0,node:"{node}",allow_primary:{__one_of:[!0,!1]}},allocate:{__template:{index:"",shard:0,node:""},index:"{index}",shard:0,node:"{node}",allow_primary:{__one_of:[!0,!1]}}}],dry_run:{__one_of:[!0,!1]}}}}},Symbol.toStringTag,{value:"Module"})),oS={priority:10,data_autocomplete_rules:{query:{}}},Q6=Object.freeze(Object.defineProperty({__proto__:null,count:oS,default:{count:oS}},Symbol.toStringTag,{value:"Module"})),Z6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.analyze":{data_autocomplete_rules:{text:[],field:"{field}",analyzer:"",tokenizer:"",char_filter:[],filter:[],explain:{__one_of:[!1,!0]},attributes:[]}}}},Symbol.toStringTag,{value:"Module"})),e8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{data_autocomplete_rules:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),t8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.create":{data_autocomplete_rules:{mappings:{__scope_link:"put_mapping"},settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),n8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),r8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),o8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),i8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),a8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{patterns:["_template","_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),s8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_alias":{data_autocomplete_rules:{filter:{},routing:"1",search_routing:"1,2",index_routing:"1"}}}},Symbol.toStringTag,{value:"Module"})),l8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{data_autocomplete_rules:{__scope_link:"put_settings"}}}},Symbol.toStringTag,{value:"Module"})),c8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_template":{data_autocomplete_rules:{index_patterns:[],mappings:{__scope_link:"put_mapping"},settings:{__scope_link:"put_settings"},version:0,order:0,aliases:{__template:{NAME:{}}}},patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),u8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.rollover":{data_autocomplete_rules:{conditions:{max_age:"7d",max_docs:1e3,max_size:"5gb"},settings:{__scope_link:"put_settings"},mappings:{__scope_link:"put_mapping"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),d8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.update_aliases":{data_autocomplete_rules:{actions:{__template:[{add:{index:"test1",alias:"alias1"}}],__any_of:[{add:{index:"{index}",alias:"",filter:{},routing:"1",search_routing:"1,2",index_routing:"1"},remove:{index:"",alias:""}}]}}}}},Symbol.toStringTag,{value:"Module"})),f8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{data_autocomplete_rules:{query:{}}}}},Symbol.toStringTag,{value:"Module"})),p8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create":{data_autocomplete_rules:{indices:"*",ignore_unavailable:{__one_of:[!0,!1]},include_global_state:{__one_of:[!0,!1]},partial:{__one_of:[!0,!1]}}}}},Symbol.toStringTag,{value:"Module"})),h8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create_repository":{data_autocomplete_rules:{__template:{type:""},type:{__one_of:["fs","url","s3","hdfs","azure"]},settings:{__one_of:[{__condition:{lines_regex:`type["']\\s*:\\s*["']fs\``},__template:{location:"path"},location:"path",compress:{__one_of:[!0,!1]},concurrent_streams:5,chunk_size:"10m",max_restore_bytes_per_sec:"20mb",max_snapshot_bytes_per_sec:"20mb"},{__condition:{lines_regex:`type["']\\s*:\\s*["']url`},__template:{url:""},url:"",concurrent_streams:5},{__condition:{lines_regex:`type["']\\s*:\\s*["']s3`},__template:{bucket:""},bucket:"",region:"",base_path:"",concurrent_streams:5,chunk_size:"10m",compress:{__one_of:[!0,!1]}},{__condition:{lines_regex:`type["']\\s*:\\s*["']hdfs`},__template:{path:""},uri:"",path:"some/path",load_defaults:{__one_of:[!0,!1]},conf_location:"cfg.xml",concurrent_streams:5,compress:{__one_of:[!0,!1]},chunk_size:"10m"},{__condition:{lines_regex:`type["']\\s*:\\s*["']azure`},__template:{path:""},container:"",base_path:"",client:"default",location_mode:{__one_of:["primary_only","secondary_only"]},readonly:{__one_of:[!0,!1]},compress:{__one_of:[!0,!1]},chunk_size:"10m"}]}}}}},Symbol.toStringTag,{value:"Module"})),m8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.restore":{data_autocomplete_rules:{indices:"*",ignore_unavailable:{__one_of:[!0,!1]},include_global_state:!1,rename_pattern:"index_(.+)",rename_replacement:"restored_index_$1"}}}},Symbol.toStringTag,{value:"Module"})),iS={data_autocomplete_rules:{conflicts:"",query:{__scope_link:"GLOBAL.query"},script:{__template:{source:"",lang:"painless"},__scope_link:"GLOBAL.script"}}},g8=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:iS},update_by_query:iS},Symbol.toStringTag,{value:"Module"}));var We={exports:{}};(function(e){function t(n,r){for(let o=n,i="";o;){let a=r[o];if(typeof a=="string")return a+i;if(a)return a.location.replace(/\/*$/,"/")+(i||a.main||a.name);if(a===!1)return"";let l=o.lastIndexOf("/");if(l===-1)break;i=o.substr(l)+i,o=o.slice(0,l)}return n}if(!(e.window!==void 0&&e.document||e.acequire&&e.define)){e.console||(e.console=function(){let o=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:o})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(o,i,a,l,s){postMessage({type:"error",data:{message:o,data:s.data,file:i,line:a,col:l,stack:s.stack}})},e.normalizeModule=function(o,i){if(i.indexOf("!")!==-1){let l=i.split("!");return e.normalizeModule(o,l[0])+"!"+e.normalizeModule(o,l[1])}if(i.charAt(0)=="."){let l=o.split("/").slice(0,-1).join("/");for(i=(l?l+"/":"")+i;i.indexOf(".")!==-1&&a!=i;){var a=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},e.acequire=function(i,a){if(a||(a=i,i=null),!a.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");a=e.normalizeModule(i,a);let l=e.acequire.modules[a];if(l)return l.initialized||(l.initialized=!0,l.exports=l.factory().exports),l.exports;if(!e.acequire.tlns)return console.log("unable to load "+a);let s=t(a,e.acequire.tlns);return s.slice(-3)!=".js"&&(s+=".js"),e.acequire.id=a,e.acequire.modules[a]={},importScripts(s),e.acequire(i,a)},e.acequire.modules={},e.acequire.tlns={},e.define=function(o,i,a){if(arguments.length==2?(a=i,typeof o!="string"&&(i=o,o=e.acequire.id)):arguments.length==1&&(a=o,i=[],o=e.acequire.id),typeof a!="function")return e.acequire.modules[o]={exports:a,initialized:!0},void 0;i.length||(i=["require","exports","module"]);let l=function(s){return e.acequire(o,s)};e.acequire.modules[o]={exports:{},factory:function(){let s=this,c=a.apply(this,i.map(function(u){switch(u){case"require":return l;case"exports":return s.exports;case"module":return s;default:return l(u)}}));return c&&(s.exports=c),s}}},e.define.amd={},acequire.tlns={},e.initBaseUrls=function(o){for(let i in o)acequire.tlns[i]=o[i]},e.initSender=function(){let o=e.acequire("ace/lib/event_emitter").EventEmitter,i=e.acequire("ace/lib/oop"),a=function(){};return(function(){i.implement(this,o),this.callback=function(l,s){postMessage({type:"call",id:s,data:l})},this.emit=function(l,s){postMessage({type:"event",name:l,data:s})}}).call(a.prototype),new a};let n=e.main=null,r=e.sender=null;e.onmessage=function(o){let i=o.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),acequire("ace/lib/es5-shim"),r=e.sender=e.initSender();let a=acequire(i.module)[i.classname];n=e.main=new a(r)}}}})(void 0),ace.define("ace/lib/oop",["require","exports","module"],function(e,t){t.inherits=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,r){for(let o in r)n[o]=r[o];return n},t.implement=function(n,r){t.mixin(n,r)}}),ace.define("ace/range",["require","exports","module"],function(e,t){let n=function(o,i){return o.row-i.row||o.column-i.column},r=function(o,i,a,l){this.start={row:o,column:i},this.end={row:a,column:l}};(function(){this.isEqual=function(o){return this.start.row===o.start.row&&this.end.row===o.end.row&&this.start.column===o.start.column&&this.end.column===o.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(o,i){return this.compare(o,i)==0},this.compareRange=function(o){let i,a=o.end,l=o.start;return i=this.compare(a.row,a.column),i==1?(i=this.compare(l.row,l.column),i==1?2:i==0?1:0):i==-1?-2:(i=this.compare(l.row,l.column),i==-1?-1:i==1?42:0)},this.comparePoint=function(o){return this.compare(o.row,o.column)},this.containsRange=function(o){return this.comparePoint(o.start)==0&&this.comparePoint(o.end)==0},this.intersects=function(o){let i=this.compareRange(o);return i==-1||i==0||i==1},this.isEnd=function(o,i){return this.end.row==o&&this.end.column==i},this.isStart=function(o,i){return this.start.row==o&&this.start.column==i},this.setStart=function(o,i){typeof o=="object"?(this.start.column=o.column,this.start.row=o.row):(this.start.row=o,this.start.column=i)},this.setEnd=function(o,i){typeof o=="object"?(this.end.column=o.column,this.end.row=o.row):(this.end.row=o,this.end.column=i)},this.inside=function(o,i){return this.compare(o,i)==0?!(this.isEnd(o,i)||this.isStart(o,i)):!1},this.insideStart=function(o,i){return this.compare(o,i)==0?!this.isEnd(o,i):!1},this.insideEnd=function(o,i){return this.compare(o,i)==0?!this.isStart(o,i):!1},this.compare=function(o,i){return this.isMultiLine()||o!==this.start.row?this.start.row>o?-1:o>this.end.row?1:this.start.row===o?i>=this.start.column?0:-1:this.end.row===o?this.end.column>=i?0:1:0:this.start.column>i?-1:i>this.end.column?1:0},this.compareStart=function(o,i){return this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.compareEnd=function(o,i){return this.end.row==o&&this.end.column==i?1:this.compare(o,i)},this.compareInside=function(o,i){return this.end.row==o&&this.end.column==i?1:this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.clipRows=function(o,i){if(this.end.row>i)var a={row:i+1,column:0};else if(o>this.end.row)var a={row:o,column:0};if(this.start.row>i)var l={row:i+1,column:0};else if(o>this.start.row)var l={row:o,column:0};return r.fromPoints(l||this.start,a||this.end)},this.extend=function(o,i){let a=this.compare(o,i);if(a==0)return this;if(a==-1)var l={row:o,column:i};else var s={row:o,column:i};return r.fromPoints(l||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(o){let i=o.documentToScreenPosition(this.start),a=o.documentToScreenPosition(this.end);return new r(i.row,i.column,a.row,a.column)},this.moveBy=function(o,i){this.start.row+=o,this.start.column+=i,this.end.row+=o,this.end.column+=i}}).call(r.prototype),r.fromPoints=function(o,i){return new r(o.row,o.column,i.row,i.column)},r.comparePoints=n,r.comparePoints=function(o,i){return o.row-i.row||o.column-i.column},t.Range=r}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){t.applyDelta=function(n,r){let o=r.start.row,i=r.start.column,a=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=a.substring(0,i)+r.lines[0]+a.substring(i);else{let u=[o,1].concat(r.lines);n.splice.apply(n,u),n[o]=a.substring(0,i)+n[o],n[o+r.lines.length-1]+=a.substring(i)}break;case"remove":var s=r.end.column,c=r.end.row;o===c?n[o]=a.substring(0,i)+a.substring(s):n.splice(o,c-o+1,a.substring(0,i)+n[c].substring(s))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){let n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(i,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});let l=this._eventRegistry[i]||[],s=this._defaultHandlers[i];if(l.length||s){typeof a=="object"&&a||(a={}),a.type||(a.type=i),a.stopPropagation||(a.stopPropagation=r),a.preventDefault||(a.preventDefault=o),l=l.slice();for(let c=0;l.length>c&&(l[c](a,this),!a.propagationStopped);c++);return s&&!a.defaultPrevented?s(a,this):void 0}},n._signal=function(i,a){let l=(this._eventRegistry||{})[i];if(l){l=l.slice();for(let s=0;l.length>s;s++)l[s](a,this)}},n.once=function(i,a){let l=this;a&&this.addEventListener(i,function s(){l.removeEventListener(i,s),a.apply(null,arguments)})},n.setDefaultHandler=function(i,a){let l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[i]){let s=l[i],c=l._disabled_[i];c||(l._disabled_[i]=c=[]),c.push(s);let u=c.indexOf(a);u!=-1&&c.splice(u,1)}l[i]=a},n.removeDefaultHandler=function(i,a){let l=this._defaultHandlers;if(l){let s=l._disabled_[i];if(l[i]==a)l[i],s&&this.setDefaultHandler(i,s.pop());else if(s){let c=s.indexOf(a);c!=-1&&s.splice(c,1)}}},n.on=n.addEventListener=function(i,a,l){this._eventRegistry=this._eventRegistry||{};let s=this._eventRegistry[i];return s||(s=this._eventRegistry[i]=[]),s.indexOf(a)==-1&&s[l?"unshift":"push"](a),a},n.off=n.removeListener=n.removeEventListener=function(i,a){this._eventRegistry=this._eventRegistry||{};let l=this._eventRegistry[i];if(l){let s=l.indexOf(a);s!==-1&&l.splice(s,1)}},n.removeAllListeners=function(i){this._eventRegistry&&(this._eventRegistry[i]=[])},t.EventEmitter=n}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){let n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(i,a,l){this.$onChange=this.onChange.bind(this),this.attach(i),l===void 0?this.setPosition(a.row,a.column):this.setPosition(a,l)};(function(){function i(l,s,c){let u=c?l.column<=s.column:l.column<s.column;return l.row<s.row||l.row==s.row&&u}function a(l,s,c){let u=l.action=="insert",f=(u?1:-1)*(l.end.row-l.start.row),d=(u?1:-1)*(l.end.column-l.start.column),b=l.start,S=u?b:l.end;return i(s,b,c)?{row:s.row,column:s.column}:i(S,s,!c)?{row:s.row+f,column:s.column+(s.row==S.row?d:0)}:{row:b.row,column:b.column}}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row||l.start.row>this.row)){let s=a(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(l,s,c){let u;if(u=c?{row:l,column:s}:this.$clipPositionToDocument(l,s),this.row!=u.row||this.column!=u.column){let f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(l,s){let c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):0>l?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,s))),0>s&&(c.column=0),c}}).call(o.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t){let n=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,i=e("./range").Range,a=e("./anchor").Anchor,l=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){n.implement(this,o),this.setValue=function(s){let c=this.getLength()-1;this.remove(new i(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,c){return new a(this,s,c)},this.$split="aaa".split(/a/).length===0?function(s){return s.replace(/\r\n|\r/g,`
304
304
  `).split(`
305
305
  `)}:function(s){return s.split(/\r\n|\r|\n/)},this.$detectNewLine=function(s){let c=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
306
306
  `,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
@@ -309,7 +309,7 @@ GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
309
309
  `}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(s){this.$newLineMode!==s&&(this.$newLineMode=s,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(s){return s==`\r
310
310
  `||s=="\r"||s==`
311
311
  `},this.getLine=function(s){return this.$lines[s]||""},this.getLines=function(s,c){return this.$lines.slice(s,c+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},this.getLinesForRange=function(s){let c;if(s.start.row===s.end.row)c=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{c=this.getLines(s.start.row,s.end.row),c[0]=(c[0]||"").substring(s.start.column);let u=c.length-1;s.end.row-s.start.row==u&&(c[u]=c[u].substring(0,s.end.column))}return c},this.insertLines=function(s,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,c)},this.removeLines=function(s,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,c)},this.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},this.insert=function(s,c){return 1>=this.getLength()&&this.$detectNewLine(c),this.insertMergedLines(s,this.$split(c))},this.insertInLine=function(s,c){let u=this.clippedPos(s.row,s.column),f=this.pos(s.row,s.column+c.length);return this.applyDelta({start:u,end:f,action:"insert",lines:[c]},!0),this.clonePos(f)},this.clippedPos=function(s,c){let u=this.getLength();s===void 0?s=u:0>s?s=0:s>=u&&(s=u-1,c=void 0);let f=this.getLine(s);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.length),{row:s,column:c}},this.clonePos=function(s){return{row:s.row,column:s.column}},this.pos=function(s,c){return{row:s,column:c}},this.$clipPosition=function(s){let c=this.getLength();return s.row>=c?(s.row=Math.max(0,c-1),s.column=this.getLine(c-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},this.insertFullLines=function(s,c){s=Math.min(Math.max(s,0),this.getLength());let u=0;this.getLength()>s?(c=c.concat([""]),u=0):(c=[""].concat(c),s--,u=this.$lines[s].length),this.insertMergedLines({row:s,column:u},c)},this.insertMergedLines=function(s,c){let u=this.clippedPos(s.row,s.column),f={row:u.row+c.length-1,column:(c.length==1?u.column:0)+c[c.length-1].length};return this.applyDelta({start:u,end:f,action:"insert",lines:c}),this.clonePos(f)},this.remove=function(s){let c=this.clippedPos(s.start.row,s.start.column),u=this.clippedPos(s.end.row,s.end.column);return this.applyDelta({start:c,end:u,action:"remove",lines:this.getLinesForRange({start:c,end:u})}),this.clonePos(c)},this.removeInLine=function(s,c,u){let f=this.clippedPos(s,c),d=this.clippedPos(s,u);return this.applyDelta({start:f,end:d,action:"remove",lines:this.getLinesForRange({start:f,end:d})},!0),this.clonePos(f)},this.removeFullLines=function(s,c){s=Math.min(Math.max(0,s),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);let u=c==this.getLength()-1&&s>0,f=this.getLength()-1>c,d=u?s-1:s,b=u?this.getLine(d).length:0,S=f?c+1:c,O=f?0:this.getLine(S).length,h=new i(d,b,S,O),y=this.$lines.slice(s,c+1);return this.applyDelta({start:h.start,end:h.end,action:"remove",lines:this.getLinesForRange(h)}),y},this.removeNewLine=function(s){this.getLength()-1>s&&s>=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},this.replace=function(s,c){return s instanceof i||(s=i.fromPoints(s.start,s.end)),c.length===0&&s.isEmpty()?s.start:c==this.getTextRange(s)?s.end:(this.remove(s),c?this.insert(s.start,c):s.start)},this.applyDeltas=function(s){for(let c=0;s.length>c;c++)this.applyDelta(s[c])},this.revertDeltas=function(s){for(let c=s.length-1;c>=0;c--)this.revertDelta(s[c])},this.applyDelta=function(s,c){let u=s.action=="insert";(u?1>=s.lines.length&&!s.lines[0]:!i.comparePoints(s.start,s.end))||(u&&s.lines.length>2e4&&this.$splitAndapplyLargeDelta(s,2e4),r(this.$lines,s,c),this._signal("change",s))},this.$splitAndapplyLargeDelta=function(s,c){for(let u=s.lines,f=u.length,d=s.start.row,b=s.start.column,S=0,O=0;;){S=O,O+=c-1;let h=u.slice(S,O);if(O>f){s.lines=h,s.start.row=d+S,s.start.column=b;break}h.push(""),this.applyDelta({start:this.pos(d+S,b),end:this.pos(d+O,b=0),action:s.action,lines:h},!0)}},this.revertDelta=function(s){this.applyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},this.indexToPosition=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=c||0,b=u.length;b>d;d++)if(s-=u[d].length+f,0>s)return{row:d,column:s+u[d].length+f};return{row:b-1,column:u[b-1].length}},this.positionToIndex=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=0,b=Math.min(s.row,u.length),S=c||0;b>S;++S)d+=u[S].length+f;return d+s.column}}).call(l.prototype),t.Document=l}),ace.define("ace/lib/lang",["require","exports","module"],function(e,t){t.last=function(o){return o[o.length-1]},t.stringReverse=function(o){return o.split("").reverse().join("")},t.stringRepeat=function(o,i){for(var a="";i>0;)1&i&&(a+=o),(i>>=1)&&(o+=o);return a};let n=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(o){return o.replace(n,"")},t.stringTrimRight=function(o){return o.replace(r,"")},t.copyObject=function(o){let i={};for(let a in o)i[a]=o[a];return i},t.copyArray=function(o){for(var i=[],a=0,l=o.length;l>a;a++)i[a]=o[a]&&typeof o[a]=="object"?this.copyObject(o[a]):o[a];return i},t.deepCopy=function o(i){if(typeof i!="object"||!i)return i;let a;if(Array.isArray(i)){a=[];for(var l=0;i.length>l;l++)a[l]=o(i[l]);return a}if(Object.prototype.toString.call(i)!=="[object Object]")return i;a={};for(var l in i)a[l]=o(i[l]);return a},t.arrayToMap=function(o){for(var i={},a=0;o.length>a;a++)i[o[a]]=1;return i},t.createMap=function(o){let i=Object.create(null);for(let a in o)i[a]=o[a];return i},t.arrayRemove=function(o,i){for(let a=0;o.length>=a;a++)i===o[a]&&o.splice(a,1)},t.escapeRegExp=function(o){return o.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(o){return o.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(o,i){let a=[];return o.replace(i,function(l){a.push({offset:arguments[arguments.length-2],length:l.length})}),a},t.deferredCall=function(o){var i=null,a=function(){i=null,o()},l=function(s){return l.cancel(),i=setTimeout(a,s||0),l};return l.schedule=l,l.call=function(){return this.cancel(),o(),l},l.cancel=function(){return clearTimeout(i),i=null,l},l.isPending=function(){return i},l},t.delayedCall=function(o,i){let a=null,l=function(){a=null,o()},s=function(c){a==null&&(a=setTimeout(l,c||i))};return s.delay=function(c){a&&clearTimeout(a),a=setTimeout(l,c||i)},s.schedule=s,s.call=function(){this.cancel(),o()},s.cancel=function(){a&&clearTimeout(a),a=null},s.isPending=function(){return a},s}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(e,t){e("../range").Range;let n=e("../document").Document,r=e("../lib/lang"),o=t.Mirror=function(i){this.sender=i;let a=this.doc=new n(""),l=this.deferredUpdate=r.delayedCall(this.onUpdate.bind(this)),s=this;i.on("change",function(c){let u=c.data;if(u[0].start)a.applyDeltas(u);else for(var f=0;u.length>f;f+=2){if(Array.isArray(u[f+1]))var d={action:"insert",start:u[f],lines:u[f+1]};else var d={action:"remove",start:u[f],end:u[f+1]};a.applyDelta(d,!0)}return s.$timeout?l.schedule(s.$timeout):(s.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(i){this.$timeout=i},this.setValue=function(i){this.doc.setValue(i),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(i){this.sender.callback(this.doc.getValue(),i)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function e(){}function t(g){try{return Object.defineProperty(g,"sentinel",{}),"sentinel"in g}catch{}}function n(g){return g=+g,g!==g?g=0:g!==0&&g!==1/0&&g!==-1/0&&(g=(g>0||-1)*Math.floor(Math.abs(g))),g}Function.prototype.bind||(Function.prototype.bind=function(g){let w=this;if(typeof w!="function")throw new TypeError("Function.prototype.bind called on incompatible "+w);var E=f.call(arguments,1),C=function(){if(this instanceof C){let x=w.apply(this,E.concat(f.call(arguments)));return Object(x)===x?x:this}return w.apply(g,E.concat(f.call(arguments)))};return w.prototype&&(e.prototype=w.prototype,C.prototype=new e,e.prototype=null),C});var r,o,i,a,l,s=Function.prototype.call,c=Array.prototype,u=Object.prototype,f=c.slice,d=s.bind(u.toString),b=s.bind(u.hasOwnProperty);if((l=b(u,"__defineGetter__"))&&(r=s.bind(u.__defineGetter__),o=s.bind(u.__defineSetter__),i=s.bind(u.__lookupGetter__),a=s.bind(u.__lookupSetter__)),[1,2].splice(0).length!=2)if(function(){function g(C){var x=Array(C+2);return x[0]=x[1]=0,x}var w,E=[];return E.splice.apply(E,g(20)),E.splice.apply(E,g(26)),w=E.length,E.splice(5,0,"XXX"),w+1==E.length?!0:void 0}()){var S=Array.prototype.splice;Array.prototype.splice=function(g,w){return arguments.length?S.apply(this,[g===void 0?0:g,w===void 0?this.length-g:w].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(g,w){var E=this.length;g>0?g>E&&(g=E):g==null?g=0:0>g&&(g=Math.max(E+g,0)),E>g+w||(w=E-g);var C=this.slice(g,g+w),x=f.call(arguments,2),T=x.length;if(g===E)T&&this.push.apply(this,x);else{var M=Math.min(w,E-g),L=g+M,j=L+T-M,D=E-L,V=E-M;if(L>j)for(var Z=0;D>Z;++Z)this[j+Z]=this[L+Z];else if(j>L)for(Z=D;Z--;)this[j+Z]=this[L+Z];if(T&&g===V)this.length=V,this.push.apply(this,x);else for(this.length=V+T,Z=0;T>Z;++Z)this[g+Z]=x[Z]}return C};Array.isArray||(Array.isArray=function(g){return d(g)=="[object Array]"});let O=Object("a"),h=O[0]!="a"||!(0 in O);if(Array.prototype.forEach||(Array.prototype.forEach=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,C=arguments[1],x=-1,T=E.length>>>0;if(d(g)!="[object Function]")throw new TypeError;for(;T>++x;)x in E&&g.call(C,E[x],x,w)}),Array.prototype.map||(Array.prototype.map=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,C=E.length>>>0,x=Array(C),T=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let M=0;C>M;M++)M in E&&(x[M]=g.call(T,E[M],M,w));return x}),Array.prototype.filter||(Array.prototype.filter=function(g){let w,E=m(this),C=h&&d(this)=="[object String]"?this.split(""):E,x=C.length>>>0,T=[],M=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let L=0;x>L;L++)L in C&&(w=C[L],g.call(M,w,L,E)&&T.push(w));return T}),Array.prototype.every||(Array.prototype.every=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,C=E.length>>>0,x=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let T=0;C>T;T++)if(T in E&&!g.call(x,E[T],T,w))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,C=E.length>>>0,x=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let T=0;C>T;T++)if(T in E&&g.call(x,E[T],T,w))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,C=E.length>>>0;if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");if(!C&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");let x,T=0;if(arguments.length>=2)x=arguments[1];else for(;;){if(T in E){x=E[T++];break}if(++T>=C)throw new TypeError("reduce of empty array with no initial value")}for(;C>T;T++)T in E&&(x=g.call(void 0,x,E[T],T,w));return x}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,C=E.length>>>0;if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");if(!C&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");let x,T=C-1;if(arguments.length>=2)x=arguments[1];else for(;;){if(T in E){x=E[T--];break}if(0>--T)throw new TypeError("reduceRight of empty array with no initial value")}do T in this&&(x=g.call(void 0,x,E[T],T,w));while(T--);return x}),Array.prototype.indexOf&&[0,1].indexOf(1,2)==-1||(Array.prototype.indexOf=function(g){let w=h&&d(this)=="[object String]"?this.split(""):m(this),E=w.length>>>0;if(!E)return-1;let C=0;for(arguments.length>1&&(C=n(arguments[1])),C=C>=0?C:Math.max(0,E+C);E>C;C++)if(C in w&&w[C]===g)return C;return-1}),Array.prototype.lastIndexOf&&[0,1].lastIndexOf(0,-3)==-1||(Array.prototype.lastIndexOf=function(g){let w=h&&d(this)=="[object String]"?this.split(""):m(this),E=w.length>>>0;if(!E)return-1;let C=E-1;for(arguments.length>1&&(C=Math.min(C,n(arguments[1]))),C=C>=0?C:E-Math.abs(C);C>=0;C--)if(C in w&&g===w[C])return C;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(g){return g.__proto__||(g.constructor?g.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){let g="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(w,E){if(typeof w!="object"&&typeof w!="function"||w===null)throw new TypeError(g+w);if(b(w,E)){var C,x,T;if(C={enumerable:!0,configurable:!0},l){let M=w.__proto__;w.__proto__=u;var x=i(w,E),T=a(w,E);if(w.__proto__=M,x||T)return x&&(C.get=x),T&&(C.set=T),C}return C.value=w[E],C}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(g){return Object.keys(g)}),!Object.create){let g;g=Object.prototype.__proto__===null?function(){return{__proto__:null}}:function(){let w={};for(let E in w)w[E]=null;return w.constructor=w.hasOwnProperty=w.propertyIsEnumerable=w.isPrototypeOf=w.toLocaleString=w.toString=w.valueOf=w.__proto__=null,w},Object.create=function(w,E){let C;if(w===null)C=g();else{if(typeof w!="object")throw new TypeError("typeof prototype["+typeof w+"] != 'object'");let x=function(){};x.prototype=w,C=new x,C.__proto__=w}return E!==void 0&&Object.defineProperties(C,E),C}}if(Object.defineProperty){let g=t({}),w=typeof document>"u"||t(document.createElement("div"));if(!g||!w)var y=Object.defineProperty}if(!Object.defineProperty||y){let g="Property description must be an object: ",w="Object.defineProperty called on non-object: ",E="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(C,x,T){if(typeof C!="object"&&typeof C!="function"||C===null)throw new TypeError(w+C);if(typeof T!="object"&&typeof T!="function"||T===null)throw new TypeError(g+T);if(y)try{return y.call(Object,C,x,T)}catch{}if(b(T,"value"))if(l&&(i(C,x)||a(C,x))){var M=C.__proto__;C.__proto__=u,delete C[x],C[x]=T.value,C.__proto__=M}else C[x]=T.value;else{if(!l)throw new TypeError(E);b(T,"get")&&r(C,x,T.get),b(T,"set")&&o(C,x,T.set)}return C}}Object.defineProperties||(Object.defineProperties=function(g,w){for(let E in w)b(w,E)&&Object.defineProperty(g,E,w[E]);return g}),Object.seal||(Object.seal=function(g){return g}),Object.freeze||(Object.freeze=function(g){return g});try{Object.freeze(function(){})}catch{Object.freeze=function(w){return function(E){return typeof E=="function"?E:w(E)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(g){return g}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(g){if(Object(g)===g)throw new TypeError;for(var w="";b(g,w);)w+="?";g[w]=!0;let E=b(g,w);return delete g[w],E}),!Object.keys){let g=!0,w=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],E=w.length;for(let C in{toString:null})g=!1;Object.keys=function(C){if(typeof C!="object"&&typeof C!="function"||C===null)throw new TypeError("Object.keys called on a non-object");let x=[];for(let j in C)b(C,j)&&x.push(j);if(g)for(var T=0,M=E;M>T;T++){var L=w[T];b(C,L)&&x.push(L)}return x}}Date.now||(Date.now=function(){return new Date().getTime()});let p=`
312
- v\f\r   ᠎              \u2028\u2029\uFEFF`;if(!String.prototype.trim||p.trim()){p="["+p+"]";let g=RegExp("^"+p+p+"*"),w=RegExp(p+p+"*$");String.prototype.trim=function(){return(this+"").replace(g,"").replace(w,"")}}var m=function(g){if(g==null)throw new TypeError("can't convert "+g+" to object");return Object(g)}});const v6=(We.exports==null?{}:We.exports).default||We.exports,_6=(We.exports==null?{}:We.exports).inherits,y6=(We.exports==null?{}:We.exports).mixin,b6=(We.exports==null?{}:We.exports).implement,w6=(We.exports==null?{}:We.exports).Range,x6=(We.exports==null?{}:We.exports).applyDelta,S6=(We.exports==null?{}:We.exports).EventEmitter,C6=(We.exports==null?{}:We.exports).Anchor,E6=(We.exports==null?{}:We.exports).Document,O6=(We.exports==null?{}:We.exports).last,$6=(We.exports==null?{}:We.exports).stringReverse,T6=(We.exports==null?{}:We.exports).stringRepeat,P6=(We.exports==null?{}:We.exports).stringTrimLeft,R6=(We.exports==null?{}:We.exports).stringTrimRight,j6=(We.exports==null?{}:We.exports).copyObject,M6=(We.exports==null?{}:We.exports).copyArray,I6=(We.exports==null?{}:We.exports).deepCopy,A6=(We.exports==null?{}:We.exports).arrayToMap,N6=(We.exports==null?{}:We.exports).createMap,k6=(We.exports==null?{}:We.exports).arrayRemove,L6=(We.exports==null?{}:We.exports).escapeRegExp,F6=(We.exports==null?{}:We.exports).escapeHTML,D6=(We.exports==null?{}:We.exports).getMatchOffsets,B6=(We.exports==null?{}:We.exports).deferredCall,z6=(We.exports==null?{}:We.exports).delayedCall,q6=(We.exports==null?{}:We.exports).Mirror,V6=Object.freeze(Object.defineProperty({__proto__:null,Anchor:C6,Document:E6,EventEmitter:S6,Mirror:q6,Range:w6,applyDelta:x6,arrayRemove:k6,arrayToMap:A6,copyArray:M6,copyObject:j6,createMap:N6,deepCopy:I6,default:v6,deferredCall:B6,delayedCall:z6,escapeHTML:F6,escapeRegExp:L6,getMatchOffsets:D6,implement:b6,inherits:_6,last:O6,mixin:y6,stringRepeat:T6,stringReverse:$6,stringTrimLeft:P6,stringTrimRight:R6},Symbol.toStringTag,{value:"Module"}));var Ve={exports:{}};(function(e){function t(o,i){for(var a=o,l="";a;){var s=i[a];if(typeof s=="string")return s+l;if(s)return s.location.replace(/\/*$/,"/")+(l||s.main||s.name);if(s===!1)return"";var c=a.lastIndexOf("/");if(c===-1)break;l=a.substr(c)+l,a=a.slice(0,c)}return o}if(!(e.window!==void 0&&e.document||e.acequire&&e.define)){e.console||(e.console=function(){var o=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:o})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(o,i,a,l,s){postMessage({type:"error",data:{message:o,data:s.data,file:i,line:a,col:l,stack:s.stack}})},e.normalizeModule=function(o,i){if(i.indexOf("!")!==-1){var a=i.split("!");return e.normalizeModule(o,a[0])+"!"+e.normalizeModule(o,a[1])}if(i.charAt(0)=="."){var l=o.split("/").slice(0,-1).join("/");for(i=(l?l+"/":"")+i;i.indexOf(".")!==-1&&s!=i;){var s=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},e.acequire=function(i,a){if(a||(a=i,i=null),!a.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");a=e.normalizeModule(i,a);var l=e.acequire.modules[a];if(l)return l.initialized||(l.initialized=!0,l.exports=l.factory().exports),l.exports;if(!e.acequire.tlns)return console.log("unable to load "+a);var s=t(a,e.acequire.tlns);return s.slice(-3)!=".js"&&(s+=".js"),e.acequire.id=a,e.acequire.modules[a]={},importScripts(s),e.acequire(i,a)},e.acequire.modules={},e.acequire.tlns={},e.define=function(o,i,a){if(arguments.length==2?(a=i,typeof o!="string"&&(i=o,o=e.acequire.id)):arguments.length==1&&(a=o,i=[],o=e.acequire.id),typeof a!="function")return e.acequire.modules[o]={exports:a,initialized:!0},void 0;i.length||(i=["require","exports","module"]);var l=function(s){return e.acequire(o,s)};e.acequire.modules[o]={exports:{},factory:function(){var s=this,c=a.apply(this,i.map(function(u){switch(u){case"require":return l;case"exports":return s.exports;case"module":return s;default:return l(u)}}));return c&&(s.exports=c),s}}},e.define.amd={},acequire.tlns={},e.initBaseUrls=function(o){for(var i in o)acequire.tlns[i]=o[i]},e.initSender=function(){var o=e.acequire("ace/lib/event_emitter").EventEmitter,i=e.acequire("ace/lib/oop"),a=function(){};return(function(){i.implement(this,o),this.callback=function(l,s){postMessage({type:"call",id:s,data:l})},this.emit=function(l,s){postMessage({type:"event",name:l,data:s})}}).call(a.prototype),new a};var n=e.main=null,r=e.sender=null;e.onmessage=function(o){var i=o.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),acequire("ace/lib/es5-shim"),r=e.sender=e.initSender();var a=acequire(i.module)[i.classname];n=e.main=new a(r)}}}})(void 0),ace.define("ace/lib/oop",["require","exports","module"],function(e,t){t.inherits=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,r){for(var o in r)n[o]=r[o];return n},t.implement=function(n,r){t.mixin(n,r)}}),ace.define("ace/range",["require","exports","module"],function(e,t){var n=function(o,i){return o.row-i.row||o.column-i.column},r=function(o,i,a,l){this.start={row:o,column:i},this.end={row:a,column:l}};(function(){this.isEqual=function(o){return this.start.row===o.start.row&&this.end.row===o.end.row&&this.start.column===o.start.column&&this.end.column===o.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(o,i){return this.compare(o,i)==0},this.compareRange=function(o){var i,a=o.end,l=o.start;return i=this.compare(a.row,a.column),i==1?(i=this.compare(l.row,l.column),i==1?2:i==0?1:0):i==-1?-2:(i=this.compare(l.row,l.column),i==-1?-1:i==1?42:0)},this.comparePoint=function(o){return this.compare(o.row,o.column)},this.containsRange=function(o){return this.comparePoint(o.start)==0&&this.comparePoint(o.end)==0},this.intersects=function(o){var i=this.compareRange(o);return i==-1||i==0||i==1},this.isEnd=function(o,i){return this.end.row==o&&this.end.column==i},this.isStart=function(o,i){return this.start.row==o&&this.start.column==i},this.setStart=function(o,i){typeof o=="object"?(this.start.column=o.column,this.start.row=o.row):(this.start.row=o,this.start.column=i)},this.setEnd=function(o,i){typeof o=="object"?(this.end.column=o.column,this.end.row=o.row):(this.end.row=o,this.end.column=i)},this.inside=function(o,i){return this.compare(o,i)==0?!(this.isEnd(o,i)||this.isStart(o,i)):!1},this.insideStart=function(o,i){return this.compare(o,i)==0?!this.isEnd(o,i):!1},this.insideEnd=function(o,i){return this.compare(o,i)==0?!this.isStart(o,i):!1},this.compare=function(o,i){return this.isMultiLine()||o!==this.start.row?this.start.row>o?-1:o>this.end.row?1:this.start.row===o?i>=this.start.column?0:-1:this.end.row===o?this.end.column>=i?0:1:0:this.start.column>i?-1:i>this.end.column?1:0},this.compareStart=function(o,i){return this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.compareEnd=function(o,i){return this.end.row==o&&this.end.column==i?1:this.compare(o,i)},this.compareInside=function(o,i){return this.end.row==o&&this.end.column==i?1:this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.clipRows=function(o,i){if(this.end.row>i)var a={row:i+1,column:0};else if(o>this.end.row)var a={row:o,column:0};if(this.start.row>i)var l={row:i+1,column:0};else if(o>this.start.row)var l={row:o,column:0};return r.fromPoints(l||this.start,a||this.end)},this.extend=function(o,i){var a=this.compare(o,i);if(a==0)return this;if(a==-1)var l={row:o,column:i};else var s={row:o,column:i};return r.fromPoints(l||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(o){var i=o.documentToScreenPosition(this.start),a=o.documentToScreenPosition(this.end);return new r(i.row,i.column,a.row,a.column)},this.moveBy=function(o,i){this.start.row+=o,this.start.column+=i,this.end.row+=o,this.end.column+=i}}).call(r.prototype),r.fromPoints=function(o,i){return new r(o.row,o.column,i.row,i.column)},r.comparePoints=n,r.comparePoints=function(o,i){return o.row-i.row||o.column-i.column},t.Range=r}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){t.applyDelta=function(n,r){var o=r.start.row,i=r.start.column,a=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=a.substring(0,i)+r.lines[0]+a.substring(i);else{var s=[o,1].concat(r.lines);n.splice.apply(n,s),n[o]=a.substring(0,i)+n[o],n[o+r.lines.length-1]+=a.substring(i)}break;case"remove":var c=r.end.column,u=r.end.row;o===u?n[o]=a.substring(0,i)+a.substring(c):n.splice(o,u-o+1,a.substring(0,i)+n[u].substring(c))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){var n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(i,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var l=this._eventRegistry[i]||[],s=this._defaultHandlers[i];if(l.length||s){typeof a=="object"&&a||(a={}),a.type||(a.type=i),a.stopPropagation||(a.stopPropagation=r),a.preventDefault||(a.preventDefault=o),l=l.slice();for(var c=0;l.length>c&&(l[c](a,this),!a.propagationStopped);c++);return s&&!a.defaultPrevented?s(a,this):void 0}},n._signal=function(i,a){var l=(this._eventRegistry||{})[i];if(l){l=l.slice();for(var s=0;l.length>s;s++)l[s](a,this)}},n.once=function(i,a){var l=this;a&&this.addEventListener(i,function s(){l.removeEventListener(i,s),a.apply(null,arguments)})},n.setDefaultHandler=function(i,a){var l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[i]){var s=l[i],c=l._disabled_[i];c||(l._disabled_[i]=c=[]),c.push(s);var u=c.indexOf(a);u!=-1&&c.splice(u,1)}l[i]=a},n.removeDefaultHandler=function(i,a){var l=this._defaultHandlers;if(l){var s=l._disabled_[i];if(l[i]==a)l[i],s&&this.setDefaultHandler(i,s.pop());else if(s){var c=s.indexOf(a);c!=-1&&s.splice(c,1)}}},n.on=n.addEventListener=function(i,a,l){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[i];return s||(s=this._eventRegistry[i]=[]),s.indexOf(a)==-1&&s[l?"unshift":"push"](a),a},n.off=n.removeListener=n.removeEventListener=function(i,a){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[i];if(l){var s=l.indexOf(a);s!==-1&&l.splice(s,1)}},n.removeAllListeners=function(i){this._eventRegistry&&(this._eventRegistry[i]=[])},t.EventEmitter=n}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){var n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(i,a,l){this.$onChange=this.onChange.bind(this),this.attach(i),l===void 0?this.setPosition(a.row,a.column):this.setPosition(a,l)};(function(){function i(l,s,c){var u=c?l.column<=s.column:l.column<s.column;return l.row<s.row||l.row==s.row&&u}function a(l,s,c){var u=l.action=="insert",f=(u?1:-1)*(l.end.row-l.start.row),d=(u?1:-1)*(l.end.column-l.start.column),b=l.start,S=u?b:l.end;return i(s,b,c)?{row:s.row,column:s.column}:i(S,s,!c)?{row:s.row+f,column:s.column+(s.row==S.row?d:0)}:{row:b.row,column:b.column}}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row||l.start.row>this.row)){var s=a(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(l,s,c){var u;if(u=c?{row:l,column:s}:this.$clipPositionToDocument(l,s),this.row!=u.row||this.column!=u.column){var f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(l,s){var c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):0>l?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,s))),0>s&&(c.column=0),c}}).call(o.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t){var n=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,i=e("./range").Range,a=e("./anchor").Anchor,l=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){n.implement(this,o),this.setValue=function(s){var c=this.getLength()-1;this.remove(new i(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,c){return new a(this,s,c)},this.$split="aaa".split(/a/).length===0?function(s){return s.replace(/\r\n|\r/g,`
312
+ v\f\r   ᠎              \u2028\u2029\uFEFF`;if(!String.prototype.trim||p.trim()){p="["+p+"]";let g=RegExp("^"+p+p+"*"),w=RegExp(p+p+"*$");String.prototype.trim=function(){return(this+"").replace(g,"").replace(w,"")}}var m=function(g){if(g==null)throw new TypeError("can't convert "+g+" to object");return Object(g)}});const v8=(We.exports==null?{}:We.exports).default||We.exports,_8=(We.exports==null?{}:We.exports).inherits,y8=(We.exports==null?{}:We.exports).mixin,b8=(We.exports==null?{}:We.exports).implement,w8=(We.exports==null?{}:We.exports).Range,x8=(We.exports==null?{}:We.exports).applyDelta,S8=(We.exports==null?{}:We.exports).EventEmitter,C8=(We.exports==null?{}:We.exports).Anchor,E8=(We.exports==null?{}:We.exports).Document,O8=(We.exports==null?{}:We.exports).last,$8=(We.exports==null?{}:We.exports).stringReverse,T8=(We.exports==null?{}:We.exports).stringRepeat,P8=(We.exports==null?{}:We.exports).stringTrimLeft,R8=(We.exports==null?{}:We.exports).stringTrimRight,j8=(We.exports==null?{}:We.exports).copyObject,M8=(We.exports==null?{}:We.exports).copyArray,I8=(We.exports==null?{}:We.exports).deepCopy,A8=(We.exports==null?{}:We.exports).arrayToMap,N8=(We.exports==null?{}:We.exports).createMap,k8=(We.exports==null?{}:We.exports).arrayRemove,L8=(We.exports==null?{}:We.exports).escapeRegExp,F8=(We.exports==null?{}:We.exports).escapeHTML,D8=(We.exports==null?{}:We.exports).getMatchOffsets,B8=(We.exports==null?{}:We.exports).deferredCall,z8=(We.exports==null?{}:We.exports).delayedCall,q8=(We.exports==null?{}:We.exports).Mirror,V8=Object.freeze(Object.defineProperty({__proto__:null,Anchor:C8,Document:E8,EventEmitter:S8,Mirror:q8,Range:w8,applyDelta:x8,arrayRemove:k8,arrayToMap:A8,copyArray:M8,copyObject:j8,createMap:N8,deepCopy:I8,default:v8,deferredCall:B8,delayedCall:z8,escapeHTML:F8,escapeRegExp:L8,getMatchOffsets:D8,implement:b8,inherits:_8,last:O8,mixin:y8,stringRepeat:T8,stringReverse:$8,stringTrimLeft:P8,stringTrimRight:R8},Symbol.toStringTag,{value:"Module"}));var Ve={exports:{}};(function(e){function t(o,i){for(var a=o,l="";a;){var s=i[a];if(typeof s=="string")return s+l;if(s)return s.location.replace(/\/*$/,"/")+(l||s.main||s.name);if(s===!1)return"";var c=a.lastIndexOf("/");if(c===-1)break;l=a.substr(c)+l,a=a.slice(0,c)}return o}if(!(e.window!==void 0&&e.document||e.acequire&&e.define)){e.console||(e.console=function(){var o=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:o})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(o,i,a,l,s){postMessage({type:"error",data:{message:o,data:s.data,file:i,line:a,col:l,stack:s.stack}})},e.normalizeModule=function(o,i){if(i.indexOf("!")!==-1){var a=i.split("!");return e.normalizeModule(o,a[0])+"!"+e.normalizeModule(o,a[1])}if(i.charAt(0)=="."){var l=o.split("/").slice(0,-1).join("/");for(i=(l?l+"/":"")+i;i.indexOf(".")!==-1&&s!=i;){var s=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},e.acequire=function(i,a){if(a||(a=i,i=null),!a.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");a=e.normalizeModule(i,a);var l=e.acequire.modules[a];if(l)return l.initialized||(l.initialized=!0,l.exports=l.factory().exports),l.exports;if(!e.acequire.tlns)return console.log("unable to load "+a);var s=t(a,e.acequire.tlns);return s.slice(-3)!=".js"&&(s+=".js"),e.acequire.id=a,e.acequire.modules[a]={},importScripts(s),e.acequire(i,a)},e.acequire.modules={},e.acequire.tlns={},e.define=function(o,i,a){if(arguments.length==2?(a=i,typeof o!="string"&&(i=o,o=e.acequire.id)):arguments.length==1&&(a=o,i=[],o=e.acequire.id),typeof a!="function")return e.acequire.modules[o]={exports:a,initialized:!0},void 0;i.length||(i=["require","exports","module"]);var l=function(s){return e.acequire(o,s)};e.acequire.modules[o]={exports:{},factory:function(){var s=this,c=a.apply(this,i.map(function(u){switch(u){case"require":return l;case"exports":return s.exports;case"module":return s;default:return l(u)}}));return c&&(s.exports=c),s}}},e.define.amd={},acequire.tlns={},e.initBaseUrls=function(o){for(var i in o)acequire.tlns[i]=o[i]},e.initSender=function(){var o=e.acequire("ace/lib/event_emitter").EventEmitter,i=e.acequire("ace/lib/oop"),a=function(){};return(function(){i.implement(this,o),this.callback=function(l,s){postMessage({type:"call",id:s,data:l})},this.emit=function(l,s){postMessage({type:"event",name:l,data:s})}}).call(a.prototype),new a};var n=e.main=null,r=e.sender=null;e.onmessage=function(o){var i=o.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),acequire("ace/lib/es5-shim"),r=e.sender=e.initSender();var a=acequire(i.module)[i.classname];n=e.main=new a(r)}}}})(void 0),ace.define("ace/lib/oop",["require","exports","module"],function(e,t){t.inherits=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,r){for(var o in r)n[o]=r[o];return n},t.implement=function(n,r){t.mixin(n,r)}}),ace.define("ace/range",["require","exports","module"],function(e,t){var n=function(o,i){return o.row-i.row||o.column-i.column},r=function(o,i,a,l){this.start={row:o,column:i},this.end={row:a,column:l}};(function(){this.isEqual=function(o){return this.start.row===o.start.row&&this.end.row===o.end.row&&this.start.column===o.start.column&&this.end.column===o.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(o,i){return this.compare(o,i)==0},this.compareRange=function(o){var i,a=o.end,l=o.start;return i=this.compare(a.row,a.column),i==1?(i=this.compare(l.row,l.column),i==1?2:i==0?1:0):i==-1?-2:(i=this.compare(l.row,l.column),i==-1?-1:i==1?42:0)},this.comparePoint=function(o){return this.compare(o.row,o.column)},this.containsRange=function(o){return this.comparePoint(o.start)==0&&this.comparePoint(o.end)==0},this.intersects=function(o){var i=this.compareRange(o);return i==-1||i==0||i==1},this.isEnd=function(o,i){return this.end.row==o&&this.end.column==i},this.isStart=function(o,i){return this.start.row==o&&this.start.column==i},this.setStart=function(o,i){typeof o=="object"?(this.start.column=o.column,this.start.row=o.row):(this.start.row=o,this.start.column=i)},this.setEnd=function(o,i){typeof o=="object"?(this.end.column=o.column,this.end.row=o.row):(this.end.row=o,this.end.column=i)},this.inside=function(o,i){return this.compare(o,i)==0?!(this.isEnd(o,i)||this.isStart(o,i)):!1},this.insideStart=function(o,i){return this.compare(o,i)==0?!this.isEnd(o,i):!1},this.insideEnd=function(o,i){return this.compare(o,i)==0?!this.isStart(o,i):!1},this.compare=function(o,i){return this.isMultiLine()||o!==this.start.row?this.start.row>o?-1:o>this.end.row?1:this.start.row===o?i>=this.start.column?0:-1:this.end.row===o?this.end.column>=i?0:1:0:this.start.column>i?-1:i>this.end.column?1:0},this.compareStart=function(o,i){return this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.compareEnd=function(o,i){return this.end.row==o&&this.end.column==i?1:this.compare(o,i)},this.compareInside=function(o,i){return this.end.row==o&&this.end.column==i?1:this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.clipRows=function(o,i){if(this.end.row>i)var a={row:i+1,column:0};else if(o>this.end.row)var a={row:o,column:0};if(this.start.row>i)var l={row:i+1,column:0};else if(o>this.start.row)var l={row:o,column:0};return r.fromPoints(l||this.start,a||this.end)},this.extend=function(o,i){var a=this.compare(o,i);if(a==0)return this;if(a==-1)var l={row:o,column:i};else var s={row:o,column:i};return r.fromPoints(l||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(o){var i=o.documentToScreenPosition(this.start),a=o.documentToScreenPosition(this.end);return new r(i.row,i.column,a.row,a.column)},this.moveBy=function(o,i){this.start.row+=o,this.start.column+=i,this.end.row+=o,this.end.column+=i}}).call(r.prototype),r.fromPoints=function(o,i){return new r(o.row,o.column,i.row,i.column)},r.comparePoints=n,r.comparePoints=function(o,i){return o.row-i.row||o.column-i.column},t.Range=r}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){t.applyDelta=function(n,r){var o=r.start.row,i=r.start.column,a=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=a.substring(0,i)+r.lines[0]+a.substring(i);else{var s=[o,1].concat(r.lines);n.splice.apply(n,s),n[o]=a.substring(0,i)+n[o],n[o+r.lines.length-1]+=a.substring(i)}break;case"remove":var c=r.end.column,u=r.end.row;o===u?n[o]=a.substring(0,i)+a.substring(c):n.splice(o,u-o+1,a.substring(0,i)+n[u].substring(c))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){var n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(i,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var l=this._eventRegistry[i]||[],s=this._defaultHandlers[i];if(l.length||s){typeof a=="object"&&a||(a={}),a.type||(a.type=i),a.stopPropagation||(a.stopPropagation=r),a.preventDefault||(a.preventDefault=o),l=l.slice();for(var c=0;l.length>c&&(l[c](a,this),!a.propagationStopped);c++);return s&&!a.defaultPrevented?s(a,this):void 0}},n._signal=function(i,a){var l=(this._eventRegistry||{})[i];if(l){l=l.slice();for(var s=0;l.length>s;s++)l[s](a,this)}},n.once=function(i,a){var l=this;a&&this.addEventListener(i,function s(){l.removeEventListener(i,s),a.apply(null,arguments)})},n.setDefaultHandler=function(i,a){var l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[i]){var s=l[i],c=l._disabled_[i];c||(l._disabled_[i]=c=[]),c.push(s);var u=c.indexOf(a);u!=-1&&c.splice(u,1)}l[i]=a},n.removeDefaultHandler=function(i,a){var l=this._defaultHandlers;if(l){var s=l._disabled_[i];if(l[i]==a)l[i],s&&this.setDefaultHandler(i,s.pop());else if(s){var c=s.indexOf(a);c!=-1&&s.splice(c,1)}}},n.on=n.addEventListener=function(i,a,l){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[i];return s||(s=this._eventRegistry[i]=[]),s.indexOf(a)==-1&&s[l?"unshift":"push"](a),a},n.off=n.removeListener=n.removeEventListener=function(i,a){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[i];if(l){var s=l.indexOf(a);s!==-1&&l.splice(s,1)}},n.removeAllListeners=function(i){this._eventRegistry&&(this._eventRegistry[i]=[])},t.EventEmitter=n}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){var n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(i,a,l){this.$onChange=this.onChange.bind(this),this.attach(i),l===void 0?this.setPosition(a.row,a.column):this.setPosition(a,l)};(function(){function i(l,s,c){var u=c?l.column<=s.column:l.column<s.column;return l.row<s.row||l.row==s.row&&u}function a(l,s,c){var u=l.action=="insert",f=(u?1:-1)*(l.end.row-l.start.row),d=(u?1:-1)*(l.end.column-l.start.column),b=l.start,S=u?b:l.end;return i(s,b,c)?{row:s.row,column:s.column}:i(S,s,!c)?{row:s.row+f,column:s.column+(s.row==S.row?d:0)}:{row:b.row,column:b.column}}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row||l.start.row>this.row)){var s=a(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(l,s,c){var u;if(u=c?{row:l,column:s}:this.$clipPositionToDocument(l,s),this.row!=u.row||this.column!=u.column){var f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(l,s){var c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):0>l?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,s))),0>s&&(c.column=0),c}}).call(o.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t){var n=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,i=e("./range").Range,a=e("./anchor").Anchor,l=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){n.implement(this,o),this.setValue=function(s){var c=this.getLength()-1;this.remove(new i(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,c){return new a(this,s,c)},this.$split="aaa".split(/a/).length===0?function(s){return s.replace(/\r\n|\r/g,`
313
313
  `).split(`
314
314
  `)}:function(s){return s.split(/\r\n|\r|\n/)},this.$detectNewLine=function(s){var c=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
315
315
  `,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
@@ -319,4 +319,4 @@ v\f\r   ᠎              \u2028\u2029\uFEFF`;if(!
319
319
  `||s=="\r"||s==`
320
320
  `},this.getLine=function(s){return this.$lines[s]||""},this.getLines=function(s,c){return this.$lines.slice(s,c+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},this.getLinesForRange=function(s){var c;if(s.start.row===s.end.row)c=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{c=this.getLines(s.start.row,s.end.row),c[0]=(c[0]||"").substring(s.start.column);var u=c.length-1;s.end.row-s.start.row==u&&(c[u]=c[u].substring(0,s.end.column))}return c},this.insertLines=function(s,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,c)},this.removeLines=function(s,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,c)},this.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},this.insert=function(s,c){return 1>=this.getLength()&&this.$detectNewLine(c),this.insertMergedLines(s,this.$split(c))},this.insertInLine=function(s,c){var u=this.clippedPos(s.row,s.column),f=this.pos(s.row,s.column+c.length);return this.applyDelta({start:u,end:f,action:"insert",lines:[c]},!0),this.clonePos(f)},this.clippedPos=function(s,c){var u=this.getLength();s===void 0?s=u:0>s?s=0:s>=u&&(s=u-1,c=void 0);var f=this.getLine(s);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.length),{row:s,column:c}},this.clonePos=function(s){return{row:s.row,column:s.column}},this.pos=function(s,c){return{row:s,column:c}},this.$clipPosition=function(s){var c=this.getLength();return s.row>=c?(s.row=Math.max(0,c-1),s.column=this.getLine(c-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},this.insertFullLines=function(s,c){s=Math.min(Math.max(s,0),this.getLength());var u=0;this.getLength()>s?(c=c.concat([""]),u=0):(c=[""].concat(c),s--,u=this.$lines[s].length),this.insertMergedLines({row:s,column:u},c)},this.insertMergedLines=function(s,c){var u=this.clippedPos(s.row,s.column),f={row:u.row+c.length-1,column:(c.length==1?u.column:0)+c[c.length-1].length};return this.applyDelta({start:u,end:f,action:"insert",lines:c}),this.clonePos(f)},this.remove=function(s){var c=this.clippedPos(s.start.row,s.start.column),u=this.clippedPos(s.end.row,s.end.column);return this.applyDelta({start:c,end:u,action:"remove",lines:this.getLinesForRange({start:c,end:u})}),this.clonePos(c)},this.removeInLine=function(s,c,u){var f=this.clippedPos(s,c),d=this.clippedPos(s,u);return this.applyDelta({start:f,end:d,action:"remove",lines:this.getLinesForRange({start:f,end:d})},!0),this.clonePos(f)},this.removeFullLines=function(s,c){s=Math.min(Math.max(0,s),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var u=c==this.getLength()-1&&s>0,f=this.getLength()-1>c,d=u?s-1:s,b=u?this.getLine(d).length:0,S=f?c+1:c,O=f?0:this.getLine(S).length,h=new i(d,b,S,O),y=this.$lines.slice(s,c+1);return this.applyDelta({start:h.start,end:h.end,action:"remove",lines:this.getLinesForRange(h)}),y},this.removeNewLine=function(s){this.getLength()-1>s&&s>=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},this.replace=function(s,c){return s instanceof i||(s=i.fromPoints(s.start,s.end)),c.length===0&&s.isEmpty()?s.start:c==this.getTextRange(s)?s.end:(this.remove(s),c?this.insert(s.start,c):s.start)},this.applyDeltas=function(s){for(var c=0;s.length>c;c++)this.applyDelta(s[c])},this.revertDeltas=function(s){for(var c=s.length-1;c>=0;c--)this.revertDelta(s[c])},this.applyDelta=function(s,c){var u=s.action=="insert";(u?1>=s.lines.length&&!s.lines[0]:!i.comparePoints(s.start,s.end))||(u&&s.lines.length>2e4&&this.$splitAndapplyLargeDelta(s,2e4),r(this.$lines,s,c),this._signal("change",s))},this.$splitAndapplyLargeDelta=function(s,c){for(var u=s.lines,f=u.length,d=s.start.row,b=s.start.column,S=0,O=0;;){S=O,O+=c-1;var h=u.slice(S,O);if(O>f){s.lines=h,s.start.row=d+S,s.start.column=b;break}h.push(""),this.applyDelta({start:this.pos(d+S,b),end:this.pos(d+O,b=0),action:s.action,lines:h},!0)}},this.revertDelta=function(s){this.applyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},this.indexToPosition=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=c||0,b=u.length;b>d;d++)if(s-=u[d].length+f,0>s)return{row:d,column:s+u[d].length+f};return{row:b-1,column:u[b-1].length}},this.positionToIndex=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=0,b=Math.min(s.row,u.length),S=c||0;b>S;++S)d+=u[S].length+f;return d+s.column}}).call(l.prototype),t.Document=l}),ace.define("ace/lib/lang",["require","exports","module"],function(e,t){t.last=function(o){return o[o.length-1]},t.stringReverse=function(o){return o.split("").reverse().join("")},t.stringRepeat=function(o,i){for(var a="";i>0;)1&i&&(a+=o),(i>>=1)&&(o+=o);return a};var n=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(o){return o.replace(n,"")},t.stringTrimRight=function(o){return o.replace(r,"")},t.copyObject=function(o){var i={};for(var a in o)i[a]=o[a];return i},t.copyArray=function(o){for(var i=[],a=0,l=o.length;l>a;a++)i[a]=o[a]&&typeof o[a]=="object"?this.copyObject(o[a]):o[a];return i},t.deepCopy=function o(i){if(typeof i!="object"||!i)return i;var a;if(Array.isArray(i)){a=[];for(var l=0;i.length>l;l++)a[l]=o(i[l]);return a}if(Object.prototype.toString.call(i)!=="[object Object]")return i;a={};for(var l in i)a[l]=o(i[l]);return a},t.arrayToMap=function(o){for(var i={},a=0;o.length>a;a++)i[o[a]]=1;return i},t.createMap=function(o){var i=Object.create(null);for(var a in o)i[a]=o[a];return i},t.arrayRemove=function(o,i){for(var a=0;o.length>=a;a++)i===o[a]&&o.splice(a,1)},t.escapeRegExp=function(o){return o.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(o){return o.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(o,i){var a=[];return o.replace(i,function(l){a.push({offset:arguments[arguments.length-2],length:l.length})}),a},t.deferredCall=function(o){var i=null,a=function(){i=null,o()},l=function(s){return l.cancel(),i=setTimeout(a,s||0),l};return l.schedule=l,l.call=function(){return this.cancel(),o(),l},l.cancel=function(){return clearTimeout(i),i=null,l},l.isPending=function(){return i},l},t.delayedCall=function(o,i){var a=null,l=function(){a=null,o()},s=function(c){a==null&&(a=setTimeout(l,c||i))};return s.delay=function(c){a&&clearTimeout(a),a=setTimeout(l,c||i)},s.schedule=s,s.call=function(){this.cancel(),o()},s.cancel=function(){a&&clearTimeout(a),a=null},s.isPending=function(){return a},s}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(e,t){e("../range").Range;var n=e("../document").Document,r=e("../lib/lang"),o=t.Mirror=function(i){this.sender=i;var a=this.doc=new n(""),l=this.deferredUpdate=r.delayedCall(this.onUpdate.bind(this)),s=this;i.on("change",function(c){var u=c.data;if(u[0].start)a.applyDeltas(u);else for(var f=0;u.length>f;f+=2){if(Array.isArray(u[f+1]))var d={action:"insert",start:u[f],lines:u[f+1]};else var d={action:"remove",start:u[f],end:u[f+1]};a.applyDelta(d,!0)}return s.$timeout?l.schedule(s.$timeout):(s.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(i){this.$timeout=i},this.setValue=function(i){this.doc.setValue(i),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(i){this.sender.callback(this.doc.getValue(),i)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){var e,t,n,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
321
321
  `,r:"\r",t:" "},i=function(h){throw{name:"SyntaxError",message:h,at:e,text:n}},a=function(h){t=n.charAt(h),e=h+1},l=function(h){return h&&h!==t&&i("Expected '"+h+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},s=function(h,y){let p=e,m=n.indexOf(h,p);return m<0&&i(y),a(m+h.length),n.substring(p,m)},c=function(h){return n.substr(e,h.length)===h},u=function(){var h,y="";for(t==="-"&&(y="-",l("-"));t>="0"&&"9">=t;)y+=t,l();if(t===".")for(y+=".";l()&&t>="0"&&"9">=t;)y+=t;if(t==="e"||t==="E")for(y+=t,l(),(t==="-"||t==="+")&&(y+=t,l());t>="0"&&"9">=t;)y+=t,l();return h=+y,isNaN(h)?(i("Bad number"),void 0):h},f=function(){var h,y,p,m="";if(t==='"'){if(c('""'))return l('"'),l('"'),s('"""',`failed to find closing '"""'`);for(;l();){if(t==='"')return l(),m;if(t==="\\")if(l(),t==="u"){for(p=0,y=0;4>y&&(h=parseInt(l(),16),isFinite(h));y+=1)p=16*p+h;m+=String.fromCharCode(p)}else{if(typeof o[t]!="string")break;m+=o[t]}else m+=t}}i("Bad string")},d=function(){for(;t&&" ">=t;)l()},b=function(){switch(t){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}i("Unexpected '"+t+"'")},S=function(){var h=[];if(t==="["){if(l("["),d(),t==="]")return l("]"),h;for(;t;){if(h.push(r()),d(),t==="]")return l("]"),h;l(","),d()}}i("Bad array")},O=function(){var h,y={};if(t==="{"){if(l("{"),d(),t==="}")return l("}"),y;for(;t;){if(h=f(),d(),l(":"),Object.hasOwnProperty.call(y,h)&&i('Duplicate key "'+h+'"'),y[h]=r(),d(),t==="}")return l("}"),y;l(","),d()}}i("Bad object")};return r=function(){switch(d(),t){case"{":return O();case"[":return S();case'"':return f();case"-":return u();default:return t>="0"&&"9">=t?u():b()}},function(h,y){var p;return n=h,e=0,t=" ",p=r(),d(),t&&i("Syntax error"),typeof y=="function"?function m(g,w){var E,C,x=g[w];if(x&&typeof x=="object")for(E in x)Object.hasOwnProperty.call(x,E)&&(C=m(x,E),C!==void 0?x[E]=C:delete x[E]);return y.call(g,w,x)}({"":p},""):p}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(e,t){var n=e("../lib/oop"),r=e("../worker/mirror").Mirror,o=e("./json/json_parse"),i=t.JsonWorker=function(a){r.call(this,a),this.setTimeout(200)};n.inherits(i,r),(function(){this.onUpdate=function(){var a=this.doc.getValue(),l=[];try{a&&o(a)}catch(c){var s=this.doc.indexToPosition(c.at-1);l.push({row:s.row,column:s.column,text:c.message,type:"error"})}this.sender.emit("annotate",l)}}).call(i.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function e(){}function t(I){try{return Object.defineProperty(I,"sentinel",{}),"sentinel"in I}catch{}}function n(I){return I=+I,I!==I?I=0:I!==0&&I!==1/0&&I!==-1/0&&(I=(I>0||-1)*Math.floor(Math.abs(I))),I}Function.prototype.bind||(Function.prototype.bind=function(I){var U=this;if(typeof U!="function")throw new TypeError("Function.prototype.bind called on incompatible "+U);var K=f.call(arguments,1),z=function(){if(this instanceof z){var G=U.apply(this,K.concat(f.call(arguments)));return Object(G)===G?G:this}return U.apply(I,K.concat(f.call(arguments)))};return U.prototype&&(e.prototype=U.prototype,z.prototype=new e,e.prototype=null),z});var r,o,i,a,l,s=Function.prototype.call,c=Array.prototype,u=Object.prototype,f=c.slice,d=s.bind(u.toString),b=s.bind(u.hasOwnProperty);if((l=b(u,"__defineGetter__"))&&(r=s.bind(u.__defineGetter__),o=s.bind(u.__defineSetter__),i=s.bind(u.__lookupGetter__),a=s.bind(u.__lookupSetter__)),[1,2].splice(0).length!=2)if(function(){function I(z){var G=Array(z+2);return G[0]=G[1]=0,G}var U,K=[];return K.splice.apply(K,I(20)),K.splice.apply(K,I(26)),U=K.length,K.splice(5,0,"XXX"),U+1==K.length?!0:void 0}()){var S=Array.prototype.splice;Array.prototype.splice=function(I,U){return arguments.length?S.apply(this,[I===void 0?0:I,U===void 0?this.length-I:U].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(I,U){var K=this.length;I>0?I>K&&(I=K):I==null?I=0:0>I&&(I=Math.max(K+I,0)),K>I+U||(U=K-I);var z=this.slice(I,I+U),G=f.call(arguments,2),k=G.length;if(I===K)k&&this.push.apply(this,G);else{var F=Math.min(U,K-I),X=I+F,te=X+k-F,H=K-X,W=K-F;if(X>te)for(var Q=0;H>Q;++Q)this[te+Q]=this[X+Q];else if(te>X)for(Q=H;Q--;)this[te+Q]=this[X+Q];if(k&&I===W)this.length=W,this.push.apply(this,G);else for(this.length=W+k,Q=0;k>Q;++Q)this[I+Q]=G[Q]}return z};Array.isArray||(Array.isArray=function(I){return d(I)=="[object Array]"});var O=Object("a"),h=O[0]!="a"||!(0 in O);if(Array.prototype.forEach||(Array.prototype.forEach=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=arguments[1],G=-1,k=K.length>>>0;if(d(I)!="[object Function]")throw new TypeError;for(;k>++G;)G in K&&I.call(z,K[G],G,U)}),Array.prototype.map||(Array.prototype.map=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0,G=Array(z),k=arguments[1];if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var F=0;z>F;F++)F in K&&(G[F]=I.call(k,K[F],F,U));return G}),Array.prototype.filter||(Array.prototype.filter=function(I){var U,K=J(this),z=h&&d(this)=="[object String]"?this.split(""):K,G=z.length>>>0,k=[],F=arguments[1];if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var X=0;G>X;X++)X in z&&(U=z[X],I.call(F,U,X,K)&&k.push(U));return k}),Array.prototype.every||(Array.prototype.every=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0,G=arguments[1];if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var k=0;z>k;k++)if(k in K&&!I.call(G,K[k],k,U))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0,G=arguments[1];if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var k=0;z>k;k++)if(k in K&&I.call(G,K[k],k,U))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0;if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");if(!z&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");var G,k=0;if(arguments.length>=2)G=arguments[1];else for(;;){if(k in K){G=K[k++];break}if(++k>=z)throw new TypeError("reduce of empty array with no initial value")}for(;z>k;k++)k in K&&(G=I.call(void 0,G,K[k],k,U));return G}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0;if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");if(!z&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");var G,k=z-1;if(arguments.length>=2)G=arguments[1];else for(;;){if(k in K){G=K[k--];break}if(0>--k)throw new TypeError("reduceRight of empty array with no initial value")}do k in this&&(G=I.call(void 0,G,K[k],k,U));while(k--);return G}),Array.prototype.indexOf&&[0,1].indexOf(1,2)==-1||(Array.prototype.indexOf=function(I){var U=h&&d(this)=="[object String]"?this.split(""):J(this),K=U.length>>>0;if(!K)return-1;var z=0;for(arguments.length>1&&(z=n(arguments[1])),z=z>=0?z:Math.max(0,K+z);K>z;z++)if(z in U&&U[z]===I)return z;return-1}),Array.prototype.lastIndexOf&&[0,1].lastIndexOf(0,-3)==-1||(Array.prototype.lastIndexOf=function(I){var U=h&&d(this)=="[object String]"?this.split(""):J(this),K=U.length>>>0;if(!K)return-1;var z=K-1;for(arguments.length>1&&(z=Math.min(z,n(arguments[1]))),z=z>=0?z:K-Math.abs(z);z>=0;z--)if(z in U&&I===U[z])return z;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(I){return I.__proto__||(I.constructor?I.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){var y="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(I,U){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError(y+I);if(b(I,U)){var K,z,G;if(K={enumerable:!0,configurable:!0},l){var k=I.__proto__;I.__proto__=u;var z=i(I,U),G=a(I,U);if(I.__proto__=k,z||G)return z&&(K.get=z),G&&(K.set=G),K}return K.value=I[U],K}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(I){return Object.keys(I)}),!Object.create){var p;p=Object.prototype.__proto__===null?function(){return{__proto__:null}}:function(){var I={};for(var U in I)I[U]=null;return I.constructor=I.hasOwnProperty=I.propertyIsEnumerable=I.isPrototypeOf=I.toLocaleString=I.toString=I.valueOf=I.__proto__=null,I},Object.create=function(I,U){var K;if(I===null)K=p();else{if(typeof I!="object")throw new TypeError("typeof prototype["+typeof I+"] != 'object'");var z=function(){};z.prototype=I,K=new z,K.__proto__=I}return U!==void 0&&Object.defineProperties(K,U),K}}if(Object.defineProperty){var m=t({}),g=typeof document>"u"||t(document.createElement("div"));if(!m||!g)var w=Object.defineProperty}if(!Object.defineProperty||w){var E="Property description must be an object: ",C="Object.defineProperty called on non-object: ",x="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(I,U,K){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError(C+I);if(typeof K!="object"&&typeof K!="function"||K===null)throw new TypeError(E+K);if(w)try{return w.call(Object,I,U,K)}catch{}if(b(K,"value"))if(l&&(i(I,U)||a(I,U))){var z=I.__proto__;I.__proto__=u,delete I[U],I[U]=K.value,I.__proto__=z}else I[U]=K.value;else{if(!l)throw new TypeError(x);b(K,"get")&&r(I,U,K.get),b(K,"set")&&o(I,U,K.set)}return I}}Object.defineProperties||(Object.defineProperties=function(I,U){for(var K in U)b(U,K)&&Object.defineProperty(I,K,U[K]);return I}),Object.seal||(Object.seal=function(I){return I}),Object.freeze||(Object.freeze=function(I){return I});try{Object.freeze(function(){})}catch{Object.freeze=function(U){return function(K){return typeof K=="function"?K:U(K)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(I){return I}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(I){if(Object(I)===I)throw new TypeError;for(var U="";b(I,U);)U+="?";I[U]=!0;var K=b(I,U);return delete I[U],K}),!Object.keys){var T=!0,M=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],L=M.length;for(var j in{toString:null})T=!1;Object.keys=function(I){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError("Object.keys called on a non-object");var U=[];for(var K in I)b(I,K)&&U.push(K);if(T)for(var z=0,G=L;G>z;z++){var k=M[z];b(I,k)&&U.push(k)}return U}}Date.now||(Date.now=function(){return new Date().getTime()});var D=`
322
- \v\f\r   ᠎              \u2028\u2029\uFEFF`;if(!String.prototype.trim||D.trim()){D="["+D+"]";var V=RegExp("^"+D+D+"*"),Z=RegExp(D+D+"*$");String.prototype.trim=function(){return(this+"").replace(V,"").replace(Z,"")}}var J=function(I){if(I==null)throw new TypeError("can't convert "+I+" to object");return Object(I)}});const H6=(Ve.exports==null?{}:Ve.exports).default||Ve.exports,W6=(Ve.exports==null?{}:Ve.exports).inherits,U6=(Ve.exports==null?{}:Ve.exports).mixin,G6=(Ve.exports==null?{}:Ve.exports).implement,K6=(Ve.exports==null?{}:Ve.exports).Range,X6=(Ve.exports==null?{}:Ve.exports).applyDelta,Y6=(Ve.exports==null?{}:Ve.exports).EventEmitter,J6=(Ve.exports==null?{}:Ve.exports).Anchor,Q6=(Ve.exports==null?{}:Ve.exports).Document,Z6=(Ve.exports==null?{}:Ve.exports).last,e5=(Ve.exports==null?{}:Ve.exports).stringReverse,t5=(Ve.exports==null?{}:Ve.exports).stringRepeat,n5=(Ve.exports==null?{}:Ve.exports).stringTrimLeft,r5=(Ve.exports==null?{}:Ve.exports).stringTrimRight,o5=(Ve.exports==null?{}:Ve.exports).copyObject,i5=(Ve.exports==null?{}:Ve.exports).copyArray,a5=(Ve.exports==null?{}:Ve.exports).deepCopy,s5=(Ve.exports==null?{}:Ve.exports).arrayToMap,l5=(Ve.exports==null?{}:Ve.exports).createMap,c5=(Ve.exports==null?{}:Ve.exports).arrayRemove,u5=(Ve.exports==null?{}:Ve.exports).escapeRegExp,d5=(Ve.exports==null?{}:Ve.exports).escapeHTML,f5=(Ve.exports==null?{}:Ve.exports).getMatchOffsets,p5=(Ve.exports==null?{}:Ve.exports).deferredCall,h5=(Ve.exports==null?{}:Ve.exports).delayedCall,m5=(Ve.exports==null?{}:Ve.exports).Mirror,g5=(Ve.exports==null?{}:Ve.exports).JsonWorker,v5=Object.freeze(Object.defineProperty({__proto__:null,Anchor:J6,Document:Q6,EventEmitter:Y6,JsonWorker:g5,Mirror:m5,Range:K6,applyDelta:X6,arrayRemove:c5,arrayToMap:s5,copyArray:i5,copyObject:o5,createMap:l5,deepCopy:a5,default:H6,deferredCall:p5,delayedCall:h5,escapeHTML:d5,escapeRegExp:u5,getMatchOffsets:f5,implement:G6,inherits:W6,last:Z6,mixin:U6,stringRepeat:t5,stringReverse:e5,stringTrimLeft:n5,stringTrimRight:r5},Symbol.toStringTag,{value:"Module"}));return x4}(React,classNames,icons,reResizable,reactDnd,reactDndHtml5Backend,ReactDOM,require$$9,ace$1,reactIntl,_,$,queryString,null,null,immer,rxjs,uuid$1);
322
+ \v\f\r   ᠎              \u2028\u2029\uFEFF`;if(!String.prototype.trim||D.trim()){D="["+D+"]";var V=RegExp("^"+D+D+"*"),Z=RegExp(D+D+"*$");String.prototype.trim=function(){return(this+"").replace(V,"").replace(Z,"")}}var J=function(I){if(I==null)throw new TypeError("can't convert "+I+" to object");return Object(I)}});const H8=(Ve.exports==null?{}:Ve.exports).default||Ve.exports,W8=(Ve.exports==null?{}:Ve.exports).inherits,U8=(Ve.exports==null?{}:Ve.exports).mixin,G8=(Ve.exports==null?{}:Ve.exports).implement,K8=(Ve.exports==null?{}:Ve.exports).Range,X8=(Ve.exports==null?{}:Ve.exports).applyDelta,Y8=(Ve.exports==null?{}:Ve.exports).EventEmitter,J8=(Ve.exports==null?{}:Ve.exports).Anchor,Q8=(Ve.exports==null?{}:Ve.exports).Document,Z8=(Ve.exports==null?{}:Ve.exports).last,e5=(Ve.exports==null?{}:Ve.exports).stringReverse,t5=(Ve.exports==null?{}:Ve.exports).stringRepeat,n5=(Ve.exports==null?{}:Ve.exports).stringTrimLeft,r5=(Ve.exports==null?{}:Ve.exports).stringTrimRight,o5=(Ve.exports==null?{}:Ve.exports).copyObject,i5=(Ve.exports==null?{}:Ve.exports).copyArray,a5=(Ve.exports==null?{}:Ve.exports).deepCopy,s5=(Ve.exports==null?{}:Ve.exports).arrayToMap,l5=(Ve.exports==null?{}:Ve.exports).createMap,c5=(Ve.exports==null?{}:Ve.exports).arrayRemove,u5=(Ve.exports==null?{}:Ve.exports).escapeRegExp,d5=(Ve.exports==null?{}:Ve.exports).escapeHTML,f5=(Ve.exports==null?{}:Ve.exports).getMatchOffsets,p5=(Ve.exports==null?{}:Ve.exports).deferredCall,h5=(Ve.exports==null?{}:Ve.exports).delayedCall,m5=(Ve.exports==null?{}:Ve.exports).Mirror,g5=(Ve.exports==null?{}:Ve.exports).JsonWorker,v5=Object.freeze(Object.defineProperty({__proto__:null,Anchor:J8,Document:Q8,EventEmitter:Y8,JsonWorker:g5,Mirror:m5,Range:K8,applyDelta:X8,arrayRemove:c5,arrayToMap:s5,copyArray:i5,copyObject:o5,createMap:l5,deepCopy:a5,default:H8,deferredCall:p5,delayedCall:h5,escapeHTML:d5,escapeRegExp:u5,getMatchOffsets:f5,implement:G8,inherits:W8,last:Z8,mixin:U8,stringRepeat:t5,stringReverse:e5,stringTrimLeft:n5,stringTrimRight:r5},Symbol.toStringTag,{value:"Module"}));return x4}(React,classNames,icons,reResizable,reactDnd,reactDndHtml5Backend,ReactDOM,require$$9,ace$1,reactIntl,_,$,queryString,null,null,immer,rxjs,uuid$1);