@infinilabs/ui-web-cli 0.0.24 → 0.0.26

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.
package/lib/bundle.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see bundle.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.webCli=t(require("react"),require("react-dom")):e.webCli=t(e.react,e["react-dom"])}(self,((e,t)=>(()=>{var n={5:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},44:e=>{"use strict";e.exports=JSON.parse('{"explain":{"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"}}')},107:e=>{"use strict";e.exports=JSON.parse('{"exists_source":{"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"}}')},146:(e,t,n)=>{var r=n(5007);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},213:e=>{"use strict";e.exports=JSON.parse('{"ping":{"methods":["HEAD"],"patterns":[""],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"}}')},217:(e,t,n)=>{var r=n(2427);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},221:()=>{},388:e=>{"use strict";e.exports=JSON.parse('{"cluster.remote_info":{"methods":["GET"],"patterns":["_remote/info"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html"}}')},406:e=>{"use strict";e.exports=JSON.parse('{"indices.delete_template":{"patterns":["_template/{template}"]}}')},409:e=>{"use strict";e.exports=JSON.parse('{"get_source":{"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"}}')},510:e=>{"use strict";e.exports=JSON.parse('{"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":""}}]}}}}')},669:e=>{"use strict";e.exports=JSON.parse('{"render_search_template":{"methods":["GET","POST"],"patterns":["_render/template","_render/template/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#_validating_templates"}}')},689:e=>{"use strict";e.exports=JSON.parse('{"bulk":{"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"}}')},708:(e,t,n)=>{"use strict";var r=n(3790),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},757:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},761:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},797:e=>{"use strict";e.exports=JSON.parse('{"field_caps":{"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"}}')},913:e=>{"use strict";e.exports=JSON.parse('{"scripts_painless_execute":{"methods":["GET","POST"],"patterns":["_scripts/painless/_execute"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html"}}')},994:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1101:e=>{"use strict";e.exports=EvalError},1123:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1185:e=>{"use strict";e.exports=JSON.parse('{"indices.validate_query":{"data_autocomplete_rules":{"query":{}}}}')},1260:e=>{"use strict";e.exports=JSON.parse('{"search_template":{"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"}}')},1273:e=>{"use strict";e.exports=JSON.parse('{"termvectors":{"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"}}')},1290:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1325:(e,t,n)=>{"use strict";var r=n(8534)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},1328:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1344:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1427:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1452:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1489:e=>{"use strict";e.exports=JSON.parse('{"delete_by_query":{"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"}}')},1536:(e,t,n)=>{"use strict";var r=n(7893),o=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},l=1024;e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var c=a[l],u=s[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:s,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<a.length;u+=l){for(var p=a.length>=l?a.slice(u,u+l):a,d=[],f=0;f<p.length;++f){var h=p.charCodeAt(f);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===r.RFC1738&&(40===h||41===h)?d[d.length]=p.charAt(f):h<128?d[d.length]=s[h]:h<2048?d[d.length]=s[192|h>>6]+s[128|63&h]:h<55296||h>=57344?d[d.length]=s[224|h>>12]+s[128|h>>6&63]+s[128|63&h]:(f+=1,h=65536+((1023&h)<<10|1023&p.charCodeAt(f)),d[d.length]=s[240|h>>18]+s[128|h>>12&63]+s[128|h>>6&63]+s[128|63&h])}c+=d.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return i(t)&&!i(n)&&(s=a(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return o.call(t,i)?t[i]=e(t[i],s,r):t[i]=s,t}),s)}}},1604:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1665:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1675:e=>{"use strict";e.exports=JSON.parse('{"indices.put_settings":{"data_autocomplete_rules":{"__scope_link":"put_settings"}}}')},1750:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1777:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,s=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),a=n(0,o.length-s.length),l=[],c=0;c<a;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(s,arguments));return Object(t)===t?t:this}return o.apply(e,r(s,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},1833:(e,t,n)=>{var r=n(6847);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},1864:e=>{"use strict";e.exports=JSON.parse('{"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}"]}}')},1871:(e,t,n)=>{var r=n(7989);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},1908:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".empty {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n flex-direction: column;\n}\n",""])},1919:(e,t,n)=>{"use strict";var r=n(3583),o=n(8534),i=n(2644),s=n(7379),a=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(l,a),u=n(3790),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=c(r,l,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},2071:e=>{"use strict";e.exports=JSON.parse('{"indices.exists_template":{"patterns":["_template/{template}"]}}')},2119:(e,t,n)=>{var r=n(2961);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},2168:(e,t,n)=>{"use strict";var r=n(5846);function o(){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 i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),u=["%","/","?",";","#"].concat(c),p=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(7877);function y(e,t,n){if(e&&"object"==typeof e&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var y=e=l.join(s);if(y=y.trim(),!n&&1===e.split("#").length){var w=a.exec(y);if(w)return this.path=y,this.href=y,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var v=i.exec(y);if(v){var b=(v=v[0]).toLowerCase();this.protocol=b,y=y.substr(v.length)}if(n||v||y.match(/^\/\/[^@/]+@[^@/]+/)){var x="//"===y.substr(0,2);!x||v&&m[v]||(y=y.substr(2),this.slashes=!0)}if(!m[v]&&(x||v&&!_[v])){for(var O,j,E=-1,k=0;k<p.length;k++)-1!==(S=y.indexOf(p[k]))&&(-1===E||S<E)&&(E=S);for(-1!==(j=-1===E?y.lastIndexOf("@"):y.lastIndexOf("@",E))&&(O=y.slice(0,j),y=y.slice(j+1),this.auth=decodeURIComponent(O)),E=-1,k=0;k<u.length;k++){var S;-1!==(S=y.indexOf(u[k]))&&(-1===E||S<E)&&(E=S)}-1===E&&(E=y.length),this.host=y.slice(0,E),y=y.slice(E),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var N=this.hostname.split(/\./),R=(k=0,N.length);k<R;k++){var C=N[k];if(C&&!C.match(d)){for(var A="",P=0,L=C.length;P<L;P++)C.charCodeAt(P)>127?A+="x":A+=C[P];if(!A.match(d)){var q=N.slice(0,k),I=N.slice(k+1),D=C.match(f);D&&(q.push(D[1]),I.unshift(D[2])),I.length&&(y="/"+I.join(".")+y),this.hostname=q.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var M=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+M,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!h[b])for(k=0,R=c.length;k<R;k++){var U=c[k];if(-1!==y.indexOf(U)){var z=encodeURIComponent(U);z===U&&(z=escape(U)),y=y.split(U).join(z)}}var B=y.indexOf("#");-1!==B&&(this.hash=y.substr(B),y=y.slice(0,B));var G=y.indexOf("?");if(-1!==G?(this.search=y.substr(G),this.query=y.substr(G+1),t&&(this.query=g.parse(this.query)),y=y.slice(0,G)):t&&(this.search="",this.query={}),y&&(this.pathname=y),_[b]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){M=this.pathname||"";var J=this.search||"";this.path=M+J}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(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+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||_[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if("string"==typeof e){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),i=0;i<r.length;i++){var s=r[i];n[s]=this[s]}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 c=a[l];"protocol"!==c&&(n[c]=e[c])}return _[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(!_[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var d=u[p];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||m[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}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 h=n.pathname||"",g=n.search||"";n.path=h+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=w||y||n.host&&e.pathname,b=v,x=n.pathname&&n.pathname.split("/")||[],O=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!_[n.protocol]);if(O&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),v=v&&(""===f[0]||""===x[0])),w)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,x=f;else if(f.length)x||(x=[]),x.pop(),x=x.concat(f),n.search=e.search,n.query=e.query;else if(null!=e.search)return O&&(n.host=x.shift(),n.hostname=n.host,(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)),n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var j=x.slice(-1)[0],E=(n.host||e.host||x.length>1)&&("."===j||".."===j)||""===j,k=0,S=x.length;S>=0;S--)"."===(j=x[S])?x.splice(S,1):".."===j?(x.splice(S,1),k++):k&&(x.splice(S,1),k--);if(!v&&!b)for(;k--;k)x.unshift("..");!v||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),E&&"/"!==x.join("/").substr(-1)&&x.push("");var T,N=""===x[0]||x[0]&&"/"===x[0].charAt(0);return O&&(n.hostname=N?"":x.length?x.shift():"",n.host=n.hostname,(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)),(v=v||n.host&&x.length)&&!N&&x.unshift(""),x.length>0?n.pathname=x.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(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},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.qg=y,t.GP=function(e){return"string"==typeof e&&(e=y(e)),e instanceof o?e.format():o.prototype.format.call(e)}},2174:e=>{"use strict";e.exports=JSON.parse('{"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":[true,false]},"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":[true,false]}},{"__condition":{"lines_regex":"type[\\"\']\\\\s*:\\\\s*[\\"\']hdfs"},"__template":{"path":""},"uri":"","path":"some/path","load_defaults":{"__one_of":[true,false]},"conf_location":"cfg.xml","concurrent_streams":5,"compress":{"__one_of":[true,false]},"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":[true,false]},"compress":{"__one_of":[true,false]},"chunk_size":"10m"}]}}}}')},2228:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2353:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2427:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".flex-tabbar {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n.flex-tabbar .ant-tabs {\n display: flex;\n height: 100%;\n}\n.flex-tabbar .ant-tabs .ant-tabs-content-holder {\n flex: 1;\n overflow: hidden;\n}\n.flex-tabbar .ant-tabs-top > .ant-tabs-nav {\n margin-bottom: 0px;\n}\n.flex-tabbar #console .ant-tabs-card .ant-tabs-tab {\n background: transparent;\n border-radius: 6px 6px 0 0;\n}\n.flex-tabbar #console .ant-tabs-card .ant-tabs-tab.ant-tabs-tab-active {\n background: transparent;\n}\n.ant-tabs-top-bar {\n display: flex;\n}\n.ant-tabs-extra-left {\n order: 1;\n flex: 0 0 auto;\n}\n.ant-tabs-nav-container {\n order: 2;\n flex: 0 0 auto;\n display: flex;\n}\n.ant-tabs-top-bar .ant-tabs-nav-container {\n max-width: calc(100% - 140px);\n}\n.tabbar-icon {\n padding: 0 10px;\n cursor: pointer;\n}\n.ant-tabs-extra-append {\n order: 3;\n}\n.ant-tabs-extra-right {\n order: 4;\n margin-left: auto;\n flex: 0 0 auto;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active {\n font-weight: 400;\n background-color: #939ea0;\n color: #fff;\n border-color: #939ea0;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab {\n border-radius: 0;\n height: 28px;\n line-height: 26px;\n padding: 0 12px;\n margin: 0;\n display: inline-block;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content {\n line-height: 26px;\n display: flex;\n height: 28px;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-nav-container {\n height: 28px;\n max-width: calc(100% - 156px);\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x {\n margin-bottom: 14px;\n}\n#console .ant-tabs-bar {\n margin: 0px 0 2px 0;\n}\n",""])},2465:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2469:(e,t,n)=>{var r={"./_common.json":4471,"./bulk.json":689,"./cat.aliases.json":8173,"./cat.allocation.json":9089,"./cat.count.json":3966,"./cat.fielddata.json":4529,"./cat.health.json":7401,"./cat.help.json":7888,"./cat.indices.json":4880,"./cat.master.json":5837,"./cat.nodeattrs.json":9345,"./cat.nodes.json":6616,"./cat.pending_tasks.json":3791,"./cat.plugins.json":7277,"./cat.recovery.json":6808,"./cat.repositories.json":6495,"./cat.segments.json":7369,"./cat.shards.json":8966,"./cat.snapshots.json":7408,"./cat.tasks.json":9683,"./cat.templates.json":6122,"./cat.thread_pool.json":4710,"./clear_scroll.json":8090,"./cluster.allocation_explain.json":1427,"./cluster.delete_component_template.json":9797,"./cluster.get_component_template.json":994,"./cluster.get_settings.json":6461,"./cluster.health.json":2899,"./cluster.pending_tasks.json":9777,"./cluster.put_component_template.json":2897,"./cluster.put_settings.json":8422,"./cluster.remote_info.json":388,"./cluster.reroute.json":5,"./cluster.state.json":7646,"./cluster.stats.json":5328,"./count.json":9788,"./create.json":4185,"./delete.json":1750,"./delete_by_query.json":1489,"./delete_by_query_rethrottle.json":3235,"./delete_script.json":7944,"./exists.json":9153,"./exists_source.json":107,"./explain.json":44,"./field_caps.json":797,"./get.json":9367,"./get_script.json":7787,"./get_script_context.json":7335,"./get_script_languages.json":8623,"./get_source.json":409,"./index.json":7299,"./indices.analyze.json":5552,"./indices.clear_cache.json":8688,"./indices.clone.json":2637,"./indices.close.json":8560,"./indices.create.json":1344,"./indices.delete.json":6095,"./indices.delete_alias.json":1452,"./indices.delete_template.json":5830,"./indices.exists.json":2228,"./indices.exists_alias.json":8411,"./indices.exists_template.json":9252,"./indices.exists_type.json":4373,"./indices.flush.json":7110,"./indices.flush_synced.json":4845,"./indices.forcemerge.json":2825,"./indices.get.json":7976,"./indices.get_alias.json":4607,"./indices.get_field_mapping.json":9002,"./indices.get_mapping.json":9889,"./indices.get_settings.json":9008,"./indices.get_template.json":9211,"./indices.get_upgrade.json":5799,"./indices.open.json":4652,"./indices.put_alias.json":4774,"./indices.put_mapping.json":6472,"./indices.put_settings.json":8555,"./indices.put_template.json":5080,"./indices.recovery.json":1123,"./indices.refresh.json":4687,"./indices.rollover.json":2465,"./indices.segments.json":8566,"./indices.shard_stores.json":6307,"./indices.shrink.json":9321,"./indices.split.json":1604,"./indices.stats.json":8263,"./indices.update_aliases.json":3246,"./indices.upgrade.json":7704,"./indices.validate_query.json":1665,"./info.json":7425,"./ingest.delete_pipeline.json":6529,"./ingest.get_pipeline.json":6502,"./ingest.processor_grok.json":9123,"./ingest.put_pipeline.json":7661,"./ingest.simulate.json":2635,"./mget.json":4836,"./msearch.json":4844,"./msearch_template.json":3807,"./mtermvectors.json":7978,"./nodes.hot_threads.json":8397,"./nodes.info.json":5928,"./nodes.reload_secure_settings.json":2353,"./nodes.stats.json":3767,"./nodes.usage.json":4531,"./ping.json":213,"./put_script.json":8580,"./rank_eval.json":5986,"./reindex.json":2820,"./reindex_rethrottle.json":8472,"./render_search_template.json":669,"./scripts_painless_execute.json":913,"./scroll.json":4964,"./search.json":5917,"./search_shards.json":6543,"./search_template.json":1260,"./snapshot.cleanup_repository.json":9396,"./snapshot.create.json":8981,"./snapshot.create_repository.json":7630,"./snapshot.delete.json":1290,"./snapshot.delete_repository.json":5695,"./snapshot.get.json":7691,"./snapshot.get_repository.json":1328,"./snapshot.restore.json":4753,"./snapshot.status.json":7795,"./snapshot.verify_repository.json":4401,"./tasks.cancel.json":8479,"./tasks.get.json":8307,"./tasks.list.json":761,"./termvectors.json":1273,"./update.json":6644,"./update_by_query.json":8203,"./update_by_query_rethrottle.json":8985};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=2469},2635:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2637:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2644:(e,t,n)=>{"use strict";var r=n(8534),o=n(7517),i=n(708)(),s=n(1325),a=n(7379),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&s){var u=s(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},2650:(e,t,n)=>{"use strict";var r=n(1536),o=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=a?i.slice(0,a.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var p=0;n.depth>0&&null!==(a=s.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}if(a){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+i.slice(a.index)+"]")}return function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if("[]"===a&&n.parseArrays)s=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{s=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,p=parseInt(u,10);n.parseArrays||""!==u?!isNaN(p)&&a!==u&&String(p)===u&&p>=0&&n.parseArrays&&p<=n.arrayLimit?(s=[])[p]=o:"__proto__"!==u&&(s[u]=o):s={0:o}}o=s}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset,n=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:s.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,p=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,p),f=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<d.length;++u)0===d[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[u]?h="utf-8":"utf8=%26%2310003%3B"===d[u]&&(h="iso-8859-1"),f=u,u=d.length);for(u=0;u<d.length;++u)if(u!==f){var m,_,g=d[u],y=g.indexOf("]="),w=-1===y?g.indexOf("="):y+1;-1===w?(m=t.decoder(g,s.decoder,h,"key"),_=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,w),s.decoder,h,"key"),_=r.maybeMap(l(g.slice(w+1),t),(function(e){return t.decoder(e,s.decoder,h,"value")}))),_&&t.interpretNumericEntities&&"iso-8859-1"===h&&(_=a(_)),g.indexOf("[]=")>-1&&(_=i(_)?[_]:_);var v=o.call(n,m);v&&"combine"===t.duplicates?n[m]=r.combine(n[m],_):v&&"last"!==t.duplicates||(n[m]=_)}return n}(e,n):e,p=n.plainObjects?Object.create(null):{},d=Object.keys(u),f=0;f<d.length;++f){var h=d[f],m=c(h,u[h],n,"string"==typeof e);p=r.merge(p,m,n)}return!0===n.allowSparse?p:r.compact(p)}},2787:(e,t,n)=>{"use strict";var r=n(8534),o=n(1919),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},2820:e=>{"use strict";e.exports=JSON.parse('{"reindex":{"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"}}')},2825:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2864:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,s=r&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&l&&"function"==typeof l.get?l.get:null,u=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,_=Function.prototype.toString,g=String.prototype.match,y=String.prototype.slice,w=String.prototype.replace,v=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,O=Array.prototype.concat,j=Array.prototype.join,E=Array.prototype.slice,k=Math.floor,S="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,A=Object.prototype.propertyIsEnumerable,P=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return w.call(o,n,"$&_")+"."+w.call(w.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(t,n,"$&_")}var q=n(6153),I=q.custom,D=B(I)?I:null;function M(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function F(e){return w.call(String(e),/"/g,"&quot;")}function U(e){return!("[object Array]"!==$(e)||C&&"object"==typeof e&&C in e)}function z(e){return!("[object RegExp]"!==$(e)||C&&"object"==typeof e&&C in e)}function B(e){if(R)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!N)return!1;try{return N.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,a){var l=r||{};if(J(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!J(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return W(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return v?L(t,x):x}if("bigint"==typeof t){var k=String(t)+"n";return v?L(t,k):k}var T=void 0===l.depth?5:l.depth;if(void 0===o&&(o=0),o>=T&&T>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var I,G=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=j.call(Array(e.indent+1)," ")}return{base:n,prev:j.call(Array(t+1),n)}}(l,o);if(void 0===a)a=[];else if(V(a,t)>=0)return"[Circular]";function H(t,n,r){if(n&&(a=E.call(a)).push(n),r){var i={depth:l.depth};return J(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,a)}return e(t,l,o+1,a)}if("function"==typeof t&&!z(t)){var ee=function(e){if(e.name)return e.name;var t=g.call(_.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=Z(t,H);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+j.call(te,", ")+" }":"")}if(B(t)){var ne=R?w.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(t);return"object"!=typeof t||R?ne:K(ne)}if((I=t)&&"object"==typeof I&&("undefined"!=typeof HTMLElement&&I instanceof HTMLElement||"string"==typeof I.nodeName&&"function"==typeof I.getAttribute)){for(var re="<"+b.call(String(t.nodeName)),oe=t.attributes||[],ie=0;ie<oe.length;ie++)re+=" "+oe[ie].name+"="+M(F(oe[ie].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+"</"+b.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var se=Z(t,H);return G&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(se)?"["+X(se,G)+"]":"[ "+j.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==$(e)||C&&"object"==typeof e&&C in e)}(t)){var ae=Z(t,H);return"cause"in Error.prototype||!("cause"in t)||A.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+j.call(ae,", ")+" }":"{ ["+String(t)+"] "+j.call(O.call("[cause]: "+H(t.cause),ae),", ")+" }"}if("object"==typeof t&&m){if(D&&"function"==typeof t[D]&&q)return q(t,{depth:T-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return s&&s.call(t,(function(e,n){le.push(H(n,t,!0)+" => "+H(e,t))})),Y("Map",i.call(t),le,G)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(H(e,t))})),Y("Set",c.call(t),ce,G)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return!("[object Number]"!==$(e)||C&&"object"==typeof e&&C in e)}(t))return K(H(Number(t)));if(function(e){if(!e||"object"!=typeof e||!S)return!1;try{return S.call(e),!0}catch(e){}return!1}(t))return K(H(S.call(t)));if(function(e){return!("[object Boolean]"!==$(e)||C&&"object"==typeof e&&C in e)}(t))return K(h.call(t));if(function(e){return!("[object String]"!==$(e)||C&&"object"==typeof e&&C in e)}(t))return K(H(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==$(e)||C&&"object"==typeof e&&C in e)}(t)&&!z(t)){var ue=Z(t,H),pe=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",fe=!pe&&C&&Object(t)===t&&C in t?y.call($(t),8,-1):de?"Object":"",he=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||de?"["+j.call(O.call([],fe||[],de||[]),": ")+"] ":"");return 0===ue.length?he+"{}":G?he+"{"+X(ue,G)+"}":he+"{ "+j.call(ue,", ")+" }"}return String(t)};var G=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,t){return G.call(e,t)}function $(e){return m.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function W(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return W(y.call(e,0,t.maxStringLength),t)+r}return M(w.call(w.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,H),"single",t)}function H(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function K(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function Y(e,t,n,r){return e+" ("+t+") {"+(r?X(n,r):j.call(n,", "))+"}"}function X(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+j.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=U(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=J(e,o)?t(e[o],e):""}var i,s="function"==typeof T?T(e):[];if(R){i={};for(var a=0;a<s.length;a++)i["$"+s[a]]=s[a]}for(var l in e)J(e,l)&&(n&&String(Number(l))===l&&l<e.length||R&&i["$"+l]instanceof Symbol||(x.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof T)for(var c=0;c<s.length;c++)A.call(e,s[c])&&r.push("["+t(s[c])+"]: "+t(e[s[c]],e));return r}},2897:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2899:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2961:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".loading {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n flex-direction: column;\n}\n.loading img {\n height: 32px;\n margin-bottom: 8px;\n}\n.loading .tips {\n color: #bfbfbf;\n font-size: 12px;\n}\n",""])},3235:e=>{"use strict";e.exports=JSON.parse('{"delete_by_query_rethrottle":{"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"}}')},3246:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},3445:e=>{"use strict";e.exports=JSON.parse('{"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":[true,false]}},"allocate":{"__template":{"index":"","shard":0,"node":""},"index":"{index}","shard":0,"node":"{node}","allow_primary":{"__one_of":[true,false]}}}],"dry_run":{"__one_of":[true,false]}}}}')},3556:(e,t,n)=>{var r=n(4262);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},3583:(e,t,n)=>{"use strict";var r=n(1777);e.exports=Function.prototype.bind||r},3639:(e,t,n)=>{var r=n(7453);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},3716:e=>{e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},3727:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".error {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n flex-direction: column;\n}\n.error .anticon {\n font-size: 32px;\n color: #ff6c6c;\n margin-bottom: 8px;\n}\n.error .tips {\n color: #bfbfbf;\n font-size: 12px;\n}\n",""])},3762:(e,t,n)=>{var r=n(9340);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},3767:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},3790:(e,t,n)=>{"use strict";var r=n(8534)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},3791:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},3807:e=>{"use strict";e.exports=JSON.parse('{"msearch_template":{"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"}}')},3808:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(6465);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},3966:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4185:e=>{"use strict";e.exports=JSON.parse('{"create":{"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"}}')},4262:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".conApp {\n display: flex;\n}\n.conApp__editor {\n width: 100%;\n display: flex;\n flex: 0 0 auto;\n position: relative;\n}\n.conApp__editor__spinner {\n width: 100%;\n}\n.conApp__output {\n display: flex;\n flex: 1 1 1px;\n}\n.conApp__editorContent,\n.conApp__outputContent {\n height: 100%;\n flex: 1 1 1px;\n font-size: 14px;\n}\n.conApp__editorActions {\n position: absolute;\n z-index: 1000;\n top: 4px;\n right: 0;\n line-height: 1;\n height: 17px;\n display: flex;\n align-items: center;\n}\n.conApp__editorActions button {\n line-height: inherit;\n cursor: pointer;\n}\n.conApp__editorActionButton {\n padding: 0 4px;\n appearance: none;\n border: none;\n background: none;\n}\n.conApp__editorActionButton--success {\n color: #017D73;\n}\n.conApp__resizer {\n z-index: 1000;\n}\n.conApp__autoComplete {\n position: absolute;\n left: -1000px;\n visibility: hidden;\n /* by pass any other element in ace and resize bar, but not modal popups */\n z-index: 1002;\n margin-top: 22px;\n}\n.conApp__settingsModal {\n min-width: 460px;\n}\n.conApp__requestProgressBarContainer {\n position: relative;\n z-index: 2000;\n}\n.conApp__tabsExtension {\n border-bottom: 1px solid #cccccc;\n}\n.ace_method,\n.ace_select_keyword {\n color: #c80a68 !important;\n}\n.ace_url,\n.ace_start_triple_quote,\n.ace_end_triple_quote {\n color: #00756c;\n}\n.conApp .euiButtonIcon--primary:not([class*='isDisabled']) {\n box-shadow: none !important;\n background-color: transparent !important;\n}\n",""])},4266:e=>{"use strict";e.exports=JSON.parse('{"indices.get_field_mapping":{"priority":10}}')},4305:e=>{"use strict";e.exports=JSON.parse('{"indices.rollover":{"data_autocomplete_rules":{"conditions":{"max_age":"7d","max_docs":1000,"max_size":"5gb"},"settings":{"__scope_link":"put_settings"},"mappings":{"__scope_link":"put_mapping"},"aliases":{"__template":{"NAME":{}}}}}}')},4373:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4401:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4471:e=>{"use strict";e.exports=JSON.parse('{"documentation":{"methods":[]}}')},4529:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4531:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4585:e=>{"use strict";e.exports=URIError},4607:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4652:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4687:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4710:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4717:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".resize-bar {\n display: flex;\n height: 10px;\n background: #eee;\n margin-top: -5px;\n align-items: center;\n justify-content: center;\n}\n.resize-bar .dash {\n height: 1px;\n width: 16px;\n background: #666;\n margin-top: 1px;\n}\n",""])},4753:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4774:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4836:e=>{"use strict";e.exports=JSON.parse('{"mget":{"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"}}')},4844:e=>{"use strict";e.exports=JSON.parse('{"msearch":{"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"}}')},4845:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4880:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4964:e=>{"use strict";e.exports=JSON.parse('{"scroll":{"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"}}')},5007:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,'.Console {\n position: relative;\n width: 100%;\n height: calc(100vh);\n display: flex;\n}\n.Console .ConsoleInput_wrapper {\n flex: 1;\n min-width: 0;\n}\n.Console .ConsoleOutput_wrapper {\n width: 50%;\n}\n.Console .resizer {\n position: relative;\n z-index: 999;\n width: 14px;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #fafbfd;\n padding: 0;\n margin: 0;\n outline: none;\n border: none;\n cursor: col-resize;\n}\n.Console .resizer:hover {\n background-color: #cce1f0;\n}\n.Console .ant-tabs-content-right {\n padding-right: 0px;\n}\n.Console .ant-tabs-right > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane {\n padding-right: 0px;\n}\n.Console .console-headers-tabs {\n height: 100%;\n}\n.Console .console-headers-tabs .ant-tabs-nav {\n margin: 0;\n}\n.Console .console-headers-tabs .ant-tabs-tab {\n background-color: transparent;\n border: none;\n border-radius: 0;\n margin: 0;\n padding: 12px 16px;\n color: #666666;\n font-size: 14px;\n font-weight: 400;\n position: relative;\n transition: color 0.2s ease;\n}\n.Console .console-headers-tabs .ant-tabs-tab::after {\n content: \'\';\n position: absolute;\n right: 0;\n top: 50%;\n transform: translateY(-50%);\n width: 1px;\n height: 20px;\n background-color: #fff;\n}\n.Console .console-headers-tabs .ant-tabs-tab:last-child::after {\n display: none;\n}\n.Console .console-headers-tabs .ant-tabs-tab:hover {\n color: #333333;\n}\n.Console .console-headers-tabs .ant-tabs-tab.ant-tabs-tab-active {\n color: #1890ff;\n font-weight: 500;\n}\n.Console .console-headers-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #1890ff;\n position: relative;\n}\n.Console .console-headers-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn::after {\n content: \'\';\n position: absolute;\n bottom: -12px;\n left: 0;\n right: 0;\n height: 2px;\n background-color: #1890ff;\n border-radius: 1px;\n}\n.Console .console-headers-tabs .ant-tabs-ink-bar {\n display: none;\n}\n.Console .console-headers-tabs .ant-tabs-content-holder {\n height: calc(100% - 48px);\n}\n.Console .console-headers-tabs .ant-tabs-content-holder .ant-tabs-content {\n height: 100%;\n}\n.Console .console-headers-tabs .ant-tabs-content-holder .ant-tabs-content .ant-tabs-tabpane {\n height: 100%;\n}\n.Console .console-headers-tabs .ant-tabs-tabpane {\n height: 100%;\n padding: 0;\n}\n.Console [aria-orientation="vertical"] .ant-tabs-tab {\n padding: 8px 10px;\n writing-mode: vertical-lr;\n text-orientation: mixed;\n height: 60px;\n min-height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 14px;\n background-color: transparent;\n border: none;\n border-radius: 0;\n margin-bottom: 0;\n transition: all 0.2s ease;\n color: rgba(0, 0, 0, 0.65);\n}\n.Console [aria-orientation="vertical"] .ant-tabs-tab:hover {\n background-color: #f5f5f5;\n color: #333333;\n}\n.Console [aria-orientation="vertical"] .ant-tabs-tab.ant-tabs-tab-active {\n background-color: #ffffff;\n color: #1890ff;\n font-weight: 500;\n}\n.Console [aria-orientation="vertical"] {\n width: 40px;\n}\n.Console [aria-orientation="vertical"] .ant-tabs-nav-wrap {\n width: 40px;\n}\n',""])},5080:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5328:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5473:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".dropdownList {\n padding: auto;\n}\n.dropdownList .ant-btn {\n padding: 0 8px;\n border-color: #ebebeb;\n color: #666;\n}\n.dropdownList .ant-btn,\n.dropdownList .ant-btn.ant-popover-open,\n.dropdownList .ant-btn:hover {\n background-color: #e8f6fe;\n}\n.dropdownList .ant-btn[disabled],\n.dropdownList .ant-btn[disabled]:hover {\n background-color: #eee;\n color: #bbb;\n cursor: not-allowed;\n}\n.dropdownList .button {\n width: 100%;\n}\n.dropdownList .button .content {\n display: flex;\n gap: 8px;\n justify-content: space-between;\n align-items: center;\n height: 100%;\n color: #666;\n}\n.dropdownList .button .content .label {\n flex: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: left;\n}\n.dropdownList .button .content .label .icon {\n color: #101010;\n margin-right: 8px;\n}\n.dropdownList .button .content .down {\n font-size: 10px;\n}\n.dropdownList .button .content .close {\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n display: none;\n}\n.dropdownList .button .content .multipleItem {\n background-color: #fff;\n padding: 0 4px;\n}\n.dropdownList .button .content .multipleItem:not(:last-child) {\n margin-right: 8px;\n}\n.dropdownList .button.allowClear:hover .down {\n display: none;\n}\n.dropdownList .button.allowClear:hover .close {\n display: initial;\n}\n.popover {\n padding-top: 8px;\n}\n.popover .ant-popover-arrow {\n display: none;\n}\n.popover .ant-popover-inner-content {\n padding: 0;\n}\n",""])},5477:(e,t,n)=>{var r={"./clear_scroll.json":9594,"./cluster.health.json":8899,"./cluster.put_component_template.json":7985,"./cluster.put_settings.json":9862,"./cluster.reroute.json":3445,"./count.json":8636,"./indices.analyze.json":6752,"./indices.clone.json":9997,"./indices.create.json":6640,"./indices.delete_template.json":406,"./indices.exists_template.json":2071,"./indices.get_field_mapping.json":4266,"./indices.get_mapping.json":6193,"./indices.get_template.json":7131,"./indices.put_alias.json":7481,"./indices.put_settings.json":1675,"./indices.put_template.json":1864,"./indices.rollover.json":4305,"./indices.update_aliases.json":510,"./indices.validate_query.json":1185,"./snapshot.create.json":6453,"./snapshot.create_repository.json":2174,"./snapshot.restore.json":8513,"./update_by_query.json":9739};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=5477},5552:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5695:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5799:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5830:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5837:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5846:function(e,t,n){var r;e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var i,s=2147483647,a=36,l=/^xn--/,c=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,f=String.fromCharCode;function h(e){throw new RangeError(p[e])}function m(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function _(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+m((e=e.replace(u,".")).split("."),t).join(".")}function g(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function y(e){return m(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+f(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function v(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=a)e=d(e/35);return d(r+36*e/(e+38))}function b(e){var t,n,r,o,i,l,c,u,p,f,m,_=[],g=e.length,w=0,b=128,x=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&h("not-basic"),_.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<g;){for(i=w,l=1,c=a;o>=g&&h("invalid-input"),((u=(m=e.charCodeAt(o++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:a)>=a||u>d((s-w)/l))&&h("overflow"),w+=u*l,!(u<(p=c<=x?1:c>=x+26?26:c-x));c+=a)l>d(s/(f=a-p))&&h("overflow"),l*=f;x=v(w-i,t=_.length+1,0==i),d(w/t)>s-b&&h("overflow"),b+=d(w/t),w%=t,_.splice(w++,0,b)}return y(_)}function x(e){var t,n,r,o,i,l,c,u,p,m,_,y,b,x,O,j=[];for(y=(e=g(e)).length,t=128,n=0,i=72,l=0;l<y;++l)(_=e[l])<128&&j.push(f(_));for(r=o=j.length,o&&j.push("-");r<y;){for(c=s,l=0;l<y;++l)(_=e[l])>=t&&_<c&&(c=_);for(c-t>d((s-n)/(b=r+1))&&h("overflow"),n+=(c-t)*b,t=c,l=0;l<y;++l)if((_=e[l])<t&&++n>s&&h("overflow"),_==t){for(u=n,p=a;!(u<(m=p<=i?1:p>=i+26?26:p-i));p+=a)O=u-m,x=a-m,j.push(f(w(m+O%x,0))),u=d(O/x);j.push(f(w(u,0))),i=v(n,b,r==o),n=0,++r}++n,++t}return j.join("")}i={version:"1.4.1",ucs2:{decode:g,encode:y},decode:b,encode:x,toASCII:function(e){return _(e,(function(e){return c.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return _(e,(function(e){return l.test(e)?b(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},5917:e=>{"use strict";e.exports=JSON.parse('{"search":{"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"}}')},5928:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5986:e=>{"use strict";e.exports=JSON.parse('{"rank_eval":{"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"}}')},6057:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".tab-title {\n display: flex;\n align-items: center;\n gap: 4px;\n height: 20px;\n padding: 0;\n border-radius: 0;\n transition: background-color 0.2s ease;\n}\n.tab-title .input-eidtor {\n border-radius: 0;\n border: none;\n border-right: none;\n padding-left: 1em;\n color: rgba(0, 0, 0, 0.65);\n height: 20px;\n line-height: 20px;\n background-color: #939ea0;\n color: #fff;\n}\n.tab-title .input-eidtor:focus {\n outline: none;\n}\n.tab-title .icon-cont {\n height: 100%;\n display: flex;\n align-items: center;\n gap: 4px;\n}\n#console .ant-tabs-bar {\n margin: 0px 0 2px 0;\n}\n#console .ant-tabs-tab-with-remove {\n border-radius: 0;\n padding: 4px 16px;\n}\n#console .ant-tabs-tab-with-remove.ant-tabs-tab-active {\n border-radius: 0;\n background-color: #939ea0 !important;\n color: #fff !important;\n}\n#console .ant-tabs-tab-with-remove.ant-tabs-tab-active .tab-title .icon-cont {\n color: #fff;\n}\n#console .ant-tabs-tab-with-remove:hover {\n background-color: rgba(147, 158, 160, 0.1);\n}\n#console .ant-tabs-tab-with-remove.ant-tabs-tab-active:hover {\n background-color: #939ea0 !important;\n}\n#console .ant-tabs-nav-add {\n border-radius: 0;\n background: none;\n height: 30px;\n min-height: 30px;\n min-width: 30px;\n border: none;\n padding: 0;\n}\n",""])},6095:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6122:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6153:()=>{},6193:e=>{"use strict";e.exports=JSON.parse('{"indices.get_mapping":{"priority":10}}')},6277:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r=e[1]||"",o=e[3];if(!o)return r;if(t&&"function"==typeof btoa){var i=(n=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),s=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[r].concat(s).concat([i]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},6307:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6324:(e,t,n)=>{"use strict";var r=n(9632),o=n(1536),i=n(7893),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},p=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,i,s,a,c,p,d,m,_,g,y,w,v,b,x,O,j){for(var E,k=t,S=j,T=0,N=!1;void 0!==(S=S.get(h))&&!N;){var R=S.get(t);if(T+=1,void 0!==R){if(R===T)throw new RangeError("Cyclic object value");N=!0}void 0===S.get(h)&&(T=0)}if("function"==typeof _?k=_(n,k):k instanceof Date?k=w(k):"comma"===i&&l(k)&&(k=o.maybeMap(k,(function(e){return e instanceof Date?w(e):e}))),null===k){if(c)return m&&!x?m(n,f.encoder,O,"key",v):n;k=""}if("string"==typeof(E=k)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(k))return m?[b(x?n:m(n,f.encoder,O,"key",v))+"="+b(m(k,f.encoder,O,"value",v))]:[b(n)+"="+b(String(k))];var C,A=[];if(void 0===k)return A;if("comma"===i&&l(k))x&&m&&(k=o.maybeMap(k,m)),C=[{value:k.length>0?k.join(",")||null:void 0}];else if(l(_))C=_;else{var P=Object.keys(k);C=g?P.sort(g):P}var L=d?n.replace(/\./g,"%2E"):n,q=s&&l(k)&&1===k.length?L+"[]":L;if(a&&l(k)&&0===k.length)return q+"[]";for(var I=0;I<C.length;++I){var D=C[I],M="object"==typeof D&&void 0!==D.value?D.value:k[D];if(!p||null!==M){var F=y&&d?D.replace(/\./g,"%2E"):D,U=l(k)?"function"==typeof i?i(q,F):q:q+(y?"."+F:"["+F+"]");j.set(t,T);var z=r();z.set(h,j),u(A,e(M,U,i,s,a,c,p,d,"comma"===i&&x&&l(k)?null:m,_,g,y,w,v,b,x,O,z))}}return A};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!s.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=i.formatters[n],c=f.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in a?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var p=[];if("object"!=typeof o||null===o)return"";var d=a[c.arrayFormat],h="comma"===d&&c.commaRoundTrip;n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var _=r(),g=0;g<n.length;++g){var y=n[g];c.skipNulls&&null===o[y]||u(p,m(o[y],y,d,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,_))}var w=p.join(c.delimiter),v=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),w.length>0?v+w:""}},6453:e=>{"use strict";e.exports=JSON.parse('{"snapshot.create":{"data_autocomplete_rules":{"indices":"*","ignore_unavailable":{"__one_of":[true,false]},"include_global_state":{"__one_of":[true,false]},"partial":{"__one_of":[true,false]}}}}')},6461:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6465:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6472:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6495:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6502:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6529:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6543:e=>{"use strict";e.exports=JSON.parse('{"search_shards":{"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"}}')},6616:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6640:e=>{"use strict";e.exports=JSON.parse('{"indices.create":{"data_autocomplete_rules":{"mappings":{"__scope_link":"put_mapping"},"settings":{"__scope_link":"put_settings"},"aliases":{"__template":{"NAME":{}}}}}}')},6644:e=>{"use strict";e.exports=JSON.parse('{"update":{"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"}}')},6752:e=>{"use strict";e.exports=JSON.parse('{"indices.analyze":{"data_autocomplete_rules":{"text":[],"field":"{field}","analyzer":"","tokenizer":"","char_filter":[],"filter":[],"explain":{"__one_of":[false,true]},"attributes":[]}}}')},6808:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6847:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".console-menu-popover .menu-btn {\n padding: 12px;\n box-sizing: content-box;\n}\n.console-menu-popover .menu-btn:hover {\n background: none !important;\n text-decoration: underline;\n}\n.ant-popover .ant-popover-inner {\n padding: 0;\n}\n",""])},6871:(e,t,n)=>{var r=n(5473);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},7110:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7131:e=>{"use strict";e.exports=JSON.parse('{"indices.get_template":{"patterns":["_template","_template/{template}"]}}')},7277:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7299:e=>{"use strict";e.exports=JSON.parse('{"index":{"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"}}')},7335:e=>{"use strict";e.exports=JSON.parse('{"get_script_context":{"methods":["GET"],"patterns":["_script_context"]}}')},7369:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7379:e=>{"use strict";e.exports=TypeError},7388:e=>{"use strict";e.exports=SyntaxError},7401:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7408:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7425:e=>{"use strict";e.exports=JSON.parse('{"info":{"methods":["GET"],"patterns":[""],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"}}')},7453:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".fullscreen {\n position: fixed;\n width: 100%;\n left: 0;\n top: 0;\n height: 100vh;\n z-index: 100;\n}\n@keyframes slideInUp {\n from {\n transform: translate3d(0, 100%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n.slideInUp {\n animation-name: slideInUp;\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);\n}\n",""])},7481:e=>{"use strict";e.exports=JSON.parse('{"indices.put_alias":{"data_autocomplete_rules":{"filter":{},"routing":"1","search_routing":"1,2","index_routing":"1"}}}')},7517:(e,t,n)=>{"use strict";var r=n(3790),o=n(7388),i=n(7379),s=n(1325);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!s&&s(e,t);if(r)r(e,t,{configurable:null===c&&p?p.configurable:!c,enumerable:null===a&&p?p.enumerable:!a,value:n,writable:null===l&&p?p.writable:!l});else{if(!u&&(a||l||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},7533:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(3583);e.exports=i.call(r,o)},7570:e=>{"use strict";e.exports=RangeError},7598:(e,t,n)=>{var r=n(1908);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},7630:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7646:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7661:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7691:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7704:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7787:e=>{"use strict";e.exports=JSON.parse('{"get_script":{"url_params":{"master_timeout":""},"methods":["GET"],"patterns":["_scripts/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"}}')},7795:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7877:(e,t,n)=>{"use strict";var r=n(6324),o=n(2650),i=n(7893);e.exports={formats:i,parse:o,stringify:r}},7888:e=>{"use strict";e.exports=JSON.parse('{"cat.help":{"url_params":{"help":"__flag__","s":[]},"methods":["GET"],"patterns":["_cat"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html"}}')},7893:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},7944:e=>{"use strict";e.exports=JSON.parse('{"delete_script":{"url_params":{"timeout":"","master_timeout":""},"methods":["DELETE"],"patterns":["_scripts/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"}}')},7976:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7978:e=>{"use strict";e.exports=JSON.parse('{"mtermvectors":{"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"}}')},7985:e=>{"use strict";e.exports=JSON.parse('{"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":false}}}')},7989:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".container {\n display: flex;\n overflow: hidden;\n}\n.container .group {\n border-right: 1px solid #ebebeb;\n width: 120px;\n}\n.container .group .item {\n padding: 0 8px 0 16px;\n height: 32px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: #666;\n gap: 8px;\n cursor: pointer;\n}\n.container .group .item.selected,\n.container .group .item:hover {\n background-color: #e8f6fe;\n}\n.container .group .item .label {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.container .group .item .icon {\n font-size: 10px;\n}\n.container .content {\n flex: 1;\n padding: 0px 16px;\n overflow: hidden;\n}\n.container .content .search {\n margin-top: 16px;\n}\n.container .content .tools {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n}\n.container .content .tools .result {\n color: #999;\n font-size: 12px;\n}\n.container .content .tools .actions {\n display: flex;\n justify-content: space-between;\n gap: 12px;\n color: #101010;\n font-size: 14px;\n align-items: center;\n}\n.container .content .tools .actions .ant-checkbox-inner {\n width: 14px;\n height: 14px;\n border-color: rgba(0, 0, 0, 0.65);\n transition: all 0.3s;\n}\n.container .content .tools .actions .ant-checkbox-checked .ant-checkbox-inner:after {\n top: 5px;\n left: 2px;\n transition: all 0.3s;\n}\n.container .content .tools .actions .ant-checkbox-indeterminate .ant-checkbox-inner::after {\n top: 50%;\n left: 50%;\n transition: all 0.3s;\n}\n.container .content .listWrapper {\n margin: 12px -6px 0;\n}\n.container .content .list .item {\n height: 32px;\n color: #666;\n cursor: pointer;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 6px;\n gap: 8px;\n}\n.container .content .list .item.selected,\n.container .content .list .item:hover {\n background-color: #e8f6fe;\n}\n.container .content .list .item .label {\n flex: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: left;\n}\n.container .content .list .item .tag {\n color: #999;\n}\n.container .content .footerWrapper {\n margin: 0px -16px 0;\n}\n.container .content .footer {\n height: 40px;\n border-top: 1px solid #ebebeb;\n padding: 0 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 12px;\n}\n.container .content .footer .pager .pageNum {\n margin: 0 12px;\n}\n.container .content .footer .pager .icon {\n color: #007fff;\n cursor: pointer;\n}\n.container .content .footer .pager .icon.disabled {\n color: #c1c1c1;\n pointer-events: none;\n}\n.container .content .footer .actions {\n font-size: 12px;\n}\n.filterPopover .ant-popover-title {\n border: 0;\n}\n.filterPopover .ant-popover-inner-content {\n padding: 16px;\n}\n.sorter {\n width: 250px;\n}\n.sorter .title {\n color: #333;\n font-weight: 600;\n}\n.sorter .form {\n display: flex;\n gap: 6px;\n margin-top: 8px;\n}\n.sorter .actions {\n display: flex;\n justify-content: right;\n margin-top: 18px;\n}\n.filters {\n width: 250px;\n}\n.filters .title {\n color: #333;\n font-weight: 600;\n margin-bottom: 12px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.filters .title .clear {\n color: #007fff;\n font-size: 12px;\n cursor: pointer;\n}\n.filters .content {\n margin-bottom: 16px;\n}\n.filters .content .label {\n color: #999;\n}\n.filters .content .options {\n max-height: 150px;\n overflow-y: auto;\n}\n.filters .content .options .option {\n display: flex;\n justify-content: space-between;\n padding: 8px 0 0;\n}\n.filters .content:last-child {\n margin-bottom: 0;\n}\n",""])},8090:e=>{"use strict";e.exports=JSON.parse('{"clear_scroll":{"methods":["DELETE"],"patterns":["_search/scroll"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api"}}')},8173:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8203:e=>{"use strict";e.exports=JSON.parse('{"update_by_query":{"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"}}')},8263:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8307:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8397:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8411:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8422:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8472:e=>{"use strict";e.exports=JSON.parse('{"reindex_rethrottle":{"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"}}')},8479:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8513:e=>{"use strict";e.exports=JSON.parse('{"snapshot.restore":{"data_autocomplete_rules":{"indices":"*","ignore_unavailable":{"__one_of":[true,false]},"include_global_state":false,"rename_pattern":"index_(.+)","rename_replacement":"restored_index_$1"}}}')},8534:(e,t,n)=>{"use strict";var r,o=n(9183),i=n(1101),s=n(7570),a=n(9898),l=n(7388),c=n(7379),u=n(4585),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var h=function(){throw new c},m=f?function(){try{return h}catch(e){try{return f(arguments,"callee").get}catch(e){return h}}}():h,_=n(3808)(),g=n(757)(),y=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),w={},v="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,b={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":_&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":w,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&y?y(""[Symbol.iterator]()):r,"%Symbol%":_?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":v,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(e){var x=y(y(e));b["%Error.prototype%"]=x}var O=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return b[t]=n,n},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=n(3583),k=n(7533),S=E.call(Function.call,Array.prototype.concat),T=E.call(Function.apply,Array.prototype.splice),N=E.call(Function.call,String.prototype.replace),R=E.call(Function.call,String.prototype.slice),C=E.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,L=function(e,t){var n,r=e;if(k(j,r)&&(r="%"+(n=j[r])[0]+"%"),k(b,r)){var o=b[r];if(o===w&&(o=O(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=R(e,0,1),n=R(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return N(e,A,(function(e,t,n,o){r[r.length]=n?N(o,P,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=L("%"+r+"%",t),i=o.name,s=o.value,a=!1,u=o.alias;u&&(r=u[0],T(n,S([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var h=n[p],m=R(h,0,1),_=R(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===_||"'"===_||"`"===_)&&m!==_)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&d||(a=!0),k(b,i="%"+(r+="."+h)+"%"))s=b[i];else if(null!=s){if(!(h in s)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var g=f(s,h);s=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[h]}else d=k(s,h),s=s[h];d&&!a&&(b[i]=s)}}return s}},8555:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8560:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8566:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8569:(e,t,n)=>{var r,o,i={},s=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),a=function(e){var t={};return function(n){if(void 0===t[n]){var r=e.call(this,n);if(r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[n]=r}return t[n]}}((function(e){return document.querySelector(e)})),l=null,c=0,u=[],p=n(3716);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var s=0;s<o.parts.length;s++)o.parts[s](r.parts[s]);for(;s<r.parts.length;s++)o.parts.push(y(r.parts[s],t))}else{var a=[];for(s=0;s<r.parts.length;s++)a.push(y(r.parts[s],t));i[r.id]={id:r.id,refs:1,parts:a}}}}function f(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],s=t.base?i[0]+t.base:i[0],a={css:i[1],media:i[2],sourceMap:i[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}function h(e,t){var n=a(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=u[u.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),u.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=a(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function _(e){var t=document.createElement("style");return e.attrs.type="text/css",g(t,e.attrs),h(e,t),t}function g(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function y(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var s=c++;n=l||(l=_(t)),r=b.bind(null,n,s,!1),o=b.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",g(t,e.attrs),h(e,t),t}(t),r=O.bind(null,n,t),o=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=_(t),r=x.bind(null,n),o=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return d(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var s=n[o];(a=i[s.id]).refs--,r.push(a)}for(e&&d(f(e,t),t),o=0;o<r.length;o++){var a;if(0===(a=r[o]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete i[a.id]}}}};var w,v=(w=[],function(e,t){return w[e]=t,w.filter(Boolean).join("\n")});function b(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=v(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function x(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function O(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=p(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([r],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}},8580:e=>{"use strict";e.exports=JSON.parse('{"put_script":{"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"}}')},8623:e=>{"use strict";e.exports=JSON.parse('{"get_script_languages":{"methods":["GET"],"patterns":["_script_language"]}}')},8636:e=>{"use strict";e.exports=JSON.parse('{"count":{"priority":10,"data_autocomplete_rules":{"query":{}}}}')},8688:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8769:(e,t,n)=>{var r=n(3727);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},8899:e=>{"use strict";e.exports=JSON.parse('{"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"]}}}')},8966:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8981:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8985:e=>{"use strict";e.exports=JSON.parse('{"update_by_query_rethrottle":{"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"}}')},9002:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9008:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9089:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9123:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9153:e=>{"use strict";e.exports=JSON.parse('{"exists":{"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"}}')},9155:t=>{"use strict";t.exports=e},9183:e=>{"use strict";e.exports=Error},9211:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9252:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9321:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9340:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".request-status-bar {\n height: 100%;\n color: #333;\n display: flex;\n align-items: center;\n}\n.request-status-bar .bar-item {\n height: 100%;\n display: flex;\n align-items: center;\n}\n.request-status-bar .bar-item .base-info {\n display: flex;\n font-size: 12px;\n align-items: center;\n color: #333;\n}\n.request-status-bar .bar-item .base-info .info-item {\n margin: 0 12px;\n position: relative;\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n color: #333;\n}\n.request-status-bar .bar-item .base-info .info-item.health {\n padding-right: 14px;\n}\n.request-status-bar .bar-item .status_info {\n display: flex;\n font-size: 12px;\n align-items: center;\n color: #333;\n}\n.request-status-bar .bar-item .status_info .info-item {\n margin: 0 12px;\n color: #333;\n}\n",""])},9345:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9367:e=>{"use strict";e.exports=JSON.parse('{"get":{"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"}}')},9396:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9514:e=>{"use strict";e.exports=t},9594:e=>{"use strict";e.exports=JSON.parse('{"clear_scroll":{"data_autocomplete_rules":{"scroll_id":""}}}')},9632:(e,t,n)=>{"use strict";var r=n(8534),o=n(2787),i=n(2864),s=n(7379),a=r("%WeakMap%",!0),l=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+i(e))},get:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(l){if(t)return d(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,o){a&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new a),u(e,r,o)):l?(t||(t=new l),f(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},9655:(e,t,n)=>{var r=n(4717);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},9683:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9739:e=>{"use strict";e.exports=JSON.parse('{"update_by_query":{"data_autocomplete_rules":{"conflicts":"","query":{"__scope_link":"GLOBAL.query"},"script":{"__template":{"source":"","lang":"painless"},"__scope_link":"GLOBAL.script"}}}}')},9777:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9788:e=>{"use strict";e.exports=JSON.parse('{"count":{"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"}}')},9797:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9862:e=>{"use strict";e.exports=JSON.parse('{"cluster.put_settings":{"data_autocomplete_rules":{"persistent":{"cluster":{"routing":{"allocation.enable":{"__one_of":["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{"__one_of":[false,true]},"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":[false,true]}}},"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":[false,true]},"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":[false,true]}}},"indices":{"breaker":{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}}}}}')},9889:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9891:(e,t,n)=>{var r=n(6057);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},9898:e=>{"use strict";e.exports=ReferenceError},9997:e=>{"use strict";e.exports=JSON.parse('{"indices.clone":{"data_autocomplete_rules":{"settings":{"__scope_link":"put_settings"},"aliases":{"__template":{"NAME":{}}}}}}')}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})();var i={};return(()=>{"use strict";o.r(i),o.d(i,{default:()=>us});const e=require("react/jsx-runtime");var t=o(9155),n=o.n(t);const r=require("re-resizable"),s=require("react-intl"),a=require("@ant-design/icons");var l=o.n(a);const c=require("antd/lib/button");var u=o.n(c);require("antd/lib/button/style/index.js");const p=require("antd/lib/popover");var d=o.n(p);require("antd/lib/popover/style/index.js");const f=require("lodash");var h=o.n(f);const m=require("antd/lib/checkbox");var _=o.n(m);require("antd/lib/checkbox/style/index.js");const g=require("antd/lib/divider");var y=o.n(g);require("antd/lib/divider/style/index.js");const w=require("antd/lib/input");var v=o.n(w);require("antd/lib/input/style/index.js");const b=require("antd/lib/select");var x=o.n(b);require("antd/lib/select/style/index.js");const O=o.p+"fd9163882e4a2722477f810fd0c422c7.svg";o(2119);const j=function(t){var n=t.loading,r=void 0===n||n,o=t.currentLocales;return r?(0,e.jsxs)("div",{className:"loading",children:[(0,e.jsx)("img",{src:O}),(0,e.jsx)("div",{className:"tips",children:o["dropdownlist.loading"]})]}):null};o(8769);const E=function(t){var n=t.currentLocales,r=t.failed;return void 0===r||r?(0,e.jsxs)("div",{className:"error",children:[(0,e.jsx)(a.CloseCircleOutlined,{}),(0,e.jsx)("div",{className:"tips",children:n["dropdownlist.loading.failed"]})]}):null},k=require("antd/lib/empty");var S=o.n(k);require("antd/lib/empty/style/index.js"),o(7598);const T=function(t){return(0,e.jsx)("div",{className:"empty",children:(0,e.jsx)(S(),{image:S().PRESENTED_IMAGE_SIMPLE})})};o(1871);var N=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};const R=function(n){var r=n.visible,o=n.value,i=n.onChange,s=n.loading,l=void 0!==s&&s,c=n.failed,p=void 0!==c&&c,h=n.rowKey,m=n.renderItem,g=n.renderTag,w=n.renderEmptyList,b=n.onSearchChange,O=n.searchValue,k=n.sorterOptions,S=n.pagination,R=n.data,C=n.sorter,A=n.onSorterChange,P=n.filters,L=n.onFiltersChange,q=n.filterOptions,I=n.groups,D=n.onGroupsChange,M=n.groupOptions,F=n.currentLocales,U=n.showGroup,z=n.onShowGroupChange,B=n.isMultiple,G=n.extraData,J=void 0===G?[]:G,$=n.searchPlaceholder,V=n.onRefresh,W=n.actions,H=void 0===W?[]:W,K=(0,t.useState)([]),Q=K[0],Y=K[1],X=(0,t.useState)(!1),Z=X[0],ee=X[1],te=(0,t.useRef)(null),ne=(0,t.useCallback)((function(){setTimeout((function(){z(!1),b()}),500)}),[z,b]),re=function(e,t){var n=N([],Q,!0);n[t]=e,Y(n)};(0,t.useEffect)((function(){te.current&&r&&te.current.focus()}),[r,te]),(0,t.useEffect)((function(){r||ne()}),[r,ne]),(0,t.useEffect)((function(){Y(C)}),[C]);var oe=S.currentPage,ie=S.pageSize,se=S.total,ae=S.pages,le=(0,t.useMemo)((function(){if(void 0===I[0])return[];var e=M.find((function(e){return e.value===I[0].value}));return(null==e?void 0:e.list)||[]}),[M,I]),ce=(0,t.useMemo)((function(){return!!B&&(B?0!==(null==o?void 0:o.length)&&(!!R.every((function(e){return-1!==o.findIndex((function(t){return t[h]===e[h]}))}))||!!R.some((function(e){return-1!==o.findIndex((function(t){return t[h]===e[h]}))}))&&"indeterminate"):void 0)}),[B,JSON.stringify(R),JSON.stringify(o)]),ue=function(t,n){return U&&0!==t.length?(0,e.jsx)("div",{className:"group",children:t.map((function(t){var r;return(0,e.jsxs)("div",{className:"".concat("item"," ").concat((null===(r=I[n])||void 0===r?void 0:r.value)===t.value?"selected":""),onClick:function(){return function(e,t){var n,r=N([],I,!0);(null===(n=r[e])||void 0===n?void 0:n.value)===t.value?r.splice(e,1):r[e]={key:t.key,value:t.value},r.splice(e+1,r.length),D(r)}(n,t)},title:t.label,children:[(0,e.jsx)("span",{className:"label",children:t.label}),(0,e.jsx)(a.RightOutlined,{className:"icon"})]},t.value)}))}):null},pe=H.concat(V?[(0,e.jsx)("a",{disabled:l,onClick:function(){l||V()},children:F["dropdownlist.refresh"]})]:[]);return(0,e.jsxs)("div",{className:"container",children:[ue(M,0),ue(le,1),(0,e.jsxs)("div",{className:"content",children:[(0,e.jsx)(v(),{ref:te,value:O,onChange:function(e){l||function(e){b(e.trim())}(e.target.value)},allowClear:!0,className:"search",placeholder:$||F["dropdownlist.search.placeholder"]}),(0,e.jsxs)("div",{className:"tools",children:[(0,e.jsxs)("div",{className:"result",children:[F["dropdownlist.result.found"]," ",!1===S?R.length:se," ",F["dropdownlist.result.records"]]}),(0,e.jsxs)("div",{className:"actions",children:[k.length>0&&(0,e.jsx)(d(),{open:Z,onOpenChange:ee,overlayClassName:"filterPopover",placement:"bottom",trigger:"click",content:(0,e.jsxs)("div",{className:"sorter",children:[(0,e.jsx)("div",{className:"title",children:F["dropdownlist.sort.by"]}),(0,e.jsxs)("div",{className:"form",children:[(0,e.jsx)(x(),{value:Q[0],style:{width:"65%"},onChange:function(e){return re(e,0)},children:k.map((function(t){return(0,e.jsx)(x().Option,{value:t.key,children:t.label},t.key)}))}),(0,e.jsxs)(x(),{value:Q[1],style:{width:"35%"},onChange:function(e){return re(e,1)},children:[(0,e.jsx)(x().Option,{value:"desc",children:F["dropdownlist.sort.by.desc"]}),(0,e.jsx)(x().Option,{value:"asc",children:F["dropdownlist.sort.by.asc"]})]})]}),(0,e.jsxs)("div",{className:"actions",children:[(0,e.jsx)(u(),{type:"link",onClick:function(){A([]),ee(!1)},children:F["dropdownlist.sort.by.clear"]}),(0,e.jsx)(u(),{style:{width:80},type:"primary",onClick:function(){A(Q),ee(!1)},children:F["dropdownlist.apply"]})]})]}),children:(0,e.jsx)(a.SortAscendingOutlined,{style:{cursor:"pointer"}})}),q.length>0&&(0,e.jsx)(d(),{overlayClassName:"filterPopover",placement:"bottom",trigger:"click",content:(0,e.jsxs)("div",{className:"filters",children:[(0,e.jsxs)("div",{className:"title",children:[F["dropdownlist.filters"],(0,e.jsx)(ReloadOutlined,{className:"clear",onClick:function(){L({})}})]}),q.map((function(t){return(0,e.jsxs)("div",{className:"content",children:[(0,e.jsx)("div",{className:"label",children:t.label}),(0,e.jsx)("div",{className:"options",children:(t.list||[]).map((function(n){return(0,e.jsxs)("div",{className:"option",children:[(0,e.jsx)(_(),{onChange:function(e){return function(e,t,n){var r=(0,f.cloneDeep)(P),o=r[e]||[],i=o.indexOf(t);-1===i?n&&o.push(t):n||o.splice(i,1),r[e]=o,L(r)}(t.key,n.value,e.target.checked)},checked:-1!==(P[t.key]||[]).indexOf(n.value),children:n.label||n.value}),void 0!==n.count&&(0,e.jsx)("div",{children:n.count})]},n.value)}))})]},t.key)}))]}),children:(0,e.jsx)(FilterOutlined,{style:{cursor:"pointer"}})}),M.length>0&&(0,e.jsx)(LayoutOutlined,{style:{cursor:"pointer"},onClick:function(){z(!U)}}),B&&(0,e.jsx)(_(),{indeterminate:"indeterminate"===ce,onChange:function(e){return t=e.target.checked,n=(0,f.cloneDeep)(o||[]),R.forEach((function(e){var r=n.findIndex((function(t){return t[h]===e[h]}));-1===r&&t?n.push(e):-1===r||t||n.splice(r,1)})),void i(n);var t,n},checked:!0===ce})]})]}),(0,e.jsx)("div",{className:"listWrapper",children:(0,e.jsx)("div",{className:"list",style:{maxHeight:"".concat(32*(ie+J.length),"px")},children:l?(0,e.jsx)(j,{currentLocales:F}):p?(0,e.jsx)(E,{currentLocales:F}):0===R.length&&0===J.length?w?w():(0,e.jsx)(T,{}):J.concat(R).map((function(t){var n=B?-1!==(o||[]).findIndex((function(e){return e[h]===t[h]})):(null==o?void 0:o[h])===t[h];return(0,e.jsxs)("div",{className:"".concat("item"," ").concat(n?"selected":""),onClick:function(){return function(e){if(B){var t=(0,f.cloneDeep)(o)||[],n=t.findIndex((function(t){return t[h]===e[h]}));-1===n?t.push(e):t.splice(n,1),i(t)}else i(e)}(t)},children:[(0,e.jsx)("div",{className:"label",children:m?m(t):t[h]}),g&&!U?(0,e.jsx)("div",{className:"tag",children:m?g(t):t[h]}):null,n&&(0,e.jsx)(a.CheckOutlined,{})]},t[h])}))})}),!1===S?null:(0,e.jsx)("div",{className:"footerWrapper",children:(0,e.jsxs)("div",{className:"footer",children:[(0,e.jsx)("div",{className:"actions",children:pe.map((function(n,r){return(0,e.jsxs)(t.Fragment,{children:[n,r!==pe.length-1&&(0,e.jsx)(y(),{type:"vertical"})]},r)}))}),(0,e.jsxs)("div",{className:"pager",children:[(0,e.jsx)(a.LeftOutlined,{onClick:function(){return S.onChange(oe-1)},className:"".concat("icon"," ").concat(oe<=1?"disabled":"")}),(0,e.jsxs)("span",{className:"pageNum",children:[oe,"/",ae]}),(0,e.jsx)(a.RightOutlined,{onClick:function(){return S.onChange(oe+1)},className:"".concat("icon"," ").concat(oe>=ae?"disabled":"")})]})]})})]})]})};var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)};const A=function(n){var r=n.visible,o=n.data,i=void 0===o?[]:o,s=n.pagination,a=n.searchKey,l=n.searchValue,c=n.sorter,u=n.filters,p=n.groups,d=(0,t.useState)(),h=d[0],m=d[1],_=(0,t.useMemo)((function(){var e=(0,f.cloneDeep)(i);a&&l&&(e=e.filter((function(e){return-1!=="".concat(e[a]||"").toLowerCase().indexOf(l.toLowerCase())}))),p.filter((function(e){return void 0!==e.value&&""!==e.value&&!!e.key})).forEach((function(t){e=e.filter((function(e){return!e.hasOwnProperty(t.key)||e[t.key]===t.value}))}));var t=Object.keys(u);if(t.length>0&&t.filter((function(e){return 0!==(u[e]||[]).length})).forEach((function(t){e=e.filter((function(e){return-1!==u[t].indexOf(e[t])}))})),c.length>=2&&c[0]&&c[1]){var n=c[0],r=c[1];e=e.sort((function(e,t){return"string"==typeof e[n]?r===M?t[n].localeCompare(e[n]):e[n].localeCompare(t[n]):isNaN(e[n])?0:r===M?t[n]-e[n]:e[n]-t[n]}))}return e}),[JSON.stringify(i),a,l,JSON.stringify(c),JSON.stringify(u),JSON.stringify(p)]);(0,t.useEffect)((function(){if(!1!==s){var e=_.length,t=(null==s?void 0:s.pageSize)||D;m({currentPage:e?1:0,pageSize:t,total:e,pages:Math.ceil(e/t)})}else m(!1)}),[_,s]);var g=(0,t.useMemo)((function(){if(!h)return _;var e=h.currentPage,t=h.pageSize;return _.filter((function(n,r){return r>=(e-1)*t&&r<e*t}))}),[_,h]);return(0,e.jsx)(R,C({},n,{visible:r,data:g,pagination:!1!==h&&C(C({},h),{onChange:function(e){var t=h.pages;e<0||e>t||m(C(C({},h),{currentPage:e}))}})}))};var P=function(){return P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},P.apply(this,arguments)};const L=function(t){var n=t.visible,r=t.data,o=void 0===r?[]:r,i=t.pagination,s=void 0===i?{}:i,a=s.total||o.length,l=s.pageSize||D;return(0,e.jsx)(R,P({},t,{visible:n,data:o,pagination:P(P({},s),{pageSize:l,pages:Math.ceil(a/l)})}))},q={"en-US":{"dropdownlist.search.placeholder":"Search...","dropdownlist.result.found":"Found","dropdownlist.result.records":"records","dropdownlist.sort.by":"Sort By","dropdownlist.sort.by.desc":"Desc","dropdownlist.sort.by.asc":"Asc","dropdownlist.sort.by.clear":"Clear sorting","dropdownlist.filters":"Filters","dropdownlist.apply":"Apply","dropdownlist.loading":"Loading...","dropdownlist.loading.failed":"Load failed","dropdownlist.refresh":"Refresh"},"zh-CN":{"dropdownlist.search.placeholder":"搜索","dropdownlist.result.found":"找到","dropdownlist.result.records":"结果","dropdownlist.sort.by":"排序","dropdownlist.sort.by.desc":"降序","dropdownlist.sort.by.asc":"升序","dropdownlist.sort.by.clear":"清除排序","dropdownlist.filters":"过滤","dropdownlist.apply":"应用","dropdownlist.loading":"加载中...","dropdownlist.loading.failed":"加载失败","dropdownlist.refresh":"刷新"}};o(6871);var I=function(){return I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},I.apply(this,arguments)},D=10,M="desc";const F=function(n){var r=n.className,o=void 0===r?"":r,i=n.popoverClassName,s=void 0===i?"":i,l=n.popoverPlacement,c=void 0===l?"bottomLeft":l,p=n.children,h=n.width,m=void 0===h?300:h,_=n.dropdownWidth,g=n.locale,y=void 0===g?"en-US":g,w=n.allowClear,v=void 0!==w&&w,b=n.mode,x=void 0===b?"":b,O=n.value,j=n.disabled,E=void 0!==j&&j,k=n.onChange,S=n.placeholder,T=void 0===S?"":S,N=n.loading,R=void 0!==N&&N,C=n.data,P=void 0===C?[]:C,D=n.rowKey,M=n.renderItem,F=n.renderLabel,U=n.pagination,z=n.onSearchChange,B=void 0===z?function(){}:z,G=n.sorter,J=void 0===G?[]:G,$=n.onSorterChange,V=void 0===$?function(){}:$,W=n.sorterOptions,H=void 0===W?[]:W,K=n.filters,Q=void 0===K?{}:K,Y=n.onFiltersChange,X=void 0===Y?function(){}:Y,Z=n.filterOptions,ee=void 0===Z?[]:Z,te=n.groups,ne=void 0===te?[]:te,re=n.onGroupsChange,oe=void 0===re?function(){}:re,ie=n.groupOptions,se=void 0===ie?[]:ie,ae=n.onGroupVisibleChange,le=void 0===ae?function(){}:ae,ce=n.autoAdjustOverflow,ue=void 0===ce?{adjustX:1}:ce,pe=n.getPopupContainer,de=void 0===pe?function(e){return e.parentNode}:pe,fe=(n.extraData,n.showListIcon),he=void 0===fe||fe,me=(0,t.useState)(!1),_e=me[0],ge=me[1],ye=(0,t.useState)(!1),we=ye[0],ve=ye[1],be=(0,t.useState)(),xe=be[0],Oe=be[1],je=(0,t.useState)(),Ee=je[0],ke=je[1],Se=(0,t.useRef)(null),Te=(0,t.useMemo)((function(){return"multiple"===x&&(void 0===O||Array.isArray(O))}),[x,O]),Ne=function(e){return F?F(e):M?M(e):e[D]};(0,t.useEffect)((function(){!_&&isNaN(Number(m))&&Se.current&&ke(Se.current.offsetWidth)}),[_,m,Se]);var Re=_||m;isNaN(Number(Re))?Ee&&(Re="".concat(Ee,"px")):Re="".concat(Re,"px"),we&&(Re="calc(".concat(Re," + ").concat(120*ne.length||120,"px)"));var Ce,Ae,Pe=(Ce=(0,e.jsx)("span",{style:{color:"#999"},children:T}),Te?(null==O?void 0:O.length)>0?(0,e.jsx)(e.Fragment,{children:O.filter((function(e){return!(!e||!e[D])})).map((function(t,n){return(0,e.jsxs)("span",{className:"".concat("multipleItem"," common-ui-dropdownlist-multiple-item"),style:{backgroundColor:E?"#c4c4c4":"#fff"},children:[Ne(t),(0,e.jsx)(a.CloseOutlined,{style:{marginLeft:4,fontSize:10},onClick:function(e){e.stopPropagation(),function(e){var t=(0,f.cloneDeep)(O)||[];t.splice(e,1),k(t)}(n)}})]},n)}))}):Ce:O&&O[D]?Ne(O):Ce);return(0,e.jsx)("div",{className:"".concat("dropdownList"," ").concat(o),style:{width:m},ref:Se,children:(0,e.jsx)(d(),{open:!E&&_e,onOpenChange:function(e){ge(e)},placement:c,content:(Ae=I(I({},n),{value:O,loading:R,data:P,onSearchChange:function(e){Oe(e),B(e)},searchValue:xe,sorter:J,onSorterChange:V,sorterOptions:H,filters:Q,onFiltersChange:X,filterOptions:ee,groups:ne,onGroupsChange:oe,groupOptions:se,visible:_e,onChange:function(e){k(e),Te||ge(!1)},currentLocales:q[y]||{},showGroup:we,onShowGroupChange:function(e){ve(e),le(e)},isMultiple:Te}),U&&U.currentPage&&U.total?(0,e.jsx)(L,I({},Ae)):(0,e.jsx)(A,I({},Ae))),trigger:"click",overlayClassName:"".concat("popover"," ").concat(s),overlayStyle:{width:Re,height:126+32*((null==U?void 0:U.pageSize)||10)},autoAdjustOverflow:ue,getPopupContainer:de,children:p||(0,e.jsx)(u(),{style:{width:"100%"},disabled:E,className:"".concat("button"," common-ui-dropdownlist-select ").concat(v?"allowClear":""),children:(0,e.jsxs)("div",{className:"content",children:[(0,e.jsxs)("div",{className:"label",children:[he&&(0,e.jsx)(a.BarsOutlined,{className:"icon"}),(0,e.jsx)("span",{children:Pe})]}),_e?(0,e.jsx)(a.UpOutlined,{className:"down"}):(0,e.jsx)(a.DownOutlined,{className:"down"}),v&&(0,e.jsx)(a.CloseCircleOutlined,{onClick:function(e){e.stopPropagation(),k(Te?[]:void 0)},theme:"filled",className:"close"})]})})})})};var U="#00bb1b",z="#fcca00",B="#ff4d4f",G="#bbbbbb",J="#d8d8d8",$={green:U,yellow:z,red:B,available:U,unavailable:J,online:U,offline:J,active:z,normal:U,acknowledged:U,error:B,gray:G},V=function(t){var n,r=(n=t.status,$[n]);return(0,e.jsx)("div",{style:{background:r,height:16,width:5,display:"inline-block"}})},W=function(){return W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},W.apply(this,arguments)};const H=(0,t.forwardRef)((function(n,r){var o=n.className,i=n.popoverClassName,a=n.children,l=n.width,c=n.dropdownWidth,u=n.value,p=n.onChange,d=n.disabled,f=void 0!==d&&d,h=n.mode,m=void 0===h?"":h,_=n.filters,g=void 0===_?{}:_,y=(n.action,n.extraData),w=void 0===y?[]:y,v=n.getClusterList,b=(n.showCreate,n.getPopupContainer),x=void 0===b?function(e){return e.parentNode}:b,O=n.fetchDataSource,j=n.SearchEngineIcon,E=(0,t.useState)([]),k=E[0],S=E[1],T=(0,t.useState)({took:0,total:0,data:[]}),N=T[0],R=T[1],C=(0,t.useState)(!1),A=C[0],P=C[1],L=(0,t.useState)({from:0,size:10,keyword:""}),q=L[0],I=L[1],D=function(e,t,n){return r=void 0,o=void 0,s=function(){var r;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(o){switch(o.label){case 0:return P(!0),[4,O(e,t,n)];case 1:return r=o.sent(),R({data:null==r?void 0:r.data,total:(null==r?void 0:r.total)||0}),v&&v({data:null==r?void 0:r.data,total:(null==r?void 0:r.total)||0}),P(!1),[2]}}))},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,a)}l((s=s.apply(r,o||[])).next())}));var r,o,i,s};(0,t.useEffect)((function(){D(q,k,g)}),[JSON.stringify(q),JSON.stringify(k),JSON.stringify(g)]),(0,t.useImperativeHandle)(r,(function(){return{refresh:function(){return D(q,k,g)}}}));var M=N.data,U=N.total;return(0,e.jsx)(F,{getPopupContainer:x,disabled:f,mode:m,className:o,popoverClassName:i,width:l,dropdownWidth:c,locale:"en-US",value:u,onChange:function(e){p&&p(e)},rowKey:"id",loading:A,data:M.map((function(e){return W({},e._source)})),extraData:w,pagination:{currentPage:U?Math.floor(q.from/q.size)+1:0,total:U,onChange:function(e){I(W(W({},q),{from:(e-1)*q.size}))}},renderItem:function(t){var n,r;return(0,e.jsxs)(e.Fragment,{children:[(null===(n=t.labels)||void 0===n?void 0:n.health_status)&&(0,e.jsx)("div",{style:{marginRight:"5px",display:"inline-block",position:"relative",top:"3px"},children:(0,e.jsx)(V,{status:null===(r=t.labels)||void 0===r?void 0:r.health_status})}),(0,e.jsx)("div",{style:{marginRight:"4px",display:"inline-block",position:"relative",top:"0px"},children:(0,e.jsx)(j,{distribution:t.distribution||g.distribution,width:"16px",height:"16px"})}),t.name]})},renderTag:function(e){return e.version},searchKey:"name",onSearchChange:function(e){I(W(W({},q),{keyword:e}))},sorter:k,onSorterChange:S,sorterOptions:[{label:(0,e.jsx)(s.FormattedMessage,{id:"cluster.monitor.summary.name"}),key:"name"}],onRefresh:function(){D(q,k,g)},actions:[],children:a})}));var K,Q=(K=function(e,t){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},K(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}K(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(t){function n(e){var n=t.call(this,e)||this;return n.handleItemClick=function(e){var t=n.props.onItemClick;t&&"function"==typeof t&&t(e)},n.getClusterList=function(e){var t,r,o;void 0===e&&(e={}),(null===(t=e.data)||void 0===t?void 0:t.length)>0&&0===(null===(r=n.props.panes)||void 0===r?void 0:r.length)&&n.handleItemClick(null===(o=e.data[0])||void 0===o?void 0:o._source)},n.state={data:n.props.data||[]},n}Q(n,t),n.prototype.componentDidMount=function(){},n.prototype.render=function(){var t=this,n=this.props,r=(n.clusterStatus,n.DataSourceSelector,n.fetchDataSource),o=n.SearchEngineIcon;return(0,e.jsx)("div",{children:(0,e.jsx)(H,{width:34,dropdownWidth:400,onChange:function(e){return t.handleItemClick(e)},getClusterList:this.getClusterList,fetchDataSource:r,SearchEngineIcon:o,children:this.props.children})})}}(t.Component),o(9891);var Y=function(n){var r=n.title,o=n.onTitleChange,i=n.distribution,s=n.SearchEngineIcon,a=(0,t.useState)(!1),l=a[0],c=a[1],u=(0,t.useState)(r),p=u[0],d=u[1];(0,t.useEffect)((function(){var e;l&&(null===(e=f.current)||void 0===e||e.focus())}),[l]);var f=(0,t.useRef)(null);return(0,e.jsx)("div",{title:"double click to change title",className:"tab-title",onDoubleClick:function(){c(!0)},children:l?(0,e.jsx)("input",{ref:f,className:"input-eidtor",onKeyDown:function(e){13===e.which&&e.target.blur()},type:"text",value:p,onBlur:function(){c(!1)},onChange:function(e){var t=e.target.value;d(t),"function"==typeof o&&o(t)}}):(0,e.jsxs)("div",{className:"icon-cont",children:[(0,e.jsx)(s,{distribution:i,width:"14px",height:"14px"}),p]})})};const X=require("react-dnd"),Z=require("react-dnd-html5-backend");o(9514),require("classnames"),require("omit.js"),require("antd/lib/config-provider");const ee=require("antd/lib/tabs");var te=o.n(ee);require("antd/lib/tabs/style/index.js"),o(217);var ne=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),re=function(){return re=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},re.apply(this,arguments)},oe=function(n){function r(){var e=null!==n&&n.apply(this,arguments)||this;return e.removeTab=function(t,n){if(n.stopPropagation(),t){var r=e.props.onEdit;r&&r(t,"remove")}},e.handleChange=function(t){var n=e.props.onChange;n&&n(t)},e}return ne(r,n),r.prototype.render=function(){var n=this,r=this.props,o=r.type,i=void 0===o?"line":o,s=r.tabPosition,a=r.children,l=r.items,c=r.animated,u=void 0===c||c,p=r.tabBarExtraContent,d=r.className,f=r.size,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["type","tabPosition","children","items","animated","tabBarExtraContent","className","size"]);if(l)return(0,e.jsx)("div",{className:"flex-tabbar",children:(0,e.jsx)(te(),re({},h,{type:i,tabPosition:s,animated:u,tabBarExtraContent:p,className:d,size:f,onChange:this.handleChange,items:l}))});var m=a;return"editable-card"===i&&(m=t.Children.map(a,(function(e,r){if(!t.isValidElement(e))return e;var o=e.props.closable;return void 0===o||o?t.cloneElement(e,{closable:!0,onClose:function(t){return n.removeTab(e.key,t)}}):e}))),(0,e.jsx)("div",{className:"flex-tabbar",children:(0,e.jsx)(te(),re({},h,{type:i,tabPosition:s,animated:u,tabBarExtraContent:p,className:d,size:f,onChange:this.handleChange,children:m}))})},r.defaultProps={hideAdd:!1,tabPosition:"top"},r}(t.Component);const ie=oe;var se=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ae=function(){return ae=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ae.apply(this,arguments)},le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return se(t,e),t.prototype.render=function(){var e=this.props;return(0,e.connectDragSource)((0,e.connectDropTarget)(e.children))},t}(n().Component),ce=(0,X.DropTarget)("DND_NODE",{drop:function(e,t){var n=t.getItem().index,r=e.index;n!==r&&(e.moveTabNode(n,r),t.getItem().index=r)}},(function(e){return{connectDropTarget:e.dropTarget()}}))((0,X.DragSource)("DND_NODE",{beginDrag:function(e){return{id:e.id,index:e.index}}},(function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}}))(le)),ue=function(t){function r(r){var o=t.call(this,r)||this;return o.moveTabNode=function(e,t){var r=o.state.order.slice(),i=o.props.children;n().Children.forEach(i,(function(e){-1===r.indexOf(e.key)&&r.push(e.key)}));var s=r.indexOf(e),a=r.indexOf(t);r.splice(s,1),r.splice(a,0,e),o.setState({order:r}),"function"==typeof o.props.onTabNodeMoved&&o.props.onTabNodeMoved(r)},o.renderTabBar=function(t,n){return(0,e.jsx)(n,ae({},t,{children:function(t){return(0,e.jsx)(ce,{index:t.key,moveTabNode:o.moveTabNode,children:t},t.key)}}))},o.state={order:r.initialOrder||[]},o}return se(r,t),r.prototype.render=function(){var t=this.state.order,r=this.props.children,o=[];n().Children.forEach(r,(function(e){o.push(e)}));var i=o.slice().sort((function(e,n){var r=t.indexOf(e.key),i=t.indexOf(n.key);return-1!==r&&-1!==i?r-i:-1!==r?-1:-1!==i?1:o.indexOf(e)-o.indexOf(n)}));return(0,e.jsx)(X.DndProvider,{backend:Z.HTML5Backend,children:(0,e.jsx)(ie,ae({renderTabBar:this.renderTabBar},this.props,{children:i}))})},r}(n().Component),pe=(o(9655),function(){return(0,e.jsx)("div",{className:"resize-bar",children:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"dash"}),(0,e.jsx)("div",{className:"dash"})]})})});const de=require("antd/lib/tooltip");var fe=o.n(de);require("antd/lib/tooltip/style/index.js");const he=function(n){var r=n.code,o=(0,t.useState)(!1),i=o[0],s=o[1];return(0,e.jsxs)("div",{style:{position:"relative"},children:[r?(0,e.jsx)(fe(),{title:i?"Copied!":"Copy",children:(0,e.jsx)(a.CopyOutlined,{style:{position:"absolute",top:"10px",right:"10px",zIndex:1,border:"none",padding:"5px",cursor:"pointer"},onClick:function(){navigator.clipboard.writeText(r),s(!0),setTimeout((function(){return s(!1)}),2e3)}})}):null,r?(0,e.jsx)("pre",{style:{padding:"8px",margin:0,backgroundColor:"#F5F7FA",color:"#343741",fontSize:"12px",fontWeight:400,border:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",overflowX:"auto"},children:(0,e.jsx)("code",{children:r})}):null]})},me=require("brace");var _e=o.n(me);function ge(e){for(var t=e.split('"""'),n=1;n<t.length-1;n+=2)t[n]=JSON.stringify(t[n]);return t.join("")}function ye(e){if(e.length>5242880)return e;var t=function(e){var t,n=0,r=!1,o=[];function i(){for(var t=n+1;t<e.length;){var r=e[t];if(r.match(/[^\s\r\n]/))return r;++t}}function s(){++n}for(;n<e.length;){var a=e[n];r?"\\"===a?s():'"'===a&&(":"!==i()&&o.push({startIndex:t,endIndex:n}),r=!1):'"'===a&&(t=n,r=!0),s()}return{stringValues:o}}(e).stringValues;if(0===t.length)return e;for(var n=e.substring(0,t[0].startIndex),r=0;r<t.length;r++){var o=t[r],i=o.startIndex,s=o.endIndex,a=e.substring(i,s+1);"\\"===a[1]&&'"'===a[2]||'"'===a[a.length-2]&&"\\"===a[a.length-3]||!a.match(/\\./)?n+=a:n+='"""'.concat(JSON.parse(a),'"""'),t[r+1]&&(n+=e.substring(s+1,t[r+1].startIndex))}return n+e.substring(t[t.length-1].endIndex+1)}var we=function(){return we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},we.apply(this,arguments)},ve=function(){function e(e,t){this.provider=e,this.currentTokenIdx=-1,this.currentPosition={lineNumber:-1,column:-1},this.tokensLineCache=this.provider.getTokens(t.lineNumber)||[];var n=this.tokensLineCache.findIndex((function(e){return function(e,t){return!(e<t.position.column)&&e<=t.position.column+t.value.length}(t.column,e)}));n>-1?this.updatePosition({tokenIdx:n,position:this.tokensLineCache[n].position}):this.updatePosition({tokenIdx:-1,position:t})}return e.prototype.updateLineTokens=function(e){this.tokensLineCache=e},e.prototype.updatePosition=function(e){this.currentTokenIdx=e.tokenIdx,this.currentPosition=we({},e.position)},e.prototype.step=function(e){var t=this.currentTokenIdx+e,n=this.tokensLineCache[t];if(n)return this.updatePosition({tokenIdx:t,position:n.position}),n;var r=this.currentPosition.lineNumber+e,o=this.provider.getTokens(r);if(o){this.updateLineTokens(o);var i=void 0;e>0?(n=o[0],i=0):i=(n=o[o.length-1])?o.length-1:0;var s=n?n.position:{column:1,lineNumber:r};return this.updatePosition({tokenIdx:i,position:s}),n||null}return null},e.prototype.getCurrentToken=function(){return this.tokensLineCache[this.currentTokenIdx]||null},e.prototype.getCurrentPosition=function(){return this.currentPosition},e.prototype.stepBackward=function(){return this.step(-1)},e.prototype.stepForward=function(){return this.step(1)},e.prototype.getCurrentTokenLineNumber=function(){var e=this.getCurrentToken();return e?e.position.lineNumber:null},e.prototype.getCurrentTokenColumn=function(){var e=this.getCurrentToken();return e?e.position.column:null},e}();function be(e){var t=e.editor,n=e.position,r=t.getTokenProvider();return new ve(r,n)}function xe(e,t){return JSON.stringify(e,null,t?2:0)}function Oe(e,t){for(var n=!1,r=[],o=0;o<e.length;o++){var i=e[o];try{var s=xe(JSON.parse(ge(i)),t);t&&(s=ye(s)),n=n||s!==i,r.push(s)}catch(e){console.log(e),r.push(i)}}return{changed:n,data:r}}const je=require("jquery");var Ee=o.n(je);require("query-string");function ke(e){var t={"content-type":"application/json","X-Team-ID":localStorage.getItem("team_id"),"X-Project-ID":localStorage.getItem("project_id")};return fetch("".concat("/_search-center","/elasticsearch/command"),{method:"POST",body:JSON.stringify(e),headers:t})}var Se=function(){return Se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Se.apply(this,arguments)},Te=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},Ne=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},Re=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Ce=function(){function e(e){var t=this;this.coreEditor=e,this.prevRequestStart=function(e){var n;for(n=null==e?t.coreEditor.getCurrentPosition().lineNumber:h().isObject(e)?e.lineNumber:e;n>0&&!t.parser.isStartRequestRow(n,t.coreEditor);)n--;return{lineNumber:n,column:1}},this.nextRequestStart=function(e){var n;n=null==e?t.coreEditor.getCurrentPosition().lineNumber:h().isObject(e)?e.lineNumber:e;for(var r=t.coreEditor.getLineCount();n<r-1&&!t.parser.isStartRequestRow(n,t.coreEditor);n++);return{row:n,column:0}},this.autoIndent=h().debounce((function(){return Te(t,void 0,void 0,(function(){var e,t,n,r;return Ne(this,(function(o){switch(o.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return o.sent(),[4,this.getRequestRange()];case 2:return(e=o.sent())?[4,this.getRequest()]:[2];case 3:return(t=o.sent())?(t.data&&t.data.length>0&&(n=1===t.data.length,(r=Oe(t.data,n)).changed||(n=!n,r=Oe(t.data,n)),t.data=r.data,this.replaceRequestRange(t,e)),[2]):[2]}}))}))}),25),this.update=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return Te(t,Re([e],n,!0),void 0,(function(e,t){return void 0===t&&(t=!1),Ne(this,(function(n){return[2,this.coreEditor.setValue(e,t)]}))}))},this.replaceRequestRange=function(e,n){var r,o,i=("string"!=typeof(o=(r=e).data)&&(o=o.join("\n")),r.method+" "+r.url+"\n"+o);n?t.coreEditor.replaceRange(n,i):t.coreEditor.insert(t.coreEditor.getCurrentPosition(),i)},this.getRequestRange=function(e){return Te(t,void 0,Promise,(function(){var t,n;return Ne(this,(function(r){switch(r.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return r.sent(),this.parser.isInBetweenRequestsRow(e)?[2,null]:(t=this.prevRequestStart(e),n=this.nextRequestEnd(t),[2,{start:Se({},t),end:Se({},n)}])}}))}))},this.expandRangeToRequestEdges=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Te(t,Re([],e,!0),Promise,(function(e){var t,n,r,o;return void 0===e&&(e=this.coreEditor.getSelectionRange()),Ne(this,(function(i){switch(i.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:if(i.sent(),t=e.start.lineNumber,n=e.end.lineNumber,r=Math.max(1,this.coreEditor.getLineCount()),this.parser.isInBetweenRequestsRow(t));else for(;t>=1&&!this.parser.isStartRequestRow(t);t--);if(t<1||t>n)return[2,null];if(this.parser.isInBetweenRequestsRow(n))for(;n>=t&&!this.parser.isEndRequestRow(n);n--);else for(;n<=r&&!this.parser.isEndRequestRow(n);n++);return n<t||n>r?[2,null]:(o=(this.coreEditor.getLineValue(n)||"").replace(/\s+$/,"").length+1,[2,{start:{lineNumber:t,column:1},end:{lineNumber:n,column:o}}])}}))}))},this.getRequestInRange=function(e){return Te(t,void 0,void 0,(function(){var t,n,r,o,i,s,a,l;return Ne(this,(function(c){switch(c.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:if(c.sent(),!e)return[2,null];if(t={method:"",data:[],url:"",range:e},n=e.start,r=be({editor:this.coreEditor,position:n}),o=r.getCurrentToken(),this.parser.isEmptyToken(o)&&(o=this.parser.nextNonEmptyToken(r)),null==o)return[2,null];if(t.method=o.value,!(o=this.parser.nextNonEmptyToken(r))||"method"===o.type)return[2,null];for(t.url="";o&&o.type&&0===o.type.indexOf("url");)t.url+=o.value,o=r.stepForward();for(this.parser.isEmptyToken(o)&&(o=this.parser.nextNonEmptyToken(r)),i=(o?0:1)+r.getCurrentPosition().lineNumber;i<e.end.lineNumber||i===e.end.lineNumber&&1<e.end.column;)s=this.nextDataDocEnd({lineNumber:i,column:1}),a={start:{lineNumber:i,column:1},end:s},l=this.coreEditor.getValueInRange(a),t.data.push(l.trim()),i=s.lineNumber+1;return[2,t]}}))}))},this.getRequestsInRange=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Te(t,Re([],e,!0),Promise,(function(e,t){var n,r,o,i,s,a,l,c=this;return void 0===e&&(e=this.coreEditor.getSelectionRange()),void 0===t&&(t=!1),Ne(this,(function(u){switch(u.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return u.sent(),e?[4,this.expandRangeToRequestEdges(e)]:[2,[]];case 2:if(!(n=u.sent()))return[2,[]];r=[],o=n.start.lineNumber,i=n.end.lineNumber,s=n.start.lineNumber,a=function(){if(t){var e=c.coreEditor.getLines(o,s-1).join("\n");e&&r.push(e)}},u.label=3;case 3:return s<=i?this.parser.isStartRequestRow(s)?(a(),[4,this.getRequest(s)]):[3,5]:[3,7];case 4:return(l=u.sent())?(r.push(l),o=s=l.range.end.lineNumber+1,[3,6]):[2,r];case 5:++s,u.label=6;case 6:return[3,3];case 7:return a(),[2,r]}}))}))},this.getRequest=function(e){return Te(t,void 0,void 0,(function(){var t;return Ne(this,(function(n){switch(n.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return n.sent(),this.parser.isInBetweenRequestsRow(e)?[2,null]:[4,this.getRequestRange(e)];case 2:return t=n.sent(),[2,this.getRequestInRange(t)]}}))}))},this.moveToPreviousRequestEdge=function(){return Te(t,void 0,void 0,(function(){var e;return Ne(this,(function(t){switch(t.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:for(t.sent(),(e=this.coreEditor.getCurrentPosition()).lineNumber--;e.lineNumber>1&&!this.parser.isRequestEdge(e.lineNumber);e.lineNumber--);return this.coreEditor.moveCursorToPosition({lineNumber:e.lineNumber,column:1}),[2]}}))}))},this.moveToNextRequestEdge=function(e){return Te(t,void 0,void 0,(function(){var t,n;return Ne(this,(function(r){switch(r.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:for(r.sent(),t=this.coreEditor.getCurrentPosition(),n=this.coreEditor.getLineCount(),e||t.lineNumber++;t.lineNumber<n&&!this.parser.isRequestEdge(t.lineNumber);t.lineNumber++);return this.coreEditor.moveCursorToPosition({lineNumber:t.lineNumber,column:1}),[2]}}))}))},this.nextRequestEnd=function(e){e=e||t.coreEditor.getCurrentPosition();for(var n=t.coreEditor.getLineCount(),r=e.lineNumber;r<=n;++r){var o=t.parser.getRowParseMode(r);if((o&t.parser.MODE.REQUEST_END)>0)break;if(r!==e.lineNumber&&(o&t.parser.MODE.REQUEST_START)>0)break}return{lineNumber:r,column:(t.coreEditor.getLineValue(r)||"").replace(/\s+$/,"").length+1}},this.nextDataDocEnd=function(e){for(var n=(e=e||t.coreEditor.getCurrentPosition()).lineNumber,r=t.coreEditor.getLineCount();n<r;n++){var o=t.parser.getRowParseMode(n);if((o&t.parser.MODE.REQUEST_END)>0)break;if((o&t.parser.MODE.MULTI_DOC_CUR_DOC_END)>0)break;if(n!==e.lineNumber&&(o&t.parser.MODE.REQUEST_START)>0)break}return{lineNumber:n,column:(t.coreEditor.getLineValue(n)||"").length+1}},this.highlightCurrentRequestsAndUpdateActionBar=h().debounce((function(){return Te(t,void 0,void 0,(function(){var e;return Ne(this,(function(t){switch(t.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return t.sent(),[4,this.expandRangeToRequestEdges()];case 2:return null===(e=t.sent())&&null===this.currentReqRange?[2]:null!==e&&null!==this.currentReqRange&&e.start.lineNumber===this.currentReqRange.start.lineNumber&&e.end.lineNumber===this.currentReqRange.end.lineNumber?(this.coreEditor.getCurrentPosition().lineNumber===this.currentReqRange.start.lineNumber&&this.updateActionsBar(),[2]):(this.currentReqRange&&this.coreEditor.removeMarker(this.currentReqRange.markerRef),this.currentReqRange=e,this.currentReqRange&&(this.currentReqRange.markerRef=this.coreEditor.addMarker(this.currentReqRange)),this.updateActionsBar(),[2])}}))}))}),25),this.getRequestsAsCURL=function(e,n){return Te(t,void 0,Promise,(function(){var t;return Ne(this,(function(r){switch(r.label){case 0:return[4,this.getRequestsInRange(n,!0)];case 1:return t=r.sent(),[2,h().map(t,(function(t){if("string"==typeof t)return t;var n,r,o=t.url,i=t.method,s=t.data,a="curl -X"+i+' "'+(r=o,(n=e)&&(n=n.replace(/\/+$/,"")),n+"/"+r.replace(/^\/+/,"")+'"');return s&&s.length&&(a+=" -H 'Content-Type: application/json' -d'\n",a+=ge(s.join("\n")).replace(/'/g,"'\\''"),s.length>1&&(a+="\n"),a+="'"),a})).join("\n")]}}))}))},this.updateActionsBar=function(){return t.coreEditor.legacyUpdateUI(t.currentReqRange)},this.currentReqRange=null,this.parser=e.getParser(),this.coreEditor.on("tokenizerUpdate",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeCursor",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeScrollTop",this.updateActionsBar.bind(this))}return e.prototype.getCoreEditor=function(){return this.coreEditor},e}();require("brace/ext/language_tools"),require("brace/ext/searchbox"),require("brace/mode/json.js"),require("brace/mode/text");var Ae=function(e,t,n){return{type:n.type,value:n.value,position:{lineNumber:e,column:t}}},Pe=function(){function e(e){this.session=e}return e.prototype.getTokens=function(e){if(e<1)return null;if(e>this.session.getLength())return null;var t=this.session.getTokens(e-1);return t&&t.length?function(e,t){var n="";return t.map((function(t){var r=n.length+1;return n+=t.value,Ae(e,r,t)}))}(e,t):[]},e.prototype.getTokenAt=function(e){var t=this.session.getTokens(e.lineNumber-1);return t?function(e,t,n){for(var r="",o=0,i=n;o<i.length;o++){var s=i[o],a=r.length+1,l=(r+=s.value).length;if(!(t<a||t>l+1))return Ae(e,a,s)}return null}(e.lineNumber,e.column,t):null},e}();function Le(e){var t=e.resize,n=(0,f.throttle)((function(){t.call(e,!1);var r=(0,f.get)(n,"topRow",0);0!==r&&e.renderer.scrollToLine(r,!1,!1,(function(){}))}),35);return n}var qe=function(){function e(e){this.name=e}return e.prototype.getTerms=function(){return[]},e.prototype.match=function(){return{next:this.next}},e}(),Ie=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),De=function(e){function t(t,n){var r=e.call(this,t)||this;return r._nextDict={},n&&n.addComponent(r),r._parent=n,r}return Ie(t,e),t.prototype.getComponent=function(e){return(this._nextDict[e]||[void 0])[0]},t.prototype.addComponent=function(e){var t=this._nextDict[e.name]||[];t.push(e),this._nextDict[e.name]=t,this.next=[].concat.apply([],h().values(this._nextDict))},t}(qe),Me=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fe=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return h().isString(r)&&(r=[r]),o.options=r||[t],o}return Me(t,e),t.prototype.getTerms=function(){return this.options},t.prototype.addOption=function(e){Array.isArray(e)||(e=[e]),[].push.apply(this.options,e),this.options=h().uniq(this.options)},t.prototype.match=function(t,n,r){return t!==this.name?null:e.prototype.match.call(this,t,n,r)},t}(De),Ue=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ze=function(e){function t(t,n,r,o,i){var s=e.call(this,t,r)||this;return s.listGenerator=Array.isArray(n)?function(){return n}:n,s.multiValued=!!h().isUndefined(o)||o,s.allowNonValidValues=!h().isUndefined(i)&&i,s}return Ue(t,e),t.prototype.getTerms=function(e,t){if(!this.multiValued&&e.otherTokenValues)return[];var n=e.otherTokenValues||[];h().isString(n)&&(n=[n]);var r=h().difference(this.listGenerator(e,t),n);if(this.getDefaultTermMeta()){var o=this.getDefaultTermMeta();r=h().map(r,(function(e){return h().isString(e)&&(e={name:e}),h().defaults(e,{meta:o})}))}return r},t.prototype.validateTokens=function(e){if(!this.multiValued&&e.length>1)return!1;var t=this.listGenerator();return!h().some(e,(function(e){return-1===t.indexOf(e)}))},t.prototype.getContextKey=function(){return this.name},t.prototype.getDefaultTermMeta=function(){return this.name},t.prototype.match=function(t,n,r){if(Array.isArray(t)||(t=[t]),!this.allowNonValidValues&&!this.validateTokens(t,n,r))return null;var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values[this.getContextKey()]=t,o},t}(De),Be=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ge=function(e){function t(t,n){return e.call(this,t,n)||this}return Be(t,e),t.prototype.match=function(t,n,r){var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values[this.name]=t,o},t}(De),Je=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$e=function(e){function t(t,n){var r=e.call(this,"__condition")||this;return r.predicate=t,r.delegate=n,r}return Je(t,e),t.prototype.getTerms=function(e,t){return this.predicate(e,t)?this.delegate.getTerms(e,t):null},t.prototype.match=function(e,t,n){return!!this.predicate(t,n)&&this.delegate.match(e,t,n)},t}(De),Ve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),We=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ve(t,e),t.prototype.getTerms=function(){return null},t.prototype.match=function(e,t){var n={next:[]},r=t.globalComponentResolver(e,!1);return r&&n.next.push.apply(n.next,r),n.next.length||(n.next=[this]),n},t}(De),He=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ke=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.constants=n,o.patternsAndWildCards=r,o}return He(t,e),t.prototype.getTerms=function(e,t){var n=[];return h().each(this.constants,(function(r){n.push.apply(n,r.getTerms(e,t))})),h().each(this.patternsAndWildCards,(function(r){n.push.apply(n,r.getTerms(e,t))})),n},t.prototype.match=function(e,t,n){var r={next:[]};h().each(this.constants,(function(o){var i=o.match(e,t,n);i&&i.next&&r.next.push.apply(r.next,i.next)}));var o=t.globalComponentResolver(e,!1);return o&&r.next.push.apply(r.next,o),r.next.length||h().each(this.patternsAndWildCards,(function(o){var i=o.match(e,t,n);i&&i.next&&r.next.push.apply(r.next,i.next)})),r},t}(De),Qe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ye="__url_path_end__",Xe=function(e){function t(t,n){var r=e.call(this,t.id,n)||this;return r.endpoint=t,r}return Qe(t,e),t.prototype.match=function(t,n,r){if(t!==Ye)return null;if(this.endpoint.methods&&-1===h().indexOf(this.endpoint.methods,n.method))return null;var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values.endpoint=this.endpoint,h().isNumber(this.endpoint.priority)&&(o.priority=this.endpoint.priority),o},t}(De),Ze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),et=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.template=r,o.name=t,o}return Ze(t,e),t.prototype.getTerms=function(){return[{name:this.name,snippet:this.template}]},t}(Fe),tt=function(){function e(e){var t=this;this.getTopLevelComponents=function(e){var t=this[e];return t?t.rootComponent.next:[]},["HEAD","GET","PUT","POST","DELETE"].forEach((function(n){t[n]={rootComponent:new De("ROOT"),parametrizedComponentFactories:e||{getComponent:function(){}}}}))}return e.prototype.addEndpoint=function(e,t){var n=this;t.methods.forEach((function(r){var o,i=n[r].rootComponent;t.template&&new et(e+"[body]",i,t.template);var s=t.url_components||{},a=e.split("/");h().each(a,(function(e,l){if(e.search(/^{.+}$/)>=0){if(e=e.substr(1,e.length-2),i.getComponent(e))return void(i=i.getComponent(e));(o=s[e])?Array.isArray(o)?o=new ze(e,o,i):h().isObject(o)&&"list"===o.type?o=new ze(e,o.list,i,o.multiValued,o.allow_non_valid):(console.warn("incorrectly configured url component ",e," in endpoint",t),o=new De(e)):o=(o=n[r].parametrizedComponentFactories.getComponent(e))?o(e,i):new Ge(e,i),i=o}else{var c=e,u=void 0;for(l++;l<a.length&&!((u=a[l]).indexOf("{")>=0);l++)c+="/"+u;i.getComponent(e)?(i=i.getComponent(e)).addOption(c):(o=new Fe(e,i,c),i=o)}})),new Xe(t,i)}))},e}(),nt={},rt={},ot={},it=[],st="";function at(e,t){var n=rt[t]||{};if(!e)return e;"string"==typeof e&&(e=[e]),e=Ee().map(e,(function(e){return n[e]?n[e]:[e]}));var r,o=[].concat.apply([],e);return o.sort(),(o=Ee().map(o,(function(e){var t=r===e?null:e;return r=e,t}))).length>1?o:o[0]}function lt(e){return e=e.editor.editor.clusterID||st,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],ot[e]||[],!0)}function ct(e,t,n){var r=nt[n=n||st]||{},o=[];if("string"==typeof(e=at(e,n))){var i=r[e];if(!i)return[];if("string"==typeof t){var s=i[t];o=s||[]}else Ee().each(i,(function(e,n){t&&0!==t.length&&-1===Ee().inArray(e,t)||o.push(n)})),o=[].concat.apply([],o)}else Ee().each(r,(function(r){e&&0!==e.length&&-1===Ee().inArray(r,e)||o.push(ct(r,t,n))})),o=[].concat.apply([],o);return h().uniqBy(o,(function(e){return e.name+":"+e.type}))}function ut(e,t){var n=nt[t]||{},r=[];if("string"==typeof(e=at(e,t))){var o=n[e];if(!o)return[];Ee().each(o,(function(e){r.push(e)}))}else Ee().each(n,(function(n){e&&-1===Ee().inArray(n,e)||r.push(ut(n,t))})),r=[].concat.apply([],r);return h().uniq(r)}function pt(e,t){var n;"string"!=typeof t&&(t=(null===(n=null==t?void 0:t.editor)||void 0===n?void 0:n.clusterID)||st);var r=nt[t]||{},o=rt[t]||[],i=[];return Ee().each(r,(function(e){i.push(e)})),(void 0===e||e)&&Ee().each(o,(function(e){i.push(e)})),i}function dt(e){e.editor;var t=[];return it.forEach((function(e){t.push(e._source.title)})),t}var ft=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function ht(e){return!("_all"===e||"_"!==e[0])}var mt=function(e){function t(t,n,r){return e.call(this,t,pt,n,r)||this}return ft(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,ht))},t.prototype.getDefaultTermMeta=function(){return"index"},t.prototype.getContextKey=function(){return"indices"},t}(ze),_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function gt(e){return h().map(ct(e.indices,e.types),(function(e){return{name:e.name,meta:e.type}}))}var yt=function(e){function t(t,n,r){return e.call(this,t,gt,n,r)||this}return _t(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,(function(e){return e.match(/[^\w.?*]/)})))},t.prototype.getDefaultTermMeta=function(){return"field"},t.prototype.getContextKey=function(){return"fields"},t}(ze),wt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function vt(e){return ut(e.indices)}function bt(e){return!("_all"===e||"_"!==e[0])}var xt=function(e){function t(t,n,r){return e.call(this,t,vt,n,r)||this}return wt(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,bt))},t.prototype.getDefaultTermMeta=function(){return"type"},t.prototype.getContextKey=function(){return"types"},t}(ze),Ot=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jt=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.multi_match=r,o}return Ot(t,e),t.prototype.match=function(t,n,r){if(!t)return null;if(!this.multi_match&&Array.isArray(t))return null;if(t=Array.isArray(t)?t:[t],h().find(t,(function(e){return e.match(/[\/,]/)})))return null;var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values.id=t,o},t}(De),Et=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kt=function(e){function t(t,n){return e.call(this,t,lt,n,!0,!0)||this}return Et(t,e),t.prototype.getContextKey=function(){return"template"},t}(ze),St=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Tt(e){return"_"===e[0]}var Nt=function(e){function t(t,n,r){return e.call(this,t,pt,n,r)||this}return St(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,Tt))},t.prototype.getDefaultTermMeta=function(){return"username"},t.prototype.getContextKey=function(){return"username"},t}(ze),Rt=o(2168),Ct=o(221);const At=require("minimatch");var Pt=function(){function e(e,t){this.wildcardPattern=e,this.emptyVal=t,this.pattern=String(this.wildcardPattern||"*"),this.matcher=new At.Minimatch(this.pattern,{noglobstar:!0,dot:!0,nocase:!0,matchBase:!0,nocomment:!0})}return e.prototype.match=function(e){return!(e&&e!==this.emptyVal||"*"!==this.pattern)||this.matcher.match(e||"")},e}(),Lt=function(){return Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Lt.apply(this,arguments)},qt=function(){function e(e){e=Lt({},e);var t=Lt({},e.match);this.id=(0,Rt.GP)({protocol:t.protocol,hostname:t.host,port:t.port,pathname:t.path})||"*",this.matchers={protocol:new Pt(t.protocol),host:new Pt(t.host),port:new Pt(t.port),path:new Pt(t.path,"/")},this.timeout=e.timeout,this.sslAgent=this._makeSslAgent(e)}return e.prototype._makeSslAgent=function(e){var t=e.ssl||{};this.verifySsl=t.verify;var n={ca:t.ca,cert:t.cert,key:t.key};if((0,f.values)(n).filter(Boolean).length)return n.rejectUnauthorized=null==this.verifySsl||this.verifySsl,new Ct.Agent(n)},e.prototype.getForParsedUri=function(e){var t=e.protocol,n=e.hostname,r=e.port,o=e.pathname,i=this.matchers.protocol.match(t.slice(0,-1));return(i=(i=(i=i&&this.matchers.host.match(n))&&this.matchers.port.match(r))&&this.matchers.path.match(o))?{timeout:this.timeout,rejectUnauthorized:this.sslAgent?void 0:this.verifySsl,agent:"https:"===t?this.sslAgent:void 0}:{}},e}();!function(){function e(e){void 0===e&&(e=[]),this.configs=e.map((function(e){return new qt(e)}))}e.prototype.hasConfig=function(){return Boolean(this.configs.length)},e.prototype.configForUri=function(e){var t=(0,Rt.qg)(e),n=this.configs.map((function(e){return e.getForParsedUri(t)}));return f.defaultsDeep.apply(void 0,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([{}],n,!1))}}();var It=function(){return It=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},It.apply(this,arguments)},Dt={__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:{}}},Mt={__template:{field:""},field:"{field}",missing:0,script:{}},Ft={__one_of:["skip","insert_zeros"]},Ut={__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Ft},zt={"*":{aggs:{__template:{NAME:{AGG_TYPE:{}}}},adjacency_matrix:{filters:{}},diversified_sampler:{shard_size:"",field:""},min:Mt,max:Mt,avg:Mt,sum:Mt,stats:Mt,extended_stats:Mt,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:{__template:{field:""},field:"{field}"},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:It(It({},Dt),{filter_duplicate_text:"__flag__"}),significant_terms:Dt,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:Ut,avg_bucket:Ut,max_bucket:Ut,min_bucket:Ut,stats_bucket:Ut,extended_stats_bucket:It(It({},Ut),{sigma:""}),percentiles_bucket:It(It({},Ut),{percents:[]}),sum_bucket:Ut,moving_avg:{__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Ft,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:Ft,buckets_path:"",format:""},bucket_script:{__template:{buckets_path:{},script:""},buckets_path:{},format:"",gap_policy:Ft,script:""},bucket_selector:{__template:{buckets_path:{},script:""},buckets_path:{},gap_policy:Ft,script:""},bucket_sort:{__template:{sort:[]},sort:["{field}"],from:0,size:0,gap_policy:Ft},matrix_stats:{__template:{fields:[]},fields:["{field}"]}}},Bt=zt["*"],Gt=Bt.terms,Jt=Bt.histogram,$t=Bt.date_histogram,Vt={and:{__template:{filters:[{}]},filters:[{__scope_link:"."}]},bool:{__scope_link:"GLOBAL.query"},exists:{__template:{field:"FIELD_NAME"},field:"{field}"},ids:{__template:{values:["ID"]},type:"{type}",values:[""]},limit:{__template:{value:100},value:100},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"]}},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}},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}},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}]}},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"]}}},has_child:{__template:{type:"TYPE",filter:{}},type:"{type}",query:{},filter:{},_scope:"",min_children:1,max_children:10},has_parent:{__template:{parent_type:"TYPE",filter:{}},parent_type:"{type}",query:{},filter:{},_scope:""}};Vt.m=Vt.missing={__template:{field:"FIELD"},existence:{__one_of:[!0,!1]},null_value:{__one_of:[!0,!1]},field:"{field}"},Vt.not={__template:{filter:{}},filter:{}},Vt.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"]}}},Vt.or={__template:{filters:[{}]},filters:[{__scope_link:"."}]},Vt.prefix={__template:{FIELD:"VALUE"},"{field}":""},Vt.query={},Vt.script={__template:{script:{}},script:{}},Vt.term={__template:{FIELD:"VALUE"},"{field}":""},Vt.terms={__template:{FIELD:["VALUE1","VALUE2"]},field:["{field}"],execution:{__one_of:["plain","bool","and","or","bool_nocache","and_nocache","or_nocache"]}},Vt.nested={__template:{path:"path_to_nested_doc",query:{}},query:{},path:"",_name:""};var Wt=function(){return Wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Wt.apply(this,arguments)},Ht={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:{}},Kt=function(){return Kt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kt.apply(this,arguments)},Qt={on_failure:[],ignore_failure:{__one_of:[!1,!0]},if:"",tag:""},Yt={append:Kt({__template:{field:"",value:[]},field:"",value:[]},Qt)},Xt={bytes:Kt({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},Qt)},Zt={circle:Kt({__template:{field:"",error_distance:"",shape_type:""},field:"",target_field:"",error_distance:"",shape_type:{__one_of:["geo_shape","shape"]},ignore_missing:{__one_of:[!1,!0]}},Qt)},en={__one_of:[Yt,Xt,{csv:Kt({__template:{field:"",target_fields:[""]},field:"",target_fields:[""],separator:"",quote:"",empty_value:"",trim:{__one_of:[!0,!1]},ignore_missing:{__one_of:[!1,!0]}},Qt)},Zt,{convert:Kt({__template:{field:"",type:""},field:"",type:{__one_of:["integer","float","string","boolean","auto"]},target_field:"",ignore_missing:{__one_of:[!1,!0]}},Qt)},{date:Kt({__template:{field:"",formats:[]},field:"",target_field:"@timestamp",formats:[],timezone:"UTC",locale:"ENGLISH"},Qt)},{date_index_name:Kt({__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"},Qt)},{dissect:Kt({__template:{field:"",pattern:""},field:"",pattern:"",append_separator:"",ignore_missing:{__one_of:[!1,!0]}},Qt)},{dot_expander:Kt({__template:{field:""},field:"",path:""},Qt)},{drop:Kt({__template:{}},Qt)},{fail:Kt({__template:{message:""},message:""},Qt)},{foreach:Kt({__template:{field:"",processor:{}},field:"",processor:{__scope_link:"_processor"}},Qt)},{geoip:{__template:{field:""},field:"",target_field:"",database_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]},first_only:{__one_of:[!1,!0]}}},{grok:Kt({__template:{field:"",patterns:[]},field:"",patterns:[],pattern_definitions:{},trace_match:{__one_of:[!1,!0]},ignore_missing:{__one_of:[!1,!0]}},Qt)},{gsub:Kt({__template:{field:"",pattern:"",replacement:""},field:"",pattern:"",replacement:""},Qt)},{html_strip:Kt({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},Qt)},{inference:Kt({__template:{model_id:"",field_map:{},inference_config:{}},model_id:"",field_map:{},inference_config:{},target_field:""},Qt)},{join:Kt({__template:{field:"",separator:""},field:"",separator:""},Qt)},{json:Kt({__template:{field:""},field:"",target_field:"",add_to_root:{__one_of:[!1,!0]}},Qt)},{kv:Kt({__template:{field:"",field_split:"",value_split:""},field:"",field_split:"",value_split:"",target_field:"",include_keys:[],ignore_missing:{__one_of:[!1,!0]}},Qt)},{lowercase:Kt({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},Qt)},{pipeline:Kt({__template:{name:""},name:""},Qt)},{remove:Kt({__template:{field:""},field:""},Qt)},{rename:Kt({__template:{field:"",target_field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},Qt)},{script:Kt({__template:{},lang:"painless",file:"",id:"",source:"",params:{}},Qt)},{set:Kt({__template:{field:"",value:""},field:"",value:"",override:{__one_of:[!0,!1]}},Qt)},{set_security_user:Kt({__template:{field:""},field:"",properties:[""]},Qt)},{split:Kt({__template:{field:"",separator:""},field:"",separator:"",ignore_missing:{__one_of:[!1,!0]}},Qt)},{sort:Kt({__template:{field:""},field:"",order:"asc"},Qt)},{trim:Kt({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},Qt)},{uppercase:Kt({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},Qt)},{urldecode:Kt({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},Qt)},{user_agent:{__template:{field:""},field:"",target_field:"",regex_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]}}}]},tn={description:"",processors:[en],version:123},nn=Object.freeze({__one_of:[!0,!1]}),rn=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},on={FIELD:"REGEXP"},sn={FIELD:{}},an={FIELD:{value:""}},ln={FIELD:{gte:10,lte:20}},cn={match:{span_term:{FIELD:"VALUE"}},end:3},un={clauses:[{span_term:{FIELD:{value:"VALUE"}}}],slop:12,in_order:!1},pn={FIELD:{value:"VALUE"}},dn={include:{span_term:{FIELD:{value:"VALUE"}}},exclude:{span_term:{FIELD:{value:"VALUE"}}}},fn={clauses:[{span_term:{FIELD:{value:"VALUE"}}}]},hn={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}}},mn={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}}},_n={FIELD:{value:"VALUE"}},gn=function(){return gn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gn.apply(this,arguments)},yn={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},wn={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"]}},vn={span_first:{__template:cn,__scope_link:".span_first"},span_near:{__template:un,__scope_link:".span_near"},span_or:{__template:fn,__scope_link:".span_or"},span_not:{__template:dn,__scope_link:".span_not"},span_term:{__template:pn,__scope_link:".span_term"},span_containing:{__template:hn,__scope_link:".span_containing"},span_within:{__template:mn,__scope_link:".span_within"}},bn=gn(gn({},vn),{field_masking_span:{__template:{query:{SPAN_QUERY:{}}},query:vn,field:""}}),xn={wildcard:{__template:_n,__scope_link:".wildcard"},fuzzy:{__template:sn,__scope_link:".fuzzy"},prefix:{__template:an,__scope_link:".prefix"},range:{__template:ln,__scope_link:".range"},regexp:{__template:on,__scope_link:".regexp"}},On={__template:{FIELD:{origin:"",scale:""}},"{field}":{origin:"",scale:"",offset:"",decay:.5}},jn={script_score:{__template:{script:"_score * doc['f'].value"},script:{}},boost_factor:2,random_score:{seed:314159265359},linear:On,exp:On,gauss:On,field_value_factor:{__template:{field:""},field:"{field}",factor:1.2,modifier:{__one_of:["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]}}},En=[function(e){e.addGlobalAutocompleteRules("aggregations",zt),e.addGlobalAutocompleteRules("aggs",zt),e.addGlobalAutocompleteRules("groupByAggs",{"*":{terms:Gt,histogram:Jt,date_histogram:$t}})},function(e){e.addGlobalAutocompleteRules("aliases",{"*":{filter:{},routing:"1",search_routing:"1,2",index_routing:"1"}})},function(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}}})},function(e){e.addGlobalAutocompleteRules("filter",Vt)},function(e){e.addGlobalAutocompleteRules("highlight",Wt(Wt({},Ht),{fields:{"{field}":Wt({fragment_size:20},Ht)}})),e.addGlobalAutocompleteRules("script",{__template:{source:"SCRIPT"},source:"SCRIPT",file:"FILE_SCRIPT_NAME",id:"SCRIPT_ID",lang:"",params:{}})},function(e){e.addEndpointDescription("_processor",{data_autocomplete_rules:en}),e.addEndpointDescription("ingest.put_pipeline",{methods:["PUT"],patterns:["_ingest/pipeline/{id}"],data_autocomplete_rules:tn}),e.addEndpointDescription("ingest.simulate",{data_autocomplete_rules:{pipeline:tn,docs:[]}})},function(e){e.addEndpointDescription("put_mapping",{priority:10,data_autocomplete_rules:{__template:{properties:{FIELD:{}}},_source:{enabled:nn},_all:{enabled:nn},_field_names:{index:nn},_routing:{required:nn},_index:{enabled:nn},_parent:{__template:{type:""},type:"{type}"},_timestamp:{enabled:nn,format:"YYYY-MM-dd",default:""},dynamic_date_formats:["yyyy-MM-dd"],date_detection:nn,numeric_detection:nn,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:nn,index:nn,term_vector:{__one_of:["no","yes","with_offsets","with_positions","with_positions_offsets"]},boost:1,null_value:"",doc_values:nn,eager_global_ordinals:nn,norms:nn,coerce:nn,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:nn,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:[rn(rn([],["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(e){return["basic_"+e,"strict_"+e]})),!0),["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"],!1).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:nn,include_in_root:nn}}}})},function(e){e.addEndpointDescription("put_settings",{data_autocomplete_rules:{refresh_interval:"1s",number_of_shards:1,number_of_replicas:1,"blocks.read_only":nn,"blocks.read":nn,"blocks.write":nn,"blocks.metadata":nn,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":nn,"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":nn,analysis:{analyzer:{},tokenizer:{},filter:{},char_filter:{}},"cache.query.enable":nn,shadow_replicas:nn,shared_filesystem:nn,data_path:"path",codec:{__one_of:["default","best_compression","lucene_default"]}}})},function(e){e.addGlobalAutocompleteRules("query",{match:{__template:{FIELD:"TEXT"},"{field}":gn({type:{__one_of:["phrase","phrase_prefix","boolean"]}},yn)},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:on,"{field}":{value:"",flags:{__one_of:["ALL","ANYSTRING","COMPLEMENT","EMPTY","INTERSECTION","INTERVAL","NONE"]},max_determinized_states:1e4}},multi_match:gn(gn({__template:{query:"",fields:[]}},yn),{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:sn,"{field}":{value:"",boost:1,fuzziness:.5,prefix_length:0}},has_child:{__template:{type:"TYPE",query:{}},inner_hits:gn({},wn),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:an,"{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:ln,"{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:cn,match:bn},span_multi:{__template:{match:{MULTI_TERM_QUERY:{}}},match:xn},span_near:{__template:un,clauses:[bn],slop:12,in_order:{__one_of:[!1,!0]},collect_payloads:{__one_of:[!1,!0]}},span_term:{__template:pn,"{field}":{value:"",boost:2}},span_not:{__template:dn,include:bn,exclude:bn},span_or:{__template:fn,clauses:[bn]},span_containing:{__template:hn,little:bn,big:bn},span_within:{__template:mn,little:bn,big:bn},term:{__template:{FIELD:{value:"VALUE"}},"{field}":{value:"",boost:2}},terms:{__template:{FIELD:["VALUE1","VALUE2"]},"{field}":[""]},wildcard:{__template:_n,"{field}":{value:"",boost:2}},nested:{__template:{path:"path_to_nested_doc",query:{}},inner_hits:gn({},wn),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:h().defaults({__template:{query:{},functions:[{}]},query:{},functions:[h().defaults({filter:{},weight:1},jn)],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},jn),script:{__template:{script:"_score * doc['f'].value"},script:{}},wrapper:{__template:{query:"QUERY_BASE64_ENCODED"},query:""}})},function(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"}}})},function(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"}}})}],kn=function(){return kn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kn.apply(this,arguments)},Sn=function(){function e(){this.name="es",this.globalRules={},this.endpoints={},this.extensionSpecFilePaths=[],this.hasLoadedSpec=!1}return e.prototype.addGlobalAutocompleteRules=function(e,t){this.globalRules[e]=t},e.prototype.addEndpointDescription=function(e,t){void 0===t&&(t={});var n,r={};this.endpoints[e]&&(r=kn({},this.endpoints[e])),h().each(t.patterns||[],(function(e){e.indexOf("{indices}")>=0&&((n=n||{}).ignore_unavailable="__flag__",n.allow_no_indices="__flag__",n.expand_wildcards=["open","closed"])})),n&&(t.url_params=h().assign(t.url_params||{},r.url_params),h().defaults(t.url_params,n)),h().assign(r,t),h().defaults(r,{id:e,patterns:[e],methods:["GET"]}),this.endpoints[e]=r},e.prototype.asJson=function(){return{name:this.name,globals:this.globalRules,endpoints:this.endpoints}},e.prototype.addExtensionSpecFilePath=function(e){this.extensionSpecFilePaths.push(e)},e.prototype.addProcessorDefinition=function(e){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(e)},e.prototype.setup=function(){return{addExtensionSpecFilePath:this.addExtensionSpecFilePath.bind(this)}},e.prototype.start=function(){if(this.hasLoadedSpec)throw new Error("Service has already started!");return this.loadJsonSpec(),this.loadJSSpec(),this.hasLoadedSpec=!0,{addProcessorDefinition:this.addProcessorDefinition.bind(this)}},e.prototype.loadAllSpec=function(e){return e.keys().reduce((function(t,n){return(0,f.merge)(t,e(n)),t}),{})},e.prototype.loadJSONSpecInDir=function(){var e=this.loadAllSpec(o(2469)),t=this.loadAllSpec(o(5477));return(0,f.merge)(e,t)},e.prototype.loadJsonSpec=function(){var e=this,t=this.loadJSONSpecInDir();Object.keys(t).forEach((function(n){e.addEndpointDescription(n,t[n])}))},e.prototype.loadJSSpec=function(){var e=this;En.forEach((function(t){return t(e)}))},e}(),Tn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nn=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.description=r,o}return Tn(t,e),t.prototype.getTerms=function(){var e={name:this.name};return"__flag__"===this.description?e.meta="flag":(e.meta="param",e.insertValue=this.name+"="),[e]},t}(Fe),Rn=function(){function e(e,t){var n=this;this.rootComponent=new De("ROOT"),h().isUndefined(t)&&(t={pretty:"__flag__",format:["json","yaml"],filter_path:""}),e=h().clone(e||{}),h().defaults(e,t),h().each(e,(function(e,t){var r=new Nn(t,n.rootComponent,e);Array.isArray(e)?new ze(t,e,r):"__flag__"===e&&new ze(t,["true","false"],r)}))}return e.prototype.getTopLevelComponents=function(){return this.rootComponent.next},e}();function Cn(e,t){function n(){}n.prototype=e;var r=new n;return t&&(t.unshift(r),h().assign.apply(h(),t),t.shift()),r}function An(e,t,n,r,o){this.parentName=e,this.components=t,this.contextExtensionList=n,this.depth=r||0,this.priority=o}function Pn(e,t,n,r){if(!e||0===e.length)return t;var o=e[0],i=[];return h().each(t,(function(e){var t=Cn(n,e.contextExtensionList);h().each(e.components,(function(n){var s=n.match(o,t,r);if(s&&!h().isEmpty(s)){var a,l=void 0;a=s.next&&!Array.isArray(s.next)?[s.next]:s.next,s.context_values?(l=[],[].push.apply(l,e.contextExtensionList),l.push(s.context_values)):l=e.contextExtensionList;var c=e.priority;h().isNumber(s.priority)&&(c=h().isNumber(c)?Math.min(c,s.priority):s.priority),i.push(new An(n.name,a,l,e.depth+1,c))}}))})),0===i.length?h().map(t,(function(e){return new An(e.name,[],e.contextExtensionList)})):Pn(e.slice(1),i,n,r)}function Ln(e,t,n,r,o){var i=Pn(e,[new An("ROOT",o,[])],t,n);if(r){var s=[];h().each(i,(function(e){var r=Cn(t,e.contextExtensionList);h().each(e.components,(function(e){h().each(e.getTerms(r,n),(function(e){h().isObject(e)||(e={name:e}),s.push(e)}))}))})),s=h().uniq(s),t.autoCompleteSet=s}if(0!==i.length){var a=void 0;i=h().sortBy(i,(function(e){return h().isNumber(e.priority)?e.priority:Number.MAX_VALUE})),!(a=h().find(i,(function(e){return h().isEmpty(e.components)})))&&i.length>1&&!r&&console.info("more then one context active for current path, but autocomplete isn't requested",i),a||(a=i[0]),h().each(a.contextExtensionList,(function(e){h().assign(t,e)}))}}var qn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function In(e,t){this.parametrizedComponentFactories=t,this.endpointId=e}var Dn,Mn=function(e){function t(t,n){var r=e.call(this,"__scope_link")||this;return h().isString(t)&&"."===t[0]&&(t="."===t?n.endpointId:n.endpointId+t),r.link=t,r.compilingContext=n,r}return qn(t,e),t.prototype.resolveLinkToComponents=function(e,t){if(h().isFunction(this.link))return zn(this.link(e,t),this.compilingContext);if(!h().isString(this.link))throw new Error("unsupported link format",this.link);var n,r=this.link.replace(/\./g,"{").split(/(\{)/),o=r[0];try{if("GLOBAL"===o){if(r.length<3)throw new Error("missing term in global link: "+this.link);var i=r[2];n=e.globalComponentResolver(i),r=r.slice(3)}else r=r.slice(1),n=e.endpointComponentResolver(o)}catch(e){throw new Error("failed to resolve link ["+this.link+"]: "+e)}return function(e,t,n,r){var o=Pn(e,[new An("ROOT",r,[])],t,n);return[].concat.apply([],h().map(o,"components"))}(r,e,t,n)},t.prototype.getTerms=function(e,t){var n=[],r=this.resolveLinkToComponents(e,t);return h().each(r,(function(r){n.push.apply(n,r.getTerms(e,t))})),n},t.prototype.match=function(e,t,n){var r={next:[]},o=this.resolveLinkToComponents(t,n);return h().each(o,(function(o){var i=o.match(e,t,n);i&&i.next&&r.next.push.apply(r.next,i.next)})),r},t}(De);function Fn(e){if(e.__template)return e.__raw&&h().isString(e.__template)?{__raw:!0,value:e.__template}:e.__template;if(e.__one_of)return Fn(e.__one_of[0]);if(e.__any_of)return[];if(e.__scope_link)return{};if(Array.isArray(e)){if(1===e.length&&h().isObject(e[0])){var t=Fn(e[0]);return null!=t?[t]:[]}return[]}return h().isObject(e)?{}:(h().isString(e)&&/^\{.*\}$/.test(e),e)}function Un(e){var t={},n=Fn(e);return h().isUndefined(n)||(t.template=n),t}function zn(e,t){if(Array.isArray(e))return[Gn(e,t)];if(h().isObject(e)){if(e.__scope_link)return[new Mn(e.__scope_link,t)];if(e.__any_of)return[Gn(e.__any_of,t)];if(e.__one_of)return h().flatten(h().map(e.__one_of,(function(e){return zn(e,t)})));var n=function(e,t){var n=new Fe("{"),r=[],o=[];return h().each(e,(function(e,n){if(0!==n.indexOf("__")){var i,s=Un(e);/^\{.*\}$/.test(n)?(i=Bn(n,t,s.template),o.push(i)):"*"===n?(i=new De(n),o.push(i)):(s.name=n,i=new Fe(n,null,[s]),r.push(i)),h().map(zn(e,t),(function(e){i.addComponent(e)}))}})),n.addComponent(new Ke("inner",r,o)),n}(e,t);return e.__condition?[Jn(e.__condition,n)]:[n]}return h().isString(e)&&/^\{.*\}$/.test(e)?[Bn(e,t)]:[new Fe(e)]}function Bn(e,t,n){e=e.substr(1,e.length-2).toLowerCase();var r=t.parametrizedComponentFactories.getComponent(e,!0);if(!r)throw new Error("no factory found for '"+e+"'");return r=r(e,null,n),h().isUndefined(n)||(r=function(e,t){var n=e.getTerms;return e.getTerms=function(r,o){var i=n.call(e,r,o);return i?i=h().map(i,(function(e){return h().isObject(e)||(e={name:e}),h().defaults(e,t)})):i},e}(r,{template:n})),r}function Gn(e,t){var n=new Fe("[");return h().each(e,(function(e){h().each(zn(e,t),(function(e){n.addComponent(e)}))})),n}function Jn(e,t){if(e.lines_regex)return new $e((function(t,n){var r=n.getLines(t.requestStartRow,n.getCurrentPosition().lineNumber).join("\n");return new RegExp(e.lines_regex,"m").test(r)}),t);throw"unknown condition type - got: "+JSON.stringify(e)}function $n(e,t,n){return zn(t,new In(e,n))}function Vn(e,t){this.globalRules=Object.create(null),this.endpoints=Object.create(null),this.urlPatternMatcher=new tt(e),this.globalBodyComponentFactories=t,this.name=""}(Dn=Vn.prototype).addGlobalAutocompleteRules=function(e,t){this.globalRules[e]=$n("GLOBAL."+e,t,this.globalBodyComponentFactories)},Dn.getGlobalAutocompleteComponents=function(e,t){var n=this.globalRules[e];if(h().isUndefined(n)&&(t||h().isUndefined(t)))throw new Error("failed to resolve global components for ['"+e+"']");return n},Dn.addEndpointDescription=function(e,t){var n=this,r={};h().assign(r,t||{}),h().defaults(r,{id:e,patterns:[e],methods:["GET"]}),h().each(r.patterns,(function(e){n.urlPatternMatcher.addEndpoint(e,r)})),r.paramsAutocomplete=new Rn(r.url_params),r.bodyAutocompleteRootComponents=$n(r.id,r.data_autocomplete_rules,this.globalBodyComponentFactories),this.endpoints[e]=r},Dn.getEndpointDescriptionByEndpoint=function(e){return this.endpoints[e]},Dn.getTopLevelUrlCompleteComponents=function(e){return this.urlPatternMatcher.getTopLevelComponents(e)},Dn.getUnmatchedEndpointComponents=function(){return[new We("__global__")]},Dn.clear=function(){this.endpoints={},this.globalRules={}};const Wn=Vn;var Hn=new Wn,Kn=function(e){return"_"===e[0]&&"_all"!==e},Qn=function(e,t){return new jt(e,t)},Yn={getComponent:function(e,t,n){return this[e]?this[e]:n?Qn:void 0},index:function(e,t){if(!Kn(e))return new mt(e,t,!1)},indices:function(e,t){if(!Kn(e))return new mt(e,t,!0)},type:function(e,t){return new xt(e,t,!1)},types:function(e,t){return new xt(e,t,!0)},id:function(e,t){return Qn(e,t)},transform_id:function(e,t){return Qn(e,t)},username:function(e,t){return new Nt(e,t)},user:function(e,t){return new Nt(e,t)},template:function(e,t){return new kt(e,t)},task_id:function(e,t){return Qn(e,t)},ids:function(e,t){return Qn(e,t)},fields:function(e,t){return new yt(e,t,!0)},field:function(e,t){return new yt(e,t,!1)},nodes:function(e,t){return new ze(e,["_local","_master","data:true","data:false","master:true","master:false"],t)},node:function(e,t){return new ze(e,[],t,!1)}};function Xn(e){var t=function(e){return Hn.getEndpointDescriptionByEndpoint(e)}(e);if(!t)throw new Error("failed to resolve endpoint ['"+e+"']");return t.bodyAutocompleteRootComponents}function Zn(e){return Hn.getTopLevelUrlCompleteComponents(e)}function er(e,t){return Hn.getGlobalAutocompleteComponents(e,t)}var tr=new Sn;tr.start();var nr=tr.asJson();Hn=function(e,t,n){var r=new Wn(t=t||Yn,n=n||t),o=[];return h().each(e,(function(e,t){o.unshift(t),h().each(e.globals||{},(function(e,t){r.addGlobalAutocompleteRules(t,e)})),h().each(e.endpoints||{},(function(e,t){r.addEndpointDescription(t,e)}))})),r.name=o.join(","),r}({es:nr});var rr={REQUEST_START:2,IN_REQUEST:4,MULTI_DOC_CUR_DOC_END:8,REQUEST_END:16,BETWEEN_REQUESTS:32};const or=function(){function e(e){this.editor=e,this.MODE=rr}return e.prototype.getRowParseMode=function(e){void 0===e&&(e=this.editor.getCurrentPosition().lineNumber);var t=this.editor.getLineCount();if(e>t||e<1)return rr.BETWEEN_REQUESTS;var n=this.editor.getLineState(e);if(!n)return rr.BETWEEN_REQUESTS;if("start"!==n&&"start-sql"!==n)return rr.IN_REQUEST;var r=(this.editor.getLineValue(e)||"").trim();return r&&"#"!==r[0]?r.indexOf("}",r.length-1)>=0?++e<t+1&&0===(r=(this.editor.getLineValue(e)||"").trim()).indexOf("{")?rr.MULTI_DOC_CUR_DOC_END|rr.IN_REQUEST:rr.REQUEST_END|rr.MULTI_DOC_CUR_DOC_END:++e>=t+1||0!==(r=(this.editor.getLineValue(e)||"").trim()).indexOf("{")?rr.REQUEST_START|rr.REQUEST_END:rr.REQUEST_START:rr.BETWEEN_REQUESTS},e.prototype.rowPredicate=function(e,t,n){return(this.getRowParseMode(e)&n)>0},e.prototype.isEndRequestRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,rr.REQUEST_END)},e.prototype.isRequestEdge=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,rr.REQUEST_END|rr.REQUEST_START)},e.prototype.isStartRequestRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,rr.REQUEST_START)},e.prototype.isInBetweenRequestsRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,rr.BETWEEN_REQUESTS)},e.prototype.isInRequestsRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,rr.IN_REQUEST)},e.prototype.isMultiDocDocEndRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,rr.MULTI_DOC_CUR_DOC_END)},e.prototype.isEmptyToken=function(e){var t=e&&e.getCurrentToken?e.getCurrentToken():e;return!t||"whitespace"===t.type},e.prototype.isUrlOrMethodToken=function(e){var t=(null==e?void 0:e.getCurrentToken())||e;return t&&t.type&&("method"===t.type||0===t.type.indexOf("url"))},e.prototype.nextNonEmptyToken=function(e){for(var t=e.stepForward();t&&this.isEmptyToken(t);)t=e.stepForward();return t},e.prototype.prevNonEmptyToken=function(e){for(var t=e.stepBackward();(t||e.getCurrentPosition().lineNumber>1)&&this.isEmptyToken(t);)t=e.stepBackward();return t},e}();var ir=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function sr(e){return!("_all"===e||"_"!==e[0])}var ar=function(e){function t(t,n,r){return e.call(this,t,dt,n,r)||this}return ir(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,sr))},t.prototype.getDefaultTermMeta=function(){return"command"},t.prototype.getContextKey=function(){return"command"},t}(ze),lr=function(){return lr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lr.apply(this,arguments)},cr=null;function ur(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 pr(e,t,n,r){var o=be({editor:e,position:t}),i=t,s=[],a={};a.tokensLineCache=o.tokensLineCache;var l=3,c=o.getCurrentToken();a.token=c,c?1===i.column&&(c=o.stepBackward(),l=1):1===i.column&&(c=o.stepBackward(),l=3);for(var u,p=!1;c&&-1===c.type.indexOf("url")&&"method"!==c.type;c=o.stepBackward())switch("whitespace"!==c.type&&(p=!0),c.type){case"variable":0===l&&s.unshift(c.value.trim().replace(/"/g,"")),l=1;break;case"paren.lparen":s.unshift(c.value),1===l&&(l=0);break;case"paren.rparen":l=1;var d=1;for(c=o.stepBackward();c&&d>0;){switch(c.type){case"paren.lparen":d--;break;case"paren.rparen":d++}d>0&&(c=o.stepBackward())}if(!c)return{};continue;case"punctuation.end_triple_quote":for(l=1,c=o.stepBackward();c;c=o.stepBackward())if("punctuation.start_triple_quote"===c.type){c=o.stepBackward();break}if(!c)return{};continue;case"punctuation.start_triple_quote":3===l?l=0:0===l&&(l=1),s.unshift('"""');continue;case"string":case"constant.numeric":case"constant.language.boolean":case"text":3===l?l=0:0===l&&(l=1);break;case"punctuation.comma":3===l&&(l=1);break;case"punctuation.colon":case"whitespace":3===l&&(l=0)}if(p&&(!s||0===s.length)&&!r)return{};if(a.urlTokenPath=[],o.getCurrentPosition().lineNumber===i.lineNumber){if(c&&("url.part"===c.type||"url.param"===c.type||"url.value"===c.type)||"url.select_keyword"===c.type)if(!r||"url.part"!==c.type&&"url.select_keyword"!==c.type||(a.urlTokenPath.push(c.value),a.urlTokenPath.push(Ye)),"whitespace"===(c=o.stepBackward()).type)for(;"whitespace"===c.type;)c=o.stepBackward();else for(;""===c.value.trim();)c=o.stepBackward();s=null}for(a.bodyTokenPath=s,a.urlParamsTokenPath=null,a.requestStartRow=o.getCurrentPosition().lineNumber;c&&ur(c);){switch(c.type){case"url.value":Array.isArray(u)?u.unshift(c.value):u=u?[c.value,u]:c.value;break;case"url.comma":u?Array.isArray(u)||(u=[u]):u=[];break;case"url.param":var f=u;(u={})[c.value]=f;break;case"url.amp":case"url.questionmark":a.urlParamsTokenPath||(a.urlParamsTokenPath=[]),a.urlParamsTokenPath.unshift(u||{}),u=null}c=o.stepBackward()}for(u=null;c&&-1!==c.type.indexOf("url");){switch(c.type){case"url.select_keyword":case"url.part":Array.isArray(u)?u.unshift(c.value):u=u?[c.value,u]:c.value;break;case"url.comma":u?Array.isArray(u)||(u=[u]):u=[];break;case"url.slash":u&&(a.urlTokenPath.unshift(u),u=null)}for(c=n.prevNonEmptyToken(o);""===c.value.trim();)c=n.prevNonEmptyToken(o)}return u&&a.urlTokenPath.unshift(u),a.bodyTokenPath||a.urlParamsTokenPath?a.urlTokenPath.push(Ye):a.urlTokenPath.length>0&&(a.otherTokenValues=a.urlTokenPath[0]),c&&"method"===c.type&&(a.method=c.value),a}function dr(e){switch((e||{}).type){case"url.slash":case"url.comma":case"url.part":return!0;default:return!1}}function fr(e,t,n){return h().map(e,(function(e){return"object"!=typeof e&&(e={name:e}),h().defaults(e,{meta:t,template:n})}))}function hr(e){var t=e.coreEditor,n=new or(t);function r(e){var r,i=e.context;o(i,t.getCurrentPosition(),e.insertValue),"body"===i.autoCompleteType?(r="string"==typeof e.insertValue?'"'+e.insertValue+'"':e.insertValue+"","["!==e.insertValue&&"{"!==e.insertValue||(r="")):r=e.insertValue+"";var a=r,l=!1;if(!i.addTemplate||h().isUndefined(e.template)||h().isNull(e.template))l=!0,"["===e.value?a+="[]":"{"===e.value?a+="{}":l=!1;else{var c=void 0;c=e.template.__raw&&e.template.value?e.template.value.split("\n"):xe(e.template,!0).split("\n");var u=t.getLineValue(i.rangeToReplace.start.lineNumber);u=u.match(/^\s*/)[0];for(var p=1;p<c.length;p++)c[p]=u+c[p];a+=": "+c.join("\n"),l=!0}a=i.prefixToAdd+a+i.suffixToAdd,t.off("changeSelection",s),i.rangeToReplace.start.column!==i.rangeToReplace.end.column?t.replace(i.rangeToReplace,a):t.insert(a),t.clearSelection();var d={lineNumber:i.rangeToReplace.start.lineNumber,column:i.rangeToReplace.start.column+r.length+i.prefixToAdd.length+(l?0:i.suffixToAdd.length)},f=be({editor:t,position:d});if("body"===i.autoCompleteType){var m=n.nextNonEmptyToken(f);switch(m?m.type:"NOTOKEN"){case"paren.rparen":d=f.getCurrentPosition();break;case"punctuation.colon":"paren.lparen"===((m=n.nextNonEmptyToken(f))||{}).type&&(m=n.nextNonEmptyToken(f),d=f.getCurrentPosition(),m&&0===m.value.indexOf('"')&&d.column++);break;case"paren.lparen":case"punctuation.comma":f.stepForward(),d=f.getCurrentPosition()}t.moveCursorToPosition(d)}t.on("changeSelection",s)}function o(e,r,o){e.updatedForToken=h().clone(t.getTokenAt({lineNumber:r.lineNumber,column:r.column})),e.updatedForToken||(e.updatedForToken={value:"",type:"",position:{column:r.column,lineNumber:r.lineNumber}});var i=e.createdWithToken;switch(i||(i=e.updatedForToken),e.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":e.rangeToReplace={start:{lineNumber:r.lineNumber,column:i.position.column},end:{lineNumber:r.lineNumber,column:e.updatedForToken.position.column+e.updatedForToken.value.length}},e.replacingToken=!0;break;default:o&&e.updatedForToken.value===o?(e.rangeToReplace={start:{lineNumber:r.lineNumber,column:i.position.column},end:{lineNumber:r.lineNumber,column:e.updatedForToken.position.column+e.updatedForToken.value.length}},e.replacingToken=!0):(e.rangeToReplace={start:{lineNumber:r.lineNumber,column:r.column},end:{lineNumber:r.lineNumber,column:r.column}},e.replacingToken=!1)}switch(e.textBoxPosition={lineNumber:e.rangeToReplace.start.lineNumber,column:e.rangeToReplace.start.column},e.autoCompleteType){case"path":case"url_params":!function(e){e.prefixToAdd="",e.suffixToAdd=""}(e);break;case"method":!function(e){e.prefixToAdd="",e.suffixToAdd="";var r=be({editor:t,position:t.getCurrentPosition()}),o=r.getCurrentPosition().lineNumber,i=n.nextNonEmptyToken(r);r.getCurrentPosition().lineNumber===o&&i||(e.suffixToAdd=" ")}(e);break;case"body":!function(e){e.prefixToAdd="",e.suffixToAdd="";var r,o=be({editor:t,position:t.getCurrentPosition()}),i=n.nextNonEmptyToken(o);switch(i?i.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":e.addTemplate=!0;break;case"punctuation.colon":if(e.addTemplate=!1,!(i=n.nextNonEmptyToken(o))||"{"!==i.value)break;if(!(i=n.nextNonEmptyToken(o))||"}"!==i.value)break;switch(e.addTemplate=!0,e.rangeToReplace.end.lineNumber=o.getCurrentTokenLineNumber(),e.rangeToReplace.end.column=o.getCurrentTokenColumn()+i.value.length,(i=n.nextNonEmptyToken(o))?i.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:e.suffixToAdd=", "}break;default:e.addTemplate=!0,e.suffixToAdd=", "}if(i=(o=be({editor:t,position:t.getCurrentPosition()})).getCurrentToken(),e.replacingToken)r=0;else{var s=t.getCurrentPosition();r=s.column===e.updatedForToken.position.column?-1:s.column<e.updatedForToken.position.column+e.updatedForToken.value.length?0:1}switch((n.isEmptyToken(i)||r<=0)&&(i=n.prevNonEmptyToken(o)),i?i.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:i&&i.type.indexOf("url")<0&&(e.prefixToAdd=", ")}}(e)}}var i=h().debounce((function(e){var r=null;try{r=t.getTokenAt(e)}catch(e){}if(!r){if(1===e.lineNumber)return void(cr=null);r={position:{column:0,lineNumber:0},value:"",type:""}}if(r.position.lineNumber=e.lineNumber,n.isEmptyToken(r)){var o=t.getTokenAt(lr(lr({},e),{column:e.column+1}));n.isEmptyToken(o)?(r.position.column=e.column,cr=r):(o.position.lineNumber=e.lineNumber,cr=o)}else if(cr)if(cr.position.column===r.position.column&&cr.position.lineNumber===r.position.lineNumber&&cr.value!==r.value){switch(r.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}cr=r,t.execCommand("startAutocomplete")}else cr=r;else cr=r}),100);function s(){var e=t.getCurrentPosition();e&&!t.isCompleterActive()&&i(e)}return t.on("changeSelection",s),{getCompletions:function(e,i,s){try{var a=function(e,r){var i={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:e};switch(i.autoCompleteType=function(e){var r=n.getRowParseMode();if(r&n.MODE.IN_REQUEST)return"body";if(r&n.MODE.REQUEST_START){for(var o=be({editor:t,position:e}),i=o.getCurrentToken();"url.comma"===i.type;)i=o.stepBackward();switch(i.type){case"method":return"method";case"whitespace":return"method"===((i=n.prevNonEmptyToken(o))||{}).type||dr(i)?"path":ur(i)?"url_params":null;default:return dr(i)?"path":ur(i)?"url_params":null}}return r&n.MODE.REQUEST_END?"body":""===t.getLineValue(e.lineNumber).trim()?(r=n.getRowParseMode(e.lineNumber-1))&n.MODE.REQUEST_START&&r&n.MODE.REQUEST_END?"body":"method":null}(r),i.autoCompleteType){case"path":!function(e,r){var o,i,s,a=pr(t,r,n);if(e.method=a.method,e.token=a.token,e.otherTokenValues=a.otherTokenValues,e.urlTokenPath=a.urlTokenPath,"LOAD"===a.method)s=[new ar("command",null,!0)];else if("SELECT"===a.method){var l=(a.tokensLineCache||[]).findIndex((function(e){return e.value===a.token.value})),c=function(e,t){var n=[],r=-1;return(e||[]).forEach((function(o,i){var s=o.value.toUpperCase();if(["FROM","JOIN"].includes(s)&&e.length>i+2&&i+2!=t){var a=e[i+2].value;a.includes("(")||(a=a.replace(/^"+/,"").replace(/"+$/,""),n.push(a),r=i)}})),{indices:n.join(","),idx:r}}(a.tokensLineCache,l),u=c.indices,p=c.idx;if(p>-1&&l<p){var d=ct(u);return void(e.autoCompleteSet=fr(d,"field"))}if((f=(null===(o=a.otherTokenValues)||void 0===o?void 0:o.length)||0)>0)switch(a.otherTokenValues[f-1].toUpperCase()){case"FROM":a.token.value.endsWith('"')||'"'==a.token.value||(e.otherTokenValues=null,e.urlTokenPath=[],s=[new mt("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(f>1&&!a.token.value.includes("="))return""===u&&(u=(u=a.otherTokenValues[f-2]).replace(/^"+/,"").replace(/"+$/,"")),d=ct(u),void(e.autoCompleteSet=fr(d,"field"))}}else if("FROM"==a.method)if(l=(a.tokensLineCache||[]).findIndex((function(e){return e.value===a.token.value})),"FROM"==a.tokensLineCache[l-2].value)a.token.value.endsWith('"')||'"'==a.token.value||(e.otherTokenValues=null,e.urlTokenPath=[],s=[new mt("indices",null,!0)]);else{u=(u=a.otherTokenValues[0]).replace(/^"+/,"").replace(/"+$/,"");for(var f=(null===(i=a.otherTokenValues)||void 0===i?void 0:i.length)||0,h=!0,m=null,_=l-1;_>=0;_--){var g=a.tokensLineCache[_];if(null===m&&""!=g.value.trim()&&(m=g),"url.select_keyword"==g.type&&"SELECT"!=g.value.toUpperCase()){h=!1;break}}switch(h&&","!=m.value&&"SELECT"!=m.value.toUpperCase()&&(h=!1),a.otherTokenValues[f-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":h=!0}if(h&&!a.token.value.includes("="))return d=ct(u),void(e.autoCompleteSet=fr(d,"field"))}else s=Zn(e.method);Ln(e.urlTokenPath,e,t,!0,s),e.autoCompleteSet=fr(e.autoCompleteSet,"endpoint")}(i,r);break;case"url_params":!function(e,r){var o=pr(t,r,n);if(e.method=o.method,e.otherTokenValues=o.otherTokenValues,e.urlTokenPath=o.urlTokenPath,!o.urlTokenPath)return e;if(Ln(o.urlTokenPath,e,t,!1,Zn(e.method)),!e.endpoint)return e;if(!o.urlParamsTokenPath)return e;var i=[],s=o.urlParamsTokenPath.pop();s&&(i=Object.keys(s),e.otherTokenValues=s[i[0]]),Ln(i,e,t,!0,e.endpoint.paramsAutocomplete.getTopLevelComponents(e.method))}(i,r);break;case"method":!function(e){e.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((function(e,t){return{name:e,score:-t,meta:"method"}}))}(i);break;case"body":!function(e,r){var o,i=pr(t,r,n);e.method=i.method,e.otherTokenValues=i.otherTokenValues,e.urlTokenPath=i.urlTokenPath,e.requestStartRow=i.requestStartRow,i.urlTokenPath&&(Ln(i.urlTokenPath,e,t,!1,Zn(e.method)),e.bodyTokenPath=i.bodyTokenPath,i.bodyTokenPath&&(e.endpointComponentResolver=Xn,e.globalComponentResolver=er,o=e.endpoint?e.endpoint.bodyAutocompleteRootComponents:Hn.getUnmatchedEndpointComponents(),Ln(i.bodyTokenPath,e,t,!0,o)))}(i,r);break;default:return null}return i.autoCompleteSet?(o(i,r),i.createdWithToken=h().clone(i.updatedForToken),i):null}(t,e);if(a){var l=h().map(a.autoCompleteSet.filter((function(e){return Boolean(e)&&null!=e.name})),(function(e){var n={value:(e="object"!=typeof e?{name:e}:h().clone(e)).name,meta:"API",score:0,context:a};return"LOAD"===a.method&&"path"===a.autoCompleteType&&(n.completer={insertMatch:function(){r(e),t.execCommand("exec_request")}}),"body"===a.autoCompleteType&&(n.completer={insertMatch:function(){return r(e)}}),h().defaults(e,n)}));l.sort((function(e,t){return e.score>t.score?-1:e.score<t.score?1:e.name<t.name?-1:e.name===t.name?0:1})),s(null,h().map(l,(function(e,t){return e.insertValue=e.insertValue||e.value,e.value=""+e.value,e.score=-t,e})))}else s(null,[])}catch(e){console.error(e),s(e,null)}}}}var mr={id:"sense_editor/mode/worker",src:'/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n */\n\n/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the "License"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/*\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n/* @notice\n *\n * This product includes code that is based on Ace editor, which was available\n * under a "BSD" license.\n *\n * Distributed under the BSD license:\n *\n * Copyright (c) 2010, Ajax.org B.V.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * * Neither the name of Ajax.org B.V. nor the\n * names of its contributors may be used to endorse or promote products\n * derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* eslint-disable */\n/*\n This file is loaded up as a blob by Brace to hand to Ace to load as Jsonp\n (hence the redefining of everything). It is based on the javascript\n mode from the brace distro.\n*/\n\n(function(window) {\n window = window || {}\n function resolveModuleId(id, paths) {\n for (let testPath = id, tail = ""; testPath; ) {\n let alias = paths[testPath];\n if ("string" === typeof alias) return alias + tail;\n if (alias) {\n return (\n alias.location.replace(/\\/*$/, "/") +\n (tail || alias.main || alias.name)\n );\n }\n if (alias === !1) return "";\n let i = testPath.lastIndexOf("/");\n if (-1 === i) break;\n (tail = testPath.substr(i) + tail), (testPath = testPath.slice(0, i));\n }\n return id;\n }\n if (\n !(\n (void 0 !== window?.window && window?.document) ||\n (window?.acequire && window?.define)\n )\n ) {\n window?.console ||\n ((window.console = function() {\n let msgs = Array.prototype.slice.call(arguments, 0);\n postMessage({ type: "log", data: msgs });\n }),\n (window.console.error = window.console.warn = window.console.log = window.console.trace =\n window?.console)),\n (window.window = window),\n (window.ace = window),\n (window.onerror = function(message, file, line, col, err) {\n postMessage({\n type: "error",\n data: {\n message: message,\n data: err.data,\n file: file,\n line: line,\n col: col,\n stack: err.stack,\n },\n });\n }),\n (window.normalizeModule = function(parentId, moduleName) {\n if (-1 !== moduleName.indexOf("!")) {\n let chunks = moduleName.split("!");\n return (\n window.normalizeModule(parentId, chunks[0]) +\n "!" +\n window.normalizeModule(parentId, chunks[1])\n );\n }\n if ("." == moduleName.charAt(0)) {\n let base = parentId\n .split("/")\n .slice(0, -1)\n .join("/");\n for (\n moduleName = (base ? base + "/" : "") + moduleName;\n -1 !== moduleName.indexOf(".") && previous != moduleName;\n\n ) {\n var previous = moduleName;\n moduleName = moduleName\n .replace(/^\\.\\//, "")\n .replace(/\\/\\.\\//, "/")\n .replace(/[^\\/]+\\/\\.\\.\\//, "");\n }\n }\n return moduleName;\n }),\n (window.acequire = function acequire(parentId, id) {\n if ((id || ((id = parentId), (parentId = null)), !id.charAt)) {\n throw Error(\n "worker.js acequire() accepts only (parentId, id) as arguments"\n );\n }\n id = window.normalizeModule(parentId, id);\n let module = window?.acequire.modules[id];\n if (module) {\n return (\n module.initialized ||\n ((module.initialized = !0),\n (module.exports = module.factory().exports)),\n module.exports\n );\n }\n if (!window?.acequire.tlns) return console.log("unable to load " + id);\n let path = resolveModuleId(id, window?.acequire.tlns);\n return (\n ".js" != path.slice(-3) && (path += ".js"),\n (window.acequire.id = id),\n (window.acequire.modules[id] = {}),\n importScripts(path),\n window.acequire(parentId, id)\n );\n }),\n (window.acequire.modules = {}),\n (window.acequire.tlns = {}),\n (window.define = function(id, deps, factory) {\n if (\n (2 == arguments.length\n ? ((factory = deps),\n "string" !== typeof id &&\n ((deps = id), (id = window?.acequire.id)))\n : 1 == arguments.length &&\n ((factory = id), (deps = []), (id = window?.acequire.id)),\n "function" !== typeof factory)\n ) {\n return (\n (window.acequire.modules[id] = {\n exports: factory,\n initialized: !0,\n }),\n void 0\n );\n }\n deps.length || (deps = ["require", "exports", "module"]);\n let req = function(childId) {\n return window.acequire(id, childId);\n };\n window.acequire.modules[id] = {\n exports: {},\n factory: function() {\n let module = this,\n returnExports = factory.apply(\n this,\n deps.map(function(dep) {\n switch (dep) {\n case "require":\n return req;\n case "exports":\n return module.exports;\n case "module":\n return module;\n default:\n return req(dep);\n }\n })\n );\n return returnExports && (module.exports = returnExports), module;\n },\n };\n }),\n (window.define.amd = {}),\n (window.acequire.tlns = {}),\n (window.initBaseUrls = function(topLevelNamespaces) {\n for (let i in topLevelNamespaces) {\n window.acequire.tlns[i] = topLevelNamespaces[i];\n }\n }),\n (window.initSender = function() {\n let EventEmitter = window?.acequire("ace/lib/event_emitter")\n .EventEmitter,\n oop = window?.acequire("ace/lib/oop"),\n Sender = function() {};\n return (\n function() {\n oop.implement(this, EventEmitter),\n (this.callback = function(data, callbackId) {\n postMessage({ type: "call", id: callbackId, data: data });\n }),\n (this.emit = function(name, data) {\n postMessage({ type: "event", name: name, data: data });\n });\n }.call(Sender.prototype),\n new Sender()\n );\n });\n let main = (window.main = null),\n sender = (window.sender = null);\n window.onmessage = function(e) {\n let msg = e.data;\n if (msg.event && sender) sender._signal(msg.event, msg.data);\n else if (msg.command) {\n if (main[msg.command]) main[msg.command].apply(main, msg.args);\n else {\n if (!window[msg.command])\n throw Error("Unknown command:" + msg.command);\n window[msg.command].apply(window, msg.args);\n }\n } else if (msg.init) {\n window.initBaseUrls(msg.tlns),\n acequire("ace/lib/es5-shim"),\n (sender = window.sender = window.initSender());\n let clazz = acequire(msg.module)[msg.classname];\n main = window.main = new clazz(sender);\n }\n };\n }\n})(this),\n ace.define("ace/lib/oop", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n (exports.inherits = function(ctor, superCtor) {\n (ctor.super_ = superCtor),\n (ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: !1,\n writable: !0,\n configurable: !0,\n },\n }));\n }),\n (exports.mixin = function(obj, mixin) {\n for (let key in mixin) obj[key] = mixin[key];\n return obj;\n }),\n (exports.implement = function(proto, mixin) {\n exports.mixin(proto, mixin);\n });\n }),\n ace.define("ace/range", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n let comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column;\n },\n Range = function(startRow, startColumn, endRow, endColumn) {\n (this.start = { row: startRow, column: startColumn }),\n (this.end = { row: endRow, column: endColumn });\n };\n (function() {\n (this.isEqual = function(range) {\n return (\n this.start.row === range.start.row &&\n this.end.row === range.end.row &&\n this.start.column === range.start.column &&\n this.end.column === range.end.column\n );\n }),\n (this.toString = function() {\n return (\n "Range: [" +\n this.start.row +\n "/" +\n this.start.column +\n "] -> [" +\n this.end.row +\n "/" +\n this.end.column +\n "]"\n );\n }),\n (this.contains = function(row, column) {\n return 0 == this.compare(row, column);\n }),\n (this.compareRange = function(range) {\n let cmp,\n end = range.end,\n start = range.start;\n return (\n (cmp = this.compare(end.row, end.column)),\n 1 == cmp\n ? ((cmp = this.compare(start.row, start.column)),\n 1 == cmp ? 2 : 0 == cmp ? 1 : 0)\n : -1 == cmp\n ? -2\n : ((cmp = this.compare(start.row, start.column)),\n -1 == cmp ? -1 : 1 == cmp ? 42 : 0)\n );\n }),\n (this.comparePoint = function(p) {\n return this.compare(p.row, p.column);\n }),\n (this.containsRange = function(range) {\n return (\n 0 == this.comparePoint(range.start) &&\n 0 == this.comparePoint(range.end)\n );\n }),\n (this.intersects = function(range) {\n let cmp = this.compareRange(range);\n return -1 == cmp || 0 == cmp || 1 == cmp;\n }),\n (this.isEnd = function(row, column) {\n return this.end.row == row && this.end.column == column;\n }),\n (this.isStart = function(row, column) {\n return this.start.row == row && this.start.column == column;\n }),\n (this.setStart = function(row, column) {\n "object" === typeof row\n ? ((this.start.column = row.column), (this.start.row = row.row))\n : ((this.start.row = row), (this.start.column = column));\n }),\n (this.setEnd = function(row, column) {\n "object" === typeof row\n ? ((this.end.column = row.column), (this.end.row = row.row))\n : ((this.end.row = row), (this.end.column = column));\n }),\n (this.inside = function(row, column) {\n return 0 == this.compare(row, column)\n ? this.isEnd(row, column) || this.isStart(row, column)\n ? !1\n : !0\n : !1;\n }),\n (this.insideStart = function(row, column) {\n return 0 == this.compare(row, column)\n ? this.isEnd(row, column)\n ? !1\n : !0\n : !1;\n }),\n (this.insideEnd = function(row, column) {\n return 0 == this.compare(row, column)\n ? this.isStart(row, column)\n ? !1\n : !0\n : !1;\n }),\n (this.compare = function(row, column) {\n return this.isMultiLine() || row !== this.start.row\n ? this.start.row > row\n ? -1\n : row > this.end.row\n ? 1\n : this.start.row === row\n ? column >= this.start.column\n ? 0\n : -1\n : this.end.row === row\n ? this.end.column >= column\n ? 0\n : 1\n : 0\n : this.start.column > column\n ? -1\n : column > this.end.column\n ? 1\n : 0;\n }),\n (this.compareStart = function(row, column) {\n return this.start.row == row && this.start.column == column\n ? -1\n : this.compare(row, column);\n }),\n (this.compareEnd = function(row, column) {\n return this.end.row == row && this.end.column == column\n ? 1\n : this.compare(row, column);\n }),\n (this.compareInside = function(row, column) {\n return this.end.row == row && this.end.column == column\n ? 1\n : this.start.row == row && this.start.column == column\n ? -1\n : this.compare(row, column);\n }),\n (this.clipRows = function(firstRow, lastRow) {\n if (this.end.row > lastRow) var end = { row: lastRow + 1, column: 0 };\n else if (firstRow > this.end.row) {\n var end = { row: firstRow, column: 0 };\n }\n if (this.start.row > lastRow) {\n var start = { row: lastRow + 1, column: 0 };\n } else if (firstRow > this.start.row) {\n var start = { row: firstRow, column: 0 };\n }\n return Range.fromPoints(start || this.start, end || this.end);\n }),\n (this.extend = function(row, column) {\n let cmp = this.compare(row, column);\n if (0 == cmp) return this;\n if (-1 == cmp) var start = { row: row, column: column };\n else var end = { row: row, column: column };\n return Range.fromPoints(start || this.start, end || this.end);\n }),\n (this.isEmpty = function() {\n return (\n this.start.row === this.end.row &&\n this.start.column === this.end.column\n );\n }),\n (this.isMultiLine = function() {\n return this.start.row !== this.end.row;\n }),\n (this.clone = function() {\n return Range.fromPoints(this.start, this.end);\n }),\n (this.collapseRows = function() {\n return 0 == this.end.column\n ? new Range(\n this.start.row,\n 0,\n Math.max(this.start.row, this.end.row - 1),\n 0\n )\n : new Range(this.start.row, 0, this.end.row, 0);\n }),\n (this.toScreenRange = function(session) {\n let screenPosStart = session.documentToScreenPosition(this.start),\n screenPosEnd = session.documentToScreenPosition(this.end);\n return new Range(\n screenPosStart.row,\n screenPosStart.column,\n screenPosEnd.row,\n screenPosEnd.column\n );\n }),\n (this.moveBy = function(row, column) {\n (this.start.row += row),\n (this.start.column += column),\n (this.end.row += row),\n (this.end.column += column);\n });\n }.call(Range.prototype),\n (Range.fromPoints = function(start, end) {\n return new Range(start.row, start.column, end.row, end.column);\n }),\n (Range.comparePoints = comparePoints),\n (Range.comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column;\n }),\n (exports.Range = Range));\n }),\n ace.define("ace/apply_delta", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n exports.applyDelta = function(docLines, delta) {\n let row = delta.start.row,\n startColumn = delta.start.column,\n line = docLines[row] || "";\n switch (delta.action) {\n case "insert":\n var lines = delta.lines;\n if (1 === lines.length) {\n docLines[row] =\n line.substring(0, startColumn) +\n delta.lines[0] +\n line.substring(startColumn);\n } else {\n let args = [row, 1].concat(delta.lines);\n docLines.splice.apply(docLines, args),\n (docLines[row] = line.substring(0, startColumn) + docLines[row]),\n (docLines[row + delta.lines.length - 1] += line.substring(\n startColumn\n ));\n }\n break;\n case "remove":\n var endColumn = delta.end.column,\n endRow = delta.end.row;\n row === endRow\n ? (docLines[row] =\n line.substring(0, startColumn) + line.substring(endColumn))\n : docLines.splice(\n row,\n endRow - row + 1,\n line.substring(0, startColumn) +\n docLines[endRow].substring(endColumn)\n );\n }\n };\n }),\n ace.define(\n "ace/lib/event_emitter",\n ["require", "exports", "module"],\n function(acequire, exports) {\n let EventEmitter = {},\n stopPropagation = function() {\n this.propagationStopped = !0;\n },\n preventDefault = function() {\n this.defaultPrevented = !0;\n };\n (EventEmitter._emit = EventEmitter._dispatchEvent = function(\n eventName,\n e\n ) {\n this._eventRegistry || (this._eventRegistry = {}),\n this._defaultHandlers || (this._defaultHandlers = {});\n let listeners = this._eventRegistry[eventName] || [],\n defaultHandler = this._defaultHandlers[eventName];\n if (listeners.length || defaultHandler) {\n ("object" === typeof e && e) || (e = {}),\n e.type || (e.type = eventName),\n e.stopPropagation || (e.stopPropagation = stopPropagation),\n e.preventDefault || (e.preventDefault = preventDefault),\n (listeners = listeners.slice());\n for (\n let i = 0;\n listeners.length > i &&\n (listeners[i](e, this), !e.propagationStopped);\n i++\n );\n return defaultHandler && !e.defaultPrevented\n ? defaultHandler(e, this)\n : void 0;\n }\n }),\n (EventEmitter._signal = function(eventName, e) {\n let listeners = (this._eventRegistry || {})[eventName];\n if (listeners) {\n listeners = listeners.slice();\n for (let i = 0; listeners.length > i; i++) listeners[i](e, this);\n }\n }),\n (EventEmitter.once = function(eventName, callback) {\n let _self = this;\n callback &&\n this.addEventListener(eventName, function newCallback() {\n _self.removeEventListener(eventName, newCallback),\n callback.apply(null, arguments);\n });\n }),\n (EventEmitter.setDefaultHandler = function(eventName, callback) {\n let handlers = this._defaultHandlers;\n if (\n (handlers ||\n (handlers = this._defaultHandlers = { _disabled_: {} }),\n handlers[eventName])\n ) {\n let old = handlers[eventName],\n disabled = handlers._disabled_[eventName];\n disabled || (handlers._disabled_[eventName] = disabled = []),\n disabled.push(old);\n let i = disabled.indexOf(callback);\n -1 != i && disabled.splice(i, 1);\n }\n handlers[eventName] = callback;\n }),\n (EventEmitter.removeDefaultHandler = function(eventName, callback) {\n let handlers = this._defaultHandlers;\n if (handlers) {\n let disabled = handlers._disabled_[eventName];\n if (handlers[eventName] == callback) {\n handlers[eventName],\n disabled && this.setDefaultHandler(eventName, disabled.pop());\n } else if (disabled) {\n let i = disabled.indexOf(callback);\n -1 != i && disabled.splice(i, 1);\n }\n }\n }),\n (EventEmitter.on = EventEmitter.addEventListener = function(\n eventName,\n callback,\n capturing\n ) {\n this._eventRegistry = this._eventRegistry || {};\n let listeners = this._eventRegistry[eventName];\n return (\n listeners || (listeners = this._eventRegistry[eventName] = []),\n -1 == listeners.indexOf(callback) &&\n listeners[capturing ? "unshift" : "push"](callback),\n callback\n );\n }),\n (EventEmitter.off = EventEmitter.removeListener = EventEmitter.removeEventListener = function(\n eventName,\n callback\n ) {\n this._eventRegistry = this._eventRegistry || {};\n let listeners = this._eventRegistry[eventName];\n if (listeners) {\n let index = listeners.indexOf(callback);\n -1 !== index && listeners.splice(index, 1);\n }\n }),\n (EventEmitter.removeAllListeners = function(eventName) {\n this._eventRegistry && (this._eventRegistry[eventName] = []);\n }),\n (exports.EventEmitter = EventEmitter);\n }\n ),\n ace.define(\n "ace/anchor",\n ["require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter"],\n function(acequire, exports) {\n let oop = acequire("./lib/oop"),\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Anchor = (exports.Anchor = function(doc, row, column) {\n (this.$onChange = this.onChange.bind(this)),\n this.attach(doc),\n column === void 0\n ? this.setPosition(row.row, row.column)\n : this.setPosition(row, column);\n });\n (function() {\n function $pointsInOrder(point1, point2, equalPointsInOrder) {\n let bColIsAfter = equalPointsInOrder\n ? point1.column <= point2.column\n : point1.column < point2.column;\n return (\n point1.row < point2.row || (point1.row == point2.row && bColIsAfter)\n );\n }\n function $getTransformedPoint(delta, point, moveIfEqual) {\n let deltaIsInsert = "insert" == delta.action,\n deltaRowShift =\n (deltaIsInsert ? 1 : -1) * (delta.end.row - delta.start.row),\n deltaColShift =\n (deltaIsInsert ? 1 : -1) *\n (delta.end.column - delta.start.column),\n deltaStart = delta.start,\n deltaEnd = deltaIsInsert ? deltaStart : delta.end;\n return $pointsInOrder(point, deltaStart, moveIfEqual)\n ? { row: point.row, column: point.column }\n : $pointsInOrder(deltaEnd, point, !moveIfEqual)\n ? {\n row: point.row + deltaRowShift,\n column:\n point.column +\n (point.row == deltaEnd.row ? deltaColShift : 0),\n }\n : { row: deltaStart.row, column: deltaStart.column };\n }\n oop.implement(this, EventEmitter),\n (this.getPosition = function() {\n return this.$clipPositionToDocument(this.row, this.column);\n }),\n (this.getDocument = function() {\n return this.document;\n }),\n (this.$insertRight = !1),\n (this.onChange = function(delta) {\n if (\n !(\n (delta.start.row == delta.end.row &&\n delta.start.row != this.row) ||\n delta.start.row > this.row\n )\n ) {\n let point = $getTransformedPoint(\n delta,\n { row: this.row, column: this.column },\n this.$insertRight\n );\n this.setPosition(point.row, point.column, !0);\n }\n }),\n (this.setPosition = function(row, column, noClip) {\n let pos;\n if (\n ((pos = noClip\n ? { row: row, column: column }\n : this.$clipPositionToDocument(row, column)),\n this.row != pos.row || this.column != pos.column)\n ) {\n let old = { row: this.row, column: this.column };\n (this.row = pos.row),\n (this.column = pos.column),\n this._signal("change", { old: old, value: pos });\n }\n }),\n (this.detach = function() {\n this.document.removeEventListener("change", this.$onChange);\n }),\n (this.attach = function(doc) {\n (this.document = doc || this.document),\n this.document.on("change", this.$onChange);\n }),\n (this.$clipPositionToDocument = function(row, column) {\n let pos = {};\n return (\n row >= this.document.getLength()\n ? ((pos.row = Math.max(0, this.document.getLength() - 1)),\n (pos.column = this.document.getLine(pos.row).length))\n : 0 > row\n ? ((pos.row = 0), (pos.column = 0))\n : ((pos.row = row),\n (pos.column = Math.min(\n this.document.getLine(pos.row).length,\n Math.max(0, column)\n ))),\n 0 > column && (pos.column = 0),\n pos\n );\n });\n }.call(Anchor.prototype));\n }\n ),\n ace.define(\n "ace/document",\n [\n "require",\n "exports",\n "module",\n "ace/lib/oop",\n "ace/apply_delta",\n "ace/lib/event_emitter",\n "ace/range",\n "ace/anchor",\n ],\n function(acequire, exports) {\n let oop = acequire("./lib/oop"),\n applyDelta = acequire("./apply_delta").applyDelta,\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Range = acequire("./range").Range,\n Anchor = acequire("./anchor").Anchor,\n Document = function(textOrLines) {\n (this.$lines = [""]),\n 0 === textOrLines.length\n ? (this.$lines = [""])\n : Array.isArray(textOrLines)\n ? this.insertMergedLines({ row: 0, column: 0 }, textOrLines)\n : this.insert({ row: 0, column: 0 }, textOrLines);\n };\n (function() {\n oop.implement(this, EventEmitter),\n (this.setValue = function(text) {\n let len = this.getLength() - 1;\n this.remove(new Range(0, 0, len, this.getLine(len).length)),\n this.insert({ row: 0, column: 0 }, text);\n }),\n (this.getValue = function() {\n return this.getAllLines().join(this.getNewLineCharacter());\n }),\n (this.createAnchor = function(row, column) {\n return new Anchor(this, row, column);\n }),\n (this.$split =\n 0 === "aaa".split(/a/).length\n ? function(text) {\n return text.replace(/\\r\\n|\\r/g, "\\n").split("\\n");\n }\n : function(text) {\n return text.split(/\\r\\n|\\r|\\n/);\n }),\n (this.$detectNewLine = function(text) {\n let match = text.match(/^.*?(\\r\\n|\\r|\\n)/m);\n (this.$autoNewLine = match ? match[1] : "\\n"),\n this._signal("changeNewLineMode");\n }),\n (this.getNewLineCharacter = function() {\n switch (this.$newLineMode) {\n case "windows":\n return "\\r\\n";\n case "unix":\n return "\\n";\n default:\n return this.$autoNewLine || "\\n";\n }\n }),\n (this.$autoNewLine = ""),\n (this.$newLineMode = "auto"),\n (this.setNewLineMode = function(newLineMode) {\n this.$newLineMode !== newLineMode &&\n ((this.$newLineMode = newLineMode),\n this._signal("changeNewLineMode"));\n }),\n (this.getNewLineMode = function() {\n return this.$newLineMode;\n }),\n (this.isNewLine = function(text) {\n return "\\r\\n" == text || "\\r" == text || "\\n" == text;\n }),\n (this.getLine = function(row) {\n return this.$lines[row] || "";\n }),\n (this.getLines = function(firstRow, lastRow) {\n return this.$lines.slice(firstRow, lastRow + 1);\n }),\n (this.getAllLines = function() {\n return this.getLines(0, this.getLength());\n }),\n (this.getLength = function() {\n return this.$lines.length;\n }),\n (this.getTextRange = function(range) {\n return this.getLinesForRange(range).join(\n this.getNewLineCharacter()\n );\n }),\n (this.getLinesForRange = function(range) {\n let lines;\n if (range.start.row === range.end.row) {\n lines = [\n this.getLine(range.start.row).substring(\n range.start.column,\n range.end.column\n ),\n ];\n } else {\n (lines = this.getLines(range.start.row, range.end.row)),\n (lines[0] = (lines[0] || "").substring(range.start.column));\n let l = lines.length - 1;\n range.end.row - range.start.row == l &&\n (lines[l] = lines[l].substring(0, range.end.column));\n }\n return lines;\n }),\n (this.insertLines = function(row, lines) {\n return (\n console.warn(\n "Use of document.insertLines is deprecated. Use the insertFullLines method instead."\n ),\n this.insertFullLines(row, lines)\n );\n }),\n (this.removeLines = function(firstRow, lastRow) {\n return (\n console.warn(\n "Use of document.removeLines is deprecated. Use the removeFullLines method instead."\n ),\n this.removeFullLines(firstRow, lastRow)\n );\n }),\n (this.insertNewLine = function(position) {\n return (\n console.warn(\n "Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."\n ),\n this.insertMergedLines(position, ["", ""])\n );\n }),\n (this.insert = function(position, text) {\n return (\n 1 >= this.getLength() && this.$detectNewLine(text),\n this.insertMergedLines(position, this.$split(text))\n );\n }),\n (this.insertInLine = function(position, text) {\n let start = this.clippedPos(position.row, position.column),\n end = this.pos(position.row, position.column + text.length);\n return (\n this.applyDelta(\n { start: start, end: end, action: "insert", lines: [text] },\n !0\n ),\n this.clonePos(end)\n );\n }),\n (this.clippedPos = function(row, column) {\n let length = this.getLength();\n void 0 === row\n ? (row = length)\n : 0 > row\n ? (row = 0)\n : row >= length && ((row = length - 1), (column = void 0));\n let line = this.getLine(row);\n return (\n void 0 == column && (column = line.length),\n (column = Math.min(Math.max(column, 0), line.length)),\n { row: row, column: column }\n );\n }),\n (this.clonePos = function(pos) {\n return { row: pos.row, column: pos.column };\n }),\n (this.pos = function(row, column) {\n return { row: row, column: column };\n }),\n (this.$clipPosition = function(position) {\n let length = this.getLength();\n return (\n position.row >= length\n ? ((position.row = Math.max(0, length - 1)),\n (position.column = this.getLine(length - 1).length))\n : ((position.row = Math.max(0, position.row)),\n (position.column = Math.min(\n Math.max(position.column, 0),\n this.getLine(position.row).length\n ))),\n position\n );\n }),\n (this.insertFullLines = function(row, lines) {\n row = Math.min(Math.max(row, 0), this.getLength());\n let column = 0;\n this.getLength() > row\n ? ((lines = lines.concat([""])), (column = 0))\n : ((lines = [""].concat(lines)),\n row--,\n (column = this.$lines[row].length)),\n this.insertMergedLines({ row: row, column: column }, lines);\n }),\n (this.insertMergedLines = function(position, lines) {\n let start = this.clippedPos(position.row, position.column),\n end = {\n row: start.row + lines.length - 1,\n column:\n (1 == lines.length ? start.column : 0) +\n lines[lines.length - 1].length,\n };\n return (\n this.applyDelta({\n start: start,\n end: end,\n action: "insert",\n lines: lines,\n }),\n this.clonePos(end)\n );\n }),\n (this.remove = function(range) {\n let start = this.clippedPos(range.start.row, range.start.column),\n end = this.clippedPos(range.end.row, range.end.column);\n return (\n this.applyDelta({\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({ start: start, end: end }),\n }),\n this.clonePos(start)\n );\n }),\n (this.removeInLine = function(row, startColumn, endColumn) {\n let start = this.clippedPos(row, startColumn),\n end = this.clippedPos(row, endColumn);\n return (\n this.applyDelta(\n {\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({ start: start, end: end }),\n },\n !0\n ),\n this.clonePos(start)\n );\n }),\n (this.removeFullLines = function(firstRow, lastRow) {\n (firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1)),\n (lastRow = Math.min(Math.max(0, lastRow), this.getLength() - 1));\n let deleteFirstNewLine =\n lastRow == this.getLength() - 1 && firstRow > 0,\n deleteLastNewLine = this.getLength() - 1 > lastRow,\n startRow = deleteFirstNewLine ? firstRow - 1 : firstRow,\n startCol = deleteFirstNewLine ? this.getLine(startRow).length : 0,\n endRow = deleteLastNewLine ? lastRow + 1 : lastRow,\n endCol = deleteLastNewLine ? 0 : this.getLine(endRow).length,\n range = new Range(startRow, startCol, endRow, endCol),\n deletedLines = this.$lines.slice(firstRow, lastRow + 1);\n return (\n this.applyDelta({\n start: range.start,\n end: range.end,\n action: "remove",\n lines: this.getLinesForRange(range),\n }),\n deletedLines\n );\n }),\n (this.removeNewLine = function(row) {\n this.getLength() - 1 > row &&\n row >= 0 &&\n this.applyDelta({\n start: this.pos(row, this.getLine(row).length),\n end: this.pos(row + 1, 0),\n action: "remove",\n lines: ["", ""],\n });\n }),\n (this.replace = function(range, text) {\n if (\n (range instanceof Range ||\n (range = Range.fromPoints(range.start, range.end)),\n 0 === text.length && range.isEmpty())\n ) {\n return range.start;\n }\n if (text == this.getTextRange(range)) return range.end;\n this.remove(range);\n let end;\n return (end = text ? this.insert(range.start, text) : range.start);\n }),\n (this.applyDeltas = function(deltas) {\n for (let i = 0; deltas.length > i; i++) this.applyDelta(deltas[i]);\n }),\n (this.revertDeltas = function(deltas) {\n for (let i = deltas.length - 1; i >= 0; i--) {\n this.revertDelta(deltas[i]);\n }\n }),\n (this.applyDelta = function(delta, doNotValidate) {\n let isInsert = "insert" == delta.action;\n (isInsert\n ? 1 >= delta.lines.length && !delta.lines[0]\n : !Range.comparePoints(delta.start, delta.end)) ||\n (isInsert &&\n delta.lines.length > 2e4 &&\n this.$splitAndapplyLargeDelta(delta, 2e4),\n applyDelta(this.$lines, delta, doNotValidate),\n this._signal("change", delta));\n }),\n (this.$splitAndapplyLargeDelta = function(delta, MAX) {\n for (\n let lines = delta.lines,\n l = lines.length,\n row = delta.start.row,\n column = delta.start.column,\n from = 0,\n to = 0;\n ;\n\n ) {\n (from = to), (to += MAX - 1);\n let chunk = lines.slice(from, to);\n if (to > l) {\n (delta.lines = chunk),\n (delta.start.row = row + from),\n (delta.start.column = column);\n break;\n }\n chunk.push(""),\n this.applyDelta(\n {\n start: this.pos(row + from, column),\n end: this.pos(row + to, (column = 0)),\n action: delta.action,\n lines: chunk,\n },\n !0\n );\n }\n }),\n (this.revertDelta = function(delta) {\n this.applyDelta({\n start: this.clonePos(delta.start),\n end: this.clonePos(delta.end),\n action: "insert" == delta.action ? "remove" : "insert",\n lines: delta.lines.slice(),\n });\n }),\n (this.indexToPosition = function(index, startRow) {\n for (\n var lines = this.$lines || this.getAllLines(),\n newlineLength = this.getNewLineCharacter().length,\n i = startRow || 0,\n l = lines.length;\n l > i;\n i++\n ) {\n if (((index -= lines[i].length + newlineLength), 0 > index))\n return {\n row: i,\n column: index + lines[i].length + newlineLength,\n };\n }\n return { row: l - 1, column: lines[l - 1].length };\n }),\n (this.positionToIndex = function(pos, startRow) {\n for (\n var lines = this.$lines || this.getAllLines(),\n newlineLength = this.getNewLineCharacter().length,\n index = 0,\n row = Math.min(pos.row, lines.length),\n i = startRow || 0;\n row > i;\n ++i\n ) {\n index += lines[i].length + newlineLength;\n }\n return index + pos.column;\n });\n }.call(Document.prototype),\n (exports.Document = Document));\n }\n ),\n ace.define("ace/lib/lang", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n (exports.last = function(a) {\n return a[a.length - 1];\n }),\n (exports.stringReverse = function(string) {\n return string\n .split("")\n .reverse()\n .join("");\n }),\n (exports.stringRepeat = function(string, count) {\n for (var result = ""; count > 0; ) {\n 1 & count && (result += string), (count >>= 1) && (string += string);\n }\n return result;\n });\n let trimBeginRegexp = /^\\s\\s*/,\n trimEndRegexp = /\\s\\s*$/;\n (exports.stringTrimLeft = function(string) {\n return string.replace(trimBeginRegexp, "");\n }),\n (exports.stringTrimRight = function(string) {\n return string.replace(trimEndRegexp, "");\n }),\n (exports.copyObject = function(obj) {\n let copy = {};\n for (let key in obj) copy[key] = obj[key];\n return copy;\n }),\n (exports.copyArray = function(array) {\n for (var copy = [], i = 0, l = array.length; l > i; i++) {\n copy[i] =\n array[i] && "object" == typeof array[i]\n ? this.copyObject(array[i])\n : array[i];\n }\n return copy;\n }),\n (exports.deepCopy = function deepCopy(obj) {\n if ("object" !== typeof obj || !obj) return obj;\n let copy;\n if (Array.isArray(obj)) {\n copy = [];\n for (var key = 0; obj.length > key; key++) {\n copy[key] = deepCopy(obj[key]);\n }\n return copy;\n }\n if ("[object Object]" !== Object.prototype.toString.call(obj)) {\n return obj;\n }\n copy = {};\n for (var key in obj) copy[key] = deepCopy(obj[key]);\n return copy;\n }),\n (exports.arrayToMap = function(arr) {\n for (var map = {}, i = 0; arr.length > i; i++) map[arr[i]] = 1;\n return map;\n }),\n (exports.createMap = function(props) {\n let map = Object.create(null);\n for (let i in props) map[i] = props[i];\n return map;\n }),\n (exports.arrayRemove = function(array, value) {\n for (let i = 0; array.length >= i; i++) {\n value === array[i] && array.splice(i, 1);\n }\n }),\n (exports.escapeRegExp = function(str) {\n return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g, "\\\\$1");\n }),\n (exports.escapeHTML = function(str) {\n return str\n .replace(/&/g, "&#38;")\n .replace(/"/g, "&#34;")\n .replace(/\'/g, "&#39;")\n .replace(/</g, "&#60;");\n }),\n (exports.getMatchOffsets = function(string, regExp) {\n let matches = [];\n return (\n string.replace(regExp, function(str) {\n matches.push({\n offset: arguments[arguments.length - 2],\n length: str.length,\n });\n }),\n matches\n );\n }),\n (exports.deferredCall = function(fcn) {\n var timer = null,\n callback = function() {\n (timer = null), fcn();\n },\n deferred = function(timeout) {\n return (\n deferred.cancel(),\n (timer = setTimeout(callback, timeout || 0)),\n deferred\n );\n };\n return (\n (deferred.schedule = deferred),\n (deferred.call = function() {\n return this.cancel(), fcn(), deferred;\n }),\n (deferred.cancel = function() {\n return clearTimeout(timer), (timer = null), deferred;\n }),\n (deferred.isPending = function() {\n return timer;\n }),\n deferred\n );\n }),\n (exports.delayedCall = function(fcn, defaultTimeout) {\n let timer = null,\n callback = function() {\n (timer = null), fcn();\n },\n _self = function(timeout) {\n null == timer &&\n (timer = setTimeout(callback, timeout || defaultTimeout));\n };\n return (\n (_self.delay = function(timeout) {\n timer && clearTimeout(timer),\n (timer = setTimeout(callback, timeout || defaultTimeout));\n }),\n (_self.schedule = _self),\n (_self.call = function() {\n this.cancel(), fcn();\n }),\n (_self.cancel = function() {\n timer && clearTimeout(timer), (timer = null);\n }),\n (_self.isPending = function() {\n return timer;\n }),\n _self\n );\n });\n }),\n ace.define(\n "ace/worker/mirror",\n [\n "require",\n "exports",\n "module",\n "ace/range",\n "ace/document",\n "ace/lib/lang",\n ],\n function(acequire, exports) {\n acequire("../range").Range;\n let Document = acequire("../document").Document,\n lang = acequire("../lib/lang"),\n Mirror = (exports.Mirror = function(sender) {\n this.sender = sender;\n let doc = (this.doc = new Document("")),\n deferredUpdate = (this.deferredUpdate = lang.delayedCall(\n this.onUpdate.bind(this)\n )),\n _self = this;\n sender.on("change", function(e) {\n let data = e.data;\n if (data[0].start) doc.applyDeltas(data);\n else {\n for (var i = 0; data.length > i; i += 2) {\n if (Array.isArray(data[i + 1]))\n var d = {\n action: "insert",\n start: data[i],\n lines: data[i + 1],\n };\n else\n var d = {\n action: "remove",\n start: data[i],\n end: data[i + 1],\n };\n doc.applyDelta(d, !0);\n }\n }\n return _self.$timeout\n ? deferredUpdate.schedule(_self.$timeout)\n : (_self.onUpdate(), void 0);\n });\n });\n (function() {\n (this.$timeout = 500),\n (this.setTimeout = function(timeout) {\n this.$timeout = timeout;\n }),\n (this.setValue = function(value) {\n this.doc.setValue(value),\n this.deferredUpdate.schedule(this.$timeout);\n }),\n (this.getValue = function(callbackId) {\n this.sender.callback(this.doc.getValue(), callbackId);\n }),\n (this.onUpdate = function() {}),\n (this.isPending = function() {\n return this.deferredUpdate.isPending();\n });\n }.call(Mirror.prototype));\n }\n ),\n ace.define("ace/lib/es5-shim", ["require", "exports", "module"], function() {\n function Empty() {}\n function doesDefinePropertyWork(object) {\n try {\n return (\n Object.defineProperty(object, "sentinel", {}), "sentinel" in object\n );\n } catch (exception) {}\n }\n function toInteger(n) {\n return (\n (n = +n),\n n !== n\n ? (n = 0)\n : 0 !== n &&\n n !== 1 / 0 &&\n n !== -(1 / 0) &&\n (n = (n > 0 || -1) * Math.floor(Math.abs(n))),\n n\n );\n }\n Function.prototype.bind ||\n (Function.prototype.bind = function(that) {\n let target = this;\n if ("function" !== typeof target) {\n throw new TypeError(\n "Function.prototype.bind called on incompatible " + target\n );\n }\n var args = slice.call(arguments, 1),\n bound = function() {\n if (this instanceof bound) {\n let result = target.apply(\n this,\n args.concat(slice.call(arguments))\n );\n return Object(result) === result ? result : this;\n }\n return target.apply(that, args.concat(slice.call(arguments)));\n };\n return (\n target.prototype &&\n ((Empty.prototype = target.prototype),\n (bound.prototype = new Empty()),\n (Empty.prototype = null)),\n bound\n );\n });\n var defineGetter,\n defineSetter,\n lookupGetter,\n lookupSetter,\n supportsAccessors,\n call = Function.prototype.call,\n prototypeOfArray = Array.prototype,\n prototypeOfObject = Object.prototype,\n slice = prototypeOfArray.slice,\n _toString = call.bind(prototypeOfObject.toString),\n owns = call.bind(prototypeOfObject.hasOwnProperty);\n if (\n ((supportsAccessors = owns(prototypeOfObject, "__defineGetter__")) &&\n ((defineGetter = call.bind(prototypeOfObject.__defineGetter__)),\n (defineSetter = call.bind(prototypeOfObject.__defineSetter__)),\n (lookupGetter = call.bind(prototypeOfObject.__lookupGetter__)),\n (lookupSetter = call.bind(prototypeOfObject.__lookupSetter__))),\n 2 != [1, 2].splice(0).length)\n ) {\n if (\n (function() {\n function makeArray(l) {\n var a = Array(l + 2);\n return (a[0] = a[1] = 0), a;\n }\n var lengthBefore,\n array = [];\n return (\n array.splice.apply(array, makeArray(20)),\n array.splice.apply(array, makeArray(26)),\n (lengthBefore = array.length),\n array.splice(5, 0, "XXX"),\n lengthBefore + 1 == array.length,\n lengthBefore + 1 == array.length ? !0 : void 0\n );\n })()\n ) {\n var array_splice = Array.prototype.splice;\n Array.prototype.splice = function(start, deleteCount) {\n return arguments.length\n ? array_splice.apply(\n this,\n [\n void 0 === start ? 0 : start,\n void 0 === deleteCount ? this.length - start : deleteCount,\n ].concat(slice.call(arguments, 2))\n )\n : [];\n };\n } else\n Array.prototype.splice = function(pos, removeCount) {\n var length = this.length;\n pos > 0\n ? pos > length && (pos = length)\n : void 0 == pos\n ? (pos = 0)\n : 0 > pos && (pos = Math.max(length + pos, 0)),\n length > pos + removeCount || (removeCount = length - pos);\n var removed = this.slice(pos, pos + removeCount),\n insert = slice.call(arguments, 2),\n add = insert.length;\n if (pos === length) add && this.push.apply(this, insert);\n else {\n var remove = Math.min(removeCount, length - pos),\n tailOldPos = pos + remove,\n tailNewPos = tailOldPos + add - remove,\n tailCount = length - tailOldPos,\n lengthAfterRemove = length - remove;\n if (tailOldPos > tailNewPos)\n for (var i = 0; tailCount > i; ++i)\n this[tailNewPos + i] = this[tailOldPos + i];\n else if (tailNewPos > tailOldPos)\n for (i = tailCount; i--; )\n this[tailNewPos + i] = this[tailOldPos + i];\n if (add && pos === lengthAfterRemove)\n (this.length = lengthAfterRemove), this.push.apply(this, insert);\n else\n for (this.length = lengthAfterRemove + add, i = 0; add > i; ++i)\n this[pos + i] = insert[i];\n }\n return removed;\n };\n }\n Array.isArray ||\n (Array.isArray = function(obj) {\n return "[object Array]" == _toString(obj);\n });\n let boxedString = Object("a"),\n splitString = "a" != boxedString[0] || !(0 in boxedString);\n if (\n (Array.prototype.forEach ||\n (Array.prototype.forEach = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n thisp = arguments[1],\n i = -1,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError();\n for (; length > ++i; ) {\n i in self && fun.call(thisp, self[i], i, object);\n }\n }),\n Array.prototype.map ||\n (Array.prototype.map = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n result = Array(length),\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n i in self && (result[i] = fun.call(thisp, self[i], i, object));\n }\n return result;\n }),\n Array.prototype.filter ||\n (Array.prototype.filter = function(fun) {\n let value,\n object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n result = [],\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n i in self &&\n ((value = self[i]),\n fun.call(thisp, value, i, object) && result.push(value));\n }\n return result;\n }),\n Array.prototype.every ||\n (Array.prototype.every = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n if (i in self && !fun.call(thisp, self[i], i, object)) return !1;\n }\n return !0;\n }),\n Array.prototype.some ||\n (Array.prototype.some = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n if (i in self && fun.call(thisp, self[i], i, object)) return !0;\n }\n return !1;\n }),\n Array.prototype.reduce ||\n (Array.prototype.reduce = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n if (!length && 1 == arguments.length) {\n throw new TypeError("reduce of empty array with no initial value");\n }\n let result,\n i = 0;\n if (arguments.length >= 2) result = arguments[1];\n else {\n for (;;) {\n if (i in self) {\n result = self[i++];\n break;\n }\n if (++i >= length)\n throw new TypeError(\n "reduce of empty array with no initial value"\n );\n }\n }\n for (; length > i; i++) {\n i in self &&\n (result = fun.call(void 0, result, self[i], i, object));\n }\n return result;\n }),\n Array.prototype.reduceRight ||\n (Array.prototype.reduceRight = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n if (!length && 1 == arguments.length) {\n throw new TypeError(\n "reduceRight of empty array with no initial value"\n );\n }\n let result,\n i = length - 1;\n if (arguments.length >= 2) result = arguments[1];\n else {\n for (;;) {\n if (i in self) {\n result = self[i--];\n break;\n }\n if (0 > --i)\n throw new TypeError(\n "reduceRight of empty array with no initial value"\n );\n }\n }\n do {\n i in this &&\n (result = fun.call(void 0, result, self[i], i, object));\n } while (i--);\n return result;\n }),\n (Array.prototype.indexOf && -1 == [0, 1].indexOf(1, 2)) ||\n (Array.prototype.indexOf = function(sought) {\n let self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n let i = 0;\n for (\n arguments.length > 1 && (i = toInteger(arguments[1])),\n i = i >= 0 ? i : Math.max(0, length + i);\n length > i;\n i++\n ) {\n if (i in self && self[i] === sought) return i;\n }\n return -1;\n }),\n (Array.prototype.lastIndexOf && -1 == [0, 1].lastIndexOf(0, -3)) ||\n (Array.prototype.lastIndexOf = function(sought) {\n let self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n let i = length - 1;\n for (\n arguments.length > 1 && (i = Math.min(i, toInteger(arguments[1]))),\n i = i >= 0 ? i : length - Math.abs(i);\n i >= 0;\n i--\n ) {\n if (i in self && sought === self[i]) return i;\n }\n return -1;\n }),\n Object.getPrototypeOf ||\n (Object.getPrototypeOf = function(object) {\n return (\n object.__proto__ ||\n (object.constructor\n ? object.constructor.prototype\n : prototypeOfObject)\n );\n }),\n !Object.getOwnPropertyDescriptor)\n ) {\n let ERR_NON_OBJECT =\n "Object.getOwnPropertyDescriptor called on a non-object: ";\n Object.getOwnPropertyDescriptor = function(object, property) {\n if (\n ("object" !== typeof object && "function" !== typeof object) ||\n null === object\n ) {\n throw new TypeError(ERR_NON_OBJECT + object);\n }\n if (owns(object, property)) {\n var descriptor, getter, setter;\n if (\n ((descriptor = { enumerable: !0, configurable: !0 }),\n supportsAccessors)\n ) {\n let prototype = object.__proto__;\n object.__proto__ = prototypeOfObject;\n var getter = lookupGetter(object, property),\n setter = lookupSetter(object, property);\n if (((object.__proto__ = prototype), getter || setter)) {\n return (\n getter && (descriptor.get = getter),\n setter && (descriptor.set = setter),\n descriptor\n );\n }\n }\n return (descriptor.value = object[property]), descriptor;\n }\n };\n }\n if (\n (Object.getOwnPropertyNames ||\n (Object.getOwnPropertyNames = function(object) {\n return Object.keys(object);\n }),\n !Object.create)\n ) {\n let createEmpty;\n (createEmpty =\n null === Object.prototype.__proto__\n ? function() {\n return { __proto__: null };\n }\n : function() {\n let empty = {};\n for (let i in empty) empty[i] = null;\n return (\n (empty.constructor = empty.hasOwnProperty = empty.propertyIsEnumerable = empty.isPrototypeOf = empty.toLocaleString = empty.toString = empty.valueOf = empty.__proto__ = null),\n empty\n );\n }),\n (Object.create = function(prototype, properties) {\n let object;\n if (null === prototype) object = createEmpty();\n else {\n if ("object" !== typeof prototype) {\n throw new TypeError(\n "typeof prototype[" + typeof prototype + "] != \'object\'"\n );\n }\n let Type = function() {};\n (Type.prototype = prototype),\n (object = new Type()),\n (object.__proto__ = prototype);\n }\n return (\n void 0 !== properties &&\n Object.defineProperties(object, properties),\n object\n );\n });\n }\n if (Object.defineProperty) {\n let definePropertyWorksOnObject = doesDefinePropertyWork({}),\n definePropertyWorksOnDom =\n "undefined" === typeof document ||\n doesDefinePropertyWork(document.createElement("div"));\n if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) {\n var definePropertyFallback = Object.defineProperty;\n }\n }\n if (!Object.defineProperty || definePropertyFallback) {\n let ERR_NON_OBJECT_DESCRIPTOR =\n "Property description must be an object: ",\n ERR_NON_OBJECT_TARGET = "Object.defineProperty called on non-object: ",\n ERR_ACCESSORS_NOT_SUPPORTED =\n "getters & setters can not be defined on this javascript engine";\n Object.defineProperty = function(object, property, descriptor) {\n if (\n ("object" !== typeof object && "function" !== typeof object) ||\n null === object\n ) {\n throw new TypeError(ERR_NON_OBJECT_TARGET + object);\n }\n if (\n ("object" !== typeof descriptor &&\n "function" !== typeof descriptor) ||\n null === descriptor\n ) {\n throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);\n }\n if (definePropertyFallback) {\n try {\n return definePropertyFallback.call(\n Object,\n object,\n property,\n descriptor\n );\n } catch (exception) {}\n }\n if (owns(descriptor, "value")) {\n if (\n supportsAccessors &&\n (lookupGetter(object, property) || lookupSetter(object, property))\n ) {\n var prototype = object.__proto__;\n (object.__proto__ = prototypeOfObject),\n delete object[property],\n (object[property] = descriptor.value),\n (object.__proto__ = prototype);\n } else object[property] = descriptor.value;\n } else {\n if (!supportsAccessors) {\n throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);\n }\n owns(descriptor, "get") &&\n defineGetter(object, property, descriptor.get),\n owns(descriptor, "set") &&\n defineSetter(object, property, descriptor.set);\n }\n return object;\n };\n }\n Object.defineProperties ||\n (Object.defineProperties = function(object, properties) {\n for (let property in properties) {\n owns(properties, property) &&\n Object.defineProperty(object, property, properties[property]);\n }\n return object;\n }),\n Object.seal ||\n (Object.seal = function(object) {\n return object;\n }),\n Object.freeze ||\n (Object.freeze = function(object) {\n return object;\n });\n try {\n Object.freeze(function() {});\n } catch (exception) {\n Object.freeze = (function(freezeObject) {\n return function(object) {\n return "function" === typeof object ? object : freezeObject(object);\n };\n })(Object.freeze);\n }\n if (\n (Object.preventExtensions ||\n (Object.preventExtensions = function(object) {\n return object;\n }),\n Object.isSealed ||\n (Object.isSealed = function() {\n return !1;\n }),\n Object.isFrozen ||\n (Object.isFrozen = function() {\n return !1;\n }),\n Object.isExtensible ||\n (Object.isExtensible = function(object) {\n if (Object(object) === object) throw new TypeError();\n for (var name = ""; owns(object, name); ) name += "?";\n object[name] = !0;\n let returnValue = owns(object, name);\n return delete object[name], returnValue;\n }),\n !Object.keys)\n ) {\n let hasDontEnumBug = !0,\n dontEnums = [\n "toString",\n "toLocaleString",\n "valueOf",\n "hasOwnProperty",\n "isPrototypeOf",\n "propertyIsEnumerable",\n "constructor",\n ],\n dontEnumsLength = dontEnums.length;\n for (let key in { toString: null }) hasDontEnumBug = !1;\n Object.keys = function(object) {\n if (\n ("object" !== typeof object && "function" !== typeof object) ||\n null === object\n ) {\n throw new TypeError("Object.keys called on a non-object");\n }\n let keys = [];\n for (let name in object) owns(object, name) && keys.push(name);\n if (hasDontEnumBug) {\n for (var i = 0, ii = dontEnumsLength; ii > i; i++) {\n var dontEnum = dontEnums[i];\n owns(object, dontEnum) && keys.push(dontEnum);\n }\n }\n return keys;\n };\n }\n Date.now ||\n (Date.now = function() {\n return new Date().getTime();\n });\n let ws = "\t\\nv\\f\\r   ᠎              \\u2028\\u2029\ufeff";\n if (!String.prototype.trim || ws.trim()) {\n ws = "[" + ws + "]";\n let trimBeginRegexp = RegExp("^" + ws + ws + "*"),\n trimEndRegexp = RegExp(ws + ws + "*$");\n String.prototype.trim = function() {\n return (this + "")\n .replace(trimBeginRegexp, "")\n .replace(trimEndRegexp, "");\n };\n }\n var toObject = function(o) {\n if (null == o) throw new TypeError("can\'t convert " + o + " to object");\n return Object(o);\n };\n });\nace.define(\n "sense_editor/mode/worker_parser",\n ["require", "exports", "module"],\n function() {\n let at, // The index of the current character\n ch, // The current character\n annos, // annotations\n escapee = {\n \'"\': \'"\',\n "\\\\": "\\\\",\n "/": "/",\n b: "\\b",\n f: "\\f",\n n: "\\n",\n r: "\\r",\n t: "\\t",\n },\n text,\n annotate = function(type, text) {\n annos.push({ type: type, text: text, at: at });\n },\n error = function(m) {\n throw {\n name: "SyntaxError",\n message: m,\n at: at,\n text: text,\n };\n },\n reset = function(newAt) {\n ch = text.charAt(newAt);\n at = newAt + 1;\n },\n next = function(c) {\n if (c && c !== ch) {\n error("Expected \'" + c + "\' instead of \'" + ch + "\'");\n }\n\n ch = text.charAt(at);\n at += 1;\n return ch;\n },\n nextUpTo = function(upTo, errorMessage) {\n let currentAt = at,\n i = text.indexOf(upTo, currentAt);\n if (i < 0) {\n error(errorMessage || "Expected \'" + upTo + "\'");\n }\n reset(i + upTo.length);\n return text.substring(currentAt, i);\n },\n peek = function(c) {\n return text.substr(at, c.length) === c; // nocommit - double check\n },\n number = function() {\n let number,\n string = "";\n\n if (ch === "-") {\n string = "-";\n next("-");\n }\n while (ch >= "0" && ch <= "9") {\n string += ch;\n next();\n }\n if (ch === ".") {\n string += ".";\n while (next() && ch >= "0" && ch <= "9") {\n string += ch;\n }\n }\n if (ch === "e" || ch === "E") {\n string += ch;\n next();\n if (ch === "-" || ch === "+") {\n string += ch;\n next();\n }\n while (ch >= "0" && ch <= "9") {\n string += ch;\n next();\n }\n }\n number = +string;\n if (isNaN(number)) {\n error("Bad number");\n } else {\n return number;\n }\n },\n string = function() {\n let hex,\n i,\n string = "",\n uffff;\n\n if (ch === \'"\') {\n if (peek(\'""\')) {\n // literal\n next(\'"\');\n next(\'"\');\n return nextUpTo(\'"""\', \'failed to find closing \\\'"""\\\'\');\n } else {\n while (next()) {\n if (ch === \'"\') {\n next();\n return string;\n } else if (ch === "\\\\") {\n next();\n if (ch === "u") {\n uffff = 0;\n for (i = 0; i < 4; i += 1) {\n hex = parseInt(next(), 16);\n if (!isFinite(hex)) {\n break;\n }\n uffff = uffff * 16 + hex;\n }\n string += String.fromCharCode(uffff);\n } else if (typeof escapee[ch] === "string") {\n string += escapee[ch];\n } else {\n break;\n }\n } else {\n string += ch;\n }\n }\n }\n }\n error("Bad string");\n },\n white = function() {\n while (ch && ch <= " ") {\n next();\n }\n },\n strictWhite = function() {\n while (ch && (ch == " " || ch == "\\t")) {\n next();\n }\n },\n newLine = function() {\n if (ch == "\\n") next();\n },\n word = function() {\n switch (ch) {\n case "t":\n next("t");\n next("r");\n next("u");\n next("e");\n return true;\n case "f":\n next("f");\n next("a");\n next("l");\n next("s");\n next("e");\n return false;\n case "n":\n next("n");\n next("u");\n next("l");\n next("l");\n return null;\n }\n error("Unexpected \'" + ch + "\'");\n },\n // parses and returns the method\n method = function() {\n switch (ch) {\n case "G":\n next("G");\n next("E");\n next("T");\n return "GET";\n case "H":\n next("H");\n next("E");\n next("A");\n next("D");\n return "HEAD";\n case "D":\n next("D");\n next("E");\n next("L");\n next("E");\n next("T");\n next("E");\n return "DELETE";\n case "P":\n next("P");\n switch (ch) {\n case "U":\n next("U");\n next("T");\n return "PUT";\n case "O":\n next("O");\n next("S");\n next("T");\n return "POST";\n default:\n error("Unexpected \'" + ch + "\'");\n }\n break;\n case "L":\n next("L");\n next("O");\n next("A");\n next("D");\n return "LOAD";\n case "C":\n next("C");\n next("O");\n next("N");\n next("F");\n next("I");\n next("G");\n return "CONFIG";\n case "S":\n next("S");\n next("E");\n next("L");\n next("E");\n next("C");\n next("T");\n return "SELECT";\n case "F":\n next("F");\n next("R");\n next("O");\n next("M");\n return "FROM";\n default:\n error("Expected one of GET/POST/PUT/DELETE/HEAD/LOAD/CONFIG/SELECT/FROM");\n }\n },\n value, // Place holder for the value function.\n array = function() {\n const array = [];\n\n if (ch === "[") {\n next("[");\n white();\n if (ch === "]") {\n next("]");\n return array; // empty array\n }\n while (ch) {\n array.push(value());\n white();\n if (ch === "]") {\n next("]");\n return array;\n }\n next(",");\n white();\n }\n }\n error("Bad array");\n },\n object = function() {\n let key,\n object = {};\n\n if (ch === "{") {\n next("{");\n white();\n if (ch === "}") {\n next("}");\n return object; // empty object\n }\n while (ch) {\n key = string();\n white();\n next(":");\n if (Object.hasOwnProperty.call(object, key)) {\n error(\'Duplicate key "\' + key + \'"\');\n }\n object[key] = value();\n white();\n if (ch === "}") {\n next("}");\n return object;\n }\n next(",");\n white();\n }\n }\n error("Bad object");\n };\n\n value = function() {\n white();\n switch (ch) {\n case "{":\n return object();\n case "[":\n return array();\n case \'"\':\n return string();\n case "-":\n return number();\n default:\n return ch >= "0" && ch <= "9" ? number() : word();\n }\n };\n\n let url = function() {\n let url = "";\n while (ch && ch != "\\n") {\n url += ch;\n next();\n }\n if (url == "") {\n error("Missing url");\n }\n return url;\n },\n request = function() {\n white();\n method();\n strictWhite();\n url();\n strictWhite(); // advance to one new line\n newLine();\n strictWhite();\n if (ch == "{") {\n object();\n }\n // multi doc request\n strictWhite(); // advance to one new line\n newLine();\n strictWhite();\n while (ch == "{") {\n // another object\n object();\n strictWhite();\n newLine();\n strictWhite();\n }\n },\n comment = function() {\n while (ch == "#") {\n while (ch && ch !== "\\n") {\n next();\n }\n white();\n }\n },\n multi_request = function() {\n while (ch && ch != "") {\n white();\n if (!ch) {\n continue;\n }\n try {\n comment();\n white();\n if (!ch) {\n continue;\n }\n request();\n white();\n } catch (e) {\n annotate("error", e.message);\n // snap\n const substring = text.substr(at);\n const nextMatch = substring.search(/^POST|HEAD|GET|PUT|DELETE/m);\n if (nextMatch < 1) return;\n reset(at + nextMatch);\n }\n }\n };\n\n return function(source, reviver) {\n let result;\n\n text = source;\n at = 0;\n annos = [];\n next();\n multi_request();\n white();\n if (ch) {\n annotate("error", "Syntax error");\n }\n\n result = { annotations: annos };\n\n return typeof reviver === "function"\n ? (function walk(holder, key) {\n let k,\n v,\n value = holder[key];\n if (value && typeof value === "object") {\n for (k in value) {\n if (Object.hasOwnProperty.call(value, k)) {\n v = walk(value, k);\n if (v !== undefined) {\n value[k] = v;\n } else {\n delete value[k];\n }\n }\n }\n }\n return reviver.call(holder, key, value);\n })({ "": result }, "")\n : result;\n };\n }\n);\n\nace.define(\n "sense_editor/mode/worker",\n [\n "require",\n "exports",\n "module",\n "ace/lib/oop",\n "ace/worker/mirror",\n "sense_editor/mode/worker_parser",\n ],\n function(require, exports) {\n const oop = require("ace/lib/oop");\n const Mirror = require("ace/worker/mirror").Mirror;\n const parse = require("sense_editor/mode/worker_parser");\n\n const SenseWorker = (exports.SenseWorker = function(sender) {\n Mirror.call(this, sender);\n this.setTimeout(200);\n });\n\n oop.inherits(SenseWorker, Mirror);\n\n (function() {\n this.id = "senseWorker";\n this.onUpdate = function() {\n const value = this.doc.getValue();\n let pos, result;\n try {\n result = parse(value);\n } catch (e) {\n pos = this.charToDocumentPosition(e.at - 1);\n this.sender.emit("error", {\n row: pos.row,\n column: pos.column,\n text: e.message,\n type: "error",\n });\n return;\n }\n for (let i = 0; i < result.annotations.length; i++) {\n pos = this.charToDocumentPosition(result.annotations[i].at - 1);\n result.annotations[i].row = pos.row;\n result.annotations[i].column = pos.column;\n }\n this.sender.emit("ok", result.annotations);\n };\n\n this.charToDocumentPosition = function(charPos) {\n let i = 0;\n const len = this.doc.getLength();\n const nl = this.doc.getNewLineCharacter().length;\n\n if (!len) {\n return { row: 0, column: 0 };\n }\n\n let lineStart = 0,\n line;\n while (i < len) {\n line = this.doc.getLine(i);\n const lineLength = line.length + nl;\n if (lineStart + lineLength > charPos) {\n return {\n row: i,\n column: charPos - lineStart,\n };\n }\n\n lineStart += lineLength;\n i += 1;\n }\n\n return {\n row: i - 1,\n column: line.length,\n };\n };\n }.call(SenseWorker.prototype));\n }\n);\n'},_r=_e().acequire("ace/mode/text_highlight_rules").TextHighlightRules,gr=_e().acequire("ace/lib/oop"),yr=function(){var e=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:e,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()};gr.inherits(yr,_r);var wr=_e().acequire("ace/lib/oop"),vr=_e().acequire("ace/mode/text_highlight_rules").TextHighlightRules;function br(){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:"def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx"},{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+"}]}}wr.inherits(br,vr);var xr=function(){return xr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xr.apply(this,arguments)},Or=_e().acequire("ace/mode/json_highlight_rules").JsonHighlightRules,jr=_e().acequire("ace/lib/oop"),Er=function(e){var 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=e||"json",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 kr(){var e=Er("start");this.$rules=xr({},e),this.embedRules(br,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(yr,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}function Sr(e,t){e.$rules=(0,f.defaultsDeep)(e.$rules,Er(t)),e.embedRules(br,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(yr,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}jr.inherits(kr,Or);var Tr={id:"ace/mode/json_worker",src:'/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n */\n\n/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the "License"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/*\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n/* @notice\n *\n * This product includes code that is based on Ace editor, which was available\n * under a "BSD" license.\n *\n * Distributed under the BSD license:\n *\n * Copyright (c) 2010, Ajax.org B.V.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * * Neither the name of Ajax.org B.V. nor the\n * names of its contributors may be used to endorse or promote products\n * derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* eslint-disable */\n/*\n This file is loaded up as a blob by Brace to hand to Ace to load as Jsonp\n (hence the redefining of everything). It is based on the json\n mode from the brace distro.\n\n It is very likely that this file will be removed in future but for now it enables\n extended JSON parsing, like e.g. """{}""" (triple quotes)\n*/\n"no use strict";\n! function(window) {\n window = window || {}\n function resolveModuleId(id, paths) {\n for (var testPath = id, tail = ""; testPath;) {\n var alias = paths[testPath];\n if ("string" == typeof alias) return alias + tail;\n if (alias) return alias.location.replace(/\\/*$/, "/") + (tail || alias.main || alias.name);\n if (alias === !1) return "";\n var i = testPath.lastIndexOf("/");\n if (-1 === i) break;\n tail = testPath.substr(i) + tail, testPath = testPath.slice(0, i)\n }\n return id\n }\n if (!(void 0 !== window.window && window.document || window.acequire && window.define)) {\n window.console || (window.console = function() {\n var msgs = Array.prototype.slice.call(arguments, 0);\n postMessage({\n type: "log",\n data: msgs\n })\n }, 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) {\n postMessage({\n type: "error",\n data: {\n message: message,\n data: err.data,\n file: file,\n line: line,\n col: col,\n stack: err.stack\n }\n })\n }, window.normalizeModule = function(parentId, moduleName) {\n if (-1 !== moduleName.indexOf("!")) {\n var chunks = moduleName.split("!");\n return window.normalizeModule(parentId, chunks[0]) + "!" + window.normalizeModule(parentId, chunks[1])\n }\n if ("." == moduleName.charAt(0)) {\n var base = parentId.split("/").slice(0, -1).join("/");\n for (moduleName = (base ? base + "/" : "") + moduleName; - 1 !== moduleName.indexOf(".") && previous != moduleName;) {\n var previous = moduleName;\n moduleName = moduleName.replace(/^\\.\\//, "").replace(/\\/\\.\\//, "/").replace(/[^\\/]+\\/\\.\\.\\//, "")\n }\n }\n return moduleName\n }, window.acequire = function acequire(parentId, id) {\n if (id || (id = parentId, parentId = null), !id.charAt) throw Error("worker.js acequire() accepts only (parentId, id) as arguments");\n id = window.normalizeModule(parentId, id);\n var module = window.acequire.modules[id];\n if (module) return module.initialized || (module.initialized = !0, module.exports = module.factory().exports), module.exports;\n if (!window.acequire.tlns) return console.log("unable to load " + id);\n var path = resolveModuleId(id, window.acequire.tlns);\n return ".js" != path.slice(-3) && (path += ".js"), window.acequire.id = id, window.acequire.modules[id] = {}, importScripts(path), window.acequire(parentId, id)\n }, window.acequire.modules = {}, window.acequire.tlns = {}, window.define = function(id, deps, factory) {\n 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] = {\n exports: factory,\n initialized: !0\n }, void 0;\n deps.length || (deps = ["require", "exports", "module"]);\n var req = function(childId) {\n return window.acequire(id, childId)\n };\n window.acequire.modules[id] = {\n exports: {},\n factory: function() {\n var module = this,\n returnExports = factory.apply(this, deps.map(function(dep) {\n switch (dep) {\n case "require":\n return req;\n case "exports":\n return module.exports;\n case "module":\n return module;\n default:\n return req(dep)\n }\n }));\n return returnExports && (module.exports = returnExports), module\n }\n }\n }, window.define.amd = {}, window.acequire.tlns = {}, window.initBaseUrls = function(topLevelNamespaces) {\n for (var i in topLevelNamespaces) acequire.tlns[i] = topLevelNamespaces[i]\n }, window.initSender = function() {\n var EventEmitter = window.acequire("ace/lib/event_emitter").EventEmitter,\n oop = window.acequire("ace/lib/oop"),\n Sender = function() {};\n return function() {\n oop.implement(this, EventEmitter), this.callback = function(data, callbackId) {\n postMessage({\n type: "call",\n id: callbackId,\n data: data\n })\n }, this.emit = function(name, data) {\n postMessage({\n type: "event",\n name: name,\n data: data\n })\n }\n }.call(Sender.prototype), new Sender\n };\n var main = window.main = null,\n sender = window.sender = null;\n window.onmessage = function(e) {\n var msg = e.data;\n if (msg.event && sender) sender._signal(msg.event, msg.data);\n else if (msg.command)\n if (main[msg.command]) main[msg.command].apply(main, msg.args);\n else {\n if (!window[msg.command]) throw Error("Unknown command:" + msg.command);\n window[msg.command].apply(window, msg.args)\n }\n else if (msg.init) {\n window.initBaseUrls(msg.tlns), acequire("ace/lib/es5-shim"), sender = window.sender = window.initSender();\n var clazz = acequire(msg.module)[msg.classname];\n main = window.main = new clazz(sender)\n }\n }\n }\n}(this), ace.define("ace/lib/oop", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n exports.inherits = function(ctor, superCtor) {\n ctor.super_ = superCtor, ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n })\n }, exports.mixin = function(obj, mixin) {\n for (var key in mixin) obj[key] = mixin[key];\n return obj\n }, exports.implement = function(proto, mixin) {\n exports.mixin(proto, mixin)\n }\n}), ace.define("ace/range", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n var comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column\n },\n Range = function(startRow, startColumn, endRow, endColumn) {\n this.start = {\n row: startRow,\n column: startColumn\n }, this.end = {\n row: endRow,\n column: endColumn\n }\n };\n (function() {\n this.isEqual = function(range) {\n 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\n }, this.toString = function() {\n return "Range: [" + this.start.row + "/" + this.start.column + "] -> [" + this.end.row + "/" + this.end.column + "]"\n }, this.contains = function(row, column) {\n return 0 == this.compare(row, column)\n }, this.compareRange = function(range) {\n var cmp, end = range.end,\n start = range.start;\n 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)\n }, this.comparePoint = function(p) {\n return this.compare(p.row, p.column)\n }, this.containsRange = function(range) {\n return 0 == this.comparePoint(range.start) && 0 == this.comparePoint(range.end)\n }, this.intersects = function(range) {\n var cmp = this.compareRange(range);\n return -1 == cmp || 0 == cmp || 1 == cmp\n }, this.isEnd = function(row, column) {\n return this.end.row == row && this.end.column == column\n }, this.isStart = function(row, column) {\n return this.start.row == row && this.start.column == column\n }, this.setStart = function(row, column) {\n "object" == typeof row ? (this.start.column = row.column, this.start.row = row.row) : (this.start.row = row, this.start.column = column)\n }, this.setEnd = function(row, column) {\n "object" == typeof row ? (this.end.column = row.column, this.end.row = row.row) : (this.end.row = row, this.end.column = column)\n }, this.inside = function(row, column) {\n return 0 == this.compare(row, column) ? this.isEnd(row, column) || this.isStart(row, column) ? !1 : !0 : !1\n }, this.insideStart = function(row, column) {\n return 0 == this.compare(row, column) ? this.isEnd(row, column) ? !1 : !0 : !1\n }, this.insideEnd = function(row, column) {\n return 0 == this.compare(row, column) ? this.isStart(row, column) ? !1 : !0 : !1\n }, this.compare = function(row, column) {\n 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\n }, this.compareStart = function(row, column) {\n return this.start.row == row && this.start.column == column ? -1 : this.compare(row, column)\n }, this.compareEnd = function(row, column) {\n return this.end.row == row && this.end.column == column ? 1 : this.compare(row, column)\n }, this.compareInside = function(row, column) {\n return this.end.row == row && this.end.column == column ? 1 : this.start.row == row && this.start.column == column ? -1 : this.compare(row, column)\n }, this.clipRows = function(firstRow, lastRow) {\n if (this.end.row > lastRow) var end = {\n row: lastRow + 1,\n column: 0\n };\n else if (firstRow > this.end.row) var end = {\n row: firstRow,\n column: 0\n };\n if (this.start.row > lastRow) var start = {\n row: lastRow + 1,\n column: 0\n };\n else if (firstRow > this.start.row) var start = {\n row: firstRow,\n column: 0\n };\n return Range.fromPoints(start || this.start, end || this.end)\n }, this.extend = function(row, column) {\n var cmp = this.compare(row, column);\n if (0 == cmp) return this;\n if (-1 == cmp) var start = {\n row: row,\n column: column\n };\n else var end = {\n row: row,\n column: column\n };\n return Range.fromPoints(start || this.start, end || this.end)\n }, this.isEmpty = function() {\n return this.start.row === this.end.row && this.start.column === this.end.column\n }, this.isMultiLine = function() {\n return this.start.row !== this.end.row\n }, this.clone = function() {\n return Range.fromPoints(this.start, this.end)\n }, this.collapseRows = function() {\n 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)\n }, this.toScreenRange = function(session) {\n var screenPosStart = session.documentToScreenPosition(this.start),\n screenPosEnd = session.documentToScreenPosition(this.end);\n return new Range(screenPosStart.row, screenPosStart.column, screenPosEnd.row, screenPosEnd.column)\n }, this.moveBy = function(row, column) {\n this.start.row += row, this.start.column += column, this.end.row += row, this.end.column += column\n }\n }).call(Range.prototype), Range.fromPoints = function(start, end) {\n return new Range(start.row, start.column, end.row, end.column)\n }, Range.comparePoints = comparePoints, Range.comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column\n }, exports.Range = Range\n}), ace.define("ace/apply_delta", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n exports.applyDelta = function(docLines, delta) {\n var row = delta.start.row,\n startColumn = delta.start.column,\n line = docLines[row] || "";\n switch (delta.action) {\n case "insert":\n var lines = delta.lines;\n if (1 === lines.length) docLines[row] = line.substring(0, startColumn) + delta.lines[0] + line.substring(startColumn);\n else {\n var args = [row, 1].concat(delta.lines);\n docLines.splice.apply(docLines, args), docLines[row] = line.substring(0, startColumn) + docLines[row], docLines[row + delta.lines.length - 1] += line.substring(startColumn)\n }\n break;\n case "remove":\n var endColumn = delta.end.column,\n endRow = delta.end.row;\n 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))\n }\n }\n}), ace.define("ace/lib/event_emitter", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n var EventEmitter = {},\n stopPropagation = function() {\n this.propagationStopped = !0\n },\n preventDefault = function() {\n this.defaultPrevented = !0\n };\n EventEmitter._emit = EventEmitter._dispatchEvent = function(eventName, e) {\n this._eventRegistry || (this._eventRegistry = {}), this._defaultHandlers || (this._defaultHandlers = {});\n var listeners = this._eventRegistry[eventName] || [],\n defaultHandler = this._defaultHandlers[eventName];\n if (listeners.length || defaultHandler) {\n "object" == typeof e && e || (e = {}), e.type || (e.type = eventName), e.stopPropagation || (e.stopPropagation = stopPropagation), e.preventDefault || (e.preventDefault = preventDefault), listeners = listeners.slice();\n for (var i = 0; listeners.length > i && (listeners[i](e, this), !e.propagationStopped); i++);\n return defaultHandler && !e.defaultPrevented ? defaultHandler(e, this) : void 0\n }\n }, EventEmitter._signal = function(eventName, e) {\n var listeners = (this._eventRegistry || {})[eventName];\n if (listeners) {\n listeners = listeners.slice();\n for (var i = 0; listeners.length > i; i++) listeners[i](e, this)\n }\n }, EventEmitter.once = function(eventName, callback) {\n var _self = this;\n callback && this.addEventListener(eventName, function newCallback() {\n _self.removeEventListener(eventName, newCallback), callback.apply(null, arguments)\n })\n }, EventEmitter.setDefaultHandler = function(eventName, callback) {\n var handlers = this._defaultHandlers;\n if (handlers || (handlers = this._defaultHandlers = {\n _disabled_: {}\n }), handlers[eventName]) {\n var old = handlers[eventName],\n disabled = handlers._disabled_[eventName];\n disabled || (handlers._disabled_[eventName] = disabled = []), disabled.push(old);\n var i = disabled.indexOf(callback); - 1 != i && disabled.splice(i, 1)\n }\n handlers[eventName] = callback\n }, EventEmitter.removeDefaultHandler = function(eventName, callback) {\n var handlers = this._defaultHandlers;\n if (handlers) {\n var disabled = handlers._disabled_[eventName];\n if (handlers[eventName] == callback) handlers[eventName], disabled && this.setDefaultHandler(eventName, disabled.pop());\n else if (disabled) {\n var i = disabled.indexOf(callback); - 1 != i && disabled.splice(i, 1)\n }\n }\n }, EventEmitter.on = EventEmitter.addEventListener = function(eventName, callback, capturing) {\n this._eventRegistry = this._eventRegistry || {};\n var listeners = this._eventRegistry[eventName];\n return listeners || (listeners = this._eventRegistry[eventName] = []), -1 == listeners.indexOf(callback) && listeners[capturing ? "unshift" : "push"](callback), callback\n }, EventEmitter.off = EventEmitter.removeListener = EventEmitter.removeEventListener = function(eventName, callback) {\n this._eventRegistry = this._eventRegistry || {};\n var listeners = this._eventRegistry[eventName];\n if (listeners) {\n var index = listeners.indexOf(callback); - 1 !== index && listeners.splice(index, 1)\n }\n }, EventEmitter.removeAllListeners = function(eventName) {\n this._eventRegistry && (this._eventRegistry[eventName] = [])\n }, exports.EventEmitter = EventEmitter\n}), ace.define("ace/anchor", ["require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter"], function(acequire, exports) {\n "use strict";\n var oop = acequire("./lib/oop"),\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Anchor = exports.Anchor = function(doc, row, column) {\n this.$onChange = this.onChange.bind(this), this.attach(doc), column === void 0 ? this.setPosition(row.row, row.column) : this.setPosition(row, column)\n };\n (function() {\n function $pointsInOrder(point1, point2, equalPointsInOrder) {\n var bColIsAfter = equalPointsInOrder ? point1.column <= point2.column : point1.column < point2.column;\n return point1.row < point2.row || point1.row == point2.row && bColIsAfter\n }\n\n function $getTransformedPoint(delta, point, moveIfEqual) {\n var deltaIsInsert = "insert" == delta.action,\n deltaRowShift = (deltaIsInsert ? 1 : -1) * (delta.end.row - delta.start.row),\n deltaColShift = (deltaIsInsert ? 1 : -1) * (delta.end.column - delta.start.column),\n deltaStart = delta.start,\n deltaEnd = deltaIsInsert ? deltaStart : delta.end;\n return $pointsInOrder(point, deltaStart, moveIfEqual) ? {\n row: point.row,\n column: point.column\n } : $pointsInOrder(deltaEnd, point, !moveIfEqual) ? {\n row: point.row + deltaRowShift,\n column: point.column + (point.row == deltaEnd.row ? deltaColShift : 0)\n } : {\n row: deltaStart.row,\n column: deltaStart.column\n }\n }\n oop.implement(this, EventEmitter), this.getPosition = function() {\n return this.$clipPositionToDocument(this.row, this.column)\n }, this.getDocument = function() {\n return this.document\n }, this.$insertRight = !1, this.onChange = function(delta) {\n if (!(delta.start.row == delta.end.row && delta.start.row != this.row || delta.start.row > this.row)) {\n var point = $getTransformedPoint(delta, {\n row: this.row,\n column: this.column\n }, this.$insertRight);\n this.setPosition(point.row, point.column, !0)\n }\n }, this.setPosition = function(row, column, noClip) {\n var pos;\n if (pos = noClip ? {\n row: row,\n column: column\n } : this.$clipPositionToDocument(row, column), this.row != pos.row || this.column != pos.column) {\n var old = {\n row: this.row,\n column: this.column\n };\n this.row = pos.row, this.column = pos.column, this._signal("change", {\n old: old,\n value: pos\n })\n }\n }, this.detach = function() {\n this.document.removeEventListener("change", this.$onChange)\n }, this.attach = function(doc) {\n this.document = doc || this.document, this.document.on("change", this.$onChange)\n }, this.$clipPositionToDocument = function(row, column) {\n var pos = {};\n 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\n }\n }).call(Anchor.prototype)\n}), ace.define("ace/document", ["require", "exports", "module", "ace/lib/oop", "ace/apply_delta", "ace/lib/event_emitter", "ace/range", "ace/anchor"], function(acequire, exports) {\n "use strict";\n var oop = acequire("./lib/oop"),\n applyDelta = acequire("./apply_delta").applyDelta,\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Range = acequire("./range").Range,\n Anchor = acequire("./anchor").Anchor,\n Document = function(textOrLines) {\n this.$lines = [""], 0 === textOrLines.length ? this.$lines = [""] : Array.isArray(textOrLines) ? this.insertMergedLines({\n row: 0,\n column: 0\n }, textOrLines) : this.insert({\n row: 0,\n column: 0\n }, textOrLines)\n };\n (function() {\n oop.implement(this, EventEmitter), this.setValue = function(text) {\n var len = this.getLength() - 1;\n this.remove(new Range(0, 0, len, this.getLine(len).length)), this.insert({\n row: 0,\n column: 0\n }, text)\n }, this.getValue = function() {\n return this.getAllLines().join(this.getNewLineCharacter())\n }, this.createAnchor = function(row, column) {\n return new Anchor(this, row, column)\n }, this.$split = 0 === "aaa".split(/a/).length ? function(text) {\n return text.replace(/\\r\\n|\\r/g, "\\n").split("\\n")\n } : function(text) {\n return text.split(/\\r\\n|\\r|\\n/)\n }, this.$detectNewLine = function(text) {\n var match = text.match(/^.*?(\\r\\n|\\r|\\n)/m);\n this.$autoNewLine = match ? match[1] : "\\n", this._signal("changeNewLineMode")\n }, this.getNewLineCharacter = function() {\n switch (this.$newLineMode) {\n case "windows":\n return "\\r\\n";\n case "unix":\n return "\\n";\n default:\n return this.$autoNewLine || "\\n"\n }\n }, this.$autoNewLine = "", this.$newLineMode = "auto", this.setNewLineMode = function(newLineMode) {\n this.$newLineMode !== newLineMode && (this.$newLineMode = newLineMode, this._signal("changeNewLineMode"))\n }, this.getNewLineMode = function() {\n return this.$newLineMode\n }, this.isNewLine = function(text) {\n return "\\r\\n" == text || "\\r" == text || "\\n" == text\n }, this.getLine = function(row) {\n return this.$lines[row] || ""\n }, this.getLines = function(firstRow, lastRow) {\n return this.$lines.slice(firstRow, lastRow + 1)\n }, this.getAllLines = function() {\n return this.getLines(0, this.getLength())\n }, this.getLength = function() {\n return this.$lines.length\n }, this.getTextRange = function(range) {\n return this.getLinesForRange(range).join(this.getNewLineCharacter())\n }, this.getLinesForRange = function(range) {\n var lines;\n if (range.start.row === range.end.row) lines = [this.getLine(range.start.row).substring(range.start.column, range.end.column)];\n else {\n lines = this.getLines(range.start.row, range.end.row), lines[0] = (lines[0] || "").substring(range.start.column);\n var l = lines.length - 1;\n range.end.row - range.start.row == l && (lines[l] = lines[l].substring(0, range.end.column))\n }\n return lines\n }, this.insertLines = function(row, lines) {\n return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."), this.insertFullLines(row, lines)\n }, this.removeLines = function(firstRow, lastRow) {\n return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."), this.removeFullLines(firstRow, lastRow)\n }, this.insertNewLine = function(position) {\n return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."), this.insertMergedLines(position, ["", ""])\n }, this.insert = function(position, text) {\n return 1 >= this.getLength() && this.$detectNewLine(text), this.insertMergedLines(position, this.$split(text))\n }, this.insertInLine = function(position, text) {\n var start = this.clippedPos(position.row, position.column),\n end = this.pos(position.row, position.column + text.length);\n return this.applyDelta({\n start: start,\n end: end,\n action: "insert",\n lines: [text]\n }, !0), this.clonePos(end)\n }, this.clippedPos = function(row, column) {\n var length = this.getLength();\n void 0 === row ? row = length : 0 > row ? row = 0 : row >= length && (row = length - 1, column = void 0);\n var line = this.getLine(row);\n return void 0 == column && (column = line.length), column = Math.min(Math.max(column, 0), line.length), {\n row: row,\n column: column\n }\n }, this.clonePos = function(pos) {\n return {\n row: pos.row,\n column: pos.column\n }\n }, this.pos = function(row, column) {\n return {\n row: row,\n column: column\n }\n }, this.$clipPosition = function(position) {\n var length = this.getLength();\n 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\n }, this.insertFullLines = function(row, lines) {\n row = Math.min(Math.max(row, 0), this.getLength());\n var column = 0;\n this.getLength() > row ? (lines = lines.concat([""]), column = 0) : (lines = [""].concat(lines), row--, column = this.$lines[row].length), this.insertMergedLines({\n row: row,\n column: column\n }, lines)\n }, this.insertMergedLines = function(position, lines) {\n var start = this.clippedPos(position.row, position.column),\n end = {\n row: start.row + lines.length - 1,\n column: (1 == lines.length ? start.column : 0) + lines[lines.length - 1].length\n };\n return this.applyDelta({\n start: start,\n end: end,\n action: "insert",\n lines: lines\n }), this.clonePos(end)\n }, this.remove = function(range) {\n var start = this.clippedPos(range.start.row, range.start.column),\n end = this.clippedPos(range.end.row, range.end.column);\n return this.applyDelta({\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({\n start: start,\n end: end\n })\n }), this.clonePos(start)\n }, this.removeInLine = function(row, startColumn, endColumn) {\n var start = this.clippedPos(row, startColumn),\n end = this.clippedPos(row, endColumn);\n return this.applyDelta({\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({\n start: start,\n end: end\n })\n }, !0), this.clonePos(start)\n }, this.removeFullLines = function(firstRow, lastRow) {\n firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1), lastRow = Math.min(Math.max(0, lastRow), this.getLength() - 1);\n var deleteFirstNewLine = lastRow == this.getLength() - 1 && firstRow > 0,\n deleteLastNewLine = this.getLength() - 1 > lastRow,\n startRow = deleteFirstNewLine ? firstRow - 1 : firstRow,\n startCol = deleteFirstNewLine ? this.getLine(startRow).length : 0,\n endRow = deleteLastNewLine ? lastRow + 1 : lastRow,\n endCol = deleteLastNewLine ? 0 : this.getLine(endRow).length,\n range = new Range(startRow, startCol, endRow, endCol),\n deletedLines = this.$lines.slice(firstRow, lastRow + 1);\n return this.applyDelta({\n start: range.start,\n end: range.end,\n action: "remove",\n lines: this.getLinesForRange(range)\n }), deletedLines\n }, this.removeNewLine = function(row) {\n this.getLength() - 1 > row && row >= 0 && this.applyDelta({\n start: this.pos(row, this.getLine(row).length),\n end: this.pos(row + 1, 0),\n action: "remove",\n lines: ["", ""]\n })\n }, this.replace = function(range, text) {\n if (range instanceof Range || (range = Range.fromPoints(range.start, range.end)), 0 === text.length && range.isEmpty()) return range.start;\n if (text == this.getTextRange(range)) return range.end;\n this.remove(range);\n var end;\n return end = text ? this.insert(range.start, text) : range.start\n }, this.applyDeltas = function(deltas) {\n for (var i = 0; deltas.length > i; i++) this.applyDelta(deltas[i])\n }, this.revertDeltas = function(deltas) {\n for (var i = deltas.length - 1; i >= 0; i--) this.revertDelta(deltas[i])\n }, this.applyDelta = function(delta, doNotValidate) {\n var isInsert = "insert" == delta.action;\n (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))\n }, this.$splitAndapplyLargeDelta = function(delta, MAX) {\n for (var lines = delta.lines, l = lines.length, row = delta.start.row, column = delta.start.column, from = 0, to = 0;;) {\n from = to, to += MAX - 1;\n var chunk = lines.slice(from, to);\n if (to > l) {\n delta.lines = chunk, delta.start.row = row + from, delta.start.column = column;\n break\n }\n chunk.push(""), this.applyDelta({\n start: this.pos(row + from, column),\n end: this.pos(row + to, column = 0),\n action: delta.action,\n lines: chunk\n }, !0)\n }\n }, this.revertDelta = function(delta) {\n this.applyDelta({\n start: this.clonePos(delta.start),\n end: this.clonePos(delta.end),\n action: "insert" == delta.action ? "remove" : "insert",\n lines: delta.lines.slice()\n })\n }, this.indexToPosition = function(index, startRow) {\n for (var lines = this.$lines || this.getAllLines(), newlineLength = this.getNewLineCharacter().length, i = startRow || 0, l = lines.length; l > i; i++)\n if (index -= lines[i].length + newlineLength, 0 > index) return {\n row: i,\n column: index + lines[i].length + newlineLength\n };\n return {\n row: l - 1,\n column: lines[l - 1].length\n }\n }, this.positionToIndex = function(pos, startRow) {\n 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;\n return index + pos.column\n }\n }).call(Document.prototype), exports.Document = Document\n}), ace.define("ace/lib/lang", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n exports.last = function(a) {\n return a[a.length - 1]\n }, exports.stringReverse = function(string) {\n return string.split("").reverse().join("")\n }, exports.stringRepeat = function(string, count) {\n for (var result = ""; count > 0;) 1 & count && (result += string), (count >>= 1) && (string += string);\n return result\n };\n var trimBeginRegexp = /^\\s\\s*/,\n trimEndRegexp = /\\s\\s*$/;\n exports.stringTrimLeft = function(string) {\n return string.replace(trimBeginRegexp, "")\n }, exports.stringTrimRight = function(string) {\n return string.replace(trimEndRegexp, "")\n }, exports.copyObject = function(obj) {\n var copy = {};\n for (var key in obj) copy[key] = obj[key];\n return copy\n }, exports.copyArray = function(array) {\n 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];\n return copy\n }, exports.deepCopy = function deepCopy(obj) {\n if ("object" != typeof obj || !obj) return obj;\n var copy;\n if (Array.isArray(obj)) {\n copy = [];\n for (var key = 0; obj.length > key; key++) copy[key] = deepCopy(obj[key]);\n return copy\n }\n if ("[object Object]" !== Object.prototype.toString.call(obj)) return obj;\n copy = {};\n for (var key in obj) copy[key] = deepCopy(obj[key]);\n return copy\n }, exports.arrayToMap = function(arr) {\n for (var map = {}, i = 0; arr.length > i; i++) map[arr[i]] = 1;\n return map\n }, exports.createMap = function(props) {\n var map = Object.create(null);\n for (var i in props) map[i] = props[i];\n return map\n }, exports.arrayRemove = function(array, value) {\n for (var i = 0; array.length >= i; i++) value === array[i] && array.splice(i, 1)\n }, exports.escapeRegExp = function(str) {\n return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g, "\\\\$1")\n }, exports.escapeHTML = function(str) {\n return str.replace(/&/g, "&#38;").replace(/"/g, "&#34;").replace(/\'/g, "&#39;").replace(/</g, "&#60;")\n }, exports.getMatchOffsets = function(string, regExp) {\n var matches = [];\n return string.replace(regExp, function(str) {\n matches.push({\n offset: arguments[arguments.length - 2],\n length: str.length\n })\n }), matches\n }, exports.deferredCall = function(fcn) {\n var timer = null,\n callback = function() {\n timer = null, fcn()\n },\n deferred = function(timeout) {\n return deferred.cancel(), timer = setTimeout(callback, timeout || 0), deferred\n };\n return deferred.schedule = deferred, deferred.call = function() {\n return this.cancel(), fcn(), deferred\n }, deferred.cancel = function() {\n return clearTimeout(timer), timer = null, deferred\n }, deferred.isPending = function() {\n return timer\n }, deferred\n }, exports.delayedCall = function(fcn, defaultTimeout) {\n var timer = null,\n callback = function() {\n timer = null, fcn()\n },\n _self = function(timeout) {\n null == timer && (timer = setTimeout(callback, timeout || defaultTimeout))\n };\n return _self.delay = function(timeout) {\n timer && clearTimeout(timer), timer = setTimeout(callback, timeout || defaultTimeout)\n }, _self.schedule = _self, _self.call = function() {\n this.cancel(), fcn()\n }, _self.cancel = function() {\n timer && clearTimeout(timer), timer = null\n }, _self.isPending = function() {\n return timer\n }, _self\n }\n}), ace.define("ace/worker/mirror", ["require", "exports", "module", "ace/range", "ace/document", "ace/lib/lang"], function(acequire, exports) {\n "use strict";\n acequire("../range").Range;\n var Document = acequire("../document").Document,\n lang = acequire("../lib/lang"),\n Mirror = exports.Mirror = function(sender) {\n this.sender = sender;\n var doc = this.doc = new Document(""),\n deferredUpdate = this.deferredUpdate = lang.delayedCall(this.onUpdate.bind(this)),\n _self = this;\n sender.on("change", function(e) {\n var data = e.data;\n if (data[0].start) doc.applyDeltas(data);\n else\n for (var i = 0; data.length > i; i += 2) {\n if (Array.isArray(data[i + 1])) var d = {\n action: "insert",\n start: data[i],\n lines: data[i + 1]\n };\n else var d = {\n action: "remove",\n start: data[i],\n end: data[i + 1]\n };\n doc.applyDelta(d, !0)\n }\n return _self.$timeout ? deferredUpdate.schedule(_self.$timeout) : (_self.onUpdate(), void 0)\n })\n };\n (function() {\n this.$timeout = 500, this.setTimeout = function(timeout) {\n this.$timeout = timeout\n }, this.setValue = function(value) {\n this.doc.setValue(value), this.deferredUpdate.schedule(this.$timeout)\n }, this.getValue = function(callbackId) {\n this.sender.callback(this.doc.getValue(), callbackId)\n }, this.onUpdate = function() {}, this.isPending = function() {\n return this.deferredUpdate.isPending()\n }\n }).call(Mirror.prototype)\n}), ace.define("ace/mode/json/json_parse", ["require", "exports", "module"], function() {\n "use strict";\n var at, ch, text, value, escapee = {\n \'"\': \'"\',\n "\\\\": "\\\\",\n "/": "/",\n b: "\\b",\n f: "\\f",\n n: "\\n",\n r: "\\r",\n t: "\t"\n },\n error = function(m) {\n throw {\n name: "SyntaxError",\n message: m,\n at: at,\n text: text\n }\n },\n reset = function (newAt) {\n ch = text.charAt(newAt);\n at = newAt + 1;\n },\n next = function(c) {\n return c && c !== ch && error("Expected \'" + c + "\' instead of \'" + ch + "\'"), ch = text.charAt(at), at += 1, ch\n },\n nextUpTo = function (upTo, errorMessage) {\n let currentAt = at,\n i = text.indexOf(upTo, currentAt);\n if (i < 0) {\n error(errorMessage || \'Expected \\\'\' + upTo + \'\\\'\');\n }\n reset(i + upTo.length);\n return text.substring(currentAt, i);\n },\n peek = function (c) {\n return text.substr(at, c.length) === c; // nocommit - double check\n },\n number = function() {\n var number, string = "";\n for ("-" === ch && (string = "-", next("-")); ch >= "0" && "9" >= ch;) string += ch, next();\n if ("." === ch)\n for (string += "."; next() && ch >= "0" && "9" >= ch;) string += ch;\n if ("e" === ch || "E" === ch)\n for (string += ch, next(), ("-" === ch || "+" === ch) && (string += ch, next()); ch >= "0" && "9" >= ch;) string += ch, next();\n return number = +string, isNaN(number) ? (error("Bad number"), void 0) : number\n },\n string = function() {\n var hex, i, uffff, string = "";\n if (\'"\' === ch) {\n if (peek(\'""\')) {\n // literal\n next(\'"\');\n next(\'"\');\n return nextUpTo(\'"""\', \'failed to find closing \\\'"""\\\'\');\n } else {\n for (; next();) {\n if (\'"\' === ch) return next(), string;\n if ("\\\\" === ch)\n if (next(), "u" === ch) {\n for (uffff = 0, i = 0; 4 > i && (hex = parseInt(next(), 16), isFinite(hex)); i += 1) uffff = 16 * uffff + hex;\n string += String.fromCharCode(uffff)\n } else {\n if ("string" != typeof escapee[ch]) break;\n string += escapee[ch]\n }\n else string += ch\n }\n }\n }\n error("Bad string")\n },\n white = function() {\n for (; ch && " " >= ch;) next()\n },\n word = function() {\n switch (ch) {\n case "t":\n return next("t"), next("r"), next("u"), next("e"), !0;\n case "f":\n return next("f"), next("a"), next("l"), next("s"), next("e"), !1;\n case "n":\n return next("n"), next("u"), next("l"), next("l"), null\n }\n error("Unexpected \'" + ch + "\'")\n },\n array = function() {\n var array = [];\n if ("[" === ch) {\n if (next("["), white(), "]" === ch) return next("]"), array;\n for (; ch;) {\n if (array.push(value()), white(), "]" === ch) return next("]"), array;\n next(","), white()\n }\n }\n error("Bad array")\n },\n object = function() {\n var key, object = {};\n if ("{" === ch) {\n if (next("{"), white(), "}" === ch) return next("}"), object;\n for (; ch;) {\n if (key = string(), white(), next(":"), Object.hasOwnProperty.call(object, key) && error(\'Duplicate key "\' + key + \'"\'), object[key] = value(), white(), "}" === ch) return next("}"), object;\n next(","), white()\n }\n }\n error("Bad object")\n };\n return value = function() {\n switch (white(), ch) {\n case "{":\n return object();\n case "[":\n return array();\n case \'"\':\n return string();\n case "-":\n return number();\n default:\n return ch >= "0" && "9" >= ch ? number() : word()\n }\n },\n function(source, reviver) {\n var result;\n return text = source, at = 0, ch = " ", result = value(), white(), ch && error("Syntax error"), "function" == typeof reviver ? function walk(holder, key) {\n var k, v, value = holder[key];\n if (value && "object" == typeof value)\n for (k in value) Object.hasOwnProperty.call(value, k) && (v = walk(value, k), void 0 !== v ? value[k] = v : delete value[k]);\n return reviver.call(holder, key, value)\n }({\n "": result\n }, "") : result\n }\n}), ace.define("ace/mode/json_worker", ["require", "exports", "module", "ace/lib/oop", "ace/worker/mirror", "ace/mode/json/json_parse"], function(acequire, exports) {\n "use strict";\n var oop = acequire("../lib/oop"),\n Mirror = acequire("../worker/mirror").Mirror,\n parse = acequire("./json/json_parse"),\n JsonWorker = exports.JsonWorker = function(sender) {\n Mirror.call(this, sender), this.setTimeout(200)\n };\n oop.inherits(JsonWorker, Mirror),\n function() {\n this.onUpdate = function() {\n var value = this.doc.getValue(),\n errors = [];\n try {\n value && parse(value)\n } catch (e) {\n var pos = this.doc.indexToPosition(e.at - 1);\n errors.push({\n row: pos.row,\n column: pos.column,\n text: e.message,\n type: "error"\n })\n }\n this.sender.emit("annotate", errors)\n }\n }.call(JsonWorker.prototype)\n}), ace.define("ace/lib/es5-shim", ["require", "exports", "module"], function() {\n function Empty() {}\n\n function doesDefinePropertyWork(object) {\n try {\n return Object.defineProperty(object, "sentinel", {}), "sentinel" in object\n } catch (exception) {}\n }\n\n function toInteger(n) {\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\n }\n Function.prototype.bind || (Function.prototype.bind = function(that) {\n var target = this;\n if ("function" != typeof target) throw new TypeError("Function.prototype.bind called on incompatible " + target);\n var args = slice.call(arguments, 1),\n bound = function() {\n if (this instanceof bound) {\n var result = target.apply(this, args.concat(slice.call(arguments)));\n return Object(result) === result ? result : this\n }\n return target.apply(that, args.concat(slice.call(arguments)))\n };\n return target.prototype && (Empty.prototype = target.prototype, bound.prototype = new Empty, Empty.prototype = null), bound\n });\n var defineGetter, defineSetter, lookupGetter, lookupSetter, supportsAccessors, call = Function.prototype.call,\n prototypeOfArray = Array.prototype,\n prototypeOfObject = Object.prototype,\n slice = prototypeOfArray.slice,\n _toString = call.bind(prototypeOfObject.toString),\n owns = call.bind(prototypeOfObject.hasOwnProperty);\n 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)\n if (function() {\n function makeArray(l) {\n var a = Array(l + 2);\n return a[0] = a[1] = 0, a\n }\n var lengthBefore, array = [];\n 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\n }()) {\n var array_splice = Array.prototype.splice;\n Array.prototype.splice = function(start, deleteCount) {\n return arguments.length ? array_splice.apply(this, [void 0 === start ? 0 : start, void 0 === deleteCount ? this.length - start : deleteCount].concat(slice.call(arguments, 2))) : []\n }\n } else Array.prototype.splice = function(pos, removeCount) {\n var length = this.length;\n 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);\n var removed = this.slice(pos, pos + removeCount),\n insert = slice.call(arguments, 2),\n add = insert.length;\n if (pos === length) add && this.push.apply(this, insert);\n else {\n var remove = Math.min(removeCount, length - pos),\n tailOldPos = pos + remove,\n tailNewPos = tailOldPos + add - remove,\n tailCount = length - tailOldPos,\n lengthAfterRemove = length - remove;\n if (tailOldPos > tailNewPos)\n for (var i = 0; tailCount > i; ++i) this[tailNewPos + i] = this[tailOldPos + i];\n else if (tailNewPos > tailOldPos)\n for (i = tailCount; i--;) this[tailNewPos + i] = this[tailOldPos + i];\n if (add && pos === lengthAfterRemove) this.length = lengthAfterRemove, this.push.apply(this, insert);\n else\n for (this.length = lengthAfterRemove + add, i = 0; add > i; ++i) this[pos + i] = insert[i]\n }\n return removed\n };\n Array.isArray || (Array.isArray = function(obj) {\n return "[object Array]" == _toString(obj)\n });\n var boxedString = Object("a"),\n splitString = "a" != boxedString[0] || !(0 in boxedString);\n if (Array.prototype.forEach || (Array.prototype.forEach = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n thisp = arguments[1],\n i = -1,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError;\n for (; length > ++i;) i in self && fun.call(thisp, self[i], i, object)\n }), Array.prototype.map || (Array.prototype.map = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n result = Array(length),\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++) i in self && (result[i] = fun.call(thisp, self[i], i, object));\n return result\n }), Array.prototype.filter || (Array.prototype.filter = function(fun) {\n var value, object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n result = [],\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++) i in self && (value = self[i], fun.call(thisp, value, i, object) && result.push(value));\n return result\n }), Array.prototype.every || (Array.prototype.every = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++)\n if (i in self && !fun.call(thisp, self[i], i, object)) return !1;\n return !0\n }), Array.prototype.some || (Array.prototype.some = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++)\n if (i in self && fun.call(thisp, self[i], i, object)) return !0;\n return !1\n }), Array.prototype.reduce || (Array.prototype.reduce = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n if (!length && 1 == arguments.length) throw new TypeError("reduce of empty array with no initial value");\n var result, i = 0;\n if (arguments.length >= 2) result = arguments[1];\n else\n for (;;) {\n if (i in self) {\n result = self[i++];\n break\n }\n if (++i >= length) throw new TypeError("reduce of empty array with no initial value")\n }\n for (; length > i; i++) i in self && (result = fun.call(void 0, result, self[i], i, object));\n return result\n }), Array.prototype.reduceRight || (Array.prototype.reduceRight = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n if (!length && 1 == arguments.length) throw new TypeError("reduceRight of empty array with no initial value");\n var result, i = length - 1;\n if (arguments.length >= 2) result = arguments[1];\n else\n for (;;) {\n if (i in self) {\n result = self[i--];\n break\n }\n if (0 > --i) throw new TypeError("reduceRight of empty array with no initial value")\n }\n do i in this && (result = fun.call(void 0, result, self[i], i, object)); while (i--);\n return result\n }), Array.prototype.indexOf && -1 == [0, 1].indexOf(1, 2) || (Array.prototype.indexOf = function(sought) {\n var self = splitString && "[object String]" == _toString(this) ? this.split("") : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n var i = 0;\n for (arguments.length > 1 && (i = toInteger(arguments[1])), i = i >= 0 ? i : Math.max(0, length + i); length > i; i++)\n if (i in self && self[i] === sought) return i;\n return -1\n }), Array.prototype.lastIndexOf && -1 == [0, 1].lastIndexOf(0, -3) || (Array.prototype.lastIndexOf = function(sought) {\n var self = splitString && "[object String]" == _toString(this) ? this.split("") : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n var i = length - 1;\n for (arguments.length > 1 && (i = Math.min(i, toInteger(arguments[1]))), i = i >= 0 ? i : length - Math.abs(i); i >= 0; i--)\n if (i in self && sought === self[i]) return i;\n return -1\n }), Object.getPrototypeOf || (Object.getPrototypeOf = function(object) {\n return object.__proto__ || (object.constructor ? object.constructor.prototype : prototypeOfObject)\n }), !Object.getOwnPropertyDescriptor) {\n var ERR_NON_OBJECT = "Object.getOwnPropertyDescriptor called on a non-object: ";\n Object.getOwnPropertyDescriptor = function(object, property) {\n if ("object" != typeof object && "function" != typeof object || null === object) throw new TypeError(ERR_NON_OBJECT + object);\n if (owns(object, property)) {\n var descriptor, getter, setter;\n if (descriptor = {\n enumerable: !0,\n configurable: !0\n }, supportsAccessors) {\n var prototype = object.__proto__;\n object.__proto__ = prototypeOfObject;\n var getter = lookupGetter(object, property),\n setter = lookupSetter(object, property);\n if (object.__proto__ = prototype, getter || setter) return getter && (descriptor.get = getter), setter && (descriptor.set = setter), descriptor\n }\n return descriptor.value = object[property], descriptor\n }\n }\n }\n if (Object.getOwnPropertyNames || (Object.getOwnPropertyNames = function(object) {\n return Object.keys(object)\n }), !Object.create) {\n var createEmpty;\n createEmpty = null === Object.prototype.__proto__ ? function() {\n return {\n __proto__: null\n }\n } : function() {\n var empty = {};\n for (var i in empty) empty[i] = null;\n return empty.constructor = empty.hasOwnProperty = empty.propertyIsEnumerable = empty.isPrototypeOf = empty.toLocaleString = empty.toString = empty.valueOf = empty.__proto__ = null, empty\n }, Object.create = function(prototype, properties) {\n var object;\n if (null === prototype) object = createEmpty();\n else {\n if ("object" != typeof prototype) throw new TypeError("typeof prototype[" + typeof prototype + "] != \'object\'");\n var Type = function() {};\n Type.prototype = prototype, object = new Type, object.__proto__ = prototype\n }\n return void 0 !== properties && Object.defineProperties(object, properties), object\n }\n }\n if (Object.defineProperty) {\n var definePropertyWorksOnObject = doesDefinePropertyWork({}),\n definePropertyWorksOnDom = "undefined" == typeof document || doesDefinePropertyWork(document.createElement("div"));\n if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) var definePropertyFallback = Object.defineProperty\n }\n if (!Object.defineProperty || definePropertyFallback) {\n var ERR_NON_OBJECT_DESCRIPTOR = "Property description must be an object: ",\n ERR_NON_OBJECT_TARGET = "Object.defineProperty called on non-object: ",\n ERR_ACCESSORS_NOT_SUPPORTED = "getters & setters can not be defined on this javascript engine";\n Object.defineProperty = function(object, property, descriptor) {\n if ("object" != typeof object && "function" != typeof object || null === object) throw new TypeError(ERR_NON_OBJECT_TARGET + object);\n if ("object" != typeof descriptor && "function" != typeof descriptor || null === descriptor) throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);\n if (definePropertyFallback) try {\n return definePropertyFallback.call(Object, object, property, descriptor)\n } catch (exception) {}\n if (owns(descriptor, "value"))\n if (supportsAccessors && (lookupGetter(object, property) || lookupSetter(object, property))) {\n var prototype = object.__proto__;\n object.__proto__ = prototypeOfObject, delete object[property], object[property] = descriptor.value, object.__proto__ = prototype\n } else object[property] = descriptor.value;\n else {\n if (!supportsAccessors) throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);\n owns(descriptor, "get") && defineGetter(object, property, descriptor.get), owns(descriptor, "set") && defineSetter(object, property, descriptor.set)\n }\n return object\n }\n }\n Object.defineProperties || (Object.defineProperties = function(object, properties) {\n for (var property in properties) owns(properties, property) && Object.defineProperty(object, property, properties[property]);\n return object\n }), Object.seal || (Object.seal = function(object) {\n return object\n }), Object.freeze || (Object.freeze = function(object) {\n return object\n });\n try {\n Object.freeze(function() {})\n } catch (exception) {\n Object.freeze = function(freezeObject) {\n return function(object) {\n return "function" == typeof object ? object : freezeObject(object)\n }\n }(Object.freeze)\n }\n if (Object.preventExtensions || (Object.preventExtensions = function(object) {\n return object\n }), Object.isSealed || (Object.isSealed = function() {\n return !1\n }), Object.isFrozen || (Object.isFrozen = function() {\n return !1\n }), Object.isExtensible || (Object.isExtensible = function(object) {\n if (Object(object) === object) throw new TypeError;\n for (var name = ""; owns(object, name);) name += "?";\n object[name] = !0;\n var returnValue = owns(object, name);\n return delete object[name], returnValue\n }), !Object.keys) {\n var hasDontEnumBug = !0,\n dontEnums = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"],\n dontEnumsLength = dontEnums.length;\n for (var key in {\n toString: null\n }) hasDontEnumBug = !1;\n Object.keys = function(object) {\n if ("object" != typeof object && "function" != typeof object || null === object) throw new TypeError("Object.keys called on a non-object");\n var keys = [];\n for (var name in object) owns(object, name) && keys.push(name);\n if (hasDontEnumBug)\n for (var i = 0, ii = dontEnumsLength; ii > i; i++) {\n var dontEnum = dontEnums[i];\n owns(object, dontEnum) && keys.push(dontEnum)\n }\n return keys\n }\n }\n Date.now || (Date.now = function() {\n return (new Date).getTime()\n });\n var ws = "\t\\n\v\\f\\r   ᠎              \\u2028\\u2029\ufeff";\n if (!String.prototype.trim || ws.trim()) {\n ws = "[" + ws + "]";\n var trimBeginRegexp = RegExp("^" + ws + ws + "*"),\n trimEndRegexp = RegExp(ws + ws + "*$");\n String.prototype.trim = function() {\n return (this + "").replace(trimBeginRegexp, "").replace(trimEndRegexp, "")\n }\n }\n var toObject = function(o) {\n if (null == o) throw new TypeError("can\'t convert " + o + " to object");\n return Object(o)\n }\n});\n'},Nr=_e().acequire("ace/worker/worker_client").WorkerClient,Rr=_e().acequire("ace/lib/oop"),Cr=_e().acequire("ace/mode/json").Mode,Ar=_e().acequire("ace/tokenizer").Tokenizer,Pr=_e().acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,Lr=_e().acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,qr=_e().acequire("ace/mode/folding/cstyle").FoldMode,Ir=function(){var e=new kr;e.normalizeRules(),this.$tokenizer=new Ar(e.getRules()),this.$outdent=new Pr,this.$behaviour=new Lr,this.foldingRules=new qr};function Dr(e,t,n,r){return"object"==typeof t&&(t=t.source),[{token:e.concat(["whitespace"]),regex:t+"(\\s*)$",next:n},{token:e,regex:t,next:r}]}function Mr(){return[].concat.apply([],arguments)}Rr.inherits(Ir,Cr),Ir.prototype.createWorker=function(e){var t=new Nr(["ace"],Tr,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t};var Fr=_e().acequire("ace/lib/oop"),Ur=_e().acequire("ace/mode/text_highlight_rules").TextHighlightRules;function zr(){var 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",o=(this.createKeywordMapper({keyword:[e,n,t,r].join("|")},"identifier",!0),[e,n,t,r].join("|").split("|")),i=Dr(["url.part"],/([^?\/,\s]+)/,"start");i=i.map((function(e){return e.onMatch=function(t,n,r){return o.includes(null==t?void 0:t.toLowerCase())?"url.select_keyword":e.token},e})),this.$rules={"start-sql":[{token:"whitespace",regex:"\\s+"},{token:"paren.lparen",regex:"{",next:"json-sql",push:!0},{regex:"",next:"start"}],start:Mr([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],Dr(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:Mr(Dr(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),Dr(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),Dr(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),Dr(["whitespace"],/(\s+)/,"start","url")),url:Mr(Dr(["url.part"],/(_sql)/,"start-sql","url-sql"),i,Dr(["url.comma"],/(,)/,"start"),Dr(["url.slash"],/(\/)/,"start"),Dr(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:Mr(Dr(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),Dr(["url.param"],/([^&=]+)/,"start"),Dr(["url.amp"],/(&)/,"start")),"url-sql":Mr(Dr(["url.part"],/([^?\/,\s]+)/,"start-sql"),Dr(["url.comma"],/(,)/,"start-sql"),Dr(["url.slash"],/(\/)/,"start-sql"),Dr(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":Mr(Dr(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),Dr(["url.param"],/([^&=]+)/,"start-sql"),Dr(["url.amp"],/(&)/,"start-sql"))},Sr(this),this.constructor===zr&&this.normalizeRules()}Fr.inherits(zr,Ur);var Br=_e().acequire("ace/lib/oop"),Gr=_e().acequire("ace/mode/text_highlight_rules").TextHighlightRules;function Jr(){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:"def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx"},{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+"}]}}Br.inherits(Jr,Gr);var $r=_e().acequire("ace/lib/oop"),Vr=_e().acequire("ace/mode/text").Mode;function Wr(){}_e().acequire("ace/tokenizer"),$r.inherits(Wr,Vr),function(){this.HighlightRules=Jr,this.getNextLineIndent=function(e,t,n){var 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(Wr.prototype);var Hr=_e().acequire("ace/lib/oop"),Kr=_e().acequire("ace/mode/text").Mode,Qr=_e().acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,Yr=_e().acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,Xr=_e().acequire("ace/mode/folding/cstyle").FoldMode,Zr=_e().acequire("ace/worker/worker_client").WorkerClient,eo=_e().acequire("ace/tokenizer").Tokenizer;function to(){this.$tokenizer=new eo((new zr).getRules()),this.$outdent=new Qr,this.$behaviour=new Yr,this.foldingRules=new Xr,this.createModeDelegates({"script-":Wr})}Hr.inherits(to,Kr),function(){this.getCompletions=function(){return[]},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);return"string_literal"!==e&&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){var t=new Zr(["ace","sense_editor"],mr,"SenseWorker");return t.attachToDocument(e.getDocument()),t.on("error",(function(t){e.setAnnotations([t.data])})),t.on("ok",(function(t){e.setAnnotations(t.data)})),t}}.call(to.prototype);_e().define("ace/autocomplete/text_completer",["require","exports","module"],(function(e,t){t.getCompletions=function(e,t,n,r,o){o(null,[])}})),_e().acequire("ace/ext/language_tools").setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:function(e,t,n,r,o){var i=e.coreEditor,s={lineNumber:n.row+1,column:n.column+1};i.autocompleter(s,r,o)}}]);var no=_e().acequire("ace/range").Range,ro=function(e){var t=e.start,n=e.end;return new no(t.lineNumber-1,t.column-1,n.lineNumber-1,n.column-1)},oo=function(){function e(e,t){var n=this;this.editor=e,this.setActionsBar=function(e,t){void 0===t&&(t="top"),null===e?n.$actions.css("visibility","hidden"):"top"===t?n.$actions.css({bottom:"auto",top:e,visibility:"visible"}):n.$actions.css({top:"auto",bottom:e,visibility:"visible"})},this.hideActionsBar=function(){n.setActionsBar(null)},this.$actions=Ee()(t),this.editor.setShowPrintMargin(!1),this.parser=new or(this),this.autocompleter=hr({coreEditor:this}).getCompletions;var r=this.editor.getSession();r.setMode(new to);var o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=Le(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(),e.coreEditor=this}return e.prototype.setMaxTokenCount=function(e){var t;null===(t=this.editor.getSession().getMode().getTokenizer())||void 0===t||t.$setMaxTokenCount(e)},e.prototype.getParser=function(){return this.parser},e.prototype.getAutocompleter=function(){return this.autocompleter},e.prototype.waitForLatestTokens=function(){var e=this;return new Promise((function(t){var n=e.editor.getSession(),r=function(){n.bgTokenizer&&(n.bgTokenizer.running?setTimeout(r,25):t())};setTimeout(r,0)}))},e.prototype.getLineState=function(e){return this.editor.getSession().getState(e-1)},e.prototype.getValueInRange=function(e){return this.editor.getSession().getTextRange(ro(e))},e.prototype.getTokenProvider=function(){return new Pe(this.editor.getSession())},e.prototype.getValue=function(){return this.editor.getValue()},e.prototype.setValue=function(e,t){return n=this,r=void 0,i=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(n){switch(n.label){case 0:return this.editor.getSession().setValue(e),t?[4,this.forceRetokenize()]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))},new((o=Promise)||(o=Promise))((function(e,t){function s(e){try{l(i.next(e))}catch(e){t(e)}}function a(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}l((i=i.apply(n,r||[])).next())}));var n,r,o,i},e.prototype.getLineValue=function(e){return this.editor.getSession().getLine(e-1)},e.prototype.getCurrentPosition=function(){var e=this.editor.getCursorPosition();return{lineNumber:e.row+1,column:e.column+1}},e.prototype.clearSelection=function(){this.editor.clearSelection()},e.prototype.getTokenAt=function(e){return this.getTokenProvider().getTokenAt(e)},e.prototype.insert=function(e,t){"string"!=typeof e?this.editor.getSession().getDocument().insert({column:e.column-1,row:e.lineNumber-1},t||""):this.editor.insert(e)},e.prototype.moveCursorToPosition=function(e){this.editor.moveCursorToPosition({row:e.lineNumber-1,column:e.column-1})},e.prototype.replace=function(e,t){this.editor.getSession().replace(ro(e),t)},e.prototype.getLines=function(e,t){return this.editor.getSession().getLines(e-1,t-1)},e.prototype.replaceRange=function(e,t){var n=this.editor.getCursorPosition();this.editor.getSession().replace(ro(e),t);var r=Math.max(e.start.lineNumber-1+t.split("\n").length-1,1);n.row=Math.min(n.row,r),this.editor.moveCursorToPosition(n),this.editor.clearSelection()},e.prototype.getSelectionRange=function(){var e=this.editor.getSelectionRange();return{start:{lineNumber:e.start.row+1,column:e.start.column+1},end:{lineNumber:e.end.row+1,column:e.end.column+1}}},e.prototype.getLineCount=function(){return this.editor.getSession().getLength()},e.prototype.addMarker=function(e){return this.editor.getSession().addMarker(ro(e),"ace_snippet-marker","fullLine",!1)},e.prototype.removeMarker=function(e){this.editor.getSession().removeMarker(e)},e.prototype.getWrapLimit=function(){return this.editor.getSession().getWrapLimit()},e.prototype.on=function(e,t){"changeCursor"===e?this.editor.getSession().selection.on(e,t):"changeSelection"===e?this.editor.on(e,t):this.editor.getSession().on(e,t)},e.prototype.off=function(e,t){"changeSelection"===e&&this.editor.off(e,t)},e.prototype.isCompleterActive=function(){return Boolean(this.editor.completer&&this.editor.completer.activated)},e.prototype.forceRetokenize=function(){var e=this.editor.getSession();return new Promise((function(t){setTimeout((function(){var n;for(n=0;n<e.getLength();n++)e.getTokens(n);t()}))}))},e.prototype.DO_NOT_USE_onPaste=function(e){if(e&&function(e){if(!e)return!1;for(var t=0,n=e.split("\n");t<n.length;t++)if(n[t].match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/))return!0;return!1}(e)){var t=function(e){var t,n="NONE",r=[],o=[],i="",s=e.trim().split("\n"),a=/^\s*$/,l=/^\s*(?:#|\/{2,})(.*)\n?$/,c=/^([^']*)'/,u=/^((?:[^\\"]|\\.)*)"/,p=/^((?:[^\\"']|\\.)+)/,d=/^\s*curl\s+/,f=/-X ?(GET|HEAD|POST|PUT|DELETE)/,h=/[\s"']https?:\/\//,m=/[\s"']https?:\/\/[^\/ ]+\/+([^\s"']+)/,_=/[\s"'][^\/ ]+\/+([^\s"']+)/,g=/^.+\s(--data|-d)\s*/,y=/^\s*(GET|HEAD|POST|PUT|DELETE)\s+\/?(.+)/;function w(){var e=o.pop().replace(/\\([\\"'])/g,"$1");o.push(e)}function v(){"'"===i.substr(0,1)?(i=i.substr(1),n="SINGLE_QUOTE"):'"'===i.substr(0,1)?(i=i.substr(1),n="DOUBLE_QUOTE"):n="UNQUOTED"}function b(){o.length>0&&(r.push(o.join("")),o=[]),n="LF",r.push("\n")}function x(e){var t=i.match(e);t?(o.push(t[1]),i=i.substr(t[0].length),v()):(o.push(i),i="")}function O(){var e,t="GET",o="";(e=i.match(f))&&(t=e[1]);var s=h.test(i)?m:_;(e=i.match(s))&&(o=e[1]),r.push(t+" /"+o+"\n"),(e=i.match(g))?(i=i.substr(e[0].length),v(),a.test(i)&&(i="")):(n="NONE",i="",r.push(""))}for(s.length>0&&/^\s*#!/.test(s[0])&&s.shift();i.length>0||0!==s.length&&(i=s.shift().replace(/[\r\n]+/g,"\n")+"\n",1);)"SINGLE_QUOTE"===n?x(c):"DOUBLE_QUOTE"===n?(x(u),w()):"UNQUOTED"===n?(x(p),o.length&&w(),"UNQUOTED"===n&&(b(),i="")):"BODY"===n?l.test(i)||a.test(i)?b():(o.push(i),i=""):a.test(i)?("LF"!==n&&(r.push("\n"),n="LF"),i=""):(t=i.match(l))?(r.push("#"+t[1]+"\n"),n="NONE",i=""):d.test(i)?O():(t=i.match(y))?(r.push(t[1]+" /"+t[2]+"\n"),i="",n="BODY"):(r.push("### "+i),i="");return b(),r.join("").trim()}(e);this.editor.insert(t)}else this._aceOnPaste.call(this.editor,e)},e.prototype.execCommand=function(e){this.editor.execCommand(e)},e.prototype.getContainer=function(){return this.editor.container},e.prototype.setStyles=function(e){this.editor.getSession().setUseWrapMode(e.wrapLines),this.editor.container.style.fontSize=e.fontSize},e.prototype.registerKeyboardShortcut=function(e){this.editor.commands.addCommand({exec:e.fn,name:e.name,bindKey:e.keys})},e.prototype.legacyUpdateUI=function(e){var t=this;if(this.$actions&&e){var n=Ee()(this.editor.container).offset().top,r=e.start.lineNumber,o=e.start.column,i=this.getLineValue(r),s=this.getWrapLimit()-5,a=i.length>s,l=n-(window.pageYOffset||0),c=function(e){return t.editor.renderer.textToScreenCoordinates(e-1,o).pageY-l},u=c(r);if(u>=0){if(u>this.editor.container.getBoundingClientRect().bottom-l)return void this.setActionsBar(0,"bottom");var p=0;if(a){var d=Ee()(this.editor.container.querySelector("textArea")),f=this.getLineValue(r).length<s;if(!d||!f)return r>1?void this.setActionsBar(c(r-1)):void this.setActionsBar(c(r+1));p+=this.getLineValue(r).length*d.height()}return void this.setActionsBar(u+p)}if(this.editor.renderer.textToScreenCoordinates(e.end.lineNumber,e.end.column).pageY-n>=0)return void this.setActionsBar(0)}},e.prototype.registerAutocompleter=function(e){langTools.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:function(t,n,r,o,i){var s={lineNumber:r.row+1,column:r.column+1};e(s,o,i)}}])},e.prototype.destroy=function(){this.editor.destroy()},e}(),io=_e().acequire("ace/lib/oop"),so=_e().acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function ao(){this.$rules={},Sr(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===ao&&this.normalizeRules()}io.inherits(ao,so);var lo=_e().acequire("ace/lib/oop"),co=_e().acequire("ace/mode/json").Mode,uo=_e().acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,po=_e().acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,fo=_e().acequire("ace/mode/folding/cstyle").FoldMode;_e().acequire("ace/worker/worker_client");var ho=_e().acequire("ace/tokenizer").Tokenizer;function mo(){this.$tokenizer=new ho((new ao).getRules()),this.$outdent=new uo,this.$behaviour=new po,this.foldingRules=new fo}lo.inherits(mo,co),function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}.call(mo.prototype);const _o=require("antd/lib/notification");var go=o.n(_o);require("antd/lib/notification/style/index.js");const yo=require("antd/lib/modal");var wo=o.n(yo);require("antd/lib/modal/style/index.js");const vo=require("antd/lib/form");var bo=o.n(vo);require("antd/lib/form/style/index.js");const xo=require("antd/lib/tag");var Oo=o.n(xo);require("antd/lib/tag/style/index.js");const jo=require("antd/lib/message");var Eo=o.n(jo);require("antd/lib/message/style/index.js");var ko=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},So=function(n){var r=n.value,o=void 0===r?[]:r,i=n.onChange,l=(0,s.useIntl)(),c=(0,t.useState)(!1),u=c[0],p=c[1],d=(0,t.useState)(""),f=d[0],h=d[1],m=(0,t.useCallback)((function(e){var t=e.target;if(0==t.value.length)return Eo().warning(l.formatMessage({id:"command.message.invalid.tag"}));i&&i(ko(ko([],o||[],!0),[t.value],!1)),p(!1),h("")}),[o]),_=(0,t.useCallback)((function(e){var t=ko([],o,!0);t.splice(e,1),i&&i(t)}),[o]);return(0,e.jsxs)("div",{children:[o.map((function(t,n){return(0,e.jsx)(Oo(),{closable:!0,style:{padding:"0 5px",fontSize:14,margin:"5px 10px 5px 0"},onClose:function(){return _(n)},children:t},n)})),u&&(0,e.jsx)(v(),{value:f,onChange:function(e){h(e.target.value)},style:{width:100},onBlur:m,onPressEnter:m}),!u&&(0,e.jsxs)(Oo(),{onClick:function(){p(!0)},style:{padding:"0 5px",fontSize:14},children:[(0,e.jsx)(a.PlusOutlined,{})," ",l.formatMessage({id:"command.btn.newtag"})]})]})};const To=function(t){var n=(0,s.useIntl)(),r=bo().useForm()[0];return(0,e.jsx)(wo(),{title:n.formatMessage({id:"command.manage.save.title"}),open:!0,onCancel:t.onClose,onOk:function(){return e=void 0,n=void 0,i=function(){var e;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.validateFields()];case 1:return e=n.sent(),t.onConfirm(e),[3,3];case 2:return n.sent(),[3,3];case 3:return[2]}}))},new((o=void 0)||(o=Promise))((function(t,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}l((i=i.apply(e,n||[])).next())}));var e,n,o,i},zIndex:1003,cancelText:n.formatMessage({id:"form.button.cancel"}),okText:n.formatMessage({id:"form.button.save"}),children:(0,e.jsxs)(bo(),{form:r,layout:"vertical",children:[(0,e.jsx)(bo().Item,{label:n.formatMessage({id:"command.table.field.name"}),name:"title",rules:[{required:!0,message:"请输入标题"}],children:(0,e.jsx)(v(),{})}),(0,e.jsx)(bo().Item,{label:n.formatMessage({id:"command.table.field.tag"}),name:"tag",children:(0,e.jsx)(So,{})})]})})};o(1833);var No=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ro=function(){return Ro=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ro.apply(this,arguments)},Co=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},Ao=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},Po=function(t){function n(e){var n=t.call(this,e)||this;return n.mouseEnter=function(){n.state.isPopoverOpen||n.props.getCurl().then((function(e){n.setState({curlCode:e})}))},n.onButtonClick=function(){n.setState((function(e){return{isPopoverOpen:!e.isPopoverOpen}}))},n.closePopover=function(){n.setState({isPopoverOpen:!1})},n.openDocs=function(){return Co(n,void 0,void 0,(function(){var e;return Ao(this,(function(t){switch(t.label){case 0:return this.closePopover(),[4,this.props.getDocumentation()];case 1:return(e=t.sent())?(window.open(e,"_blank"),[2]):[2]}}))}))},n.autoIndent=function(e){n.closePopover(),n.props.autoIndent(e)},n.saveAsCommonCommand=function(){n.setState({isPopoverOpen:!1,modalVisible:!0})},n.handleClose=function(){n.setState({modalVisible:!1})},n.handleConfirm=function(e){return Co(n,void 0,void 0,(function(){var t,n,r,o;return Ao(this,(function(i){switch(i.label){case 0:return[4,this.props.saveAsCommonCommand()];case 1:return t=i.sent(),[4,ke(Ro(Ro({},e),{requests:t}))];case 2:return[4,null===(r=i.sent())||void 0===r?void 0:r.json()];case 3:return(n=i.sent()).error?go().error({message:(null===(o=n.error)||void 0===o?void 0:o.reason)||n.error}):(this.handleClose(),go().success({message:this.props.intl.formatMessage({id:"app.message.save.success"})}),s=n,it.push(s)),[2]}var s}))}))},n.state={curlCode:"",isPopoverOpen:!1,modalVisible:!1},n}return No(n,t),n.prototype.copyAsCurl=function(){return Co(this,void 0,void 0,(function(){return Ao(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.copyText(this.state.curlCode)];case 1:return e.sent(),go().open({message:"Request copied as cURL",placement:"bottomRight"}),[3,3];case 2:return e.sent(),go().error({message:"Could not copy request as cURL",placement:"bottomRight"}),[3,3];case 3:return[2]}}))}))},n.prototype.copyText=function(e){return Co(this,void 0,void 0,(function(){var t;return Ao(this,(function(n){switch(n.label){case 0:return(null===(t=window.navigator)||void 0===t?void 0:t.clipboard)?[4,window.navigator.clipboard.writeText(e)]:[3,2];case 1:return n.sent(),[2];case 2:throw new Error("Could not copy to clipboard!")}}))}))},n.prototype.render=function(){var t,n,r=this;return(0,e.jsxs)("div",{onMouseEnter:this.mouseEnter,children:[(0,e.jsx)(d(),{open:this.state.isPopoverOpen,placement:"bottomLeft",content:(0,e.jsxs)("div",{className:"console-menu-popover",children:[(null===(t=window.navigator)||void 0===t?void 0:t.clipboard)?(0,e.jsx)("div",{children:(0,e.jsx)(u(),{id:"ConCopyAsCurl",className:"menu-btn",disabled:!(null===(n=window.navigator)||void 0===n?void 0:n.clipboard),onClick:function(){r.closePopover(),r.copyAsCurl()},type:"text",children:this.props.intl.formatMessage({id:"console.menu.copy_as_curl"})},"Copy as cURL")}):null,(0,e.jsx)("div",{children:(0,e.jsx)(u(),{className:"menu-btn",type:"text",onClick:this.autoIndent,children:this.props.intl.formatMessage({id:"console.menu.auto_indent"})},"Auto indent")}),this.props.saveAsCommonCommand&&(0,e.jsx)("div",{children:(0,e.jsx)(u(),{className:"menu-btn",type:"text",onClick:this.saveAsCommonCommand,children:this.props.intl.formatMessage({id:"console.menu.save_as_command"})},"Save as common command")})]}),children:(0,e.jsx)("button",{className:"euiButtonIcon--primary",style:{color:"#0061a6",border:"none"},onClick:this.onButtonClick,children:(0,e.jsx)(a.ToolOutlined,{})})}),this.state.modalVisible&&(0,e.jsx)(To,{onClose:this.handleClose,onConfirm:this.handleConfirm})]})},n}(t.Component);const Lo=(0,s.injectIntl)(Po);var qo=function(){return qo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qo.apply(this,arguments)};var Io=function(e,n){return function(){var r=(0,t.useContext)(e);if(!r)throw new Error("".concat(n," should be used inside of ").concat(n,"Provider!"));return r}};const Do=require("immer"),Mo=require("fp-ts/lib/function");var Fo=function(){return Fo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fo.apply(this,arguments)},Uo={data:null,type:"unknown"},zo=(0,Do.produce)({requestInFlight:!1,lastResult:Uo},Mo.identity),Bo=function(e,t){return(0,Do.produce)(e,(function(e){return"sendRequest"===t.type?(e.requestInFlight=!0,void(e.lastResult=Uo)):"requestSuccess"===t.type?(e.requestInFlight=!1,void(e.lastResult=t.payload)):"requestFail"===t.type?(e.requestInFlight=!1,void(e.lastResult=Fo(Fo({},Uo),{error:t.payload}))):void 0}))},Go=(0,t.createContext)(zo),Jo=(0,t.createContext)((function(){}));function $o(n){var r=n.children,o=(0,t.useReducer)(Bo,zo),i=o[0],s=o[1];return(0,e.jsx)(Go.Provider,{value:i,children:(0,e.jsx)(Jo.Provider,{value:s,children:r})})}var Vo=Io(Go,"RequestReadContext"),Wo=Io(Jo,"RequestActionContext"),Ho=(0,t.createContext)(null);function Ko(t){var n=t.children,r=t.value;return(0,e.jsx)(Ho.Provider,{value:r,children:n})}var Qo=function(){var e=(0,t.useContext)(Ho);if(null==e)throw new Error("useServicesContext must be used inside the ServicesContextProvider.");return e},Yo=(0,Do.produce)({ready:!1,currentTextObject:null,sensorEditor:null},Mo.identity),Xo=function(e,t){return(0,Do.produce)(e,(function(e){if("setInputEditor"!==t.type){if("setCurrentTextObject"!==t.type)return e;e.currentTextObject=t.payload}else t.payload&&(e.ready=!0,e.sensorEditor=t.payload)}))},Zo=function(){return Zo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Zo.apply(this,arguments)},ei=(0,t.createContext)(Yo),ti=(0,t.createContext)((function(){}));function ni(n){var r=n.children,o=(0,t.useReducer)(Xo,Yo,(function(e){return Zo({},e)})),i=o[0],s=o[1];return(0,e.jsx)(ei.Provider,{value:i,children:(0,e.jsx)(ti.Provider,{value:s,children:r})})}var ri=Io(ei,"EditorReadContext"),oi=Io(ti,"EditorActionContext"),ii=function(e){var n=Wo(),r=Qo(),o=r.services.history,i=r.clusterID,s=ri().sensorEditor;return(0,t.useCallback)((function(){return t=void 0,r=void 0,a=function(){var t,r,o,a,l,c,u,p,d,f,h,m,_,g,y,w,v,b,x,O,j,E,k,S,T,N,R;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(C){switch(C.label){case 0:t="",C.label=1;case 1:return C.trys.push([1,13,,14]),s?[4,s.getRequestsInRange()]:[2];case 2:if(!(r=C.sent()).length)return console.log("No request selected. Select a request by placing the cursor inside it."),[2];o=0,C.label=3;case 3:if(!(o<r.length))return[3,11];switch(a=r[o],l=a.url,c=a.method,u=a.data,null==c?void 0:c.toUpperCase()){case"LOAD":return[3,4];case"CONFIG":return[3,7];case"FROM":return[3,8];case"SELECT":return[3,9]}return[3,10];case 4:return t="LOAD",p=u[0]?u[0].slice(4).trim():l,A=p,P=it.filter((function(e){return e._source.title==A})),d=P&&P[0],f=s.getCoreEditor().getCurrentPosition().lineNumber,[4,s.getRequestRange(f)];case 5:return h=C.sent(),m=function(e){return e._source.requests.map((function(e){var t=e.method,n=e.path,r=e.body;return["LOAD","FROM","SELECT"].includes((t||"").toUpperCase())?r:"".concat(t," ").concat(n,"\n").concat(r)})).join("\n")}(d),[4,s.getCoreEditor().replaceRange(h,m)];case 6:return C.sent(),[3,10];case 7:return _=l,g=0,u&&u.length>0&&(y=u[0],(w=y.split(" ")).length>=3&&(g=parseInt(w[2]),isNaN(g)))?(n({type:"requestSuccess",payload:{data:{success:!1,error:"wrong config value: "+w[2]}}}),[3,10]):("MaxTokenCount"==_&&localStorage.setItem("editor:"+_,g+""),n({type:"requestSuccess",payload:{data:{success:!0}}}),[3,10]);case 8:if(r[o].url="_sql",r[o].method="POST",r[o].rawRequest=r[o].data[0],v=r[o].data[0]||"",-1==(b=v.search(/\s+(select)\s+/i)))throw(x=Error("invalid FROM request")).name="FRONT_ERROR",x;return O=v.slice(0,b),v=v.slice(b),(j=v.search(/\s+(order|where|limit)\s+/i))>-1?(E=v.slice(0,j),v=E+" "+O+v.slice(j)):v=v+" "+O,k={query:v.trim()},r[o].data[0]=JSON.stringify(k),[3,10];case 9:return r[o].url="_sql",r[o].method="POST",r[o].rawRequest=r[o].data[0],S={query:r[o].data[0]},r[o].data[0]=JSON.stringify(S),[3,10];case 10:return o++,[3,3];case 11:return n({type:"sendRequest",payload:void 0}),[4,e({requests:r,clusterID:i})];case 12:return T=C.sent(),n({type:"requestSuccess",payload:{data:T}}),[3,14];case 13:return N=C.sent(),"LOAD"===t?[2]:(N?(R={data:[N]},"FRONT_ERROR"===N.name&&(R={data:[{response:{value:(null==N?void 0:N.message)||N,contentType:"plain/text"}}]}),n({type:"requestSuccess",payload:R})):n({type:"requestFail",payload:void 0}),[3,14]);case 14:return[2]}var A,P}))},new((o=void 0)||(o=Promise))((function(e,n){function i(e){try{l(a.next(e))}catch(e){n(e)}}function s(e){try{l(a.throw(e))}catch(e){n(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,s)}l((a=a.apply(t,r||[])).next())}));var t,r,o,a}),[n,o,i,s])},si=function(){return si=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},si.apply(this,arguments)};function ai(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")}const li=require("events"),ci=require("resize-observer-polyfill");var ui=o.n(ci),pi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function di(e){return[e.clientWidth,e.clientHeight]}var fi=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.destroyed=!1,r.expectedSize=null,r.el=t,r.observer=new(ui())((function(){if(r.expectedSize){var e=(0,f.isEqual)(di(t),r.expectedSize);if(r.expectedSize=null,e)return}r.emit("resize")})),n.disabled||r.enable(),r}return pi(t,e),t.prototype.enable=function(){this.destroyed||(this.expectedSize=di(this.el),this.observer.observe(this.el))},t.prototype.modifySizeWithoutTriggeringResize=function(e){try{e()}finally{this.el&&(this.expectedSize=di(this.el))}},t.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.observer.disconnect(),this.observer=null,this.expectedSize=null,this.el=null,this.removeAllListeners())},t}(li.EventEmitter);function hi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=new fi(e);return r.on("resize",(function(){return t.forEach((function(e){e.getCoreEditor?e.getCoreEditor().resize():e.resize(),e.updateActionsBar&&e.updateActionsBar()}))})),function(){return r.destroy()}}require("antd/dist/reset.css"),o(3556);var mi=function(){return mi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mi.apply(this,arguments)},_i={position:"absolute",top:"0",left:"0",bottom:"0",right:"0"},gi=function(n){var r,o,i,l=n.saveCurrentTextObjectRef,c=n.sendRequestToES,u=(0,s.useIntl)(),p=ii(c),d=(r=(0,t.useRef)(Promise.resolve()),o=Qo().services.objectStorageClient,i=ri().currentTextObject,(0,t.useCallback)((0,f.throttle)((function(e){var t=r.current;i&&t.finally((function(){return o.text.update(si(si({},i),{text:e,updatedAt:Date.now()}))}))}),500,{trailing:!0}),[o,i]));return(0,t.useEffect)((function(){l.current=d}),[l]),(0,e.jsx)(fe(),{title:u.formatMessage({id:"console.SendRequestButton.ToolTip"}),children:(0,e.jsx)("button",{"data-test-subj":"sendRequestButton","aria-label":"Click to send request",className:"conApp__editorActionButton conApp__editorActionButton--success",onClick:p,children:(0,e.jsx)(a.PlayCircleOutlined,{})})})};const yi=function(n){var r,o,i=n.selectedCluster,s=n.initialText,a=n.saveEditorContent,l=n.paneKey,c=n.height,u=void 0===c?"100%":c,p=(n.isActive,n.sendRequestToES),d=n.saveAsCommonCommand,f=i.id,h=i.endpoint,m=(0,t.useRef)(null),_=(0,t.useRef)(null),g=(0,t.useRef)(null),y=(o=oi(),(0,t.useCallback)((function(e){o({type:"setInputEditor",payload:e})}),[o])),w=(0,t.useRef)(null),v=(0,t.useRef)((function(){})),b=(0,t.useRef)((function(e){}));return v.current=ii(p),Qo().services.settings,(0,t.useEffect)((function(){var e=_e().edit(m.current);w.current=e;var t=new oo(e,_.current);e.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:function(){v.current(),e.execCommand("iSearch")}});var n=new Ce(t);function r(){try{var e=n.getCoreEditor().getValue();a(e)}catch(e){console.error(e)}}g.current=n,y(n),n.paneKey=l,n.update(s||'GET _search\n{\n "query": {\n "match_all": {}\n }\n}'),ai(n.getCoreEditor(),{fontSize:12,wrapMode:!0});var o,i=hi(m.current,n);return n.getCoreEditor().on("change",(function(){o&&clearTimeout(o),o=window.setTimeout(r,500)})),function(){i(),g.current&&g.current.getCoreEditor().destroy()}}),[]),(0,t.useEffect)((function(){f&&w.current&&(w.current.clusterID=f)&&(w.current.clusterInfo=i)}),[f]),(0,e.jsx)("div",{style:mi(mi({},_i),{height:u}),"data-test-subj":"console-application",className:"conApp",children:(0,e.jsxs)("div",{className:"conApp__editor",children:[(0,e.jsx)("ul",{className:"conApp__autoComplete",id:"autocomplete"}),(0,e.jsxs)("div",{className:"conApp__editorActions",id:"ConAppEditorActions",ref:_,children:[(0,e.jsx)(gi,{saveCurrentTextObjectRef:b,sendRequestToES:p}),(0,e.jsx)(Lo,{getCurl:function(){return g.current.getRequestsAsCURL(h)},getDocumentation:function(){return e=g.current,t="",e.getRequestsInRange().then((function(n){if(!n||0===n.length)return null;var r=n[0].range.end;r.column=r.column-1;var o=function(e,t,n){var r=e.getLineValue(t.lineNumber),o=qo({},pr(e,{column:r.length+1,lineNumber:t.lineNumber},n,!0)),i=Zn(o.method);return Ln(o.urlTokenPath,o,e,!0,i),o.endpoint}(e.getCoreEditor(),r,e.parser);return o&&o.documentation&&-1!==o.documentation.indexOf("http")?o.documentation.replace("/master/","/".concat(t,"/")).replace("/current/","/".concat(t,"/")):null}));var e,t},autoIndent:function(e){!function(e,t){var n,r,o,i;n=this,r=void 0,i=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(n){switch(n.label){case 0:return t.preventDefault(),[4,e.autoIndent()];case 1:return n.sent(),e.getCoreEditor().getContainer().focus(),[2]}}))},new((o=void 0)||(o=Promise))((function(e,t){function s(e){try{l(i.next(e))}catch(e){t(e)}}function a(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}l((i=i.apply(n,r||[])).next())}))}(g.current,e)},saveAsCommonCommand:d})]}),(0,e.jsx)("div",{ref:m,id:"Editor_".concat(null===(r=g.current)||void 0===r?void 0:r.paneKey),className:"conApp__editorContent","data-test-subj":"request-editor",onClick:function(){var e;null===(e=w.current)||void 0===e||e.focus()}})]})})};require("brace/mode/yaml");var wi=function(e){return Boolean(e&&e.indexOf("application/json")>=0)};const vi=function(n){var r=n.clusterID,o=(0,t.useRef)(null),i=(0,t.useRef)(null),s=Vo().lastResult,a=s.data,l=s.error;return(0,t.useEffect)((function(){var e;null===(e=i.current)||void 0===e||e.setValue("")}),[r]),(0,t.useEffect)((function(){var e,t,n,r;i.current=(e=o.current,n=_e().acequire("ace/ace").edit(e),r=new mo,n.$blockScrolling=1/0,n.resize=Le(n),n.update=function(e,t,o){"function"==typeof t&&(o=t,t=void 0);var i=n.getSession();i.setMode(e?t||r:"ace/mode/text"),i.setValue(e),"function"==typeof o&&setTimeout(o)},n.append=function(e,t,r){"function"==typeof t&&(r=t,t=!0),h().isUndefined(t)&&(t=!0);var o=n.getSession(),i=o.getLength();t&&n.moveCursorTo(Math.max(0,i-1),0),o.insert({row:i,column:0},"\n"+e),n.moveCursorTo(i+1,0),"function"==typeof r&&setTimeout(r)},(t=n.getSession()).setMode("ace/mode/text"),t.setFoldStyle("markbeginend"),t.setTabSize(2),t.setUseWrapMode(!0),n.setShowPrintMargin(!1),n.setReadOnly(!0),n);var s=o.current.querySelector("textarea");s.setAttribute("id","ConAppOutputTextarea"),s.setAttribute("readonly","true"),ai(i.current,{fontSize:12,wrapMode:!0});var a=hi(o.current,i.current);return function(){a(),i.current.destroy()}}),[]),(0,t.useEffect)((function(){var e,t,n=i.current;if(a){if(!a.length)return void n.update(JSON.stringify(a,null,2),"ace/mode/json");n.update(a.map((function(e){var t=e.response,n=t.value,r=t.contentType;if(wi(r)){var o="",i=n;if(""==i)return"";try{var s="";if("#"==i[0]){var a=i.indexOf("\n");o=i.slice(0,a),i=i.slice(a),s=o+"\n"+JSON.stringify(JSON.parse(i),null,2)}else s=JSON.stringify(JSON.parse(i),null,2);return s}catch(e){console.error(e)}}return n})).join("\n"))}else if(l){var r=(t=null===(e=l.response)||void 0===e?void 0:e.contentType)?wi(t)?"ace/mode/json":t.indexOf("application/yaml")>=0?"ace/mode/yaml":"ace/mode/text":"ace/mode/text";if("ace/mode/json"==r)return void n.update(JSON.stringify(JSON.parse(l.response.value),null,2),r);n.update(l.response.value,r)}else n.update("")}),[a,l]),(0,e.jsx)("div",{ref:o,className:"conApp__outputContent","data-test-subj":"response-editor",children:(0,e.jsx)("div",{id:"ConAppOutput"})})};var bi=function(){function e(){this.panels=[]}return e.prototype.registerPanel=function(e){this.panels.push(e)},e.prototype.getPanels=function(){return this.panels},e}(),xi=(0,t.createContext)({registry:new bi});function Oi(t){var n=t.children,r=t.registry;return(0,e.jsx)(xi.Provider,{value:{registry:r},children:n})}var ji=function(){return ji=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ji.apply(this,arguments)};function Ei(n){var r=n.children,o=n.className,i=n.initialWidth,s=void 0===i?100:i,a=n.style,l=void 0===a?{}:a,c=(0,t.useState)("".concat(s,"%")),u=c[0],p=c[1],d=function(){var e=(0,t.useContext)(xi);if(void 0===e)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e}().registry,f=(0,t.useRef)(null);return(0,t.useEffect)((function(){d.registerPanel({width:s,setWidth:function(e){p(e+"%"),this.width=e},getWidth:function(){return f.current.getBoundingClientRect().width}})}),[s,d]),(0,e.jsx)("div",{className:o,ref:f,style:ji(ji({},l),{width:u,display:"flex"}),children:r})}var ki=function(){return ki=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ki.apply(this,arguments)};function Si(t){return(0,e.jsx)("button",ki({},t,{children:(0,e.jsx)(a.PauseOutlined,{})}))}var Ti=function(){return Ti=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ti.apply(this,arguments)},Ni="ArrowLeft",Ri="ArrowRight",Ci={isDragging:!1,currentResizerPos:-1},Ai=function(e,t){return e/t*100};const Pi=function(n){var r=n.children,o=n.className,i=n.onPanelWidthChange,s=n.resizerClassName,a=t.Children.toArray(r),l=a[0],c=a[1],u=(0,t.useRef)(new bi),p=(0,t.useRef)(null),d=(0,t.useState)(Ci),f=d[0],h=d[1],m=(0,t.useCallback)((function(e){h(Ti(Ti({},f),{isDragging:!0,currentResizerPos:e.clientX}))}),[f]),_=(0,t.useCallback)((function(e){var t=e.key;if(t===Ni||t===Ri){e.preventDefault();var n=u.current.getPanels(),r=n[0],o=n[1],s=r.width-(t===Ni?1:-1),a=o.width-(t===Ri?1:-1);r.setWidth(s),o.setWidth(a),i&&i([s,a])}}),[i]);(0,t.useEffect)((function(){}),[a.length]);var g=[l,(0,e.jsx)(Si,{className:s,onKeyDown:_,onMouseDown:m},"resizer"),c];return(0,e.jsx)(Oi,{registry:u.current,children:(0,e.jsx)("div",{className:o,ref:p,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:function(e){if(f.isDragging){var t=e.clientX,n=u.current.getPanels(),r=n[0],o=n[1],s=t-f.currentResizerPos,a=p.current.getBoundingClientRect().width,l=Ai(r.getWidth()+s,a),c=Ai(o.getWidth()-s,a);r.setWidth(l),o.setWidth(c),i&&i([l,c]),h(Ti(Ti({},f),{currentResizerPos:t}))}},onMouseUp:function(){h(Ci)},children:g})})},Li=require("rxjs");var qi,Ii=function(){function e(e){this.storage=e,this.changeEmitter=new Li.BehaviorSubject(this.getHistory()||[])}return e.prototype.getHistoryKeys=function(){return this.storage.keys().filter((function(e){return 0===e.indexOf("hist_elem")})).sort().reverse()},e.prototype.getHistory=function(){var e=this;return this.getHistoryKeys().map((function(t){return e.storage.get(t)}))},e.prototype.change=function(e){var t=this.changeEmitter.subscribe(e);return function(){return t.unsubscribe()}},e.prototype.addToHistory=function(e,t,n){var r=this,o=this.getHistoryKeys();o.splice(0,100),o.forEach((function(e){r.storage.delete(e)}));var i=(new Date).getTime(),s="hist_elem_"+i;this.storage.set(s,{time:i,endpoint:e,method:t,data:n}),this.changeEmitter.next(this.getHistory())},e.prototype.updateCurrentState=function(e){var t=(new Date).getTime();this.storage.set("editor_state",{time:t,content:e})},e.prototype.getLegacySavedEditorState=function(){var e=this.storage.get("editor_state");if(e)return{time:e.time,content:e.content}},e.prototype.deleteLegacySavedEditorState=function(){this.storage.delete("editor_state")},e.prototype.clearHistory=function(){var e=this;this.getHistoryKeys().forEach((function(t){return e.storage.delete(t)}))},e}();!function(e){e.WIDTH="widths"}(qi||(qi={}));var Di=function(){function e(e,t){this.engine=e,this.prefix=t}return e.prototype.encode=function(e){return JSON.stringify(e)},e.prototype.decode=function(e){if("string"==typeof e)return JSON.parse(e)},e.prototype.encodeKey=function(e){return"".concat(this.prefix).concat(e)},e.prototype.decodeKey=function(e){if((0,f.startsWith)(e,this.prefix))return"".concat(e.slice(this.prefix.length))},e.prototype.set=function(e,t){return this.engine.setItem(this.encodeKey(e),this.encode(t)),t},e.prototype.has=function(e){return null!=this.engine.getItem(this.encodeKey(e))},e.prototype.get=function(e,t){return this.has(e)?this.decode(this.engine.getItem(this.encodeKey(e))):t},e.prototype.delete=function(e){return this.engine.removeItem(this.encodeKey(e))},e.prototype.keys=function(){var e=this;return(0,f.transform)((0,f.keys)(this.engine),(function(t,n){var r=e.decodeKey(n);null!=r&&t.push(r)}))},e}(),Mi=function(){function e(e){this.storage=e}return e.prototype.getFontSize=function(){return this.storage.get("font_size",12)},e.prototype.setFontSize=function(e){return this.storage.set("font_size",e),!0},e.prototype.getWrapMode=function(){return this.storage.get("wrap_mode",!0)},e.prototype.setWrapMode=function(e){return this.storage.set("wrap_mode",e),!0},e.prototype.setTripleQuotes=function(e){return this.storage.set("triple_quotes",e),!0},e.prototype.getTripleQuotes=function(){return this.storage.get("triple_quotes",!0)},e.prototype.getAutocomplete=function(){return this.storage.get("autocomplete_settings",{fields:!0,indices:!0,templates:!0,commands:!0})},e.prototype.setAutocomplete=function(e){return this.storage.set("autocomplete_settings",e),!0},e.prototype.getPolling=function(){return this.storage.get("console_polling",!0)},e.prototype.setPolling=function(e){return this.storage.set("console_polling",e),!0},e.prototype.toJSON=function(){return{autocomplete:this.getAutocomplete(),wrapMode:this.getWrapMode(),tripleQuotes:this.getTripleQuotes(),fontSize:parseFloat(this.getFontSize()),polling:Boolean(this.getPolling())}},e.prototype.updateSettings=function(e){var t=e.fontSize,n=e.wrapMode,r=e.tripleQuotes,o=e.autocomplete,i=e.polling;this.setFontSize(t),this.setWrapMode(n),this.setTripleQuotes(r),this.setAutocomplete(o),this.setPolling(i)},e}();const Fi=require("uuid");var Ui=function(){return Ui=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ui.apply(this,arguments)},zi=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},Bi=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},Gi=function(){function e(e,t){this.client=e,this.prefix="console_local_".concat(t)}return e.prototype.create=function(e){return zi(this,void 0,Promise,(function(){var t,n;return Bi(this,(function(r){return t=Fi.v4(),n=Ui({id:t},e),this.client.set("".concat(this.prefix,"_").concat(t),n),[2,n]}))}))},e.prototype.update=function(e){return zi(this,void 0,Promise,(function(){return Bi(this,(function(t){return this.client.set("".concat(this.prefix,"_").concat(e.id),e),[2]}))}))},e.prototype.findAll=function(){return zi(this,void 0,Promise,(function(){var e,t,n,r,o,i=this;return Bi(this,(function(s){for(e=this.client.keys().filter((function(e){return e.includes(i.prefix)})),t=[],n=0,r=e;n<r.length;n++)o=r[n],t.push(this.client.get(o));return[2,t]}))}))},e}();const Ji=require("antd/lib/badge");var $i=o.n(Ji);require("antd/lib/badge/style/index.js");var Vi={green:U,yellow:z,red:B,available:U,unavailable:J,online:U,offline:J,active:z,normal:U,acknowledged:U,error:B,gray:G},Wi=function(t){var n=t.status,r=t.size,o=void 0===r?14:r;if("unavailable"==n||!Vi[n])return(0,e.jsx)("span",{children:(0,e.jsx)(a.CloseCircleOutlined,{style:{fontSize:14,color:J}})});var i=function(e){return Vi[e]}(n);return(0,e.jsx)("div",{style:{background:i,height:o,width:o,borderRadius:o,display:"inline-block",verticalAlign:"text-bottom"}})},Hi=(o(3762),function(e){return e<=199?"default":e<=299?"success":e<=399?"processing":e<=499?"warning":"error"}),Ki=function(t){var n,r=t.requestInProgress,o=t.requestResult,i=t.selectedCluster,a=t.left,l=null,c=(0,e.jsxs)("div",{className:"base-info",children:[(0,e.jsxs)("div",{className:"info-item",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"console.cluster.status"}),":"]}),(0,e.jsx)(Wi,{status:null===(n=null==i?void 0:i.labels)||void 0===n?void 0:n.health_status})]}),(0,e.jsxs)("div",{className:"info-item",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),(0,e.jsx)(Oo(),{color:"#D3DAE6",style:{color:"#000"},children:null==i?void 0:i.host})]}),(0,e.jsxs)("div",{className:"info-item",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"console.cluster.version"}),":"]}),(0,e.jsx)(Oo(),{color:"#D3DAE6",style:{color:"#000"},children:null==i?void 0:i.version})]})]});if(r)l=(0,e.jsx)($i(),{color:"hollow",text:"Request in progress"});else if(o){var u=o.endpoint,p=o.method,d=o.statusCode,f=o.statusText,h=o.timeElapsedMs;l=(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:"status_info",children:[(0,e.jsxs)("div",{className:"info-item",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"console.response.status"}),":"]}),(0,e.jsx)(fe(),{placement:"top",title:(0,e.jsx)("span",{children:"".concat(p," ").concat(u.startsWith("/")?u:"/"+u)}),children:(0,e.jsx)(Oo(),{color:Hi(d),style:{color:"#000"},children:"".concat(d," - ").concat(f)})})]}),(0,e.jsxs)("div",{className:"info-item",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),(0,e.jsx)(fe(),{placement:"top",title:(0,e.jsx)("span",{children:"Time Elapsed"}),children:(0,e.jsx)(Oo(),{color:"#D3DAE6",style:{color:"#000"},children:"".concat(h," ").concat("ms")})})]})]})})}return(0,e.jsx)("div",{className:"request-status-bar",children:a?(0,e.jsx)("div",{className:"bar-item",children:c}):(0,e.jsx)("div",{className:"bar-item",children:l})})},Qi=(o(146),function(){return Qi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qi.apply(this,arguments)}),Yi=function(t){var n,r,o,i,s,a,l,c,u,p,d,f,h,m=t.selectedCluster,_=t.saveEditorContent,g=t.initialText,y=t.paneKey,w=t.isActive,v=t.height,b=t.sendRequestToES,x=t.saveAsCommonCommand,O=Vo(),j=O.requestInFlight,E=O.lastResult,k=E.data,S=E.error,T=null!==(n=null==k?void 0:k[k.length-1])&&void 0!==n?n:S,N=v>0?v+"px":"100%";return(0,e.jsx)("div",{style:{height:N},children:(0,e.jsx)("div",{className:"Console",style:{height:"100%"},children:(0,e.jsxs)(Pi,{resizerClassName:"resizer",children:[(0,e.jsxs)(Ei,{style:{height:"100%",position:"relative",minWidth:"0px",paddingBottom:30},initialWidth:50,children:[(0,e.jsx)(yi,{height:v-30+"px",selectedCluster:m,saveEditorContent:_,initialText:g,paneKey:y,isActive:w,sendRequestToES:b,saveAsCommonCommand:x}),(0,e.jsx)("div",{style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:30,zIndex:997,borderTop:"1px solid #eee"},children:(0,e.jsx)(Ki,{requestInProgress:j,selectedCluster:m,left:!0,requestResult:T&&T.request?{method:T.request.method.toUpperCase(),endpoint:T.request.path,statusCode:null===(r=T.response)||void 0===r?void 0:r.statusCode,statusText:null===(o=T.response)||void 0===o?void 0:o.statusText,timeElapsedMs:null===(i=T.response)||void 0===i?void 0:i.timeMs,requestHeader:null===(s=T.request)||void 0===s?void 0:s.header,responseHeader:null===(a=T.response)||void 0===a?void 0:a.header}:void 0})})]}),(0,e.jsxs)(Ei,{style:{height:"100%",position:"relative",minWidth:"0px",paddingBottom:30},initialWidth:50,children:[(0,e.jsx)(te(),{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",className:"console-result-tabs",items:[{key:"result",label:"Result",children:(0,e.jsx)("div",{style:{height:v-30,backgroundColor:"#fff",borderRadius:"6px"},children:(0,e.jsx)(vi,{clusterID:m.id})})},{key:"headers",label:"Headers",children:(0,e.jsx)("div",{style:{backgroundColor:"#ffffff",height:v-58,border:"1px solid #fff",borderRadius:"4px"},children:(0,e.jsx)(te(),{animated:!1,className:"console-headers-tabs",size:"small",tabBarStyle:{margin:0,backgroundColor:"#fff"},items:[{key:"1",label:"Request",children:(0,e.jsx)("div",{style:{backgroundColor:"#ffffff",height:"100%",overflow:"auto"},children:(0,e.jsx)(he,{code:null===(l=null==T?void 0:T.request)||void 0===l?void 0:l.header})})},{key:"2",label:"Response",children:(0,e.jsx)("div",{style:{backgroundColor:"#ffffff",height:"100%",overflow:"auto"},children:(0,e.jsx)(he,{code:null===(c=null==T?void 0:T.response)||void 0===c?void 0:c.header})})}]})})}]}),(0,e.jsx)("div",{style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:30,zIndex:997,borderTop:"1px solid #eee"},children:(0,e.jsx)(Ki,{requestInProgress:j,selectedCluster:m,requestResult:T&&T.request?{method:T.request.method.toUpperCase(),endpoint:T.request.path,statusCode:null===(u=T.response)||void 0===u?void 0:u.statusCode,statusText:null===(p=T.response)||void 0===p?void 0:p.statusText,timeElapsedMs:null===(d=T.response)||void 0===d?void 0:d.timeMs,requestHeader:null===(f=T.request)||void 0===f?void 0:f.header,responseHeader:null===(h=T.response)||void 0===h?void 0:h.header}:void 0})})]})]})})})};const Xi=function(n){var r=(0,t.useRef)(new bi),o=(0,t.useMemo)((function(){var e,t=(e={engine:window.localStorage,prefix:"sense:"},new Di(e.engine,e.prefix)),n=function(e){return new Ii(e.storage)}({storage:t}),r=function(e){return{text:new Gi(e,"text-object")}}(t),o=function(e){return new Mi(e.storage)}({storage:t});return{storage:t,history:n,objectStorageClient:r,settings:o}}),[]),i=o.storage,s=o.history,a=o.objectStorageClient,l=o.settings;return(0,e.jsx)(Oi,{registry:r.current,children:(0,e.jsx)($o,{children:(0,e.jsx)(ni,{children:(0,e.jsx)(Ko,{value:{services:{history:s,storage:i,objectStorageClient:a,settings:l},clusterID:n.selectedCluster.id},children:(0,e.jsx)(Yi,Qi({},n))})})})})};const Zi=o.p+"75060ae827382b9be77f78d92beb74a7.svg",es=o.p+"194377418b2fbf8afa9e56eb76c2d9a4.svg";o(3639);var ts=function(){return ts=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ts.apply(this,arguments)},ns=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},rs={en:{"console.cluster.status":"Health","console.cluster.endpoint":"Endpoint","console.cluster.version":"Version","console.response.status":"Response status","console.response.time_elapsed":"Time elapsed","console.request.headers":"Headers","console.request.headers.title":"Request header info","console.cluster.select.placeholder":"Enter cluster name","console.cluster.select.search.no_match":"No cluster is matched (the matching rule is prefix matching)","console.SendRequestButton.ToolTip":"Click to send request","console.noConsole.desc":"Add a cluster now and start your efficient development journey","console.noConsole.dev1":"Multi cluster parallel operation","console.noConsole.dev2":"Intelligent syntax prompt","console.noConsole.dev3":"Quickly load commonly used instructions","console.noConsole.dev4":"One click workspace switching","cluster.manage.create":"Create Cluster","cluster.manage.register":"Register Cluster","cluster.manage.des":"This can help you better understand and analyze your data in order to make predictions and decisions quickly.","menu.devtool.console":"Dev Tools","command.table.field.name":"Name","command.table.field.tag":"Tag","command.table.field.content":"Content","command.manage.edit.title":"Command","command.btn.newtag":"Add New Tag","command.message.invalid.tag":"invalid tag","command.manage.save.title":"Save As Command","command.manage.title":"COMMANDS","command.manage.description":"Commonly used commands can help you save frequently used requests and load them quickly through the LOAD command in the development tool.","console.menu.copy_as_curl":"Copy As Curl","console.menu.auto_indent":"Auto Indent","console.menu.save_as_command":"Save As Command","form.button.save":"Save","form.button.cancel":"Cancel"},zh:{"console.cluster.status":"健康状态","console.cluster.endpoint":"集群地址","console.cluster.version":"版本","console.response.status":"响应状态","console.response.time_elapsed":"时延","console.request.headers":"请求头","console.request.headers.title":"请求头信息","console.cluster.select.placeholder":"输入集群名称查找","console.cluster.select.search.no_match":"匹配不到集群(匹配规则为前缀匹配)","console.SendRequestButton.ToolTip":"点击发送请求","console.noConsole.desc":"立即添加集群,启动您的高效开发之旅","console.noConsole.dev1":"多集群并行操作","console.noConsole.dev2":"智能语法提示","console.noConsole.dev3":"快速加载常用指令","console.noConsole.dev4":"一键切换工作区","cluster.manage.create":"创建集群","cluster.manage.register":"注册集群","cluster.manage.des":"这可以帮助您更好地理解和分析数据,以便快速做出预测和决策。","menu.devtool.console":"开发工具","command.table.field.name":"名称","command.table.field.tag":"标签","command.table.field.content":"内容","command.manage.edit.title":"常用命令","command.btn.newtag":"新建标签","command.message.invalid.tag":"无效的标签内容","command.manage.save.title":"保存为常用命令","command.manage.title":"常用命令管理","command.manage.description":"常用命令可以帮助您保存常用的请求,并且在开发工具里面通过 LOAD 命令快速地加载。","console.menu.copy_as_curl":"复制为 curl 命令","console.menu.auto_indent":"自动缩进","console.menu.save_as_command":"保存为常用命令","form.button.save":"保存","form.button.cancel":"取消"}},os=navigator.language.split(/[-_]/)[0];console.log("language",os);var is=function(t){return void 0===t&&(t={}),(0,e.jsx)("img",ts({height:"14px",width:"14px"},t,{src:Zi}))},ss=function(t){return void 0===t&&(t={}),(0,e.jsx)("img",ts({height:"14px",width:"14px"},t,{src:es}))},as=function(t){return(0,e.jsx)(Xi,ts({},t))},ls=function(e,t){var n=t.type,r=t.payload,o=e;switch(n){case"add":o=function(e,t){var n=e.panes,r=(t.payload||{}).cluster;if(console.log("addTab called with:",{action:t,cluster:r,payload:t.payload}),!r)return console.error("Cannot add tab: cluster is undefined",{action:t,payload:t.payload}),e;if(!r.id)return console.error("Cannot add tab: cluster.id is missing",{cluster:r,action:t}),e;var o="".concat(r.id,":").concat((new Date).valueOf()),i={key:o,cluster_id:r.id,title:r.name||r.id,cluster:r,closable:!0,content:'GET _search\n{\n "query": {\n "match_all": {}\n }\n}\n'},s=ns(ns([],n,!0),[i],!1);return console.log("Successfully created new tab:",{activeKey:o,newPane:{key:i.key,title:i.title,cluster_id:i.cluster_id}}),ts(ts({},e),{panes:s,activeKey:o})}(e,t);break;case"remove":o=function(e,t){var n,r=e.activeKey,o=e.panes,i=t.payload.targetKey,s=o.filter((function(e){return e.key!==i}));return ts(ts({},e),{panes:s,activeKey:r==i?null===(n=s[0])||void 0===n?void 0:n.key:r})}(e,t);break;case"change":o=ts(ts({},e),{activeKey:r.activeKey});break;case"saveTitle":var i=t.payload,s=i.key,a=i.title,l=e.panes.map((function(e){return e.key==s?ts(ts({},e),{title:a}):e}));o=ts(ts({},e),{panes:l});break;case"saveContent":var c=e.panes.map((function(n){return n.key==e.activeKey?ts(ts({},n),{content:t.payload.content}):n}));o=ts(ts({},e),{panes:c});break;case"saveOrder":o=ts(ts({},e),{order:t.payload.order});break;case"init":o=t.payload}return o},cs={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:!1,content:'GET _search\n{\n "query": {\n "match_all": {}\n }\n}\n\nGET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g\n'}]};const us=function(n){var o,i,c,u=n.minimize,p=void 0!==u&&u,d=n.onMinimizeClick,f=n.resizeable,h=void 0!==f&&f,m=n.height,_=void 0===m?"50vh":m,g=n.width,y=void 0===g?"100%":g,w=n.mode,v=void 0===w?"global":w,b=n.sendRequestToES,x=n.saveAsCommonCommand,O=n.SearchEngineIcon,j=(n.DataSourceSelector,n.fetchDataSource,n.LogoImg),E=n.clusterList,k=void 0===E?[]:E,S=n.defaultCluster,T=void 0===S?null:S,N=function(){var e=T||(k&&k.length>0?k[0]:null);if(e){var t="".concat(e.id,":").concat((new Date).valueOf());return{activeKey:t,panes:[{key:t,cluster_id:e.id,title:e.name,cluster:e,closable:!1,content:'GET _search\n{\n "query": {\n "match_all": {}\n }\n}\n'}]}}return cs},R=(i=N,c={encode:JSON.stringify,decode:JSON.parse},function(e,n,r,o){var i=(0,t.useState)((function(){var t=r.getItem(e);return t?o&&"function"==typeof o.encode?o.decode(t):t:"function"==typeof n?n():n})),s=i[0],a=i[1];(0,t.useEffect)((function(){if(void 0===s)return r.removeItem(e);var t=s;o&&"function"==typeof o.encode&&(t=o.encode(t)),r.setItem(e,t)}),[e,s,r]);var l=(0,t.useCallback)((function(){a(void 0)}),[]);return[s,a,l]}("console:state:",i,window.localStorage,c)),C=R[0],A=R[1],P=(R[2],(0,t.useReducer)(ls,C)),L=P[0],q=P[1];(0,t.useEffect)((function(){if(0==L.panes.length){var e=N();return q({type:"init",payload:e}),void A(e)}L.panes.some((function(e){return e.key==L.activeKey}))||q({type:"change",payload:{activeKey:L.panes[0].key}}),A(L)}),[L,q,A]);var I,D=(0,t.useCallback)((function(e){q({type:"saveContent",payload:{content:e}})}),[q]),M=(0,t.useCallback)((function(e){console.log("newTabClick called with:",{param:e,defaultCluster:T,clusterList:k,tabStatePanes:L.panes.length,activeKey:L.activeKey});var t=e||T;if(!t&&L.panes.length>0){var n=L.panes.find((function(e){return e.key===L.activeKey}));n&&n.cluster&&(t=n.cluster,console.log("Using cluster from active pane:",t))}if(!t&&k&&k.length>0){var r=k[0];r&&r.id&&(t=r,console.log("Using first cluster from clusterList:",t))}if(!t)return console.error("Cannot create new tab: no cluster available",{param:e,defaultCluster:T,clusterList:k,tabStatePanes:L.panes}),void alert("无法创建新标签页:没有可用的集群。请先配置集群连接。");console.log("Using targetCluster:",t),q({type:"add",payload:{cluster:t}})}),[T,L.activeKey,L.panes,k]),F=(0,t.useRef)(null),U=(0,t.useState)(!1),z=U[0],B=U[1],G=(0,t.useCallback)((function(e){d(e),K()}),[d]);I=null===(o=L.activeKey)||void 0===o?void 0:o.split(":")[0],st=I;var J=L.panes.map((function(e){return e.closable=!1,e}));1==J.length&&(J[0].closable=!1);var $={left:(0,e.jsx)("div",{className:"tabbar-icon",onClick:G,children:j?(0,e.jsx)(l(),{component:j,style:{fontSize:"24px",verticalAlign:"middle"}}):(0,e.jsx)(a.CodeOutlined,{})}),right:(0,e.jsxs)(e.Fragment,{children:[p?(0,e.jsx)("div",{className:"tabbar-icon",onClick:G,children:(0,e.jsx)(a.MinusSquareOutlined,{})}):null,(0,e.jsx)("div",{className:"tabbar-icon",onClick:function(){null!=F.current&&(z?(F.current.className=F.current.className.replace(" fullscreen",""),K()):F.current.className=F.current.className+" fullscreen"),H(F.current.clientHeight),B(!z)},children:z?(0,e.jsx)(ss,{}):(0,e.jsx)(is,{})})]}),append:(0,e.jsx)("div",{className:"tabbar-icon",onClick:function(e){e.preventDefault(),e.stopPropagation(),M()},children:(0,e.jsx)(a.PlusOutlined,{})})},V=(0,t.useState)(function(e){var t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:e.endsWith("%")?void 0:t}(_)),W=V[0],H=V[1];(0,t.useEffect)((function(){var e=function(){z&&H(F.current.offsetHeight)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[z]);var K=function(){document.body.style.overflow=""};return(0,t.useEffect)((function(){if("global"==v){var e=document.querySelector("#root>div");e&&(e.style.paddingBottom="number"==typeof W?W+"px":W)}}),[W]),(0,t.useEffect)((function(){var e=function(e){e.reason&&e.reason.message&&e.reason.message.includes("message port closed")&&(e.preventDefault(),console.warn("Message port closed, this is usually safe to ignore"))};return window.addEventListener("unhandledrejection",e),function(){window.removeEventListener("unhandledrejection",e)}}),[]),(0,e.jsx)(s.IntlProvider,{locale:os,messages:rs[os],children:(0,e.jsx)(r.Resizable,{defaultSize:{width:y,height:W||"50vh"},minHeight:70,maxHeight:"100vh",handleComponent:{top:"global"===v?(0,e.jsx)(pe,{}):null},onResize:function(e,t,n,r){H(n.clientHeight)},enable:{top:h&&"page"!==v,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},style:{width:y},children:(0,e.jsx)("div",{style:{background:"#fff",height:"100%"},onMouseOver:function(){document.body.style.overflow="hidden"},onMouseOut:K,id:"console",ref:F,children:0===J.length?(0,e.jsx)("div",{children:"no data"}):(0,e.jsx)(ue,{className:"console-main-tabs",activeKey:L.activeKey,onChange:function(e){q({type:"change",payload:{activeKey:e}})},onEdit:function(e,t){q({type:t,payload:{targetKey:e}})},type:"editable-card",hideAdd:!1,tabBarExtraContent:$,addIcon:(0,e.jsx)("div",{className:"tabbar-icon",onClick:function(e){e.preventDefault(),e.stopPropagation(),M()},children:(0,e.jsx)(a.PlusOutlined,{})}),items:J.map((function(t){return{key:t.key,label:(0,e.jsx)(Y,{title:t.title,onTitleChange:function(e){!function(e,t){q({type:"saveTitle",payload:{key:e,title:t}})}(t.key,e)},distribution:t.cluster.distribution,SearchEngineIcon:O}),children:(0,e.jsx)("div",{children:(0,e.jsx)(as,{height:W-30,selectedCluster:t.cluster,paneKey:t.key,saveEditorContent:D,initialText:t.content,isActive:t.key==L.activeKey,sendRequestToES:b,saveAsCommonCommand:x})}),closable:!0}}))})})})})}})(),i})()));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.webCli=t(require("react"),require("react-dom")):e.webCli=t(e.react,e["react-dom"])}(self,((e,t)=>(()=>{var n={5:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},44:e=>{"use strict";e.exports=JSON.parse('{"explain":{"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"}}')},107:e=>{"use strict";e.exports=JSON.parse('{"exists_source":{"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"}}')},146:(e,t,n)=>{var r=n(5007);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},213:e=>{"use strict";e.exports=JSON.parse('{"ping":{"methods":["HEAD"],"patterns":[""],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"}}')},217:(e,t,n)=>{var r=n(2427);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},221:()=>{},388:e=>{"use strict";e.exports=JSON.parse('{"cluster.remote_info":{"methods":["GET"],"patterns":["_remote/info"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html"}}')},406:e=>{"use strict";e.exports=JSON.parse('{"indices.delete_template":{"patterns":["_template/{template}"]}}')},409:e=>{"use strict";e.exports=JSON.parse('{"get_source":{"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"}}')},510:e=>{"use strict";e.exports=JSON.parse('{"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":""}}]}}}}')},669:e=>{"use strict";e.exports=JSON.parse('{"render_search_template":{"methods":["GET","POST"],"patterns":["_render/template","_render/template/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#_validating_templates"}}')},689:e=>{"use strict";e.exports=JSON.parse('{"bulk":{"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"}}')},708:(e,t,n)=>{"use strict";var r=n(3790),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},757:e=>{"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},761:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},797:e=>{"use strict";e.exports=JSON.parse('{"field_caps":{"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"}}')},913:e=>{"use strict";e.exports=JSON.parse('{"scripts_painless_execute":{"methods":["GET","POST"],"patterns":["_scripts/painless/_execute"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html"}}')},994:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1101:e=>{"use strict";e.exports=EvalError},1123:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1185:e=>{"use strict";e.exports=JSON.parse('{"indices.validate_query":{"data_autocomplete_rules":{"query":{}}}}')},1260:e=>{"use strict";e.exports=JSON.parse('{"search_template":{"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"}}')},1273:e=>{"use strict";e.exports=JSON.parse('{"termvectors":{"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"}}')},1290:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1325:(e,t,n)=>{"use strict";var r=n(8534)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},1328:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1344:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1427:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1452:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1489:e=>{"use strict";e.exports=JSON.parse('{"delete_by_query":{"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"}}')},1536:(e,t,n)=>{"use strict";var r=n(7893),o=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},l=1024;e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],s=o.obj[o.prop],a=Object.keys(s),l=0;l<a.length;++l){var c=a[l],u=s[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:s,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,o,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<a.length;u+=l){for(var p=a.length>=l?a.slice(u,u+l):a,d=[],f=0;f<p.length;++f){var h=p.charCodeAt(f);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===r.RFC1738&&(40===h||41===h)?d[d.length]=p.charAt(f):h<128?d[d.length]=s[h]:h<2048?d[d.length]=s[192|h>>6]+s[128|63&h]:h<55296||h>=57344?d[d.length]=s[224|h>>12]+s[128|h>>6&63]+s[128|63&h]:(f+=1,h=65536+((1023&h)<<10|1023&p.charCodeAt(f)),d[d.length]=s[240|h>>18]+s[128|h>>12&63]+s[128|h>>6&63]+s[128|63&h])}c+=d.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return i(t)&&!i(n)&&(s=a(t,r)),i(t)&&i(n)?(n.forEach((function(n,i){if(o.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return o.call(t,i)?t[i]=e(t[i],s,r):t[i]=s,t}),s)}}},1604:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1665:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1675:e=>{"use strict";e.exports=JSON.parse('{"indices.put_settings":{"data_autocomplete_rules":{"__scope_link":"put_settings"}}}')},1750:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},1777:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,s=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),a=n(0,o.length-s.length),l=[],c=0;c<a;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,r(s,arguments));return Object(t)===t?t:this}return o.apply(e,r(s,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},1833:(e,t,n)=>{var r=n(6847);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},1864:e=>{"use strict";e.exports=JSON.parse('{"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}"]}}')},1871:(e,t,n)=>{var r=n(7989);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},1908:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".empty {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n flex-direction: column;\n}\n",""])},1919:(e,t,n)=>{"use strict";var r=n(3583),o=n(8534),i=n(2644),s=n(7379),a=o("%Function.prototype.apply%"),l=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(l,a),u=n(3790),p=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=c(r,l,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},2071:e=>{"use strict";e.exports=JSON.parse('{"indices.exists_template":{"patterns":["_template/{template}"]}}')},2119:(e,t,n)=>{var r=n(2961);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},2168:(e,t,n)=>{"use strict";var r=n(5846);function o(){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 i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),u=["%","/","?",";","#"].concat(c),p=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(7877);function y(e,t,n){if(e&&"object"==typeof e&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var y=e=l.join(s);if(y=y.trim(),!n&&1===e.split("#").length){var w=a.exec(y);if(w)return this.path=y,this.href=y,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var v=i.exec(y);if(v){var b=(v=v[0]).toLowerCase();this.protocol=b,y=y.substr(v.length)}if(n||v||y.match(/^\/\/[^@/]+@[^@/]+/)){var x="//"===y.substr(0,2);!x||v&&m[v]||(y=y.substr(2),this.slashes=!0)}if(!m[v]&&(x||v&&!_[v])){for(var O,j,E=-1,k=0;k<p.length;k++)-1!==(S=y.indexOf(p[k]))&&(-1===E||S<E)&&(E=S);for(-1!==(j=-1===E?y.lastIndexOf("@"):y.lastIndexOf("@",E))&&(O=y.slice(0,j),y=y.slice(j+1),this.auth=decodeURIComponent(O)),E=-1,k=0;k<u.length;k++){var S;-1!==(S=y.indexOf(u[k]))&&(-1===E||S<E)&&(E=S)}-1===E&&(E=y.length),this.host=y.slice(0,E),y=y.slice(E),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var N=this.hostname.split(/\./),C=(k=0,N.length);k<C;k++){var R=N[k];if(R&&!R.match(d)){for(var A="",P=0,L=R.length;P<L;P++)R.charCodeAt(P)>127?A+="x":A+=R[P];if(!A.match(d)){var q=N.slice(0,k),I=N.slice(k+1),D=R.match(f);D&&(q.push(D[1]),I.unshift(D[2])),I.length&&(y="/"+I.join(".")+y),this.hostname=q.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var M=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+M,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!h[b])for(k=0,C=c.length;k<C;k++){var z=c[k];if(-1!==y.indexOf(z)){var U=encodeURIComponent(z);U===z&&(U=escape(z)),y=y.split(z).join(U)}}var B=y.indexOf("#");-1!==B&&(this.hash=y.substr(B),y=y.slice(0,B));var G=y.indexOf("?");if(-1!==G?(this.search=y.substr(G),this.query=y.substr(G+1),t&&(this.query=g.parse(this.query)),y=y.slice(0,G)):t&&(this.search="",this.query={}),y&&(this.pathname=y),_[b]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){M=this.pathname||"";var J=this.search||"";this.path=M+J}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(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+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(i=g.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||_[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if("string"==typeof e){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),i=0;i<r.length;i++){var s=r[i];n[s]=this[s]}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 c=a[l];"protocol"!==c&&(n[c]=e[c])}return _[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(!_[e.protocol]){for(var u=Object.keys(e),p=0;p<u.length;p++){var d=u[p];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||m[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}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 h=n.pathname||"",g=n.search||"";n.path=h+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=w||y||n.host&&e.pathname,b=v,x=n.pathname&&n.pathname.split("/")||[],O=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!_[n.protocol]);if(O&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),v=v&&(""===f[0]||""===x[0])),w)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,x=f;else if(f.length)x||(x=[]),x.pop(),x=x.concat(f),n.search=e.search,n.query=e.query;else if(null!=e.search)return O&&(n.host=x.shift(),n.hostname=n.host,(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)),n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var j=x.slice(-1)[0],E=(n.host||e.host||x.length>1)&&("."===j||".."===j)||""===j,k=0,S=x.length;S>=0;S--)"."===(j=x[S])?x.splice(S,1):".."===j?(x.splice(S,1),k++):k&&(x.splice(S,1),k--);if(!v&&!b)for(;k--;k)x.unshift("..");!v||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),E&&"/"!==x.join("/").substr(-1)&&x.push("");var T,N=""===x[0]||x[0]&&"/"===x[0].charAt(0);return O&&(n.hostname=N?"":x.length?x.shift():"",n.host=n.hostname,(T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)),(v=v||n.host&&x.length)&&!N&&x.unshift(""),x.length>0?n.pathname=x.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(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},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.qg=y,t.GP=function(e){return"string"==typeof e&&(e=y(e)),e instanceof o?e.format():o.prototype.format.call(e)}},2174:e=>{"use strict";e.exports=JSON.parse('{"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":[true,false]},"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":[true,false]}},{"__condition":{"lines_regex":"type[\\"\']\\\\s*:\\\\s*[\\"\']hdfs"},"__template":{"path":""},"uri":"","path":"some/path","load_defaults":{"__one_of":[true,false]},"conf_location":"cfg.xml","concurrent_streams":5,"compress":{"__one_of":[true,false]},"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":[true,false]},"compress":{"__one_of":[true,false]},"chunk_size":"10m"}]}}}}')},2228:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2353:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2427:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".flex-tabbar {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n.flex-tabbar .ant-tabs {\n display: flex;\n height: 100%;\n}\n.flex-tabbar .ant-tabs .ant-tabs-content-holder {\n flex: 1;\n overflow: hidden;\n}\n.flex-tabbar .ant-tabs-top > .ant-tabs-nav {\n margin-bottom: 0px;\n}\n.flex-tabbar #console .ant-tabs-card .ant-tabs-tab {\n background: transparent;\n border-radius: 6px 6px 0 0;\n}\n.flex-tabbar #console .ant-tabs-card .ant-tabs-tab.ant-tabs-tab-active {\n background: transparent;\n}\n.ant-tabs-top-bar {\n display: flex;\n}\n.ant-tabs-extra-left {\n order: 1;\n flex: 0 0 auto;\n}\n.ant-tabs-nav-container {\n order: 2;\n flex: 0 0 auto;\n display: flex;\n}\n.ant-tabs-top-bar .ant-tabs-nav-container {\n max-width: calc(100% - 140px);\n}\n.tabbar-icon {\n padding: 0 10px;\n cursor: pointer;\n display: flex;\n align-items: center;\n}\n.ant-tabs-extra-append {\n order: 3;\n}\n.ant-tabs-extra-right {\n order: 4;\n margin-left: auto;\n flex: 0 0 auto;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active {\n font-weight: 400;\n background-color: #939ea0;\n color: #fff;\n border-color: #939ea0;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab {\n border-radius: 0;\n height: 28px;\n line-height: 26px;\n padding: 0 12px;\n margin: 0;\n display: inline-block;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content {\n line-height: 26px;\n display: flex;\n height: 28px;\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-nav-container {\n height: 28px;\n max-width: calc(100% - 156px);\n}\n#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x {\n margin-bottom: 14px;\n}\n#console .ant-tabs-bar {\n margin: 0px 0 2px 0;\n}\n",""])},2465:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2469:(e,t,n)=>{var r={"./_common.json":4471,"./bulk.json":689,"./cat.aliases.json":8173,"./cat.allocation.json":9089,"./cat.count.json":3966,"./cat.fielddata.json":4529,"./cat.health.json":7401,"./cat.help.json":7888,"./cat.indices.json":4880,"./cat.master.json":5837,"./cat.nodeattrs.json":9345,"./cat.nodes.json":6616,"./cat.pending_tasks.json":3791,"./cat.plugins.json":7277,"./cat.recovery.json":6808,"./cat.repositories.json":6495,"./cat.segments.json":7369,"./cat.shards.json":8966,"./cat.snapshots.json":7408,"./cat.tasks.json":9683,"./cat.templates.json":6122,"./cat.thread_pool.json":4710,"./clear_scroll.json":8090,"./cluster.allocation_explain.json":1427,"./cluster.delete_component_template.json":9797,"./cluster.get_component_template.json":994,"./cluster.get_settings.json":6461,"./cluster.health.json":2899,"./cluster.pending_tasks.json":9777,"./cluster.put_component_template.json":2897,"./cluster.put_settings.json":8422,"./cluster.remote_info.json":388,"./cluster.reroute.json":5,"./cluster.state.json":7646,"./cluster.stats.json":5328,"./count.json":9788,"./create.json":4185,"./delete.json":1750,"./delete_by_query.json":1489,"./delete_by_query_rethrottle.json":3235,"./delete_script.json":7944,"./exists.json":9153,"./exists_source.json":107,"./explain.json":44,"./field_caps.json":797,"./get.json":9367,"./get_script.json":7787,"./get_script_context.json":7335,"./get_script_languages.json":8623,"./get_source.json":409,"./index.json":7299,"./indices.analyze.json":5552,"./indices.clear_cache.json":8688,"./indices.clone.json":2637,"./indices.close.json":8560,"./indices.create.json":1344,"./indices.delete.json":6095,"./indices.delete_alias.json":1452,"./indices.delete_template.json":5830,"./indices.exists.json":2228,"./indices.exists_alias.json":8411,"./indices.exists_template.json":9252,"./indices.exists_type.json":4373,"./indices.flush.json":7110,"./indices.flush_synced.json":4845,"./indices.forcemerge.json":2825,"./indices.get.json":7976,"./indices.get_alias.json":4607,"./indices.get_field_mapping.json":9002,"./indices.get_mapping.json":9889,"./indices.get_settings.json":9008,"./indices.get_template.json":9211,"./indices.get_upgrade.json":5799,"./indices.open.json":4652,"./indices.put_alias.json":4774,"./indices.put_mapping.json":6472,"./indices.put_settings.json":8555,"./indices.put_template.json":5080,"./indices.recovery.json":1123,"./indices.refresh.json":4687,"./indices.rollover.json":2465,"./indices.segments.json":8566,"./indices.shard_stores.json":6307,"./indices.shrink.json":9321,"./indices.split.json":1604,"./indices.stats.json":8263,"./indices.update_aliases.json":3246,"./indices.upgrade.json":7704,"./indices.validate_query.json":1665,"./info.json":7425,"./ingest.delete_pipeline.json":6529,"./ingest.get_pipeline.json":6502,"./ingest.processor_grok.json":9123,"./ingest.put_pipeline.json":7661,"./ingest.simulate.json":2635,"./mget.json":4836,"./msearch.json":4844,"./msearch_template.json":3807,"./mtermvectors.json":7978,"./nodes.hot_threads.json":8397,"./nodes.info.json":5928,"./nodes.reload_secure_settings.json":2353,"./nodes.stats.json":3767,"./nodes.usage.json":4531,"./ping.json":213,"./put_script.json":8580,"./rank_eval.json":5986,"./reindex.json":2820,"./reindex_rethrottle.json":8472,"./render_search_template.json":669,"./scripts_painless_execute.json":913,"./scroll.json":4964,"./search.json":5917,"./search_shards.json":6543,"./search_template.json":1260,"./snapshot.cleanup_repository.json":9396,"./snapshot.create.json":8981,"./snapshot.create_repository.json":7630,"./snapshot.delete.json":1290,"./snapshot.delete_repository.json":5695,"./snapshot.get.json":7691,"./snapshot.get_repository.json":1328,"./snapshot.restore.json":4753,"./snapshot.status.json":7795,"./snapshot.verify_repository.json":4401,"./tasks.cancel.json":8479,"./tasks.get.json":8307,"./tasks.list.json":761,"./termvectors.json":1273,"./update.json":6644,"./update_by_query.json":8203,"./update_by_query_rethrottle.json":8985};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=2469},2635:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2637:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2644:(e,t,n)=>{"use strict";var r=n(8534),o=n(7517),i=n(708)(),s=n(1325),a=n(7379),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&s){var u=s(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},2650:(e,t,n)=>{"use strict";var r=n(1536),o=Object.prototype.hasOwnProperty,i=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(i),c=a?i.slice(0,a.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var p=0;n.depth>0&&null!==(a=s.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}if(a){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+i.slice(a.index)+"]")}return function(e,t,n,r){for(var o=r?t:l(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if("[]"===a&&n.parseArrays)s=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{s=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,p=parseInt(u,10);n.parseArrays||""!==u?!isNaN(p)&&a!==u&&String(p)===u&&p>=0&&n.parseArrays&&p<=n.arrayLimit?(s=[])[p]=o:"__proto__"!==u&&(s[u]=o):s={0:o}}o=s}return o}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset,n=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:s.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u,p=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,p),f=-1,h=t.charset;if(t.charsetSentinel)for(u=0;u<d.length;++u)0===d[u].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[u]?h="utf-8":"utf8=%26%2310003%3B"===d[u]&&(h="iso-8859-1"),f=u,u=d.length);for(u=0;u<d.length;++u)if(u!==f){var m,_,g=d[u],y=g.indexOf("]="),w=-1===y?g.indexOf("="):y+1;-1===w?(m=t.decoder(g,s.decoder,h,"key"),_=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,w),s.decoder,h,"key"),_=r.maybeMap(l(g.slice(w+1),t),(function(e){return t.decoder(e,s.decoder,h,"value")}))),_&&t.interpretNumericEntities&&"iso-8859-1"===h&&(_=a(_)),g.indexOf("[]=")>-1&&(_=i(_)?[_]:_);var v=o.call(n,m);v&&"combine"===t.duplicates?n[m]=r.combine(n[m],_):v&&"last"!==t.duplicates||(n[m]=_)}return n}(e,n):e,p=n.plainObjects?Object.create(null):{},d=Object.keys(u),f=0;f<d.length;++f){var h=d[f],m=c(h,u[h],n,"string"==typeof e);p=r.merge(p,m,n)}return!0===n.allowSparse?p:r.compact(p)}},2787:(e,t,n)=>{"use strict";var r=n(8534),o=n(1919),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},2820:e=>{"use strict";e.exports=JSON.parse('{"reindex":{"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"}}')},2825:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2864:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,s=r&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&l&&"function"==typeof l.get?l.get:null,u=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,_=Function.prototype.toString,g=String.prototype.match,y=String.prototype.slice,w=String.prototype.replace,v=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,O=Array.prototype.concat,j=Array.prototype.join,E=Array.prototype.slice,k=Math.floor,S="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,C="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,A=Object.prototype.propertyIsEnumerable,P=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var o=String(r),i=y.call(t,o.length+1);return w.call(o,n,"$&_")+"."+w.call(w.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(t,n,"$&_")}var q=n(6153),I=q.custom,D=B(I)?I:null;function M(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function F(e){return w.call(String(e),/"/g,"&quot;")}function z(e){return!("[object Array]"!==$(e)||R&&"object"==typeof e&&R in e)}function U(e){return!("[object RegExp]"!==$(e)||R&&"object"==typeof e&&R in e)}function B(e){if(C)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!N)return!1;try{return N.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,o,a){var l=r||{};if(J(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!J(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var v=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return H(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return v?L(t,x):x}if("bigint"==typeof t){var k=String(t)+"n";return v?L(t,k):k}var T=void 0===l.depth?5:l.depth;if(void 0===o&&(o=0),o>=T&&T>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var I,G=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=j.call(Array(e.indent+1)," ")}return{base:n,prev:j.call(Array(t+1),n)}}(l,o);if(void 0===a)a=[];else if(V(a,t)>=0)return"[Circular]";function W(t,n,r){if(n&&(a=E.call(a)).push(n),r){var i={depth:l.depth};return J(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,o+1,a)}return e(t,l,o+1,a)}if("function"==typeof t&&!U(t)){var ee=function(e){if(e.name)return e.name;var t=g.call(_.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=Z(t,W);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+j.call(te,", ")+" }":"")}if(B(t)){var ne=C?w.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(t);return"object"!=typeof t||C?ne:K(ne)}if((I=t)&&"object"==typeof I&&("undefined"!=typeof HTMLElement&&I instanceof HTMLElement||"string"==typeof I.nodeName&&"function"==typeof I.getAttribute)){for(var re="<"+b.call(String(t.nodeName)),oe=t.attributes||[],ie=0;ie<oe.length;ie++)re+=" "+oe[ie].name+"="+M(F(oe[ie].value),"double",l);return re+=">",t.childNodes&&t.childNodes.length&&(re+="..."),re+"</"+b.call(String(t.nodeName))+">"}if(z(t)){if(0===t.length)return"[]";var se=Z(t,W);return G&&!function(e){for(var t=0;t<e.length;t++)if(V(e[t],"\n")>=0)return!1;return!0}(se)?"["+X(se,G)+"]":"[ "+j.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==$(e)||R&&"object"==typeof e&&R in e)}(t)){var ae=Z(t,W);return"cause"in Error.prototype||!("cause"in t)||A.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+j.call(ae,", ")+" }":"{ ["+String(t)+"] "+j.call(O.call("[cause]: "+W(t.cause),ae),", ")+" }"}if("object"==typeof t&&m){if(D&&"function"==typeof t[D]&&q)return q(t,{depth:T-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var le=[];return s&&s.call(t,(function(e,n){le.push(W(n,t,!0)+" => "+W(e,t))})),Y("Map",i.call(t),le,G)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ce=[];return u&&u.call(t,(function(e){ce.push(W(e,t))})),Y("Set",c.call(t),ce,G)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if(function(e){return!("[object Number]"!==$(e)||R&&"object"==typeof e&&R in e)}(t))return K(W(Number(t)));if(function(e){if(!e||"object"!=typeof e||!S)return!1;try{return S.call(e),!0}catch(e){}return!1}(t))return K(W(S.call(t)));if(function(e){return!("[object Boolean]"!==$(e)||R&&"object"==typeof e&&R in e)}(t))return K(h.call(t));if(function(e){return!("[object String]"!==$(e)||R&&"object"==typeof e&&R in e)}(t))return K(W(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==$(e)||R&&"object"==typeof e&&R in e)}(t)&&!U(t)){var ue=Z(t,W),pe=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,de=t instanceof Object?"":"null prototype",fe=!pe&&R&&Object(t)===t&&R in t?y.call($(t),8,-1):de?"Object":"",he=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||de?"["+j.call(O.call([],fe||[],de||[]),": ")+"] ":"");return 0===ue.length?he+"{}":G?he+"{"+X(ue,G)+"}":he+"{ "+j.call(ue,", ")+" }"}return String(t)};var G=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,t){return G.call(e,t)}function $(e){return m.call(e)}function V(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function H(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return H(y.call(e,0,t.maxStringLength),t)+r}return M(w.call(w.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W),"single",t)}function W(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+v.call(t.toString(16))}function K(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function Y(e,t,n,r){return e+" ("+t+") {"+(r?X(n,r):j.call(n,", "))+"}"}function X(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+j.call(e,","+n)+"\n"+t.prev}function Z(e,t){var n=z(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=J(e,o)?t(e[o],e):""}var i,s="function"==typeof T?T(e):[];if(C){i={};for(var a=0;a<s.length;a++)i["$"+s[a]]=s[a]}for(var l in e)J(e,l)&&(n&&String(Number(l))===l&&l<e.length||C&&i["$"+l]instanceof Symbol||(x.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof T)for(var c=0;c<s.length;c++)A.call(e,s[c])&&r.push("["+t(s[c])+"]: "+t(e[s[c]],e));return r}},2897:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2899:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},2961:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".loading {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n flex-direction: column;\n}\n.loading img {\n height: 32px;\n margin-bottom: 8px;\n}\n.loading .tips {\n color: #bfbfbf;\n font-size: 12px;\n}\n",""])},3235:e=>{"use strict";e.exports=JSON.parse('{"delete_by_query_rethrottle":{"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"}}')},3246:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},3445:e=>{"use strict";e.exports=JSON.parse('{"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":[true,false]}},"allocate":{"__template":{"index":"","shard":0,"node":""},"index":"{index}","shard":0,"node":"{node}","allow_primary":{"__one_of":[true,false]}}}],"dry_run":{"__one_of":[true,false]}}}}')},3556:(e,t,n)=>{var r=n(4262);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},3583:(e,t,n)=>{"use strict";var r=n(1777);e.exports=Function.prototype.bind||r},3639:(e,t,n)=>{var r=n(7453);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},3716:e=>{e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},3727:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".error {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n flex-direction: column;\n}\n.error .anticon {\n font-size: 32px;\n color: #ff6c6c;\n margin-bottom: 8px;\n}\n.error .tips {\n color: #bfbfbf;\n font-size: 12px;\n}\n",""])},3762:(e,t,n)=>{var r=n(9340);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},3767:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},3790:(e,t,n)=>{"use strict";var r=n(8534)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},3791:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},3807:e=>{"use strict";e.exports=JSON.parse('{"msearch_template":{"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"}}')},3808:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(6465);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},3966:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4185:e=>{"use strict";e.exports=JSON.parse('{"create":{"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"}}')},4262:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".conApp {\n display: flex;\n}\n.conApp__editor {\n width: 100%;\n display: flex;\n flex: 0 0 auto;\n position: relative;\n}\n.conApp__editor__spinner {\n width: 100%;\n}\n.conApp__output {\n display: flex;\n flex: 1 1 1px;\n}\n.conApp__editorContent,\n.conApp__outputContent {\n height: 100%;\n flex: 1 1 1px;\n font-size: 14px;\n}\n.conApp__editorActions {\n position: absolute;\n z-index: 1000;\n top: 4px;\n right: 0;\n line-height: 1;\n height: 17px;\n display: flex;\n align-items: center;\n}\n.conApp__editorActions button {\n line-height: inherit;\n cursor: pointer;\n}\n.conApp__editorActionButton {\n padding: 0 4px;\n appearance: none;\n border: none;\n background: none;\n}\n.conApp__editorActionButton--success {\n color: #017D73;\n}\n.conApp__resizer {\n z-index: 1000;\n}\n.conApp__autoComplete {\n position: absolute;\n left: -1000px;\n visibility: hidden;\n /* by pass any other element in ace and resize bar, but not modal popups */\n z-index: 1002;\n margin-top: 22px;\n}\n.conApp__settingsModal {\n min-width: 460px;\n}\n.conApp__requestProgressBarContainer {\n position: relative;\n z-index: 2000;\n}\n.conApp__tabsExtension {\n border-bottom: 1px solid #cccccc;\n}\n.ace_method,\n.ace_select_keyword {\n color: #c80a68 !important;\n}\n.ace_url,\n.ace_start_triple_quote,\n.ace_end_triple_quote {\n color: #00756c;\n}\n.conApp .euiButtonIcon--primary:not([class*='isDisabled']) {\n box-shadow: none !important;\n background-color: transparent !important;\n}\n",""])},4266:e=>{"use strict";e.exports=JSON.parse('{"indices.get_field_mapping":{"priority":10}}')},4305:e=>{"use strict";e.exports=JSON.parse('{"indices.rollover":{"data_autocomplete_rules":{"conditions":{"max_age":"7d","max_docs":1000,"max_size":"5gb"},"settings":{"__scope_link":"put_settings"},"mappings":{"__scope_link":"put_mapping"},"aliases":{"__template":{"NAME":{}}}}}}')},4373:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4401:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4471:e=>{"use strict";e.exports=JSON.parse('{"documentation":{"methods":[]}}')},4529:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4531:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4585:e=>{"use strict";e.exports=URIError},4607:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4652:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4687:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4710:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4717:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".resize-bar {\n display: flex;\n height: 10px;\n background: #eee;\n margin-top: -5px;\n align-items: center;\n justify-content: center;\n}\n.resize-bar .dash {\n height: 1px;\n width: 16px;\n background: #666;\n margin-top: 1px;\n}\n",""])},4753:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4774:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4836:e=>{"use strict";e.exports=JSON.parse('{"mget":{"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"}}')},4844:e=>{"use strict";e.exports=JSON.parse('{"msearch":{"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"}}')},4845:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4880:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},4964:e=>{"use strict";e.exports=JSON.parse('{"scroll":{"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"}}')},5007:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,'.Console {\n position: relative;\n width: 100%;\n height: calc(100vh);\n display: flex;\n}\n.Console .ConsoleInput_wrapper {\n flex: 1;\n min-width: 0;\n}\n.Console .ConsoleOutput_wrapper {\n width: 50%;\n}\n.Console .resizer {\n position: relative;\n z-index: 999;\n width: 14px;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #fafbfd;\n padding: 0;\n margin: 0;\n outline: none;\n border: none;\n cursor: col-resize;\n}\n.Console .resizer:hover {\n background-color: #cce1f0;\n}\n.Console .ant-tabs-content-right {\n padding-right: 0px;\n}\n.Console .ant-tabs-right > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane {\n padding-right: 0px;\n}\n.Console .console-headers-tabs {\n height: 100%;\n}\n.Console .console-headers-tabs .ant-tabs-nav {\n margin: 0;\n}\n.Console .console-headers-tabs .ant-tabs-tab {\n background-color: transparent;\n border: none;\n border-radius: 0;\n margin: 0;\n padding: 12px 16px;\n color: #666666;\n font-size: 14px;\n font-weight: 400;\n position: relative;\n transition: color 0.2s ease;\n}\n.Console .console-headers-tabs .ant-tabs-tab::after {\n content: \'\';\n position: absolute;\n right: 0;\n top: 50%;\n transform: translateY(-50%);\n width: 1px;\n height: 20px;\n background-color: #fff;\n}\n.Console .console-headers-tabs .ant-tabs-tab:last-child::after {\n display: none;\n}\n.Console .console-headers-tabs .ant-tabs-tab:hover {\n color: #333333;\n}\n.Console .console-headers-tabs .ant-tabs-tab.ant-tabs-tab-active {\n color: #1890ff;\n font-weight: 500;\n}\n.Console .console-headers-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #1890ff;\n position: relative;\n}\n.Console .console-headers-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn::after {\n content: \'\';\n position: absolute;\n bottom: -12px;\n left: 0;\n right: 0;\n height: 2px;\n background-color: #1890ff;\n border-radius: 1px;\n}\n.Console .console-headers-tabs .ant-tabs-ink-bar {\n display: none;\n}\n.Console .console-headers-tabs .ant-tabs-content-holder {\n height: calc(100% - 48px);\n}\n.Console .console-headers-tabs .ant-tabs-content-holder .ant-tabs-content {\n height: 100%;\n}\n.Console .console-headers-tabs .ant-tabs-content-holder .ant-tabs-content .ant-tabs-tabpane {\n height: 100%;\n}\n.Console .console-headers-tabs .ant-tabs-tabpane {\n height: 100%;\n padding: 0;\n}\n.Console [aria-orientation="vertical"] .ant-tabs-tab {\n padding: 8px 10px;\n writing-mode: vertical-lr;\n text-orientation: mixed;\n height: 60px;\n min-height: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 14px;\n background-color: transparent;\n border: none;\n border-radius: 0;\n margin-bottom: 0;\n transition: all 0.2s ease;\n color: rgba(0, 0, 0, 0.65);\n}\n.Console [aria-orientation="vertical"] .ant-tabs-tab:hover {\n background-color: #f5f5f5;\n color: #333333;\n}\n.Console [aria-orientation="vertical"] .ant-tabs-tab.ant-tabs-tab-active {\n background-color: #ffffff;\n color: #1890ff;\n font-weight: 500;\n}\n.Console [aria-orientation="vertical"] {\n width: 40px;\n}\n.Console [aria-orientation="vertical"] .ant-tabs-nav-wrap {\n width: 40px;\n}\n',""])},5080:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5328:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5473:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".dropdownList {\n padding: auto;\n}\n.dropdownList .ant-btn {\n padding: 0 8px;\n border-color: #ebebeb;\n color: #666;\n}\n.dropdownList .ant-btn,\n.dropdownList .ant-btn.ant-popover-open,\n.dropdownList .ant-btn:hover {\n background-color: #e8f6fe;\n}\n.dropdownList .ant-btn[disabled],\n.dropdownList .ant-btn[disabled]:hover {\n background-color: #eee;\n color: #bbb;\n cursor: not-allowed;\n}\n.dropdownList .button {\n width: 100%;\n}\n.dropdownList .button .content {\n display: flex;\n gap: 8px;\n justify-content: space-between;\n align-items: center;\n height: 100%;\n color: #666;\n}\n.dropdownList .button .content .label {\n flex: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: left;\n}\n.dropdownList .button .content .label .icon {\n color: #101010;\n margin-right: 8px;\n}\n.dropdownList .button .content .down {\n font-size: 10px;\n}\n.dropdownList .button .content .close {\n color: rgba(0, 0, 0, 0.25);\n font-size: 12px;\n display: none;\n}\n.dropdownList .button .content .multipleItem {\n background-color: #fff;\n padding: 0 4px;\n}\n.dropdownList .button .content .multipleItem:not(:last-child) {\n margin-right: 8px;\n}\n.dropdownList .button.allowClear:hover .down {\n display: none;\n}\n.dropdownList .button.allowClear:hover .close {\n display: initial;\n}\n.popover {\n padding-top: 8px;\n}\n.popover .ant-popover-arrow {\n display: none;\n}\n.popover .ant-popover-inner-content {\n padding: 0;\n}\n",""])},5477:(e,t,n)=>{var r={"./clear_scroll.json":9594,"./cluster.health.json":8899,"./cluster.put_component_template.json":7985,"./cluster.put_settings.json":9862,"./cluster.reroute.json":3445,"./count.json":8636,"./indices.analyze.json":6752,"./indices.clone.json":9997,"./indices.create.json":6640,"./indices.delete_template.json":406,"./indices.exists_template.json":2071,"./indices.get_field_mapping.json":4266,"./indices.get_mapping.json":6193,"./indices.get_template.json":7131,"./indices.put_alias.json":7481,"./indices.put_settings.json":1675,"./indices.put_template.json":1864,"./indices.rollover.json":4305,"./indices.update_aliases.json":510,"./indices.validate_query.json":1185,"./snapshot.create.json":6453,"./snapshot.create_repository.json":2174,"./snapshot.restore.json":8513,"./update_by_query.json":9739};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=5477},5552:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5695:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5799:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5830:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5837:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5846:function(e,t,n){var r;e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var i,s=2147483647,a=36,l=/^xn--/,c=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,f=String.fromCharCode;function h(e){throw new RangeError(p[e])}function m(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function _(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+m((e=e.replace(u,".")).split("."),t).join(".")}function g(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function y(e){return m(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+f(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function v(e,t,n){var r=0;for(e=n?d(e/700):e>>1,e+=d(e/t);e>455;r+=a)e=d(e/35);return d(r+36*e/(e+38))}function b(e){var t,n,r,o,i,l,c,u,p,f,m,_=[],g=e.length,w=0,b=128,x=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&h("not-basic"),_.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<g;){for(i=w,l=1,c=a;o>=g&&h("invalid-input"),((u=(m=e.charCodeAt(o++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:a)>=a||u>d((s-w)/l))&&h("overflow"),w+=u*l,!(u<(p=c<=x?1:c>=x+26?26:c-x));c+=a)l>d(s/(f=a-p))&&h("overflow"),l*=f;x=v(w-i,t=_.length+1,0==i),d(w/t)>s-b&&h("overflow"),b+=d(w/t),w%=t,_.splice(w++,0,b)}return y(_)}function x(e){var t,n,r,o,i,l,c,u,p,m,_,y,b,x,O,j=[];for(y=(e=g(e)).length,t=128,n=0,i=72,l=0;l<y;++l)(_=e[l])<128&&j.push(f(_));for(r=o=j.length,o&&j.push("-");r<y;){for(c=s,l=0;l<y;++l)(_=e[l])>=t&&_<c&&(c=_);for(c-t>d((s-n)/(b=r+1))&&h("overflow"),n+=(c-t)*b,t=c,l=0;l<y;++l)if((_=e[l])<t&&++n>s&&h("overflow"),_==t){for(u=n,p=a;!(u<(m=p<=i?1:p>=i+26?26:p-i));p+=a)O=u-m,x=a-m,j.push(f(w(m+O%x,0))),u=d(O/x);j.push(f(w(u,0))),i=v(n,b,r==o),n=0,++r}++n,++t}return j.join("")}i={version:"1.4.1",ucs2:{decode:g,encode:y},decode:b,encode:x,toASCII:function(e){return _(e,(function(e){return c.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return _(e,(function(e){return l.test(e)?b(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},5917:e=>{"use strict";e.exports=JSON.parse('{"search":{"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"}}')},5928:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},5986:e=>{"use strict";e.exports=JSON.parse('{"rank_eval":{"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"}}')},6057:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".tab-title {\n display: flex;\n align-items: center;\n gap: 4px;\n height: 20px;\n padding: 0;\n border-radius: 0;\n transition: background-color 0.2s ease;\n}\n.tab-title .input-eidtor {\n border-radius: 0;\n border: none;\n border-right: none;\n padding-left: 1em;\n color: rgba(0, 0, 0, 0.65);\n height: 20px;\n line-height: 20px;\n background-color: #939ea0;\n color: #fff;\n}\n.tab-title .input-eidtor:focus {\n outline: none;\n}\n.tab-title .icon-cont {\n height: 100%;\n display: flex;\n align-items: center;\n gap: 4px;\n}\n#console .ant-tabs-bar {\n margin: 0px 0 2px 0;\n}\n#console .console-main-tabs > .ant-tabs-nav .ant-tabs-tab,\n#console .console-main-tabs > .ant-tabs-nav .ant-tabs-tab-active {\n border-radius: 0;\n padding: 5px 16px;\n}\n#console .console-main-tabs > .ant-tabs-nav .ant-tabs-tab.ant-tabs-tab-active {\n border-radius: 0;\n background-color: #939ea0 !important;\n color: #fff !important;\n}\n#console .console-main-tabs > .ant-tabs-nav .ant-tabs-tab.ant-tabs-tab-active .tab-title .icon-cont {\n color: #fff;\n}\n#console .console-main-tabs > .ant-tabs-nav .ant-tabs-tab:hover,\n#console .console-main-tabs > .ant-tabs-nav .ant-tabs-tab-active:hover {\n background-color: rgba(147, 158, 160, 0.1);\n}\n#console .console-main-tabs > .ant-tabs-nav .ant-tabs-tab.ant-tabs-tab-active:hover {\n background-color: #939ea0 !important;\n}\n#console .console-main-tabs > .ant-tabs-nav .ant-tabs-nav-add {\n border-radius: 0;\n background: none;\n height: 32px;\n min-height: 32px;\n min-width: 32px;\n border: none;\n padding: 0;\n}\n",""])},6095:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6122:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6153:()=>{},6193:e=>{"use strict";e.exports=JSON.parse('{"indices.get_mapping":{"priority":10}}')},6277:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r=e[1]||"",o=e[3];if(!o)return r;if(t&&"function"==typeof btoa){var i=(n=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),s=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[r].concat(s).concat([i]).join("\n")}return[r].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var s=e[o];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},6307:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6324:(e,t,n)=>{"use strict";var r=n(9632),o=n(1536),i=n(7893),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},p=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:o.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},h={},m=function e(t,n,i,s,a,c,p,d,m,_,g,y,w,v,b,x,O,j){for(var E,k=t,S=j,T=0,N=!1;void 0!==(S=S.get(h))&&!N;){var C=S.get(t);if(T+=1,void 0!==C){if(C===T)throw new RangeError("Cyclic object value");N=!0}void 0===S.get(h)&&(T=0)}if("function"==typeof _?k=_(n,k):k instanceof Date?k=w(k):"comma"===i&&l(k)&&(k=o.maybeMap(k,(function(e){return e instanceof Date?w(e):e}))),null===k){if(c)return m&&!x?m(n,f.encoder,O,"key",v):n;k=""}if("string"==typeof(E=k)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||o.isBuffer(k))return m?[b(x?n:m(n,f.encoder,O,"key",v))+"="+b(m(k,f.encoder,O,"value",v))]:[b(n)+"="+b(String(k))];var R,A=[];if(void 0===k)return A;if("comma"===i&&l(k))x&&m&&(k=o.maybeMap(k,m)),R=[{value:k.length>0?k.join(",")||null:void 0}];else if(l(_))R=_;else{var P=Object.keys(k);R=g?P.sort(g):P}var L=d?n.replace(/\./g,"%2E"):n,q=s&&l(k)&&1===k.length?L+"[]":L;if(a&&l(k)&&0===k.length)return q+"[]";for(var I=0;I<R.length;++I){var D=R[I],M="object"==typeof D&&void 0!==D.value?D.value:k[D];if(!p||null!==M){var F=y&&d?D.replace(/\./g,"%2E"):D,z=l(k)?"function"==typeof i?i(q,F):q:q+(y?"."+F:"["+F+"]");j.set(t,T);var U=r();U.set(h,j),u(A,e(M,z,i,s,a,c,p,d,"comma"===i&&x&&l(k)?null:m,_,g,y,w,v,b,x,O,U))}}return A};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!s.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,o=i.formatters[n],c=f.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in a?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):l(c.filter)&&(n=c.filter);var p=[];if("object"!=typeof o||null===o)return"";var d=a[c.arrayFormat],h="comma"===d&&c.commaRoundTrip;n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var _=r(),g=0;g<n.length;++g){var y=n[g];c.skipNulls&&null===o[y]||u(p,m(o[y],y,d,h,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,_))}var w=p.join(c.delimiter),v=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),w.length>0?v+w:""}},6453:e=>{"use strict";e.exports=JSON.parse('{"snapshot.create":{"data_autocomplete_rules":{"indices":"*","ignore_unavailable":{"__one_of":[true,false]},"include_global_state":{"__one_of":[true,false]},"partial":{"__one_of":[true,false]}}}}')},6461:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6465:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6472:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6495:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6502:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6529:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6543:e=>{"use strict";e.exports=JSON.parse('{"search_shards":{"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"}}')},6616:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6640:e=>{"use strict";e.exports=JSON.parse('{"indices.create":{"data_autocomplete_rules":{"mappings":{"__scope_link":"put_mapping"},"settings":{"__scope_link":"put_settings"},"aliases":{"__template":{"NAME":{}}}}}}')},6644:e=>{"use strict";e.exports=JSON.parse('{"update":{"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"}}')},6752:e=>{"use strict";e.exports=JSON.parse('{"indices.analyze":{"data_autocomplete_rules":{"text":[],"field":"{field}","analyzer":"","tokenizer":"","char_filter":[],"filter":[],"explain":{"__one_of":[false,true]},"attributes":[]}}}')},6808:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},6847:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".console-menu-popover .menu-btn {\n padding: 12px;\n box-sizing: content-box;\n}\n.console-menu-popover .menu-btn:hover {\n background: none !important;\n text-decoration: underline;\n}\n.ant-popover .ant-popover-inner {\n padding: 0;\n}\n",""])},6871:(e,t,n)=>{var r=n(5473);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},7110:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7131:e=>{"use strict";e.exports=JSON.parse('{"indices.get_template":{"patterns":["_template","_template/{template}"]}}')},7277:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7299:e=>{"use strict";e.exports=JSON.parse('{"index":{"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"}}')},7335:e=>{"use strict";e.exports=JSON.parse('{"get_script_context":{"methods":["GET"],"patterns":["_script_context"]}}')},7369:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7379:e=>{"use strict";e.exports=TypeError},7388:e=>{"use strict";e.exports=SyntaxError},7401:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7408:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7425:e=>{"use strict";e.exports=JSON.parse('{"info":{"methods":["GET"],"patterns":[""],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"}}')},7453:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".fullscreen {\n position: fixed;\n width: 100%;\n left: 0;\n top: 0;\n height: 100vh;\n z-index: 100;\n}\n@keyframes slideInUp {\n from {\n transform: translate3d(0, 100%, 0);\n visibility: visible;\n }\n to {\n transform: translate3d(0, 0, 0);\n }\n}\n.slideInUp {\n animation-name: slideInUp;\n animation-duration: 0.2s;\n animation-fill-mode: both;\n animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);\n}\n",""])},7481:e=>{"use strict";e.exports=JSON.parse('{"indices.put_alias":{"data_autocomplete_rules":{"filter":{},"routing":"1","search_routing":"1,2","index_routing":"1"}}}')},7517:(e,t,n)=>{"use strict";var r=n(3790),o=n(7388),i=n(7379),s=n(1325);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!s&&s(e,t);if(r)r(e,t,{configurable:null===c&&p?p.configurable:!c,enumerable:null===a&&p?p.enumerable:!a,value:n,writable:null===l&&p?p.writable:!l});else{if(!u&&(a||l||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},7533:(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(3583);e.exports=i.call(r,o)},7570:e=>{"use strict";e.exports=RangeError},7598:(e,t,n)=>{var r=n(1908);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},7630:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7646:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7661:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7691:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7704:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7787:e=>{"use strict";e.exports=JSON.parse('{"get_script":{"url_params":{"master_timeout":""},"methods":["GET"],"patterns":["_scripts/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"}}')},7795:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7877:(e,t,n)=>{"use strict";var r=n(6324),o=n(2650),i=n(7893);e.exports={formats:i,parse:o,stringify:r}},7888:e=>{"use strict";e.exports=JSON.parse('{"cat.help":{"url_params":{"help":"__flag__","s":[]},"methods":["GET"],"patterns":["_cat"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html"}}')},7893:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},7944:e=>{"use strict";e.exports=JSON.parse('{"delete_script":{"url_params":{"timeout":"","master_timeout":""},"methods":["DELETE"],"patterns":["_scripts/{id}"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"}}')},7976:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},7978:e=>{"use strict";e.exports=JSON.parse('{"mtermvectors":{"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"}}')},7985:e=>{"use strict";e.exports=JSON.parse('{"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":false}}}')},7989:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".container {\n display: flex;\n overflow: hidden;\n}\n.container .group {\n border-right: 1px solid #ebebeb;\n width: 120px;\n}\n.container .group .item {\n padding: 0 8px 0 16px;\n height: 32px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n color: #666;\n gap: 8px;\n cursor: pointer;\n}\n.container .group .item.selected,\n.container .group .item:hover {\n background-color: #e8f6fe;\n}\n.container .group .item .label {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.container .group .item .icon {\n font-size: 10px;\n}\n.container .content {\n flex: 1;\n padding: 0px 16px;\n overflow: hidden;\n}\n.container .content .search {\n margin-top: 16px;\n}\n.container .content .tools {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-top: 8px;\n}\n.container .content .tools .result {\n color: #999;\n font-size: 12px;\n}\n.container .content .tools .actions {\n display: flex;\n justify-content: space-between;\n gap: 12px;\n color: #101010;\n font-size: 14px;\n align-items: center;\n}\n.container .content .tools .actions .ant-checkbox-inner {\n width: 14px;\n height: 14px;\n border-color: rgba(0, 0, 0, 0.65);\n transition: all 0.3s;\n}\n.container .content .tools .actions .ant-checkbox-checked .ant-checkbox-inner:after {\n top: 5px;\n left: 2px;\n transition: all 0.3s;\n}\n.container .content .tools .actions .ant-checkbox-indeterminate .ant-checkbox-inner::after {\n top: 50%;\n left: 50%;\n transition: all 0.3s;\n}\n.container .content .listWrapper {\n margin: 12px -6px 0;\n}\n.container .content .list .item {\n height: 32px;\n color: #666;\n cursor: pointer;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 6px;\n gap: 8px;\n}\n.container .content .list .item.selected,\n.container .content .list .item:hover {\n background-color: #e8f6fe;\n}\n.container .content .list .item .label {\n flex: 1;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: left;\n}\n.container .content .list .item .tag {\n color: #999;\n}\n.container .content .footerWrapper {\n margin: 0px -16px 0;\n}\n.container .content .footer {\n height: 40px;\n border-top: 1px solid #ebebeb;\n padding: 0 16px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 12px;\n}\n.container .content .footer .pager .pageNum {\n margin: 0 12px;\n}\n.container .content .footer .pager .icon {\n color: #007fff;\n cursor: pointer;\n}\n.container .content .footer .pager .icon.disabled {\n color: #c1c1c1;\n pointer-events: none;\n}\n.container .content .footer .actions {\n font-size: 12px;\n}\n.filterPopover .ant-popover-title {\n border: 0;\n}\n.filterPopover .ant-popover-inner-content {\n padding: 16px;\n}\n.sorter {\n width: 250px;\n}\n.sorter .title {\n color: #333;\n font-weight: 600;\n}\n.sorter .form {\n display: flex;\n gap: 6px;\n margin-top: 8px;\n}\n.sorter .actions {\n display: flex;\n justify-content: right;\n margin-top: 18px;\n}\n.filters {\n width: 250px;\n}\n.filters .title {\n color: #333;\n font-weight: 600;\n margin-bottom: 12px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.filters .title .clear {\n color: #007fff;\n font-size: 12px;\n cursor: pointer;\n}\n.filters .content {\n margin-bottom: 16px;\n}\n.filters .content .label {\n color: #999;\n}\n.filters .content .options {\n max-height: 150px;\n overflow-y: auto;\n}\n.filters .content .options .option {\n display: flex;\n justify-content: space-between;\n padding: 8px 0 0;\n}\n.filters .content:last-child {\n margin-bottom: 0;\n}\n",""])},8090:e=>{"use strict";e.exports=JSON.parse('{"clear_scroll":{"methods":["DELETE"],"patterns":["_search/scroll"],"documentation":"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api"}}')},8173:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8203:e=>{"use strict";e.exports=JSON.parse('{"update_by_query":{"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"}}')},8263:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8307:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8397:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8411:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8422:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8472:e=>{"use strict";e.exports=JSON.parse('{"reindex_rethrottle":{"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"}}')},8479:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8513:e=>{"use strict";e.exports=JSON.parse('{"snapshot.restore":{"data_autocomplete_rules":{"indices":"*","ignore_unavailable":{"__one_of":[true,false]},"include_global_state":false,"rename_pattern":"index_(.+)","rename_replacement":"restored_index_$1"}}}')},8534:(e,t,n)=>{"use strict";var r,o=n(9183),i=n(1101),s=n(7570),a=n(9898),l=n(7388),c=n(7379),u=n(4585),p=Function,d=function(e){try{return p('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var h=function(){throw new c},m=f?function(){try{return h}catch(e){try{return f(arguments,"callee").get}catch(e){return h}}}():h,_=n(3808)(),g=n(757)(),y=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),w={},v="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,b={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":_&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":w,"%AsyncGenerator%":w,"%AsyncGeneratorFunction%":w,"%AsyncIteratorPrototype%":w,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":w,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&y?y(""[Symbol.iterator]()):r,"%Symbol%":_?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":v,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(y)try{null.error}catch(e){var x=y(y(e));b["%Error.prototype%"]=x}var O=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(n=y(o.prototype))}return b[t]=n,n},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=n(3583),k=n(7533),S=E.call(Function.call,Array.prototype.concat),T=E.call(Function.apply,Array.prototype.splice),N=E.call(Function.call,String.prototype.replace),C=E.call(Function.call,String.prototype.slice),R=E.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,L=function(e,t){var n,r=e;if(k(j,r)&&(r="%"+(n=j[r])[0]+"%"),k(b,r)){var o=b[r];if(o===w&&(o=O(r)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===R(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=C(e,0,1),n=C(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];return N(e,A,(function(e,t,n,o){r[r.length]=n?N(o,P,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=L("%"+r+"%",t),i=o.name,s=o.value,a=!1,u=o.alias;u&&(r=u[0],T(n,S([0,1],u)));for(var p=1,d=!0;p<n.length;p+=1){var h=n[p],m=C(h,0,1),_=C(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===_||"'"===_||"`"===_)&&m!==_)throw new l("property names with quotes must have matching quotes");if("constructor"!==h&&d||(a=!0),k(b,i="%"+(r+="."+h)+"%"))s=b[i];else if(null!=s){if(!(h in s)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&p+1>=n.length){var g=f(s,h);s=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[h]}else d=k(s,h),s=s[h];d&&!a&&(b[i]=s)}}return s}},8555:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8560:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8566:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8569:(e,t,n)=>{var r,o,i={},s=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),a=function(e){var t={};return function(n){if(void 0===t[n]){var r=e.call(this,n);if(r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[n]=r}return t[n]}}((function(e){return document.querySelector(e)})),l=null,c=0,u=[],p=n(3716);function d(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var s=0;s<o.parts.length;s++)o.parts[s](r.parts[s]);for(;s<r.parts.length;s++)o.parts.push(y(r.parts[s],t))}else{var a=[];for(s=0;s<r.parts.length;s++)a.push(y(r.parts[s],t));i[r.id]={id:r.id,refs:1,parts:a}}}}function f(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],s=t.base?i[0]+t.base:i[0],a={css:i[1],media:i[2],sourceMap:i[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}function h(e,t){var n=a(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=u[u.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),u.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=a(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function _(e){var t=document.createElement("style");return e.attrs.type="text/css",g(t,e.attrs),h(e,t),t}function g(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function y(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var s=c++;n=l||(l=_(t)),r=b.bind(null,n,s,!1),o=b.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",g(t,e.attrs),h(e,t),t}(t),r=O.bind(null,n,t),o=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=_(t),r=x.bind(null,n),o=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return d(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var s=n[o];(a=i[s.id]).refs--,r.push(a)}for(e&&d(f(e,t),t),o=0;o<r.length;o++){var a;if(0===(a=r[o]).refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete i[a.id]}}}};var w,v=(w=[],function(e,t){return w[e]=t,w.filter(Boolean).join("\n")});function b(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=v(t,o);else{var i=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function x(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function O(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=p(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([r],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}},8580:e=>{"use strict";e.exports=JSON.parse('{"put_script":{"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"}}')},8623:e=>{"use strict";e.exports=JSON.parse('{"get_script_languages":{"methods":["GET"],"patterns":["_script_language"]}}')},8636:e=>{"use strict";e.exports=JSON.parse('{"count":{"priority":10,"data_autocomplete_rules":{"query":{}}}}')},8688:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8769:(e,t,n)=>{var r=n(3727);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},8899:e=>{"use strict";e.exports=JSON.parse('{"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"]}}}')},8966:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8981:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},8985:e=>{"use strict";e.exports=JSON.parse('{"update_by_query_rethrottle":{"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"}}')},9002:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9008:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9089:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9123:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9153:e=>{"use strict";e.exports=JSON.parse('{"exists":{"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"}}')},9155:t=>{"use strict";t.exports=e},9183:e=>{"use strict";e.exports=Error},9211:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9252:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9321:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9340:(e,t,n)=>{(e.exports=n(6277)(!1)).push([e.id,".request-status-bar {\n height: 100%;\n color: #333;\n display: flex;\n align-items: center;\n}\n.request-status-bar .bar-item {\n height: 100%;\n display: flex;\n align-items: center;\n}\n.request-status-bar .bar-item .base-info {\n display: flex;\n font-size: 12px;\n align-items: center;\n color: #333;\n}\n.request-status-bar .bar-item .base-info .info-item {\n margin: 0 12px;\n position: relative;\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n color: #333;\n}\n.request-status-bar .bar-item .base-info .info-item.health {\n padding-right: 14px;\n}\n.request-status-bar .bar-item .status_info {\n display: flex;\n font-size: 12px;\n align-items: center;\n color: #333;\n}\n.request-status-bar .bar-item .status_info .info-item {\n margin: 0 12px;\n color: #333;\n}\n",""])},9345:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9367:e=>{"use strict";e.exports=JSON.parse('{"get":{"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"}}')},9396:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9514:e=>{"use strict";e.exports=t},9594:e=>{"use strict";e.exports=JSON.parse('{"clear_scroll":{"data_autocomplete_rules":{"scroll_id":""}}}')},9632:(e,t,n)=>{"use strict";var r=n(8534),o=n(2787),i=n(2864),s=n(7379),a=r("%WeakMap%",!0),l=r("%Map%",!0),c=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),d=o("Map.prototype.get",!0),f=o("Map.prototype.set",!0),h=o("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new s("Side channel does not contain "+i(e))},get:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(l){if(t)return d(t,r)}else if(n)return function(e,t){var n=m(e,t);return n&&n.value}(n,r)},has:function(r){if(a&&r&&("object"==typeof r||"function"==typeof r)){if(e)return p(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){return!!m(e,t)}(n,r);return!1},set:function(r,o){a&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new a),u(e,r,o)):l?(t||(t=new l),f(t,r,o)):(n||(n={key:{},next:null}),function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,o))}};return r}},9655:(e,t,n)=>{var r=n(4717);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},9683:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9739:e=>{"use strict";e.exports=JSON.parse('{"update_by_query":{"data_autocomplete_rules":{"conflicts":"","query":{"__scope_link":"GLOBAL.query"},"script":{"__template":{"source":"","lang":"painless"},"__scope_link":"GLOBAL.script"}}}}')},9777:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9788:e=>{"use strict";e.exports=JSON.parse('{"count":{"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"}}')},9797:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9862:e=>{"use strict";e.exports=JSON.parse('{"cluster.put_settings":{"data_autocomplete_rules":{"persistent":{"cluster":{"routing":{"allocation.enable":{"__one_of":["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{"__one_of":[false,true]},"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":[false,true]}}},"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":[false,true]},"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":[false,true]}}},"indices":{"breaker":{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}}}}}')},9889:e=>{"use strict";e.exports=JSON.parse('{"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"}}')},9891:(e,t,n)=>{var r=n(6057);"string"==typeof r&&(r=[[e.id,r,""]]);n(8569)(r,{hmr:!0,transform:void 0}),r.locals&&(e.exports=r.locals)},9898:e=>{"use strict";e.exports=ReferenceError},9997:e=>{"use strict";e.exports=JSON.parse('{"indices.clone":{"data_autocomplete_rules":{"settings":{"__scope_link":"put_settings"},"aliases":{"__template":{"NAME":{}}}}}}')}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var i={};return(()=>{"use strict";o.r(i),o.d(i,{default:()=>as});const e=require("react/jsx-runtime");var t=o(9155),n=o.n(t);const r=require("re-resizable"),s=require("react-intl"),a=require("@ant-design/icons");var l=o.n(a);const c=require("antd/lib/button");var u=o.n(c);require("antd/lib/button/style/index.js");const p=require("antd/lib/popover");var d=o.n(p);require("antd/lib/popover/style/index.js");const f=require("lodash");var h=o.n(f);const m=require("antd/lib/checkbox");var _=o.n(m);require("antd/lib/checkbox/style/index.js");const g=require("antd/lib/divider");var y=o.n(g);require("antd/lib/divider/style/index.js");const w=require("antd/lib/input");var v=o.n(w);require("antd/lib/input/style/index.js");const b=require("antd/lib/select");var x=o.n(b);require("antd/lib/select/style/index.js"),o(2119);const O=function(t){var n=t.loading,r=void 0===n||n,o=t.currentLocales;return r?(0,e.jsxs)("div",{className:"loading",children:[(0,e.jsx)("img",{src:'data:image/svg+xml;utf8,<?xml version="1.0" standalone="no"?>\n<svg id="编组" width="201" height="169" viewBox="0 0 201 169" fill="none" xmlns="http://www.w3.org/2000/svg" style="max-width: 100%; max-height: 100%;">\n<path d="M151.456 73.9941H50.4559C25.3269 73.9941 4.9559 94.3652 4.9559 119.494C4.9559 144.623 25.3269 164.994 50.4559 164.994H151.456C176.585 164.994 196.956 144.623 196.956 119.494C196.956 94.3652 176.585 73.9941 151.456 73.9941Z" stroke="#DADADA" stroke-width="8" stroke-dasharray="0,0,0,487.9254150390625">\n <animate attributeType="XML" attributeName="stroke-dasharray" repeatCount="indefinite" dur="2.5s" values="0,0,0,487.9254150390625; 0,243.96270751953125,243.96270751953125,0; 487.9254150390625,0,0,0; 487.9254150390625,0,0,0" keyTimes="0; 0.5; 0.8; 1" fill="freeze"></animate>\n <animate attributeType="XML" attributeName="opacity" repeatCount="indefinite" dur="2.5s" values="1;1;1;0" keyTimes="0; 0.5; 0.8; 1" fill="freeze"></animate>\n</path>\n<path d="M188.956 145.994L39.6152 74.269" stroke="#DADADA" stroke-width="8" stroke-dasharray="0,0,0,165.67181396484375">\n <animate attributeType="XML" attributeName="stroke-dasharray" repeatCount="indefinite" dur="2.5s" values="0,0,0,165.67181396484375; 0,82.83590698242188,82.83590698242188,0; 165.67181396484375,0,0,0; 165.67181396484375,0,0,0" keyTimes="0; 0.5; 0.8; 1" fill="freeze"></animate>\n <animate attributeType="XML" attributeName="opacity" repeatCount="indefinite" dur="2.5s" values="1;1;1;0" keyTimes="0; 0.5; 0.8; 1" fill="freeze"></animate>\n</path>\n<path d="M40.1212 75.4677C81.667 52.5069 104.876 39.8644 109.747 37.5402C117.054 34.0538 150.997 26.0252 169.353 56.0201C175.128 65.4571 177.702 74.4539 177.074 83.0105" stroke="#DADADA" stroke-width="8" stroke-dasharray="0,0,0,175.83224487304688">\n <animate attributeType="XML" attributeName="stroke-dasharray" repeatCount="indefinite" dur="2.5s" values="0,0,0,175.83224487304688; 0,87.91612243652344,87.91612243652344,0; 175.83224487304688,0,0,0; 175.83224487304688,0,0,0" keyTimes="0; 0.5; 0.8; 1" fill="freeze"></animate>\n <animate attributeType="XML" attributeName="opacity" repeatCount="indefinite" dur="2.5s" values="1;1;1;0" keyTimes="0; 0.5; 0.8; 1" fill="freeze"></animate>\n</path>\n<path d="M32.2912 77.5453C48.1729 52.9995 57.2963 38.1487 59.5319 35.0136C64.2324 28.422 90.0277 4.9438 120.624 22.2788C125.755 25.1859 130.629 30.4688 134.047 34.0392" stroke="#DADADA" stroke-width="8" stroke-dasharray="0,0,0,136.42384338378906">\n <animate attributeType="XML" attributeName="stroke-dasharray" repeatCount="indefinite" dur="2.5s" values="0,0,0,136.42384338378906; 0,68.21192169189453,68.21192169189453,0; 136.42384338378906,0,0,0; 136.42384338378906,0,0,0" keyTimes="0; 0.5; 0.8; 1" fill="freeze"></animate>\n <animate attributeType="XML" attributeName="opacity" repeatCount="indefinite" dur="2.5s" values="1;1;1;0" keyTimes="0; 0.5; 0.8; 1" fill="freeze"></animate>\n</path>\n</svg>\n'}),(0,e.jsx)("div",{className:"tips",children:o["dropdownlist.loading"]})]}):null};o(8769);const j=function(t){var n=t.currentLocales,r=t.failed;return void 0===r||r?(0,e.jsxs)("div",{className:"error",children:[(0,e.jsx)(a.CloseCircleOutlined,{}),(0,e.jsx)("div",{className:"tips",children:n["dropdownlist.loading.failed"]})]}):null},E=require("antd/lib/empty");var k=o.n(E);require("antd/lib/empty/style/index.js"),o(7598);const S=function(t){return(0,e.jsx)("div",{className:"empty",children:(0,e.jsx)(k(),{image:k().PRESENTED_IMAGE_SIMPLE})})};o(1871);var T=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};const N=function(n){var r=n.visible,o=n.value,i=n.onChange,s=n.loading,l=void 0!==s&&s,c=n.failed,p=void 0!==c&&c,h=n.rowKey,m=n.renderItem,g=n.renderTag,w=n.renderEmptyList,b=n.onSearchChange,E=n.searchValue,k=n.sorterOptions,N=n.pagination,C=n.data,R=n.sorter,A=n.onSorterChange,P=n.filters,L=n.onFiltersChange,q=n.filterOptions,I=n.groups,D=n.onGroupsChange,M=n.groupOptions,F=n.currentLocales,z=n.showGroup,U=n.onShowGroupChange,B=n.isMultiple,G=n.extraData,J=void 0===G?[]:G,$=n.searchPlaceholder,V=n.onRefresh,H=n.actions,W=void 0===H?[]:H,K=(0,t.useState)([]),Q=K[0],Y=K[1],X=(0,t.useState)(!1),Z=X[0],ee=X[1],te=(0,t.useRef)(null),ne=(0,t.useCallback)((function(){setTimeout((function(){U(!1),b()}),500)}),[U,b]),re=function(e,t){var n=T([],Q,!0);n[t]=e,Y(n)};(0,t.useEffect)((function(){te.current&&r&&te.current.focus()}),[r,te]),(0,t.useEffect)((function(){r||ne()}),[r,ne]),(0,t.useEffect)((function(){Y(R)}),[R]);var oe=N.currentPage,ie=N.pageSize,se=N.total,ae=N.pages,le=(0,t.useMemo)((function(){if(void 0===I[0])return[];var e=M.find((function(e){return e.value===I[0].value}));return(null==e?void 0:e.list)||[]}),[M,I]),ce=(0,t.useMemo)((function(){return!!B&&(B?0!==(null==o?void 0:o.length)&&(!!C.every((function(e){return-1!==o.findIndex((function(t){return t[h]===e[h]}))}))||!!C.some((function(e){return-1!==o.findIndex((function(t){return t[h]===e[h]}))}))&&"indeterminate"):void 0)}),[B,JSON.stringify(C),JSON.stringify(o)]),ue=function(t,n){return z&&0!==t.length?(0,e.jsx)("div",{className:"group",children:t.map((function(t){var r;return(0,e.jsxs)("div",{className:"".concat("item"," ").concat((null===(r=I[n])||void 0===r?void 0:r.value)===t.value?"selected":""),onClick:function(){return function(e,t){var n,r=T([],I,!0);(null===(n=r[e])||void 0===n?void 0:n.value)===t.value?r.splice(e,1):r[e]={key:t.key,value:t.value},r.splice(e+1,r.length),D(r)}(n,t)},title:t.label,children:[(0,e.jsx)("span",{className:"label",children:t.label}),(0,e.jsx)(a.RightOutlined,{className:"icon"})]},t.value)}))}):null},pe=W.concat(V?[(0,e.jsx)("a",{disabled:l,onClick:function(){l||V()},children:F["dropdownlist.refresh"]})]:[]);return(0,e.jsxs)("div",{className:"container",children:[ue(M,0),ue(le,1),(0,e.jsxs)("div",{className:"content",children:[(0,e.jsx)(v(),{ref:te,value:E,onChange:function(e){l||function(e){b(e.trim())}(e.target.value)},allowClear:!0,className:"search",placeholder:$||F["dropdownlist.search.placeholder"]}),(0,e.jsxs)("div",{className:"tools",children:[(0,e.jsxs)("div",{className:"result",children:[F["dropdownlist.result.found"]," ",!1===N?C.length:se," ",F["dropdownlist.result.records"]]}),(0,e.jsxs)("div",{className:"actions",children:[k.length>0&&(0,e.jsx)(d(),{open:Z,onOpenChange:ee,overlayClassName:"filterPopover",placement:"bottom",trigger:"click",content:(0,e.jsxs)("div",{className:"sorter",children:[(0,e.jsx)("div",{className:"title",children:F["dropdownlist.sort.by"]}),(0,e.jsxs)("div",{className:"form",children:[(0,e.jsx)(x(),{value:Q[0],style:{width:"65%"},onChange:function(e){return re(e,0)},children:k.map((function(t){return(0,e.jsx)(x().Option,{value:t.key,children:t.label},t.key)}))}),(0,e.jsxs)(x(),{value:Q[1],style:{width:"35%"},onChange:function(e){return re(e,1)},children:[(0,e.jsx)(x().Option,{value:"desc",children:F["dropdownlist.sort.by.desc"]}),(0,e.jsx)(x().Option,{value:"asc",children:F["dropdownlist.sort.by.asc"]})]})]}),(0,e.jsxs)("div",{className:"actions",children:[(0,e.jsx)(u(),{type:"link",onClick:function(){A([]),ee(!1)},children:F["dropdownlist.sort.by.clear"]}),(0,e.jsx)(u(),{style:{width:80},type:"primary",onClick:function(){A(Q),ee(!1)},children:F["dropdownlist.apply"]})]})]}),children:(0,e.jsx)(a.SortAscendingOutlined,{style:{cursor:"pointer"}})}),q.length>0&&(0,e.jsx)(d(),{overlayClassName:"filterPopover",placement:"bottom",trigger:"click",content:(0,e.jsxs)("div",{className:"filters",children:[(0,e.jsxs)("div",{className:"title",children:[F["dropdownlist.filters"],(0,e.jsx)(ReloadOutlined,{className:"clear",onClick:function(){L({})}})]}),q.map((function(t){return(0,e.jsxs)("div",{className:"content",children:[(0,e.jsx)("div",{className:"label",children:t.label}),(0,e.jsx)("div",{className:"options",children:(t.list||[]).map((function(n){return(0,e.jsxs)("div",{className:"option",children:[(0,e.jsx)(_(),{onChange:function(e){return function(e,t,n){var r=(0,f.cloneDeep)(P),o=r[e]||[],i=o.indexOf(t);-1===i?n&&o.push(t):n||o.splice(i,1),r[e]=o,L(r)}(t.key,n.value,e.target.checked)},checked:-1!==(P[t.key]||[]).indexOf(n.value),children:n.label||n.value}),void 0!==n.count&&(0,e.jsx)("div",{children:n.count})]},n.value)}))})]},t.key)}))]}),children:(0,e.jsx)(FilterOutlined,{style:{cursor:"pointer"}})}),M.length>0&&(0,e.jsx)(LayoutOutlined,{style:{cursor:"pointer"},onClick:function(){U(!z)}}),B&&(0,e.jsx)(_(),{indeterminate:"indeterminate"===ce,onChange:function(e){return t=e.target.checked,n=(0,f.cloneDeep)(o||[]),C.forEach((function(e){var r=n.findIndex((function(t){return t[h]===e[h]}));-1===r&&t?n.push(e):-1===r||t||n.splice(r,1)})),void i(n);var t,n},checked:!0===ce})]})]}),(0,e.jsx)("div",{className:"listWrapper",children:(0,e.jsx)("div",{className:"list",style:{maxHeight:"".concat(32*(ie+J.length),"px")},children:l?(0,e.jsx)(O,{currentLocales:F}):p?(0,e.jsx)(j,{currentLocales:F}):0===C.length&&0===J.length?w?w():(0,e.jsx)(S,{}):J.concat(C).map((function(t){var n=B?-1!==(o||[]).findIndex((function(e){return e[h]===t[h]})):(null==o?void 0:o[h])===t[h];return(0,e.jsxs)("div",{className:"".concat("item"," ").concat(n?"selected":""),onClick:function(){return function(e){if(B){var t=(0,f.cloneDeep)(o)||[],n=t.findIndex((function(t){return t[h]===e[h]}));-1===n?t.push(e):t.splice(n,1),i(t)}else i(e)}(t)},children:[(0,e.jsx)("div",{className:"label",children:m?m(t):t[h]}),g&&!z?(0,e.jsx)("div",{className:"tag",children:m?g(t):t[h]}):null,n&&(0,e.jsx)(a.CheckOutlined,{})]},t[h])}))})}),!1===N?null:(0,e.jsx)("div",{className:"footerWrapper",children:(0,e.jsxs)("div",{className:"footer",children:[(0,e.jsx)("div",{className:"actions",children:pe.map((function(n,r){return(0,e.jsxs)(t.Fragment,{children:[n,r!==pe.length-1&&(0,e.jsx)(y(),{type:"vertical"})]},r)}))}),(0,e.jsxs)("div",{className:"pager",children:[(0,e.jsx)(a.LeftOutlined,{onClick:function(){return N.onChange(oe-1)},className:"".concat("icon"," ").concat(oe<=1?"disabled":"")}),(0,e.jsxs)("span",{className:"pageNum",children:[oe,"/",ae]}),(0,e.jsx)(a.RightOutlined,{onClick:function(){return N.onChange(oe+1)},className:"".concat("icon"," ").concat(oe>=ae?"disabled":"")})]})]})})]})]})};var C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},C.apply(this,arguments)};const R=function(n){var r=n.visible,o=n.data,i=void 0===o?[]:o,s=n.pagination,a=n.searchKey,l=n.searchValue,c=n.sorter,u=n.filters,p=n.groups,d=(0,t.useState)(),h=d[0],m=d[1],_=(0,t.useMemo)((function(){var e=(0,f.cloneDeep)(i);a&&l&&(e=e.filter((function(e){return-1!=="".concat(e[a]||"").toLowerCase().indexOf(l.toLowerCase())}))),p.filter((function(e){return void 0!==e.value&&""!==e.value&&!!e.key})).forEach((function(t){e=e.filter((function(e){return!e.hasOwnProperty(t.key)||e[t.key]===t.value}))}));var t=Object.keys(u);if(t.length>0&&t.filter((function(e){return 0!==(u[e]||[]).length})).forEach((function(t){e=e.filter((function(e){return-1!==u[t].indexOf(e[t])}))})),c.length>=2&&c[0]&&c[1]){var n=c[0],r=c[1];e=e.sort((function(e,t){return"string"==typeof e[n]?r===D?t[n].localeCompare(e[n]):e[n].localeCompare(t[n]):isNaN(e[n])?0:r===D?t[n]-e[n]:e[n]-t[n]}))}return e}),[JSON.stringify(i),a,l,JSON.stringify(c),JSON.stringify(u),JSON.stringify(p)]);(0,t.useEffect)((function(){if(!1!==s){var e=_.length,t=(null==s?void 0:s.pageSize)||I;m({currentPage:e?1:0,pageSize:t,total:e,pages:Math.ceil(e/t)})}else m(!1)}),[_,s]);var g=(0,t.useMemo)((function(){if(!h)return _;var e=h.currentPage,t=h.pageSize;return _.filter((function(n,r){return r>=(e-1)*t&&r<e*t}))}),[_,h]);return(0,e.jsx)(N,C({},n,{visible:r,data:g,pagination:!1!==h&&C(C({},h),{onChange:function(e){var t=h.pages;e<0||e>t||m(C(C({},h),{currentPage:e}))}})}))};var A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},A.apply(this,arguments)};const P=function(t){var n=t.visible,r=t.data,o=void 0===r?[]:r,i=t.pagination,s=void 0===i?{}:i,a=s.total||o.length,l=s.pageSize||I;return(0,e.jsx)(N,A({},t,{visible:n,data:o,pagination:A(A({},s),{pageSize:l,pages:Math.ceil(a/l)})}))},L={"en-US":{"dropdownlist.search.placeholder":"Search...","dropdownlist.result.found":"Found","dropdownlist.result.records":"records","dropdownlist.sort.by":"Sort By","dropdownlist.sort.by.desc":"Desc","dropdownlist.sort.by.asc":"Asc","dropdownlist.sort.by.clear":"Clear sorting","dropdownlist.filters":"Filters","dropdownlist.apply":"Apply","dropdownlist.loading":"Loading...","dropdownlist.loading.failed":"Load failed","dropdownlist.refresh":"Refresh"},"zh-CN":{"dropdownlist.search.placeholder":"搜索","dropdownlist.result.found":"找到","dropdownlist.result.records":"结果","dropdownlist.sort.by":"排序","dropdownlist.sort.by.desc":"降序","dropdownlist.sort.by.asc":"升序","dropdownlist.sort.by.clear":"清除排序","dropdownlist.filters":"过滤","dropdownlist.apply":"应用","dropdownlist.loading":"加载中...","dropdownlist.loading.failed":"加载失败","dropdownlist.refresh":"刷新"}};o(6871);var q=function(){return q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},q.apply(this,arguments)},I=10,D="desc";const M=function(n){var r=n.className,o=void 0===r?"":r,i=n.popoverClassName,s=void 0===i?"":i,l=n.popoverPlacement,c=void 0===l?"bottomLeft":l,p=n.children,h=n.width,m=void 0===h?300:h,_=n.dropdownWidth,g=n.locale,y=void 0===g?"en-US":g,w=n.allowClear,v=void 0!==w&&w,b=n.mode,x=void 0===b?"":b,O=n.value,j=n.disabled,E=void 0!==j&&j,k=n.onChange,S=n.placeholder,T=void 0===S?"":S,N=n.loading,C=void 0!==N&&N,A=n.data,I=void 0===A?[]:A,D=n.rowKey,M=n.renderItem,F=n.renderLabel,z=n.pagination,U=n.onSearchChange,B=void 0===U?function(){}:U,G=n.sorter,J=void 0===G?[]:G,$=n.onSorterChange,V=void 0===$?function(){}:$,H=n.sorterOptions,W=void 0===H?[]:H,K=n.filters,Q=void 0===K?{}:K,Y=n.onFiltersChange,X=void 0===Y?function(){}:Y,Z=n.filterOptions,ee=void 0===Z?[]:Z,te=n.groups,ne=void 0===te?[]:te,re=n.onGroupsChange,oe=void 0===re?function(){}:re,ie=n.groupOptions,se=void 0===ie?[]:ie,ae=n.onGroupVisibleChange,le=void 0===ae?function(){}:ae,ce=n.autoAdjustOverflow,ue=void 0===ce?{adjustX:1}:ce,pe=n.getPopupContainer,de=void 0===pe?function(e){return e.parentNode}:pe,fe=(n.extraData,n.showListIcon),he=void 0===fe||fe,me=(0,t.useState)(!1),_e=me[0],ge=me[1],ye=(0,t.useState)(!1),we=ye[0],ve=ye[1],be=(0,t.useState)(),xe=be[0],Oe=be[1],je=(0,t.useState)(),Ee=je[0],ke=je[1],Se=(0,t.useRef)(null),Te=(0,t.useMemo)((function(){return"multiple"===x&&(void 0===O||Array.isArray(O))}),[x,O]),Ne=function(e){return F?F(e):M?M(e):e[D]};(0,t.useEffect)((function(){!_&&isNaN(Number(m))&&Se.current&&ke(Se.current.offsetWidth)}),[_,m,Se]);var Ce=_||m;isNaN(Number(Ce))?Ee&&(Ce="".concat(Ee,"px")):Ce="".concat(Ce,"px"),we&&(Ce="calc(".concat(Ce," + ").concat(120*ne.length||120,"px)"));var Re,Ae,Pe=(Re=(0,e.jsx)("span",{style:{color:"#999"},children:T}),Te?(null==O?void 0:O.length)>0?(0,e.jsx)(e.Fragment,{children:O.filter((function(e){return!(!e||!e[D])})).map((function(t,n){return(0,e.jsxs)("span",{className:"".concat("multipleItem"," common-ui-dropdownlist-multiple-item"),style:{backgroundColor:E?"#c4c4c4":"#fff"},children:[Ne(t),(0,e.jsx)(a.CloseOutlined,{style:{marginLeft:4,fontSize:10},onClick:function(e){e.stopPropagation(),function(e){var t=(0,f.cloneDeep)(O)||[];t.splice(e,1),k(t)}(n)}})]},n)}))}):Re:O&&O[D]?Ne(O):Re);return(0,e.jsx)("div",{className:"".concat("dropdownList"," ").concat(o),style:{width:m},ref:Se,children:(0,e.jsx)(d(),{open:!E&&_e,onOpenChange:function(e){ge(e)},placement:c,content:(Ae=q(q({},n),{value:O,loading:C,data:I,onSearchChange:function(e){Oe(e),B(e)},searchValue:xe,sorter:J,onSorterChange:V,sorterOptions:W,filters:Q,onFiltersChange:X,filterOptions:ee,groups:ne,onGroupsChange:oe,groupOptions:se,visible:_e,onChange:function(e){k(e),Te||ge(!1)},currentLocales:L[y]||{},showGroup:we,onShowGroupChange:function(e){ve(e),le(e)},isMultiple:Te}),z&&z.currentPage&&z.total?(0,e.jsx)(P,q({},Ae)):(0,e.jsx)(R,q({},Ae))),trigger:"click",overlayClassName:"".concat("popover"," ").concat(s),overlayStyle:{width:Ce,height:126+32*((null==z?void 0:z.pageSize)||10)},autoAdjustOverflow:ue,getPopupContainer:de,children:p||(0,e.jsx)(u(),{style:{width:"100%"},disabled:E,className:"".concat("button"," common-ui-dropdownlist-select ").concat(v?"allowClear":""),children:(0,e.jsxs)("div",{className:"content",children:[(0,e.jsxs)("div",{className:"label",children:[he&&(0,e.jsx)(a.BarsOutlined,{className:"icon"}),(0,e.jsx)("span",{children:Pe})]}),_e?(0,e.jsx)(a.UpOutlined,{className:"down"}):(0,e.jsx)(a.DownOutlined,{className:"down"}),v&&(0,e.jsx)(a.CloseCircleOutlined,{onClick:function(e){e.stopPropagation(),k(Te?[]:void 0)},theme:"filled",className:"close"})]})})})})};var F="#00bb1b",z="#fcca00",U="#ff4d4f",B="#bbbbbb",G="#d8d8d8",J={green:F,yellow:z,red:U,available:F,unavailable:G,online:F,offline:G,active:z,normal:F,acknowledged:F,error:U,gray:B},$=function(t){var n,r=(n=t.status,J[n]);return(0,e.jsx)("div",{style:{background:r,height:16,width:5,display:"inline-block"}})},V=function(){return V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},V.apply(this,arguments)};const H=(0,t.forwardRef)((function(n,r){var o=n.className,i=n.popoverClassName,a=n.children,l=n.width,c=n.dropdownWidth,u=n.value,p=n.onChange,d=n.disabled,f=void 0!==d&&d,h=n.mode,m=void 0===h?"":h,_=n.filters,g=void 0===_?{}:_,y=(n.action,n.extraData),w=void 0===y?[]:y,v=n.getClusterList,b=(n.showCreate,n.getPopupContainer),x=void 0===b?function(e){return e.parentNode}:b,O=n.fetchDataSource,j=n.SearchEngineIcon,E=(0,t.useState)([]),k=E[0],S=E[1],T=(0,t.useState)({took:0,total:0,data:[]}),N=T[0],C=T[1],R=(0,t.useState)(!1),A=R[0],P=R[1],L=(0,t.useState)({from:0,size:10,keyword:""}),q=L[0],I=L[1],D=function(e,t,n){return r=void 0,o=void 0,s=function(){var r;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(o){switch(o.label){case 0:return P(!0),[4,O(e,t,n)];case 1:return r=o.sent(),C({data:null==r?void 0:r.data,total:(null==r?void 0:r.total)||0}),v&&v({data:null==r?void 0:r.data,total:(null==r?void 0:r.total)||0}),P(!1),[2]}}))},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function a(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,a)}l((s=s.apply(r,o||[])).next())}));var r,o,i,s};(0,t.useEffect)((function(){D(q,k,g)}),[JSON.stringify(q),JSON.stringify(k),JSON.stringify(g)]),(0,t.useImperativeHandle)(r,(function(){return{refresh:function(){return D(q,k,g)}}}));var F=N.data,z=N.total;return(0,e.jsx)(M,{getPopupContainer:x,disabled:f,mode:m,className:o,popoverClassName:i,width:l,dropdownWidth:c,locale:"en-US",value:u,onChange:function(e){p&&p(e)},rowKey:"id",loading:A,data:F.map((function(e){return V({},e._source)})),extraData:w,pagination:{currentPage:z?Math.floor(q.from/q.size)+1:0,total:z,onChange:function(e){I(V(V({},q),{from:(e-1)*q.size}))}},renderItem:function(t){var n,r;return(0,e.jsxs)(e.Fragment,{children:[(null===(n=t.labels)||void 0===n?void 0:n.health_status)&&(0,e.jsx)("div",{style:{marginRight:"5px",display:"inline-block",position:"relative",top:"3px"},children:(0,e.jsx)($,{status:null===(r=t.labels)||void 0===r?void 0:r.health_status})}),(0,e.jsx)("div",{style:{marginRight:"4px",display:"inline-block",position:"relative",top:"0px"},children:(0,e.jsx)(j,{distribution:t.distribution||g.distribution,width:"16px",height:"16px"})}),t.name]})},renderTag:function(e){return e.version},searchKey:"name",onSearchChange:function(e){I(V(V({},q),{keyword:e}))},sorter:k,onSorterChange:S,sorterOptions:[{label:(0,e.jsx)(s.FormattedMessage,{id:"cluster.monitor.summary.name"}),key:"name"}],onRefresh:function(){D(q,k,g)},actions:[],children:a})}));var W,K=(W=function(e,t){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},W(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}W(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});!function(t){function n(e){var n=t.call(this,e)||this;return n.handleItemClick=function(e){var t=n.props.onItemClick;t&&"function"==typeof t&&t(e)},n.getClusterList=function(e){var t,r,o;void 0===e&&(e={}),(null===(t=e.data)||void 0===t?void 0:t.length)>0&&0===(null===(r=n.props.panes)||void 0===r?void 0:r.length)&&n.handleItemClick(null===(o=e.data[0])||void 0===o?void 0:o._source)},n.state={data:n.props.data||[]},n}K(n,t),n.prototype.componentDidMount=function(){},n.prototype.render=function(){var t=this,n=this.props,r=(n.clusterStatus,n.DataSourceSelector,n.fetchDataSource),o=n.SearchEngineIcon;return(0,e.jsx)("div",{children:(0,e.jsx)(H,{width:34,dropdownWidth:400,onChange:function(e){return t.handleItemClick(e)},getClusterList:this.getClusterList,fetchDataSource:r,SearchEngineIcon:o,children:this.props.children})})}}(t.Component),o(9891);var Q=function(n){var r=n.title,o=n.onTitleChange,i=n.distribution,s=n.SearchEngineIcon,a=(0,t.useState)(!1),l=a[0],c=a[1],u=(0,t.useState)(r),p=u[0],d=u[1];(0,t.useEffect)((function(){var e;l&&(null===(e=f.current)||void 0===e||e.focus())}),[l]);var f=(0,t.useRef)(null);return(0,e.jsx)("div",{title:"double click to change title",className:"tab-title",onDoubleClick:function(){c(!0)},children:l?(0,e.jsx)("input",{ref:f,className:"input-eidtor",onKeyDown:function(e){13===e.which&&e.target.blur()},type:"text",value:p,onBlur:function(){c(!1)},onChange:function(e){var t=e.target.value;d(t),"function"==typeof o&&o(t)}}):(0,e.jsxs)("div",{className:"icon-cont",children:[(0,e.jsx)(s,{distribution:i,width:"14px",height:"14px"}),p]})})};const Y=require("react-dnd"),X=require("react-dnd-html5-backend");o(9514),require("classnames"),require("omit.js"),require("antd/lib/config-provider");const Z=require("antd/lib/tabs");var ee=o.n(Z);require("antd/lib/tabs/style/index.js"),o(217);var te=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ne=function(){return ne=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ne.apply(this,arguments)},re=function(n){function r(){var e=null!==n&&n.apply(this,arguments)||this;return e.removeTab=function(t,n){if(n.stopPropagation(),t){var r=e.props.onEdit;r&&r(t,"remove")}},e.handleChange=function(t){var n=e.props.onChange;n&&n(t)},e}return te(r,n),r.prototype.render=function(){var n=this,r=this.props,o=r.type,i=void 0===o?"line":o,s=r.tabPosition,a=r.children,l=r.items,c=r.animated,u=void 0===c||c,p=r.tabBarExtraContent,d=r.className,f=r.size,h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["type","tabPosition","children","items","animated","tabBarExtraContent","className","size"]);if(l)return(0,e.jsx)("div",{className:"flex-tabbar",children:(0,e.jsx)(ee(),ne({},h,{type:i,tabPosition:s,animated:u,tabBarExtraContent:p,className:d,size:f,onChange:this.handleChange,items:l}))});var m=a;return"editable-card"===i&&(m=t.Children.map(a,(function(e,r){if(!t.isValidElement(e))return e;var o=e.props.closable;return void 0===o||o?t.cloneElement(e,{closable:!0,onClose:function(t){return n.removeTab(e.key,t)}}):e}))),(0,e.jsx)("div",{className:"flex-tabbar",children:(0,e.jsx)(ee(),ne({},h,{type:i,tabPosition:s,animated:u,tabBarExtraContent:p,className:d,size:f,onChange:this.handleChange,children:m}))})},r.defaultProps={hideAdd:!1,tabPosition:"top"},r}(t.Component);const oe=re;var ie=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),se=function(){return se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},se.apply(this,arguments)},ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ie(t,e),t.prototype.render=function(){var e=this.props;return(0,e.connectDragSource)((0,e.connectDropTarget)(e.children))},t}(n().Component),le=(0,Y.DropTarget)("DND_NODE",{drop:function(e,t){var n=t.getItem().index,r=e.index;n!==r&&(e.moveTabNode(n,r),t.getItem().index=r)}},(function(e){return{connectDropTarget:e.dropTarget()}}))((0,Y.DragSource)("DND_NODE",{beginDrag:function(e){return{id:e.id,index:e.index}}},(function(e,t){return{connectDragSource:e.dragSource(),isDragging:t.isDragging()}}))(ae)),ce=function(t){function r(r){var o=t.call(this,r)||this;return o.moveTabNode=function(e,t){var r=o.state.order.slice(),i=o.props.children;n().Children.forEach(i,(function(e){-1===r.indexOf(e.key)&&r.push(e.key)}));var s=r.indexOf(e),a=r.indexOf(t);r.splice(s,1),r.splice(a,0,e),o.setState({order:r}),"function"==typeof o.props.onTabNodeMoved&&o.props.onTabNodeMoved(r)},o.renderTabBar=function(t,n){return(0,e.jsx)(n,se({},t,{children:function(t){return(0,e.jsx)(le,{index:t.key,moveTabNode:o.moveTabNode,children:t},t.key)}}))},o.state={order:r.initialOrder||[]},o}return ie(r,t),r.prototype.render=function(){var t=this.state.order,r=this.props.children,o=[];n().Children.forEach(r,(function(e){o.push(e)}));var i=o.slice().sort((function(e,n){var r=t.indexOf(e.key),i=t.indexOf(n.key);return-1!==r&&-1!==i?r-i:-1!==r?-1:-1!==i?1:o.indexOf(e)-o.indexOf(n)}));return(0,e.jsx)(Y.DndProvider,{backend:X.HTML5Backend,children:(0,e.jsx)(oe,se({renderTabBar:this.renderTabBar},this.props,{children:i}))})},r}(n().Component),ue=(o(9655),function(){return(0,e.jsx)("div",{className:"resize-bar",children:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"dash"}),(0,e.jsx)("div",{className:"dash"})]})})});const pe=require("antd/lib/tooltip");var de=o.n(pe);require("antd/lib/tooltip/style/index.js");const fe=function(n){var r=n.code,o=(0,t.useState)(!1),i=o[0],s=o[1];return(0,e.jsxs)("div",{style:{position:"relative"},children:[r?(0,e.jsx)(de(),{title:i?"Copied!":"Copy",children:(0,e.jsx)(a.CopyOutlined,{style:{position:"absolute",top:"10px",right:"10px",zIndex:1,border:"none",padding:"5px",cursor:"pointer"},onClick:function(){navigator.clipboard.writeText(r),s(!0),setTimeout((function(){return s(!1)}),2e3)}})}):null,r?(0,e.jsx)("pre",{style:{padding:"8px",margin:0,backgroundColor:"#F5F7FA",color:"#343741",fontSize:"12px",fontWeight:400,border:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",overflowX:"auto"},children:(0,e.jsx)("code",{children:r})}):null]})},he=require("brace");var me=o.n(he);function _e(e){for(var t=e.split('"""'),n=1;n<t.length-1;n+=2)t[n]=JSON.stringify(t[n]);return t.join("")}function ge(e){if(e.length>5242880)return e;var t=function(e){var t,n=0,r=!1,o=[];function i(){for(var t=n+1;t<e.length;){var r=e[t];if(r.match(/[^\s\r\n]/))return r;++t}}function s(){++n}for(;n<e.length;){var a=e[n];r?"\\"===a?s():'"'===a&&(":"!==i()&&o.push({startIndex:t,endIndex:n}),r=!1):'"'===a&&(t=n,r=!0),s()}return{stringValues:o}}(e).stringValues;if(0===t.length)return e;for(var n=e.substring(0,t[0].startIndex),r=0;r<t.length;r++){var o=t[r],i=o.startIndex,s=o.endIndex,a=e.substring(i,s+1);"\\"===a[1]&&'"'===a[2]||'"'===a[a.length-2]&&"\\"===a[a.length-3]||!a.match(/\\./)?n+=a:n+='"""'.concat(JSON.parse(a),'"""'),t[r+1]&&(n+=e.substring(s+1,t[r+1].startIndex))}return n+e.substring(t[t.length-1].endIndex+1)}var ye=function(){return ye=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ye.apply(this,arguments)},we=function(){function e(e,t){this.provider=e,this.currentTokenIdx=-1,this.currentPosition={lineNumber:-1,column:-1},this.tokensLineCache=this.provider.getTokens(t.lineNumber)||[];var n=this.tokensLineCache.findIndex((function(e){return function(e,t){return!(e<t.position.column)&&e<=t.position.column+t.value.length}(t.column,e)}));n>-1?this.updatePosition({tokenIdx:n,position:this.tokensLineCache[n].position}):this.updatePosition({tokenIdx:-1,position:t})}return e.prototype.updateLineTokens=function(e){this.tokensLineCache=e},e.prototype.updatePosition=function(e){this.currentTokenIdx=e.tokenIdx,this.currentPosition=ye({},e.position)},e.prototype.step=function(e){var t=this.currentTokenIdx+e,n=this.tokensLineCache[t];if(n)return this.updatePosition({tokenIdx:t,position:n.position}),n;var r=this.currentPosition.lineNumber+e,o=this.provider.getTokens(r);if(o){this.updateLineTokens(o);var i=void 0;e>0?(n=o[0],i=0):i=(n=o[o.length-1])?o.length-1:0;var s=n?n.position:{column:1,lineNumber:r};return this.updatePosition({tokenIdx:i,position:s}),n||null}return null},e.prototype.getCurrentToken=function(){return this.tokensLineCache[this.currentTokenIdx]||null},e.prototype.getCurrentPosition=function(){return this.currentPosition},e.prototype.stepBackward=function(){return this.step(-1)},e.prototype.stepForward=function(){return this.step(1)},e.prototype.getCurrentTokenLineNumber=function(){var e=this.getCurrentToken();return e?e.position.lineNumber:null},e.prototype.getCurrentTokenColumn=function(){var e=this.getCurrentToken();return e?e.position.column:null},e}();function ve(e){var t=e.editor,n=e.position,r=t.getTokenProvider();return new we(r,n)}function be(e,t){return JSON.stringify(e,null,t?2:0)}function xe(e,t){for(var n=!1,r=[],o=0;o<e.length;o++){var i=e[o];try{var s=be(JSON.parse(_e(i)),t);t&&(s=ge(s)),n=n||s!==i,r.push(s)}catch(e){console.log(e),r.push(i)}}return{changed:n,data:r}}const Oe=require("jquery");var je=o.n(Oe);require("query-string");function Ee(e){var t={"content-type":"application/json","X-Team-ID":localStorage.getItem("team_id"),"X-Project-ID":localStorage.getItem("project_id")};return fetch("".concat("/_search-center","/elasticsearch/command"),{method:"POST",body:JSON.stringify(e),headers:t})}var ke=function(){return ke=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ke.apply(this,arguments)},Se=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},Te=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},Ne=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Ce=function(){function e(e){var t=this;this.coreEditor=e,this.prevRequestStart=function(e){var n;for(n=null==e?t.coreEditor.getCurrentPosition().lineNumber:h().isObject(e)?e.lineNumber:e;n>0&&!t.parser.isStartRequestRow(n,t.coreEditor);)n--;return{lineNumber:n,column:1}},this.nextRequestStart=function(e){var n;n=null==e?t.coreEditor.getCurrentPosition().lineNumber:h().isObject(e)?e.lineNumber:e;for(var r=t.coreEditor.getLineCount();n<r-1&&!t.parser.isStartRequestRow(n,t.coreEditor);n++);return{row:n,column:0}},this.autoIndent=h().debounce((function(){return Se(t,void 0,void 0,(function(){var e,t,n,r;return Te(this,(function(o){switch(o.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return o.sent(),[4,this.getRequestRange()];case 2:return(e=o.sent())?[4,this.getRequest()]:[2];case 3:return(t=o.sent())?(t.data&&t.data.length>0&&(n=1===t.data.length,(r=xe(t.data,n)).changed||(n=!n,r=xe(t.data,n)),t.data=r.data,this.replaceRequestRange(t,e)),[2]):[2]}}))}))}),25),this.update=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return Se(t,Ne([e],n,!0),void 0,(function(e,t){return void 0===t&&(t=!1),Te(this,(function(n){return[2,this.coreEditor.setValue(e,t)]}))}))},this.replaceRequestRange=function(e,n){var r,o,i=("string"!=typeof(o=(r=e).data)&&(o=o.join("\n")),r.method+" "+r.url+"\n"+o);n?t.coreEditor.replaceRange(n,i):t.coreEditor.insert(t.coreEditor.getCurrentPosition(),i)},this.getRequestRange=function(e){return Se(t,void 0,Promise,(function(){var t,n;return Te(this,(function(r){switch(r.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return r.sent(),this.parser.isInBetweenRequestsRow(e)?[2,null]:(t=this.prevRequestStart(e),n=this.nextRequestEnd(t),[2,{start:ke({},t),end:ke({},n)}])}}))}))},this.expandRangeToRequestEdges=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Se(t,Ne([],e,!0),Promise,(function(e){var t,n,r,o;return void 0===e&&(e=this.coreEditor.getSelectionRange()),Te(this,(function(i){switch(i.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:if(i.sent(),t=e.start.lineNumber,n=e.end.lineNumber,r=Math.max(1,this.coreEditor.getLineCount()),this.parser.isInBetweenRequestsRow(t));else for(;t>=1&&!this.parser.isStartRequestRow(t);t--);if(t<1||t>n)return[2,null];if(this.parser.isInBetweenRequestsRow(n))for(;n>=t&&!this.parser.isEndRequestRow(n);n--);else for(;n<=r&&!this.parser.isEndRequestRow(n);n++);return n<t||n>r?[2,null]:(o=(this.coreEditor.getLineValue(n)||"").replace(/\s+$/,"").length+1,[2,{start:{lineNumber:t,column:1},end:{lineNumber:n,column:o}}])}}))}))},this.getRequestInRange=function(e){return Se(t,void 0,void 0,(function(){var t,n,r,o,i,s,a,l;return Te(this,(function(c){switch(c.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:if(c.sent(),!e)return[2,null];if(t={method:"",data:[],url:"",range:e},n=e.start,r=ve({editor:this.coreEditor,position:n}),o=r.getCurrentToken(),this.parser.isEmptyToken(o)&&(o=this.parser.nextNonEmptyToken(r)),null==o)return[2,null];if(t.method=o.value,!(o=this.parser.nextNonEmptyToken(r))||"method"===o.type)return[2,null];for(t.url="";o&&o.type&&0===o.type.indexOf("url");)t.url+=o.value,o=r.stepForward();for(this.parser.isEmptyToken(o)&&(o=this.parser.nextNonEmptyToken(r)),i=(o?0:1)+r.getCurrentPosition().lineNumber;i<e.end.lineNumber||i===e.end.lineNumber&&1<e.end.column;)s=this.nextDataDocEnd({lineNumber:i,column:1}),a={start:{lineNumber:i,column:1},end:s},l=this.coreEditor.getValueInRange(a),t.data.push(l.trim()),i=s.lineNumber+1;return[2,t]}}))}))},this.getRequestsInRange=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Se(t,Ne([],e,!0),Promise,(function(e,t){var n,r,o,i,s,a,l,c=this;return void 0===e&&(e=this.coreEditor.getSelectionRange()),void 0===t&&(t=!1),Te(this,(function(u){switch(u.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return u.sent(),e?[4,this.expandRangeToRequestEdges(e)]:[2,[]];case 2:if(!(n=u.sent()))return[2,[]];r=[],o=n.start.lineNumber,i=n.end.lineNumber,s=n.start.lineNumber,a=function(){if(t){var e=c.coreEditor.getLines(o,s-1).join("\n");e&&r.push(e)}},u.label=3;case 3:return s<=i?this.parser.isStartRequestRow(s)?(a(),[4,this.getRequest(s)]):[3,5]:[3,7];case 4:return(l=u.sent())?(r.push(l),o=s=l.range.end.lineNumber+1,[3,6]):[2,r];case 5:++s,u.label=6;case 6:return[3,3];case 7:return a(),[2,r]}}))}))},this.getRequest=function(e){return Se(t,void 0,void 0,(function(){var t;return Te(this,(function(n){switch(n.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return n.sent(),this.parser.isInBetweenRequestsRow(e)?[2,null]:[4,this.getRequestRange(e)];case 2:return t=n.sent(),[2,this.getRequestInRange(t)]}}))}))},this.moveToPreviousRequestEdge=function(){return Se(t,void 0,void 0,(function(){var e;return Te(this,(function(t){switch(t.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:for(t.sent(),(e=this.coreEditor.getCurrentPosition()).lineNumber--;e.lineNumber>1&&!this.parser.isRequestEdge(e.lineNumber);e.lineNumber--);return this.coreEditor.moveCursorToPosition({lineNumber:e.lineNumber,column:1}),[2]}}))}))},this.moveToNextRequestEdge=function(e){return Se(t,void 0,void 0,(function(){var t,n;return Te(this,(function(r){switch(r.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:for(r.sent(),t=this.coreEditor.getCurrentPosition(),n=this.coreEditor.getLineCount(),e||t.lineNumber++;t.lineNumber<n&&!this.parser.isRequestEdge(t.lineNumber);t.lineNumber++);return this.coreEditor.moveCursorToPosition({lineNumber:t.lineNumber,column:1}),[2]}}))}))},this.nextRequestEnd=function(e){e=e||t.coreEditor.getCurrentPosition();for(var n=t.coreEditor.getLineCount(),r=e.lineNumber;r<=n;++r){var o=t.parser.getRowParseMode(r);if((o&t.parser.MODE.REQUEST_END)>0)break;if(r!==e.lineNumber&&(o&t.parser.MODE.REQUEST_START)>0)break}return{lineNumber:r,column:(t.coreEditor.getLineValue(r)||"").replace(/\s+$/,"").length+1}},this.nextDataDocEnd=function(e){for(var n=(e=e||t.coreEditor.getCurrentPosition()).lineNumber,r=t.coreEditor.getLineCount();n<r;n++){var o=t.parser.getRowParseMode(n);if((o&t.parser.MODE.REQUEST_END)>0)break;if((o&t.parser.MODE.MULTI_DOC_CUR_DOC_END)>0)break;if(n!==e.lineNumber&&(o&t.parser.MODE.REQUEST_START)>0)break}return{lineNumber:n,column:(t.coreEditor.getLineValue(n)||"").length+1}},this.highlightCurrentRequestsAndUpdateActionBar=h().debounce((function(){return Se(t,void 0,void 0,(function(){var e;return Te(this,(function(t){switch(t.label){case 0:return[4,this.coreEditor.waitForLatestTokens()];case 1:return t.sent(),[4,this.expandRangeToRequestEdges()];case 2:return null===(e=t.sent())&&null===this.currentReqRange?[2]:null!==e&&null!==this.currentReqRange&&e.start.lineNumber===this.currentReqRange.start.lineNumber&&e.end.lineNumber===this.currentReqRange.end.lineNumber?(this.coreEditor.getCurrentPosition().lineNumber===this.currentReqRange.start.lineNumber&&this.updateActionsBar(),[2]):(this.currentReqRange&&this.coreEditor.removeMarker(this.currentReqRange.markerRef),this.currentReqRange=e,this.currentReqRange&&(this.currentReqRange.markerRef=this.coreEditor.addMarker(this.currentReqRange)),this.updateActionsBar(),[2])}}))}))}),25),this.getRequestsAsCURL=function(e,n){return Se(t,void 0,Promise,(function(){var t;return Te(this,(function(r){switch(r.label){case 0:return[4,this.getRequestsInRange(n,!0)];case 1:return t=r.sent(),[2,h().map(t,(function(t){if("string"==typeof t)return t;var n,r,o=t.url,i=t.method,s=t.data,a="curl -X"+i+' "'+(r=o,(n=e)&&(n=n.replace(/\/+$/,"")),n+"/"+r.replace(/^\/+/,"")+'"');return s&&s.length&&(a+=" -H 'Content-Type: application/json' -d'\n",a+=_e(s.join("\n")).replace(/'/g,"'\\''"),s.length>1&&(a+="\n"),a+="'"),a})).join("\n")]}}))}))},this.updateActionsBar=function(){return t.coreEditor.legacyUpdateUI(t.currentReqRange)},this.currentReqRange=null,this.parser=e.getParser(),this.coreEditor.on("tokenizerUpdate",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeCursor",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeScrollTop",this.updateActionsBar.bind(this))}return e.prototype.getCoreEditor=function(){return this.coreEditor},e}();require("brace/ext/language_tools"),require("brace/ext/searchbox"),require("brace/mode/json.js"),require("brace/mode/text");var Re=function(e,t,n){return{type:n.type,value:n.value,position:{lineNumber:e,column:t}}},Ae=function(){function e(e){this.session=e}return e.prototype.getTokens=function(e){if(e<1)return null;if(e>this.session.getLength())return null;var t=this.session.getTokens(e-1);return t&&t.length?function(e,t){var n="";return t.map((function(t){var r=n.length+1;return n+=t.value,Re(e,r,t)}))}(e,t):[]},e.prototype.getTokenAt=function(e){var t=this.session.getTokens(e.lineNumber-1);return t?function(e,t,n){for(var r="",o=0,i=n;o<i.length;o++){var s=i[o],a=r.length+1,l=(r+=s.value).length;if(!(t<a||t>l+1))return Re(e,a,s)}return null}(e.lineNumber,e.column,t):null},e}();function Pe(e){var t=e.resize,n=(0,f.throttle)((function(){t.call(e,!1);var r=(0,f.get)(n,"topRow",0);0!==r&&e.renderer.scrollToLine(r,!1,!1,(function(){}))}),35);return n}var Le=function(){function e(e){this.name=e}return e.prototype.getTerms=function(){return[]},e.prototype.match=function(){return{next:this.next}},e}(),qe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ie=function(e){function t(t,n){var r=e.call(this,t)||this;return r._nextDict={},n&&n.addComponent(r),r._parent=n,r}return qe(t,e),t.prototype.getComponent=function(e){return(this._nextDict[e]||[void 0])[0]},t.prototype.addComponent=function(e){var t=this._nextDict[e.name]||[];t.push(e),this._nextDict[e.name]=t,this.next=[].concat.apply([],h().values(this._nextDict))},t}(Le),De=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Me=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return h().isString(r)&&(r=[r]),o.options=r||[t],o}return De(t,e),t.prototype.getTerms=function(){return this.options},t.prototype.addOption=function(e){Array.isArray(e)||(e=[e]),[].push.apply(this.options,e),this.options=h().uniq(this.options)},t.prototype.match=function(t,n,r){return t!==this.name?null:e.prototype.match.call(this,t,n,r)},t}(Ie),Fe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ze=function(e){function t(t,n,r,o,i){var s=e.call(this,t,r)||this;return s.listGenerator=Array.isArray(n)?function(){return n}:n,s.multiValued=!!h().isUndefined(o)||o,s.allowNonValidValues=!h().isUndefined(i)&&i,s}return Fe(t,e),t.prototype.getTerms=function(e,t){if(!this.multiValued&&e.otherTokenValues)return[];var n=e.otherTokenValues||[];h().isString(n)&&(n=[n]);var r=h().difference(this.listGenerator(e,t),n);if(this.getDefaultTermMeta()){var o=this.getDefaultTermMeta();r=h().map(r,(function(e){return h().isString(e)&&(e={name:e}),h().defaults(e,{meta:o})}))}return r},t.prototype.validateTokens=function(e){if(!this.multiValued&&e.length>1)return!1;var t=this.listGenerator();return!h().some(e,(function(e){return-1===t.indexOf(e)}))},t.prototype.getContextKey=function(){return this.name},t.prototype.getDefaultTermMeta=function(){return this.name},t.prototype.match=function(t,n,r){if(Array.isArray(t)||(t=[t]),!this.allowNonValidValues&&!this.validateTokens(t,n,r))return null;var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values[this.getContextKey()]=t,o},t}(Ie),Ue=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Be=function(e){function t(t,n){return e.call(this,t,n)||this}return Ue(t,e),t.prototype.match=function(t,n,r){var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values[this.name]=t,o},t}(Ie),Ge=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Je=function(e){function t(t,n){var r=e.call(this,"__condition")||this;return r.predicate=t,r.delegate=n,r}return Ge(t,e),t.prototype.getTerms=function(e,t){return this.predicate(e,t)?this.delegate.getTerms(e,t):null},t.prototype.match=function(e,t,n){return!!this.predicate(t,n)&&this.delegate.match(e,t,n)},t}(Ie),$e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ve=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $e(t,e),t.prototype.getTerms=function(){return null},t.prototype.match=function(e,t){var n={next:[]},r=t.globalComponentResolver(e,!1);return r&&n.next.push.apply(n.next,r),n.next.length||(n.next=[this]),n},t}(Ie),He=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),We=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.constants=n,o.patternsAndWildCards=r,o}return He(t,e),t.prototype.getTerms=function(e,t){var n=[];return h().each(this.constants,(function(r){n.push.apply(n,r.getTerms(e,t))})),h().each(this.patternsAndWildCards,(function(r){n.push.apply(n,r.getTerms(e,t))})),n},t.prototype.match=function(e,t,n){var r={next:[]};h().each(this.constants,(function(o){var i=o.match(e,t,n);i&&i.next&&r.next.push.apply(r.next,i.next)}));var o=t.globalComponentResolver(e,!1);return o&&r.next.push.apply(r.next,o),r.next.length||h().each(this.patternsAndWildCards,(function(o){var i=o.match(e,t,n);i&&i.next&&r.next.push.apply(r.next,i.next)})),r},t}(Ie),Ke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qe="__url_path_end__",Ye=function(e){function t(t,n){var r=e.call(this,t.id,n)||this;return r.endpoint=t,r}return Ke(t,e),t.prototype.match=function(t,n,r){if(t!==Qe)return null;if(this.endpoint.methods&&-1===h().indexOf(this.endpoint.methods,n.method))return null;var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values.endpoint=this.endpoint,h().isNumber(this.endpoint.priority)&&(o.priority=this.endpoint.priority),o},t}(Ie),Xe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ze=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.template=r,o.name=t,o}return Xe(t,e),t.prototype.getTerms=function(){return[{name:this.name,snippet:this.template}]},t}(Me),et=function(){function e(e){var t=this;this.getTopLevelComponents=function(e){var t=this[e];return t?t.rootComponent.next:[]},["HEAD","GET","PUT","POST","DELETE"].forEach((function(n){t[n]={rootComponent:new Ie("ROOT"),parametrizedComponentFactories:e||{getComponent:function(){}}}}))}return e.prototype.addEndpoint=function(e,t){var n=this;t.methods.forEach((function(r){var o,i=n[r].rootComponent;t.template&&new Ze(e+"[body]",i,t.template);var s=t.url_components||{},a=e.split("/");h().each(a,(function(e,l){if(e.search(/^{.+}$/)>=0){if(e=e.substr(1,e.length-2),i.getComponent(e))return void(i=i.getComponent(e));(o=s[e])?Array.isArray(o)?o=new ze(e,o,i):h().isObject(o)&&"list"===o.type?o=new ze(e,o.list,i,o.multiValued,o.allow_non_valid):(console.warn("incorrectly configured url component ",e," in endpoint",t),o=new Ie(e)):o=(o=n[r].parametrizedComponentFactories.getComponent(e))?o(e,i):new Be(e,i),i=o}else{var c=e,u=void 0;for(l++;l<a.length&&!((u=a[l]).indexOf("{")>=0);l++)c+="/"+u;i.getComponent(e)?(i=i.getComponent(e)).addOption(c):(o=new Me(e,i,c),i=o)}})),new Ye(t,i)}))},e}(),tt={},nt={},rt={},ot=[],it="";function st(e,t){var n=nt[t]||{};if(!e)return e;"string"==typeof e&&(e=[e]),e=je().map(e,(function(e){return n[e]?n[e]:[e]}));var r,o=[].concat.apply([],e);return o.sort(),(o=je().map(o,(function(e){var t=r===e?null:e;return r=e,t}))).length>1?o:o[0]}function at(e){return e=e.editor.editor.clusterID||it,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],rt[e]||[],!0)}function lt(e,t,n){var r=tt[n=n||it]||{},o=[];if("string"==typeof(e=st(e,n))){var i=r[e];if(!i)return[];if("string"==typeof t){var s=i[t];o=s||[]}else je().each(i,(function(e,n){t&&0!==t.length&&-1===je().inArray(e,t)||o.push(n)})),o=[].concat.apply([],o)}else je().each(r,(function(r){e&&0!==e.length&&-1===je().inArray(r,e)||o.push(lt(r,t,n))})),o=[].concat.apply([],o);return h().uniqBy(o,(function(e){return e.name+":"+e.type}))}function ct(e,t){var n=tt[t]||{},r=[];if("string"==typeof(e=st(e,t))){var o=n[e];if(!o)return[];je().each(o,(function(e){r.push(e)}))}else je().each(n,(function(n){e&&-1===je().inArray(n,e)||r.push(ct(n,t))})),r=[].concat.apply([],r);return h().uniq(r)}function ut(e,t){var n;"string"!=typeof t&&(t=(null===(n=null==t?void 0:t.editor)||void 0===n?void 0:n.clusterID)||it);var r=tt[t]||{},o=nt[t]||[],i=[];return je().each(r,(function(e){i.push(e)})),(void 0===e||e)&&je().each(o,(function(e){i.push(e)})),i}function pt(e){e.editor;var t=[];return ot.forEach((function(e){t.push(e._source.title)})),t}var dt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function ft(e){return!("_all"===e||"_"!==e[0])}var ht=function(e){function t(t,n,r){return e.call(this,t,ut,n,r)||this}return dt(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,ft))},t.prototype.getDefaultTermMeta=function(){return"index"},t.prototype.getContextKey=function(){return"indices"},t}(ze),mt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function _t(e){return h().map(lt(e.indices,e.types),(function(e){return{name:e.name,meta:e.type}}))}var gt=function(e){function t(t,n,r){return e.call(this,t,_t,n,r)||this}return mt(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,(function(e){return e.match(/[^\w.?*]/)})))},t.prototype.getDefaultTermMeta=function(){return"field"},t.prototype.getContextKey=function(){return"fields"},t}(ze),yt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function wt(e){return ct(e.indices)}function vt(e){return!("_all"===e||"_"!==e[0])}var bt=function(e){function t(t,n,r){return e.call(this,t,wt,n,r)||this}return yt(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,vt))},t.prototype.getDefaultTermMeta=function(){return"type"},t.prototype.getContextKey=function(){return"types"},t}(ze),xt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ot=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.multi_match=r,o}return xt(t,e),t.prototype.match=function(t,n,r){if(!t)return null;if(!this.multi_match&&Array.isArray(t))return null;if(t=Array.isArray(t)?t:[t],h().find(t,(function(e){return e.match(/[\/,]/)})))return null;var o=e.prototype.match.call(this,t,n,r);return o.context_values=o.context_values||{},o.context_values.id=t,o},t}(Ie),jt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Et=function(e){function t(t,n){return e.call(this,t,at,n,!0,!0)||this}return jt(t,e),t.prototype.getContextKey=function(){return"template"},t}(ze),kt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function St(e){return"_"===e[0]}var Tt=function(e){function t(t,n,r){return e.call(this,t,ut,n,r)||this}return kt(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,St))},t.prototype.getDefaultTermMeta=function(){return"username"},t.prototype.getContextKey=function(){return"username"},t}(ze),Nt=o(2168),Ct=o(221);const Rt=require("minimatch");var At=function(){function e(e,t){this.wildcardPattern=e,this.emptyVal=t,this.pattern=String(this.wildcardPattern||"*"),this.matcher=new Rt.Minimatch(this.pattern,{noglobstar:!0,dot:!0,nocase:!0,matchBase:!0,nocomment:!0})}return e.prototype.match=function(e){return!(e&&e!==this.emptyVal||"*"!==this.pattern)||this.matcher.match(e||"")},e}(),Pt=function(){return Pt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Pt.apply(this,arguments)},Lt=function(){function e(e){e=Pt({},e);var t=Pt({},e.match);this.id=(0,Nt.GP)({protocol:t.protocol,hostname:t.host,port:t.port,pathname:t.path})||"*",this.matchers={protocol:new At(t.protocol),host:new At(t.host),port:new At(t.port),path:new At(t.path,"/")},this.timeout=e.timeout,this.sslAgent=this._makeSslAgent(e)}return e.prototype._makeSslAgent=function(e){var t=e.ssl||{};this.verifySsl=t.verify;var n={ca:t.ca,cert:t.cert,key:t.key};if((0,f.values)(n).filter(Boolean).length)return n.rejectUnauthorized=null==this.verifySsl||this.verifySsl,new Ct.Agent(n)},e.prototype.getForParsedUri=function(e){var t=e.protocol,n=e.hostname,r=e.port,o=e.pathname,i=this.matchers.protocol.match(t.slice(0,-1));return(i=(i=(i=i&&this.matchers.host.match(n))&&this.matchers.port.match(r))&&this.matchers.path.match(o))?{timeout:this.timeout,rejectUnauthorized:this.sslAgent?void 0:this.verifySsl,agent:"https:"===t?this.sslAgent:void 0}:{}},e}();!function(){function e(e){void 0===e&&(e=[]),this.configs=e.map((function(e){return new Lt(e)}))}e.prototype.hasConfig=function(){return Boolean(this.configs.length)},e.prototype.configForUri=function(e){var t=(0,Nt.qg)(e),n=this.configs.map((function(e){return e.getForParsedUri(t)}));return f.defaultsDeep.apply(void 0,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([{}],n,!1))}}();var qt=function(){return qt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qt.apply(this,arguments)},It={__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:{}}},Dt={__template:{field:""},field:"{field}",missing:0,script:{}},Mt={__one_of:["skip","insert_zeros"]},Ft={__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Mt},zt={"*":{aggs:{__template:{NAME:{AGG_TYPE:{}}}},adjacency_matrix:{filters:{}},diversified_sampler:{shard_size:"",field:""},min:Dt,max:Dt,avg:Dt,sum:Dt,stats:Dt,extended_stats:Dt,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:{__template:{field:""},field:"{field}"},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:qt(qt({},It),{filter_duplicate_text:"__flag__"}),significant_terms:It,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:Ft,avg_bucket:Ft,max_bucket:Ft,min_bucket:Ft,stats_bucket:Ft,extended_stats_bucket:qt(qt({},Ft),{sigma:""}),percentiles_bucket:qt(qt({},Ft),{percents:[]}),sum_bucket:Ft,moving_avg:{__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:Mt,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:Mt,buckets_path:"",format:""},bucket_script:{__template:{buckets_path:{},script:""},buckets_path:{},format:"",gap_policy:Mt,script:""},bucket_selector:{__template:{buckets_path:{},script:""},buckets_path:{},gap_policy:Mt,script:""},bucket_sort:{__template:{sort:[]},sort:["{field}"],from:0,size:0,gap_policy:Mt},matrix_stats:{__template:{fields:[]},fields:["{field}"]}}},Ut=zt["*"],Bt=Ut.terms,Gt=Ut.histogram,Jt=Ut.date_histogram,$t={and:{__template:{filters:[{}]},filters:[{__scope_link:"."}]},bool:{__scope_link:"GLOBAL.query"},exists:{__template:{field:"FIELD_NAME"},field:"{field}"},ids:{__template:{values:["ID"]},type:"{type}",values:[""]},limit:{__template:{value:100},value:100},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"]}},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}},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}},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}]}},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"]}}},has_child:{__template:{type:"TYPE",filter:{}},type:"{type}",query:{},filter:{},_scope:"",min_children:1,max_children:10},has_parent:{__template:{parent_type:"TYPE",filter:{}},parent_type:"{type}",query:{},filter:{},_scope:""}};$t.m=$t.missing={__template:{field:"FIELD"},existence:{__one_of:[!0,!1]},null_value:{__one_of:[!0,!1]},field:"{field}"},$t.not={__template:{filter:{}},filter:{}},$t.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"]}}},$t.or={__template:{filters:[{}]},filters:[{__scope_link:"."}]},$t.prefix={__template:{FIELD:"VALUE"},"{field}":""},$t.query={},$t.script={__template:{script:{}},script:{}},$t.term={__template:{FIELD:"VALUE"},"{field}":""},$t.terms={__template:{FIELD:["VALUE1","VALUE2"]},field:["{field}"],execution:{__one_of:["plain","bool","and","or","bool_nocache","and_nocache","or_nocache"]}},$t.nested={__template:{path:"path_to_nested_doc",query:{}},query:{},path:"",_name:""};var Vt=function(){return Vt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vt.apply(this,arguments)},Ht={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:{}},Wt=function(){return Wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Wt.apply(this,arguments)},Kt={on_failure:[],ignore_failure:{__one_of:[!1,!0]},if:"",tag:""},Qt={append:Wt({__template:{field:"",value:[]},field:"",value:[]},Kt)},Yt={bytes:Wt({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},Kt)},Xt={circle:Wt({__template:{field:"",error_distance:"",shape_type:""},field:"",target_field:"",error_distance:"",shape_type:{__one_of:["geo_shape","shape"]},ignore_missing:{__one_of:[!1,!0]}},Kt)},Zt={__one_of:[Qt,Yt,{csv:Wt({__template:{field:"",target_fields:[""]},field:"",target_fields:[""],separator:"",quote:"",empty_value:"",trim:{__one_of:[!0,!1]},ignore_missing:{__one_of:[!1,!0]}},Kt)},Xt,{convert:Wt({__template:{field:"",type:""},field:"",type:{__one_of:["integer","float","string","boolean","auto"]},target_field:"",ignore_missing:{__one_of:[!1,!0]}},Kt)},{date:Wt({__template:{field:"",formats:[]},field:"",target_field:"@timestamp",formats:[],timezone:"UTC",locale:"ENGLISH"},Kt)},{date_index_name:Wt({__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"},Kt)},{dissect:Wt({__template:{field:"",pattern:""},field:"",pattern:"",append_separator:"",ignore_missing:{__one_of:[!1,!0]}},Kt)},{dot_expander:Wt({__template:{field:""},field:"",path:""},Kt)},{drop:Wt({__template:{}},Kt)},{fail:Wt({__template:{message:""},message:""},Kt)},{foreach:Wt({__template:{field:"",processor:{}},field:"",processor:{__scope_link:"_processor"}},Kt)},{geoip:{__template:{field:""},field:"",target_field:"",database_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]},first_only:{__one_of:[!1,!0]}}},{grok:Wt({__template:{field:"",patterns:[]},field:"",patterns:[],pattern_definitions:{},trace_match:{__one_of:[!1,!0]},ignore_missing:{__one_of:[!1,!0]}},Kt)},{gsub:Wt({__template:{field:"",pattern:"",replacement:""},field:"",pattern:"",replacement:""},Kt)},{html_strip:Wt({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},Kt)},{inference:Wt({__template:{model_id:"",field_map:{},inference_config:{}},model_id:"",field_map:{},inference_config:{},target_field:""},Kt)},{join:Wt({__template:{field:"",separator:""},field:"",separator:""},Kt)},{json:Wt({__template:{field:""},field:"",target_field:"",add_to_root:{__one_of:[!1,!0]}},Kt)},{kv:Wt({__template:{field:"",field_split:"",value_split:""},field:"",field_split:"",value_split:"",target_field:"",include_keys:[],ignore_missing:{__one_of:[!1,!0]}},Kt)},{lowercase:Wt({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},Kt)},{pipeline:Wt({__template:{name:""},name:""},Kt)},{remove:Wt({__template:{field:""},field:""},Kt)},{rename:Wt({__template:{field:"",target_field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},Kt)},{script:Wt({__template:{},lang:"painless",file:"",id:"",source:"",params:{}},Kt)},{set:Wt({__template:{field:"",value:""},field:"",value:"",override:{__one_of:[!0,!1]}},Kt)},{set_security_user:Wt({__template:{field:""},field:"",properties:[""]},Kt)},{split:Wt({__template:{field:"",separator:""},field:"",separator:"",ignore_missing:{__one_of:[!1,!0]}},Kt)},{sort:Wt({__template:{field:""},field:"",order:"asc"},Kt)},{trim:Wt({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},Kt)},{uppercase:Wt({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},Kt)},{urldecode:Wt({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},Kt)},{user_agent:{__template:{field:""},field:"",target_field:"",regex_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]}}}]},en={description:"",processors:[Zt],version:123},tn=Object.freeze({__one_of:[!0,!1]}),nn=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},rn={FIELD:"REGEXP"},on={FIELD:{}},sn={FIELD:{value:""}},an={FIELD:{gte:10,lte:20}},ln={match:{span_term:{FIELD:"VALUE"}},end:3},cn={clauses:[{span_term:{FIELD:{value:"VALUE"}}}],slop:12,in_order:!1},un={FIELD:{value:"VALUE"}},pn={include:{span_term:{FIELD:{value:"VALUE"}}},exclude:{span_term:{FIELD:{value:"VALUE"}}}},dn={clauses:[{span_term:{FIELD:{value:"VALUE"}}}]},fn={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}}},hn={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}}},mn={FIELD:{value:"VALUE"}},_n=function(){return _n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_n.apply(this,arguments)},gn={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},yn={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"]}},wn={span_first:{__template:ln,__scope_link:".span_first"},span_near:{__template:cn,__scope_link:".span_near"},span_or:{__template:dn,__scope_link:".span_or"},span_not:{__template:pn,__scope_link:".span_not"},span_term:{__template:un,__scope_link:".span_term"},span_containing:{__template:fn,__scope_link:".span_containing"},span_within:{__template:hn,__scope_link:".span_within"}},vn=_n(_n({},wn),{field_masking_span:{__template:{query:{SPAN_QUERY:{}}},query:wn,field:""}}),bn={wildcard:{__template:mn,__scope_link:".wildcard"},fuzzy:{__template:on,__scope_link:".fuzzy"},prefix:{__template:sn,__scope_link:".prefix"},range:{__template:an,__scope_link:".range"},regexp:{__template:rn,__scope_link:".regexp"}},xn={__template:{FIELD:{origin:"",scale:""}},"{field}":{origin:"",scale:"",offset:"",decay:.5}},On={script_score:{__template:{script:"_score * doc['f'].value"},script:{}},boost_factor:2,random_score:{seed:314159265359},linear:xn,exp:xn,gauss:xn,field_value_factor:{__template:{field:""},field:"{field}",factor:1.2,modifier:{__one_of:["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]}}},jn=[function(e){e.addGlobalAutocompleteRules("aggregations",zt),e.addGlobalAutocompleteRules("aggs",zt),e.addGlobalAutocompleteRules("groupByAggs",{"*":{terms:Bt,histogram:Gt,date_histogram:Jt}})},function(e){e.addGlobalAutocompleteRules("aliases",{"*":{filter:{},routing:"1",search_routing:"1,2",index_routing:"1"}})},function(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}}})},function(e){e.addGlobalAutocompleteRules("filter",$t)},function(e){e.addGlobalAutocompleteRules("highlight",Vt(Vt({},Ht),{fields:{"{field}":Vt({fragment_size:20},Ht)}})),e.addGlobalAutocompleteRules("script",{__template:{source:"SCRIPT"},source:"SCRIPT",file:"FILE_SCRIPT_NAME",id:"SCRIPT_ID",lang:"",params:{}})},function(e){e.addEndpointDescription("_processor",{data_autocomplete_rules:Zt}),e.addEndpointDescription("ingest.put_pipeline",{methods:["PUT"],patterns:["_ingest/pipeline/{id}"],data_autocomplete_rules:en}),e.addEndpointDescription("ingest.simulate",{data_autocomplete_rules:{pipeline:en,docs:[]}})},function(e){e.addEndpointDescription("put_mapping",{priority:10,data_autocomplete_rules:{__template:{properties:{FIELD:{}}},_source:{enabled:tn},_all:{enabled:tn},_field_names:{index:tn},_routing:{required:tn},_index:{enabled:tn},_parent:{__template:{type:""},type:"{type}"},_timestamp:{enabled:tn,format:"YYYY-MM-dd",default:""},dynamic_date_formats:["yyyy-MM-dd"],date_detection:tn,numeric_detection:tn,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:tn,index:tn,term_vector:{__one_of:["no","yes","with_offsets","with_positions","with_positions_offsets"]},boost:1,null_value:"",doc_values:tn,eager_global_ordinals:tn,norms:tn,coerce:tn,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:tn,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:[nn(nn([],["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(e){return["basic_"+e,"strict_"+e]})),!0),["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"],!1).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:tn,include_in_root:tn}}}})},function(e){e.addEndpointDescription("put_settings",{data_autocomplete_rules:{refresh_interval:"1s",number_of_shards:1,number_of_replicas:1,"blocks.read_only":tn,"blocks.read":tn,"blocks.write":tn,"blocks.metadata":tn,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":tn,"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":tn,analysis:{analyzer:{},tokenizer:{},filter:{},char_filter:{}},"cache.query.enable":tn,shadow_replicas:tn,shared_filesystem:tn,data_path:"path",codec:{__one_of:["default","best_compression","lucene_default"]}}})},function(e){e.addGlobalAutocompleteRules("query",{match:{__template:{FIELD:"TEXT"},"{field}":_n({type:{__one_of:["phrase","phrase_prefix","boolean"]}},gn)},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:rn,"{field}":{value:"",flags:{__one_of:["ALL","ANYSTRING","COMPLEMENT","EMPTY","INTERSECTION","INTERVAL","NONE"]},max_determinized_states:1e4}},multi_match:_n(_n({__template:{query:"",fields:[]}},gn),{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:on,"{field}":{value:"",boost:1,fuzziness:.5,prefix_length:0}},has_child:{__template:{type:"TYPE",query:{}},inner_hits:_n({},yn),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:sn,"{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:an,"{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:ln,match:vn},span_multi:{__template:{match:{MULTI_TERM_QUERY:{}}},match:bn},span_near:{__template:cn,clauses:[vn],slop:12,in_order:{__one_of:[!1,!0]},collect_payloads:{__one_of:[!1,!0]}},span_term:{__template:un,"{field}":{value:"",boost:2}},span_not:{__template:pn,include:vn,exclude:vn},span_or:{__template:dn,clauses:[vn]},span_containing:{__template:fn,little:vn,big:vn},span_within:{__template:hn,little:vn,big:vn},term:{__template:{FIELD:{value:"VALUE"}},"{field}":{value:"",boost:2}},terms:{__template:{FIELD:["VALUE1","VALUE2"]},"{field}":[""]},wildcard:{__template:mn,"{field}":{value:"",boost:2}},nested:{__template:{path:"path_to_nested_doc",query:{}},inner_hits:_n({},yn),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:h().defaults({__template:{query:{},functions:[{}]},query:{},functions:[h().defaults({filter:{},weight:1},On)],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},On),script:{__template:{script:"_score * doc['f'].value"},script:{}},wrapper:{__template:{query:"QUERY_BASE64_ENCODED"},query:""}})},function(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"}}})},function(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"}}})}],En=function(){return En=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},En.apply(this,arguments)},kn=function(){function e(){this.name="es",this.globalRules={},this.endpoints={},this.extensionSpecFilePaths=[],this.hasLoadedSpec=!1}return e.prototype.addGlobalAutocompleteRules=function(e,t){this.globalRules[e]=t},e.prototype.addEndpointDescription=function(e,t){void 0===t&&(t={});var n,r={};this.endpoints[e]&&(r=En({},this.endpoints[e])),h().each(t.patterns||[],(function(e){e.indexOf("{indices}")>=0&&((n=n||{}).ignore_unavailable="__flag__",n.allow_no_indices="__flag__",n.expand_wildcards=["open","closed"])})),n&&(t.url_params=h().assign(t.url_params||{},r.url_params),h().defaults(t.url_params,n)),h().assign(r,t),h().defaults(r,{id:e,patterns:[e],methods:["GET"]}),this.endpoints[e]=r},e.prototype.asJson=function(){return{name:this.name,globals:this.globalRules,endpoints:this.endpoints}},e.prototype.addExtensionSpecFilePath=function(e){this.extensionSpecFilePaths.push(e)},e.prototype.addProcessorDefinition=function(e){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(e)},e.prototype.setup=function(){return{addExtensionSpecFilePath:this.addExtensionSpecFilePath.bind(this)}},e.prototype.start=function(){if(this.hasLoadedSpec)throw new Error("Service has already started!");return this.loadJsonSpec(),this.loadJSSpec(),this.hasLoadedSpec=!0,{addProcessorDefinition:this.addProcessorDefinition.bind(this)}},e.prototype.loadAllSpec=function(e){return e.keys().reduce((function(t,n){return(0,f.merge)(t,e(n)),t}),{})},e.prototype.loadJSONSpecInDir=function(){var e=this.loadAllSpec(o(2469)),t=this.loadAllSpec(o(5477));return(0,f.merge)(e,t)},e.prototype.loadJsonSpec=function(){var e=this,t=this.loadJSONSpecInDir();Object.keys(t).forEach((function(n){e.addEndpointDescription(n,t[n])}))},e.prototype.loadJSSpec=function(){var e=this;jn.forEach((function(t){return t(e)}))},e}(),Sn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tn=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.description=r,o}return Sn(t,e),t.prototype.getTerms=function(){var e={name:this.name};return"__flag__"===this.description?e.meta="flag":(e.meta="param",e.insertValue=this.name+"="),[e]},t}(Me),Nn=function(){function e(e,t){var n=this;this.rootComponent=new Ie("ROOT"),h().isUndefined(t)&&(t={pretty:"__flag__",format:["json","yaml"],filter_path:""}),e=h().clone(e||{}),h().defaults(e,t),h().each(e,(function(e,t){var r=new Tn(t,n.rootComponent,e);Array.isArray(e)?new ze(t,e,r):"__flag__"===e&&new ze(t,["true","false"],r)}))}return e.prototype.getTopLevelComponents=function(){return this.rootComponent.next},e}();function Cn(e,t){function n(){}n.prototype=e;var r=new n;return t&&(t.unshift(r),h().assign.apply(h(),t),t.shift()),r}function Rn(e,t,n,r,o){this.parentName=e,this.components=t,this.contextExtensionList=n,this.depth=r||0,this.priority=o}function An(e,t,n,r){if(!e||0===e.length)return t;var o=e[0],i=[];return h().each(t,(function(e){var t=Cn(n,e.contextExtensionList);h().each(e.components,(function(n){var s=n.match(o,t,r);if(s&&!h().isEmpty(s)){var a,l=void 0;a=s.next&&!Array.isArray(s.next)?[s.next]:s.next,s.context_values?(l=[],[].push.apply(l,e.contextExtensionList),l.push(s.context_values)):l=e.contextExtensionList;var c=e.priority;h().isNumber(s.priority)&&(c=h().isNumber(c)?Math.min(c,s.priority):s.priority),i.push(new Rn(n.name,a,l,e.depth+1,c))}}))})),0===i.length?h().map(t,(function(e){return new Rn(e.name,[],e.contextExtensionList)})):An(e.slice(1),i,n,r)}function Pn(e,t,n,r,o){var i=An(e,[new Rn("ROOT",o,[])],t,n);if(r){var s=[];h().each(i,(function(e){var r=Cn(t,e.contextExtensionList);h().each(e.components,(function(e){h().each(e.getTerms(r,n),(function(e){h().isObject(e)||(e={name:e}),s.push(e)}))}))})),s=h().uniq(s),t.autoCompleteSet=s}if(0!==i.length){var a=void 0;i=h().sortBy(i,(function(e){return h().isNumber(e.priority)?e.priority:Number.MAX_VALUE})),!(a=h().find(i,(function(e){return h().isEmpty(e.components)})))&&i.length>1&&!r&&console.info("more then one context active for current path, but autocomplete isn't requested",i),a||(a=i[0]),h().each(a.contextExtensionList,(function(e){h().assign(t,e)}))}}var Ln=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function qn(e,t){this.parametrizedComponentFactories=t,this.endpointId=e}var In,Dn=function(e){function t(t,n){var r=e.call(this,"__scope_link")||this;return h().isString(t)&&"."===t[0]&&(t="."===t?n.endpointId:n.endpointId+t),r.link=t,r.compilingContext=n,r}return Ln(t,e),t.prototype.resolveLinkToComponents=function(e,t){if(h().isFunction(this.link))return zn(this.link(e,t),this.compilingContext);if(!h().isString(this.link))throw new Error("unsupported link format",this.link);var n,r=this.link.replace(/\./g,"{").split(/(\{)/),o=r[0];try{if("GLOBAL"===o){if(r.length<3)throw new Error("missing term in global link: "+this.link);var i=r[2];n=e.globalComponentResolver(i),r=r.slice(3)}else r=r.slice(1),n=e.endpointComponentResolver(o)}catch(e){throw new Error("failed to resolve link ["+this.link+"]: "+e)}return function(e,t,n,r){var o=An(e,[new Rn("ROOT",r,[])],t,n);return[].concat.apply([],h().map(o,"components"))}(r,e,t,n)},t.prototype.getTerms=function(e,t){var n=[],r=this.resolveLinkToComponents(e,t);return h().each(r,(function(r){n.push.apply(n,r.getTerms(e,t))})),n},t.prototype.match=function(e,t,n){var r={next:[]},o=this.resolveLinkToComponents(t,n);return h().each(o,(function(o){var i=o.match(e,t,n);i&&i.next&&r.next.push.apply(r.next,i.next)})),r},t}(Ie);function Mn(e){if(e.__template)return e.__raw&&h().isString(e.__template)?{__raw:!0,value:e.__template}:e.__template;if(e.__one_of)return Mn(e.__one_of[0]);if(e.__any_of)return[];if(e.__scope_link)return{};if(Array.isArray(e)){if(1===e.length&&h().isObject(e[0])){var t=Mn(e[0]);return null!=t?[t]:[]}return[]}return h().isObject(e)?{}:(h().isString(e)&&/^\{.*\}$/.test(e),e)}function Fn(e){var t={},n=Mn(e);return h().isUndefined(n)||(t.template=n),t}function zn(e,t){if(Array.isArray(e))return[Bn(e,t)];if(h().isObject(e)){if(e.__scope_link)return[new Dn(e.__scope_link,t)];if(e.__any_of)return[Bn(e.__any_of,t)];if(e.__one_of)return h().flatten(h().map(e.__one_of,(function(e){return zn(e,t)})));var n=function(e,t){var n=new Me("{"),r=[],o=[];return h().each(e,(function(e,n){if(0!==n.indexOf("__")){var i,s=Fn(e);/^\{.*\}$/.test(n)?(i=Un(n,t,s.template),o.push(i)):"*"===n?(i=new Ie(n),o.push(i)):(s.name=n,i=new Me(n,null,[s]),r.push(i)),h().map(zn(e,t),(function(e){i.addComponent(e)}))}})),n.addComponent(new We("inner",r,o)),n}(e,t);return e.__condition?[Gn(e.__condition,n)]:[n]}return h().isString(e)&&/^\{.*\}$/.test(e)?[Un(e,t)]:[new Me(e)]}function Un(e,t,n){e=e.substr(1,e.length-2).toLowerCase();var r=t.parametrizedComponentFactories.getComponent(e,!0);if(!r)throw new Error("no factory found for '"+e+"'");return r=r(e,null,n),h().isUndefined(n)||(r=function(e,t){var n=e.getTerms;return e.getTerms=function(r,o){var i=n.call(e,r,o);return i?i=h().map(i,(function(e){return h().isObject(e)||(e={name:e}),h().defaults(e,t)})):i},e}(r,{template:n})),r}function Bn(e,t){var n=new Me("[");return h().each(e,(function(e){h().each(zn(e,t),(function(e){n.addComponent(e)}))})),n}function Gn(e,t){if(e.lines_regex)return new Je((function(t,n){var r=n.getLines(t.requestStartRow,n.getCurrentPosition().lineNumber).join("\n");return new RegExp(e.lines_regex,"m").test(r)}),t);throw"unknown condition type - got: "+JSON.stringify(e)}function Jn(e,t,n){return zn(t,new qn(e,n))}function $n(e,t){this.globalRules=Object.create(null),this.endpoints=Object.create(null),this.urlPatternMatcher=new et(e),this.globalBodyComponentFactories=t,this.name=""}(In=$n.prototype).addGlobalAutocompleteRules=function(e,t){this.globalRules[e]=Jn("GLOBAL."+e,t,this.globalBodyComponentFactories)},In.getGlobalAutocompleteComponents=function(e,t){var n=this.globalRules[e];if(h().isUndefined(n)&&(t||h().isUndefined(t)))throw new Error("failed to resolve global components for ['"+e+"']");return n},In.addEndpointDescription=function(e,t){var n=this,r={};h().assign(r,t||{}),h().defaults(r,{id:e,patterns:[e],methods:["GET"]}),h().each(r.patterns,(function(e){n.urlPatternMatcher.addEndpoint(e,r)})),r.paramsAutocomplete=new Nn(r.url_params),r.bodyAutocompleteRootComponents=Jn(r.id,r.data_autocomplete_rules,this.globalBodyComponentFactories),this.endpoints[e]=r},In.getEndpointDescriptionByEndpoint=function(e){return this.endpoints[e]},In.getTopLevelUrlCompleteComponents=function(e){return this.urlPatternMatcher.getTopLevelComponents(e)},In.getUnmatchedEndpointComponents=function(){return[new Ve("__global__")]},In.clear=function(){this.endpoints={},this.globalRules={}};const Vn=$n;var Hn=new Vn,Wn=function(e){return"_"===e[0]&&"_all"!==e},Kn=function(e,t){return new Ot(e,t)},Qn={getComponent:function(e,t,n){return this[e]?this[e]:n?Kn:void 0},index:function(e,t){if(!Wn(e))return new ht(e,t,!1)},indices:function(e,t){if(!Wn(e))return new ht(e,t,!0)},type:function(e,t){return new bt(e,t,!1)},types:function(e,t){return new bt(e,t,!0)},id:function(e,t){return Kn(e,t)},transform_id:function(e,t){return Kn(e,t)},username:function(e,t){return new Tt(e,t)},user:function(e,t){return new Tt(e,t)},template:function(e,t){return new Et(e,t)},task_id:function(e,t){return Kn(e,t)},ids:function(e,t){return Kn(e,t)},fields:function(e,t){return new gt(e,t,!0)},field:function(e,t){return new gt(e,t,!1)},nodes:function(e,t){return new ze(e,["_local","_master","data:true","data:false","master:true","master:false"],t)},node:function(e,t){return new ze(e,[],t,!1)}};function Yn(e){var t=function(e){return Hn.getEndpointDescriptionByEndpoint(e)}(e);if(!t)throw new Error("failed to resolve endpoint ['"+e+"']");return t.bodyAutocompleteRootComponents}function Xn(e){return Hn.getTopLevelUrlCompleteComponents(e)}function Zn(e,t){return Hn.getGlobalAutocompleteComponents(e,t)}var er=new kn;er.start();var tr=er.asJson();Hn=function(e,t,n){var r=new Vn(t=t||Qn,n=n||t),o=[];return h().each(e,(function(e,t){o.unshift(t),h().each(e.globals||{},(function(e,t){r.addGlobalAutocompleteRules(t,e)})),h().each(e.endpoints||{},(function(e,t){r.addEndpointDescription(t,e)}))})),r.name=o.join(","),r}({es:tr});var nr={REQUEST_START:2,IN_REQUEST:4,MULTI_DOC_CUR_DOC_END:8,REQUEST_END:16,BETWEEN_REQUESTS:32};const rr=function(){function e(e){this.editor=e,this.MODE=nr}return e.prototype.getRowParseMode=function(e){void 0===e&&(e=this.editor.getCurrentPosition().lineNumber);var t=this.editor.getLineCount();if(e>t||e<1)return nr.BETWEEN_REQUESTS;var n=this.editor.getLineState(e);if(!n)return nr.BETWEEN_REQUESTS;if("start"!==n&&"start-sql"!==n)return nr.IN_REQUEST;var r=(this.editor.getLineValue(e)||"").trim();return r&&"#"!==r[0]?r.indexOf("}",r.length-1)>=0?++e<t+1&&0===(r=(this.editor.getLineValue(e)||"").trim()).indexOf("{")?nr.MULTI_DOC_CUR_DOC_END|nr.IN_REQUEST:nr.REQUEST_END|nr.MULTI_DOC_CUR_DOC_END:++e>=t+1||0!==(r=(this.editor.getLineValue(e)||"").trim()).indexOf("{")?nr.REQUEST_START|nr.REQUEST_END:nr.REQUEST_START:nr.BETWEEN_REQUESTS},e.prototype.rowPredicate=function(e,t,n){return(this.getRowParseMode(e)&n)>0},e.prototype.isEndRequestRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,nr.REQUEST_END)},e.prototype.isRequestEdge=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,nr.REQUEST_END|nr.REQUEST_START)},e.prototype.isStartRequestRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,nr.REQUEST_START)},e.prototype.isInBetweenRequestsRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,nr.BETWEEN_REQUESTS)},e.prototype.isInRequestsRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,nr.IN_REQUEST)},e.prototype.isMultiDocDocEndRow=function(e,t){var n=t||this.editor;return this.rowPredicate(e,n,nr.MULTI_DOC_CUR_DOC_END)},e.prototype.isEmptyToken=function(e){var t=e&&e.getCurrentToken?e.getCurrentToken():e;return!t||"whitespace"===t.type},e.prototype.isUrlOrMethodToken=function(e){var t=(null==e?void 0:e.getCurrentToken())||e;return t&&t.type&&("method"===t.type||0===t.type.indexOf("url"))},e.prototype.nextNonEmptyToken=function(e){for(var t=e.stepForward();t&&this.isEmptyToken(t);)t=e.stepForward();return t},e.prototype.prevNonEmptyToken=function(e){for(var t=e.stepBackward();(t||e.getCurrentPosition().lineNumber>1)&&this.isEmptyToken(t);)t=e.stepBackward();return t},e}();var or=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function ir(e){return!("_all"===e||"_"!==e[0])}var sr=function(e){function t(t,n,r){return e.call(this,t,pt,n,r)||this}return or(t,e),t.prototype.validateTokens=function(e){return!(!this.multiValued&&e.length>1||h().find(e,ir))},t.prototype.getDefaultTermMeta=function(){return"command"},t.prototype.getContextKey=function(){return"command"},t}(ze),ar=function(){return ar=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ar.apply(this,arguments)},lr=null;function cr(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 ur(e,t,n,r){var o=ve({editor:e,position:t}),i=t,s=[],a={};a.tokensLineCache=o.tokensLineCache;var l=3,c=o.getCurrentToken();a.token=c,c?1===i.column&&(c=o.stepBackward(),l=1):1===i.column&&(c=o.stepBackward(),l=3);for(var u,p=!1;c&&-1===c.type.indexOf("url")&&"method"!==c.type;c=o.stepBackward())switch("whitespace"!==c.type&&(p=!0),c.type){case"variable":0===l&&s.unshift(c.value.trim().replace(/"/g,"")),l=1;break;case"paren.lparen":s.unshift(c.value),1===l&&(l=0);break;case"paren.rparen":l=1;var d=1;for(c=o.stepBackward();c&&d>0;){switch(c.type){case"paren.lparen":d--;break;case"paren.rparen":d++}d>0&&(c=o.stepBackward())}if(!c)return{};continue;case"punctuation.end_triple_quote":for(l=1,c=o.stepBackward();c;c=o.stepBackward())if("punctuation.start_triple_quote"===c.type){c=o.stepBackward();break}if(!c)return{};continue;case"punctuation.start_triple_quote":3===l?l=0:0===l&&(l=1),s.unshift('"""');continue;case"string":case"constant.numeric":case"constant.language.boolean":case"text":3===l?l=0:0===l&&(l=1);break;case"punctuation.comma":3===l&&(l=1);break;case"punctuation.colon":case"whitespace":3===l&&(l=0)}if(p&&(!s||0===s.length)&&!r)return{};if(a.urlTokenPath=[],o.getCurrentPosition().lineNumber===i.lineNumber){if(c&&("url.part"===c.type||"url.param"===c.type||"url.value"===c.type)||"url.select_keyword"===c.type)if(!r||"url.part"!==c.type&&"url.select_keyword"!==c.type||(a.urlTokenPath.push(c.value),a.urlTokenPath.push(Qe)),"whitespace"===(c=o.stepBackward()).type)for(;"whitespace"===c.type;)c=o.stepBackward();else for(;""===c.value.trim();)c=o.stepBackward();s=null}for(a.bodyTokenPath=s,a.urlParamsTokenPath=null,a.requestStartRow=o.getCurrentPosition().lineNumber;c&&cr(c);){switch(c.type){case"url.value":Array.isArray(u)?u.unshift(c.value):u=u?[c.value,u]:c.value;break;case"url.comma":u?Array.isArray(u)||(u=[u]):u=[];break;case"url.param":var f=u;(u={})[c.value]=f;break;case"url.amp":case"url.questionmark":a.urlParamsTokenPath||(a.urlParamsTokenPath=[]),a.urlParamsTokenPath.unshift(u||{}),u=null}c=o.stepBackward()}for(u=null;c&&-1!==c.type.indexOf("url");){switch(c.type){case"url.select_keyword":case"url.part":Array.isArray(u)?u.unshift(c.value):u=u?[c.value,u]:c.value;break;case"url.comma":u?Array.isArray(u)||(u=[u]):u=[];break;case"url.slash":u&&(a.urlTokenPath.unshift(u),u=null)}for(c=n.prevNonEmptyToken(o);""===c.value.trim();)c=n.prevNonEmptyToken(o)}return u&&a.urlTokenPath.unshift(u),a.bodyTokenPath||a.urlParamsTokenPath?a.urlTokenPath.push(Qe):a.urlTokenPath.length>0&&(a.otherTokenValues=a.urlTokenPath[0]),c&&"method"===c.type&&(a.method=c.value),a}function pr(e){switch((e||{}).type){case"url.slash":case"url.comma":case"url.part":return!0;default:return!1}}function dr(e,t,n){return h().map(e,(function(e){return"object"!=typeof e&&(e={name:e}),h().defaults(e,{meta:t,template:n})}))}function fr(e){var t=e.coreEditor,n=new rr(t);function r(e){var r,i=e.context;o(i,t.getCurrentPosition(),e.insertValue),"body"===i.autoCompleteType?(r="string"==typeof e.insertValue?'"'+e.insertValue+'"':e.insertValue+"","["!==e.insertValue&&"{"!==e.insertValue||(r="")):r=e.insertValue+"";var a=r,l=!1;if(!i.addTemplate||h().isUndefined(e.template)||h().isNull(e.template))l=!0,"["===e.value?a+="[]":"{"===e.value?a+="{}":l=!1;else{var c=void 0;c=e.template.__raw&&e.template.value?e.template.value.split("\n"):be(e.template,!0).split("\n");var u=t.getLineValue(i.rangeToReplace.start.lineNumber);u=u.match(/^\s*/)[0];for(var p=1;p<c.length;p++)c[p]=u+c[p];a+=": "+c.join("\n"),l=!0}a=i.prefixToAdd+a+i.suffixToAdd,t.off("changeSelection",s),i.rangeToReplace.start.column!==i.rangeToReplace.end.column?t.replace(i.rangeToReplace,a):t.insert(a),t.clearSelection();var d={lineNumber:i.rangeToReplace.start.lineNumber,column:i.rangeToReplace.start.column+r.length+i.prefixToAdd.length+(l?0:i.suffixToAdd.length)},f=ve({editor:t,position:d});if("body"===i.autoCompleteType){var m=n.nextNonEmptyToken(f);switch(m?m.type:"NOTOKEN"){case"paren.rparen":d=f.getCurrentPosition();break;case"punctuation.colon":"paren.lparen"===((m=n.nextNonEmptyToken(f))||{}).type&&(m=n.nextNonEmptyToken(f),d=f.getCurrentPosition(),m&&0===m.value.indexOf('"')&&d.column++);break;case"paren.lparen":case"punctuation.comma":f.stepForward(),d=f.getCurrentPosition()}t.moveCursorToPosition(d)}t.on("changeSelection",s)}function o(e,r,o){e.updatedForToken=h().clone(t.getTokenAt({lineNumber:r.lineNumber,column:r.column})),e.updatedForToken||(e.updatedForToken={value:"",type:"",position:{column:r.column,lineNumber:r.lineNumber}});var i=e.createdWithToken;switch(i||(i=e.updatedForToken),e.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":e.rangeToReplace={start:{lineNumber:r.lineNumber,column:i.position.column},end:{lineNumber:r.lineNumber,column:e.updatedForToken.position.column+e.updatedForToken.value.length}},e.replacingToken=!0;break;default:o&&e.updatedForToken.value===o?(e.rangeToReplace={start:{lineNumber:r.lineNumber,column:i.position.column},end:{lineNumber:r.lineNumber,column:e.updatedForToken.position.column+e.updatedForToken.value.length}},e.replacingToken=!0):(e.rangeToReplace={start:{lineNumber:r.lineNumber,column:r.column},end:{lineNumber:r.lineNumber,column:r.column}},e.replacingToken=!1)}switch(e.textBoxPosition={lineNumber:e.rangeToReplace.start.lineNumber,column:e.rangeToReplace.start.column},e.autoCompleteType){case"path":case"url_params":!function(e){e.prefixToAdd="",e.suffixToAdd=""}(e);break;case"method":!function(e){e.prefixToAdd="",e.suffixToAdd="";var r=ve({editor:t,position:t.getCurrentPosition()}),o=r.getCurrentPosition().lineNumber,i=n.nextNonEmptyToken(r);r.getCurrentPosition().lineNumber===o&&i||(e.suffixToAdd=" ")}(e);break;case"body":!function(e){e.prefixToAdd="",e.suffixToAdd="";var r,o=ve({editor:t,position:t.getCurrentPosition()}),i=n.nextNonEmptyToken(o);switch(i?i.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":e.addTemplate=!0;break;case"punctuation.colon":if(e.addTemplate=!1,!(i=n.nextNonEmptyToken(o))||"{"!==i.value)break;if(!(i=n.nextNonEmptyToken(o))||"}"!==i.value)break;switch(e.addTemplate=!0,e.rangeToReplace.end.lineNumber=o.getCurrentTokenLineNumber(),e.rangeToReplace.end.column=o.getCurrentTokenColumn()+i.value.length,(i=n.nextNonEmptyToken(o))?i.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:e.suffixToAdd=", "}break;default:e.addTemplate=!0,e.suffixToAdd=", "}if(i=(o=ve({editor:t,position:t.getCurrentPosition()})).getCurrentToken(),e.replacingToken)r=0;else{var s=t.getCurrentPosition();r=s.column===e.updatedForToken.position.column?-1:s.column<e.updatedForToken.position.column+e.updatedForToken.value.length?0:1}switch((n.isEmptyToken(i)||r<=0)&&(i=n.prevNonEmptyToken(o)),i?i.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:i&&i.type.indexOf("url")<0&&(e.prefixToAdd=", ")}}(e)}}var i=h().debounce((function(e){var r=null;try{r=t.getTokenAt(e)}catch(e){}if(!r){if(1===e.lineNumber)return void(lr=null);r={position:{column:0,lineNumber:0},value:"",type:""}}if(r.position.lineNumber=e.lineNumber,n.isEmptyToken(r)){var o=t.getTokenAt(ar(ar({},e),{column:e.column+1}));n.isEmptyToken(o)?(r.position.column=e.column,lr=r):(o.position.lineNumber=e.lineNumber,lr=o)}else if(lr)if(lr.position.column===r.position.column&&lr.position.lineNumber===r.position.lineNumber&&lr.value!==r.value){switch(r.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}lr=r,t.execCommand("startAutocomplete")}else lr=r;else lr=r}),100);function s(){var e=t.getCurrentPosition();e&&!t.isCompleterActive()&&i(e)}return t.on("changeSelection",s),{getCompletions:function(e,i,s){try{var a=function(e,r){var i={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:e};switch(i.autoCompleteType=function(e){var r=n.getRowParseMode();if(r&n.MODE.IN_REQUEST)return"body";if(r&n.MODE.REQUEST_START){for(var o=ve({editor:t,position:e}),i=o.getCurrentToken();"url.comma"===i.type;)i=o.stepBackward();switch(i.type){case"method":return"method";case"whitespace":return"method"===((i=n.prevNonEmptyToken(o))||{}).type||pr(i)?"path":cr(i)?"url_params":null;default:return pr(i)?"path":cr(i)?"url_params":null}}return r&n.MODE.REQUEST_END?"body":""===t.getLineValue(e.lineNumber).trim()?(r=n.getRowParseMode(e.lineNumber-1))&n.MODE.REQUEST_START&&r&n.MODE.REQUEST_END?"body":"method":null}(r),i.autoCompleteType){case"path":!function(e,r){var o,i,s,a=ur(t,r,n);if(e.method=a.method,e.token=a.token,e.otherTokenValues=a.otherTokenValues,e.urlTokenPath=a.urlTokenPath,"LOAD"===a.method)s=[new sr("command",null,!0)];else if("SELECT"===a.method){var l=(a.tokensLineCache||[]).findIndex((function(e){return e.value===a.token.value})),c=function(e,t){var n=[],r=-1;return(e||[]).forEach((function(o,i){var s=o.value.toUpperCase();if(["FROM","JOIN"].includes(s)&&e.length>i+2&&i+2!=t){var a=e[i+2].value;a.includes("(")||(a=a.replace(/^"+/,"").replace(/"+$/,""),n.push(a),r=i)}})),{indices:n.join(","),idx:r}}(a.tokensLineCache,l),u=c.indices,p=c.idx;if(p>-1&&l<p){var d=lt(u);return void(e.autoCompleteSet=dr(d,"field"))}if((f=(null===(o=a.otherTokenValues)||void 0===o?void 0:o.length)||0)>0)switch(a.otherTokenValues[f-1].toUpperCase()){case"FROM":a.token.value.endsWith('"')||'"'==a.token.value||(e.otherTokenValues=null,e.urlTokenPath=[],s=[new ht("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(f>1&&!a.token.value.includes("="))return""===u&&(u=(u=a.otherTokenValues[f-2]).replace(/^"+/,"").replace(/"+$/,"")),d=lt(u),void(e.autoCompleteSet=dr(d,"field"))}}else if("FROM"==a.method)if(l=(a.tokensLineCache||[]).findIndex((function(e){return e.value===a.token.value})),"FROM"==a.tokensLineCache[l-2].value)a.token.value.endsWith('"')||'"'==a.token.value||(e.otherTokenValues=null,e.urlTokenPath=[],s=[new ht("indices",null,!0)]);else{u=(u=a.otherTokenValues[0]).replace(/^"+/,"").replace(/"+$/,"");for(var f=(null===(i=a.otherTokenValues)||void 0===i?void 0:i.length)||0,h=!0,m=null,_=l-1;_>=0;_--){var g=a.tokensLineCache[_];if(null===m&&""!=g.value.trim()&&(m=g),"url.select_keyword"==g.type&&"SELECT"!=g.value.toUpperCase()){h=!1;break}}switch(h&&","!=m.value&&"SELECT"!=m.value.toUpperCase()&&(h=!1),a.otherTokenValues[f-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":h=!0}if(h&&!a.token.value.includes("="))return d=lt(u),void(e.autoCompleteSet=dr(d,"field"))}else s=Xn(e.method);Pn(e.urlTokenPath,e,t,!0,s),e.autoCompleteSet=dr(e.autoCompleteSet,"endpoint")}(i,r);break;case"url_params":!function(e,r){var o=ur(t,r,n);if(e.method=o.method,e.otherTokenValues=o.otherTokenValues,e.urlTokenPath=o.urlTokenPath,!o.urlTokenPath)return e;if(Pn(o.urlTokenPath,e,t,!1,Xn(e.method)),!e.endpoint)return e;if(!o.urlParamsTokenPath)return e;var i=[],s=o.urlParamsTokenPath.pop();s&&(i=Object.keys(s),e.otherTokenValues=s[i[0]]),Pn(i,e,t,!0,e.endpoint.paramsAutocomplete.getTopLevelComponents(e.method))}(i,r);break;case"method":!function(e){e.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((function(e,t){return{name:e,score:-t,meta:"method"}}))}(i);break;case"body":!function(e,r){var o,i=ur(t,r,n);e.method=i.method,e.otherTokenValues=i.otherTokenValues,e.urlTokenPath=i.urlTokenPath,e.requestStartRow=i.requestStartRow,i.urlTokenPath&&(Pn(i.urlTokenPath,e,t,!1,Xn(e.method)),e.bodyTokenPath=i.bodyTokenPath,i.bodyTokenPath&&(e.endpointComponentResolver=Yn,e.globalComponentResolver=Zn,o=e.endpoint?e.endpoint.bodyAutocompleteRootComponents:Hn.getUnmatchedEndpointComponents(),Pn(i.bodyTokenPath,e,t,!0,o)))}(i,r);break;default:return null}return i.autoCompleteSet?(o(i,r),i.createdWithToken=h().clone(i.updatedForToken),i):null}(t,e);if(a){var l=h().map(a.autoCompleteSet.filter((function(e){return Boolean(e)&&null!=e.name})),(function(e){var n={value:(e="object"!=typeof e?{name:e}:h().clone(e)).name,meta:"API",score:0,context:a};return"LOAD"===a.method&&"path"===a.autoCompleteType&&(n.completer={insertMatch:function(){r(e),t.execCommand("exec_request")}}),"body"===a.autoCompleteType&&(n.completer={insertMatch:function(){return r(e)}}),h().defaults(e,n)}));l.sort((function(e,t){return e.score>t.score?-1:e.score<t.score?1:e.name<t.name?-1:e.name===t.name?0:1})),s(null,h().map(l,(function(e,t){return e.insertValue=e.insertValue||e.value,e.value=""+e.value,e.score=-t,e})))}else s(null,[])}catch(e){console.error(e),s(e,null)}}}}var hr={id:"sense_editor/mode/worker",src:'/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n */\n\n/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the "License"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/*\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n/* @notice\n *\n * This product includes code that is based on Ace editor, which was available\n * under a "BSD" license.\n *\n * Distributed under the BSD license:\n *\n * Copyright (c) 2010, Ajax.org B.V.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * * Neither the name of Ajax.org B.V. nor the\n * names of its contributors may be used to endorse or promote products\n * derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* eslint-disable */\n/*\n This file is loaded up as a blob by Brace to hand to Ace to load as Jsonp\n (hence the redefining of everything). It is based on the javascript\n mode from the brace distro.\n*/\n\n(function(window) {\n window = window || {}\n function resolveModuleId(id, paths) {\n for (let testPath = id, tail = ""; testPath; ) {\n let alias = paths[testPath];\n if ("string" === typeof alias) return alias + tail;\n if (alias) {\n return (\n alias.location.replace(/\\/*$/, "/") +\n (tail || alias.main || alias.name)\n );\n }\n if (alias === !1) return "";\n let i = testPath.lastIndexOf("/");\n if (-1 === i) break;\n (tail = testPath.substr(i) + tail), (testPath = testPath.slice(0, i));\n }\n return id;\n }\n if (\n !(\n (void 0 !== window?.window && window?.document) ||\n (window?.acequire && window?.define)\n )\n ) {\n window?.console ||\n ((window.console = function() {\n let msgs = Array.prototype.slice.call(arguments, 0);\n postMessage({ type: "log", data: msgs });\n }),\n (window.console.error = window.console.warn = window.console.log = window.console.trace =\n window?.console)),\n (window.window = window),\n (window.ace = window),\n (window.onerror = function(message, file, line, col, err) {\n postMessage({\n type: "error",\n data: {\n message: message,\n data: err.data,\n file: file,\n line: line,\n col: col,\n stack: err.stack,\n },\n });\n }),\n (window.normalizeModule = function(parentId, moduleName) {\n if (-1 !== moduleName.indexOf("!")) {\n let chunks = moduleName.split("!");\n return (\n window.normalizeModule(parentId, chunks[0]) +\n "!" +\n window.normalizeModule(parentId, chunks[1])\n );\n }\n if ("." == moduleName.charAt(0)) {\n let base = parentId\n .split("/")\n .slice(0, -1)\n .join("/");\n for (\n moduleName = (base ? base + "/" : "") + moduleName;\n -1 !== moduleName.indexOf(".") && previous != moduleName;\n\n ) {\n var previous = moduleName;\n moduleName = moduleName\n .replace(/^\\.\\//, "")\n .replace(/\\/\\.\\//, "/")\n .replace(/[^\\/]+\\/\\.\\.\\//, "");\n }\n }\n return moduleName;\n }),\n (window.acequire = function acequire(parentId, id) {\n if ((id || ((id = parentId), (parentId = null)), !id.charAt)) {\n throw Error(\n "worker.js acequire() accepts only (parentId, id) as arguments"\n );\n }\n id = window.normalizeModule(parentId, id);\n let module = window?.acequire.modules[id];\n if (module) {\n return (\n module.initialized ||\n ((module.initialized = !0),\n (module.exports = module.factory().exports)),\n module.exports\n );\n }\n if (!window?.acequire.tlns) return console.log("unable to load " + id);\n let path = resolveModuleId(id, window?.acequire.tlns);\n return (\n ".js" != path.slice(-3) && (path += ".js"),\n (window.acequire.id = id),\n (window.acequire.modules[id] = {}),\n importScripts(path),\n window.acequire(parentId, id)\n );\n }),\n (window.acequire.modules = {}),\n (window.acequire.tlns = {}),\n (window.define = function(id, deps, factory) {\n if (\n (2 == arguments.length\n ? ((factory = deps),\n "string" !== typeof id &&\n ((deps = id), (id = window?.acequire.id)))\n : 1 == arguments.length &&\n ((factory = id), (deps = []), (id = window?.acequire.id)),\n "function" !== typeof factory)\n ) {\n return (\n (window.acequire.modules[id] = {\n exports: factory,\n initialized: !0,\n }),\n void 0\n );\n }\n deps.length || (deps = ["require", "exports", "module"]);\n let req = function(childId) {\n return window.acequire(id, childId);\n };\n window.acequire.modules[id] = {\n exports: {},\n factory: function() {\n let module = this,\n returnExports = factory.apply(\n this,\n deps.map(function(dep) {\n switch (dep) {\n case "require":\n return req;\n case "exports":\n return module.exports;\n case "module":\n return module;\n default:\n return req(dep);\n }\n })\n );\n return returnExports && (module.exports = returnExports), module;\n },\n };\n }),\n (window.define.amd = {}),\n (window.acequire.tlns = {}),\n (window.initBaseUrls = function(topLevelNamespaces) {\n for (let i in topLevelNamespaces) {\n window.acequire.tlns[i] = topLevelNamespaces[i];\n }\n }),\n (window.initSender = function() {\n let EventEmitter = window?.acequire("ace/lib/event_emitter")\n .EventEmitter,\n oop = window?.acequire("ace/lib/oop"),\n Sender = function() {};\n return (\n function() {\n oop.implement(this, EventEmitter),\n (this.callback = function(data, callbackId) {\n postMessage({ type: "call", id: callbackId, data: data });\n }),\n (this.emit = function(name, data) {\n postMessage({ type: "event", name: name, data: data });\n });\n }.call(Sender.prototype),\n new Sender()\n );\n });\n let main = (window.main = null),\n sender = (window.sender = null);\n window.onmessage = function(e) {\n let msg = e.data;\n if (msg.event && sender) sender._signal(msg.event, msg.data);\n else if (msg.command) {\n if (main[msg.command]) main[msg.command].apply(main, msg.args);\n else {\n if (!window[msg.command])\n throw Error("Unknown command:" + msg.command);\n window[msg.command].apply(window, msg.args);\n }\n } else if (msg.init) {\n window.initBaseUrls(msg.tlns),\n acequire("ace/lib/es5-shim"),\n (sender = window.sender = window.initSender());\n let clazz = acequire(msg.module)[msg.classname];\n main = window.main = new clazz(sender);\n }\n };\n }\n})(this),\n ace.define("ace/lib/oop", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n (exports.inherits = function(ctor, superCtor) {\n (ctor.super_ = superCtor),\n (ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: !1,\n writable: !0,\n configurable: !0,\n },\n }));\n }),\n (exports.mixin = function(obj, mixin) {\n for (let key in mixin) obj[key] = mixin[key];\n return obj;\n }),\n (exports.implement = function(proto, mixin) {\n exports.mixin(proto, mixin);\n });\n }),\n ace.define("ace/range", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n let comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column;\n },\n Range = function(startRow, startColumn, endRow, endColumn) {\n (this.start = { row: startRow, column: startColumn }),\n (this.end = { row: endRow, column: endColumn });\n };\n (function() {\n (this.isEqual = function(range) {\n return (\n this.start.row === range.start.row &&\n this.end.row === range.end.row &&\n this.start.column === range.start.column &&\n this.end.column === range.end.column\n );\n }),\n (this.toString = function() {\n return (\n "Range: [" +\n this.start.row +\n "/" +\n this.start.column +\n "] -> [" +\n this.end.row +\n "/" +\n this.end.column +\n "]"\n );\n }),\n (this.contains = function(row, column) {\n return 0 == this.compare(row, column);\n }),\n (this.compareRange = function(range) {\n let cmp,\n end = range.end,\n start = range.start;\n return (\n (cmp = this.compare(end.row, end.column)),\n 1 == cmp\n ? ((cmp = this.compare(start.row, start.column)),\n 1 == cmp ? 2 : 0 == cmp ? 1 : 0)\n : -1 == cmp\n ? -2\n : ((cmp = this.compare(start.row, start.column)),\n -1 == cmp ? -1 : 1 == cmp ? 42 : 0)\n );\n }),\n (this.comparePoint = function(p) {\n return this.compare(p.row, p.column);\n }),\n (this.containsRange = function(range) {\n return (\n 0 == this.comparePoint(range.start) &&\n 0 == this.comparePoint(range.end)\n );\n }),\n (this.intersects = function(range) {\n let cmp = this.compareRange(range);\n return -1 == cmp || 0 == cmp || 1 == cmp;\n }),\n (this.isEnd = function(row, column) {\n return this.end.row == row && this.end.column == column;\n }),\n (this.isStart = function(row, column) {\n return this.start.row == row && this.start.column == column;\n }),\n (this.setStart = function(row, column) {\n "object" === typeof row\n ? ((this.start.column = row.column), (this.start.row = row.row))\n : ((this.start.row = row), (this.start.column = column));\n }),\n (this.setEnd = function(row, column) {\n "object" === typeof row\n ? ((this.end.column = row.column), (this.end.row = row.row))\n : ((this.end.row = row), (this.end.column = column));\n }),\n (this.inside = function(row, column) {\n return 0 == this.compare(row, column)\n ? this.isEnd(row, column) || this.isStart(row, column)\n ? !1\n : !0\n : !1;\n }),\n (this.insideStart = function(row, column) {\n return 0 == this.compare(row, column)\n ? this.isEnd(row, column)\n ? !1\n : !0\n : !1;\n }),\n (this.insideEnd = function(row, column) {\n return 0 == this.compare(row, column)\n ? this.isStart(row, column)\n ? !1\n : !0\n : !1;\n }),\n (this.compare = function(row, column) {\n return this.isMultiLine() || row !== this.start.row\n ? this.start.row > row\n ? -1\n : row > this.end.row\n ? 1\n : this.start.row === row\n ? column >= this.start.column\n ? 0\n : -1\n : this.end.row === row\n ? this.end.column >= column\n ? 0\n : 1\n : 0\n : this.start.column > column\n ? -1\n : column > this.end.column\n ? 1\n : 0;\n }),\n (this.compareStart = function(row, column) {\n return this.start.row == row && this.start.column == column\n ? -1\n : this.compare(row, column);\n }),\n (this.compareEnd = function(row, column) {\n return this.end.row == row && this.end.column == column\n ? 1\n : this.compare(row, column);\n }),\n (this.compareInside = function(row, column) {\n return this.end.row == row && this.end.column == column\n ? 1\n : this.start.row == row && this.start.column == column\n ? -1\n : this.compare(row, column);\n }),\n (this.clipRows = function(firstRow, lastRow) {\n if (this.end.row > lastRow) var end = { row: lastRow + 1, column: 0 };\n else if (firstRow > this.end.row) {\n var end = { row: firstRow, column: 0 };\n }\n if (this.start.row > lastRow) {\n var start = { row: lastRow + 1, column: 0 };\n } else if (firstRow > this.start.row) {\n var start = { row: firstRow, column: 0 };\n }\n return Range.fromPoints(start || this.start, end || this.end);\n }),\n (this.extend = function(row, column) {\n let cmp = this.compare(row, column);\n if (0 == cmp) return this;\n if (-1 == cmp) var start = { row: row, column: column };\n else var end = { row: row, column: column };\n return Range.fromPoints(start || this.start, end || this.end);\n }),\n (this.isEmpty = function() {\n return (\n this.start.row === this.end.row &&\n this.start.column === this.end.column\n );\n }),\n (this.isMultiLine = function() {\n return this.start.row !== this.end.row;\n }),\n (this.clone = function() {\n return Range.fromPoints(this.start, this.end);\n }),\n (this.collapseRows = function() {\n return 0 == this.end.column\n ? new Range(\n this.start.row,\n 0,\n Math.max(this.start.row, this.end.row - 1),\n 0\n )\n : new Range(this.start.row, 0, this.end.row, 0);\n }),\n (this.toScreenRange = function(session) {\n let screenPosStart = session.documentToScreenPosition(this.start),\n screenPosEnd = session.documentToScreenPosition(this.end);\n return new Range(\n screenPosStart.row,\n screenPosStart.column,\n screenPosEnd.row,\n screenPosEnd.column\n );\n }),\n (this.moveBy = function(row, column) {\n (this.start.row += row),\n (this.start.column += column),\n (this.end.row += row),\n (this.end.column += column);\n });\n }.call(Range.prototype),\n (Range.fromPoints = function(start, end) {\n return new Range(start.row, start.column, end.row, end.column);\n }),\n (Range.comparePoints = comparePoints),\n (Range.comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column;\n }),\n (exports.Range = Range));\n }),\n ace.define("ace/apply_delta", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n exports.applyDelta = function(docLines, delta) {\n let row = delta.start.row,\n startColumn = delta.start.column,\n line = docLines[row] || "";\n switch (delta.action) {\n case "insert":\n var lines = delta.lines;\n if (1 === lines.length) {\n docLines[row] =\n line.substring(0, startColumn) +\n delta.lines[0] +\n line.substring(startColumn);\n } else {\n let args = [row, 1].concat(delta.lines);\n docLines.splice.apply(docLines, args),\n (docLines[row] = line.substring(0, startColumn) + docLines[row]),\n (docLines[row + delta.lines.length - 1] += line.substring(\n startColumn\n ));\n }\n break;\n case "remove":\n var endColumn = delta.end.column,\n endRow = delta.end.row;\n row === endRow\n ? (docLines[row] =\n line.substring(0, startColumn) + line.substring(endColumn))\n : docLines.splice(\n row,\n endRow - row + 1,\n line.substring(0, startColumn) +\n docLines[endRow].substring(endColumn)\n );\n }\n };\n }),\n ace.define(\n "ace/lib/event_emitter",\n ["require", "exports", "module"],\n function(acequire, exports) {\n let EventEmitter = {},\n stopPropagation = function() {\n this.propagationStopped = !0;\n },\n preventDefault = function() {\n this.defaultPrevented = !0;\n };\n (EventEmitter._emit = EventEmitter._dispatchEvent = function(\n eventName,\n e\n ) {\n this._eventRegistry || (this._eventRegistry = {}),\n this._defaultHandlers || (this._defaultHandlers = {});\n let listeners = this._eventRegistry[eventName] || [],\n defaultHandler = this._defaultHandlers[eventName];\n if (listeners.length || defaultHandler) {\n ("object" === typeof e && e) || (e = {}),\n e.type || (e.type = eventName),\n e.stopPropagation || (e.stopPropagation = stopPropagation),\n e.preventDefault || (e.preventDefault = preventDefault),\n (listeners = listeners.slice());\n for (\n let i = 0;\n listeners.length > i &&\n (listeners[i](e, this), !e.propagationStopped);\n i++\n );\n return defaultHandler && !e.defaultPrevented\n ? defaultHandler(e, this)\n : void 0;\n }\n }),\n (EventEmitter._signal = function(eventName, e) {\n let listeners = (this._eventRegistry || {})[eventName];\n if (listeners) {\n listeners = listeners.slice();\n for (let i = 0; listeners.length > i; i++) listeners[i](e, this);\n }\n }),\n (EventEmitter.once = function(eventName, callback) {\n let _self = this;\n callback &&\n this.addEventListener(eventName, function newCallback() {\n _self.removeEventListener(eventName, newCallback),\n callback.apply(null, arguments);\n });\n }),\n (EventEmitter.setDefaultHandler = function(eventName, callback) {\n let handlers = this._defaultHandlers;\n if (\n (handlers ||\n (handlers = this._defaultHandlers = { _disabled_: {} }),\n handlers[eventName])\n ) {\n let old = handlers[eventName],\n disabled = handlers._disabled_[eventName];\n disabled || (handlers._disabled_[eventName] = disabled = []),\n disabled.push(old);\n let i = disabled.indexOf(callback);\n -1 != i && disabled.splice(i, 1);\n }\n handlers[eventName] = callback;\n }),\n (EventEmitter.removeDefaultHandler = function(eventName, callback) {\n let handlers = this._defaultHandlers;\n if (handlers) {\n let disabled = handlers._disabled_[eventName];\n if (handlers[eventName] == callback) {\n handlers[eventName],\n disabled && this.setDefaultHandler(eventName, disabled.pop());\n } else if (disabled) {\n let i = disabled.indexOf(callback);\n -1 != i && disabled.splice(i, 1);\n }\n }\n }),\n (EventEmitter.on = EventEmitter.addEventListener = function(\n eventName,\n callback,\n capturing\n ) {\n this._eventRegistry = this._eventRegistry || {};\n let listeners = this._eventRegistry[eventName];\n return (\n listeners || (listeners = this._eventRegistry[eventName] = []),\n -1 == listeners.indexOf(callback) &&\n listeners[capturing ? "unshift" : "push"](callback),\n callback\n );\n }),\n (EventEmitter.off = EventEmitter.removeListener = EventEmitter.removeEventListener = function(\n eventName,\n callback\n ) {\n this._eventRegistry = this._eventRegistry || {};\n let listeners = this._eventRegistry[eventName];\n if (listeners) {\n let index = listeners.indexOf(callback);\n -1 !== index && listeners.splice(index, 1);\n }\n }),\n (EventEmitter.removeAllListeners = function(eventName) {\n this._eventRegistry && (this._eventRegistry[eventName] = []);\n }),\n (exports.EventEmitter = EventEmitter);\n }\n ),\n ace.define(\n "ace/anchor",\n ["require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter"],\n function(acequire, exports) {\n let oop = acequire("./lib/oop"),\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Anchor = (exports.Anchor = function(doc, row, column) {\n (this.$onChange = this.onChange.bind(this)),\n this.attach(doc),\n column === void 0\n ? this.setPosition(row.row, row.column)\n : this.setPosition(row, column);\n });\n (function() {\n function $pointsInOrder(point1, point2, equalPointsInOrder) {\n let bColIsAfter = equalPointsInOrder\n ? point1.column <= point2.column\n : point1.column < point2.column;\n return (\n point1.row < point2.row || (point1.row == point2.row && bColIsAfter)\n );\n }\n function $getTransformedPoint(delta, point, moveIfEqual) {\n let deltaIsInsert = "insert" == delta.action,\n deltaRowShift =\n (deltaIsInsert ? 1 : -1) * (delta.end.row - delta.start.row),\n deltaColShift =\n (deltaIsInsert ? 1 : -1) *\n (delta.end.column - delta.start.column),\n deltaStart = delta.start,\n deltaEnd = deltaIsInsert ? deltaStart : delta.end;\n return $pointsInOrder(point, deltaStart, moveIfEqual)\n ? { row: point.row, column: point.column }\n : $pointsInOrder(deltaEnd, point, !moveIfEqual)\n ? {\n row: point.row + deltaRowShift,\n column:\n point.column +\n (point.row == deltaEnd.row ? deltaColShift : 0),\n }\n : { row: deltaStart.row, column: deltaStart.column };\n }\n oop.implement(this, EventEmitter),\n (this.getPosition = function() {\n return this.$clipPositionToDocument(this.row, this.column);\n }),\n (this.getDocument = function() {\n return this.document;\n }),\n (this.$insertRight = !1),\n (this.onChange = function(delta) {\n if (\n !(\n (delta.start.row == delta.end.row &&\n delta.start.row != this.row) ||\n delta.start.row > this.row\n )\n ) {\n let point = $getTransformedPoint(\n delta,\n { row: this.row, column: this.column },\n this.$insertRight\n );\n this.setPosition(point.row, point.column, !0);\n }\n }),\n (this.setPosition = function(row, column, noClip) {\n let pos;\n if (\n ((pos = noClip\n ? { row: row, column: column }\n : this.$clipPositionToDocument(row, column)),\n this.row != pos.row || this.column != pos.column)\n ) {\n let old = { row: this.row, column: this.column };\n (this.row = pos.row),\n (this.column = pos.column),\n this._signal("change", { old: old, value: pos });\n }\n }),\n (this.detach = function() {\n this.document.removeEventListener("change", this.$onChange);\n }),\n (this.attach = function(doc) {\n (this.document = doc || this.document),\n this.document.on("change", this.$onChange);\n }),\n (this.$clipPositionToDocument = function(row, column) {\n let pos = {};\n return (\n row >= this.document.getLength()\n ? ((pos.row = Math.max(0, this.document.getLength() - 1)),\n (pos.column = this.document.getLine(pos.row).length))\n : 0 > row\n ? ((pos.row = 0), (pos.column = 0))\n : ((pos.row = row),\n (pos.column = Math.min(\n this.document.getLine(pos.row).length,\n Math.max(0, column)\n ))),\n 0 > column && (pos.column = 0),\n pos\n );\n });\n }.call(Anchor.prototype));\n }\n ),\n ace.define(\n "ace/document",\n [\n "require",\n "exports",\n "module",\n "ace/lib/oop",\n "ace/apply_delta",\n "ace/lib/event_emitter",\n "ace/range",\n "ace/anchor",\n ],\n function(acequire, exports) {\n let oop = acequire("./lib/oop"),\n applyDelta = acequire("./apply_delta").applyDelta,\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Range = acequire("./range").Range,\n Anchor = acequire("./anchor").Anchor,\n Document = function(textOrLines) {\n (this.$lines = [""]),\n 0 === textOrLines.length\n ? (this.$lines = [""])\n : Array.isArray(textOrLines)\n ? this.insertMergedLines({ row: 0, column: 0 }, textOrLines)\n : this.insert({ row: 0, column: 0 }, textOrLines);\n };\n (function() {\n oop.implement(this, EventEmitter),\n (this.setValue = function(text) {\n let len = this.getLength() - 1;\n this.remove(new Range(0, 0, len, this.getLine(len).length)),\n this.insert({ row: 0, column: 0 }, text);\n }),\n (this.getValue = function() {\n return this.getAllLines().join(this.getNewLineCharacter());\n }),\n (this.createAnchor = function(row, column) {\n return new Anchor(this, row, column);\n }),\n (this.$split =\n 0 === "aaa".split(/a/).length\n ? function(text) {\n return text.replace(/\\r\\n|\\r/g, "\\n").split("\\n");\n }\n : function(text) {\n return text.split(/\\r\\n|\\r|\\n/);\n }),\n (this.$detectNewLine = function(text) {\n let match = text.match(/^.*?(\\r\\n|\\r|\\n)/m);\n (this.$autoNewLine = match ? match[1] : "\\n"),\n this._signal("changeNewLineMode");\n }),\n (this.getNewLineCharacter = function() {\n switch (this.$newLineMode) {\n case "windows":\n return "\\r\\n";\n case "unix":\n return "\\n";\n default:\n return this.$autoNewLine || "\\n";\n }\n }),\n (this.$autoNewLine = ""),\n (this.$newLineMode = "auto"),\n (this.setNewLineMode = function(newLineMode) {\n this.$newLineMode !== newLineMode &&\n ((this.$newLineMode = newLineMode),\n this._signal("changeNewLineMode"));\n }),\n (this.getNewLineMode = function() {\n return this.$newLineMode;\n }),\n (this.isNewLine = function(text) {\n return "\\r\\n" == text || "\\r" == text || "\\n" == text;\n }),\n (this.getLine = function(row) {\n return this.$lines[row] || "";\n }),\n (this.getLines = function(firstRow, lastRow) {\n return this.$lines.slice(firstRow, lastRow + 1);\n }),\n (this.getAllLines = function() {\n return this.getLines(0, this.getLength());\n }),\n (this.getLength = function() {\n return this.$lines.length;\n }),\n (this.getTextRange = function(range) {\n return this.getLinesForRange(range).join(\n this.getNewLineCharacter()\n );\n }),\n (this.getLinesForRange = function(range) {\n let lines;\n if (range.start.row === range.end.row) {\n lines = [\n this.getLine(range.start.row).substring(\n range.start.column,\n range.end.column\n ),\n ];\n } else {\n (lines = this.getLines(range.start.row, range.end.row)),\n (lines[0] = (lines[0] || "").substring(range.start.column));\n let l = lines.length - 1;\n range.end.row - range.start.row == l &&\n (lines[l] = lines[l].substring(0, range.end.column));\n }\n return lines;\n }),\n (this.insertLines = function(row, lines) {\n return (\n console.warn(\n "Use of document.insertLines is deprecated. Use the insertFullLines method instead."\n ),\n this.insertFullLines(row, lines)\n );\n }),\n (this.removeLines = function(firstRow, lastRow) {\n return (\n console.warn(\n "Use of document.removeLines is deprecated. Use the removeFullLines method instead."\n ),\n this.removeFullLines(firstRow, lastRow)\n );\n }),\n (this.insertNewLine = function(position) {\n return (\n console.warn(\n "Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."\n ),\n this.insertMergedLines(position, ["", ""])\n );\n }),\n (this.insert = function(position, text) {\n return (\n 1 >= this.getLength() && this.$detectNewLine(text),\n this.insertMergedLines(position, this.$split(text))\n );\n }),\n (this.insertInLine = function(position, text) {\n let start = this.clippedPos(position.row, position.column),\n end = this.pos(position.row, position.column + text.length);\n return (\n this.applyDelta(\n { start: start, end: end, action: "insert", lines: [text] },\n !0\n ),\n this.clonePos(end)\n );\n }),\n (this.clippedPos = function(row, column) {\n let length = this.getLength();\n void 0 === row\n ? (row = length)\n : 0 > row\n ? (row = 0)\n : row >= length && ((row = length - 1), (column = void 0));\n let line = this.getLine(row);\n return (\n void 0 == column && (column = line.length),\n (column = Math.min(Math.max(column, 0), line.length)),\n { row: row, column: column }\n );\n }),\n (this.clonePos = function(pos) {\n return { row: pos.row, column: pos.column };\n }),\n (this.pos = function(row, column) {\n return { row: row, column: column };\n }),\n (this.$clipPosition = function(position) {\n let length = this.getLength();\n return (\n position.row >= length\n ? ((position.row = Math.max(0, length - 1)),\n (position.column = this.getLine(length - 1).length))\n : ((position.row = Math.max(0, position.row)),\n (position.column = Math.min(\n Math.max(position.column, 0),\n this.getLine(position.row).length\n ))),\n position\n );\n }),\n (this.insertFullLines = function(row, lines) {\n row = Math.min(Math.max(row, 0), this.getLength());\n let column = 0;\n this.getLength() > row\n ? ((lines = lines.concat([""])), (column = 0))\n : ((lines = [""].concat(lines)),\n row--,\n (column = this.$lines[row].length)),\n this.insertMergedLines({ row: row, column: column }, lines);\n }),\n (this.insertMergedLines = function(position, lines) {\n let start = this.clippedPos(position.row, position.column),\n end = {\n row: start.row + lines.length - 1,\n column:\n (1 == lines.length ? start.column : 0) +\n lines[lines.length - 1].length,\n };\n return (\n this.applyDelta({\n start: start,\n end: end,\n action: "insert",\n lines: lines,\n }),\n this.clonePos(end)\n );\n }),\n (this.remove = function(range) {\n let start = this.clippedPos(range.start.row, range.start.column),\n end = this.clippedPos(range.end.row, range.end.column);\n return (\n this.applyDelta({\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({ start: start, end: end }),\n }),\n this.clonePos(start)\n );\n }),\n (this.removeInLine = function(row, startColumn, endColumn) {\n let start = this.clippedPos(row, startColumn),\n end = this.clippedPos(row, endColumn);\n return (\n this.applyDelta(\n {\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({ start: start, end: end }),\n },\n !0\n ),\n this.clonePos(start)\n );\n }),\n (this.removeFullLines = function(firstRow, lastRow) {\n (firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1)),\n (lastRow = Math.min(Math.max(0, lastRow), this.getLength() - 1));\n let deleteFirstNewLine =\n lastRow == this.getLength() - 1 && firstRow > 0,\n deleteLastNewLine = this.getLength() - 1 > lastRow,\n startRow = deleteFirstNewLine ? firstRow - 1 : firstRow,\n startCol = deleteFirstNewLine ? this.getLine(startRow).length : 0,\n endRow = deleteLastNewLine ? lastRow + 1 : lastRow,\n endCol = deleteLastNewLine ? 0 : this.getLine(endRow).length,\n range = new Range(startRow, startCol, endRow, endCol),\n deletedLines = this.$lines.slice(firstRow, lastRow + 1);\n return (\n this.applyDelta({\n start: range.start,\n end: range.end,\n action: "remove",\n lines: this.getLinesForRange(range),\n }),\n deletedLines\n );\n }),\n (this.removeNewLine = function(row) {\n this.getLength() - 1 > row &&\n row >= 0 &&\n this.applyDelta({\n start: this.pos(row, this.getLine(row).length),\n end: this.pos(row + 1, 0),\n action: "remove",\n lines: ["", ""],\n });\n }),\n (this.replace = function(range, text) {\n if (\n (range instanceof Range ||\n (range = Range.fromPoints(range.start, range.end)),\n 0 === text.length && range.isEmpty())\n ) {\n return range.start;\n }\n if (text == this.getTextRange(range)) return range.end;\n this.remove(range);\n let end;\n return (end = text ? this.insert(range.start, text) : range.start);\n }),\n (this.applyDeltas = function(deltas) {\n for (let i = 0; deltas.length > i; i++) this.applyDelta(deltas[i]);\n }),\n (this.revertDeltas = function(deltas) {\n for (let i = deltas.length - 1; i >= 0; i--) {\n this.revertDelta(deltas[i]);\n }\n }),\n (this.applyDelta = function(delta, doNotValidate) {\n let isInsert = "insert" == delta.action;\n (isInsert\n ? 1 >= delta.lines.length && !delta.lines[0]\n : !Range.comparePoints(delta.start, delta.end)) ||\n (isInsert &&\n delta.lines.length > 2e4 &&\n this.$splitAndapplyLargeDelta(delta, 2e4),\n applyDelta(this.$lines, delta, doNotValidate),\n this._signal("change", delta));\n }),\n (this.$splitAndapplyLargeDelta = function(delta, MAX) {\n for (\n let lines = delta.lines,\n l = lines.length,\n row = delta.start.row,\n column = delta.start.column,\n from = 0,\n to = 0;\n ;\n\n ) {\n (from = to), (to += MAX - 1);\n let chunk = lines.slice(from, to);\n if (to > l) {\n (delta.lines = chunk),\n (delta.start.row = row + from),\n (delta.start.column = column);\n break;\n }\n chunk.push(""),\n this.applyDelta(\n {\n start: this.pos(row + from, column),\n end: this.pos(row + to, (column = 0)),\n action: delta.action,\n lines: chunk,\n },\n !0\n );\n }\n }),\n (this.revertDelta = function(delta) {\n this.applyDelta({\n start: this.clonePos(delta.start),\n end: this.clonePos(delta.end),\n action: "insert" == delta.action ? "remove" : "insert",\n lines: delta.lines.slice(),\n });\n }),\n (this.indexToPosition = function(index, startRow) {\n for (\n var lines = this.$lines || this.getAllLines(),\n newlineLength = this.getNewLineCharacter().length,\n i = startRow || 0,\n l = lines.length;\n l > i;\n i++\n ) {\n if (((index -= lines[i].length + newlineLength), 0 > index))\n return {\n row: i,\n column: index + lines[i].length + newlineLength,\n };\n }\n return { row: l - 1, column: lines[l - 1].length };\n }),\n (this.positionToIndex = function(pos, startRow) {\n for (\n var lines = this.$lines || this.getAllLines(),\n newlineLength = this.getNewLineCharacter().length,\n index = 0,\n row = Math.min(pos.row, lines.length),\n i = startRow || 0;\n row > i;\n ++i\n ) {\n index += lines[i].length + newlineLength;\n }\n return index + pos.column;\n });\n }.call(Document.prototype),\n (exports.Document = Document));\n }\n ),\n ace.define("ace/lib/lang", ["require", "exports", "module"], function(\n acequire,\n exports\n ) {\n (exports.last = function(a) {\n return a[a.length - 1];\n }),\n (exports.stringReverse = function(string) {\n return string\n .split("")\n .reverse()\n .join("");\n }),\n (exports.stringRepeat = function(string, count) {\n for (var result = ""; count > 0; ) {\n 1 & count && (result += string), (count >>= 1) && (string += string);\n }\n return result;\n });\n let trimBeginRegexp = /^\\s\\s*/,\n trimEndRegexp = /\\s\\s*$/;\n (exports.stringTrimLeft = function(string) {\n return string.replace(trimBeginRegexp, "");\n }),\n (exports.stringTrimRight = function(string) {\n return string.replace(trimEndRegexp, "");\n }),\n (exports.copyObject = function(obj) {\n let copy = {};\n for (let key in obj) copy[key] = obj[key];\n return copy;\n }),\n (exports.copyArray = function(array) {\n for (var copy = [], i = 0, l = array.length; l > i; i++) {\n copy[i] =\n array[i] && "object" == typeof array[i]\n ? this.copyObject(array[i])\n : array[i];\n }\n return copy;\n }),\n (exports.deepCopy = function deepCopy(obj) {\n if ("object" !== typeof obj || !obj) return obj;\n let copy;\n if (Array.isArray(obj)) {\n copy = [];\n for (var key = 0; obj.length > key; key++) {\n copy[key] = deepCopy(obj[key]);\n }\n return copy;\n }\n if ("[object Object]" !== Object.prototype.toString.call(obj)) {\n return obj;\n }\n copy = {};\n for (var key in obj) copy[key] = deepCopy(obj[key]);\n return copy;\n }),\n (exports.arrayToMap = function(arr) {\n for (var map = {}, i = 0; arr.length > i; i++) map[arr[i]] = 1;\n return map;\n }),\n (exports.createMap = function(props) {\n let map = Object.create(null);\n for (let i in props) map[i] = props[i];\n return map;\n }),\n (exports.arrayRemove = function(array, value) {\n for (let i = 0; array.length >= i; i++) {\n value === array[i] && array.splice(i, 1);\n }\n }),\n (exports.escapeRegExp = function(str) {\n return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g, "\\\\$1");\n }),\n (exports.escapeHTML = function(str) {\n return str\n .replace(/&/g, "&#38;")\n .replace(/"/g, "&#34;")\n .replace(/\'/g, "&#39;")\n .replace(/</g, "&#60;");\n }),\n (exports.getMatchOffsets = function(string, regExp) {\n let matches = [];\n return (\n string.replace(regExp, function(str) {\n matches.push({\n offset: arguments[arguments.length - 2],\n length: str.length,\n });\n }),\n matches\n );\n }),\n (exports.deferredCall = function(fcn) {\n var timer = null,\n callback = function() {\n (timer = null), fcn();\n },\n deferred = function(timeout) {\n return (\n deferred.cancel(),\n (timer = setTimeout(callback, timeout || 0)),\n deferred\n );\n };\n return (\n (deferred.schedule = deferred),\n (deferred.call = function() {\n return this.cancel(), fcn(), deferred;\n }),\n (deferred.cancel = function() {\n return clearTimeout(timer), (timer = null), deferred;\n }),\n (deferred.isPending = function() {\n return timer;\n }),\n deferred\n );\n }),\n (exports.delayedCall = function(fcn, defaultTimeout) {\n let timer = null,\n callback = function() {\n (timer = null), fcn();\n },\n _self = function(timeout) {\n null == timer &&\n (timer = setTimeout(callback, timeout || defaultTimeout));\n };\n return (\n (_self.delay = function(timeout) {\n timer && clearTimeout(timer),\n (timer = setTimeout(callback, timeout || defaultTimeout));\n }),\n (_self.schedule = _self),\n (_self.call = function() {\n this.cancel(), fcn();\n }),\n (_self.cancel = function() {\n timer && clearTimeout(timer), (timer = null);\n }),\n (_self.isPending = function() {\n return timer;\n }),\n _self\n );\n });\n }),\n ace.define(\n "ace/worker/mirror",\n [\n "require",\n "exports",\n "module",\n "ace/range",\n "ace/document",\n "ace/lib/lang",\n ],\n function(acequire, exports) {\n acequire("../range").Range;\n let Document = acequire("../document").Document,\n lang = acequire("../lib/lang"),\n Mirror = (exports.Mirror = function(sender) {\n this.sender = sender;\n let doc = (this.doc = new Document("")),\n deferredUpdate = (this.deferredUpdate = lang.delayedCall(\n this.onUpdate.bind(this)\n )),\n _self = this;\n sender.on("change", function(e) {\n let data = e.data;\n if (data[0].start) doc.applyDeltas(data);\n else {\n for (var i = 0; data.length > i; i += 2) {\n if (Array.isArray(data[i + 1]))\n var d = {\n action: "insert",\n start: data[i],\n lines: data[i + 1],\n };\n else\n var d = {\n action: "remove",\n start: data[i],\n end: data[i + 1],\n };\n doc.applyDelta(d, !0);\n }\n }\n return _self.$timeout\n ? deferredUpdate.schedule(_self.$timeout)\n : (_self.onUpdate(), void 0);\n });\n });\n (function() {\n (this.$timeout = 500),\n (this.setTimeout = function(timeout) {\n this.$timeout = timeout;\n }),\n (this.setValue = function(value) {\n this.doc.setValue(value),\n this.deferredUpdate.schedule(this.$timeout);\n }),\n (this.getValue = function(callbackId) {\n this.sender.callback(this.doc.getValue(), callbackId);\n }),\n (this.onUpdate = function() {}),\n (this.isPending = function() {\n return this.deferredUpdate.isPending();\n });\n }.call(Mirror.prototype));\n }\n ),\n ace.define("ace/lib/es5-shim", ["require", "exports", "module"], function() {\n function Empty() {}\n function doesDefinePropertyWork(object) {\n try {\n return (\n Object.defineProperty(object, "sentinel", {}), "sentinel" in object\n );\n } catch (exception) {}\n }\n function toInteger(n) {\n return (\n (n = +n),\n n !== n\n ? (n = 0)\n : 0 !== n &&\n n !== 1 / 0 &&\n n !== -(1 / 0) &&\n (n = (n > 0 || -1) * Math.floor(Math.abs(n))),\n n\n );\n }\n Function.prototype.bind ||\n (Function.prototype.bind = function(that) {\n let target = this;\n if ("function" !== typeof target) {\n throw new TypeError(\n "Function.prototype.bind called on incompatible " + target\n );\n }\n var args = slice.call(arguments, 1),\n bound = function() {\n if (this instanceof bound) {\n let result = target.apply(\n this,\n args.concat(slice.call(arguments))\n );\n return Object(result) === result ? result : this;\n }\n return target.apply(that, args.concat(slice.call(arguments)));\n };\n return (\n target.prototype &&\n ((Empty.prototype = target.prototype),\n (bound.prototype = new Empty()),\n (Empty.prototype = null)),\n bound\n );\n });\n var defineGetter,\n defineSetter,\n lookupGetter,\n lookupSetter,\n supportsAccessors,\n call = Function.prototype.call,\n prototypeOfArray = Array.prototype,\n prototypeOfObject = Object.prototype,\n slice = prototypeOfArray.slice,\n _toString = call.bind(prototypeOfObject.toString),\n owns = call.bind(prototypeOfObject.hasOwnProperty);\n if (\n ((supportsAccessors = owns(prototypeOfObject, "__defineGetter__")) &&\n ((defineGetter = call.bind(prototypeOfObject.__defineGetter__)),\n (defineSetter = call.bind(prototypeOfObject.__defineSetter__)),\n (lookupGetter = call.bind(prototypeOfObject.__lookupGetter__)),\n (lookupSetter = call.bind(prototypeOfObject.__lookupSetter__))),\n 2 != [1, 2].splice(0).length)\n ) {\n if (\n (function() {\n function makeArray(l) {\n var a = Array(l + 2);\n return (a[0] = a[1] = 0), a;\n }\n var lengthBefore,\n array = [];\n return (\n array.splice.apply(array, makeArray(20)),\n array.splice.apply(array, makeArray(26)),\n (lengthBefore = array.length),\n array.splice(5, 0, "XXX"),\n lengthBefore + 1 == array.length,\n lengthBefore + 1 == array.length ? !0 : void 0\n );\n })()\n ) {\n var array_splice = Array.prototype.splice;\n Array.prototype.splice = function(start, deleteCount) {\n return arguments.length\n ? array_splice.apply(\n this,\n [\n void 0 === start ? 0 : start,\n void 0 === deleteCount ? this.length - start : deleteCount,\n ].concat(slice.call(arguments, 2))\n )\n : [];\n };\n } else\n Array.prototype.splice = function(pos, removeCount) {\n var length = this.length;\n pos > 0\n ? pos > length && (pos = length)\n : void 0 == pos\n ? (pos = 0)\n : 0 > pos && (pos = Math.max(length + pos, 0)),\n length > pos + removeCount || (removeCount = length - pos);\n var removed = this.slice(pos, pos + removeCount),\n insert = slice.call(arguments, 2),\n add = insert.length;\n if (pos === length) add && this.push.apply(this, insert);\n else {\n var remove = Math.min(removeCount, length - pos),\n tailOldPos = pos + remove,\n tailNewPos = tailOldPos + add - remove,\n tailCount = length - tailOldPos,\n lengthAfterRemove = length - remove;\n if (tailOldPos > tailNewPos)\n for (var i = 0; tailCount > i; ++i)\n this[tailNewPos + i] = this[tailOldPos + i];\n else if (tailNewPos > tailOldPos)\n for (i = tailCount; i--; )\n this[tailNewPos + i] = this[tailOldPos + i];\n if (add && pos === lengthAfterRemove)\n (this.length = lengthAfterRemove), this.push.apply(this, insert);\n else\n for (this.length = lengthAfterRemove + add, i = 0; add > i; ++i)\n this[pos + i] = insert[i];\n }\n return removed;\n };\n }\n Array.isArray ||\n (Array.isArray = function(obj) {\n return "[object Array]" == _toString(obj);\n });\n let boxedString = Object("a"),\n splitString = "a" != boxedString[0] || !(0 in boxedString);\n if (\n (Array.prototype.forEach ||\n (Array.prototype.forEach = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n thisp = arguments[1],\n i = -1,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError();\n for (; length > ++i; ) {\n i in self && fun.call(thisp, self[i], i, object);\n }\n }),\n Array.prototype.map ||\n (Array.prototype.map = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n result = Array(length),\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n i in self && (result[i] = fun.call(thisp, self[i], i, object));\n }\n return result;\n }),\n Array.prototype.filter ||\n (Array.prototype.filter = function(fun) {\n let value,\n object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n result = [],\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n i in self &&\n ((value = self[i]),\n fun.call(thisp, value, i, object) && result.push(value));\n }\n return result;\n }),\n Array.prototype.every ||\n (Array.prototype.every = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n if (i in self && !fun.call(thisp, self[i], i, object)) return !1;\n }\n return !0;\n }),\n Array.prototype.some ||\n (Array.prototype.some = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n for (let i = 0; length > i; i++) {\n if (i in self && fun.call(thisp, self[i], i, object)) return !0;\n }\n return !1;\n }),\n Array.prototype.reduce ||\n (Array.prototype.reduce = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n if (!length && 1 == arguments.length) {\n throw new TypeError("reduce of empty array with no initial value");\n }\n let result,\n i = 0;\n if (arguments.length >= 2) result = arguments[1];\n else {\n for (;;) {\n if (i in self) {\n result = self[i++];\n break;\n }\n if (++i >= length)\n throw new TypeError(\n "reduce of empty array with no initial value"\n );\n }\n }\n for (; length > i; i++) {\n i in self &&\n (result = fun.call(void 0, result, self[i], i, object));\n }\n return result;\n }),\n Array.prototype.reduceRight ||\n (Array.prototype.reduceRight = function(fun) {\n let object = toObject(this),\n self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) {\n throw new TypeError(fun + " is not a function");\n }\n if (!length && 1 == arguments.length) {\n throw new TypeError(\n "reduceRight of empty array with no initial value"\n );\n }\n let result,\n i = length - 1;\n if (arguments.length >= 2) result = arguments[1];\n else {\n for (;;) {\n if (i in self) {\n result = self[i--];\n break;\n }\n if (0 > --i)\n throw new TypeError(\n "reduceRight of empty array with no initial value"\n );\n }\n }\n do {\n i in this &&\n (result = fun.call(void 0, result, self[i], i, object));\n } while (i--);\n return result;\n }),\n (Array.prototype.indexOf && -1 == [0, 1].indexOf(1, 2)) ||\n (Array.prototype.indexOf = function(sought) {\n let self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n let i = 0;\n for (\n arguments.length > 1 && (i = toInteger(arguments[1])),\n i = i >= 0 ? i : Math.max(0, length + i);\n length > i;\n i++\n ) {\n if (i in self && self[i] === sought) return i;\n }\n return -1;\n }),\n (Array.prototype.lastIndexOf && -1 == [0, 1].lastIndexOf(0, -3)) ||\n (Array.prototype.lastIndexOf = function(sought) {\n let self =\n splitString && "[object String]" == _toString(this)\n ? this.split("")\n : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n let i = length - 1;\n for (\n arguments.length > 1 && (i = Math.min(i, toInteger(arguments[1]))),\n i = i >= 0 ? i : length - Math.abs(i);\n i >= 0;\n i--\n ) {\n if (i in self && sought === self[i]) return i;\n }\n return -1;\n }),\n Object.getPrototypeOf ||\n (Object.getPrototypeOf = function(object) {\n return (\n object.__proto__ ||\n (object.constructor\n ? object.constructor.prototype\n : prototypeOfObject)\n );\n }),\n !Object.getOwnPropertyDescriptor)\n ) {\n let ERR_NON_OBJECT =\n "Object.getOwnPropertyDescriptor called on a non-object: ";\n Object.getOwnPropertyDescriptor = function(object, property) {\n if (\n ("object" !== typeof object && "function" !== typeof object) ||\n null === object\n ) {\n throw new TypeError(ERR_NON_OBJECT + object);\n }\n if (owns(object, property)) {\n var descriptor, getter, setter;\n if (\n ((descriptor = { enumerable: !0, configurable: !0 }),\n supportsAccessors)\n ) {\n let prototype = object.__proto__;\n object.__proto__ = prototypeOfObject;\n var getter = lookupGetter(object, property),\n setter = lookupSetter(object, property);\n if (((object.__proto__ = prototype), getter || setter)) {\n return (\n getter && (descriptor.get = getter),\n setter && (descriptor.set = setter),\n descriptor\n );\n }\n }\n return (descriptor.value = object[property]), descriptor;\n }\n };\n }\n if (\n (Object.getOwnPropertyNames ||\n (Object.getOwnPropertyNames = function(object) {\n return Object.keys(object);\n }),\n !Object.create)\n ) {\n let createEmpty;\n (createEmpty =\n null === Object.prototype.__proto__\n ? function() {\n return { __proto__: null };\n }\n : function() {\n let empty = {};\n for (let i in empty) empty[i] = null;\n return (\n (empty.constructor = empty.hasOwnProperty = empty.propertyIsEnumerable = empty.isPrototypeOf = empty.toLocaleString = empty.toString = empty.valueOf = empty.__proto__ = null),\n empty\n );\n }),\n (Object.create = function(prototype, properties) {\n let object;\n if (null === prototype) object = createEmpty();\n else {\n if ("object" !== typeof prototype) {\n throw new TypeError(\n "typeof prototype[" + typeof prototype + "] != \'object\'"\n );\n }\n let Type = function() {};\n (Type.prototype = prototype),\n (object = new Type()),\n (object.__proto__ = prototype);\n }\n return (\n void 0 !== properties &&\n Object.defineProperties(object, properties),\n object\n );\n });\n }\n if (Object.defineProperty) {\n let definePropertyWorksOnObject = doesDefinePropertyWork({}),\n definePropertyWorksOnDom =\n "undefined" === typeof document ||\n doesDefinePropertyWork(document.createElement("div"));\n if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) {\n var definePropertyFallback = Object.defineProperty;\n }\n }\n if (!Object.defineProperty || definePropertyFallback) {\n let ERR_NON_OBJECT_DESCRIPTOR =\n "Property description must be an object: ",\n ERR_NON_OBJECT_TARGET = "Object.defineProperty called on non-object: ",\n ERR_ACCESSORS_NOT_SUPPORTED =\n "getters & setters can not be defined on this javascript engine";\n Object.defineProperty = function(object, property, descriptor) {\n if (\n ("object" !== typeof object && "function" !== typeof object) ||\n null === object\n ) {\n throw new TypeError(ERR_NON_OBJECT_TARGET + object);\n }\n if (\n ("object" !== typeof descriptor &&\n "function" !== typeof descriptor) ||\n null === descriptor\n ) {\n throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);\n }\n if (definePropertyFallback) {\n try {\n return definePropertyFallback.call(\n Object,\n object,\n property,\n descriptor\n );\n } catch (exception) {}\n }\n if (owns(descriptor, "value")) {\n if (\n supportsAccessors &&\n (lookupGetter(object, property) || lookupSetter(object, property))\n ) {\n var prototype = object.__proto__;\n (object.__proto__ = prototypeOfObject),\n delete object[property],\n (object[property] = descriptor.value),\n (object.__proto__ = prototype);\n } else object[property] = descriptor.value;\n } else {\n if (!supportsAccessors) {\n throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);\n }\n owns(descriptor, "get") &&\n defineGetter(object, property, descriptor.get),\n owns(descriptor, "set") &&\n defineSetter(object, property, descriptor.set);\n }\n return object;\n };\n }\n Object.defineProperties ||\n (Object.defineProperties = function(object, properties) {\n for (let property in properties) {\n owns(properties, property) &&\n Object.defineProperty(object, property, properties[property]);\n }\n return object;\n }),\n Object.seal ||\n (Object.seal = function(object) {\n return object;\n }),\n Object.freeze ||\n (Object.freeze = function(object) {\n return object;\n });\n try {\n Object.freeze(function() {});\n } catch (exception) {\n Object.freeze = (function(freezeObject) {\n return function(object) {\n return "function" === typeof object ? object : freezeObject(object);\n };\n })(Object.freeze);\n }\n if (\n (Object.preventExtensions ||\n (Object.preventExtensions = function(object) {\n return object;\n }),\n Object.isSealed ||\n (Object.isSealed = function() {\n return !1;\n }),\n Object.isFrozen ||\n (Object.isFrozen = function() {\n return !1;\n }),\n Object.isExtensible ||\n (Object.isExtensible = function(object) {\n if (Object(object) === object) throw new TypeError();\n for (var name = ""; owns(object, name); ) name += "?";\n object[name] = !0;\n let returnValue = owns(object, name);\n return delete object[name], returnValue;\n }),\n !Object.keys)\n ) {\n let hasDontEnumBug = !0,\n dontEnums = [\n "toString",\n "toLocaleString",\n "valueOf",\n "hasOwnProperty",\n "isPrototypeOf",\n "propertyIsEnumerable",\n "constructor",\n ],\n dontEnumsLength = dontEnums.length;\n for (let key in { toString: null }) hasDontEnumBug = !1;\n Object.keys = function(object) {\n if (\n ("object" !== typeof object && "function" !== typeof object) ||\n null === object\n ) {\n throw new TypeError("Object.keys called on a non-object");\n }\n let keys = [];\n for (let name in object) owns(object, name) && keys.push(name);\n if (hasDontEnumBug) {\n for (var i = 0, ii = dontEnumsLength; ii > i; i++) {\n var dontEnum = dontEnums[i];\n owns(object, dontEnum) && keys.push(dontEnum);\n }\n }\n return keys;\n };\n }\n Date.now ||\n (Date.now = function() {\n return new Date().getTime();\n });\n let ws = "\t\\nv\\f\\r   ᠎              \\u2028\\u2029\ufeff";\n if (!String.prototype.trim || ws.trim()) {\n ws = "[" + ws + "]";\n let trimBeginRegexp = RegExp("^" + ws + ws + "*"),\n trimEndRegexp = RegExp(ws + ws + "*$");\n String.prototype.trim = function() {\n return (this + "")\n .replace(trimBeginRegexp, "")\n .replace(trimEndRegexp, "");\n };\n }\n var toObject = function(o) {\n if (null == o) throw new TypeError("can\'t convert " + o + " to object");\n return Object(o);\n };\n });\nace.define(\n "sense_editor/mode/worker_parser",\n ["require", "exports", "module"],\n function() {\n let at, // The index of the current character\n ch, // The current character\n annos, // annotations\n escapee = {\n \'"\': \'"\',\n "\\\\": "\\\\",\n "/": "/",\n b: "\\b",\n f: "\\f",\n n: "\\n",\n r: "\\r",\n t: "\\t",\n },\n text,\n annotate = function(type, text) {\n annos.push({ type: type, text: text, at: at });\n },\n error = function(m) {\n throw {\n name: "SyntaxError",\n message: m,\n at: at,\n text: text,\n };\n },\n reset = function(newAt) {\n ch = text.charAt(newAt);\n at = newAt + 1;\n },\n next = function(c) {\n if (c && c !== ch) {\n error("Expected \'" + c + "\' instead of \'" + ch + "\'");\n }\n\n ch = text.charAt(at);\n at += 1;\n return ch;\n },\n nextUpTo = function(upTo, errorMessage) {\n let currentAt = at,\n i = text.indexOf(upTo, currentAt);\n if (i < 0) {\n error(errorMessage || "Expected \'" + upTo + "\'");\n }\n reset(i + upTo.length);\n return text.substring(currentAt, i);\n },\n peek = function(c) {\n return text.substr(at, c.length) === c; // nocommit - double check\n },\n number = function() {\n let number,\n string = "";\n\n if (ch === "-") {\n string = "-";\n next("-");\n }\n while (ch >= "0" && ch <= "9") {\n string += ch;\n next();\n }\n if (ch === ".") {\n string += ".";\n while (next() && ch >= "0" && ch <= "9") {\n string += ch;\n }\n }\n if (ch === "e" || ch === "E") {\n string += ch;\n next();\n if (ch === "-" || ch === "+") {\n string += ch;\n next();\n }\n while (ch >= "0" && ch <= "9") {\n string += ch;\n next();\n }\n }\n number = +string;\n if (isNaN(number)) {\n error("Bad number");\n } else {\n return number;\n }\n },\n string = function() {\n let hex,\n i,\n string = "",\n uffff;\n\n if (ch === \'"\') {\n if (peek(\'""\')) {\n // literal\n next(\'"\');\n next(\'"\');\n return nextUpTo(\'"""\', \'failed to find closing \\\'"""\\\'\');\n } else {\n while (next()) {\n if (ch === \'"\') {\n next();\n return string;\n } else if (ch === "\\\\") {\n next();\n if (ch === "u") {\n uffff = 0;\n for (i = 0; i < 4; i += 1) {\n hex = parseInt(next(), 16);\n if (!isFinite(hex)) {\n break;\n }\n uffff = uffff * 16 + hex;\n }\n string += String.fromCharCode(uffff);\n } else if (typeof escapee[ch] === "string") {\n string += escapee[ch];\n } else {\n break;\n }\n } else {\n string += ch;\n }\n }\n }\n }\n error("Bad string");\n },\n white = function() {\n while (ch && ch <= " ") {\n next();\n }\n },\n strictWhite = function() {\n while (ch && (ch == " " || ch == "\\t")) {\n next();\n }\n },\n newLine = function() {\n if (ch == "\\n") next();\n },\n word = function() {\n switch (ch) {\n case "t":\n next("t");\n next("r");\n next("u");\n next("e");\n return true;\n case "f":\n next("f");\n next("a");\n next("l");\n next("s");\n next("e");\n return false;\n case "n":\n next("n");\n next("u");\n next("l");\n next("l");\n return null;\n }\n error("Unexpected \'" + ch + "\'");\n },\n // parses and returns the method\n method = function() {\n switch (ch) {\n case "G":\n next("G");\n next("E");\n next("T");\n return "GET";\n case "H":\n next("H");\n next("E");\n next("A");\n next("D");\n return "HEAD";\n case "D":\n next("D");\n next("E");\n next("L");\n next("E");\n next("T");\n next("E");\n return "DELETE";\n case "P":\n next("P");\n switch (ch) {\n case "U":\n next("U");\n next("T");\n return "PUT";\n case "O":\n next("O");\n next("S");\n next("T");\n return "POST";\n default:\n error("Unexpected \'" + ch + "\'");\n }\n break;\n case "L":\n next("L");\n next("O");\n next("A");\n next("D");\n return "LOAD";\n case "C":\n next("C");\n next("O");\n next("N");\n next("F");\n next("I");\n next("G");\n return "CONFIG";\n case "S":\n next("S");\n next("E");\n next("L");\n next("E");\n next("C");\n next("T");\n return "SELECT";\n case "F":\n next("F");\n next("R");\n next("O");\n next("M");\n return "FROM";\n default:\n error("Expected one of GET/POST/PUT/DELETE/HEAD/LOAD/CONFIG/SELECT/FROM");\n }\n },\n value, // Place holder for the value function.\n array = function() {\n const array = [];\n\n if (ch === "[") {\n next("[");\n white();\n if (ch === "]") {\n next("]");\n return array; // empty array\n }\n while (ch) {\n array.push(value());\n white();\n if (ch === "]") {\n next("]");\n return array;\n }\n next(",");\n white();\n }\n }\n error("Bad array");\n },\n object = function() {\n let key,\n object = {};\n\n if (ch === "{") {\n next("{");\n white();\n if (ch === "}") {\n next("}");\n return object; // empty object\n }\n while (ch) {\n key = string();\n white();\n next(":");\n if (Object.hasOwnProperty.call(object, key)) {\n error(\'Duplicate key "\' + key + \'"\');\n }\n object[key] = value();\n white();\n if (ch === "}") {\n next("}");\n return object;\n }\n next(",");\n white();\n }\n }\n error("Bad object");\n };\n\n value = function() {\n white();\n switch (ch) {\n case "{":\n return object();\n case "[":\n return array();\n case \'"\':\n return string();\n case "-":\n return number();\n default:\n return ch >= "0" && ch <= "9" ? number() : word();\n }\n };\n\n let url = function() {\n let url = "";\n while (ch && ch != "\\n") {\n url += ch;\n next();\n }\n if (url == "") {\n error("Missing url");\n }\n return url;\n },\n request = function() {\n white();\n method();\n strictWhite();\n url();\n strictWhite(); // advance to one new line\n newLine();\n strictWhite();\n if (ch == "{") {\n object();\n }\n // multi doc request\n strictWhite(); // advance to one new line\n newLine();\n strictWhite();\n while (ch == "{") {\n // another object\n object();\n strictWhite();\n newLine();\n strictWhite();\n }\n },\n comment = function() {\n while (ch == "#") {\n while (ch && ch !== "\\n") {\n next();\n }\n white();\n }\n },\n multi_request = function() {\n while (ch && ch != "") {\n white();\n if (!ch) {\n continue;\n }\n try {\n comment();\n white();\n if (!ch) {\n continue;\n }\n request();\n white();\n } catch (e) {\n annotate("error", e.message);\n // snap\n const substring = text.substr(at);\n const nextMatch = substring.search(/^POST|HEAD|GET|PUT|DELETE/m);\n if (nextMatch < 1) return;\n reset(at + nextMatch);\n }\n }\n };\n\n return function(source, reviver) {\n let result;\n\n text = source;\n at = 0;\n annos = [];\n next();\n multi_request();\n white();\n if (ch) {\n annotate("error", "Syntax error");\n }\n\n result = { annotations: annos };\n\n return typeof reviver === "function"\n ? (function walk(holder, key) {\n let k,\n v,\n value = holder[key];\n if (value && typeof value === "object") {\n for (k in value) {\n if (Object.hasOwnProperty.call(value, k)) {\n v = walk(value, k);\n if (v !== undefined) {\n value[k] = v;\n } else {\n delete value[k];\n }\n }\n }\n }\n return reviver.call(holder, key, value);\n })({ "": result }, "")\n : result;\n };\n }\n);\n\nace.define(\n "sense_editor/mode/worker",\n [\n "require",\n "exports",\n "module",\n "ace/lib/oop",\n "ace/worker/mirror",\n "sense_editor/mode/worker_parser",\n ],\n function(require, exports) {\n const oop = require("ace/lib/oop");\n const Mirror = require("ace/worker/mirror").Mirror;\n const parse = require("sense_editor/mode/worker_parser");\n\n const SenseWorker = (exports.SenseWorker = function(sender) {\n Mirror.call(this, sender);\n this.setTimeout(200);\n });\n\n oop.inherits(SenseWorker, Mirror);\n\n (function() {\n this.id = "senseWorker";\n this.onUpdate = function() {\n const value = this.doc.getValue();\n let pos, result;\n try {\n result = parse(value);\n } catch (e) {\n pos = this.charToDocumentPosition(e.at - 1);\n this.sender.emit("error", {\n row: pos.row,\n column: pos.column,\n text: e.message,\n type: "error",\n });\n return;\n }\n for (let i = 0; i < result.annotations.length; i++) {\n pos = this.charToDocumentPosition(result.annotations[i].at - 1);\n result.annotations[i].row = pos.row;\n result.annotations[i].column = pos.column;\n }\n this.sender.emit("ok", result.annotations);\n };\n\n this.charToDocumentPosition = function(charPos) {\n let i = 0;\n const len = this.doc.getLength();\n const nl = this.doc.getNewLineCharacter().length;\n\n if (!len) {\n return { row: 0, column: 0 };\n }\n\n let lineStart = 0,\n line;\n while (i < len) {\n line = this.doc.getLine(i);\n const lineLength = line.length + nl;\n if (lineStart + lineLength > charPos) {\n return {\n row: i,\n column: charPos - lineStart,\n };\n }\n\n lineStart += lineLength;\n i += 1;\n }\n\n return {\n row: i - 1,\n column: line.length,\n };\n };\n }.call(SenseWorker.prototype));\n }\n);\n'},mr=me().acequire("ace/mode/text_highlight_rules").TextHighlightRules,_r=me().acequire("ace/lib/oop"),gr=function(){var e=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:e,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()};_r.inherits(gr,mr);var yr=me().acequire("ace/lib/oop"),wr=me().acequire("ace/mode/text_highlight_rules").TextHighlightRules;function vr(){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:"def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx"},{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+"}]}}yr.inherits(vr,wr);var br=function(){return br=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},br.apply(this,arguments)},xr=me().acequire("ace/mode/json_highlight_rules").JsonHighlightRules,Or=me().acequire("ace/lib/oop"),jr=function(e){var 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=e||"json",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 Er(){var e=jr("start");this.$rules=br({},e),this.embedRules(vr,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(gr,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}function kr(e,t){e.$rules=(0,f.defaultsDeep)(e.$rules,jr(t)),e.embedRules(vr,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(gr,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}Or.inherits(Er,xr);var Sr={id:"ace/mode/json_worker",src:'/*\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n */\n\n/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the "License"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/*\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n/* @notice\n *\n * This product includes code that is based on Ace editor, which was available\n * under a "BSD" license.\n *\n * Distributed under the BSD license:\n *\n * Copyright (c) 2010, Ajax.org B.V.\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are met:\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above copyright\n * notice, this list of conditions and the following disclaimer in the\n * documentation and/or other materials provided with the distribution.\n * * Neither the name of Ajax.org B.V. nor the\n * names of its contributors may be used to endorse or promote products\n * derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED. IN NO EVENT SHALL AJAX.ORG B.V. BE LIABLE FOR ANY\n * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n/* eslint-disable */\n/*\n This file is loaded up as a blob by Brace to hand to Ace to load as Jsonp\n (hence the redefining of everything). It is based on the json\n mode from the brace distro.\n\n It is very likely that this file will be removed in future but for now it enables\n extended JSON parsing, like e.g. """{}""" (triple quotes)\n*/\n"no use strict";\n! function(window) {\n window = window || {}\n function resolveModuleId(id, paths) {\n for (var testPath = id, tail = ""; testPath;) {\n var alias = paths[testPath];\n if ("string" == typeof alias) return alias + tail;\n if (alias) return alias.location.replace(/\\/*$/, "/") + (tail || alias.main || alias.name);\n if (alias === !1) return "";\n var i = testPath.lastIndexOf("/");\n if (-1 === i) break;\n tail = testPath.substr(i) + tail, testPath = testPath.slice(0, i)\n }\n return id\n }\n if (!(void 0 !== window.window && window.document || window.acequire && window.define)) {\n window.console || (window.console = function() {\n var msgs = Array.prototype.slice.call(arguments, 0);\n postMessage({\n type: "log",\n data: msgs\n })\n }, 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) {\n postMessage({\n type: "error",\n data: {\n message: message,\n data: err.data,\n file: file,\n line: line,\n col: col,\n stack: err.stack\n }\n })\n }, window.normalizeModule = function(parentId, moduleName) {\n if (-1 !== moduleName.indexOf("!")) {\n var chunks = moduleName.split("!");\n return window.normalizeModule(parentId, chunks[0]) + "!" + window.normalizeModule(parentId, chunks[1])\n }\n if ("." == moduleName.charAt(0)) {\n var base = parentId.split("/").slice(0, -1).join("/");\n for (moduleName = (base ? base + "/" : "") + moduleName; - 1 !== moduleName.indexOf(".") && previous != moduleName;) {\n var previous = moduleName;\n moduleName = moduleName.replace(/^\\.\\//, "").replace(/\\/\\.\\//, "/").replace(/[^\\/]+\\/\\.\\.\\//, "")\n }\n }\n return moduleName\n }, window.acequire = function acequire(parentId, id) {\n if (id || (id = parentId, parentId = null), !id.charAt) throw Error("worker.js acequire() accepts only (parentId, id) as arguments");\n id = window.normalizeModule(parentId, id);\n var module = window.acequire.modules[id];\n if (module) return module.initialized || (module.initialized = !0, module.exports = module.factory().exports), module.exports;\n if (!window.acequire.tlns) return console.log("unable to load " + id);\n var path = resolveModuleId(id, window.acequire.tlns);\n return ".js" != path.slice(-3) && (path += ".js"), window.acequire.id = id, window.acequire.modules[id] = {}, importScripts(path), window.acequire(parentId, id)\n }, window.acequire.modules = {}, window.acequire.tlns = {}, window.define = function(id, deps, factory) {\n 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] = {\n exports: factory,\n initialized: !0\n }, void 0;\n deps.length || (deps = ["require", "exports", "module"]);\n var req = function(childId) {\n return window.acequire(id, childId)\n };\n window.acequire.modules[id] = {\n exports: {},\n factory: function() {\n var module = this,\n returnExports = factory.apply(this, deps.map(function(dep) {\n switch (dep) {\n case "require":\n return req;\n case "exports":\n return module.exports;\n case "module":\n return module;\n default:\n return req(dep)\n }\n }));\n return returnExports && (module.exports = returnExports), module\n }\n }\n }, window.define.amd = {}, window.acequire.tlns = {}, window.initBaseUrls = function(topLevelNamespaces) {\n for (var i in topLevelNamespaces) acequire.tlns[i] = topLevelNamespaces[i]\n }, window.initSender = function() {\n var EventEmitter = window.acequire("ace/lib/event_emitter").EventEmitter,\n oop = window.acequire("ace/lib/oop"),\n Sender = function() {};\n return function() {\n oop.implement(this, EventEmitter), this.callback = function(data, callbackId) {\n postMessage({\n type: "call",\n id: callbackId,\n data: data\n })\n }, this.emit = function(name, data) {\n postMessage({\n type: "event",\n name: name,\n data: data\n })\n }\n }.call(Sender.prototype), new Sender\n };\n var main = window.main = null,\n sender = window.sender = null;\n window.onmessage = function(e) {\n var msg = e.data;\n if (msg.event && sender) sender._signal(msg.event, msg.data);\n else if (msg.command)\n if (main[msg.command]) main[msg.command].apply(main, msg.args);\n else {\n if (!window[msg.command]) throw Error("Unknown command:" + msg.command);\n window[msg.command].apply(window, msg.args)\n }\n else if (msg.init) {\n window.initBaseUrls(msg.tlns), acequire("ace/lib/es5-shim"), sender = window.sender = window.initSender();\n var clazz = acequire(msg.module)[msg.classname];\n main = window.main = new clazz(sender)\n }\n }\n }\n}(this), ace.define("ace/lib/oop", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n exports.inherits = function(ctor, superCtor) {\n ctor.super_ = superCtor, ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n })\n }, exports.mixin = function(obj, mixin) {\n for (var key in mixin) obj[key] = mixin[key];\n return obj\n }, exports.implement = function(proto, mixin) {\n exports.mixin(proto, mixin)\n }\n}), ace.define("ace/range", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n var comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column\n },\n Range = function(startRow, startColumn, endRow, endColumn) {\n this.start = {\n row: startRow,\n column: startColumn\n }, this.end = {\n row: endRow,\n column: endColumn\n }\n };\n (function() {\n this.isEqual = function(range) {\n 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\n }, this.toString = function() {\n return "Range: [" + this.start.row + "/" + this.start.column + "] -> [" + this.end.row + "/" + this.end.column + "]"\n }, this.contains = function(row, column) {\n return 0 == this.compare(row, column)\n }, this.compareRange = function(range) {\n var cmp, end = range.end,\n start = range.start;\n 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)\n }, this.comparePoint = function(p) {\n return this.compare(p.row, p.column)\n }, this.containsRange = function(range) {\n return 0 == this.comparePoint(range.start) && 0 == this.comparePoint(range.end)\n }, this.intersects = function(range) {\n var cmp = this.compareRange(range);\n return -1 == cmp || 0 == cmp || 1 == cmp\n }, this.isEnd = function(row, column) {\n return this.end.row == row && this.end.column == column\n }, this.isStart = function(row, column) {\n return this.start.row == row && this.start.column == column\n }, this.setStart = function(row, column) {\n "object" == typeof row ? (this.start.column = row.column, this.start.row = row.row) : (this.start.row = row, this.start.column = column)\n }, this.setEnd = function(row, column) {\n "object" == typeof row ? (this.end.column = row.column, this.end.row = row.row) : (this.end.row = row, this.end.column = column)\n }, this.inside = function(row, column) {\n return 0 == this.compare(row, column) ? this.isEnd(row, column) || this.isStart(row, column) ? !1 : !0 : !1\n }, this.insideStart = function(row, column) {\n return 0 == this.compare(row, column) ? this.isEnd(row, column) ? !1 : !0 : !1\n }, this.insideEnd = function(row, column) {\n return 0 == this.compare(row, column) ? this.isStart(row, column) ? !1 : !0 : !1\n }, this.compare = function(row, column) {\n 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\n }, this.compareStart = function(row, column) {\n return this.start.row == row && this.start.column == column ? -1 : this.compare(row, column)\n }, this.compareEnd = function(row, column) {\n return this.end.row == row && this.end.column == column ? 1 : this.compare(row, column)\n }, this.compareInside = function(row, column) {\n return this.end.row == row && this.end.column == column ? 1 : this.start.row == row && this.start.column == column ? -1 : this.compare(row, column)\n }, this.clipRows = function(firstRow, lastRow) {\n if (this.end.row > lastRow) var end = {\n row: lastRow + 1,\n column: 0\n };\n else if (firstRow > this.end.row) var end = {\n row: firstRow,\n column: 0\n };\n if (this.start.row > lastRow) var start = {\n row: lastRow + 1,\n column: 0\n };\n else if (firstRow > this.start.row) var start = {\n row: firstRow,\n column: 0\n };\n return Range.fromPoints(start || this.start, end || this.end)\n }, this.extend = function(row, column) {\n var cmp = this.compare(row, column);\n if (0 == cmp) return this;\n if (-1 == cmp) var start = {\n row: row,\n column: column\n };\n else var end = {\n row: row,\n column: column\n };\n return Range.fromPoints(start || this.start, end || this.end)\n }, this.isEmpty = function() {\n return this.start.row === this.end.row && this.start.column === this.end.column\n }, this.isMultiLine = function() {\n return this.start.row !== this.end.row\n }, this.clone = function() {\n return Range.fromPoints(this.start, this.end)\n }, this.collapseRows = function() {\n 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)\n }, this.toScreenRange = function(session) {\n var screenPosStart = session.documentToScreenPosition(this.start),\n screenPosEnd = session.documentToScreenPosition(this.end);\n return new Range(screenPosStart.row, screenPosStart.column, screenPosEnd.row, screenPosEnd.column)\n }, this.moveBy = function(row, column) {\n this.start.row += row, this.start.column += column, this.end.row += row, this.end.column += column\n }\n }).call(Range.prototype), Range.fromPoints = function(start, end) {\n return new Range(start.row, start.column, end.row, end.column)\n }, Range.comparePoints = comparePoints, Range.comparePoints = function(p1, p2) {\n return p1.row - p2.row || p1.column - p2.column\n }, exports.Range = Range\n}), ace.define("ace/apply_delta", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n exports.applyDelta = function(docLines, delta) {\n var row = delta.start.row,\n startColumn = delta.start.column,\n line = docLines[row] || "";\n switch (delta.action) {\n case "insert":\n var lines = delta.lines;\n if (1 === lines.length) docLines[row] = line.substring(0, startColumn) + delta.lines[0] + line.substring(startColumn);\n else {\n var args = [row, 1].concat(delta.lines);\n docLines.splice.apply(docLines, args), docLines[row] = line.substring(0, startColumn) + docLines[row], docLines[row + delta.lines.length - 1] += line.substring(startColumn)\n }\n break;\n case "remove":\n var endColumn = delta.end.column,\n endRow = delta.end.row;\n 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))\n }\n }\n}), ace.define("ace/lib/event_emitter", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n var EventEmitter = {},\n stopPropagation = function() {\n this.propagationStopped = !0\n },\n preventDefault = function() {\n this.defaultPrevented = !0\n };\n EventEmitter._emit = EventEmitter._dispatchEvent = function(eventName, e) {\n this._eventRegistry || (this._eventRegistry = {}), this._defaultHandlers || (this._defaultHandlers = {});\n var listeners = this._eventRegistry[eventName] || [],\n defaultHandler = this._defaultHandlers[eventName];\n if (listeners.length || defaultHandler) {\n "object" == typeof e && e || (e = {}), e.type || (e.type = eventName), e.stopPropagation || (e.stopPropagation = stopPropagation), e.preventDefault || (e.preventDefault = preventDefault), listeners = listeners.slice();\n for (var i = 0; listeners.length > i && (listeners[i](e, this), !e.propagationStopped); i++);\n return defaultHandler && !e.defaultPrevented ? defaultHandler(e, this) : void 0\n }\n }, EventEmitter._signal = function(eventName, e) {\n var listeners = (this._eventRegistry || {})[eventName];\n if (listeners) {\n listeners = listeners.slice();\n for (var i = 0; listeners.length > i; i++) listeners[i](e, this)\n }\n }, EventEmitter.once = function(eventName, callback) {\n var _self = this;\n callback && this.addEventListener(eventName, function newCallback() {\n _self.removeEventListener(eventName, newCallback), callback.apply(null, arguments)\n })\n }, EventEmitter.setDefaultHandler = function(eventName, callback) {\n var handlers = this._defaultHandlers;\n if (handlers || (handlers = this._defaultHandlers = {\n _disabled_: {}\n }), handlers[eventName]) {\n var old = handlers[eventName],\n disabled = handlers._disabled_[eventName];\n disabled || (handlers._disabled_[eventName] = disabled = []), disabled.push(old);\n var i = disabled.indexOf(callback); - 1 != i && disabled.splice(i, 1)\n }\n handlers[eventName] = callback\n }, EventEmitter.removeDefaultHandler = function(eventName, callback) {\n var handlers = this._defaultHandlers;\n if (handlers) {\n var disabled = handlers._disabled_[eventName];\n if (handlers[eventName] == callback) handlers[eventName], disabled && this.setDefaultHandler(eventName, disabled.pop());\n else if (disabled) {\n var i = disabled.indexOf(callback); - 1 != i && disabled.splice(i, 1)\n }\n }\n }, EventEmitter.on = EventEmitter.addEventListener = function(eventName, callback, capturing) {\n this._eventRegistry = this._eventRegistry || {};\n var listeners = this._eventRegistry[eventName];\n return listeners || (listeners = this._eventRegistry[eventName] = []), -1 == listeners.indexOf(callback) && listeners[capturing ? "unshift" : "push"](callback), callback\n }, EventEmitter.off = EventEmitter.removeListener = EventEmitter.removeEventListener = function(eventName, callback) {\n this._eventRegistry = this._eventRegistry || {};\n var listeners = this._eventRegistry[eventName];\n if (listeners) {\n var index = listeners.indexOf(callback); - 1 !== index && listeners.splice(index, 1)\n }\n }, EventEmitter.removeAllListeners = function(eventName) {\n this._eventRegistry && (this._eventRegistry[eventName] = [])\n }, exports.EventEmitter = EventEmitter\n}), ace.define("ace/anchor", ["require", "exports", "module", "ace/lib/oop", "ace/lib/event_emitter"], function(acequire, exports) {\n "use strict";\n var oop = acequire("./lib/oop"),\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Anchor = exports.Anchor = function(doc, row, column) {\n this.$onChange = this.onChange.bind(this), this.attach(doc), column === void 0 ? this.setPosition(row.row, row.column) : this.setPosition(row, column)\n };\n (function() {\n function $pointsInOrder(point1, point2, equalPointsInOrder) {\n var bColIsAfter = equalPointsInOrder ? point1.column <= point2.column : point1.column < point2.column;\n return point1.row < point2.row || point1.row == point2.row && bColIsAfter\n }\n\n function $getTransformedPoint(delta, point, moveIfEqual) {\n var deltaIsInsert = "insert" == delta.action,\n deltaRowShift = (deltaIsInsert ? 1 : -1) * (delta.end.row - delta.start.row),\n deltaColShift = (deltaIsInsert ? 1 : -1) * (delta.end.column - delta.start.column),\n deltaStart = delta.start,\n deltaEnd = deltaIsInsert ? deltaStart : delta.end;\n return $pointsInOrder(point, deltaStart, moveIfEqual) ? {\n row: point.row,\n column: point.column\n } : $pointsInOrder(deltaEnd, point, !moveIfEqual) ? {\n row: point.row + deltaRowShift,\n column: point.column + (point.row == deltaEnd.row ? deltaColShift : 0)\n } : {\n row: deltaStart.row,\n column: deltaStart.column\n }\n }\n oop.implement(this, EventEmitter), this.getPosition = function() {\n return this.$clipPositionToDocument(this.row, this.column)\n }, this.getDocument = function() {\n return this.document\n }, this.$insertRight = !1, this.onChange = function(delta) {\n if (!(delta.start.row == delta.end.row && delta.start.row != this.row || delta.start.row > this.row)) {\n var point = $getTransformedPoint(delta, {\n row: this.row,\n column: this.column\n }, this.$insertRight);\n this.setPosition(point.row, point.column, !0)\n }\n }, this.setPosition = function(row, column, noClip) {\n var pos;\n if (pos = noClip ? {\n row: row,\n column: column\n } : this.$clipPositionToDocument(row, column), this.row != pos.row || this.column != pos.column) {\n var old = {\n row: this.row,\n column: this.column\n };\n this.row = pos.row, this.column = pos.column, this._signal("change", {\n old: old,\n value: pos\n })\n }\n }, this.detach = function() {\n this.document.removeEventListener("change", this.$onChange)\n }, this.attach = function(doc) {\n this.document = doc || this.document, this.document.on("change", this.$onChange)\n }, this.$clipPositionToDocument = function(row, column) {\n var pos = {};\n 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\n }\n }).call(Anchor.prototype)\n}), ace.define("ace/document", ["require", "exports", "module", "ace/lib/oop", "ace/apply_delta", "ace/lib/event_emitter", "ace/range", "ace/anchor"], function(acequire, exports) {\n "use strict";\n var oop = acequire("./lib/oop"),\n applyDelta = acequire("./apply_delta").applyDelta,\n EventEmitter = acequire("./lib/event_emitter").EventEmitter,\n Range = acequire("./range").Range,\n Anchor = acequire("./anchor").Anchor,\n Document = function(textOrLines) {\n this.$lines = [""], 0 === textOrLines.length ? this.$lines = [""] : Array.isArray(textOrLines) ? this.insertMergedLines({\n row: 0,\n column: 0\n }, textOrLines) : this.insert({\n row: 0,\n column: 0\n }, textOrLines)\n };\n (function() {\n oop.implement(this, EventEmitter), this.setValue = function(text) {\n var len = this.getLength() - 1;\n this.remove(new Range(0, 0, len, this.getLine(len).length)), this.insert({\n row: 0,\n column: 0\n }, text)\n }, this.getValue = function() {\n return this.getAllLines().join(this.getNewLineCharacter())\n }, this.createAnchor = function(row, column) {\n return new Anchor(this, row, column)\n }, this.$split = 0 === "aaa".split(/a/).length ? function(text) {\n return text.replace(/\\r\\n|\\r/g, "\\n").split("\\n")\n } : function(text) {\n return text.split(/\\r\\n|\\r|\\n/)\n }, this.$detectNewLine = function(text) {\n var match = text.match(/^.*?(\\r\\n|\\r|\\n)/m);\n this.$autoNewLine = match ? match[1] : "\\n", this._signal("changeNewLineMode")\n }, this.getNewLineCharacter = function() {\n switch (this.$newLineMode) {\n case "windows":\n return "\\r\\n";\n case "unix":\n return "\\n";\n default:\n return this.$autoNewLine || "\\n"\n }\n }, this.$autoNewLine = "", this.$newLineMode = "auto", this.setNewLineMode = function(newLineMode) {\n this.$newLineMode !== newLineMode && (this.$newLineMode = newLineMode, this._signal("changeNewLineMode"))\n }, this.getNewLineMode = function() {\n return this.$newLineMode\n }, this.isNewLine = function(text) {\n return "\\r\\n" == text || "\\r" == text || "\\n" == text\n }, this.getLine = function(row) {\n return this.$lines[row] || ""\n }, this.getLines = function(firstRow, lastRow) {\n return this.$lines.slice(firstRow, lastRow + 1)\n }, this.getAllLines = function() {\n return this.getLines(0, this.getLength())\n }, this.getLength = function() {\n return this.$lines.length\n }, this.getTextRange = function(range) {\n return this.getLinesForRange(range).join(this.getNewLineCharacter())\n }, this.getLinesForRange = function(range) {\n var lines;\n if (range.start.row === range.end.row) lines = [this.getLine(range.start.row).substring(range.start.column, range.end.column)];\n else {\n lines = this.getLines(range.start.row, range.end.row), lines[0] = (lines[0] || "").substring(range.start.column);\n var l = lines.length - 1;\n range.end.row - range.start.row == l && (lines[l] = lines[l].substring(0, range.end.column))\n }\n return lines\n }, this.insertLines = function(row, lines) {\n return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."), this.insertFullLines(row, lines)\n }, this.removeLines = function(firstRow, lastRow) {\n return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."), this.removeFullLines(firstRow, lastRow)\n }, this.insertNewLine = function(position) {\n return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."), this.insertMergedLines(position, ["", ""])\n }, this.insert = function(position, text) {\n return 1 >= this.getLength() && this.$detectNewLine(text), this.insertMergedLines(position, this.$split(text))\n }, this.insertInLine = function(position, text) {\n var start = this.clippedPos(position.row, position.column),\n end = this.pos(position.row, position.column + text.length);\n return this.applyDelta({\n start: start,\n end: end,\n action: "insert",\n lines: [text]\n }, !0), this.clonePos(end)\n }, this.clippedPos = function(row, column) {\n var length = this.getLength();\n void 0 === row ? row = length : 0 > row ? row = 0 : row >= length && (row = length - 1, column = void 0);\n var line = this.getLine(row);\n return void 0 == column && (column = line.length), column = Math.min(Math.max(column, 0), line.length), {\n row: row,\n column: column\n }\n }, this.clonePos = function(pos) {\n return {\n row: pos.row,\n column: pos.column\n }\n }, this.pos = function(row, column) {\n return {\n row: row,\n column: column\n }\n }, this.$clipPosition = function(position) {\n var length = this.getLength();\n 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\n }, this.insertFullLines = function(row, lines) {\n row = Math.min(Math.max(row, 0), this.getLength());\n var column = 0;\n this.getLength() > row ? (lines = lines.concat([""]), column = 0) : (lines = [""].concat(lines), row--, column = this.$lines[row].length), this.insertMergedLines({\n row: row,\n column: column\n }, lines)\n }, this.insertMergedLines = function(position, lines) {\n var start = this.clippedPos(position.row, position.column),\n end = {\n row: start.row + lines.length - 1,\n column: (1 == lines.length ? start.column : 0) + lines[lines.length - 1].length\n };\n return this.applyDelta({\n start: start,\n end: end,\n action: "insert",\n lines: lines\n }), this.clonePos(end)\n }, this.remove = function(range) {\n var start = this.clippedPos(range.start.row, range.start.column),\n end = this.clippedPos(range.end.row, range.end.column);\n return this.applyDelta({\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({\n start: start,\n end: end\n })\n }), this.clonePos(start)\n }, this.removeInLine = function(row, startColumn, endColumn) {\n var start = this.clippedPos(row, startColumn),\n end = this.clippedPos(row, endColumn);\n return this.applyDelta({\n start: start,\n end: end,\n action: "remove",\n lines: this.getLinesForRange({\n start: start,\n end: end\n })\n }, !0), this.clonePos(start)\n }, this.removeFullLines = function(firstRow, lastRow) {\n firstRow = Math.min(Math.max(0, firstRow), this.getLength() - 1), lastRow = Math.min(Math.max(0, lastRow), this.getLength() - 1);\n var deleteFirstNewLine = lastRow == this.getLength() - 1 && firstRow > 0,\n deleteLastNewLine = this.getLength() - 1 > lastRow,\n startRow = deleteFirstNewLine ? firstRow - 1 : firstRow,\n startCol = deleteFirstNewLine ? this.getLine(startRow).length : 0,\n endRow = deleteLastNewLine ? lastRow + 1 : lastRow,\n endCol = deleteLastNewLine ? 0 : this.getLine(endRow).length,\n range = new Range(startRow, startCol, endRow, endCol),\n deletedLines = this.$lines.slice(firstRow, lastRow + 1);\n return this.applyDelta({\n start: range.start,\n end: range.end,\n action: "remove",\n lines: this.getLinesForRange(range)\n }), deletedLines\n }, this.removeNewLine = function(row) {\n this.getLength() - 1 > row && row >= 0 && this.applyDelta({\n start: this.pos(row, this.getLine(row).length),\n end: this.pos(row + 1, 0),\n action: "remove",\n lines: ["", ""]\n })\n }, this.replace = function(range, text) {\n if (range instanceof Range || (range = Range.fromPoints(range.start, range.end)), 0 === text.length && range.isEmpty()) return range.start;\n if (text == this.getTextRange(range)) return range.end;\n this.remove(range);\n var end;\n return end = text ? this.insert(range.start, text) : range.start\n }, this.applyDeltas = function(deltas) {\n for (var i = 0; deltas.length > i; i++) this.applyDelta(deltas[i])\n }, this.revertDeltas = function(deltas) {\n for (var i = deltas.length - 1; i >= 0; i--) this.revertDelta(deltas[i])\n }, this.applyDelta = function(delta, doNotValidate) {\n var isInsert = "insert" == delta.action;\n (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))\n }, this.$splitAndapplyLargeDelta = function(delta, MAX) {\n for (var lines = delta.lines, l = lines.length, row = delta.start.row, column = delta.start.column, from = 0, to = 0;;) {\n from = to, to += MAX - 1;\n var chunk = lines.slice(from, to);\n if (to > l) {\n delta.lines = chunk, delta.start.row = row + from, delta.start.column = column;\n break\n }\n chunk.push(""), this.applyDelta({\n start: this.pos(row + from, column),\n end: this.pos(row + to, column = 0),\n action: delta.action,\n lines: chunk\n }, !0)\n }\n }, this.revertDelta = function(delta) {\n this.applyDelta({\n start: this.clonePos(delta.start),\n end: this.clonePos(delta.end),\n action: "insert" == delta.action ? "remove" : "insert",\n lines: delta.lines.slice()\n })\n }, this.indexToPosition = function(index, startRow) {\n for (var lines = this.$lines || this.getAllLines(), newlineLength = this.getNewLineCharacter().length, i = startRow || 0, l = lines.length; l > i; i++)\n if (index -= lines[i].length + newlineLength, 0 > index) return {\n row: i,\n column: index + lines[i].length + newlineLength\n };\n return {\n row: l - 1,\n column: lines[l - 1].length\n }\n }, this.positionToIndex = function(pos, startRow) {\n 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;\n return index + pos.column\n }\n }).call(Document.prototype), exports.Document = Document\n}), ace.define("ace/lib/lang", ["require", "exports", "module"], function(acequire, exports) {\n "use strict";\n exports.last = function(a) {\n return a[a.length - 1]\n }, exports.stringReverse = function(string) {\n return string.split("").reverse().join("")\n }, exports.stringRepeat = function(string, count) {\n for (var result = ""; count > 0;) 1 & count && (result += string), (count >>= 1) && (string += string);\n return result\n };\n var trimBeginRegexp = /^\\s\\s*/,\n trimEndRegexp = /\\s\\s*$/;\n exports.stringTrimLeft = function(string) {\n return string.replace(trimBeginRegexp, "")\n }, exports.stringTrimRight = function(string) {\n return string.replace(trimEndRegexp, "")\n }, exports.copyObject = function(obj) {\n var copy = {};\n for (var key in obj) copy[key] = obj[key];\n return copy\n }, exports.copyArray = function(array) {\n 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];\n return copy\n }, exports.deepCopy = function deepCopy(obj) {\n if ("object" != typeof obj || !obj) return obj;\n var copy;\n if (Array.isArray(obj)) {\n copy = [];\n for (var key = 0; obj.length > key; key++) copy[key] = deepCopy(obj[key]);\n return copy\n }\n if ("[object Object]" !== Object.prototype.toString.call(obj)) return obj;\n copy = {};\n for (var key in obj) copy[key] = deepCopy(obj[key]);\n return copy\n }, exports.arrayToMap = function(arr) {\n for (var map = {}, i = 0; arr.length > i; i++) map[arr[i]] = 1;\n return map\n }, exports.createMap = function(props) {\n var map = Object.create(null);\n for (var i in props) map[i] = props[i];\n return map\n }, exports.arrayRemove = function(array, value) {\n for (var i = 0; array.length >= i; i++) value === array[i] && array.splice(i, 1)\n }, exports.escapeRegExp = function(str) {\n return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g, "\\\\$1")\n }, exports.escapeHTML = function(str) {\n return str.replace(/&/g, "&#38;").replace(/"/g, "&#34;").replace(/\'/g, "&#39;").replace(/</g, "&#60;")\n }, exports.getMatchOffsets = function(string, regExp) {\n var matches = [];\n return string.replace(regExp, function(str) {\n matches.push({\n offset: arguments[arguments.length - 2],\n length: str.length\n })\n }), matches\n }, exports.deferredCall = function(fcn) {\n var timer = null,\n callback = function() {\n timer = null, fcn()\n },\n deferred = function(timeout) {\n return deferred.cancel(), timer = setTimeout(callback, timeout || 0), deferred\n };\n return deferred.schedule = deferred, deferred.call = function() {\n return this.cancel(), fcn(), deferred\n }, deferred.cancel = function() {\n return clearTimeout(timer), timer = null, deferred\n }, deferred.isPending = function() {\n return timer\n }, deferred\n }, exports.delayedCall = function(fcn, defaultTimeout) {\n var timer = null,\n callback = function() {\n timer = null, fcn()\n },\n _self = function(timeout) {\n null == timer && (timer = setTimeout(callback, timeout || defaultTimeout))\n };\n return _self.delay = function(timeout) {\n timer && clearTimeout(timer), timer = setTimeout(callback, timeout || defaultTimeout)\n }, _self.schedule = _self, _self.call = function() {\n this.cancel(), fcn()\n }, _self.cancel = function() {\n timer && clearTimeout(timer), timer = null\n }, _self.isPending = function() {\n return timer\n }, _self\n }\n}), ace.define("ace/worker/mirror", ["require", "exports", "module", "ace/range", "ace/document", "ace/lib/lang"], function(acequire, exports) {\n "use strict";\n acequire("../range").Range;\n var Document = acequire("../document").Document,\n lang = acequire("../lib/lang"),\n Mirror = exports.Mirror = function(sender) {\n this.sender = sender;\n var doc = this.doc = new Document(""),\n deferredUpdate = this.deferredUpdate = lang.delayedCall(this.onUpdate.bind(this)),\n _self = this;\n sender.on("change", function(e) {\n var data = e.data;\n if (data[0].start) doc.applyDeltas(data);\n else\n for (var i = 0; data.length > i; i += 2) {\n if (Array.isArray(data[i + 1])) var d = {\n action: "insert",\n start: data[i],\n lines: data[i + 1]\n };\n else var d = {\n action: "remove",\n start: data[i],\n end: data[i + 1]\n };\n doc.applyDelta(d, !0)\n }\n return _self.$timeout ? deferredUpdate.schedule(_self.$timeout) : (_self.onUpdate(), void 0)\n })\n };\n (function() {\n this.$timeout = 500, this.setTimeout = function(timeout) {\n this.$timeout = timeout\n }, this.setValue = function(value) {\n this.doc.setValue(value), this.deferredUpdate.schedule(this.$timeout)\n }, this.getValue = function(callbackId) {\n this.sender.callback(this.doc.getValue(), callbackId)\n }, this.onUpdate = function() {}, this.isPending = function() {\n return this.deferredUpdate.isPending()\n }\n }).call(Mirror.prototype)\n}), ace.define("ace/mode/json/json_parse", ["require", "exports", "module"], function() {\n "use strict";\n var at, ch, text, value, escapee = {\n \'"\': \'"\',\n "\\\\": "\\\\",\n "/": "/",\n b: "\\b",\n f: "\\f",\n n: "\\n",\n r: "\\r",\n t: "\t"\n },\n error = function(m) {\n throw {\n name: "SyntaxError",\n message: m,\n at: at,\n text: text\n }\n },\n reset = function (newAt) {\n ch = text.charAt(newAt);\n at = newAt + 1;\n },\n next = function(c) {\n return c && c !== ch && error("Expected \'" + c + "\' instead of \'" + ch + "\'"), ch = text.charAt(at), at += 1, ch\n },\n nextUpTo = function (upTo, errorMessage) {\n let currentAt = at,\n i = text.indexOf(upTo, currentAt);\n if (i < 0) {\n error(errorMessage || \'Expected \\\'\' + upTo + \'\\\'\');\n }\n reset(i + upTo.length);\n return text.substring(currentAt, i);\n },\n peek = function (c) {\n return text.substr(at, c.length) === c; // nocommit - double check\n },\n number = function() {\n var number, string = "";\n for ("-" === ch && (string = "-", next("-")); ch >= "0" && "9" >= ch;) string += ch, next();\n if ("." === ch)\n for (string += "."; next() && ch >= "0" && "9" >= ch;) string += ch;\n if ("e" === ch || "E" === ch)\n for (string += ch, next(), ("-" === ch || "+" === ch) && (string += ch, next()); ch >= "0" && "9" >= ch;) string += ch, next();\n return number = +string, isNaN(number) ? (error("Bad number"), void 0) : number\n },\n string = function() {\n var hex, i, uffff, string = "";\n if (\'"\' === ch) {\n if (peek(\'""\')) {\n // literal\n next(\'"\');\n next(\'"\');\n return nextUpTo(\'"""\', \'failed to find closing \\\'"""\\\'\');\n } else {\n for (; next();) {\n if (\'"\' === ch) return next(), string;\n if ("\\\\" === ch)\n if (next(), "u" === ch) {\n for (uffff = 0, i = 0; 4 > i && (hex = parseInt(next(), 16), isFinite(hex)); i += 1) uffff = 16 * uffff + hex;\n string += String.fromCharCode(uffff)\n } else {\n if ("string" != typeof escapee[ch]) break;\n string += escapee[ch]\n }\n else string += ch\n }\n }\n }\n error("Bad string")\n },\n white = function() {\n for (; ch && " " >= ch;) next()\n },\n word = function() {\n switch (ch) {\n case "t":\n return next("t"), next("r"), next("u"), next("e"), !0;\n case "f":\n return next("f"), next("a"), next("l"), next("s"), next("e"), !1;\n case "n":\n return next("n"), next("u"), next("l"), next("l"), null\n }\n error("Unexpected \'" + ch + "\'")\n },\n array = function() {\n var array = [];\n if ("[" === ch) {\n if (next("["), white(), "]" === ch) return next("]"), array;\n for (; ch;) {\n if (array.push(value()), white(), "]" === ch) return next("]"), array;\n next(","), white()\n }\n }\n error("Bad array")\n },\n object = function() {\n var key, object = {};\n if ("{" === ch) {\n if (next("{"), white(), "}" === ch) return next("}"), object;\n for (; ch;) {\n if (key = string(), white(), next(":"), Object.hasOwnProperty.call(object, key) && error(\'Duplicate key "\' + key + \'"\'), object[key] = value(), white(), "}" === ch) return next("}"), object;\n next(","), white()\n }\n }\n error("Bad object")\n };\n return value = function() {\n switch (white(), ch) {\n case "{":\n return object();\n case "[":\n return array();\n case \'"\':\n return string();\n case "-":\n return number();\n default:\n return ch >= "0" && "9" >= ch ? number() : word()\n }\n },\n function(source, reviver) {\n var result;\n return text = source, at = 0, ch = " ", result = value(), white(), ch && error("Syntax error"), "function" == typeof reviver ? function walk(holder, key) {\n var k, v, value = holder[key];\n if (value && "object" == typeof value)\n for (k in value) Object.hasOwnProperty.call(value, k) && (v = walk(value, k), void 0 !== v ? value[k] = v : delete value[k]);\n return reviver.call(holder, key, value)\n }({\n "": result\n }, "") : result\n }\n}), ace.define("ace/mode/json_worker", ["require", "exports", "module", "ace/lib/oop", "ace/worker/mirror", "ace/mode/json/json_parse"], function(acequire, exports) {\n "use strict";\n var oop = acequire("../lib/oop"),\n Mirror = acequire("../worker/mirror").Mirror,\n parse = acequire("./json/json_parse"),\n JsonWorker = exports.JsonWorker = function(sender) {\n Mirror.call(this, sender), this.setTimeout(200)\n };\n oop.inherits(JsonWorker, Mirror),\n function() {\n this.onUpdate = function() {\n var value = this.doc.getValue(),\n errors = [];\n try {\n value && parse(value)\n } catch (e) {\n var pos = this.doc.indexToPosition(e.at - 1);\n errors.push({\n row: pos.row,\n column: pos.column,\n text: e.message,\n type: "error"\n })\n }\n this.sender.emit("annotate", errors)\n }\n }.call(JsonWorker.prototype)\n}), ace.define("ace/lib/es5-shim", ["require", "exports", "module"], function() {\n function Empty() {}\n\n function doesDefinePropertyWork(object) {\n try {\n return Object.defineProperty(object, "sentinel", {}), "sentinel" in object\n } catch (exception) {}\n }\n\n function toInteger(n) {\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\n }\n Function.prototype.bind || (Function.prototype.bind = function(that) {\n var target = this;\n if ("function" != typeof target) throw new TypeError("Function.prototype.bind called on incompatible " + target);\n var args = slice.call(arguments, 1),\n bound = function() {\n if (this instanceof bound) {\n var result = target.apply(this, args.concat(slice.call(arguments)));\n return Object(result) === result ? result : this\n }\n return target.apply(that, args.concat(slice.call(arguments)))\n };\n return target.prototype && (Empty.prototype = target.prototype, bound.prototype = new Empty, Empty.prototype = null), bound\n });\n var defineGetter, defineSetter, lookupGetter, lookupSetter, supportsAccessors, call = Function.prototype.call,\n prototypeOfArray = Array.prototype,\n prototypeOfObject = Object.prototype,\n slice = prototypeOfArray.slice,\n _toString = call.bind(prototypeOfObject.toString),\n owns = call.bind(prototypeOfObject.hasOwnProperty);\n 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)\n if (function() {\n function makeArray(l) {\n var a = Array(l + 2);\n return a[0] = a[1] = 0, a\n }\n var lengthBefore, array = [];\n 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\n }()) {\n var array_splice = Array.prototype.splice;\n Array.prototype.splice = function(start, deleteCount) {\n return arguments.length ? array_splice.apply(this, [void 0 === start ? 0 : start, void 0 === deleteCount ? this.length - start : deleteCount].concat(slice.call(arguments, 2))) : []\n }\n } else Array.prototype.splice = function(pos, removeCount) {\n var length = this.length;\n 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);\n var removed = this.slice(pos, pos + removeCount),\n insert = slice.call(arguments, 2),\n add = insert.length;\n if (pos === length) add && this.push.apply(this, insert);\n else {\n var remove = Math.min(removeCount, length - pos),\n tailOldPos = pos + remove,\n tailNewPos = tailOldPos + add - remove,\n tailCount = length - tailOldPos,\n lengthAfterRemove = length - remove;\n if (tailOldPos > tailNewPos)\n for (var i = 0; tailCount > i; ++i) this[tailNewPos + i] = this[tailOldPos + i];\n else if (tailNewPos > tailOldPos)\n for (i = tailCount; i--;) this[tailNewPos + i] = this[tailOldPos + i];\n if (add && pos === lengthAfterRemove) this.length = lengthAfterRemove, this.push.apply(this, insert);\n else\n for (this.length = lengthAfterRemove + add, i = 0; add > i; ++i) this[pos + i] = insert[i]\n }\n return removed\n };\n Array.isArray || (Array.isArray = function(obj) {\n return "[object Array]" == _toString(obj)\n });\n var boxedString = Object("a"),\n splitString = "a" != boxedString[0] || !(0 in boxedString);\n if (Array.prototype.forEach || (Array.prototype.forEach = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n thisp = arguments[1],\n i = -1,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError;\n for (; length > ++i;) i in self && fun.call(thisp, self[i], i, object)\n }), Array.prototype.map || (Array.prototype.map = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n result = Array(length),\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++) i in self && (result[i] = fun.call(thisp, self[i], i, object));\n return result\n }), Array.prototype.filter || (Array.prototype.filter = function(fun) {\n var value, object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n result = [],\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++) i in self && (value = self[i], fun.call(thisp, value, i, object) && result.push(value));\n return result\n }), Array.prototype.every || (Array.prototype.every = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++)\n if (i in self && !fun.call(thisp, self[i], i, object)) return !1;\n return !0\n }), Array.prototype.some || (Array.prototype.some = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0,\n thisp = arguments[1];\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n for (var i = 0; length > i; i++)\n if (i in self && fun.call(thisp, self[i], i, object)) return !0;\n return !1\n }), Array.prototype.reduce || (Array.prototype.reduce = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n if (!length && 1 == arguments.length) throw new TypeError("reduce of empty array with no initial value");\n var result, i = 0;\n if (arguments.length >= 2) result = arguments[1];\n else\n for (;;) {\n if (i in self) {\n result = self[i++];\n break\n }\n if (++i >= length) throw new TypeError("reduce of empty array with no initial value")\n }\n for (; length > i; i++) i in self && (result = fun.call(void 0, result, self[i], i, object));\n return result\n }), Array.prototype.reduceRight || (Array.prototype.reduceRight = function(fun) {\n var object = toObject(this),\n self = splitString && "[object String]" == _toString(this) ? this.split("") : object,\n length = self.length >>> 0;\n if ("[object Function]" != _toString(fun)) throw new TypeError(fun + " is not a function");\n if (!length && 1 == arguments.length) throw new TypeError("reduceRight of empty array with no initial value");\n var result, i = length - 1;\n if (arguments.length >= 2) result = arguments[1];\n else\n for (;;) {\n if (i in self) {\n result = self[i--];\n break\n }\n if (0 > --i) throw new TypeError("reduceRight of empty array with no initial value")\n }\n do i in this && (result = fun.call(void 0, result, self[i], i, object)); while (i--);\n return result\n }), Array.prototype.indexOf && -1 == [0, 1].indexOf(1, 2) || (Array.prototype.indexOf = function(sought) {\n var self = splitString && "[object String]" == _toString(this) ? this.split("") : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n var i = 0;\n for (arguments.length > 1 && (i = toInteger(arguments[1])), i = i >= 0 ? i : Math.max(0, length + i); length > i; i++)\n if (i in self && self[i] === sought) return i;\n return -1\n }), Array.prototype.lastIndexOf && -1 == [0, 1].lastIndexOf(0, -3) || (Array.prototype.lastIndexOf = function(sought) {\n var self = splitString && "[object String]" == _toString(this) ? this.split("") : toObject(this),\n length = self.length >>> 0;\n if (!length) return -1;\n var i = length - 1;\n for (arguments.length > 1 && (i = Math.min(i, toInteger(arguments[1]))), i = i >= 0 ? i : length - Math.abs(i); i >= 0; i--)\n if (i in self && sought === self[i]) return i;\n return -1\n }), Object.getPrototypeOf || (Object.getPrototypeOf = function(object) {\n return object.__proto__ || (object.constructor ? object.constructor.prototype : prototypeOfObject)\n }), !Object.getOwnPropertyDescriptor) {\n var ERR_NON_OBJECT = "Object.getOwnPropertyDescriptor called on a non-object: ";\n Object.getOwnPropertyDescriptor = function(object, property) {\n if ("object" != typeof object && "function" != typeof object || null === object) throw new TypeError(ERR_NON_OBJECT + object);\n if (owns(object, property)) {\n var descriptor, getter, setter;\n if (descriptor = {\n enumerable: !0,\n configurable: !0\n }, supportsAccessors) {\n var prototype = object.__proto__;\n object.__proto__ = prototypeOfObject;\n var getter = lookupGetter(object, property),\n setter = lookupSetter(object, property);\n if (object.__proto__ = prototype, getter || setter) return getter && (descriptor.get = getter), setter && (descriptor.set = setter), descriptor\n }\n return descriptor.value = object[property], descriptor\n }\n }\n }\n if (Object.getOwnPropertyNames || (Object.getOwnPropertyNames = function(object) {\n return Object.keys(object)\n }), !Object.create) {\n var createEmpty;\n createEmpty = null === Object.prototype.__proto__ ? function() {\n return {\n __proto__: null\n }\n } : function() {\n var empty = {};\n for (var i in empty) empty[i] = null;\n return empty.constructor = empty.hasOwnProperty = empty.propertyIsEnumerable = empty.isPrototypeOf = empty.toLocaleString = empty.toString = empty.valueOf = empty.__proto__ = null, empty\n }, Object.create = function(prototype, properties) {\n var object;\n if (null === prototype) object = createEmpty();\n else {\n if ("object" != typeof prototype) throw new TypeError("typeof prototype[" + typeof prototype + "] != \'object\'");\n var Type = function() {};\n Type.prototype = prototype, object = new Type, object.__proto__ = prototype\n }\n return void 0 !== properties && Object.defineProperties(object, properties), object\n }\n }\n if (Object.defineProperty) {\n var definePropertyWorksOnObject = doesDefinePropertyWork({}),\n definePropertyWorksOnDom = "undefined" == typeof document || doesDefinePropertyWork(document.createElement("div"));\n if (!definePropertyWorksOnObject || !definePropertyWorksOnDom) var definePropertyFallback = Object.defineProperty\n }\n if (!Object.defineProperty || definePropertyFallback) {\n var ERR_NON_OBJECT_DESCRIPTOR = "Property description must be an object: ",\n ERR_NON_OBJECT_TARGET = "Object.defineProperty called on non-object: ",\n ERR_ACCESSORS_NOT_SUPPORTED = "getters & setters can not be defined on this javascript engine";\n Object.defineProperty = function(object, property, descriptor) {\n if ("object" != typeof object && "function" != typeof object || null === object) throw new TypeError(ERR_NON_OBJECT_TARGET + object);\n if ("object" != typeof descriptor && "function" != typeof descriptor || null === descriptor) throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR + descriptor);\n if (definePropertyFallback) try {\n return definePropertyFallback.call(Object, object, property, descriptor)\n } catch (exception) {}\n if (owns(descriptor, "value"))\n if (supportsAccessors && (lookupGetter(object, property) || lookupSetter(object, property))) {\n var prototype = object.__proto__;\n object.__proto__ = prototypeOfObject, delete object[property], object[property] = descriptor.value, object.__proto__ = prototype\n } else object[property] = descriptor.value;\n else {\n if (!supportsAccessors) throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);\n owns(descriptor, "get") && defineGetter(object, property, descriptor.get), owns(descriptor, "set") && defineSetter(object, property, descriptor.set)\n }\n return object\n }\n }\n Object.defineProperties || (Object.defineProperties = function(object, properties) {\n for (var property in properties) owns(properties, property) && Object.defineProperty(object, property, properties[property]);\n return object\n }), Object.seal || (Object.seal = function(object) {\n return object\n }), Object.freeze || (Object.freeze = function(object) {\n return object\n });\n try {\n Object.freeze(function() {})\n } catch (exception) {\n Object.freeze = function(freezeObject) {\n return function(object) {\n return "function" == typeof object ? object : freezeObject(object)\n }\n }(Object.freeze)\n }\n if (Object.preventExtensions || (Object.preventExtensions = function(object) {\n return object\n }), Object.isSealed || (Object.isSealed = function() {\n return !1\n }), Object.isFrozen || (Object.isFrozen = function() {\n return !1\n }), Object.isExtensible || (Object.isExtensible = function(object) {\n if (Object(object) === object) throw new TypeError;\n for (var name = ""; owns(object, name);) name += "?";\n object[name] = !0;\n var returnValue = owns(object, name);\n return delete object[name], returnValue\n }), !Object.keys) {\n var hasDontEnumBug = !0,\n dontEnums = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"],\n dontEnumsLength = dontEnums.length;\n for (var key in {\n toString: null\n }) hasDontEnumBug = !1;\n Object.keys = function(object) {\n if ("object" != typeof object && "function" != typeof object || null === object) throw new TypeError("Object.keys called on a non-object");\n var keys = [];\n for (var name in object) owns(object, name) && keys.push(name);\n if (hasDontEnumBug)\n for (var i = 0, ii = dontEnumsLength; ii > i; i++) {\n var dontEnum = dontEnums[i];\n owns(object, dontEnum) && keys.push(dontEnum)\n }\n return keys\n }\n }\n Date.now || (Date.now = function() {\n return (new Date).getTime()\n });\n var ws = "\t\\n\v\\f\\r   ᠎              \\u2028\\u2029\ufeff";\n if (!String.prototype.trim || ws.trim()) {\n ws = "[" + ws + "]";\n var trimBeginRegexp = RegExp("^" + ws + ws + "*"),\n trimEndRegexp = RegExp(ws + ws + "*$");\n String.prototype.trim = function() {\n return (this + "").replace(trimBeginRegexp, "").replace(trimEndRegexp, "")\n }\n }\n var toObject = function(o) {\n if (null == o) throw new TypeError("can\'t convert " + o + " to object");\n return Object(o)\n }\n});\n'},Tr=me().acequire("ace/worker/worker_client").WorkerClient,Nr=me().acequire("ace/lib/oop"),Cr=me().acequire("ace/mode/json").Mode,Rr=me().acequire("ace/tokenizer").Tokenizer,Ar=me().acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,Pr=me().acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,Lr=me().acequire("ace/mode/folding/cstyle").FoldMode,qr=function(){var e=new Er;e.normalizeRules(),this.$tokenizer=new Rr(e.getRules()),this.$outdent=new Ar,this.$behaviour=new Pr,this.foldingRules=new Lr};function Ir(e,t,n,r){return"object"==typeof t&&(t=t.source),[{token:e.concat(["whitespace"]),regex:t+"(\\s*)$",next:n},{token:e,regex:t,next:r}]}function Dr(){return[].concat.apply([],arguments)}Nr.inherits(qr,Cr),qr.prototype.createWorker=function(e){var t=new Tr(["ace"],Sr,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t};var Mr=me().acequire("ace/lib/oop"),Fr=me().acequire("ace/mode/text_highlight_rules").TextHighlightRules;function zr(){var 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",o=(this.createKeywordMapper({keyword:[e,n,t,r].join("|")},"identifier",!0),[e,n,t,r].join("|").split("|")),i=Ir(["url.part"],/([^?\/,\s]+)/,"start");i=i.map((function(e){return e.onMatch=function(t,n,r){return o.includes(null==t?void 0:t.toLowerCase())?"url.select_keyword":e.token},e})),this.$rules={"start-sql":[{token:"whitespace",regex:"\\s+"},{token:"paren.lparen",regex:"{",next:"json-sql",push:!0},{regex:"",next:"start"}],start:Dr([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],Ir(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:Dr(Ir(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),Ir(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),Ir(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),Ir(["whitespace"],/(\s+)/,"start","url")),url:Dr(Ir(["url.part"],/(_sql)/,"start-sql","url-sql"),i,Ir(["url.comma"],/(,)/,"start"),Ir(["url.slash"],/(\/)/,"start"),Ir(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:Dr(Ir(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),Ir(["url.param"],/([^&=]+)/,"start"),Ir(["url.amp"],/(&)/,"start")),"url-sql":Dr(Ir(["url.part"],/([^?\/,\s]+)/,"start-sql"),Ir(["url.comma"],/(,)/,"start-sql"),Ir(["url.slash"],/(\/)/,"start-sql"),Ir(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":Dr(Ir(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),Ir(["url.param"],/([^&=]+)/,"start-sql"),Ir(["url.amp"],/(&)/,"start-sql"))},kr(this),this.constructor===zr&&this.normalizeRules()}Mr.inherits(zr,Fr);var Ur=me().acequire("ace/lib/oop"),Br=me().acequire("ace/mode/text_highlight_rules").TextHighlightRules;function Gr(){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:"def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx"},{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+"}]}}Ur.inherits(Gr,Br);var Jr=me().acequire("ace/lib/oop"),$r=me().acequire("ace/mode/text").Mode;function Vr(){}me().acequire("ace/tokenizer"),Jr.inherits(Vr,$r),function(){this.HighlightRules=Gr,this.getNextLineIndent=function(e,t,n){var 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(Vr.prototype);var Hr=me().acequire("ace/lib/oop"),Wr=me().acequire("ace/mode/text").Mode,Kr=me().acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,Qr=me().acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,Yr=me().acequire("ace/mode/folding/cstyle").FoldMode,Xr=me().acequire("ace/worker/worker_client").WorkerClient,Zr=me().acequire("ace/tokenizer").Tokenizer;function eo(){this.$tokenizer=new Zr((new zr).getRules()),this.$outdent=new Kr,this.$behaviour=new Qr,this.foldingRules=new Yr,this.createModeDelegates({"script-":Vr})}Hr.inherits(eo,Wr),function(){this.getCompletions=function(){return[]},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);return"string_literal"!==e&&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){var t=new Xr(["ace","sense_editor"],hr,"SenseWorker");return t.attachToDocument(e.getDocument()),t.on("error",(function(t){e.setAnnotations([t.data])})),t.on("ok",(function(t){e.setAnnotations(t.data)})),t}}.call(eo.prototype);me().define("ace/autocomplete/text_completer",["require","exports","module"],(function(e,t){t.getCompletions=function(e,t,n,r,o){o(null,[])}})),me().acequire("ace/ext/language_tools").setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:function(e,t,n,r,o){var i=e.coreEditor,s={lineNumber:n.row+1,column:n.column+1};i.autocompleter(s,r,o)}}]);var to=me().acequire("ace/range").Range,no=function(e){var t=e.start,n=e.end;return new to(t.lineNumber-1,t.column-1,n.lineNumber-1,n.column-1)},ro=function(){function e(e,t){var n=this;this.editor=e,this.setActionsBar=function(e,t){void 0===t&&(t="top"),null===e?n.$actions.css("visibility","hidden"):"top"===t?n.$actions.css({bottom:"auto",top:e,visibility:"visible"}):n.$actions.css({top:"auto",bottom:e,visibility:"visible"})},this.hideActionsBar=function(){n.setActionsBar(null)},this.$actions=je()(t),this.editor.setShowPrintMargin(!1),this.parser=new rr(this),this.autocompleter=fr({coreEditor:this}).getCompletions;var r=this.editor.getSession();r.setMode(new eo);var o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=Pe(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(),e.coreEditor=this}return e.prototype.setMaxTokenCount=function(e){var t;null===(t=this.editor.getSession().getMode().getTokenizer())||void 0===t||t.$setMaxTokenCount(e)},e.prototype.getParser=function(){return this.parser},e.prototype.getAutocompleter=function(){return this.autocompleter},e.prototype.waitForLatestTokens=function(){var e=this;return new Promise((function(t){var n=e.editor.getSession(),r=function(){n.bgTokenizer&&(n.bgTokenizer.running?setTimeout(r,25):t())};setTimeout(r,0)}))},e.prototype.getLineState=function(e){return this.editor.getSession().getState(e-1)},e.prototype.getValueInRange=function(e){return this.editor.getSession().getTextRange(no(e))},e.prototype.getTokenProvider=function(){return new Ae(this.editor.getSession())},e.prototype.getValue=function(){return this.editor.getValue()},e.prototype.setValue=function(e,t){return n=this,r=void 0,i=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(n){switch(n.label){case 0:return this.editor.getSession().setValue(e),t?[4,this.forceRetokenize()]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))},new((o=Promise)||(o=Promise))((function(e,t){function s(e){try{l(i.next(e))}catch(e){t(e)}}function a(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}l((i=i.apply(n,r||[])).next())}));var n,r,o,i},e.prototype.getLineValue=function(e){return this.editor.getSession().getLine(e-1)},e.prototype.getCurrentPosition=function(){var e=this.editor.getCursorPosition();return{lineNumber:e.row+1,column:e.column+1}},e.prototype.clearSelection=function(){this.editor.clearSelection()},e.prototype.getTokenAt=function(e){return this.getTokenProvider().getTokenAt(e)},e.prototype.insert=function(e,t){"string"!=typeof e?this.editor.getSession().getDocument().insert({column:e.column-1,row:e.lineNumber-1},t||""):this.editor.insert(e)},e.prototype.moveCursorToPosition=function(e){this.editor.moveCursorToPosition({row:e.lineNumber-1,column:e.column-1})},e.prototype.replace=function(e,t){this.editor.getSession().replace(no(e),t)},e.prototype.getLines=function(e,t){return this.editor.getSession().getLines(e-1,t-1)},e.prototype.replaceRange=function(e,t){var n=this.editor.getCursorPosition();this.editor.getSession().replace(no(e),t);var r=Math.max(e.start.lineNumber-1+t.split("\n").length-1,1);n.row=Math.min(n.row,r),this.editor.moveCursorToPosition(n),this.editor.clearSelection()},e.prototype.getSelectionRange=function(){var e=this.editor.getSelectionRange();return{start:{lineNumber:e.start.row+1,column:e.start.column+1},end:{lineNumber:e.end.row+1,column:e.end.column+1}}},e.prototype.getLineCount=function(){return this.editor.getSession().getLength()},e.prototype.addMarker=function(e){return this.editor.getSession().addMarker(no(e),"ace_snippet-marker","fullLine",!1)},e.prototype.removeMarker=function(e){this.editor.getSession().removeMarker(e)},e.prototype.getWrapLimit=function(){return this.editor.getSession().getWrapLimit()},e.prototype.on=function(e,t){"changeCursor"===e?this.editor.getSession().selection.on(e,t):"changeSelection"===e?this.editor.on(e,t):this.editor.getSession().on(e,t)},e.prototype.off=function(e,t){"changeSelection"===e&&this.editor.off(e,t)},e.prototype.isCompleterActive=function(){return Boolean(this.editor.completer&&this.editor.completer.activated)},e.prototype.forceRetokenize=function(){var e=this.editor.getSession();return new Promise((function(t){setTimeout((function(){var n;for(n=0;n<e.getLength();n++)e.getTokens(n);t()}))}))},e.prototype.DO_NOT_USE_onPaste=function(e){if(e&&function(e){if(!e)return!1;for(var t=0,n=e.split("\n");t<n.length;t++)if(n[t].match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/))return!0;return!1}(e)){var t=function(e){var t,n="NONE",r=[],o=[],i="",s=e.trim().split("\n"),a=/^\s*$/,l=/^\s*(?:#|\/{2,})(.*)\n?$/,c=/^([^']*)'/,u=/^((?:[^\\"]|\\.)*)"/,p=/^((?:[^\\"']|\\.)+)/,d=/^\s*curl\s+/,f=/-X ?(GET|HEAD|POST|PUT|DELETE)/,h=/[\s"']https?:\/\//,m=/[\s"']https?:\/\/[^\/ ]+\/+([^\s"']+)/,_=/[\s"'][^\/ ]+\/+([^\s"']+)/,g=/^.+\s(--data|-d)\s*/,y=/^\s*(GET|HEAD|POST|PUT|DELETE)\s+\/?(.+)/;function w(){var e=o.pop().replace(/\\([\\"'])/g,"$1");o.push(e)}function v(){"'"===i.substr(0,1)?(i=i.substr(1),n="SINGLE_QUOTE"):'"'===i.substr(0,1)?(i=i.substr(1),n="DOUBLE_QUOTE"):n="UNQUOTED"}function b(){o.length>0&&(r.push(o.join("")),o=[]),n="LF",r.push("\n")}function x(e){var t=i.match(e);t?(o.push(t[1]),i=i.substr(t[0].length),v()):(o.push(i),i="")}function O(){var e,t="GET",o="";(e=i.match(f))&&(t=e[1]);var s=h.test(i)?m:_;(e=i.match(s))&&(o=e[1]),r.push(t+" /"+o+"\n"),(e=i.match(g))?(i=i.substr(e[0].length),v(),a.test(i)&&(i="")):(n="NONE",i="",r.push(""))}for(s.length>0&&/^\s*#!/.test(s[0])&&s.shift();i.length>0||0!==s.length&&(i=s.shift().replace(/[\r\n]+/g,"\n")+"\n",1);)"SINGLE_QUOTE"===n?x(c):"DOUBLE_QUOTE"===n?(x(u),w()):"UNQUOTED"===n?(x(p),o.length&&w(),"UNQUOTED"===n&&(b(),i="")):"BODY"===n?l.test(i)||a.test(i)?b():(o.push(i),i=""):a.test(i)?("LF"!==n&&(r.push("\n"),n="LF"),i=""):(t=i.match(l))?(r.push("#"+t[1]+"\n"),n="NONE",i=""):d.test(i)?O():(t=i.match(y))?(r.push(t[1]+" /"+t[2]+"\n"),i="",n="BODY"):(r.push("### "+i),i="");return b(),r.join("").trim()}(e);this.editor.insert(t)}else this._aceOnPaste.call(this.editor,e)},e.prototype.execCommand=function(e){this.editor.execCommand(e)},e.prototype.getContainer=function(){return this.editor.container},e.prototype.setStyles=function(e){this.editor.getSession().setUseWrapMode(e.wrapLines),this.editor.container.style.fontSize=e.fontSize},e.prototype.registerKeyboardShortcut=function(e){this.editor.commands.addCommand({exec:e.fn,name:e.name,bindKey:e.keys})},e.prototype.legacyUpdateUI=function(e){var t=this;if(this.$actions&&e){var n=je()(this.editor.container).offset().top,r=e.start.lineNumber,o=e.start.column,i=this.getLineValue(r),s=this.getWrapLimit()-5,a=i.length>s,l=n-(window.pageYOffset||0),c=function(e){return t.editor.renderer.textToScreenCoordinates(e-1,o).pageY-l},u=c(r);if(u>=0){if(u>this.editor.container.getBoundingClientRect().bottom-l)return void this.setActionsBar(0,"bottom");var p=0;if(a){var d=je()(this.editor.container.querySelector("textArea")),f=this.getLineValue(r).length<s;if(!d||!f)return r>1?void this.setActionsBar(c(r-1)):void this.setActionsBar(c(r+1));p+=this.getLineValue(r).length*d.height()}return void this.setActionsBar(u+p)}if(this.editor.renderer.textToScreenCoordinates(e.end.lineNumber,e.end.column).pageY-n>=0)return void this.setActionsBar(0)}},e.prototype.registerAutocompleter=function(e){langTools.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:function(t,n,r,o,i){var s={lineNumber:r.row+1,column:r.column+1};e(s,o,i)}}])},e.prototype.destroy=function(){this.editor.destroy()},e}(),oo=me().acequire("ace/lib/oop"),io=me().acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function so(){this.$rules={},kr(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===so&&this.normalizeRules()}oo.inherits(so,io);var ao=me().acequire("ace/lib/oop"),lo=me().acequire("ace/mode/json").Mode,co=me().acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,uo=me().acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,po=me().acequire("ace/mode/folding/cstyle").FoldMode;me().acequire("ace/worker/worker_client");var fo=me().acequire("ace/tokenizer").Tokenizer;function ho(){this.$tokenizer=new fo((new so).getRules()),this.$outdent=new co,this.$behaviour=new uo,this.foldingRules=new po}ao.inherits(ho,lo),function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}.call(ho.prototype);const mo=require("antd/lib/notification");var _o=o.n(mo);require("antd/lib/notification/style/index.js");const go=require("antd/lib/modal");var yo=o.n(go);require("antd/lib/modal/style/index.js");const wo=require("antd/lib/form");var vo=o.n(wo);require("antd/lib/form/style/index.js");const bo=require("antd/lib/tag");var xo=o.n(bo);require("antd/lib/tag/style/index.js");const Oo=require("antd/lib/message");var jo=o.n(Oo);require("antd/lib/message/style/index.js");var Eo=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},ko=function(n){var r=n.value,o=void 0===r?[]:r,i=n.onChange,l=(0,s.useIntl)(),c=(0,t.useState)(!1),u=c[0],p=c[1],d=(0,t.useState)(""),f=d[0],h=d[1],m=(0,t.useCallback)((function(e){var t=e.target;if(0==t.value.length)return jo().warning(l.formatMessage({id:"command.message.invalid.tag"}));i&&i(Eo(Eo([],o||[],!0),[t.value],!1)),p(!1),h("")}),[o]),_=(0,t.useCallback)((function(e){var t=Eo([],o,!0);t.splice(e,1),i&&i(t)}),[o]);return(0,e.jsxs)("div",{children:[o.map((function(t,n){return(0,e.jsx)(xo(),{closable:!0,style:{padding:"0 5px",fontSize:14,margin:"5px 10px 5px 0"},onClose:function(){return _(n)},children:t},n)})),u&&(0,e.jsx)(v(),{value:f,onChange:function(e){h(e.target.value)},style:{width:100},onBlur:m,onPressEnter:m}),!u&&(0,e.jsxs)(xo(),{onClick:function(){p(!0)},style:{padding:"0 5px",fontSize:14},children:[(0,e.jsx)(a.PlusOutlined,{})," ",l.formatMessage({id:"command.btn.newtag"})]})]})};const So=function(t){var n=(0,s.useIntl)(),r=vo().useForm()[0];return(0,e.jsx)(yo(),{title:n.formatMessage({id:"command.manage.save.title"}),open:!0,onCancel:t.onClose,onOk:function(){return e=void 0,n=void 0,i=function(){var e;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,r.validateFields()];case 1:return e=n.sent(),t.onConfirm(e),[3,3];case 2:return n.sent(),[3,3];case 3:return[2]}}))},new((o=void 0)||(o=Promise))((function(t,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var n;e.done?t(e.value):(n=e.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}l((i=i.apply(e,n||[])).next())}));var e,n,o,i},zIndex:1003,cancelText:n.formatMessage({id:"form.button.cancel"}),okText:n.formatMessage({id:"form.button.save"}),children:(0,e.jsxs)(vo(),{form:r,layout:"vertical",children:[(0,e.jsx)(vo().Item,{label:n.formatMessage({id:"command.table.field.name"}),name:"title",rules:[{required:!0,message:"请输入标题"}],children:(0,e.jsx)(v(),{})}),(0,e.jsx)(vo().Item,{label:n.formatMessage({id:"command.table.field.tag"}),name:"tag",children:(0,e.jsx)(ko,{})})]})})};o(1833);var To=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),No=function(){return No=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},No.apply(this,arguments)},Co=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},Ro=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},Ao=function(t){function n(e){var n=t.call(this,e)||this;return n.mouseEnter=function(){n.state.isPopoverOpen||n.props.getCurl().then((function(e){n.setState({curlCode:e})}))},n.onButtonClick=function(){n.setState((function(e){return{isPopoverOpen:!e.isPopoverOpen}}))},n.closePopover=function(){n.setState({isPopoverOpen:!1})},n.openDocs=function(){return Co(n,void 0,void 0,(function(){var e;return Ro(this,(function(t){switch(t.label){case 0:return this.closePopover(),[4,this.props.getDocumentation()];case 1:return(e=t.sent())?(window.open(e,"_blank"),[2]):[2]}}))}))},n.autoIndent=function(e){n.closePopover(),n.props.autoIndent(e)},n.saveAsCommonCommand=function(){n.setState({isPopoverOpen:!1,modalVisible:!0})},n.handleClose=function(){n.setState({modalVisible:!1})},n.handleConfirm=function(e){return Co(n,void 0,void 0,(function(){var t,n,r,o;return Ro(this,(function(i){switch(i.label){case 0:return[4,this.props.saveAsCommonCommand()];case 1:return t=i.sent(),[4,Ee(No(No({},e),{requests:t}))];case 2:return[4,null===(r=i.sent())||void 0===r?void 0:r.json()];case 3:return(n=i.sent()).error?_o().error({message:(null===(o=n.error)||void 0===o?void 0:o.reason)||n.error}):(this.handleClose(),_o().success({message:this.props.intl.formatMessage({id:"app.message.save.success"})}),s=n,ot.push(s)),[2]}var s}))}))},n.state={curlCode:"",isPopoverOpen:!1,modalVisible:!1},n}return To(n,t),n.prototype.copyAsCurl=function(){return Co(this,void 0,void 0,(function(){return Ro(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.copyText(this.state.curlCode)];case 1:return e.sent(),_o().open({message:"Request copied as cURL",placement:"bottomRight"}),[3,3];case 2:return e.sent(),_o().error({message:"Could not copy request as cURL",placement:"bottomRight"}),[3,3];case 3:return[2]}}))}))},n.prototype.copyText=function(e){return Co(this,void 0,void 0,(function(){var t;return Ro(this,(function(n){switch(n.label){case 0:return(null===(t=window.navigator)||void 0===t?void 0:t.clipboard)?[4,window.navigator.clipboard.writeText(e)]:[3,2];case 1:return n.sent(),[2];case 2:throw new Error("Could not copy to clipboard!")}}))}))},n.prototype.render=function(){var t,n,r=this;return(0,e.jsxs)("div",{onMouseEnter:this.mouseEnter,children:[(0,e.jsx)(d(),{open:this.state.isPopoverOpen,placement:"bottomLeft",content:(0,e.jsxs)("div",{className:"console-menu-popover",children:[(null===(t=window.navigator)||void 0===t?void 0:t.clipboard)?(0,e.jsx)("div",{children:(0,e.jsx)(u(),{id:"ConCopyAsCurl",className:"menu-btn",disabled:!(null===(n=window.navigator)||void 0===n?void 0:n.clipboard),onClick:function(){r.closePopover(),r.copyAsCurl()},type:"text",children:this.props.intl.formatMessage({id:"console.menu.copy_as_curl"})},"Copy as cURL")}):null,(0,e.jsx)("div",{children:(0,e.jsx)(u(),{className:"menu-btn",type:"text",onClick:this.autoIndent,children:this.props.intl.formatMessage({id:"console.menu.auto_indent"})},"Auto indent")}),this.props.saveAsCommonCommand&&(0,e.jsx)("div",{children:(0,e.jsx)(u(),{className:"menu-btn",type:"text",onClick:this.saveAsCommonCommand,children:this.props.intl.formatMessage({id:"console.menu.save_as_command"})},"Save as common command")})]}),children:(0,e.jsx)("button",{className:"euiButtonIcon--primary",style:{color:"#0061a6",border:"none"},onClick:this.onButtonClick,children:(0,e.jsx)(a.ToolOutlined,{})})}),this.state.modalVisible&&(0,e.jsx)(So,{onClose:this.handleClose,onConfirm:this.handleConfirm})]})},n}(t.Component);const Po=(0,s.injectIntl)(Ao);var Lo=function(){return Lo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Lo.apply(this,arguments)};var qo=function(e,n){return function(){var r=(0,t.useContext)(e);if(!r)throw new Error("".concat(n," should be used inside of ").concat(n,"Provider!"));return r}};const Io=require("immer"),Do=require("fp-ts/lib/function");var Mo=function(){return Mo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mo.apply(this,arguments)},Fo={data:null,type:"unknown"},zo=(0,Io.produce)({requestInFlight:!1,lastResult:Fo},Do.identity),Uo=function(e,t){return(0,Io.produce)(e,(function(e){return"sendRequest"===t.type?(e.requestInFlight=!0,void(e.lastResult=Fo)):"requestSuccess"===t.type?(e.requestInFlight=!1,void(e.lastResult=t.payload)):"requestFail"===t.type?(e.requestInFlight=!1,void(e.lastResult=Mo(Mo({},Fo),{error:t.payload}))):void 0}))},Bo=(0,t.createContext)(zo),Go=(0,t.createContext)((function(){}));function Jo(n){var r=n.children,o=(0,t.useReducer)(Uo,zo),i=o[0],s=o[1];return(0,e.jsx)(Bo.Provider,{value:i,children:(0,e.jsx)(Go.Provider,{value:s,children:r})})}var $o=qo(Bo,"RequestReadContext"),Vo=qo(Go,"RequestActionContext"),Ho=(0,t.createContext)(null);function Wo(t){var n=t.children,r=t.value;return(0,e.jsx)(Ho.Provider,{value:r,children:n})}var Ko=function(){var e=(0,t.useContext)(Ho);if(null==e)throw new Error("useServicesContext must be used inside the ServicesContextProvider.");return e},Qo=(0,Io.produce)({ready:!1,currentTextObject:null,sensorEditor:null},Do.identity),Yo=function(e,t){return(0,Io.produce)(e,(function(e){if("setInputEditor"!==t.type){if("setCurrentTextObject"!==t.type)return e;e.currentTextObject=t.payload}else t.payload&&(e.ready=!0,e.sensorEditor=t.payload)}))},Xo=function(){return Xo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xo.apply(this,arguments)},Zo=(0,t.createContext)(Qo),ei=(0,t.createContext)((function(){}));function ti(n){var r=n.children,o=(0,t.useReducer)(Yo,Qo,(function(e){return Xo({},e)})),i=o[0],s=o[1];return(0,e.jsx)(Zo.Provider,{value:i,children:(0,e.jsx)(ei.Provider,{value:s,children:r})})}var ni=qo(Zo,"EditorReadContext"),ri=qo(ei,"EditorActionContext"),oi=function(e){var n=Vo(),r=Ko(),o=r.services.history,i=r.clusterID,s=ni().sensorEditor;return(0,t.useCallback)((function(){return t=void 0,r=void 0,a=function(){var t,r,o,a,l,c,u,p,d,f,h,m,_,g,y,w,v,b,x,O,j,E,k,S,T,N,C;return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(R){switch(R.label){case 0:t="",R.label=1;case 1:return R.trys.push([1,13,,14]),s?[4,s.getRequestsInRange()]:[2];case 2:if(!(r=R.sent()).length)return console.log("No request selected. Select a request by placing the cursor inside it."),[2];o=0,R.label=3;case 3:if(!(o<r.length))return[3,11];switch(a=r[o],l=a.url,c=a.method,u=a.data,null==c?void 0:c.toUpperCase()){case"LOAD":return[3,4];case"CONFIG":return[3,7];case"FROM":return[3,8];case"SELECT":return[3,9]}return[3,10];case 4:return t="LOAD",p=u[0]?u[0].slice(4).trim():l,A=p,P=ot.filter((function(e){return e._source.title==A})),d=P&&P[0],f=s.getCoreEditor().getCurrentPosition().lineNumber,[4,s.getRequestRange(f)];case 5:return h=R.sent(),m=function(e){return e._source.requests.map((function(e){var t=e.method,n=e.path,r=e.body;return["LOAD","FROM","SELECT"].includes((t||"").toUpperCase())?r:"".concat(t," ").concat(n,"\n").concat(r)})).join("\n")}(d),[4,s.getCoreEditor().replaceRange(h,m)];case 6:return R.sent(),[3,10];case 7:return _=l,g=0,u&&u.length>0&&(y=u[0],(w=y.split(" ")).length>=3&&(g=parseInt(w[2]),isNaN(g)))?(n({type:"requestSuccess",payload:{data:{success:!1,error:"wrong config value: "+w[2]}}}),[3,10]):("MaxTokenCount"==_&&localStorage.setItem("editor:"+_,g+""),n({type:"requestSuccess",payload:{data:{success:!0}}}),[3,10]);case 8:if(r[o].url="_sql",r[o].method="POST",r[o].rawRequest=r[o].data[0],v=r[o].data[0]||"",-1==(b=v.search(/\s+(select)\s+/i)))throw(x=Error("invalid FROM request")).name="FRONT_ERROR",x;return O=v.slice(0,b),v=v.slice(b),(j=v.search(/\s+(order|where|limit)\s+/i))>-1?(E=v.slice(0,j),v=E+" "+O+v.slice(j)):v=v+" "+O,k={query:v.trim()},r[o].data[0]=JSON.stringify(k),[3,10];case 9:return r[o].url="_sql",r[o].method="POST",r[o].rawRequest=r[o].data[0],S={query:r[o].data[0]},r[o].data[0]=JSON.stringify(S),[3,10];case 10:return o++,[3,3];case 11:return n({type:"sendRequest",payload:void 0}),[4,e({requests:r,clusterID:i})];case 12:return T=R.sent(),n({type:"requestSuccess",payload:{data:T}}),[3,14];case 13:return N=R.sent(),"LOAD"===t?[2]:(N?(C={data:[N]},"FRONT_ERROR"===N.name&&(C={data:[{response:{value:(null==N?void 0:N.message)||N,contentType:"plain/text"}}]}),n({type:"requestSuccess",payload:C})):n({type:"requestFail",payload:void 0}),[3,14]);case 14:return[2]}var A,P}))},new((o=void 0)||(o=Promise))((function(e,n){function i(e){try{l(a.next(e))}catch(e){n(e)}}function s(e){try{l(a.throw(e))}catch(e){n(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,s)}l((a=a.apply(t,r||[])).next())}));var t,r,o,a}),[n,o,i,s])},ii=function(){return ii=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ii.apply(this,arguments)};function si(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")}const ai=require("events"),li=require("resize-observer-polyfill");var ci=o.n(li),ui=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function pi(e){return[e.clientWidth,e.clientHeight]}var di=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.destroyed=!1,r.expectedSize=null,r.el=t,r.observer=new(ci())((function(){if(r.expectedSize){var e=(0,f.isEqual)(pi(t),r.expectedSize);if(r.expectedSize=null,e)return}r.emit("resize")})),n.disabled||r.enable(),r}return ui(t,e),t.prototype.enable=function(){this.destroyed||(this.expectedSize=pi(this.el),this.observer.observe(this.el))},t.prototype.modifySizeWithoutTriggeringResize=function(e){try{e()}finally{this.el&&(this.expectedSize=pi(this.el))}},t.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.observer.disconnect(),this.observer=null,this.expectedSize=null,this.el=null,this.removeAllListeners())},t}(ai.EventEmitter);function fi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=new di(e);return r.on("resize",(function(){return t.forEach((function(e){e.getCoreEditor?e.getCoreEditor().resize():e.resize(),e.updateActionsBar&&e.updateActionsBar()}))})),function(){return r.destroy()}}require("antd/dist/reset.css"),o(3556);var hi=function(){return hi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hi.apply(this,arguments)},mi={position:"absolute",top:"0",left:"0",bottom:"0",right:"0"},_i=function(n){var r,o,i,l=n.saveCurrentTextObjectRef,c=n.sendRequestToES,u=(0,s.useIntl)(),p=oi(c),d=(r=(0,t.useRef)(Promise.resolve()),o=Ko().services.objectStorageClient,i=ni().currentTextObject,(0,t.useCallback)((0,f.throttle)((function(e){var t=r.current;i&&t.finally((function(){return o.text.update(ii(ii({},i),{text:e,updatedAt:Date.now()}))}))}),500,{trailing:!0}),[o,i]));return(0,t.useEffect)((function(){l.current=d}),[l]),(0,e.jsx)(de(),{title:u.formatMessage({id:"console.SendRequestButton.ToolTip"}),children:(0,e.jsx)("button",{"data-test-subj":"sendRequestButton","aria-label":"Click to send request",className:"conApp__editorActionButton conApp__editorActionButton--success",onClick:p,children:(0,e.jsx)(a.PlayCircleOutlined,{})})})};const gi=function(n){var r,o,i=n.selectedCluster,s=n.initialText,a=n.saveEditorContent,l=n.paneKey,c=n.height,u=void 0===c?"100%":c,p=(n.isActive,n.sendRequestToES),d=n.saveAsCommonCommand,f=i.id,h=i.endpoint,m=(0,t.useRef)(null),_=(0,t.useRef)(null),g=(0,t.useRef)(null),y=(o=ri(),(0,t.useCallback)((function(e){o({type:"setInputEditor",payload:e})}),[o])),w=(0,t.useRef)(null),v=(0,t.useRef)((function(){})),b=(0,t.useRef)((function(e){}));return v.current=oi(p),Ko().services.settings,(0,t.useEffect)((function(){var e=me().edit(m.current);w.current=e;var t=new ro(e,_.current);e.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:function(){v.current(),e.execCommand("iSearch")}});var n=new Ce(t);function r(){try{var e=n.getCoreEditor().getValue();a(e)}catch(e){console.error(e)}}g.current=n,y(n),n.paneKey=l,n.update(s||'GET _search\n{\n "query": {\n "match_all": {}\n }\n}'),si(n.getCoreEditor(),{fontSize:12,wrapMode:!0});var o,i=fi(m.current,n);return n.getCoreEditor().on("change",(function(){o&&clearTimeout(o),o=window.setTimeout(r,500)})),function(){i(),g.current&&g.current.getCoreEditor().destroy()}}),[]),(0,t.useEffect)((function(){f&&w.current&&(w.current.clusterID=f)&&(w.current.clusterInfo=i)}),[f]),(0,e.jsx)("div",{style:hi(hi({},mi),{height:u}),"data-test-subj":"console-application",className:"conApp",children:(0,e.jsxs)("div",{className:"conApp__editor",children:[(0,e.jsx)("ul",{className:"conApp__autoComplete",id:"autocomplete"}),(0,e.jsxs)("div",{className:"conApp__editorActions",id:"ConAppEditorActions",ref:_,children:[(0,e.jsx)(_i,{saveCurrentTextObjectRef:b,sendRequestToES:p}),(0,e.jsx)(Po,{getCurl:function(){return g.current.getRequestsAsCURL(h)},getDocumentation:function(){return e=g.current,t="",e.getRequestsInRange().then((function(n){if(!n||0===n.length)return null;var r=n[0].range.end;r.column=r.column-1;var o=function(e,t,n){var r=e.getLineValue(t.lineNumber),o=Lo({},ur(e,{column:r.length+1,lineNumber:t.lineNumber},n,!0)),i=Xn(o.method);return Pn(o.urlTokenPath,o,e,!0,i),o.endpoint}(e.getCoreEditor(),r,e.parser);return o&&o.documentation&&-1!==o.documentation.indexOf("http")?o.documentation.replace("/master/","/".concat(t,"/")).replace("/current/","/".concat(t,"/")):null}));var e,t},autoIndent:function(e){!function(e,t){var n,r,o,i;n=this,r=void 0,i=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(n){switch(n.label){case 0:return t.preventDefault(),[4,e.autoIndent()];case 1:return n.sent(),e.getCoreEditor().getContainer().focus(),[2]}}))},new((o=void 0)||(o=Promise))((function(e,t){function s(e){try{l(i.next(e))}catch(e){t(e)}}function a(e){try{l(i.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(s,a)}l((i=i.apply(n,r||[])).next())}))}(g.current,e)},saveAsCommonCommand:d})]}),(0,e.jsx)("div",{ref:m,id:"Editor_".concat(null===(r=g.current)||void 0===r?void 0:r.paneKey),className:"conApp__editorContent","data-test-subj":"request-editor",onClick:function(){var e;null===(e=w.current)||void 0===e||e.focus()}})]})})};require("brace/mode/yaml");var yi=function(e){return Boolean(e&&e.indexOf("application/json")>=0)};const wi=function(n){var r=n.clusterID,o=(0,t.useRef)(null),i=(0,t.useRef)(null),s=$o().lastResult,a=s.data,l=s.error;return(0,t.useEffect)((function(){var e;null===(e=i.current)||void 0===e||e.setValue("")}),[r]),(0,t.useEffect)((function(){var e,t,n,r;i.current=(e=o.current,n=me().acequire("ace/ace").edit(e),r=new ho,n.$blockScrolling=1/0,n.resize=Pe(n),n.update=function(e,t,o){"function"==typeof t&&(o=t,t=void 0);var i=n.getSession();i.setMode(e?t||r:"ace/mode/text"),i.setValue(e),"function"==typeof o&&setTimeout(o)},n.append=function(e,t,r){"function"==typeof t&&(r=t,t=!0),h().isUndefined(t)&&(t=!0);var o=n.getSession(),i=o.getLength();t&&n.moveCursorTo(Math.max(0,i-1),0),o.insert({row:i,column:0},"\n"+e),n.moveCursorTo(i+1,0),"function"==typeof r&&setTimeout(r)},(t=n.getSession()).setMode("ace/mode/text"),t.setFoldStyle("markbeginend"),t.setTabSize(2),t.setUseWrapMode(!0),n.setShowPrintMargin(!1),n.setReadOnly(!0),n);var s=o.current.querySelector("textarea");s.setAttribute("id","ConAppOutputTextarea"),s.setAttribute("readonly","true"),si(i.current,{fontSize:12,wrapMode:!0});var a=fi(o.current,i.current);return function(){a(),i.current.destroy()}}),[]),(0,t.useEffect)((function(){var e,t,n=i.current;if(a){if(!a.length)return void n.update(JSON.stringify(a,null,2),"ace/mode/json");n.update(a.map((function(e){var t=e.response,n=t.value,r=t.contentType;if(yi(r)){var o="",i=n;if(""==i)return"";try{var s="";if("#"==i[0]){var a=i.indexOf("\n");o=i.slice(0,a),i=i.slice(a),s=o+"\n"+JSON.stringify(JSON.parse(i),null,2)}else s=JSON.stringify(JSON.parse(i),null,2);return s}catch(e){console.error(e)}}return n})).join("\n"))}else if(l){var r=(t=null===(e=l.response)||void 0===e?void 0:e.contentType)?yi(t)?"ace/mode/json":t.indexOf("application/yaml")>=0?"ace/mode/yaml":"ace/mode/text":"ace/mode/text";if("ace/mode/json"==r)return void n.update(JSON.stringify(JSON.parse(l.response.value),null,2),r);n.update(l.response.value,r)}else n.update("")}),[a,l]),(0,e.jsx)("div",{ref:o,className:"conApp__outputContent","data-test-subj":"response-editor",children:(0,e.jsx)("div",{id:"ConAppOutput"})})};var vi=function(){function e(){this.panels=[]}return e.prototype.registerPanel=function(e){this.panels.push(e)},e.prototype.getPanels=function(){return this.panels},e}(),bi=(0,t.createContext)({registry:new vi});function xi(t){var n=t.children,r=t.registry;return(0,e.jsx)(bi.Provider,{value:{registry:r},children:n})}var Oi=function(){return Oi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Oi.apply(this,arguments)};function ji(n){var r=n.children,o=n.className,i=n.initialWidth,s=void 0===i?100:i,a=n.style,l=void 0===a?{}:a,c=(0,t.useState)("".concat(s,"%")),u=c[0],p=c[1],d=function(){var e=(0,t.useContext)(bi);if(void 0===e)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e}().registry,f=(0,t.useRef)(null);return(0,t.useEffect)((function(){d.registerPanel({width:s,setWidth:function(e){p(e+"%"),this.width=e},getWidth:function(){return f.current.getBoundingClientRect().width}})}),[s,d]),(0,e.jsx)("div",{className:o,ref:f,style:Oi(Oi({},l),{width:u,display:"flex"}),children:r})}var Ei=function(){return Ei=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ei.apply(this,arguments)};function ki(t){return(0,e.jsx)("button",Ei({},t,{children:(0,e.jsx)(a.PauseOutlined,{})}))}var Si=function(){return Si=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Si.apply(this,arguments)},Ti="ArrowLeft",Ni="ArrowRight",Ci={isDragging:!1,currentResizerPos:-1},Ri=function(e,t){return e/t*100};const Ai=function(n){var r=n.children,o=n.className,i=n.onPanelWidthChange,s=n.resizerClassName,a=t.Children.toArray(r),l=a[0],c=a[1],u=(0,t.useRef)(new vi),p=(0,t.useRef)(null),d=(0,t.useState)(Ci),f=d[0],h=d[1],m=(0,t.useCallback)((function(e){h(Si(Si({},f),{isDragging:!0,currentResizerPos:e.clientX}))}),[f]),_=(0,t.useCallback)((function(e){var t=e.key;if(t===Ti||t===Ni){e.preventDefault();var n=u.current.getPanels(),r=n[0],o=n[1],s=r.width-(t===Ti?1:-1),a=o.width-(t===Ni?1:-1);r.setWidth(s),o.setWidth(a),i&&i([s,a])}}),[i]);(0,t.useEffect)((function(){}),[a.length]);var g=[l,(0,e.jsx)(ki,{className:s,onKeyDown:_,onMouseDown:m},"resizer"),c];return(0,e.jsx)(xi,{registry:u.current,children:(0,e.jsx)("div",{className:o,ref:p,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:function(e){if(f.isDragging){var t=e.clientX,n=u.current.getPanels(),r=n[0],o=n[1],s=t-f.currentResizerPos,a=p.current.getBoundingClientRect().width,l=Ri(r.getWidth()+s,a),c=Ri(o.getWidth()-s,a);r.setWidth(l),o.setWidth(c),i&&i([l,c]),h(Si(Si({},f),{currentResizerPos:t}))}},onMouseUp:function(){h(Ci)},children:g})})},Pi=require("rxjs");var Li,qi=function(){function e(e){this.storage=e,this.changeEmitter=new Pi.BehaviorSubject(this.getHistory()||[])}return e.prototype.getHistoryKeys=function(){return this.storage.keys().filter((function(e){return 0===e.indexOf("hist_elem")})).sort().reverse()},e.prototype.getHistory=function(){var e=this;return this.getHistoryKeys().map((function(t){return e.storage.get(t)}))},e.prototype.change=function(e){var t=this.changeEmitter.subscribe(e);return function(){return t.unsubscribe()}},e.prototype.addToHistory=function(e,t,n){var r=this,o=this.getHistoryKeys();o.splice(0,100),o.forEach((function(e){r.storage.delete(e)}));var i=(new Date).getTime(),s="hist_elem_"+i;this.storage.set(s,{time:i,endpoint:e,method:t,data:n}),this.changeEmitter.next(this.getHistory())},e.prototype.updateCurrentState=function(e){var t=(new Date).getTime();this.storage.set("editor_state",{time:t,content:e})},e.prototype.getLegacySavedEditorState=function(){var e=this.storage.get("editor_state");if(e)return{time:e.time,content:e.content}},e.prototype.deleteLegacySavedEditorState=function(){this.storage.delete("editor_state")},e.prototype.clearHistory=function(){var e=this;this.getHistoryKeys().forEach((function(t){return e.storage.delete(t)}))},e}();!function(e){e.WIDTH="widths"}(Li||(Li={}));var Ii=function(){function e(e,t){this.engine=e,this.prefix=t}return e.prototype.encode=function(e){return JSON.stringify(e)},e.prototype.decode=function(e){if("string"==typeof e)return JSON.parse(e)},e.prototype.encodeKey=function(e){return"".concat(this.prefix).concat(e)},e.prototype.decodeKey=function(e){if((0,f.startsWith)(e,this.prefix))return"".concat(e.slice(this.prefix.length))},e.prototype.set=function(e,t){return this.engine.setItem(this.encodeKey(e),this.encode(t)),t},e.prototype.has=function(e){return null!=this.engine.getItem(this.encodeKey(e))},e.prototype.get=function(e,t){return this.has(e)?this.decode(this.engine.getItem(this.encodeKey(e))):t},e.prototype.delete=function(e){return this.engine.removeItem(this.encodeKey(e))},e.prototype.keys=function(){var e=this;return(0,f.transform)((0,f.keys)(this.engine),(function(t,n){var r=e.decodeKey(n);null!=r&&t.push(r)}))},e}(),Di=function(){function e(e){this.storage=e}return e.prototype.getFontSize=function(){return this.storage.get("font_size",12)},e.prototype.setFontSize=function(e){return this.storage.set("font_size",e),!0},e.prototype.getWrapMode=function(){return this.storage.get("wrap_mode",!0)},e.prototype.setWrapMode=function(e){return this.storage.set("wrap_mode",e),!0},e.prototype.setTripleQuotes=function(e){return this.storage.set("triple_quotes",e),!0},e.prototype.getTripleQuotes=function(){return this.storage.get("triple_quotes",!0)},e.prototype.getAutocomplete=function(){return this.storage.get("autocomplete_settings",{fields:!0,indices:!0,templates:!0,commands:!0})},e.prototype.setAutocomplete=function(e){return this.storage.set("autocomplete_settings",e),!0},e.prototype.getPolling=function(){return this.storage.get("console_polling",!0)},e.prototype.setPolling=function(e){return this.storage.set("console_polling",e),!0},e.prototype.toJSON=function(){return{autocomplete:this.getAutocomplete(),wrapMode:this.getWrapMode(),tripleQuotes:this.getTripleQuotes(),fontSize:parseFloat(this.getFontSize()),polling:Boolean(this.getPolling())}},e.prototype.updateSettings=function(e){var t=e.fontSize,n=e.wrapMode,r=e.tripleQuotes,o=e.autocomplete,i=e.polling;this.setFontSize(t),this.setWrapMode(n),this.setTripleQuotes(r),this.setAutocomplete(o),this.setPolling(i)},e}();const Mi=require("uuid");var Fi=function(){return Fi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fi.apply(this,arguments)},zi=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},Ui=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}},Bi=function(){function e(e,t){this.client=e,this.prefix="console_local_".concat(t)}return e.prototype.create=function(e){return zi(this,void 0,Promise,(function(){var t,n;return Ui(this,(function(r){return t=Mi.v4(),n=Fi({id:t},e),this.client.set("".concat(this.prefix,"_").concat(t),n),[2,n]}))}))},e.prototype.update=function(e){return zi(this,void 0,Promise,(function(){return Ui(this,(function(t){return this.client.set("".concat(this.prefix,"_").concat(e.id),e),[2]}))}))},e.prototype.findAll=function(){return zi(this,void 0,Promise,(function(){var e,t,n,r,o,i=this;return Ui(this,(function(s){for(e=this.client.keys().filter((function(e){return e.includes(i.prefix)})),t=[],n=0,r=e;n<r.length;n++)o=r[n],t.push(this.client.get(o));return[2,t]}))}))},e}();const Gi=require("antd/lib/badge");var Ji=o.n(Gi);require("antd/lib/badge/style/index.js");var $i={green:F,yellow:z,red:U,available:F,unavailable:G,online:F,offline:G,active:z,normal:F,acknowledged:F,error:U,gray:B},Vi=function(t){var n=t.status,r=t.size,o=void 0===r?14:r;if("unavailable"==n||!$i[n])return(0,e.jsx)("span",{children:(0,e.jsx)(a.CloseCircleOutlined,{style:{fontSize:14,color:G}})});var i=function(e){return $i[e]}(n);return(0,e.jsx)("div",{style:{background:i,height:o,width:o,borderRadius:o,display:"inline-block",verticalAlign:"text-bottom"}})},Hi=(o(3762),function(e){return e<=199?"default":e<=299?"success":e<=399?"processing":e<=499?"warning":"error"}),Wi=function(t){var n,r=t.requestInProgress,o=t.requestResult,i=t.selectedCluster,a=t.left,l=null,c=(0,e.jsxs)("div",{className:"base-info",children:[(0,e.jsxs)("div",{className:"info-item",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"console.cluster.status"}),":"]}),(0,e.jsx)(Vi,{status:null===(n=null==i?void 0:i.labels)||void 0===n?void 0:n.health_status})]}),(0,e.jsxs)("div",{className:"info-item",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),(0,e.jsx)(xo(),{color:"#D3DAE6",style:{color:"#000"},children:null==i?void 0:i.host})]}),(0,e.jsxs)("div",{className:"info-item",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"console.cluster.version"}),":"]}),(0,e.jsx)(xo(),{color:"#D3DAE6",style:{color:"#000"},children:null==i?void 0:i.version})]})]});if(r)l=(0,e.jsx)(Ji(),{color:"hollow",text:"Request in progress"});else if(o){var u=o.endpoint,p=o.method,d=o.statusCode,f=o.statusText,h=o.timeElapsedMs;l=(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:"status_info",children:[(0,e.jsxs)("div",{className:"info-item",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"console.response.status"}),":"]}),(0,e.jsx)(de(),{placement:"top",title:(0,e.jsx)("span",{children:"".concat(p," ").concat(u.startsWith("/")?u:"/"+u)}),children:(0,e.jsx)(xo(),{color:Hi(d),style:{color:"#000"},children:"".concat(d," - ").concat(f)})})]}),(0,e.jsxs)("div",{className:"info-item",children:[(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),(0,e.jsx)(de(),{placement:"top",title:(0,e.jsx)("span",{children:"Time Elapsed"}),children:(0,e.jsx)(xo(),{color:"#D3DAE6",style:{color:"#000"},children:"".concat(h," ").concat("ms")})})]})]})})}return(0,e.jsx)("div",{className:"request-status-bar",children:a?(0,e.jsx)("div",{className:"bar-item",children:c}):(0,e.jsx)("div",{className:"bar-item",children:l})})},Ki=(o(146),function(){return Ki=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ki.apply(this,arguments)}),Qi=function(t){var n,r,o,i,s,a,l,c,u,p,d,f,h,m=t.selectedCluster,_=t.saveEditorContent,g=t.initialText,y=t.paneKey,w=t.isActive,v=t.height,b=t.sendRequestToES,x=t.saveAsCommonCommand,O=$o(),j=O.requestInFlight,E=O.lastResult,k=E.data,S=E.error,T=null!==(n=null==k?void 0:k[k.length-1])&&void 0!==n?n:S,N=v>0?v+"px":"100%";return(0,e.jsx)("div",{style:{height:N},children:(0,e.jsx)("div",{className:"Console",style:{height:"100%"},children:(0,e.jsxs)(Ai,{resizerClassName:"resizer",children:[(0,e.jsxs)(ji,{style:{height:"100%",position:"relative",minWidth:"0px",paddingBottom:30},initialWidth:50,children:[(0,e.jsx)(gi,{height:v-30+"px",selectedCluster:m,saveEditorContent:_,initialText:g,paneKey:y,isActive:w,sendRequestToES:b,saveAsCommonCommand:x}),(0,e.jsx)("div",{style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:30,zIndex:997,borderTop:"1px solid #eee"},children:(0,e.jsx)(Wi,{requestInProgress:j,selectedCluster:m,left:!0,requestResult:T&&T.request?{method:T.request.method.toUpperCase(),endpoint:T.request.path,statusCode:null===(r=T.response)||void 0===r?void 0:r.statusCode,statusText:null===(o=T.response)||void 0===o?void 0:o.statusText,timeElapsedMs:null===(i=T.response)||void 0===i?void 0:i.timeMs,requestHeader:null===(s=T.request)||void 0===s?void 0:s.header,responseHeader:null===(a=T.response)||void 0===a?void 0:a.header}:void 0})})]}),(0,e.jsxs)(ji,{style:{height:"100%",position:"relative",minWidth:"0px",paddingBottom:30},initialWidth:50,children:[(0,e.jsx)(ee(),{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",className:"console-result-tabs",items:[{key:"result",label:"Result",children:(0,e.jsx)("div",{style:{height:v-30,backgroundColor:"#fff",borderRadius:"6px"},children:(0,e.jsx)(wi,{clusterID:m.id})})},{key:"headers",label:"Headers",children:(0,e.jsx)("div",{style:{backgroundColor:"#ffffff",height:v-58,border:"1px solid #fff",borderRadius:"4px"},children:(0,e.jsx)(ee(),{animated:!1,className:"console-headers-tabs",size:"small",tabBarStyle:{margin:0,backgroundColor:"#fff"},items:[{key:"1",label:"Request",children:(0,e.jsx)("div",{style:{backgroundColor:"#ffffff",height:"100%",overflow:"auto"},children:(0,e.jsx)(fe,{code:null===(l=null==T?void 0:T.request)||void 0===l?void 0:l.header})})},{key:"2",label:"Response",children:(0,e.jsx)("div",{style:{backgroundColor:"#ffffff",height:"100%",overflow:"auto"},children:(0,e.jsx)(fe,{code:null===(c=null==T?void 0:T.response)||void 0===c?void 0:c.header})})}]})})}]}),(0,e.jsx)("div",{style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:30,zIndex:997,borderTop:"1px solid #eee"},children:(0,e.jsx)(Wi,{requestInProgress:j,selectedCluster:m,requestResult:T&&T.request?{method:T.request.method.toUpperCase(),endpoint:T.request.path,statusCode:null===(u=T.response)||void 0===u?void 0:u.statusCode,statusText:null===(p=T.response)||void 0===p?void 0:p.statusText,timeElapsedMs:null===(d=T.response)||void 0===d?void 0:d.timeMs,requestHeader:null===(f=T.request)||void 0===f?void 0:f.header,responseHeader:null===(h=T.response)||void 0===h?void 0:h.header}:void 0})})]})]})})})};const Yi=function(n){var r=(0,t.useRef)(new vi),o=(0,t.useMemo)((function(){var e,t=(e={engine:window.localStorage,prefix:"sense:"},new Ii(e.engine,e.prefix)),n=function(e){return new qi(e.storage)}({storage:t}),r=function(e){return{text:new Bi(e,"text-object")}}(t),o=function(e){return new Di(e.storage)}({storage:t});return{storage:t,history:n,objectStorageClient:r,settings:o}}),[]),i=o.storage,s=o.history,a=o.objectStorageClient,l=o.settings;return(0,e.jsx)(xi,{registry:r.current,children:(0,e.jsx)(Jo,{children:(0,e.jsx)(ti,{children:(0,e.jsx)(Wo,{value:{services:{history:s,storage:i,objectStorageClient:a,settings:l},clusterID:n.selectedCluster.id},children:(0,e.jsx)(Qi,Ki({},n))})})})})};o(3639);var Xi=function(){return Xi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xi.apply(this,arguments)},Zi=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},es={en:{"console.cluster.status":"Health","console.cluster.endpoint":"Endpoint","console.cluster.version":"Version","console.response.status":"Response status","console.response.time_elapsed":"Time elapsed","console.request.headers":"Headers","console.request.headers.title":"Request header info","console.cluster.select.placeholder":"Enter cluster name","console.cluster.select.search.no_match":"No cluster is matched (the matching rule is prefix matching)","console.SendRequestButton.ToolTip":"Click to send request","console.noConsole.desc":"Add a cluster now and start your efficient development journey","console.noConsole.dev1":"Multi cluster parallel operation","console.noConsole.dev2":"Intelligent syntax prompt","console.noConsole.dev3":"Quickly load commonly used instructions","console.noConsole.dev4":"One click workspace switching","cluster.manage.create":"Create Cluster","cluster.manage.register":"Register Cluster","cluster.manage.des":"This can help you better understand and analyze your data in order to make predictions and decisions quickly.","menu.devtool.console":"Dev Tools","command.table.field.name":"Name","command.table.field.tag":"Tag","command.table.field.content":"Content","command.manage.edit.title":"Command","command.btn.newtag":"Add New Tag","command.message.invalid.tag":"invalid tag","command.manage.save.title":"Save As Command","command.manage.title":"COMMANDS","command.manage.description":"Commonly used commands can help you save frequently used requests and load them quickly through the LOAD command in the development tool.","console.menu.copy_as_curl":"Copy As Curl","console.menu.auto_indent":"Auto Indent","console.menu.save_as_command":"Save As Command","form.button.save":"Save","form.button.cancel":"Cancel"},zh:{"console.cluster.status":"健康状态","console.cluster.endpoint":"集群地址","console.cluster.version":"版本","console.response.status":"响应状态","console.response.time_elapsed":"时延","console.request.headers":"请求头","console.request.headers.title":"请求头信息","console.cluster.select.placeholder":"输入集群名称查找","console.cluster.select.search.no_match":"匹配不到集群(匹配规则为前缀匹配)","console.SendRequestButton.ToolTip":"点击发送请求","console.noConsole.desc":"立即添加集群,启动您的高效开发之旅","console.noConsole.dev1":"多集群并行操作","console.noConsole.dev2":"智能语法提示","console.noConsole.dev3":"快速加载常用指令","console.noConsole.dev4":"一键切换工作区","cluster.manage.create":"创建集群","cluster.manage.register":"注册集群","cluster.manage.des":"这可以帮助您更好地理解和分析数据,以便快速做出预测和决策。","menu.devtool.console":"开发工具","command.table.field.name":"名称","command.table.field.tag":"标签","command.table.field.content":"内容","command.manage.edit.title":"常用命令","command.btn.newtag":"新建标签","command.message.invalid.tag":"无效的标签内容","command.manage.save.title":"保存为常用命令","command.manage.title":"常用命令管理","command.manage.description":"常用命令可以帮助您保存常用的请求,并且在开发工具里面通过 LOAD 命令快速地加载。","console.menu.copy_as_curl":"复制为 curl 命令","console.menu.auto_indent":"自动缩进","console.menu.save_as_command":"保存为常用命令","form.button.save":"保存","form.button.cancel":"取消"}},ts=navigator.language.split(/[-_]/)[0];console.log("language",ts);var ns=function(t){return void 0===t&&(t={}),(0,e.jsx)("img",Xi({height:"14px",width:"14px"},t,{src:'data:image/svg+xml;utf8,<svg width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="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"/></svg>'}))},rs=function(t){return void 0===t&&(t={}),(0,e.jsx)("img",Xi({height:"14px",width:"14px"},t,{src:'data:image/svg+xml;utf8,<svg width="512px" height="512px" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">\n <path fill="var(--ci-primary-color, currentColor)" d="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" class="ci-primary"/>\n <path fill="var(--ci-primary-color, currentColor)" d="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" class="ci-primary"/>\n</svg>\n'}))},os=function(t){return(0,e.jsx)(Yi,Xi({},t))},is=function(e,t){var n=t.type,r=t.payload,o=e;switch(n){case"add":o=function(e,t){var n=e.panes,r=(t.payload||{}).cluster;if(console.log("addTab called with:",{action:t,cluster:r,payload:t.payload}),!r)return console.error("Cannot add tab: cluster is undefined",{action:t,payload:t.payload}),e;if(!r.id)return console.error("Cannot add tab: cluster.id is missing",{cluster:r,action:t}),e;var o="".concat(r.id,":").concat((new Date).valueOf()),i={key:o,cluster_id:r.id,title:r.name||r.id,cluster:r,closable:!0,content:'GET _search\n{\n "query": {\n "match_all": {}\n }\n}\n'},s=Zi(Zi([],n,!0),[i],!1);return console.log("Successfully created new tab:",{activeKey:o,newPane:{key:i.key,title:i.title,cluster_id:i.cluster_id}}),Xi(Xi({},e),{panes:s,activeKey:o})}(e,t);break;case"remove":o=function(e,t){var n,r=e.activeKey,o=e.panes,i=t.payload.targetKey,s=o.filter((function(e){return e.key!==i}));return Xi(Xi({},e),{panes:s,activeKey:r==i?null===(n=s[0])||void 0===n?void 0:n.key:r})}(e,t);break;case"change":o=Xi(Xi({},e),{activeKey:r.activeKey});break;case"saveTitle":var i=t.payload,s=i.key,a=i.title,l=e.panes.map((function(e){return e.key==s?Xi(Xi({},e),{title:a}):e}));o=Xi(Xi({},e),{panes:l});break;case"saveContent":var c=e.panes.map((function(n){return n.key==e.activeKey?Xi(Xi({},n),{content:t.payload.content}):n}));o=Xi(Xi({},e),{panes:c});break;case"saveOrder":o=Xi(Xi({},e),{order:t.payload.order});break;case"init":o=t.payload}return o},ss={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:!1,content:'GET _search\n{\n "query": {\n "match_all": {}\n }\n}\n\nGET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g\n'}]};const as=function(n){var o,i,c,u=n.minimize,p=void 0!==u&&u,d=n.onMinimizeClick,f=n.resizeable,h=void 0!==f&&f,m=n.height,_=void 0===m?"50vh":m,g=n.width,y=void 0===g?"100%":g,w=n.mode,v=void 0===w?"global":w,b=n.sendRequestToES,x=n.saveAsCommonCommand,O=n.SearchEngineIcon,j=(n.DataSourceSelector,n.fetchDataSource,n.LogoImg),E=n.clusterList,k=void 0===E?[]:E,S=n.defaultCluster,T=void 0===S?null:S,N=function(){var e=T||(k&&k.length>0?k[0]:null);if(e){var t="".concat(e.id,":").concat((new Date).valueOf());return{activeKey:t,panes:[{key:t,cluster_id:e.id,title:e.name,cluster:e,closable:!1,content:'GET _search\n{\n "query": {\n "match_all": {}\n }\n}\n'}]}}return ss},C=(i=N,c={encode:JSON.stringify,decode:JSON.parse},function(e,n,r,o){var i=(0,t.useState)((function(){var t=r.getItem(e);return t?o&&"function"==typeof o.encode?o.decode(t):t:"function"==typeof n?n():n})),s=i[0],a=i[1];(0,t.useEffect)((function(){if(void 0===s)return r.removeItem(e);var t=s;o&&"function"==typeof o.encode&&(t=o.encode(t)),r.setItem(e,t)}),[e,s,r]);var l=(0,t.useCallback)((function(){a(void 0)}),[]);return[s,a,l]}("console:state:",i,window.localStorage,c)),R=C[0],A=C[1],P=(C[2],(0,t.useReducer)(is,R)),L=P[0],q=P[1];(0,t.useEffect)((function(){if(0==L.panes.length){var e=N();return q({type:"init",payload:e}),void A(e)}L.panes.some((function(e){return e.key==L.activeKey}))||q({type:"change",payload:{activeKey:L.panes[0].key}}),A(L)}),[L,q,A]);var I,D=(0,t.useCallback)((function(e){q({type:"saveContent",payload:{content:e}})}),[q]),M=(0,t.useCallback)((function(e){console.log("newTabClick called with:",{param:e,defaultCluster:T,clusterList:k,tabStatePanes:L.panes.length,activeKey:L.activeKey});var t=e||T;if(!t&&L.panes.length>0){var n=L.panes.find((function(e){return e.key===L.activeKey}));n&&n.cluster&&(t=n.cluster,console.log("Using cluster from active pane:",t))}if(!t&&k&&k.length>0){var r=k[0];r&&r.id&&(t=r,console.log("Using first cluster from clusterList:",t))}if(!t)return console.error("Cannot create new tab: no cluster available",{param:e,defaultCluster:T,clusterList:k,tabStatePanes:L.panes}),void alert("无法创建新标签页:没有可用的集群。请先配置集群连接。");console.log("Using targetCluster:",t),q({type:"add",payload:{cluster:t}})}),[T,L.activeKey,L.panes,k]),F=(0,t.useRef)(null),z=(0,t.useState)(!1),U=z[0],B=z[1],G=(0,t.useCallback)((function(e){d(e),K()}),[d]);I=null===(o=L.activeKey)||void 0===o?void 0:o.split(":")[0],it=I;var J=L.panes.map((function(e){return e.closable=!1,e}));1==J.length&&(J[0].closable=!1);var $={left:(0,e.jsx)("div",{className:"tabbar-icon",onClick:G,children:j?(0,e.jsx)(l(),{component:j,style:{fontSize:"24px",verticalAlign:"middle"}}):(0,e.jsx)(a.CodeOutlined,{})}),right:(0,e.jsxs)(e.Fragment,{children:[p?(0,e.jsx)("div",{className:"tabbar-icon",onClick:G,children:(0,e.jsx)(a.MinusSquareOutlined,{})}):null,(0,e.jsx)("div",{className:"tabbar-icon",onClick:function(){null!=F.current&&(U?(F.current.className=F.current.className.replace(" fullscreen",""),K()):F.current.className=F.current.className+" fullscreen"),W(F.current.clientHeight),B(!U)},children:U?(0,e.jsx)(rs,{}):(0,e.jsx)(ns,{})})]}),append:(0,e.jsx)("div",{className:"tabbar-icon",onClick:function(e){e.preventDefault(),e.stopPropagation(),M()},children:(0,e.jsx)(a.PlusOutlined,{})})},V=(0,t.useState)(function(e){var t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:e.endsWith("%")?void 0:t}(_)),H=V[0],W=V[1];(0,t.useEffect)((function(){var e=function(){U&&W(F.current.offsetHeight)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[U]);var K=function(){document.body.style.overflow=""};return(0,t.useEffect)((function(){if("global"==v){var e=document.querySelector("#root>div");e&&(e.style.paddingBottom="number"==typeof H?H+"px":H)}}),[H]),(0,t.useEffect)((function(){var e=function(e){e.reason&&e.reason.message&&e.reason.message.includes("message port closed")&&(e.preventDefault(),console.warn("Message port closed, this is usually safe to ignore"))};return window.addEventListener("unhandledrejection",e),function(){window.removeEventListener("unhandledrejection",e)}}),[]),(0,e.jsx)(s.IntlProvider,{locale:ts,messages:es[ts],children:(0,e.jsx)(r.Resizable,{defaultSize:{width:y,height:H||"50vh"},minHeight:70,maxHeight:"100vh",handleComponent:{top:"global"===v?(0,e.jsx)(ue,{}):null},onResize:function(e,t,n,r){W(n.clientHeight)},enable:{top:h&&"page"!==v,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},style:{width:y},children:(0,e.jsx)("div",{style:{background:"#fff",height:"100%"},onMouseOver:function(){document.body.style.overflow="hidden"},onMouseOut:K,id:"console",ref:F,children:0===J.length?(0,e.jsx)("div",{children:"no data"}):(0,e.jsx)(ce,{className:"console-main-tabs",activeKey:L.activeKey,onChange:function(e){q({type:"change",payload:{activeKey:e}})},onEdit:function(e,t){q({type:t,payload:{targetKey:e}})},type:"editable-card",hideAdd:!1,tabBarExtraContent:$,addIcon:(0,e.jsx)("div",{className:"tabbar-icon",onClick:function(e){e.preventDefault(),e.stopPropagation(),M()},children:(0,e.jsx)(a.PlusOutlined,{})}),items:J.map((function(t){return{key:t.key,label:(0,e.jsx)(Q,{title:t.title,onTitleChange:function(e){!function(e,t){q({type:"saveTitle",payload:{key:e,title:t}})}(t.key,e)},distribution:t.cluster.distribution,SearchEngineIcon:O}),children:(0,e.jsx)("div",{children:(0,e.jsx)(os,{height:H-30,selectedCluster:t.cluster,paneKey:t.key,saveEditorContent:D,initialText:t.content,isActive:t.key==L.activeKey,sendRequestToES:b,saveAsCommonCommand:x})}),closable:J.length>1}}))})})})})}})(),i})()));