-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathdocs-v1.js
292 lines (291 loc) · 110 KB
/
docs-v1.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
/* This file contains js built by combining code built by Elastic and some open
* source libraries. All such libraries are available from npm or
* https://github.com/elastic/docs/tree/master/resources/web/lib
* and these are their licenses: */
/* code-prettify
* The Apache 2.0 License
*
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License. */
/* code-prettify's lang-sql
* The Apache 2.0 License
*
* Copyright (C) 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License. */
/* code-prettify's lang-yaml
* The Apache 2.0 License
*
* Copyright (C) 2015 ribrdb @ code.google.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License. */
/* details-polyfill
* The MIT License (MIT)
*
* Copyright (c) 2018 Rico Sta. Cruz
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/* js-cookie
* The MIT License (MIT)
*
* Copyright 2014 Klaus Hartl
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/* linkstate
* The MIT License (MIT)
*
* Copyright (c) 2017 Jason Miller
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. */
/* loose-envify
* The MIT License (MIT)
*
* Copyright (c) 2015 Andres Suarez <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. */
/* preact
* The MIT License (MIT)
*
* Copyright (c) 2015-present Jason Miller
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. */
/* preact-context
* The Apache 2.0 License
*
* Copyright (C) 2012 Georgios Valotasios. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License. */
/* preact-redux
* The MIT License (MIT)
*
* Copyright (c) 2016 Jason Miller
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. */
/* ramda
* The MIT License (MIT)
*
* Copyright (c) 2013-2018 Scott Sauyet and Michael Hurley
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. */
/* redux
* The MIT License (MIT)
*
* Copyright (c) 2015-present Dan Abramov
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. */
/* redux-thunk
* The MIT License (MIT)
*
* Copyright (c) 2015-present Dan Abramov
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. */
/* symbol-observable
* The MIT License (MIT)
*
* Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
* Copyright (c) Ben Lesh <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. */parcelRequire=function(e){var r="function"==typeof parcelRequire&&parcelRequire,n="function"==typeof require&&require,i={};function u(e,u){if(e in i)return i[e];var t="function"==typeof parcelRequire&&parcelRequire;if(!u&&t)return t(e,!0);if(r)return r(e,!0);if(n&&"string"==typeof e)return n(e);var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}return u.register=function(e,r){i[e]=r},i=e(u),u.modules=i,u}(function (require) {function qa(a){return a&&a.__esModule?{d:a.default}:{d:a}}var r=this;var i={};function ra(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,o)}return i}function Yb(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ra(i,!0).forEach(function(t){Zb(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ra(i).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function Zb(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function sa(){f(".docs-landing div#content > h3").each(function(){var e=f(this).next("div.ulist.itemizedlist");f(this).add(e).wrapAll("<div class=\"docs-link-section\"></div>")});var e=f(".docs-link-section:last");e.detach(),e.addClass("legacy-docs hidden").insertAfter("div#content"),e.find("h3").append("<span class=\"toggle-icon\">▼</span>"),e.find("h3").on("click",function(){e.toggleClass("hidden")}),f("#bottomContent").insertAfter(e).show()}function ta(e,t){var i=f("<div id=\"this_page\"></div>").prependTo(e);i.append("<p id=\"otp\" class=\"aside-heading\">"+t("On this page")+"</p>");var o=f("<ul></ul>").appendTo(i),a=0;f("div#content a[id]:not([href])").each(function(e){this.href="#"+this.id;var t,i=f(this).parent("h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11,h12").clone();if(i.length>0&&(f(this).parent().is("h2")?t=0:f(this).parent().is("h3")?t=1:f(this).parent().is("h4")?t=2:f(this).parent().is("h5,h6,h7,h8,h9,h10,h11,h12")&&(t=null),0<a++)){i.find("a,.added,.coming,.deprecated,.experimental").remove();var r=i.html();if(null!==t){var $="<li id=\"otp-text-"+e+"\" class=\"heading-level-"+t+"\"><a href=\"#"+this.id+"\">"+r+"</a></li>";o.append($)}}}),a<2&&i.remove()}function ua(){f("div.console_widget").each(function(){var e=f(this),t=e.attr("data-snippet"),i=e.prev().text()+"\n",o=e.attr("class").split(" ").filter(function(e){return e.startsWith("has-")}).map(function(e){return e.substring(4)});return v(e,G,{setting:"console",url_label:"Console URL",view_in_text:"Try in Elastic",configure_text:"Configure Console URL",addPretty:!0,consoleText:i,snippet:t,langs:o})})}function va(){v(f("#feedbackWidgetContainer"),me),f(".feedbackButton").click(function(){var e=f(this).hasClass("feedbackLiked");f(this).addClass("isPressed"),v(f("#feedbackModalContainer"),de,{isLiked:e})})}function wa(){f("div.sense_widget").each(function(){var e=f(this),t=e.attr("data-snippet"),i=e.prev().text()+"\n";return v(e,G,{setting:"sense",url_label:"Sense URL",view_in_text:"View in Sense",configure_text:"Configure Sense URL",addPretty:!0,consoleText:i,snippet:t})})}function $b(){f("div.kibana_widget").each(function(){var e=f(this),t=e.attr("data-snippet"),i=e.prev().text()+"\n";return v(e,G,{setting:"kibana",isKibana:!0,url_label:"Enter the URL of Kibana",configure_text:"Configure Kibana URL",consoleText:i,snippet:t})})}function xa(e){var t=f("#book_title");f("div.toc li ul").each(function(){var e=f(this).parent();e.addClass("collapsible").children("span").click(function(){e.hasClass("show")?(e.add(e.find("li.show")).removeClass("show"),t.hasClass("show")&&t.removeClass("show")):(e.parents("div.toc,li").first().find("li.show").removeClass("show"),e.addClass("show"))})}),f(".collapsible").length>0&&t.addClass("collapsible").click(function(){t.hasClass("show")?(t.removeClass("show"),t.parent().find(".show").removeClass("show")):(t.addClass("show"),t.parent().find(".collapsible").addClass("show"))}),f("div.toc a, #book_title select").click(function(e){e.stopPropagation()});var i=t.find("select option:selected");t.find("select").change(function(t){var o=f(t.target).find("option:selected").val();if("other"===o)return f("#other_versions").show(),void f("#live_versions").hide();Ja(o).fail(function(){i.attr("selected","selected"),alert(e("This page is not available in the docs for version:")+o)})})}function _b(){var e=[],t=new IntersectionObserver(function(t){t.forEach(function(t){var i=t.target.getAttribute("id"),o=document.querySelector("#sticky_content #this_page a[href=\"#".concat(i,"\"]")),a=f(o).parent().attr("id");if(a){var r=parseInt(a.match(/\d+/)[0],10);if(t.intersectionRatio>0)e.push(r);else{var $=e.indexOf(r);e.splice($,1)}e.length>0&&(e.sort(function(e,t){return e-t}),f("a.active").removeClass("active"),f("#otp-text-"+e[0]+" > a").addClass("active"))}})});document.querySelectorAll("div#content a[id]").forEach(function(e,i){0!==i&&t.observe(e)})}function ac(){var e=new Proxy(new URLSearchParams(window.location.search),{get:function(e,t){return e.get(t)}});return{utm_source:e.utm_source,utm_medium:e.utm_medium,utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_term:e.utm_term,utm_id:e.utm_id}}function W(e){var t=document.cookie.split("; ").find(function(t){return t.startsWith(e+"=")});if(null!=t)return t.split("=")[1]}function bc(){return W("euid")}function k(r){return function $(e,t){switch(arguments.length){case 0:return $;case 1:return m(e)?$:n(function($){return r(e,$)});default:return m(e)&&m(t)?$:m(e)?n(function($){return r($,t)}):m(t)?n(function($){return r(e,$)}):r(e,t);}}}function n(t){return function e(r){return 0===arguments.length||m(r)?e:t.apply(this,arguments)}}function m(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function ya(t,r){switch(t){case 0:return function(){return r.apply(this,arguments)};case 1:return function(t){return r.apply(this,arguments)};case 2:return function(t,n){return r.apply(this,arguments)};case 3:return function(t,n,e){return r.apply(this,arguments)};case 4:return function(t,n,e,u){return r.apply(this,arguments)};case 5:return function(t,n,e,u,a){return r.apply(this,arguments)};case 6:return function(t,n,e,u,a,p){return r.apply(this,arguments)};case 7:return function(t,n,e,u,a,p,i){return r.apply(this,arguments)};case 8:return function(t,n,e,u,a,p,i,s){return r.apply(this,arguments)};case 9:return function(t,n,e,u,a,p,i,s,c){return r.apply(this,arguments)};case 10:return function(t,n,e,u,a,p,i,s,c,o){return r.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten");}}function za(r,e,$){return function(){for(var t=[],u=0,l=r,a=0;a<e.length||u<arguments.length;){var o;a<e.length&&(!m(e[a])||u>=arguments.length)?o=e[a]:(o=arguments[u],u+=1),t[a]=o,m(o)||(l-=1),a+=1}return l<=0?$.apply(this,t):ya(l,za(r,t,$))}}var cc=k(function(r,$){return 1===r?n($):ya(r,za(r,[],$))});var dc=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function Aa(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var ec=k(function(r,$){for(var e=$,n=0;n<r.length;){if(null==e)return;e=e[r[n]],n+=1}return e});var V=k(function(r,$){return ec([r],$)});var fc=n(function(r){return cc(r.length,r)});function gc(r,t){return function(){var e=arguments.length;if(0===e)return t();var i=arguments[e-1];return dc(i)||"function"!=typeof i[r]?t.apply(this,arguments):i[r].apply(i,Array.prototype.slice.call(arguments,0,e-1))}}var hc=k(function(r,e){var $={};for(var n in e)$[n]=e[n];return delete $[r],$});var ic=k(gc("forEach",function(r,e){for(var $=e.length,n=0;n<$;)r(e[n]),n+=1;return e}));function jc(r){if(null==r)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(r),t=1,$=arguments.length;t<$;){var n=arguments[t];if(null!=n)for(var o in n)Aa(o,n)&&(e[o]=n[o]);t+=1}return e}var kc="function"==typeof Object.assign?Object.assign:jc;var X=k(function(r,$){return kc({},r,$)});var H=k(function(r,$){for(var e={},t={},a=0,v=r.length;a<v;)t[r[a]]=1,a+=1;for(var o in $)t.hasOwnProperty(o)||(e[o]=$[o]);return e});var I=k(function(r,$){for(var e={},o=0;o<r.length;)r[o]in $&&(e[r[o]]=$[r[o]]),o+=1;return e});var lc=n(function(r){var a=[];for(var $ in r)Aa($,r)&&(a[a.length]=[$,r[$]]);return a});var mc=function(e){if(!e)return function(){};var t=e.getBoundingClientRect().top;return function(){var n=e.getBoundingClientRect().top;window.scrollBy(0,n-t)}},nc=function(e,t){var n=document.createElement("style");n.id="console-alternative",document.head.appendChild(n);var r=n.sheet,i=null,l=function(){var n=t.getState().settings.consoleAlternative;if(i!==n){i=n;for(var l=e(t.getState().settings.alternativeChangeSource),a=r.cssRules.length-1;a>=0;a--)r.deleteRule(a);"console"!==n&&(r.insertRule("#guide .default.has-".concat(n," { display: none; }")),r.insertRule("#guide .alternative.lang-".concat(n," { display: block; }")),r.insertRule("#guide .default.has-".concat(n,"-result { display: none; }")),r.insertRule("#guide .alternative.lang-".concat(n,"-result { display: block; }")),r.insertRule("#guide .AlternativePicker-warning { visibility: visible; }"),r.insertRule("#guide .has-".concat(n," .AlternativePicker-warning { visibility: hidden; }"))),l()}};l(),t.subscribe(l)};var oc=fc(nc)(mc);function pc(t){return(pc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ba(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ca(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function Da(t,e,r){return e&&Ca(t.prototype,e),r&&Ca(t,r),t}function Ea(t,e){return!e||"object"!==pc(e)&&"function"!=typeof e?qc(t):e}function qc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fa(t){return(Fa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ga(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rc(t,e)}function rc(t,e){return(rc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function sc(e){return e.replace(/\/[^/?]+(?:\?.*)?$/,"/").replace(/^http:/,"https:")}var Y,Ha={};!function(e){var o=!1;if("function"==typeof Y&&Y.amd&&(Y(e),o=!0),"object"==typeof Ha&&(Ha=e(),o=!0),!o){var n=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=n,t}}}(function(){function e(){for(var e=0,o={};e<arguments.length;e++){var n=arguments[e];for(var t in n)o[t]=n[t]}return o}return function o(n){function t(o,r,i){var c;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(i=e({path:"/"},t.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(y){}r=n.write?n.write(r,o):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),o=(o=(o=encodeURIComponent(String(o))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var s="";for(var f in i)i[f]&&(s+="; "+f,!0!==i[f]&&(s+="="+i[f]));return document.cookie=o+"="+r+s}o||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u<p.length;u++){var l=p[u].split("="),v=l.slice(1).join("=");this.json||"\""!==v.charAt(0)||(v=v.slice(1,-1));try{var $=l[0].replace(d,decodeURIComponent);if(v=n.read?n.read(v,$):n(v,$)||v.replace(d,decodeURIComponent),this.json)try{v=JSON.parse(v)}catch(y){}if(o===$){c=v;break}o||(c[$]=v)}catch(y){}}return c}}return t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(o,n){t(o,"",e(n,{expires:-1}))},t.withConverter=o,t}(function(){})});var K=window.jQuery;var f=window.jQuery;var Ia=qa(Ha);var j=Ia.d;var tc=/[^\/]+\/+([^\/]+\.html)/;function Ja(e){var r=location.href.replace(tc,e+"/$1");return f.get(r).done(function(){location.href=r})}function uc(e){var r=e.match(/[^\/]+$/)[0],t=f("div.toc a[href=\""+r+"\"]");t.addClass("current_page"),t.parent().parent().addClass("current_page_li"),t.parentsUntil("ul.toc","li.collapsible").addClass("show")}function vc(){var e="((?:\\n(?!$badBody)[^\\n]+)+)".replace("$badBody","GET|PUT|POST|PATCH|HEAD|OPTIONS|DELETE|#"),r="$method\\s+$pathAndQuery$body?".replace("$method","(GET|PUT|POST|PATCH|HEAD|OPTIONS|DELETE)").replace("$pathAndQuery","([^\\n]+)").replace("$body",e);return new RegExp("(?:$comment|$nonComment)\\n+".replace("$comment","(#.+)").replace("$nonComment",r),"g")}function Ka(e,r){var t=f("<textarea>");f("body").append(t),t.val(e).select();var o=document.execCommand("copy");t.remove(),0==o&&(console.error(r("Couldn't automatically copy!")),console.error(e))}var wc=function(e){for(var r,t=e.consoleText,o=e.curl_host,n=e.curl_user,$=e.curl_password,a=e.isKibana,c=e.addPretty,p=vc(),l="";r=p.exec(t);){var s=r[1],g=r[2],u=r[3],i=r[4];if(s)l+=s+"\n";else{if(u=u.replace(/^\//,"").replace(/\s+$/,""),l+="HEAD"===g?"curl -I ":"curl -X "+g+" ",n&&$&&(l+="-u ".concat(n,":").concat($," ")),c&&(u+=u.includes("?")?"&pretty":"?pretty"),l+="\""+o+"/"+u+"\"",a&&(l+=" -H 'kbn-xsrf: true'"),i){l+=" -H 'Content-Type: application/json'",l+=" -d'";var h=(i=(i=i.replace(/\'/g,"\\u0027")).replace(/\s*$/,"\n")).indexOf("\"\"\"");if(h<0)l+=i;else{for(var x=0;h>=0;){var d=i.indexOf("\"\"\"",h+3);d<0&&(d=i.length()),l+=i.substring(x,h),l+="\"";var _=i.substring(h+3,d),z=(_=_.replace(/^\n+/,"")).search(/\S/);if(z>0){for(var W="^",v=0;v<z;v++)W+=" ";_=_.replace(new RegExp(W,"gm"),"")}l+=_=(_=_.replace(/\s+$/,"")).replace(/"/g,"\\\"").replace(/\n/g,"\\n"),l+="\"",x=d+3,h=i.indexOf("\"\"\"",x)}l+=i.substring(x)}l+="'"}l+="\n"}}return l};function xc(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,t=new AbortController,o=t.signal,n=new Promise(function(e,o){setTimeout(function(){t.abort(),o(new Error("Request timed out"))},r)}),$=fetch(e,{signal:o,mode:"no-cors"});return Promise.race([$,n]).then(function(e){return!0}).catch(function(r){return console.error("Console server not running or unreachable: ".concat(e)),!1})}var e,yc,q,s,La,zc,Ac,Ma,Na,Z,E,Oa,p,Bc,Cc=false;function b(e,t){var r,o,n,$,a=La;for($=arguments.length;$-->2;)s.push(arguments[$]);for(t&&null!=t.children&&(s.length||s.push(t.children),delete t.children);s.length;)if((o=s.pop())&&void 0!==o.pop)for($=o.length;$--;)s.push(o[$]);else"boolean"==typeof o&&(o=null),(n="function"!=typeof e)&&(null==o?o="":"number"==typeof o?o=String(o):"string"!=typeof o&&(n=!1)),n&&r?a[a.length-1]+=o:a===La?a=[o]:a.push(o),r=n;var p=new yc;return p.nodeName=e,p.children=a,p.attributes=null==t?void 0:t,p.key=null==t?void 0:t.key,void 0!==q.vnode&&q.vnode(p),p}function w(e,t){for(var r in t)e[r]=t[r];return e}function C(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}function Pa(e,t){return b(e.nodeName,w(w({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function Qa(e){!e._dirty&&(e._dirty=!0)&&1==Ma.push(e)&&(q.debounceRendering||zc)(_)}function _(){for(var e;e=Ma.pop();)e._dirty&&L(e)}function Dc(e,t,r){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&Ra(e,t.nodeName):r||e._componentConstructor===t.nodeName}function Ra(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function Sa(e){var t=w({},e.attributes);t.children=e.children;var r=e.nodeName.defaultProps;if(void 0!==r)for(var o in r)void 0===t[o]&&(t[o]=r[o]);return t}function Ec(e,t){var r=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return r.normalizedNodeName=e,r}function aa(e){var t=e.parentNode;t&&t.removeChild(e)}function Ta(e,t,r,o,n){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)C(r,null),C(o,e);else if("class"!==t||n){if("style"===t){if(o&&"string"!=typeof o&&"string"!=typeof r||(e.style.cssText=o||""),o&&"object"==typeof o){if("string"!=typeof r)for(var $ in r)$ in o||(e.style[$]="");for(var $ in o)e.style[$]="number"==typeof o[$]&&!1===Ac.test($)?o[$]+"px":o[$]}}else if("dangerouslySetInnerHTML"===t)o&&(e.innerHTML=o.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),o?r||e.addEventListener(t,Ua,a):e.removeEventListener(t,Ua,a),(e._listeners||(e._listeners={}))[t]=o}else if("list"!==t&&"type"!==t&&!n&&t in e){try{e[t]=null==o?"":o}catch(i){}null!=o&&!1!==o||"spellcheck"==t||e.removeAttribute(t)}else{var p=n&&t!==(t=t.replace(/^xlink:?/,""));null==o||!1===o?p?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof o&&(p?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),o):e.setAttribute(t,o))}}else e.className=o||""}function Ua(e){return this._listeners[e.type](q.event&&q.event(e)||e)}function Va(){for(var e;e=Na.shift();)q.afterMount&&q.afterMount(e),e.componentDidMount&&e.componentDidMount()}function Wa(e,t,r,o,n,$){Z++||(E=null!=n&&void 0!==n.ownerSVGElement,Oa=null!=e&&!("__preactattr_"in e));var a=Xa(e,t,r,o,$);return n&&a.parentNode!==n&&n.appendChild(a),--Z||(Oa=!1,$||Va()),a}function Xa(e,t,r,o,n){var $=e,a=E;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||n)?e.nodeValue!=t&&(e.nodeValue=t):($=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild($,e),z(e,!0))),$.__preactattr_=!0,$;var p=t.nodeName;if("function"==typeof p)return Ic(e,t,r,o);if(E="svg"===p||"foreignObject"!==p&&E,p=String(p),(!e||!Ra(e,p))&&($=Ec(p,E),e)){for(;e.firstChild;)$.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild($,e),z(e,!0)}var i=$.firstChild,s=$.__preactattr_,l=t.children;if(null==s){s=$.__preactattr_={};for(var v=$.attributes,d=v.length;d--;)s[v[d].name]=v[d].value}return!Oa&&l&&1===l.length&&"string"==typeof l[0]&&null!=i&&void 0!==i.splitText&&null==i.nextSibling?i.nodeValue!=l[0]&&(i.nodeValue=l[0]):(l&&l.length||null!=i)&&Fc($,l,r,o,Oa||null!=s.dangerouslySetInnerHTML),Gc($,t.attributes,s),E=a,$}function Fc(e,t,r,o,n){var $,a,p,i,s,l=e.childNodes,v=[],d={},c=0,k=0,T=l.length,B=0,u=t?t.length:0;if(0!==T)for(var K=0;K<T;K++){var f=l[K],m=f.__preactattr_;null!=(x=u&&m?f._component?f._component.__key:m.key:null)?(c++,d[x]=f):(m||(void 0!==f.splitText?!n||f.nodeValue.trim():n))&&(v[B++]=f)}if(0!==u)for(K=0;K<u;K++){var x;if(s=null,null!=(x=(i=t[K]).key))c&&void 0!==d[x]&&(s=d[x],d[x]=void 0,c--);else if(k<B)for($=k;$<B;$++)if(void 0!==v[$]&&Dc(a=v[$],i,n)){s=a,v[$]=void 0,$===B-1&&B--,$===k&&k++;break}s=Xa(s,i,r,o),p=l[K],s&&s!==e&&s!==p&&(null==p?e.appendChild(s):s===p.nextSibling?aa(p):e.insertBefore(s,p))}if(c)for(var K in d)void 0!==d[K]&&z(d[K],!1);for(;k<=B;)void 0!==(s=v[B--])&&z(s,!1)}function z(e,t){var r=e._component;r?M(r):(null!=e.__preactattr_&&C(e.__preactattr_.ref,null),!1!==t&&null!=e.__preactattr_||aa(e),Ya(e))}function Ya(e){for(e=e.lastChild;e;){var t=e.previousSibling;z(e,!0),e=t}}function Gc(e,t,r){var o;for(o in r)t&&null!=t[o]||null==r[o]||Ta(e,o,r[o],r[o]=void 0,E);for(o in t)"children"===o||"innerHTML"===o||o in r&&t[o]===("value"===o||"checked"===o?e[o]:r[o])||Ta(e,o,r[o],r[o]=t[o],E)}function Za(e,t,r){var o,n=p.length;for(e.prototype&&e.prototype.render?(o=new e(t,r),h.call(o,t,r)):((o=new h(t,r)).constructor=e,o.render=Hc);n--;)if(p[n].constructor===e)return o.nextBase=p[n].nextBase,p.splice(n,1),o;return o}function Hc(e,t,r){return this.constructor(e,r)}function J(e,t,r,o,n){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||n?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,o)),o&&o!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=o),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==r&&(1!==r&&!1===q.syncComponentUpdates&&e.base?Qa(e):L(e,1,n)),C(e.__ref,e))}function L(e,t,r,o){if(!e._disable){var n,$,a,p=e.props,i=e.state,s=e.context,l=e.prevProps||p,v=e.prevState||i,d=e.prevContext||s,c=e.base,k=e.nextBase,T=c||k,B=e._component,u=!1,K=d;if(e.constructor.getDerivedStateFromProps&&(i=w(w({},i),e.constructor.getDerivedStateFromProps(p,i)),e.state=i),c&&(e.props=l,e.state=v,e.context=d,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(p,i,s)?u=!0:e.componentWillUpdate&&e.componentWillUpdate(p,i,s),e.props=p,e.state=i,e.context=s),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!u){n=e.render(p,i,s),e.getChildContext&&(s=w(w({},s),e.getChildContext())),c&&e.getSnapshotBeforeUpdate&&(K=e.getSnapshotBeforeUpdate(l,v));var f,m,x=n&&n.nodeName;if("function"==typeof x){var h=Sa(n);($=B)&&$.constructor===x&&h.key==$.__key?J($,h,1,s,!1):(f=$,e._component=$=Za(x,h,s),$.nextBase=$.nextBase||k,$._parentComponent=e,J($,h,0,s,!1),L($,1,r,!0)),m=$.base}else a=T,(f=B)&&(a=e._component=null),(T||1===t)&&(a&&(a._component=null),m=Wa(a,n,s,r||!c,T&&T.parentNode,!0));if(T&&m!==T&&$!==B){var _=T.parentNode;_&&m!==_&&(_.replaceChild(m,T),f||(T._component=null,z(T,!1)))}if(f&&M(f),e.base=m,m&&!o){for(var C=e,y=e;y=y._parentComponent;)(C=y).base=m;m._component=C,m._componentConstructor=C.constructor}}for(!c||r?Na.push(e):u||(e.componentDidUpdate&&e.componentDidUpdate(l,v,K),q.afterUpdate&&q.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);Z||o||Va()}}function Ic(e,t,r,o){for(var n=e&&e._component,$=n,a=e,p=n&&e._componentConstructor===t.nodeName,i=p,s=Sa(t);n&&!i&&(n=n._parentComponent);)i=n.constructor===t.nodeName;return n&&i&&(!o||n._component)?(J(n,s,3,r,o),e=n.base):($&&!p&&(M($),e=a=null),n=Za(t.nodeName,s,r),e&&!n.nextBase&&(n.nextBase=e,a=null),J(n,s,1,r,o),e=n.base,a&&e!==a&&(a._component=null,z(a,!1))),e}function M(e){q.beforeUnmount&&q.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var r=e._component;r?M(r):t&&(null!=t.__preactattr_&&C(t.__preactattr_.ref,null),e.nextBase=t,aa(t),p.push(e),Ya(t)),C(e.__ref,null)}function h(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function ba(e,t,r){return Wa(r,e,{},!1,t,!1)}function $a(){return{}}function l(){if(Cc)return;Cc=true;e={};yc=function(){};q={};s=[];La=[];zc="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;Ac=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;Ma=[];Na=[];Z=0;E=!1;Oa=!1;p=[];w(h.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=w(w({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),Qa(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),L(this,2)},render:function(){}});Bc={h:b,createElement:b,cloneElement:Pa,createRef:$a,Component:h,render:ba,rerender:_,options:q};e.default=Bc,e.options=q,e.rerender=_,e.render=ba,e.Component=h,e.createRef=$a,e.cloneElement=Pa,e.createElement=b,e.h=b}function Jc(t,e,r,$){for($=0,e=e.split?e.split("."):e;t&&$<e.length;)t=t[e[$++]];return void 0===t?r:t}function ca(t,e,r){var $=e.split("."),a=t.__lsc||(t.__lsc={});return a[e+r]||(a[e+r]=function(e){for(var a=e&&e.target||this,l={},n=l,o="string"==typeof r?Jc(e,r):a.nodeName?a.type.match(/^che|rad/)?a.checked:a.value:e,s=0;s<$.length-1;s++)n=n[$[s]]||(n[$[s]]=!s&&t.state[$[s]]||{});n[$[s]]=o,t.setState(l)})}function N(){return(N=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r}).apply(this,arguments)}function _a(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}function da(r,e){if(null==r)return{};var t,o,n={},a=Object.keys(r);for(o=0;o<a.length;o++)t=a[o],e.indexOf(t)>=0||(n[t]=r[t]);return n}function Kc(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function ab(){}var ea,O={};!function(t,n){"object"==typeof O?n(O,(l(),e)):"function"==typeof ea&&ea.amd?ea(["exports","preact"],n):n((t=t||self).preactContext={},t.preact)}(O,function(t,n){var e={register:function(t){console.warn("Consumer used without a Provider")},unregister:function(t){},val:function(t){}};function r(t){var n=t.children;return{child:1===n.length?n[0]:null,children:n}}var o,i=window&&window.__extends||(o=function(t,n){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)},function(t,n){function e(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});function u(t){return r(t).child||"render"in t&&t.render}var c=1073741823,p=function(){return c},a=0;function s(t,o){var s="_preactContextProvider-"+a++;return{Provider:function(t){function e(n){var e=t.call(this,n)||this;return e.t=function(t,n){var e=[],r=t,o=function(t){return 0|n(r,t)};return{register:function(t){e.push(t),t(r,o(r))},unregister:function(t){e=e.filter(function(n){return n!==t})},val:function(t){if(void 0===t||t==r)return r;var n=o(t);return r=t,e.forEach(function(e){return e(t,n)}),r}}}(n.value,o||p),e}return i(e,t),e.prototype.getChildContext=function(){var t;return(t={})[s]=this.t,t},e.prototype.componentDidUpdate=function(){this.t.val(this.props.value)},e.prototype.render=function(){var t=r(this.props),e=t.child,o=t.children;return e||n.h("span",null,o)},e}(n.Component),Consumer:function(n){function r(e,r){var o=n.call(this,e,r)||this;return o.i=function(t,n){var e=o.props.unstable_observedBits,r=null==e?c:e;0!=((r|=0)&n)&&o.setState({value:t})},o.state={value:o.u().val()||t},o}return i(r,n),r.prototype.componentDidMount=function(){this.u().register(this.i)},r.prototype.shouldComponentUpdate=function(t,n){return this.state.value!==n.value||u(this.props)!==u(t)},r.prototype.componentWillUnmount=function(){this.u().unregister(this.i)},r.prototype.componentDidUpdate=function(t,n,r){var o=r[s];o!==this.context[s]&&((o||e).unregister(this.i),this.componentDidMount())},r.prototype.render=function(){var t="render"in this.props&&this.props.render,n=u(this.props);if(t&&t!==n&&console.warn("Both children and a render function are defined. Children will be used"),"function"==typeof n)return n(this.state.value);console.warn("Consumer is expecting a function as one and only child but didn't find any")},r.prototype.u=function(){return this.context[s]||e},r}(n.Component)}}var f=s;t.default=s,t.createContext=f,Object.defineProperty(t,"__esModule",{value:!0})});function Lc(e){var o,r=e.Symbol;return"function"==typeof r?r.observable?o=r.observable:(o=r("observable"),r.observable=o):o="@@observable",o}var Mc=function(){var e,l={exports:this};this.__esModule=!0,e="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof r?r:void 0!==l?l:Function("return this")();var o=Lc(e);return this.default=o,l.exports}.call({});var fa=function(){return Math.random().toString(36).substring(7).split("").join(".")},F={INIT:"@@redux/INIT"+fa(),REPLACE:"@@redux/REPLACE"+fa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fa()}};function Nc(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function bb(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(bb)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=t,a=[],c=a,u=!1;function s(){c===a&&(c=a.slice())}function d(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function p(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return s(),c.push(e),function(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,s();var r=c.indexOf(e);c.splice(r,1)}}}function f(e){if(!Nc(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error("Actions may not have an undefined \"type\" property. Have you misspelled a constant?");if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,i=o(i,e)}finally{u=!1}for(var t=a=c,r=0;r<t.length;r++){(0,t[r])()}return e}var $G8e$$interop$default=qa(Mc);return f({type:F.INIT}),(n={dispatch:f,subscribe:p,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,f({type:F.REPLACE})}})[$G8e$$interop$default.d]=function(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(d())}return r(),{unsubscribe:t(r)}}})[$G8e$$interop$default.d]=function(){return this},e},n}function Oc(e,t){var r=t&&t.type;return"Given "+(r&&"action \""+String(r)+"\""||"an action")+", reducer \""+e+"\" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined."}function Pc(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:F.INIT}))throw new Error("Reducer \""+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===r(void 0,{type:F.PROBE_UNKNOWN_ACTION()}))throw new Error("Reducer \""+t+"\" returned undefined when probed with a random type. Don't try to handle "+F.INIT+" or other actions in \"redux/*\" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function Qc(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];0,"function"==typeof e[o]&&(r[o]=e[o])}var i,a=Object.keys(r);try{Pc(r)}catch(c){i=c}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var n=!1,o={},c=0;c<a.length;c++){var u=a[c],s=r[u],d=e[u],p=s(d,t);if(void 0===p){var f=Oc(u,t);throw new Error(f)}o[u]=p,n=n||p!==d}return n?o:e}}function cb(e,t){return function(){return t(e.apply(this,arguments))}}function Rc(e,t){if("function"==typeof e)return cb(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+". Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");var r={};for(var n in e){var o=e[n];"function"==typeof o&&(r[n]=cb(o,t))}return r}function Sc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function db(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r}function Tc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?db(r,!0).forEach(function(t){Sc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):db(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Uc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function Vc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map(function(e){return e(o)});return Tc({},r,{dispatch:n=Uc.apply(void 0,i)(r.dispatch)})}}}l();var y={createContext:O.createContext,forwardRef:ab,createElement:b},eb=y.createContext(null),Wc=function(r){function e(e){var t;t=r.call(this,e)||this;var o=e.store;return t.state={storeState:o.getState(),store:o},t}_a(e,r);var t=e.prototype;return t.componentDidMount=function(){this._isMounted=!0,this.subscribe()},t.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe(),this._isMounted=!1},t.componentDidUpdate=function(r){this.props.store!==r.store&&(this.unsubscribe&&this.unsubscribe(),this.subscribe())},t.subscribe=function(){var r=this,e=this.props.store;this.unsubscribe=e.subscribe(function(){var t=e.getState();r._isMounted&&r.setState(function(r){return r.storeState===t?null:{storeState:t}})});var t=e.getState();t!==this.state.storeState&&this.setState({storeState:t})},t.render=function(){var r=this.props.context||eb;return y.createElement(r.Provider,{value:this.state},this.props.children)},e}(h);function Xc(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function fb(r,e){return r(e={exports:{}},e.exports),e.exports}var a=fb(function(r,e){Object.defineProperty(e,"__esModule",{value:!0});var t=60103,o=60106,n=60107,a=60108,$=60114,i=60109,s=60110,d=60111,c=60111,p=60112,u=60113,v=60115,Y=60116;function f(r){if("object"==typeof r&&null!==r){var e=r.$$typeof;switch(e){case t:switch(r=r.type){case d:case c:case n:case $:case a:case u:return r;default:switch(r=r&&r.$$typeof){case s:case p:case i:return r;default:return e;}}case Y:case v:case o:return e;}}}function _(r){return f(r)===c}e.typeOf=f,e.AsyncMode=d,e.ConcurrentMode=c,e.ContextConsumer=s,e.ContextProvider=i,e.Element=t,e.ForwardRef=p,e.Fragment=n,e.Lazy=Y,e.Memo=v,e.Portal=o,e.Profiler=$,e.StrictMode=a,e.Suspense=u,e.isValidElementType=function(r){return"string"==typeof r||"function"==typeof r||r===n||r===c||r===$||r===a||r===u||"object"==typeof r&&null!==r&&(r.$$typeof===Y||r.$$typeof===v||r.$$typeof===i||r.$$typeof===s||r.$$typeof===p)},e.isAsyncMode=function(r){return _(r)||f(r)===d},e.isConcurrentMode=_,e.isContextConsumer=function(r){return f(r)===s},e.isContextProvider=function(r){return f(r)===i},e.isElement=function(r){return"object"==typeof r&&null!==r&&r.$$typeof===t},e.isForwardRef=function(r){return f(r)===p},e.isFragment=function(r){return f(r)===n},e.isLazy=function(r){return f(r)===Y},e.isMemo=function(r){return f(r)===v},e.isPortal=function(r){return f(r)===o},e.isProfiler=function(r){return f(r)===$},e.isStrictMode=function(r){return f(r)===a},e.isSuspense=function(r){return f(r)===u}});Xc(a);var $=a.typeOf,Qe=a.AsyncMode,Re=a.ConcurrentMode,Se=a.ContextConsumer,Te=a.ContextProvider,Ue=a.Element,Ve=a.ForwardRef,We=a.Fragment,Xe=a.Lazy,Ye=a.Memo,Ze=a.Portal,$e=a.Profiler,_e=a.StrictMode,af=a.Suspense,bf=a.isValidElementType,cf=a.isAsyncMode,df=a.isConcurrentMode,ef=a.isContextConsumer,ff=a.isContextProvider,gf=a.isElement,hf=a.isForwardRef,jf=a.isFragment,kf=a.isLazy,lf=a.isMemo,mf=a.isPortal,nf=a.isProfiler,of=a.isStrictMode,pf=a.isSuspense,t=fb(function(r){r.exports=a}),qf=t.isValidElementType,Yc=t.isContextConsumer,Zc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$c={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_c={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ad={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gb={};function hb(r){return t.isMemo(r)?ad:gb[r.$$typeof]||Zc}gb[t.ForwardRef]=_c;var bd=Object.defineProperty,cd=Object.getOwnPropertyNames,ib=Object.getOwnPropertySymbols,dd=Object.getOwnPropertyDescriptor,ed=Object.getPrototypeOf,jb=Object.prototype;function kb(r,e,t){if("string"!=typeof e){if(jb){var o=ed(e);o&&o!==jb&&kb(r,o,t)}var n=cd(e);ib&&(n=n.concat(ib(e)));for(var a=hb(r),$=hb(e),i=0;i<n.length;++i){var s=n[i];if(!($c[s]||t&&t[s]||$&&$[s]||a&&a[s])){var d=dd(e,s);try{bd(r,s,d)}catch(c){}}}return r}return r}var lb=kb;function fd(r,e){var t=void 0===e?{}:e,o=t.getDisplayName,n=void 0===o?function(r){return"ConnectAdvanced("+r+")"}:o,a=t.methodName,$=void 0===a?"connectAdvanced":a,i=t.renderCountProp,s=void 0===i?void 0:i,d=t.shouldHandleStateChanges,c=void 0===d||d,p=t.storeKey,u=void 0===p?"store":p,v=(t.withRef,t.forwardRef),Y=void 0!==v&&v,f=t.context,_=void 0===f?eb:f,l=da(t,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),m="To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect",P=_;return function(e){var t=e.displayName||e.name||"Component",o=n(t),a=N({},l,{getDisplayName:n,methodName:$,renderCountProp:s,shouldHandleStateChanges:c,storeKey:u,displayName:o,wrappedComponentName:t,WrappedComponent:e}),i=l.pure,d=h;i&&(d=h);var p=function(t){function o(e){var o,n,a,$,s,d,c,p,v,f,_;return o=t.call(this,e)||this,ab(Y?!e.wrapperProps[u]:!e[u],"Passing redux store in props has been removed and does not do anything. "+m),o.selectDerivedProps=function(e,t,o,p){if(i&&n===t&&a===e)return $;o===s&&d===p||(s=o,d=p,c=r(o.dispatch,p)),n=t,a=e;var u=c(e,t);return $=u},o.selectChildElement=function(r,e,t){return e===p&&t===v&&_===r||(p=e,v=t,_=r,f=y.createElement(r,N({},e,{ref:t}))),f},o.indirectRenderWrappedComponent=o.indirectRenderWrappedComponent.bind(Kc(o)),o}_a(o,t);var n=o.prototype;return n.indirectRenderWrappedComponent=function(r){return this.renderWrappedComponent(r)},n.renderWrappedComponent=function(r){var t,o=r.storeState,n=r.store,$=this.props;Y&&($=this.props.wrapperProps,t=this.props.forwardedRef);var i=this.selectDerivedProps(o,$,n,a);return this.selectChildElement(e,i,t)},n.render=function(){var r=this.props.context&&this.props.context.Consumer&&Yc(y.createElement(this.props.context.Consumer,null))?this.props.context:P;return y.createElement(r.Consumer,null,this.indirectRenderWrappedComponent)},o}(d);if(p.WrappedComponent=e,p.displayName=o,Y){var v=y.forwardRef(function(r,e){return y.createElement(p,{wrapperProps:r,forwardedRef:e})});return v.displayName=o,v.WrappedComponent=e,lb(v,e)}return lb(p,e)}}var gd=Object.prototype.hasOwnProperty;function mb(r,e){return r===e?0!==r||0!==e||1/r==1/e:r!=r&&e!=e}function ga(r,e){if(mb(r,e))return!0;if("object"!=typeof r||null===r||"object"!=typeof e||null===e)return!1;var t=Object.keys(r),o=Object.keys(e);if(t.length!==o.length)return!1;for(var n=0;n<t.length;n++)if(!gd.call(e,t[n])||!mb(r[t[n]],e[t[n]]))return!1;return!0}function ha(r){return function(e,t){var o=r(e,t);function n(){return o}return n.dependsOnOwnProps=!1,n}}function nb(r){return null!==r.dependsOnOwnProps&&void 0!==r.dependsOnOwnProps?Boolean(r.dependsOnOwnProps):1!==r.length}function ob(r,e){return function(e,t){t.displayName;var o=function(r,e){return o.dependsOnOwnProps?o.mapToProps(r,e):o.mapToProps(r)};return o.dependsOnOwnProps=!0,o.mapToProps=function(e,t){o.mapToProps=r,o.dependsOnOwnProps=nb(r);var n=o(e,t);return"function"==typeof n&&(o.mapToProps=n,o.dependsOnOwnProps=nb(n),n=o(e,t)),n},o}}function hd(r){return"function"==typeof r?ob(r,"mapDispatchToProps"):void 0}function id(r){return r?void 0:ha(function(r){return{dispatch:r}})}function jd(r){return r&&"object"==typeof r?ha(function(e){return Rc(r,e)}):void 0}var kd=[hd,id,jd];function ld(r){return"function"==typeof r?ob(r,"mapStateToProps"):void 0}function md(r){return r?void 0:ha(function(){return{}})}var nd=[ld,md];function od(r,e,t){return N({},t,r,e)}function pd(r){return function(e,t){t.displayName;var o,n=t.pure,a=t.areMergedPropsEqual,$=!1;return function(e,t,i){var s=r(e,t,i);return $?n&&a(s,o)||(o=s):($=!0,o=s),o}}}function qd(r){return"function"==typeof r?pd(r):void 0}function rd(r){return r?void 0:function(){return od}}var sd=[qd,rd];function td(r,e,t,o){return function(n,a){return t(r(n,a),e(o,a),a)}}function ud(r,e,t,o,n){var a,$,i,s,d,c=n.areStatesEqual,p=n.areOwnPropsEqual,u=n.areStatePropsEqual,v=!1;function Y(n,v){var Y,f,_=!p(v,$),l=!c(n,a);return a=n,$=v,_&&l?(i=r(a,$),e.dependsOnOwnProps&&(s=e(o,$)),d=t(i,s,$)):_?(r.dependsOnOwnProps&&(i=r(a,$)),e.dependsOnOwnProps&&(s=e(o,$)),d=t(i,s,$)):l?(Y=r(a,$),f=!u(Y,i),i=Y,f&&(d=t(i,s,$)),d):d}return function(n,c){return v?Y(n,c):(i=r(a=n,$=c),s=e(o,$),d=t(i,s,$),v=!0,d)}}function vd(r,e){var t=e.initMapStateToProps,o=e.initMapDispatchToProps,n=e.initMergeProps,a=da(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),$=t(r,a),i=o(r,a),s=n(r,a);return(a.pure?ud:td)($,i,s,r,a)}function ia(r,e,t){for(var o=e.length-1;o>=0;o--){var n=e[o](r);if(n)return n}return function(e,o){throw new Error("Invalid value of type "+typeof r+" for "+t+" argument when connecting component "+o.wrappedComponentName+".")}}function wd(r,e){return r===e}function xd(r){var e=void 0===r?{}:r,t=e.connectHOC,o=void 0===t?fd:t,n=e.mapStateToPropsFactories,a=void 0===n?nd:n,$=e.mapDispatchToPropsFactories,i=void 0===$?kd:$,s=e.mergePropsFactories,d=void 0===s?sd:s,c=e.selectorFactory,p=void 0===c?vd:c;return function(r,e,t,n){var $=void 0===n?{}:n,s=$.pure,c=void 0===s||s,u=$.areStatesEqual,v=void 0===u?wd:u,Y=$.areOwnPropsEqual,f=void 0===Y?ga:Y,_=$.areStatePropsEqual,l=void 0===_?ga:_,m=$.areMergedPropsEqual,P=void 0===m?ga:m,h=da($,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),y=ia(r,a,"mapStateToProps"),I=ia(e,i,"mapDispatchToProps"),w=ia(t,d,"mergeProps");return o(p,N({methodName:"connect",getDisplayName:function(r){return"Connect("+r+")"},shouldHandleStateChanges:Boolean(r),initMapStateToProps:y,initMapDispatchToProps:I,initMergeProps:w,pure:c,areStatesEqual:v,areOwnPropsEqual:f,areStatePropsEqual:l,areMergedPropsEqual:P},h))}}var o=xd();var pb={isOpen:!1,Component:null,props:null},qb="SET_MODAL_VALUE",rb=function(e){var $=e.isOpen,o=e.Component,r=e.props;return{type:qb,isOpen:$,Component:o,props:r}};var yd=function(e,$){return rb({isOpen:!0,Component:e,props:$})};var sb=function(){return rb({isOpen:!1})};var zd=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pb,$=arguments.length>1?arguments[1]:void 0;switch($.type){case qb:return $.isOpen?hc("type",$):pb;default:return e;}};function Ad(r,e){return Dd(r)||Cd(r,e)||Bd()}function Bd(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function Cd(r,e){var t=[],$=!0,o=!1,a=void 0;try{for(var i,n=r[Symbol.iterator]();!($=(i=n.next()).done)&&(t.push(i.value),!e||t.length!==e);$=!0);}catch(d){o=!0,a=d}finally{try{$||null==n.return||n.return()}finally{if(o)throw a}}return t}function Dd(r){if(Array.isArray(r))return r}var tb="SAVE_SETTING",Ed=ic(function(r){var e=Ad(r,2),t=e[0],$=e[1];return Ia.d.set(t,$)});var Fd=function(r){return function(e){return function(t){var $=H(["console_curl_password","kibana_curl_password","sense_curl_password","alternativeChangeSource"],e);return r(lc($)),t(sb()),t({type:tb,settings:e})}}};var P=Fd(Ed);var Gd={},Hd=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gd,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case tb:return X(r,e.settings);default:return r;}};function Id(e){return(Id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ub(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Kd(e,t,r){return t&&ub(e.prototype,t),r&&ub(e,r),e}function Ld(e,t){return!t||"object"!==Id(t)&&"function"!=typeof t?vb(e):t}function Md(e){return(Md=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nd(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Od(e,t)}function Od(e,t){return(Od=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}l();var wb=function(e){switch(e){case"csharp":return"C#";case"js":return"JavaScript";case"php":return"PHP";default:return e.charAt(0).toUpperCase()+e.slice(1);}},ja=function(e){var t=e.name,r=e.disabled;return b("option",{value:t,disabled:r},wb(t))},Pd=function(e){function t(e){var r;return Jd(this,t),(r=Ld(this,Md(t).call(this,e))).state={tooltipVisible:!1},r.toggleWarning=r.toggleWarning.bind(vb(r)),r}return Nd(t,h),Kd(t,[{key:"toggleWarning",value:function(e){this.setState({tooltipVisible:e})}},{key:"render",value:function(){var e=this,t=this.props,r=t.alternatives,a=t.consoleAlternative,o=t.saveSettings;if(!r)return b("div",null);var n=r.console;if(!n)return b("div",null);var i=[],$="console"===a;i.push(b(ja,{name:"console"}));for(var s=0,l=Object.keys(n);s<l.length;s++){var c=l[s];$|=c===a;var p=!!this.props.langs&&!this.props.langs.includes(c);i.push(b(ja,{name:c,disabled:p}))}return $||i.push(b(ja,{name:a})),b("div",{className:"AlternativePicker u-space-between"},b("select",{className:"AlternativePicker-select",value:a,onChange:function(e){o({consoleAlternative:e.target.value,alternativeChangeSource:e.target})}},i),b("div",{className:"AlternativePicker-warning",onMouseOver:function(){return e.toggleWarning(!0)},onMouseOut:function(){return e.toggleWarning(!1)}}),this.state.tooltipVisible?b("div",{className:"AlternativePicker-tooltip-wrapper"},b("div",{className:"AlternativePicker-tooltip",role:"tooltip"},b("div",{className:"arrow"}),b("div",null,"No ",wb(a)," version available for this example"))):null)}}]),t}();var Qd=o(function(e){return X(I(["consoleAlternative"],e.settings),{alternatives:e.alternatives})},{saveSettings:P})(Pd);l();var Rd=function(t){var e=t.setting,r=t.consoleText,o=t.isKibana,n=t.addPretty;return function(t,a){var $=a(),i=$.settings.langStrings,s={curl_host:V(e+"_curl_host",$.settings),curl_user:V(e+"_curl_user",$.settings),curl_password:V(e+"_curl_password",$.settings)},l=wc(X(s,{consoleText:r,isKibana:o,addPretty:n}));return Ka(l,i)}},Sd=function(t){function e(){return Ba(this,e),Ea(this,Fa(e).apply(this,arguments))}return Ga(e,h),Da(e,[{key:"componentWillMount",value:function(){var t=H(["langStrings","saveSettings","url_label","setting"],this.props);this.setState(t)}},{key:"render",value:function(t,e){var r=this,o=function(r){return e["".concat(t.setting,"_").concat(r)]},n=function(e){return"".concat(t.setting,"_").concat(e)};return b("form",null,b("p",null,b("strong",null,"Dev Tools Console settings")),b("label",{for:"url"},t.langStrings(t.url_label)),b("input",{id:"url",type:"text",value:o("url"),onInput:ca(this,n("url"))}),b("p",null,"Learn more about the Dev Tools\xA0",b("a",{href:"https://www.elastic.co/guide/en/kibana/current/console-kibana.html"},"Console"),"."),b("p",null,b("strong",null,"curl settings (basic auth)")),b("label",{for:"curl_host"},"Elasticsearch ",t.langStrings("host")),b("input",{id:"curl_host",type:"text",value:o("curl_host"),onInput:ca(this,n("curl_host"))}),b("label",{for:"curl_username"},"Elasticsearch ",t.langStrings("username")),b("input",{id:"curl_username",type:"text",value:o("curl_user"),onInput:ca(this,n("curl_user"))}),b("button",{id:"save_url",type:"button",onClick:function(e){return t.saveSettings(r.state)}},t.langStrings("Save")),b("button",{id:"reset",onClick:function(e){return r.setState(H(["langStrings","saveSettings","url_label","setting"],t))},type:"button"},"Reset"),b("p",{className:"console_help_text"},t.langStrings("For information on how to set up and run"),"sense_url"===t.setting?b("span",null,"\xA0the Sense 2 ",t.langStrings("editor")," check\xA0",b("a",{href:"https://www.elastic.co/guide/en/sense/current/installing.html"},"Installing Sense")):b("span",null,"\xA0Kibana, refer to\xA0",b("a",{href:"https://www.elastic.co/guide/en/kibana/master/setup.html"},"Set up")),t.langStrings(".")))}}]),e}();var Td=function(t){function e(){return Ba(this,e),Ea(this,Fa(e).apply(this,arguments))}return Ga(e,h),Da(e,[{key:"componentWillMount",value:function(){var t=H(["langStrings","saveSettings","url_label","setting"],this.props);this.setState(t)}},{key:"render",value:function(t){return b("div",{className:"try_console_selector"},b("h4",null,"Try code examples in Elastic"),b("p",null,"To run code examples in your Dev Tools Console, add your Console URL to\xA0",b("a",{id:"try_console_selector_configure_example_widget_button",href:"#",onClick:function(e){e.preventDefault(),t.settingsModalAction()}},"the settings"),"."),b("p",null,b("em",null,"New to Elastic?")),b("div",{className:"try_console_new_to_elastic_buttons"},b("a",{id:"try_console_selector_try_cloud_button",className:"button btn-primary btn-small",href:"https://cloud.elastic.co/registration",target:"_blank"},"Start free Cloud trial"),b("p",null,b("a",{href:"https://www.elastic.co/guide/en/elasticsearch/reference/current/run-elasticsearch-locally.html",target:"_blank"},"Install locally"))))}}]),e}();var Ud=o(function(t,e){return I(["langStrings","".concat(e.setting,"_url"),"".concat(e.setting,"_curl_host"),"".concat(e.setting,"_curl_user"),"".concat(e.setting,"_curl_password")],t.settings)},{saveSettings:P})(Sd);var Vd=o(function(t,e){return I(["langStrings","".concat(e.setting,"_url"),"".concat(e.setting,"_curl_host"),"".concat(e.setting,"_curl_user"),"".concat(e.setting,"_curl_password")],t.settings)},{saveSettings:P})(Td);var Wd=function(t){var e=function(){return t.openModal(Ud,{setting:t.setting,url_label:t.url_label})},r=function(){return t.openModal(Vd,{settingsModalAction:e})};return b("div",{className:"u-space-between"},b(Qd,{langs:t.langs}),b("div",{className:"u-space-between"},b("a",{className:"sense_widget copy_as_curl",onClick:function(e){return t.copyAsCurl(http://github.com/%7BisKibana:t.isKibana,consoleText:t.consoleText,setting:t.setting,addPretty:t.addPretty%7D)}},t.langStrings("Copy as curl")),t.view_in_text&&b("a",{className:"view_in_link",target:"console",onClick:function(t){return function(t){t.preventDefault();var e=t.target;xc(e.href).then(function(t){t?window.open(e.href):r()}).catch(function(t){r()})}(t)},title:t.langStrings(t.view_in_text),href:"".concat(t[t.setting+"_url"],"?load_from=").concat(t.baseUrl).concat(t.snippet)},t.langStrings(t.view_in_text)),b("a",{className:"console_settings",onClick:e,title:t.langStrings(t.configure_text)},"\xA0")))};var G=o(function(t,e){return I(["langStrings","baseUrl","".concat(e.setting,"_url")],t.settings)},{copyAsCurl:Rd,openModal:yd,saveSettings:P})(Wd);function Xd(e){return(Xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xb(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Zd(e,t,r){return t&&xb(e.prototype,t),r&&xb(e,r),e}function $d(e,t){return!t||"object"!==Xd(t)&&"function"!=typeof t?Q(e):t}function _d(e){return(_d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ae(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&be(e,t)}function be(e,t){return(be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}l();var ce="https://docs.elastic.co/api/feedback",yb=1e3,de=function(e){function t(e){var r;return Yd(this,t),(r=$d(this,_d(t).call(this,e))).state={comment:"",modalClosed:!1,isLoading:!1,hasError:!1},r.onEscape=r.onEscape.bind(Q(r)),r.resetState=r.resetState.bind(Q(r)),r.submitFeedback=r.submitFeedback.bind(Q(r)),r}return ae(t,h),Zd(t,[{key:"onEscape",value:function(e){"Escape"===e.key&&this.resetState()}},{key:"resetState",value:function(){this.setState({modalClosed:!0}),document.querySelectorAll(".isPressed").forEach(function(e){e.classList.remove("isPressed")})}},{key:"submitFeedback",value:function(){var e=this;this.setState({isLoading:!0}),fetch(ce,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({comment:this.state.comment,feedback:this.props.isLiked?"liked":"disliked",url:window.location.href})}).then(function(e){return e.json()}).then(function(){e.setState({modalClosed:!0}),document.getElementById("feedbackSuccess").classList.remove("hidden"),document.querySelectorAll(".feedbackButton").forEach(function(e){e.disabled=!0})}).catch(function(t){e.setState({isLoading:!1,hasError:!0}),console.error("Error:",t)})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.onEscape,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onEscape,!1)}},{key:"render",value:function(e,t){var r=this,o=e.isLiked,a=t.modalClosed,i=t.isLoading,n=t.hasError,s=t.comment,$=s.length>yb,l=i||$;return a?null:b("div",{"data-relative-to-header":"above",id:"feedbackModal"},b("div",{"data-focus-guard":"true",tabindex:"0",style:"width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;"}),b("div",{"data-focus-lock-disabled":"false"},b("div",{className:"feedbackModalContent",tabindex:"0"},b("button",{className:"closeIcon",type:"button","aria-label":"Closes this modal window",onClick:this.resetState,disabled:i},b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",role:"img","data-icon-type":"cross","data-is-loaded":"true","aria-hidden":"true"},b("path",{d:"M7.293 8 3.146 3.854a.5.5 0 1 1 .708-.708L8 7.293l4.146-4.147a.5.5 0 0 1 .708.708L8.707 8l4.147 4.146a.5.5 0 0 1-.708.708L8 8.707l-4.146 4.147a.5.5 0 0 1-.708-.708L7.293 8Z"}))),b("div",{className:"feedbackModalHeader"},b("h2",null,"Send us your feedback")),b("div",{className:"feedbackModalBody"},b("div",{className:"feedbackModalBodyOverflow"},b("div",null,"Thank you for helping us improve Elastic documentation."),b("div",{className:"spacer"}),b("div",{className:"feedbackForm"},b("div",{className:"feedbackFormRow"},b("div",{className:"feedbackFormRow__labelWrapper"},b("label",{className:"feedbackFormLabel",id:"feedbackLabel",for:"feedbackComment"},"Additional comment (optional)")),b("div",{className:"feedbackFormRow__fieldWrapper"},b("div",{className:"feedbackFormControlLayout"},b("div",{className:"feedbackFormControlLayout__childrenWrapper"},b("textarea",{className:"feedbackTextArea",rows:"6",id:"feedbackComment",disabled:i,onKeyUp:function(e){return r.setState({comment:e.target.value})}}),$&&b("div",{className:"feedbackFormError"},"Max comment length of ",yb," ","characters reached.",b("br",null),b("br",null),"Character count: ",s.length),n&&b("div",{className:"feedbackFormError"},"There was a problem submitting your feedback.",b("br",null),b("br",null),"Please try again.")))))))),b("div",{className:"feedbackModalFooter ".concat(i?"loading":"")},b("button",{className:"feedbackButton cancelButton",type:"button",onClick:this.resetState,disabled:i},b("span",{className:"feedbackButtonContent"},b("span",null,"Cancel"))),b("button",{type:"button",disabled:l,className:"feedbackButton sendButton ".concat(o?"like":"dislike"),onClick:this.submitFeedback},b("span",{className:"loadingContent"},b("span",{class:"loadingSpinner",role:"progressbar","aria-label":"Loading",style:"border-color: rgb(0, 119, 204) currentcolor currentcolor;"}),b("span",null,"Sending...")),b("span",{className:"feedbackButtonContent"},b("span",null,"Send"),b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:"sendIcon like",role:"img","aria-hidden":"true"},b("path",{d:"M9 21h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2c0-1.1-.9-2-2-2h-6.31l.95-4.57l.03-.32c0-.41-.17-.79-.44-1.06L14.17 1L7.58 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2zM9 9l4.34-4.34L12 10h9v2l-3 7H9V9zM1 9h4v12H1z"})),b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:"sendIcon dislike",role:"img","aria-hidden":"true"},b("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57l-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm0 12l-4.34 4.34L12 14H3v-2l3-7h9v10zm4-12h4v12h-4z"}))))))),b("div",{"data-focus-guard":"true",tabindex:"0",style:"width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;"}))}}]),t}();function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zb(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ge(e,t,o){return t&&zb(e.prototype,t),o&&zb(e,o),e}function he(e,t){return!t||"object"!==ee(t)&&"function"!=typeof t?ie(e):t}function ie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function je(e){return(je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ke(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&le(e,t)}function le(e,t){return(le=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}l();var me=function(e){function t(){return fe(this,t),he(this,je(t).apply(this,arguments))}return ke(t,h),ge(t,[{key:"render",value:function(){return b("div",null,b("div",{id:"feedbackWidget"},"Was this helpful?",b("span",{className:"docHorizontalSpacer"}),b("fieldset",{className:"buttonGroup"},b("legend",{className:"screenReaderOnly"},"Feedback"),b("div",{className:"buttonGroup"},b("button",{"aria-pressed":"false",id:"feedbackLiked",type:"button",className:"feedbackButton feedbackLiked",title:"Like"},b("span",{className:"feedbackButtonContent"},b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:"feedbackIcon unpressed",role:"img","aria-hidden":"true"},b("path",{d:"M9 21h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2c0-1.1-.9-2-2-2h-6.31l.95-4.57l.03-.32c0-.41-.17-.79-.44-1.06L14.17 1L7.58 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2zM9 9l4.34-4.34L12 10h9v2l-3 7H9V9zM1 9h4v12H1z"})),b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:"feedbackIcon pressed",role:"img","data-is-loaded":"true","aria-hidden":"true"},b("path",{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57l.03-.32c0-.41-.17-.79-.44-1.06L14.17 1L7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"})),b("span",{className:"screenReaderOnly","data-text":"Like"},"Like"))),b("button",{"aria-pressed":"false",id:"feedbackDisliked",type:"button",className:"feedbackButton feedbackDisliked",title:"Dislike"},b("span",{className:"feedbackButtonContent"},b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:"feedbackIcon unpressed",role:"img","aria-hidden":"true"},b("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57l-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm0 12l-4.34 4.34L12 14H3v-2l3-7h9v10zm4-12h4v12h-4z"})),b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",className:"feedbackIcon pressed",role:"img","data-is-loaded":"true","aria-hidden":"true"},b("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57l-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"})),b("span",{className:"screenReaderOnly","data-text":"Dislike"},"Dislike")))))),b("div",{id:"feedbackSuccess",className:"hidden"},"Thank you for your feedback."))}}]),t}();function Ab(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,o)}return t}function ne(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Ab(t,!0).forEach(function(r){oe(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ab(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function oe(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}l();var pe=function(e){var r=e.Component,t=e.props,o=e.isOpen,i=e.closeModal;return o&&b("div",{id:"settings_modal_bg"},b("div",{id:"settings_modal"},b("div",{className:"settings_modal-close",onClick:i},"\xD7"),b(r,t)))};var qe=o(function(e){return ne({},e.modal)},{closeModal:sb})(pe);function Bb(e){return function(t){var r=t.dispatch,$=t.getState;return function(t){return function(a){return"function"==typeof a?a(r,$,e):t(a)}}}}var Cb=Bb();Cb.withExtraArgument=Bb;var re=Qc({alternatives:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;arguments.length>1&&arguments[1];return e},settings:Hd,modal:zd});var se=function(r){return bb(re,r,Vc(Cb))};var ka=function(r){return window.__reduxStore||(window.__reduxStore=se(r)),window.__reduxStore};l();var te=function(r){var e=r.el,$=r.Component,o=r.props,t=void 0===o?{}:o,u=r.store;return ba(b(Wc,{store:u},b($,t)),e)};var v=function(r,e){var $=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return te({el:r[0],Component:e,props:$,store:ka()})};var ue=function(){document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll("[role=\"tab\"]"),t=document.querySelector("[role=\"tablist\"]");e.forEach(function(e){e.addEventListener("click",we)});var r=0;t.addEventListener("keydown",function(t){39!==t.keyCode&&37!==t.keyCode||(e[r].setAttribute("tabindex",-1),39===t.keyCode?++r>=e.length&&(r=0):37===t.keyCode&&--r<0&&(r=e.length-1),e[r].setAttribute("tabindex",0),e[r].focus())})})};var ve=function(e){var t=e.parentNode,r=t.parentNode;t.querySelectorAll("[aria-selected=\"true\"]").forEach(function(e){return e.setAttribute("aria-selected",!1)}),e.setAttribute("aria-selected",!0),r.querySelectorAll("[role=\"tabpanel\"]").forEach(function(e){return e.setAttribute("hidden",!0)}),r.parentNode.querySelector("#".concat(e.getAttribute("aria-controls"))).removeAttribute("hidden")},we=function(e){var t=e.target.parentNode,r=Array.apply(null,t.querySelectorAll("button")),a=r.reduce(function(t,a){var n=t.found,o=t.index;return n||r[o]!==e.target?n?{found:n,index:o}:{found:n,index:o+1}:{found:!0,index:o}},{found:!1,index:0}).index,n=t.parentNode.dataset.tabGroup;document.querySelectorAll("[data-tab-group="+n+"]").forEach(function(e){var t=e.querySelectorAll("button")[a];ve(t)})};var xe={"Configure Console URL":{zh_cn:"\u914D\u7F6E Console URL"},"Configure Sense URL":{zh_cn:"\u914D\u7F6E Sense URL"},"Configure Kibana URL":{zh_cn:"\u914D\u7F6E Kibana URL"},"Configure the Elasticsearch Service endpoint URL":{zh_cn:"\u914D\u7F6E Elastic Cloud endpoint URL"},"Configure the Elastic Cloud Enterprise endpoint URL":{zh_cn:"\u914D\u7F6E Elastic Cloud Enterprise endpoint URL"},"Copy as curl":{zh_cn:"\u62F7\u8D1D\u4E3A curl"},"Couldn't automatically copy!":{zh_cn:"\u65E0\u6CD5\u81EA\u52A8\u62F7\u8D1D!"},"Default Console URL":{zh_cn:"\u9ED8\u8BA4 Console URL"},"Default Sense URL":{zh_cn:"\u9ED8\u8BA4 Sense URL"},"Default Kibana URL":{zh_cn:"\u9ED8\u8BA4 Kibana URL"},"Console URL":{zh_cn:"Console URL"},"Sense URL":{zh_cn:"Sense URL"},"For information on how to set up and run":{zh_cn:"\u6709\u5173\u5982\u4F55\u8BBE\u7F6E\u548C\u8FD0\u884C\u7684\u4FE1\u606F"},"Enter the URL of Kibana":{zh_cn:"\u8F93\u5165 Kibana \u7684 URL"},"On this page":{zh_cn:"\u672C\u9875\u5BFC\u822A"},"Open snippet in Console":{zh_cn:"\u5728 Console \u4E2D\u6253\u5F00\u4EE3\u7801\u7247\u6BB5"},"Open snippet in Sense":{zh_cn:"\u5728 Sense \u4E2D\u6253\u5F00\u4EE3\u7801\u7247\u6BB5"},"Or install":{en:"Or install ",zh_cn:"\u6216\u5B89\u88C5 "},".":{zh_cn:"\u3002"},editor:{zh_cn:"\u7F16\u8F91\u5668"},host:{zh_cn:"\u4E3B\u529E"},username:{zh_cn:"\u7528\u6237\u540D"},password:{zh_cn:"\u5BC6\u7801"},Save:{zh_cn:"\u4FDD\u5B58"},"This page is not available in the docs for version:":{zh_cn:"\u5F53\u524D\u9875\u5728\u8FD9\u4E9B\u7248\u672C\u7684\u6587\u6863\u4E2D\u4E0D\u53EF\u7528\uFF1A"},"View in Sense":{zh_cn:"\u5728 Sense \u4E2D\u67E5\u770B"},"Try in Elastic":{zh_cn:"\u5728 Elastic \u4E2D\u5C1D\u8BD5"},curl_pw_title:{en:"The password is stored in memory and will be reset after a page reload",zh_cn:"\u5BC6\u7801\u5B58\u50A8\u5728\u5185\u5B58\u4E2D\uFF0C\u5E76\u5728\u9875\u9762\u91CD\u65B0\u52A0\u8F7D\u540E\u91CD\u7F6E"}};var Db=function(n){return function(e){var o=xe[e];if(!o)throw new Error("Unable to find '".concat(e,"' in the language spec"));var a=o[n];if("en"===n&&!a)return e;if(a)return a;throw new Error("Unable to find translation entry in '".concat(e,"' for language '").concat(n,"'"))}};var rf,sf,tf,uf,vf,Eb=!0,ye=!0;"undefined"!=typeof window&&(window.PR_SHOULD_USE_CONTINUATION=ye);var A="undefined"!=typeof window?window:{},R=["break,continue,do,else,for,if,return,while"],ze=[R,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],S=[ze,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],Fb=[S,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],Gb=[S,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],Hb=[S,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],Ae="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",Ib=[S,"abstract,async,await,constructor,debugger,enum,eval,export,from,function,get,import,implements,instanceof,interface,let,null,of,set,undefined,var,with,yield,Infinity,NaN"],Jb="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",Kb=[R,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],Lb=[R,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],Mb=[R,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],Be=[Fb,Hb,Gb,Ib,Jb,Kb,Lb,Mb],Nb=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,u="str",Ob="kwd",B="com",la="typ",ma="lit",T="pun",x="pln",Pb="tag",Qb="dec",Rb="src",Sb="atn",na="atv",Ce="nocode",De="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function Ee(e){for(var r=0,a=!1,n=!1,t=0,$=e.length;t<$;++t){if((c=e[t]).ignoreCase)n=!0;else if(/[a-z]/i.test(c.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){a=!0,n=!1;break}}var s={b:8,t:9,n:10,v:11,f:12,r:13};function o(e){var r=e.charCodeAt(0);if(92!==r)return r;var a=e.charAt(1);return(r=s[a])||("0"<=a&&a<="7"?parseInt(e.substring(1),8):"u"===a||"x"===a?parseInt(e.substring(2),16):e.charCodeAt(1))}function i(e){if(e<32)return(e<16?"\\x0":"\\x")+e.toString(16);var r=String.fromCharCode(e);return"\\"===r||"-"===r||"]"===r||"^"===r?"\\"+r:r}function l(e){var r=e.substring(1,e.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),a=[],n="^"===r[0],t=["["];n&&t.push("^");for(var $=n?1:0,s=r.length;$<s;++$){var l=r[$];if(/\\[bdsw]/i.test(l))t.push(l);else{var p,v=o(l);$+2<s&&"-"===r[$+1]?(p=o(r[$+2]),$+=2):p=v,a.push([v,p]),p<65||v>122||(p<65||v>90||a.push([32|Math.max(65,v),32|Math.min(p,90)]),p<97||v>122||a.push([-33&Math.max(97,v),-33&Math.min(p,122)]))}}a.sort(function(e,r){return e[0]-r[0]||r[1]-e[1]});var c=[],u=[];for($=0;$<a.length;++$){(d=a[$])[0]<=u[1]+1?u[1]=Math.max(u[1],d[1]):c.push(u=d)}for($=0;$<c.length;++$){var d=c[$];t.push(i(d[0])),d[1]>d[0]&&(d[1]+1>d[0]&&t.push("-"),t.push(i(d[1])))}return t.push("]"),t.join("")}function p(e){for(var n=e.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),t=n.length,$=[],s=0,o=0;s<t;++s){if("("===(v=n[s]))++o;else if("\\"===v.charAt(0)){(p=+v.substring(1))&&(p<=o?$[p]=-1:n[s]=i(p))}}for(s=1;s<$.length;++s)-1===$[s]&&($[s]=++r);for(s=0,o=0;s<t;++s){if("("===(v=n[s]))$[++o]||(n[s]="(?:");else if("\\"===v.charAt(0)){var p;(p=+v.substring(1))&&p<=o&&(n[s]="\\"+$[p])}}for(s=0;s<t;++s)"^"===n[s]&&"^"!==n[s+1]&&(n[s]="");if(e.ignoreCase&&a)for(s=0;s<t;++s){var v,c=(v=n[s]).charAt(0);v.length>=2&&"["===c?n[s]=l(v):"\\"!==c&&(n[s]=v.replace(/[a-zA-Z]/g,function(e){var r=e.charCodeAt(0);return"["+String.fromCharCode(-33&r,32|r)+"]"}))}return n.join("")}var v=[];for(t=0,$=e.length;t<$;++t){var c;if((c=e[t]).global||c.multiline)throw new Error(""+c);v.push("(?:"+p(c)+")")}return new RegExp(v.join("|"),n?"gi":"g")}function Fe(e,r){var a=/(?:^|\s)nocode(?:\s|$)/,n=[],t=0,$=[],s=0;return function e(o){var i=o.nodeType;if(1==i){if(a.test(o.className))return;for(var l=o.firstChild;l;l=l.nextSibling)e(l);var p=o.nodeName.toLowerCase();"br"!==p&&"li"!==p||(n[s]="\n",$[s<<1]=t++,$[s++<<1|1]=o)}else if(3==i||4==i){var v=o.nodeValue;v.length&&(v=r?v.replace(/\r\n?/g,"\n"):v.replace(/[ \t\r\n]+/g," "),n[s]=v,$[s<<1]=t,t+=v.length,$[s++<<1|1]=o)}}(e),{sourceCode:n.join("").replace(/\n$/,""),spans:$}}function oa(e,r,a,n,t){if(a){var $={sourceNode:e,pre:1,langExtension:null,numberLines:null,sourceCode:a,spans:null,basePos:r,decorations:null};n($),t.push.apply(t,$.decorations)}}var Ge=/\S/;function He(e){for(var r=void 0,a=e.firstChild;a;a=a.nextSibling){var n=a.nodeType;r=1===n?r?e:a:3===n&&Ge.test(a.nodeValue)?e:r}return r===e?void 0:r}function D(e,r){var a,n={};!function(){for(var t=e.concat(r),$=[],s={},o=0,i=t.length;o<i;++o){var l=t[o],p=l[3];if(p)for(var v=p.length;--v>=0;)n[p.charAt(v)]=l;var c=l[1],u=""+c;s.hasOwnProperty(u)||($.push(c),s[u]=null)}$.push(/[\0-\uffff]/),a=Ee($)}();var t=r.length;return function e($){for(var s=$.sourceCode,o=$.basePos,i=$.sourceNode,l=[o,x],p=0,v=s.match(a)||[],c={},u=0,d=v.length;u<d;++u){var K,g=v[u],f=c[g],Z=void 0;if("string"==typeof f)K=!1;else{var R=n[g.charAt(0)];if(R)Z=g.match(R[1]),f=R[0];else{for(var h=0;h<t;++h)if(R=r[h],Z=g.match(R[1])){f=R[0];break}Z||(f=x)}!(K=f.length>=5&&"lang-"===f.substring(0,5))||Z&&"string"==typeof Z[1]||(K=!1,f=Rb),K||(c[g]=f)}var _=p;if(p+=g.length,K){var m=Z[1],P=g.indexOf(m),S=P+m.length;Z[2]&&(P=(S=g.length-Z[2].length)-m.length);var E=f.substring(5);oa(i,o+_,g.substring(0,P),e,l),oa(i,o+_+P,m,Ub(E,m),l),oa(i,o+_+S,g.substring(S),e,l)}else l.push(o+_,f)}$.decorations=l}}function d(e){var r=[],a=[];e.tripleQuotedStrings?r.push([u,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]):e.multiLineStrings?r.push([u,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):r.push([u,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),e.verbatimStrings&&a.push([u,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var n=e.hashComments;n&&(e.cStyleComments?(n>1?r.push([B,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):r.push([B,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),a.push([u,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):r.push([B,/^#[^\r\n]*/,null,"#"])),e.cStyleComments&&(a.push([B,/^\/\/[^\r\n]*/,null]),a.push([B,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var t=e.regexLiterals;if(t){var $=t>1?"":"\n\r",s=$?".":"[\\S\\s]",o="/(?=[^/*"+$+"])(?:[^/\\x5B\\x5C"+$+"]|\\x5C"+s+"|\\x5B(?:[^\\x5C\\x5D"+$+"]|\\x5C"+s+")*(?:\\x5D|$))+/";a.push(["lang-regex",RegExp("^"+De+"("+o+")")])}var i=e.types;i&&a.push([la,i]);var l=(""+e.keywords).replace(/^ | $/g,"");l.length&&a.push([Ob,new RegExp("^(?:"+l.replace(/[\s,]+/g,"|")+")\\b"),null]),r.push([x,/^\s+/,null," \r\n\t\xA0"]);var p="^.[^\\s\\w.$@'\"`/\\\\]*";return e.regexLiterals&&(p+="(?!s*/)"),a.push([ma,/^@[a-z_$][a-z_$@0-9]*/i,null],[la,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[x,/^[a-z_$][a-z_$@0-9]*/i,null],[ma,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[x,/^\\[\s\S]?/,null],[T,new RegExp(p),null]),D(r,a)}var Ie=d({keywords:Be,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Tb(e,r,a){for(var n=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,$=e.ownerDocument,s=$.createElement("li");e.firstChild;)s.appendChild(e.firstChild);var o=[s];function i(e){var r=e.nodeType;if(1!=r||n.test(e.className)){if((3==r||4==r)&&a){var s=e.nodeValue,o=s.match(t);if(o){var p=s.substring(0,o.index);e.nodeValue=p;var v=s.substring(o.index+o[0].length);if(v)e.parentNode.insertBefore($.createTextNode(v),e.nextSibling);l(e),p||e.parentNode.removeChild(e)}}}else if("br"===e.nodeName.toLowerCase())l(e),e.parentNode&&e.parentNode.removeChild(e);else for(var c=e.firstChild;c;c=c.nextSibling)i(c)}function l(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;for(var r,a=function e(r,a){var n=a?r.cloneNode(!1):r,t=r.parentNode;if(t){var $=e(t,1),s=r.nextSibling;$.appendChild(n);for(var o=s;o;o=s)s=o.nextSibling,$.appendChild(o)}return n}(e.nextSibling,0);(r=a.parentNode)&&1===r.nodeType;)a=r;o.push(a)}for(var p=0;p<o.length;++p)i(o[p]);r===(0|r)&&o[0].setAttribute("value",r);var v=$.createElement("ol");v.className="linenums";for(var c=Math.max(0,r-1|0)||0,u=(p=0,o.length);p<u;++p)(s=o[p]).className="L"+(p+c)%10,s.firstChild||s.appendChild($.createTextNode("\xA0")),v.appendChild(s);e.appendChild(v)}function Je(e){var r=/\bMSIE\s(\d+)/.exec(navigator.userAgent);r=r&&+r[1]<=8;var a,n,t=/\n/g,$=e.sourceCode,s=$.length,o=0,i=e.spans,l=i.length,p=0,v=e.decorations,c=v.length,u=0;for(v[c]=s,n=a=0;n<c;)v[n]!==v[n+2]?(v[a++]=v[n++],v[a++]=v[n++]):n+=2;for(c=a,n=a=0;n<c;){for(var d=v[n],K=v[n+1],g=n+2;g+2<=c&&v[g+1]===K;)g+=2;v[a++]=d,v[a++]=K,n=g}c=v.length=a;var f=e.sourceNode,Z="";f&&(Z=f.style.display,f.style.display="none");try{for(;p<l;){i[p];var R,h=i[p+2]||s,_=v[u+2]||s,m=(g=Math.min(h,_),i[p+1]);if(1!==m.nodeType&&(R=$.substring(o,g))){r&&(R=R.replace(t,"\r")),m.nodeValue=R;var P=m.ownerDocument,S=P.createElement("span");S.className=v[u+1];var E=m.parentNode;E.replaceChild(S,m),S.appendChild(m),o<h&&(i[p+1]=m=P.createTextNode($.substring(g,h)),E.insertBefore(m,S.nextSibling))}(o=g)>=h&&(p+=2),o>=_&&(u+=2)}}finally{f&&(f.style.display=Z)}}var U={};function c(e,r){for(var a=r.length;--a>=0;){var n=r[a];U.hasOwnProperty(n)?A.console&&console.warn("cannot override language handler %s",n):U[n]=e}}function Ub(e,r){return e&&U.hasOwnProperty(e)||(e=/^\s*</.test(r)?"default-markup":"default-code"),U[e]}function Vb(e){var r=e.langExtension;try{var a=Fe(e.sourceNode,e.pre),n=a.sourceCode;e.sourceCode=n,e.spans=a.spans,e.basePos=0,Ub(r,n)(e),Je(e)}catch(t){A.console&&console.log(t&&t.stack||t)}}function Wb(e,r,a){var n=a||!1,t=r||null,$=document.createElement("div");return $.innerHTML="<pre>"+e+"</pre>",$=$.firstChild,n&&Tb($,n,!0),Vb({langExtension:t,numberLines:n,sourceNode:$,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null}),$.innerHTML}function Xb(e,r){var a=r||document.body,n=a.ownerDocument||document;function t(e){return a.getElementsByTagName(e)}for(var $=[t("pre"),t("code"),t("xmp")],s=[],o=0;o<$.length;++o)for(var i=0,l=$[o].length;i<l;++i)s.push($[o][i]);$=null;var p=Date;p.now||(p={now:function(){return+new Date}});var v=0,c=/\blang(?:uage)?-([\w.]+)(?!\S)/,u=/\bprettyprint\b/,d=/\bprettyprinted\b/,K=/pre|xmp/i,g=/^code$/i,f=/^(?:pre|code|xmp)$/i,Z={};!function r(){for(var a=A.PR_SHOULD_USE_CONTINUATION?p.now()+250:1/0;v<s.length&&p.now()<a;v++){for(var t=s[v],$=Z,o=t;o=o.previousSibling;){var i=o.nodeType,l=(7===i||8===i)&&o.nodeValue;if(l?!/^\??prettify\b/.test(l):3!==i||/\S/.test(o.nodeValue))break;if(l){$={},l.replace(/\b(\w+)=([\w:.%+-]+)/g,function(e,r,a){$[r]=a});break}}var R=t.className;if(($!==Z||u.test(R))&&!d.test(R)){for(var h=!1,_=t.parentNode;_;_=_.parentNode){var m=_.tagName;if(f.test(m)&&_.className&&u.test(_.className)){h=!0;break}}if(!h){t.className+=" prettyprinted";var P,S,E=$.lang;if(E||(!(E=R.match(c))&&(P=He(t))&&g.test(P.tagName)&&(E=P.className.match(c)),E&&(E=E[1])),K.test(t.tagName))S=1;else{var O=t.currentStyle,y=n.defaultView,C=O?O.whiteSpace:y&&y.getComputedStyle?y.getComputedStyle(t,null).getPropertyValue("white-space"):0;S=C&&"pre"===C.substring(0,3)}var N=$.linenums;(N="true"===N||+N)||(N=!!(N=R.match(/\blinenums\b(?::(\d+))?/))&&(!N[1]||!N[1].length||+N[1])),N&&Tb(t,N,S),Vb({langExtension:E,sourceNode:t,numberLines:N,pre:S,sourceCode:null,basePos:null,spans:null,decorations:null})}}}v<s.length?A.setTimeout(r,250):"function"==typeof e&&e()}()}c(Ie,["default-code"]),c(D([],[[x,/^[^<?]+/],[Qb,/^<!\w[^>]*(?:>|$)/],[B,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[T,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),c(D([[x,/^[\s]+/,null," \t\r\n"],[na,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[Pb,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[Sb,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[T,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),c(D([],[[na,/^[\s\S]+/]]),["uq.val"]),c(d({keywords:Fb,hashComments:!0,cStyleComments:!0,types:Nb}),["c","cc","cpp","cxx","cyc","m"]),c(d({keywords:"null,true,false"}),["json"]),c(d({keywords:Hb,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:Nb}),["cs"]),c(d({keywords:Gb,cStyleComments:!0}),["java"]),c(d({keywords:Mb,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),c(d({keywords:Kb,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),c(d({keywords:Jb,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),c(d({keywords:Lb,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),c(d({keywords:Ib,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),c(d({keywords:Ae,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),c(D([],[[u,/^[\s\S]+/]]),["regex"]);var wf,g=wf=A.PR={createSimpleLexer:D,registerLangHandler:c,sourceDecorator:d,PR_ATTRIB_NAME:Sb,PR_ATTRIB_VALUE:na,PR_COMMENT:B,PR_DECLARATION:Qb,PR_KEYWORD:Ob,PR_LITERAL:ma,PR_NOCODE:Ce,PR_PLAIN:x,PR_PUNCTUATION:T,PR_SOURCE:Rb,PR_STRING:u,PR_TAG:Pb,PR_TYPE:la,prettyPrintOne:Eb?A.prettyPrintOne=Wb:uf=Wb,prettyPrint:Eb?A.prettyPrint=Xb:vf=Xb};g.registerLangHandler(g.createSimpleLexer([],[[g.PR_COMMENT,/\/\/[^\n]*(\n|$)/],[g.PR_TAG,/\[\[/],["lang-asciidoc-block-attribute-list",/\[([^\]]+)\]/],[g.PR_TAG,/=/],[g.PR_TAG,/\+\+\+\+/],[g.PR_TAG,/\./],[g.PR_TAG,/--/],[g.PR_TAG,/\[|\]/]]),["asciidoc"]);var Ke=g.createSimpleLexer([],[[g.PR_STRING,/[^=,]+/],[g.PR_PUNCTUATION,/[,=]/]]),Le=function($){Ke($);for(var t=0;t<$.decorations.length;t+=2){if("str"===$.decorations[t+1]){var r=$.decorations[t+2];"="===$.sourceCode.charAt(r-1)&&($.decorations[t+1]=g.PR_KEYWORD)}}};g.registerLangHandler(Le,["asciidoc-block-attribute-list"]);var Me=g.createSimpleLexer([[g.PR_PUNCTUATION,/^[/?=&]/,null,"/?=&"],[g.PR_PLAIN,/^\s+/,null," \t\r\n"],[g.PR_KEYWORD,/^DELETE|HEAD|GET|PATCH|POST|PUT/,null,"DHGP"],["lang-js",/^(\{[\0-\uFFFF]+?\})(?=[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(DELETE|HEAD|GET|PATCH|POST|PUT|$))/,null,"{"]],[[g.PR_STRING,/^[^ \s/?=&]+/]]),Ne=function($){Me($);for(var r=0;r<$.decorations.length;r+=2){var a=$.decorations[r];if("str"===$.decorations[r+1]&&a-1>0){var e=$.sourceCode.charAt(a-1);"?"!==e&&"&"!==e||($.decorations[r+1]=g.PR_KEYWORD)}}};g.registerLangHandler(Ne,["console"]);g.registerLangHandler(g.createSimpleLexer([[g.PR_PLAIN,/^[\t\n\r \xA0]+/,null,"\t\n\r \xA0"],[g.PR_STRING,/^(?:"(?:[^\"\\]|\\.)*")/,null,"\""]],[[g.PR_COMMENT,/^(?:\/\/[^\r\n]*|\/\*[\s\S]*?(?:\*\/|$))/],[g.PR_KEYWORD,/^(?:ABS|ACOS|AND|APPEND_SEPARATOR|AS|ASC|ASIN|ATAN|ATAN2|AUTO_BUCKET|AVG|BY|CASE|CEIL|CIDR_MATCH|COALESCE|CONCAT|COS|COSH|COUNT|COUNT_DISTINCT|DATE_DIFF|DATE_EXTRACT|DATE_FORMAT|DATE_PARSE|DATE_TRUNC|DESC|DISSECT|DROP|E|ENDS_WITH|ENRICH|EVAL|FIRST|FLOOR|FROM|GREATEST|GROK|IN|IS|IS_FINITE|IS_INFINITE|IS_NAN|IS_NOT_NULL|IS_NULL|LEFT|LENGTH|LOG|LOG10|LTRIM|MAX|MEDIAN|MEDIAN_ABSOLUTE_DEVIATION|MIN|KEEP|LAST|LEAST|LIKE|LIMIT|METADATA|MV_AVG|MV_CONCAT|MV_COUNT|MV_DEDUPE|MV_EXPAND|MV_FIRST|MV_LAST|MV_MAX|MV_MEDIAN|MV_MIN|MV_SUM|NOT|NOW|NULL|NULLS|ON|OR|PERCENTILE|PI|POW|RENAME|REPLACE|RIGHT|RLIKE|ROUND|ROW|RTRIM|SHOW|SPLIT|SIN|SINH|SORT|SQRT|ST_CENTROID|STARTS_WITH|STATS|SUBSTRING|SUM|TAN|TANH|TAU|TO_BOOL|TO_BOOLEAN|TO_CARTESIANPOINT|TO_CARTESIANSHAPE|TO_DATETIME|TO_DBL|TO_DEGREES|TO_DOUBLE|TO_DT|TO_GEOPOINT|TO_GEOSHAPE|TO_INT|TO_INTEGER|TO_IP|TO_LONG|TO_LOWER|TO_RADIANS|TO_STR|TO_STRING|TO_UL|TO_ULONG|TO_UNSIGNED_LONG|TO_UPPER|TO_VER|TO_VERSION|TRIM|WHERE|WITH)(?=[^\w-]|$)/i,null],[g.PR_LITERAL,/^[+-]?(?:\.\d+|\d+(?:\.\d*)?)/i],[g.PR_PLAIN,/^[a-z_][\w-]*/i]]),["esql"]);g.registerLangHandler(g.createSimpleLexer([[g.PR_PLAIN,/^[\t\n\r \xA0]+/,null,"\t\n\r \xA0"],[g.PR_STRING,/^(?:"(?:[^\"\\]|\\.)*"|'(?:[^\'\\]|\\.)*')/,null,"\"'"]],[[g.PR_COMMENT,/^(?:--[^\r\n]*|\/\*[\s\S]*?(?:\*\/|$))/],[g.PR_KEYWORD,/^(?:ADD|ALL|ALTER|AND|ANY|APPLY|AS|ASC|AUTHORIZATION|BACKUP|BEGIN|BETWEEN|BREAK|BROWSE|BULK|BY|CASCADE|CASE|CHECK|CHECKPOINT|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMN|COMMIT|COMPUTE|CONNECT|CONSTRAINT|CONTAINS|CONTAINSTABLE|CONTINUE|CONVERT|CREATE|CROSS|CURRENT|CURRENT_DATE|CURRENT_TIME|CURRENT_TIMESTAMP|CURRENT_USER|CURSOR|DATABASE|DBCC|DEALLOCATE|DECLARE|DEFAULT|DELETE|DENY|DESC|DISK|DISTINCT|DISTRIBUTED|DOUBLE|DROP|DUMMY|DUMP|ELSE|END|ERRLVL|ESCAPE|EXCEPT|EXEC|EXECUTE|EXISTS|EXIT|FETCH|FILE|FILLFACTOR|FOLLOWING|FOR|FOREIGN|FREETEXT|FREETEXTTABLE|FROM|FULL|FUNCTION|GOTO|GRANT|GROUP|HAVING|HOLDLOCK|IDENTITY|IDENTITYCOL|IDENTITY_INSERT|IF|IN|INDEX|INNER|INSERT|INTERSECT|INTO|IS|JOIN|KEY|KILL|LEFT|LIKE|LINENO|LOAD|MATCH|MATCHED|MERGE|NATURAL|NATIONAL|NOCHECK|NONCLUSTERED|NOCYCLE|NOT|NULL|NULLIF|OF|OFF|OFFSETS|ON|OPEN|OPENDATASOURCE|OPENQUERY|OPENROWSET|OPENXML|OPTION|OR|ORDER|OUTER|OVER|PARTITION|PERCENT|PIVOT|PLAN|PRECEDING|PRECISION|PRIMARY|PRINT|PROC|PROCEDURE|PUBLIC|RAISERROR|READ|READTEXT|RECONFIGURE|REFERENCES|REPLICATION|RESTORE|RESTRICT|RETURN|REVOKE|RIGHT|ROLLBACK|ROWCOUNT|ROWGUIDCOL|ROWS?|RULE|SAVE|SCHEMA|SELECT|SESSION_USER|SET|SETUSER|SHUTDOWN|SOME|START|STATISTICS|SYSTEM_USER|TABLE|TEXTSIZE|THEN|TO|TOP|TRAN|TRANSACTION|TRIGGER|TRUNCATE|TSEQUAL|UNBOUNDED|UNION|UNIQUE|UNPIVOT|UPDATE|UPDATETEXT|USE|USER|USING|VALUES|VARYING|VIEW|WAITFOR|WHEN|WHERE|WHILE|WITH|WITHIN|WRITETEXT|XML)(?=[^\w-]|$)/i,null],[g.PR_LITERAL,/^[+-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],[g.PR_PLAIN,/^[a-z_][\w-]*/i],[g.PR_PUNCTUATION,/^[^\w\t\n\r \xA0\"\'][^\w\t\n\r \xA0+\-\"\']*/]]),["sql"]);g.registerLangHandler(g.createSimpleLexer([[g.PR_PUNCTUATION,/^[:|>?]+/,null,":|>?"],[g.PR_DECLARATION,/^%(?:YAML|TAG)[^#\r\n]+/,null,"%"],[g.PR_TYPE,/^[&]\S+/,null,"&"],[g.PR_TYPE,/^!\S*/,null,"!"],[g.PR_STRING,/^"(?:[^\\"]|\\.)*(?:"|$)/,null,"\""],[g.PR_STRING,/^'(?:[^']|'')*(?:'|$)/,null,"'"],[g.PR_COMMENT,/^#[^\r\n]*/,null,"#"],[g.PR_PLAIN,/^\s+/,null," \t\r\n"]],[[g.PR_DECLARATION,/^(?:---|\.\.\.)(?:[\r\n]|$)/],[g.PR_PUNCTUATION,/^-/],[g.PR_KEYWORD,/^[\w-]+:[ \r\n]/],[g.PR_PLAIN,/^\w+/]]),["yaml","yml"]);var pa,Oe={};!function(e,t){"function"==typeof pa&&pa.amd?pa(t):"object"==typeof Oe?Oe=t():t()}(0,function(){var e="details",t="summary";(function(){var n=document.createElement(e);if(!("open"in n))return!1;n.innerHTML="<"+t+">a</"+t+">b",document.body.appendChild(n);var o=n.offsetHeight;n.open=!0;var i=o!=n.offsetHeight;return document.body.removeChild(n),i})()||(document.documentElement.className+=" no-details",window.addEventListener("click",function(e){if("summary"===e.target.nodeName.toLowerCase()){var t=e.target.parentNode;if(!t)return;t.getAttribute("open")?(t.open=!1,t.removeAttribute("open")):(t.open=!0,t.setAttribute("open","open"))}}),function(e,t){if(document.getElementById(e))return;var n=document.createElement("style");n.id=e,n.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(n)}("details-polyfill-style","html.no-details "+e+":not([open]) > :not("+t+") { display: none; }\nhtml.no-details "+e+" > "+t+":before { content: \"\u25B6\"; display: inline-block; font-size: .8em; width: 1.5em; }\nhtml.no-details "+e+"[open] > "+t+":before { content: \"\u25BC\"; }"))});var Pe={};!function(t){var n,r=t.URLSearchParams&&t.URLSearchParams.prototype.get?t.URLSearchParams:null,e=r&&"a=1"===new r({a:1}).toString(),o=r&&"+"===new r("s=%2B").get("s"),i="__URLSearchParams__",a=!r||((n=new r).append("s"," &"),"s=+%26"===n.toString()),c=l.prototype,s=!(!t.Symbol||!t.Symbol.iterator);if(!(r&&e&&o&&a)){c.append=function(t,n){y(this[i],t,n)},c.delete=function(t){delete this[i][t]},c.get=function(t){var n=this[i];return this.has(t)?n[t][0]:null},c.getAll=function(t){var n=this[i];return this.has(t)?n[t].slice(0):[]},c.has=function(t){return d(this[i],t)},c.set=function(t,n){this[i][t]=[""+n]},c.toString=function(){var t,n,r,e,o=this[i],a=[];for(n in o)for(r=h(n),t=0,e=o[n];t<e.length;t++)a.push(r+"="+h(e[t]));return a.join("&")};var u=!!o&&r&&!e&&t.Proxy;Object.defineProperty(t,"URLSearchParams",{value:u?new Proxy(r,{construct:function(t,n){return new t(new l(n[0]).toString())}}):l});var f=t.URLSearchParams.prototype;f.polyfill=!0,f.forEach=f.forEach||function(t,n){var r=v(this.toString());Object.getOwnPropertyNames(r).forEach(function(e){r[e].forEach(function(r){t.call(n,r,e,this)},this)},this)},f.sort=f.sort||function(){var t,n,r,e=v(this.toString()),o=[];for(t in e)o.push(t);for(o.sort(),n=0;n<o.length;n++)this.delete(o[n]);for(n=0;n<o.length;n++){var i=o[n],a=e[i];for(r=0;r<a.length;r++)this.append(i,a[r])}},f.keys=f.keys||function(){var t=[];return this.forEach(function(n,r){t.push(r)}),g(t)},f.values=f.values||function(){var t=[];return this.forEach(function(n){t.push(n)}),g(t)},f.entries=f.entries||function(){var t=[];return this.forEach(function(n,r){t.push([r,n])}),g(t)},s&&(f[t.Symbol.iterator]=f[t.Symbol.iterator]||f.entries)}function l(t){((t=t||"")instanceof URLSearchParams||t instanceof l)&&(t=t.toString()),this[i]=v(t)}function h(t){var n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'\(\)~]|%20|%00/g,function(t){return n[t]})}function p(t){return t.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,function(t){return decodeURIComponent(t)})}function g(n){var r={next:function(){var t=n.shift();return{done:void 0===t,value:t}}};return s&&(r[t.Symbol.iterator]=function(){return r}),r}function v(t){var n={};if("object"==typeof t){if(S(t))for(var r=0;r<t.length;r++){var e=t[r];if(!S(e)||2!==e.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");y(n,e[0],e[1])}else for(var o in t)t.hasOwnProperty(o)&&y(n,o,t[o]);}else{0===t.indexOf("?")&&(t=t.slice(1));for(var i=t.split("&"),a=0;a<i.length;a++){var c=i[a],s=c.indexOf("=");-1<s?y(n,p(c.slice(0,s)),p(c.slice(s+1))):c&&y(n,p(c),"")}}return n}function y(t,n,r){var e="string"==typeof r?r:null!=r&&"function"==typeof r.toString?r.toString():JSON.stringify(r);d(t,n)?t[n].push(e):t[n]=[e]}function S(t){return!!t&&"[object Array]"===Object.prototype.toString.call(t)}function d(t,n){return Object.prototype.hasOwnProperty.call(t,n)}}("undefined"!=typeof r?r:"undefined"!=typeof window?window:Pe);i.init_landing_page=sa,i.init_headers=ta,i.init_console_widgets=ua,i.init_feedback_widget=va,i.init_sense_widgets=wa,f(function(){var e=f("section#guide[lang]").attr("lang")||"en",t=sc(window.location.href),i=Db(e),o={settings:{language:e,langStrings:i,baseUrl:t,kibana_url:j.get("kibana_url")||"http://localhost:5601",kibana_curl_host:j.get("kibana_curl_host")||"localhost:5601",kibana_curl_user:j.get("kibana_curl_user"),kibana_curl_password:"$KIBANAPASS",console_url:j.get("console_url")||"http://localhost:5601/zzz/app/kibana#/dev_tools/console",console_curl_host:j.get("console_curl_host")||"localhost:9200",console_curl_user:j.get("console_curl_user"),console_curl_password:"$ESPASS",sense_url:j.get("sense_url")||"http://localhost:5601/app/sense/",sense_curl_host:j.get("sense_curl_host")||"localhost:9200",sense_curl_user:j.get("sense_curl_user"),sense_curl_password:"$ESPASS",ess_url:j.get("ess_url")||"http://localhost:5601",ess_curl_host:j.get("ess_curl_host")||"localhost:5601",ess_curl_user:j.get("ess_curl_user"),ess_curl_password:"$CLOUD_PASS",ece_url:j.get("ece_url")||"http://localhost:5601",ece_curl_host:j.get("ece_curl_host")||"localhost:5601",ece_curl_user:j.get("ece_curl_user"),ece_curl_password:"$ECE_PASS",consoleAlternative:j.get("consoleAlternative")||"console"},alternatives:window.initial_state.alternatives};ka(o),v(f("body"),qe),oc(ka());var a=f("div#content").find("h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11,h12"),r=[];if(a.each(function(e){0!==e&&(r.includes(f(this).prop("nodeName"))||r.push(f(this).prop("nodeName")))}),a.each(function(e){var t=f(this).prop("innerHTML");e>0&&(r[0]&&f(this).prop("nodeName")===r[0]&&f(this).replaceWith("<h2>".concat(t,"</h2>")),r[1]&&f(this).prop("nodeName")===r[1]&&f(this).replaceWith("<h3>".concat(t,"</h3>")),r[2]&&f(this).prop("nodeName")===r[2]&&f(this).replaceWith("<h4>".concat(t,"</h4>")),r[3]&&f(this).prop("nodeName")===r[3]&&f(this).replaceWith("<h5>".concat(t,"</h5>")),r[4]&&f(this).prop("nodeName")===r[4]&&f(this).replaceWith("<h6>".concat(t,"</h6>")))}),f("#related-products")){var $=f("#related-products > .dropdown-anchor"),n=f("#related-products > .dropdown-content");$.click(function(e){e.preventDefault(),n.toggleClass("show")}),$.keypress(function(e){13==e.which&&n.toggleClass("show")}),f(document).mouseup(function(e){!n.hasClass("show")||$.is(e.target)||n.is(e.target)||0!==n.has(e.target).length||n.removeClass("show")});var s=$.text(),l=n.find("li");l.each(function(e){l[e].innerText===s&&(l[e].children[0].style.fontWeight=700)})}var c=f("#sticky_content"),p=f("#left_col"),d=f("#middle_col"),b=f("#right_col"),u=f("#bottom_left_col");if(f(".page_header > a[href=\"../current/index.html\"]").click(function(e){e.preventDefault(),Ja("current").fail(function(){location.href="../current/index.html"})}),wa(),ua(),$b(),va(),sa(),f("div.ess_widget").each(function(){var e=f(this),t=e.attr("data-snippet"),i=e.prev().text()+"\n";return v(e,G,{setting:"ess",url_label:"Enter the endpoint URL of the Elasticsearch Service",configure_text:"Configure the Elasticsearch Service endpoint URL",consoleText:i,snippet:t})}),f("div.ece_widget").each(function(){var e=f(this),t=e.attr("data-snippet"),i=e.prev().text()+"\n";return v(e,G,{setting:"ece",url_label:"Enter the endpoint URL of Elastic Cloud Enterprise",configure_text:"Configure the Elastic Cloud Enterprise endpoint URL",consoleText:i,snippet:t})}),f("div.console_code_copy").each(function(){var e=f(this),t=e.next().text();e.on("click",function(){Ka(t,Db),e.addClass("copied"),setTimeout(function(){e.removeClass("copied")},3e3)})}),0==f("div.toc").length){var h=location.href.replace(/[^\/]+$/,"toc.html");f.get(h,{},function(e){p.append(e),xa(i),uc(location.pathname)}).always(function(){ta(c,i),_b()})}else xa(i),p.removeClass().addClass("col-0"),u.removeClass().addClass("col-0"),d.removeClass().addClass("col-12 col-lg-9 guide-section"),b.removeClass().addClass("col-12 col-lg-3 sticky-top-md h-almost-full-lg");if(g.prettyPrint(),(new URLSearchParams(window.location.search).has("edit")||window.location.hash.indexOf("?edit")>-1)&&f("a.edit_me_private").show(),f(window).width()>=769)var m=setInterval(function(){if(f(".current_page").length){var e=document.querySelector("#left_col"),t=document.querySelector(".current_page");e.offsetHeight-100<=t.offsetTop&&(e.scrollTop=t.offsetTop),clearInterval(m)}},150);window.dataLayer=window.dataLayer||[];var _=document.title.split("|"),V=Yb({event:"page_view",pagePath:window.location.pathname,pageURL:window.location.href,pageTitle:document.title,pageTemplate:"",team:"Docs",pageCategory:_[_.length-2].trim(),hostname:window.location.hostname,canonicalTag:window.location.protocol+"//"+window.location.hostname+window.location.pathname,euid:bc(),userId:W("userId"),hashedIP:W("hashedIp"),userAgent:window.navigator.userAgent},ac());dataLayer.push(V)}),ue();if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=i}else if(typeof define==="function"&&define.amd){define(function(){return i})}i.__esModule=true;return{"3aVb":i};});