From 02cb68767685c8f462d674ea53248622f2ee6762 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sun, 10 Mar 2024 09:14:07 +0000 Subject: [PATCH] docs: Build docs for v2.28.0 --- browser/elastic-builder.min.js | 2 +- docs/index.html | 2242 ++++++++++++++++++++------------ 2 files changed, 1433 insertions(+), 811 deletions(-) diff --git a/browser/elastic-builder.min.js b/browser/elastic-builder.min.js index 634aded..5714540 100644 --- a/browser/elastic-builder.min.js +++ b/browser/elastic-builder.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.esb=e():t.esb=e()}(window,function(){return function(t){var e={};function r(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,s){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(s,i,function(e){return t[e]}.bind(null,i));return s},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=42)}([function(t,e){t.exports=function(t){return null==t}},function(t,e,r){"use strict";e.RequestBodySearch=r(43),e.Aggregation=r(33),e.Query=r(12),e.Suggester=r(34),e.Script=r(36),e.Highlight=r(24),e.GeoPoint=r(46),e.GeoShape=r(47),e.IndexedShape=r(48),e.Sort=r(23),e.Rescore=r(35),e.InnerHits=r(37),e.SearchTemplate=r(49),e.consts=r(18),e.util=r(6)},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t,e,r){super(t,e),s(r)||(this._aggsDef.field=r)}field(t){return this._aggsDef.field=t,this}script(t){return o(t,n),this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t,e,r){super(t,e),s(r)||(this._aggsDef.field=r)}field(t){return this._aggsDef.field=t,this}script(t){return o(t,n),this._aggsDef.script=t,this}missing(t){return this._aggsDef.missing=t,this}format(t){return this._aggsDef.format=t,this}}},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,util:{invalidParam:n}}=r(1),o=n("","gap_policy","'skip' or 'insert_zeros'");t.exports=class extends i{constructor(t,e,r,i){super(t,e),this._refUrl=r,s(i)||(this._aggsDef.buckets_path=i)}bucketsPath(t){return this._aggsDef.buckets_path=t,this}gapPolicy(t){s(t)&&o(t,this._refUrl);const e=t.toLowerCase();return"skip"!==e&&"insert_zeros"!==e&&o(t,this._refUrl),this._aggsDef.gap_policy=e,this}format(t){return this._aggsDef.format=t,this}}},function(t,e,r){(function(e){var r="Expected a function",s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,l=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,y="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,w=y||m||Function("return this")();var x=Array.prototype,O=Function.prototype,b=Object.prototype,S=w["__core-js_shared__"],v=function(){var t=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),A=O.toString,q=b.hasOwnProperty,D=b.toString,T=RegExp("^"+A.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=w.Symbol,k=b.propertyIsEnumerable,E=x.splice,P=L(w,"Map"),z=L(Object,"create"),M=Q?Q.prototype:void 0,F=M?M.toString:void 0;function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e-1&&t%1==0&&t-1},$.prototype.set=function(t,e){var r=this.__data__,s=R(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},C.prototype.clear=function(){this.__data__={hash:new j,map:new(P||$),string:new j}},C.prototype.delete=function(t){return B(this,t).delete(t)},C.prototype.get=function(t){return B(this,t).get(t)},C.prototype.has=function(t){return B(this,t).has(t)},C.prototype.set=function(t,e){return B(this,t).set(t,e),this};var I=W(function(t){t=function(t){return null==t?"":function(t){if("string"==typeof t)return t;if(tt(t))return F?F.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(t)}(t);var e=[];return l.test(t)&&e.push(""),t.replace(p,function(t,r,s,i){e.push(s?i.replace(_,"$1"):r||t)}),e});function J(t){if("string"==typeof t||tt(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function W(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var s=function(){var r=arguments,i=e?e.apply(this,r):r[0],n=s.cache;if(n.has(i))return n.get(i);var o=t.apply(this,r);return s.cache=n.set(i,o),o};return s.cache=new(W.Cache||C),s}function U(t,e){return t===e||t!=t&&e!=e}W.Cache=C;var V=Array.isArray;function Z(t){var e=Y(t)?D.call(t):"";return e==u||e==c}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function X(t){return!!t&&"object"==typeof t}function tt(t){return"symbol"==typeof t||X(t)&&D.call(t)==a}t.exports=function(t,e){return null!=t&&H(t,e,N)}}).call(this,r(17))},function(t,e,r){"use strict";const s=r(7),i=r(0),n=r(22),o=r(13),u=r(45),c=r(5),a=r(32);function h(t,e,r){return t>=e&&t<=r}e.checkType=function(t,e){if(!(t instanceof e))throw i(t)?console.warn(`Was expecting instance of ${e.name} but got ${t}!`):console.warn(`${a(t)} is of the type ${typeof t}`),new TypeError(`Argument must be an instance of ${e.name}`)},e.constructorWrapper=function(t){return(...e)=>new t(...e)},e.firstDigitPos=function(t){if(s(t))return-1;const e=t.length;for(let r=0;rt(e));if(u(e,"toJSON")&&e.constructor!==Object)return t(e.toJSON());const r={};for(const s of Object.keys(e))r[s]=t(e[s]);return r},e.invalidParam=function(t,e,r){return(s,i=t)=>{i&&console.log(`See ${i}`),console.warn(`Got '${e}' - '${s}'`);const o=n(r)?r:a(r);throw new Error(`The '${e}' parameter should be one of ${o}`)}},e.setDefault=function(t,e,r){const s=!c(t,e);return s&&(t[e]=r),s}},function(t,e,r){(function(t,r){var s=9007199254740991,i="[object Arguments]",n="[object Function]",o="[object GeneratorFunction]",u="[object Map]",c="[object Set]",a=/^\[object .+?Constructor\]$/,h="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,l=h||g||Function("return this")(),p=e&&!e.nodeType&&e,_=p&&"object"==typeof r&&r&&!r.nodeType&&r,f=_&&_.exports===p;var d=Function.prototype,y=Object.prototype,m=l["__core-js_shared__"],w=function(){var t=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),x=d.toString,O=y.hasOwnProperty,b=y.toString,S=RegExp("^"+x.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=f?l.Buffer:void 0,A=y.propertyIsEnumerable,q=v?v.isBuffer:void 0,D=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),T=N(l,"DataView"),Q=N(l,"Map"),k=N(l,"Promise"),E=N(l,"Set"),P=N(l,"WeakMap"),z=!A.call({valueOf:1},"valueOf"),M=B(T),F=B(Q),j=B(k),$=B(E),C=B(P);function R(t){return!(!U(t)||function(t){return!!w&&w in t}(t))&&(W(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?S:a).test(B(t))}function N(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return R(r)?r:void 0}var G=function(t){return b.call(t)};function B(t){if(null!=t){try{return x.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function L(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&I(t)}(t)&&O.call(t,"callee")&&(!A.call(t,"callee")||b.call(t)==i)}(T&&"[object DataView]"!=G(new T(new ArrayBuffer(1)))||Q&&G(new Q)!=u||k&&"[object Promise]"!=G(k.resolve())||E&&G(new E)!=c||P&&"[object WeakMap]"!=G(new P))&&(G=function(t){var e=b.call(t),r="[object Object]"==e?t.constructor:void 0,s=r?B(r):void 0;if(s)switch(s){case M:return"[object DataView]";case F:return u;case j:return"[object Promise]";case $:return c;case C:return"[object WeakMap]"}return e});var H=Array.isArray;function I(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}(t.length)&&!W(t)}var J=q||function(){return!1};function W(t){var e=U(t)?b.call(t):"";return e==n||e==o}function U(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}r.exports=function(t){if(I(t)&&(H(t)||"string"==typeof t||"function"==typeof t.splice||J(t)||L(t)))return!t.length;var e=G(t);if(e==u||e==c)return!t.size;if(z||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||y)}(t))return!D(t).length;for(var r in t)if(O.call(t,r))return!1;return!0}}).call(this,r(17),r(44)(t))},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{}},function(t,e,r){"use strict";const{inspect:s}=r(32),{util:{firstDigitPos:i},consts:{REWRITE_METHOD_SET:n}}=r(1);e.validateRewiteMethod=function(t,e,r){if(!n.has(t)){const o=`${t.substring(0,i(t))}N`;if(!n.has(o))throw console.log(`See ${r}`),console.warn(`Got '${e}' - ${t}`),new Error(`The '${e}' parameter should belong to ${s(n)}`)}}},function(t,e,r){"use strict";const s=r(40);t.exports=class extends s{}},function(t,e,r){"use strict";const{Query:s,util:{checkType:i,recursiveToJSON:n}}=r(1);t.exports=class{constructor(t){this._name=t,this._body={},this._opts={}}filter(t){return i(t,s),this._body.filter=t,this}weight(t){return this._body.weight=t,this}toJSON(){const t=Object.assign({[this._name]:this._opts},this._body);return n(t)}}},function(t,e,r){"use strict";const{recursiveToJSON:s}=r(6);t.exports=class{constructor(t){this.queryType=t,this._body={},this._queryOpts=this._body[t]={}}boost(t){return this._queryOpts.boost=t,this}name(t){return this._queryOpts._name=t,this}getDSL(){return this.toJSON()}toJSON(){return s(this._body)}}},function(t,e){t.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t,e){super(t),s(e)||(this._queryOpts.query=e)}analyzer(t){return this._queryOpts.analyzer=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}query(t){return this._queryOpts.query=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{invalidParam:n,recursiveToJSON:o}}=r(1),u=n("","validation_method","'IGNORE_MALFORMED', 'COERCE' or 'STRICT'");t.exports=class extends i{constructor(t,e){super(t),this._field=null,this._fieldOpts={},s(e)||(this._field=e)}field(t){return this._field=t,this}validationMethod(t){s(t)&&u(t);const e=t.toUpperCase();return"IGNORE_MALFORMED"!==e&&"COERCE"!==e&&"STRICT"!==e&&u(t),this._queryOpts.validation_method=e,this}toJSON(){return o({[this.queryType]:Object.assign({[this._field]:this._fieldOpts},this._queryOpts)})}}},function(t,e,r){"use strict";const s=r(7),{util:{checkType:i}}=r(1),n=r(2),o=Object.prototype.hasOwnProperty;t.exports=class extends n{constructor(t,e,r){super(t,e,r),this._rangeRequiredKeys=["from","to"],this._aggsDef.ranges=[]}format(t){return this._aggsDef.format=t,this}range(t){if(i(t,Object),!this._rangeRequiredKeys.some(o,t))throw new Error(`Invalid Range! Range must have at least one of ${this._rangeRequiredKeys}`);return this._aggsDef.ranges.push(t),this}ranges(t){return i(t,Array),t.forEach(t=>this.range(t)),this}missing(t){return this._aggsDef.missing=t,this}keyed(t){return this._aggsDef.keyed=t,this}toJSON(){if(s(this._aggsDef.ranges))throw new Error("`ranges` cannot be empty.");return super.toJSON()}}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.EXECUTION_HINT_SET=new Set(["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]),e.UNIT_SET=new Set(["in","inch","yd","yards","ft","feet","km","kilometers","NM","nmi","nauticalmiles","mm","millimeters","cm","centimeters","mi","miles","m","meters"]),e.MODEL_SET=new Set(["simple","linear","ewma","holt","holt_winters"]),e.SORT_MODE_SET=new Set(["min","max","sum","avg","median"]),e.RESCORE_MODE_SET=new Set(["total","multiply","min","max","avg"]),e.REWRITE_METHOD_SET=new Set(["constant_score","constant_score_auto","constant_score_filter","scoring_boolean","constant_score_boolean","top_terms_N","top_terms_boost_N","top_terms_blended_freqs_N"]),e.MULTI_MATCH_TYPE=new Set(["best_fields","most_fields","cross_fields","phrase","phrase_prefix","bool_prefix"]),e.SCORE_MODE_SET=new Set(["multiply","sum","first","min","max","avg"]),e.BOOST_MODE_SET=new Set(["multiply","sum","replace","min","max","avg"]),e.FIELD_MODIFIER_SET=new Set(["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]),e.NESTED_SCORE_MODE_SET=new Set(["none","sum","min","max","avg"]),e.GEO_SHAPE_TYPES=new Set(["point","linestring","polygon","multipoint","multilinestring","multipolygon","geometrycollection","envelope","circle"]),e.GEO_RELATION_SET=new Set(["WITHIN","CONTAINS","DISJOINT","INTERSECTS"]),e.SUGGEST_MODE_SET=new Set(["missing","popular","always"]),e.STRING_DISTANCE_SET=new Set(["internal","damerau_levenshtein","levenstein","jarowinkler","ngram"]),e.SMOOTHING_MODEL_SET=new Set(["stupid_backoff","laplace","linear_interpolation"])},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(14);t.exports=class extends n{constructor(t,e,r){super(t,r),i(e)||(this._field=e)}field(t){return this._field=t,this}toJSON(){if(!s(this._queryOpts,"query"))throw new Error("Query string is required for full text query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.query:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}}},function(t,e,r){"use strict";const s=r(0),{Query:i,InnerHits:n,util:{checkType:o,invalidParam:u},consts:{NESTED_SCORE_MODE_SET:c}}=r(1),a=u("","score_mode",c);t.exports=class extends i{constructor(t,e,r){super(t),this.refUrl=e,s(r)||this.query(r)}query(t){return o(t,i),this._queryOpts.query=t,this}scoreMode(t){s(t)&&a(t);const e=t.toLowerCase();return c.has(e)||a(t),this._queryOpts.score_mode=e,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}innerHits(t){return o(t,n),this._queryOpts.inner_hits=t,this}}},function(t,e,r){"use strict";const s=r(7),i=r(0),{util:{invalidParam:n,recursiveToJSON:o}}=r(1),u=n("","order","'asc' or 'desc'");t.exports=class{constructor(t,e,r,n){if(s(t))throw new Error("ValuesSourceBase `valueSrcType` cannot be empty");this._name=r,this._valueSrcType=t,this._refUrl=e,this._body={},this._opts=this._body[t]={},i(n)||(this._opts.field=n)}field(t){return this._opts.field=t,this}script(t){return this._opts.script=t,this}valueType(t){return this._opts.value_type=t,this}order(t){i(t)&&u(t,this._refUrl);const e=t.toLowerCase();return"asc"!==e&&"desc"!==e&&u(t,this._refUrl),this._opts.order=e,this}missing(t){return this._opts.missing=t,this}missingBucket(t){return this._opts.missing_bucket=t,this}toJSON(){return{[this._name]:o(this._body)}}}},function(t,e){var r="[object String]",s=Object.prototype.toString,i=Array.isArray;t.exports=function(t){return"string"==typeof t||!i(t)&&function(t){return!!t&&"object"==typeof t}(t)&&s.call(t)==r}},function(t,e,r){"use strict";const s=r(7),i=r(5),n=r(0),o=r(12),u=r(36),{checkType:c,invalidParam:a,recursiveToJSON:h}=r(6),{SORT_MODE_SET:g,UNIT_SET:l}=r(18),p="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html",_=a(p,"order","'asc' or 'desc'"),f=a(p,"mode",g),d=a(p,"distance_type","'plane' or 'arc'"),y=a(p,"unit",l);t.exports=class{constructor(t,e){this._opts={},this._geoPoint=null,this._script=null,n(t)||(this._field=t),n(e)||this.order(e)}order(t){n(t)&&_(t);const e=t.toLowerCase();return"asc"!==e&&"desc"!==e&&_(t),this._opts.order=e,this}mode(t){n(t)&&f(t);const e=t.toLowerCase();return g.has(e)||f(t),this._opts.mode=e,this}nestedPath(t){return this._opts.nested_path=t,this}nestedFilter(t){return c(t,o),this._opts.nested_filter=t,this}nested(t){const{filter:e}=t;return n(e)||c(e,o),this._opts.nested=t,this}missing(t){return this._opts.missing=t,this}unmappedType(t){return this._opts.unmapped_type=t,this}geoDistance(t){return this._geoPoint=t,this}distanceType(t){n(t)&&d(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&d(t),this._opts.distance_type=e,this}unit(t){return l.has(t)||y(t),this._opts.unit=t,this}script(t){return c(t,u),this._script=t,this}type(t){return this._opts.type=t,this}format(t){return this._opts.format=t,this}reverse(t){return this._opts.reverse=t,this}toJSON(){const t=n(this._geoPoint),e=n(this._script);if(t&&e){if(s(this._opts))return this._field;if(1===Object.keys(this._opts).length&&i(this._opts,"order"))return{[this._field]:this._opts.order}}let r;return r=t?e?{[this._field]:this._opts}:{_script:Object.assign({script:this._script},this._opts)}:{_geo_distance:Object.assign({[this._field]:this._geoPoint},this._opts)},h(r)}}},function(t,e,r){"use strict";const s=r(5),i=r(7),n=r(0),o=r(22),u=r(12),{checkType:c,invalidParam:a,recursiveToJSON:h}=r(6),g="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html",l=a(g,"encoder","'default' or 'html'"),p=a(g,"type","'plain', 'postings' or 'fvh'"),_=a(g,"fragmenter","'simple' or 'span'");t.exports=class{constructor(t){this._fields={},this._highlight={fields:this._fields},n(t)||(o(t)?this.field(t):this.fields(t))}_setFieldOption(t,e,r){n(t)?this._highlight[e]=r:(this.field(t),this._fields[t][e]=r)}field(t){return n(t)||s(this._fields,t)||(this._fields[t]={}),this}fields(t){return c(t,Array),t.forEach(t=>this.field(t)),this}preTags(t,e){return this._setFieldOption(e,"pre_tags",o(t)?[t]:t),this}postTags(t,e){return this._setFieldOption(e,"post_tags",o(t)?[t]:t),this}styledTagsSchema(){return this._highlight.tags_schema="styled",this}scoreOrder(t){return this._setFieldOption(t,"order","score"),this}fragmentSize(t,e){return this._setFieldOption(e,"fragment_size",t),this}numberOfFragments(t,e){return this._setFieldOption(e,"number_of_fragments",t),this}noMatchSize(t,e){return this._setFieldOption(e,"no_match_size",t),this}highlightQuery(t,e){return c(t,u),this._setFieldOption(e,"highlight_query",t),this}matchedFields(t,e){if(c(t,Array),i(e))throw new Error("`matched_fields` requires field name to be passed");return this.type("fvh",e),this._setFieldOption(e,"matched_fields",t),this}phraseLimit(t){return this._highlight.phrase_limit=t,this}encoder(t){n(t)&&l(t);const e=t.toLowerCase();return"default"!==e&&"html"!==e&&l(t),this._highlight.encoder=e,this}requireFieldMatch(t,e){return this._setFieldOption(e,"require_field_match",t),this}boundaryMaxScan(t,e){return this._setFieldOption(e,"boundary_max_scan",t),this}boundaryChars(t,e){return this._setFieldOption(e,"boundary_chars",t),this}type(t,e){n(t)&&p(t);const r=t.toLowerCase();return"plain"!==r&&"postings"!==r&&"fvh"!==r&&p(t),this._setFieldOption(e,"type",r),this}forceSource(t,e){return this._setFieldOption(e,"force_source",t),this}fragmenter(t,e){n(t)&&_(t);const r=t.toLowerCase();return"simple"!==r&&"span"!==r&&_(t),this._setFieldOption(e,"fragmenter",r),this}toJSON(){return h(this._highlight)}}},function(t,e,r){"use strict";const s=r(19);t.exports=class extends s{constructor(t,e,r,s){super(t,r,s),this._refUrl=e}minimumShouldMatch(){throw console.log(`Please refer ${this._refUrl}`),new Error(`minimumShouldMatch is not supported in ${this.constructor.name}`)}slop(t){return this._queryOpts.slop=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i,setDefault:n,invalidParam:o}}=r(1),u=r(14),c=o("","operator","'AND' or 'OR'");t.exports=class extends u{constructor(t,e,r){super(t,r),this._refUrl=e}field(t){return n(this._queryOpts,"fields",[]),this._queryOpts.fields.push(t),this}fields(t){return i(t,Array),n(this._queryOpts,"fields",[]),this._queryOpts.fields=this._queryOpts.fields.concat(t),this}defaultOperator(t){s(t)&&c(t,this._refUrl);const e=t.toUpperCase();return"AND"!==e&&"OR"!==e&&c(t,this._refUrl),this._queryOpts.default_operator=e,this}analyzeWildcard(t){return this._queryOpts.analyze_wildcard=t,this}lenient(t){return this._queryOpts.lenient=t,this}quoteFieldSuffix(t){return this._queryOpts.quote_field_suffix=t,this}allFields(t){return this._queryOpts.all_fields=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{little(t){return s(t,i),this._queryOpts.little=t,this}big(t){return s(t,i),this._queryOpts.big=t,this}}},function(t,e,r){"use strict";const s=r(5),i=r(0),{util:{invalidParam:n}}=r(1),o=r(2),u=n("","direction","'asc' or 'desc'");t.exports=class extends o{constructor(t,e,r,s){super(t,e,r),i(s)||(this._aggsDef.interval=s)}interval(t){return this._aggsDef.interval=t,this}format(t){return this._aggsDef.format=t,this}offset(t){return this._aggsDef.offset=t,this}order(t,e="desc"){i(e)&&u(e);const r=e.toLowerCase();return"asc"!==r&&"desc"!==r&&u(e),s(this._aggsDef,"order")?(Array.isArray(this._aggsDef.order)||(this._aggsDef.order=[this._aggsDef.order]),this._aggsDef.order.push({[t]:r})):this._aggsDef.order={[t]:r},this}minDocCount(t){return this._aggsDef.min_doc_count=t,this}extendedBounds(t,e){return this._aggsDef.extended_bounds={min:t,max:e},this}hardBounds(t,e){return this._aggsDef.hard_bounds={min:t,max:e},this}missing(t){return this._aggsDef.missing=t,this}keyed(t){return this._aggsDef.keyed=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{EXECUTION_HINT_SET:n}}=r(1),o=r(2),u=i("","execution_hint",n);t.exports=class extends o{constructor(t,e,r,s){super(t,e,s),this._refUrl=r}format(t){return this._aggsDef.format=t,this}minDocCount(t){return this._aggsDef.min_doc_count=t,this}shardMinDocCount(t){return this._aggsDef.shard_min_doc_count=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}missing(t){return this._aggsDef.missing=t,this}include(t){return this._aggsDef.include=t,this}exclude(t){return this._aggsDef.exclude=t,this}executionHint(t){s(t)&&u(t,this._refUrl);const e=t.toLowerCase();return n.has(e)||u(t,this._refUrl),this._aggsDef.execution_hint=t,this}}},function(t,e,r){"use strict";const{Query:s,Script:i,util:{checkType:n}}=r(1),o=r(29);t.exports=class extends o{jlh(){return this._aggsDef.jlh={},this}mutualInformation(t=!0,e=!0){return this._aggsDef.mutual_information={include_negatives:t,background_is_superset:e},this}chiSquare(t=!0,e=!0){return this._aggsDef.chi_square={include_negatives:t,background_is_superset:e},this}gnd(t=!0){return this._aggsDef.gnd={background_is_superset:t},this}percentage(){return this._aggsDef.percentage={},this}scriptHeuristic(t){return n(t,i),this._aggsDef.script_heuristic={script:t},this}backgroundFilter(t){return n(t,s),this._aggsDef.background_filter=t,this}script(){throw console.log(`Please refer ${this._refUrl}`),new Error(`script is not supported in ${this.constructor.name}`)}}},function(t,e,r){"use strict";const s=r(0),{Suggester:i}=r(1);t.exports=class extends i{constructor(t,e,r,i){super(t,e,r),s(i)||(this._opts.text=i)}text(t){return this._opts.text=t,this}analyzer(t){return this._suggestOpts.analyzer=t,this}shardSize(t){return this._suggestOpts.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(22),i=r(13);function n(t,r){const s={seen:[],stylize:o};return arguments.length>=3&&(s.depth=arguments[2]),arguments.length>=4&&(s.colors=arguments[3]),a(r)?s.showHidden=r:r&&e._extend(s,r),g(s.showHidden)&&(s.showHidden=!1),g(s.depth)&&(s.depth=2),g(s.colors)&&(s.colors=!1),g(s.customInspect)&&(s.customInspect=!0),s.colors&&(s.stylize=u),c(s,t,s.depth)}function o(t){return t}function u(t,e){const r=n.styles[e];return r?`[${n.colors[r][0]}m${t}[${n.colors[r][1]}m`:t}function c(t,r,i){if(t.customInspect&&r&&f(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){let e=r.inspect(i,t);return s(e)||(e=c(t,e,i)),e}const n=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(s(e)){const r=`'${JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')}'`;return t.stylize(r,"string")}if(function(t){return"number"==typeof t}(e))return t.stylize(`${e}`,"number");if(a(e))return t.stylize(`${e}`,"boolean");if(h(e))return t.stylize("null","null")}(t,r);if(n)return n;let o=Object.keys(r);const u=function(t){const e={};return t.forEach(t=>{e[t]=!0}),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),_(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(r);if(0===o.length){if(f(r)){const e=r.name?`: ${r.name}`:"";return t.stylize(`[Function${e}]`,"special")}if(l(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(p(r))return t.stylize(Date.prototype.toString.call(r),"date");if(_(r))return d(r)}let m,w="",x=!1,O=["{","}"];if(function(t){return Array.isArray(t)}(r)&&(x=!0,O=["[","]"]),f(r)){w=` [Function${r.name?`: ${r.name}`:""}]`}return l(r)&&(w=` ${RegExp.prototype.toString.call(r)}`),p(r)&&(w=` ${Date.prototype.toUTCString.call(r)}`),_(r)&&(w=` ${d(r)}`),0!==o.length||x&&0!==r.length?i<0?l(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),m=x?function(t,e,r,s,i){const n=[];for(let i=0,o=e.length;i{i.match(/^\d+$/)||n.push(y(t,e,r,s,i,!0))}),n}(t,r,i,u,o):o.map(e=>y(t,r,i,u,e,x)),t.seen.pop(),function(t,e,r){if(t.reduce((t,e)=>t+e.replace(/\u001b\[\d\d?m/g,"").length+1,0)>60)return`${r[0]+(""===e?"":`${e}\n `)} ${t.join(",\n ")} ${r[1]}`;return`${r[0]+e} ${t.join(", ")} ${r[1]}`}(m,w,O)):O[0]+w+O[1]}function a(t){return"boolean"==typeof t}function h(t){return null===t}function g(t){return void 0===t}function l(t){return i(t)&&"[object RegExp]"===m(t)}function p(t){return i(t)&&"[object Date]"===m(t)}function _(t){return i(t)&&("[object Error]"===m(t)||t instanceof Error)}function f(t){return"function"==typeof t}function d(t){return`[${Error.prototype.toString.call(t)}]`}function y(t,e,r,s,i,n){let o,u;const a=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]};if(a.get?u=a.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):a.set&&(u=t.stylize("[Setter]","special")),hasOwnProperty(s,i)||(o=`[${i}]`),u||(t.seen.indexOf(a.value)<0?(u=h(r)?c(t,a.value,null):c(t,a.value,r-1)).indexOf("\n")>-1&&(u=n?u.split("\n").map(t=>` ${t}`).join("\n").slice(2):`\n${u.split("\n").map(t=>` ${t}`).join("\n")}`):u=t.stylize("[Circular]","special")),g(o)){if(n&&i.match(/^\d+$/))return u;(o=JSON.stringify(`${i}`)).match(/^"([a-zA-Z_]\w*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return`${o}: ${u}`}function m(t){return Object.prototype.toString.call(t)}t.exports=n},function(t,e,r){"use strict";const s=r(5),i=r(7),{checkType:n,recursiveToJSON:o}=r(6);class u{constructor(t,e){if(i(e))throw new Error("Aggregation `aggType` cannot be empty");this._name=t,this.aggType=e,this._aggs={},this._aggsDef=this._aggs[e]={},this._nestedAggs=[]}name(t){return this._name=t,this}aggregation(t){return n(t,u),this._nestedAggs.push(t),this}agg(t){return this.aggregation(t)}aggregations(t){return n(t,Array),t.forEach(t=>this.aggregation(t)),this}aggs(t){return this.aggregations(t)}meta(t){return this._aggs.meta=t,this}_aggsName(){if(!i(this._name))return this._name;if(s(this._aggsDef,"field"))return`agg_${this.aggType}_${this._aggsDef.field}`;throw new Error("Aggregation name could not be determined")}getDSL(){return this.toJSON()}toJSON(){const t=o(this._aggs);return i(this._nestedAggs)||(t.aggs=Object.assign({},...o(this._nestedAggs))),{[this._aggsName()]:t}}}t.exports=u},function(t,e,r){"use strict";const s=r(0),i=r(7);t.exports=class{constructor(t,e,r){if(i(t))throw new Error("Suggester `suggesterType` cannot be empty");if(i(e))throw new Error("Suggester `name` cannot be empty");this.name=e,this.suggesterType=t,this._body={},this._opts=this._body[e]={},this._suggestOpts=this._opts[t]={},s(r)||(this._suggestOpts.field=r)}field(t){return this._suggestOpts.field=t,this}size(t){return this._suggestOpts.size=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),i=r(12),{checkType:n,invalidParam:o,recursiveToJSON:u}=r(6),{RESCORE_MODE_SET:c}=r(18),a=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-rescore.html","score_mode",c);t.exports=class{constructor(t,e){this._body={},this._rescoreOpts=this._body.query={},s(t)||(this._body.window_size=t),s(e)||this.rescoreQuery(e)}windowSize(t){return this._body.window_size=t,this}rescoreQuery(t){return n(t,i),this._rescoreOpts.rescore_query=t,this}queryWeight(t){return this._rescoreOpts.query_weight=t,this}rescoreQueryWeight(t){return this._rescoreOpts.rescore_query_weight=t,this}scoreMode(t){s(t)&&a(t);const e=t.toLowerCase();return c.has(e)||a(t),this._rescoreOpts.score_mode=e,this}toJSON(){return u(this._body)}}},function(t,e,r){"use strict";const s=r(0);t.exports=class{constructor(t,e){if(this._isTypeSet=!1,this._body={},!s(t)&&!s(e))switch(t.toLowerCase()){case"inline":this.inline(e);break;case"source":this.source(e);break;case"stored":this.stored(e);break;case"id":this.id(e);break;case"file":this.file(e);break;default:throw new Error("`type` must be one of `inline`, `stored`, `file`")}}_warn(t){console.warn(`[Script] ${t}`)}_checkMixedRepr(){this._isTypeSet&&(this._warn("Script source(`inline`/`source`/`stored`/`id`/`file`) was already specified!"),this._warn("Overwriting."),delete this._body.inline,delete this._body.source,delete this._body.stored,delete this._body.id,delete this._body.file)}inline(t){return this._checkMixedRepr(),this._body.inline=t,this._isTypeSet=!0,this}source(t){return this._checkMixedRepr(),this._body.source=t,this._isTypeSet=!0,this}stored(t){return this._checkMixedRepr(),this._body.stored=t,this._isTypeSet=!0,this}id(t){return this._checkMixedRepr(),this._body.id=t,this._isTypeSet=!0,this}file(t){return this._checkMixedRepr(),this._body.file=t,this._isTypeSet=!0,this}lang(t){return this._body.lang=t,this}params(t){return this._body.params=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),i=r(23),n=r(24),{checkType:o,setDefault:u,recursiveToJSON:c}=r(6);t.exports=class{constructor(t){this._body={},s(t)||(this._body.name=t)}name(t){return this._body.name=t,this}from(t){return this._body.from=t,this}size(t){return this._body.size=t,this}sort(t){return o(t,i),u(this._body,"sort",[]),this._body.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}highlight(t){return o(t,n),this._body.highlight=t,this}explain(t){return this._body.explain=t,this}source(t){return this._body._source=t,this}storedFields(t){return this._body.stored_fields=t,this}scriptField(t,e){return u(this._body,"script_fields",{}),this._body.script_fields[t]={script:e},this}scriptFields(t){return o(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._body.docvalue_fields=t,this}version(t){return this._body.version=t,this}toJSON(){return c(this._body)}}},function(t,e,r){"use strict";e.MatchAllQuery=r(50),e.MatchNoneQuery=r(51),e.fullTextQueries=r(52),e.termLevelQueries=r(39),e.compoundQueries=r(72),e.joiningQueries=r(85),e.geoQueries=r(90),e.specializedQueries=r(95),e.spanQueries=r(102)},function(t,e,r){"use strict";e.MultiTermQueryBase=r(10),e.TermQuery=r(61),e.TermsQuery=r(62),e.TermsSetQuery=r(63),e.RangeQuery=r(64),e.ExistsQuery=r(65),e.PrefixQuery=r(66),e.WildcardQuery=r(67),e.RegexpQuery=r(68),e.FuzzyQuery=r(69),e.TypeQuery=r(70),e.IdsQuery=r(71)},function(t,e,r){"use strict";const s=r(5),i=r(0),{Query:n}=r(1);t.exports=class extends n{constructor(t,e,r){super(t),i(e)||(this._field=e),i(r)||(this._queryOpts.value=r)}field(t){return this._field=t,this}value(t){return this._queryOpts.value=t,this}toJSON(){if(!s(this._queryOpts,"value"))throw new Error("Value is required for term level query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.value:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}caseInsensitive(t=!0){return this._queryOpts.case_insensitive=t,this}}},function(t,e,r){"use strict";e.ScoreFunction=r(11),e.ScriptScoreFunction=r(73),e.WeightScoreFunction=r(74),e.RandomScoreFunction=r(75),e.FieldValueFactorFunction=r(76),e.DecayScoreFunction=r(77)},function(t,e,r){"use strict";const{RequestBodySearch:s,Highlight:i,Script:n,GeoPoint:o,GeoShape:u,IndexedShape:c,Sort:a,Rescore:h,InnerHits:g,SearchTemplate:l,Query:p,util:{constructorWrapper:_}}=r(1),{MatchAllQuery:f,MatchNoneQuery:d,fullTextQueries:{MatchQuery:y,MatchPhraseQuery:m,MatchPhrasePrefixQuery:w,MultiMatchQuery:x,CommonTermsQuery:O,QueryStringQuery:b,SimpleQueryStringQuery:S,CombinedFieldsQuery:v},termLevelQueries:{TermQuery:A,TermsQuery:q,TermsSetQuery:D,RangeQuery:T,ExistsQuery:Q,PrefixQuery:k,WildcardQuery:E,RegexpQuery:P,FuzzyQuery:z,TypeQuery:M,IdsQuery:F},compoundQueries:{ConstantScoreQuery:j,BoolQuery:$,DisMaxQuery:C,FunctionScoreQuery:R,BoostingQuery:N,scoreFunctions:{ScriptScoreFunction:G,WeightScoreFunction:B,RandomScoreFunction:L,FieldValueFactorFunction:H,DecayScoreFunction:I}},joiningQueries:{NestedQuery:J,HasChildQuery:W,HasParentQuery:U,ParentIdQuery:V},geoQueries:{GeoShapeQuery:Z,GeoBoundingBoxQuery:K,GeoDistanceQuery:Y,GeoPolygonQuery:X},specializedQueries:{MoreLikeThisQuery:tt,ScriptQuery:et,ScriptScoreQuery:rt,PercolateQuery:st,DistanceFeatureQuery:it,RankFeatureQuery:nt},spanQueries:{SpanTermQuery:ot,SpanMultiTermQuery:ut,SpanFirstQuery:ct,SpanNearQuery:at,SpanOrQuery:ht,SpanNotQuery:gt,SpanContainingQuery:lt,SpanWithinQuery:pt,SpanFieldMaskingQuery:_t}}=r(38),{metricsAggregations:{AvgAggregation:ft,CardinalityAggregation:dt,ExtendedStatsAggregation:yt,GeoBoundsAggregation:mt,GeoCentroidAggregation:wt,MaxAggregation:xt,MinAggregation:Ot,PercentilesAggregation:bt,PercentileRanksAggregation:St,ScriptedMetricAggregation:vt,StatsAggregation:At,SumAggregation:qt,TopHitsAggregation:Dt,ValueCountAggregation:Tt,WeightedAverageAggregation:Qt},bucketAggregations:{AdjacencyMatrixAggregation:kt,ChildrenAggregation:Et,CompositeAggregation:Pt,DateHistogramAggregation:zt,AutoDateHistogramAggregation:Mt,VariableWidthHistogramAggregation:Ft,DateRangeAggregation:jt,DiversifiedSamplerAggregation:$t,FilterAggregation:Ct,FiltersAggregation:Rt,GeoDistanceAggregation:Nt,GeoHashGridAggregation:Gt,GeoHexGridAggregation:Bt,GeoTileGridAggregation:Lt,GlobalAggregation:Ht,HistogramAggregation:It,IpRangeAggregation:Jt,MissingAggregation:Wt,NestedAggregation:Ut,ParentAggregation:Vt,RangeAggregation:Zt,RareTermsAggregation:Kt,ReverseNestedAggregation:Yt,SamplerAggregation:Xt,SignificantTermsAggregation:te,SignificantTextAggregation:ee,TermsAggregation:re},pipelineAggregations:{AvgBucketAggregation:se,DerivativeAggregation:ie,MaxBucketAggregation:ne,MinBucketAggregation:oe,SumBucketAggregation:ue,StatsBucketAggregation:ce,ExtendedStatsBucketAggregation:ae,PercentilesBucketAggregation:he,MovingAverageAggregation:ge,MovingFunctionAggregation:le,CumulativeSumAggregation:pe,BucketScriptAggregation:_e,BucketSelectorAggregation:fe,SerialDifferencingAggregation:de,BucketSortAggregation:ye},matrixAggregations:{MatrixStatsAggregation:me}}=r(112),{TermSuggester:we,DirectGenerator:xe,PhraseSuggester:Oe,CompletionSuggester:be}=r(179),Se=r(184);e.RequestBodySearch=s,e.requestBodySearch=_(s),e.Query=p,e.query=_(p),e.MatchAllQuery=f,e.matchAllQuery=_(f),e.MatchNoneQuery=d,e.matchNoneQuery=_(d),e.MatchQuery=y,e.matchQuery=_(y),e.MatchPhraseQuery=m,e.matchPhraseQuery=_(m),e.MatchPhrasePrefixQuery=w,e.matchPhrasePrefixQuery=_(w),e.MultiMatchQuery=x,e.multiMatchQuery=_(x),e.CommonTermsQuery=O,e.commonTermsQuery=_(O),e.QueryStringQuery=b,e.queryStringQuery=_(b),e.SimpleQueryStringQuery=S,e.simpleQueryStringQuery=_(S),e.CombinedFieldsQuery=v,e.combinedFieldsQuery=_(v),e.TermQuery=A,e.termQuery=_(A),e.TermsQuery=q,e.termsQuery=_(q),e.TermsSetQuery=D,e.termsSetQuery=_(D),e.RangeQuery=T,e.rangeQuery=_(T),e.ExistsQuery=Q,e.existsQuery=_(Q),e.PrefixQuery=k,e.prefixQuery=_(k),e.WildcardQuery=E,e.wildcardQuery=_(E),e.RegexpQuery=P,e.regexpQuery=_(P),e.FuzzyQuery=z,e.fuzzyQuery=_(z),e.TypeQuery=M,e.typeQuery=_(M),e.IdsQuery=F,e.idsQuery=_(F),e.ConstantScoreQuery=j,e.constantScoreQuery=_(j),e.BoolQuery=$,e.boolQuery=_($),e.DisMaxQuery=C,e.disMaxQuery=_(C),e.FunctionScoreQuery=R,e.functionScoreQuery=_(R),e.BoostingQuery=N,e.boostingQuery=_(N),e.NestedQuery=J,e.nestedQuery=_(J),e.HasChildQuery=W,e.hasChildQuery=_(W),e.HasParentQuery=U,e.hasParentQuery=_(U),e.ParentIdQuery=V,e.parentIdQuery=_(V),e.GeoShapeQuery=Z,e.geoShapeQuery=_(Z),e.GeoBoundingBoxQuery=K,e.geoBoundingBoxQuery=_(K),e.GeoDistanceQuery=Y,e.geoDistanceQuery=_(Y),e.GeoPolygonQuery=X,e.geoPolygonQuery=_(X),e.MoreLikeThisQuery=tt,e.moreLikeThisQuery=_(tt),e.ScriptQuery=et,e.scriptQuery=_(et),e.ScriptScoreQuery=rt,e.scriptScoreQuery=_(rt),e.PercolateQuery=st,e.percolateQuery=_(st),e.DistanceFeatureQuery=it,e.distanceFeatureQuery=_(it),e.RankFeatureQuery=nt,e.rankFeatureQuery=_(nt),e.SpanTermQuery=ot,e.spanTermQuery=_(ot),e.SpanMultiTermQuery=ut,e.spanMultiTermQuery=_(ut),e.SpanFirstQuery=ct,e.spanFirstQuery=_(ct),e.SpanNearQuery=at,e.spanNearQuery=_(at),e.SpanOrQuery=ht,e.spanOrQuery=_(ht),e.SpanNotQuery=gt,e.spanNotQuery=_(gt),e.SpanContainingQuery=lt,e.spanContainingQuery=_(lt),e.SpanWithinQuery=pt,e.spanWithinQuery=_(pt),e.SpanFieldMaskingQuery=_t,e.spanFieldMaskingQuery=_(_t),e.AvgAggregation=ft,e.avgAggregation=_(ft),e.WeightedAverageAggregation=Qt,e.weightedAverageAggregation=_(Qt),e.CardinalityAggregation=dt,e.cardinalityAggregation=_(dt),e.ExtendedStatsAggregation=yt,e.extendedStatsAggregation=_(yt),e.GeoBoundsAggregation=mt,e.geoBoundsAggregation=_(mt),e.GeoCentroidAggregation=wt,e.geoCentroidAggregation=_(wt),e.MaxAggregation=xt,e.maxAggregation=_(xt),e.MinAggregation=Ot,e.minAggregation=_(Ot),e.PercentilesAggregation=bt,e.percentilesAggregation=_(bt),e.PercentileRanksAggregation=St,e.percentileRanksAggregation=_(St),e.ScriptedMetricAggregation=vt,e.scriptedMetricAggregation=_(vt),e.StatsAggregation=At,e.statsAggregation=_(At),e.SumAggregation=qt,e.sumAggregation=_(qt),e.TopHitsAggregation=Dt,e.topHitsAggregation=_(Dt),e.ValueCountAggregation=Tt,e.valueCountAggregation=_(Tt),e.AdjacencyMatrixAggregation=kt,e.adjacencyMatrixAggregation=_(kt),e.ChildrenAggregation=Et,e.childrenAggregation=_(Et),e.CompositeAggregation=Pt,e.compositeAggregation=_(Pt),e.DateHistogramAggregation=zt,e.dateHistogramAggregation=_(zt),e.AutoDateHistogramAggregation=Mt,e.autoDateHistogramAggregation=_(Mt),e.VariableWidthHistogramAggregation=Ft,e.variableWidthHistogramAggregation=_(Ft),e.DateRangeAggregation=jt,e.dateRangeAggregation=_(jt),e.DiversifiedSamplerAggregation=$t,e.diversifiedSamplerAggregation=_($t),e.FilterAggregation=Ct,e.filterAggregation=_(Ct),e.FiltersAggregation=Rt,e.filtersAggregation=_(Rt),e.GeoDistanceAggregation=Nt,e.geoDistanceAggregation=_(Nt),e.GeoHashGridAggregation=Gt,e.geoHashGridAggregation=_(Gt),e.GeoHexGridAggregation=Bt,e.geoHexGridAggregation=_(Bt),e.GeoTileGridAggregation=Lt,e.geoTileGridAggregation=_(Lt),e.GlobalAggregation=Ht,e.globalAggregation=_(Ht),e.HistogramAggregation=It,e.histogramAggregation=_(It),e.IpRangeAggregation=Jt,e.ipRangeAggregation=_(Jt),e.MissingAggregation=Wt,e.missingAggregation=_(Wt),e.NestedAggregation=Ut,e.nestedAggregation=_(Ut),e.ParentAggregation=Vt,e.parentAggregation=_(Vt),e.RangeAggregation=Zt,e.rangeAggregation=_(Zt),e.RareTermsAggregation=Kt,e.rareTermsAggregation=_(Kt),e.ReverseNestedAggregation=Yt,e.reverseNestedAggregation=_(Yt),e.SamplerAggregation=Xt,e.samplerAggregation=_(Xt),e.SignificantTermsAggregation=te,e.significantTermsAggregation=_(te),e.SignificantTextAggregation=ee,e.significantTextAggregation=_(ee),e.TermsAggregation=re,e.termsAggregation=_(re),e.AvgBucketAggregation=se,e.avgBucketAggregation=_(se),e.DerivativeAggregation=ie,e.derivativeAggregation=_(ie),e.MaxBucketAggregation=ne,e.maxBucketAggregation=_(ne),e.MinBucketAggregation=oe,e.minBucketAggregation=_(oe),e.BucketSortAggregation=ye,e.bucketSortAggregation=_(ye),e.SumBucketAggregation=ue,e.sumBucketAggregation=_(ue),e.StatsBucketAggregation=ce,e.statsBucketAggregation=_(ce),e.ExtendedStatsBucketAggregation=ae,e.extendedStatsBucketAggregation=_(ae),e.PercentilesBucketAggregation=he,e.percentilesBucketAggregation=_(he),e.MovingAverageAggregation=ge,e.movingAverageAggregation=_(ge),e.MovingFunctionAggregation=le,e.movingFunctionAggregation=_(le),e.CumulativeSumAggregation=pe,e.cumulativeSumAggregation=_(pe),e.BucketScriptAggregation=_e,e.bucketScriptAggregation=_(_e),e.BucketSelectorAggregation=fe,e.bucketSelectorAggregation=_(fe),e.SerialDifferencingAggregation=de,e.serialDifferencingAggregation=_(de),e.MatrixStatsAggregation=me,e.matrixStatsAggregation=_(me),e.ScriptScoreFunction=G,e.scriptScoreFunction=_(G),e.WeightScoreFunction=B,e.weightScoreFunction=_(B),e.RandomScoreFunction=L,e.randomScoreFunction=_(L),e.FieldValueFactorFunction=H,e.fieldValueFactorFunction=_(H),e.DecayScoreFunction=I,e.decayScoreFunction=_(I),e.TermSuggester=we,e.termSuggester=_(we),e.DirectGenerator=xe,e.directGenerator=_(xe),e.PhraseSuggester=Oe,e.phraseSuggester=_(Oe),e.CompletionSuggester=be,e.completionSuggester=_(be),e.recipes=Se,e.cookMissingQuery=Se.missingQuery,e.cookRandomSortQuery=Se.randomSortQuery,e.cookFilterQuery=Se.filterQuery,e.Highlight=i,e.highlight=_(i),e.Script=n,e.script=_(n),e.GeoPoint=o,e.geoPoint=_(o),e.GeoShape=u,e.geoShape=_(u),e.IndexedShape=c,e.indexedShape=_(c),e.Sort=a,e.sort=_(a),e.Rescore=h,e.rescore=_(h),e.InnerHits=g,e.innerHits=_(g),e.SearchTemplate=l,e.searchTemplate=_(l),e.prettyPrint=function(t){console.log(JSON.stringify(t,null,2))}},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(7),o=r(12),u=r(33),c=r(34),a=r(35),h=r(23),g=r(24),l=r(37),{checkType:p,setDefault:_,recursiveToJSON:f}=r(6);function d(t){return Object.assign({},...f(t))}t.exports=class{constructor(){this._body={},this._aggs=[],this._suggests=[],this._suggestText=null}query(t){return p(t,o),this._body.query=t,this}agg(t){return this.aggregation(t)}aggregation(t){return p(t,u),this._aggs.push(t),this}aggs(t){return this.aggregations(t)}aggregations(t){return p(t,Array),t.forEach(t=>this.aggregation(t)),this}suggest(t){return p(t,c),this._suggests.push(t),this}suggestText(t){return this._suggestText=t,this}timeout(t){return this._body.timeout=t,this}from(t){return this._body.from=t,this}size(t){return this._body.size=t,this}terminateAfter(t){return this._body.terminate_after=t,this}sort(t){return p(t,h),_(this._body,"sort",[]),this._body.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}trackScores(t){return this._body.track_scores=t,this}trackTotalHits(t){return this._body.track_total_hits=t,this}source(t){return this._body._source=t,this}storedFields(t){return this._body.stored_fields=t,this}scriptField(t,e){return _(this._body,"script_fields",{}),this._body.script_fields[t]={script:e},this}scriptFields(t){return p(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._body.docvalue_fields=t,this}postFilter(t){return p(t,o),this._body.post_filter=t,this}highlight(t){return p(t,g),this._body.highlight=t,this}rescore(t){return p(t,a),s(this._body,"rescore")?(Array.isArray(this._body.rescore)||(this._body.rescore=[this._body.rescore]),this._body.rescore.push(t)):this._body.rescore=t,this}explain(t){return this._body.explain=t,this}version(t){return this._body.version=t,this}indexBoost(t,e){return this.indicesBoost(t,e)}indicesBoost(t,e){return _(this._body,"indices_boost",[]),this._body.indices_boost.push({[t]:e}),this}minScore(t){return this._body.min_score=t,this}collapse(t,e,r){const s=this._body.collapse={field:t};return i(e)||(p(e,l),s.inner_hits=e,s.max_concurrent_group_searches=r),this}searchAfter(t){return this._body.search_after=t,this}toJSON(){const t=f(this._body);return n(this._aggs)||(t.aggs=d(this._aggs)),n(this._suggests)&&i(this._suggestText)||(t.suggest=d(this._suggests),i(this._suggestText)||(t.suggest.text=this._suggestText)),t}}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){(function(e){var r="Expected a function",s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,l=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,y="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,w=y||m||Function("return this")();var x=Array.prototype,O=Function.prototype,b=Object.prototype,S=w["__core-js_shared__"],v=function(){var t=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),A=O.toString,q=b.hasOwnProperty,D=b.toString,T=RegExp("^"+A.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=w.Symbol,k=b.propertyIsEnumerable,E=x.splice,P=L(w,"Map"),z=L(Object,"create"),M=Q?Q.prototype:void 0,F=M?M.toString:void 0;function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e-1&&t%1==0&&t-1},$.prototype.set=function(t,e){var r=this.__data__,s=R(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},C.prototype.clear=function(){this.__data__={hash:new j,map:new(P||$),string:new j}},C.prototype.delete=function(t){return B(this,t).delete(t)},C.prototype.get=function(t){return B(this,t).get(t)},C.prototype.has=function(t){return B(this,t).has(t)},C.prototype.set=function(t,e){return B(this,t).set(t,e),this};var I=W(function(t){t=function(t){return null==t?"":function(t){if("string"==typeof t)return t;if(tt(t))return F?F.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(t)}(t);var e=[];return l.test(t)&&e.push(""),t.replace(p,function(t,r,s,i){e.push(s?i.replace(_,"$1"):r||t)}),e});function J(t){if("string"==typeof t||tt(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function W(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var s=function(){var r=arguments,i=e?e.apply(this,r):r[0],n=s.cache;if(n.has(i))return n.get(i);var o=t.apply(this,r);return s.cache=n.set(i,o),o};return s.cache=new(W.Cache||C),s}function U(t,e){return t===e||t!=t&&e!=e}W.Cache=C;var V=Array.isArray;function Z(t){var e=Y(t)?D.call(t):"";return e==u||e==c}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function X(t){return!!t&&"object"==typeof t}function tt(t){return"symbol"==typeof t||X(t)&&D.call(t)==a}t.exports=function(t,e){return null!=t&&H(t,e,N)}}).call(this,r(17))},function(t,e,r){"use strict";const s=r(13),i=r(0),{checkType:n}=r(6);t.exports=class{constructor(){this._point=null}_warn(t){console.warn(`[GeoPoint] ${t}`)}_warnMixedRepr(){this._warn("Do not mix with other representation!"),this._warn("Overwriting.")}_checkObjRepr(){i(this._point)?this._point={}:s(this._point)||(this._warnMixedRepr(),this._point={})}lat(t){return this._checkObjRepr(),this._point.lat=t,this}lon(t){return this._checkObjRepr(),this._point.lon=t,this}object(t){return n(t,Object),!i(this._point)&&this._warnMixedRepr(),this._point=t,this}array(t){return n(t,Array),!i(this._point)&&this._warnMixedRepr(),this._point=t,this}string(t){return!i(this._point)&&this._warnMixedRepr(),this._point=t,this}toJSON(){return this._point}}},function(t,e,r){"use strict";const s=r(0),i=r(5),{checkType:n,invalidParam:o}=r(6),{GEO_SHAPE_TYPES:u}=r(18),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-shape.html","type",u);t.exports=class{constructor(t,e){this._body={},s(t)||this.type(t),s(e)||this.coordinates(e)}type(t){s(t)&&c(t);const e=t.toLowerCase();return u.has(e)||c(t),this._body.type=e,this}coordinates(t){return n(t,Array),this._body.coordinates=t,this}radius(t){return this._body.radius=t,this}toJSON(){if(!i(this._body,"type")||!i(this._body,"coordinates"))throw new Error("For all types, both the inner `type` and `coordinates` fields are required.");return this._body}}},function(t,e,r){"use strict";const s=r(0);t.exports=class{constructor(t,e){this._body={},s(t)||(this._body.id=t),s(e)||(this._body.type=e)}id(t){return this._body.id=t,this}type(t){return this._body.type=t,this}index(t){return this._body.index=t,this}path(t){return this._body.path=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),{recursiveToJSON:i}=r(6);t.exports=class{constructor(t,e){if(this._isTypeSet=!1,this._body={},!s(t)&&!s(e)){const r=t.toLowerCase();if("inline"!==r&&"id"!==r&&"indexed"!==r&&"file"!==r)throw new Error("`type` must be one of `inline`, `id`, `indexed`, `file`");this[r](e)}}_warn(t){console.warn(`[SearchTemplate] ${t}`)}_checkMixedRepr(){this._isTypeSet&&(this._warn("Search template source(`inline`/`id`/`file`) was already specified!"),this._warn("Overwriting."),delete this._body.file,delete this._body.id,delete this._body.file)}_setSource(t,e){return this._checkMixedRepr(),this._body[t]=e,this._isTypeSet=!0,this}inline(t){return this._setSource("inline",t)}id(t){return this._setSource("id",t)}indexed(t){return this.id(t)}file(t){return this._setSource("file",t)}params(t){return this._body.params=t,this}toJSON(){return i(this._body)}}},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{constructor(){super("match_all")}}},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{constructor(){super("match_none")}}},function(t,e,r){"use strict";e.FullTextQueryBase=r(14),e.MatchPhraseQueryBase=r(25),e.MonoFieldQueryBase=r(19),e.QueryStringQueryBase=r(26),e.MatchQuery=r(53),e.MatchPhraseQuery=r(54),e.MatchPhrasePrefixQuery=r(55),e.MultiMatchQuery=r(56),e.CommonTermsQuery=r(57),e.QueryStringQuery=r(58),e.SimpleQueryStringQuery=r(59),e.CombinedFieldsQuery=r(60)},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i}}=r(1),n=r(19),{validateRewiteMethod:o}=r(9),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html",c=i(u,"operator","'and' or 'or'"),a=i(u,"zero_terms_query","'all' or 'none'");t.exports=class extends n{constructor(t,e){super("match",t,e)}operator(t){s(t)&&c(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&c(t),this._queryOpts.operator=e,this}lenient(t){return this._queryOpts.lenient=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}rewrite(t){return o(t,"rewrite",u),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return o(t,"fuzzy_rewrite",u),this._queryOpts.fuzzy_rewrite=t,this}fuzzyTranspositions(t){return this._queryOpts.fuzzy_transpositions=t,this}zeroTermsQuery(t){s(t)&&a(t);const e=t.toLowerCase();return"all"!==e&&"none"!==e&&a(t),this._queryOpts.zero_terms_query=e,this}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}}},function(t,e,r){"use strict";const s=r(25),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase.html";t.exports=class extends s{constructor(t,e){super("match_phrase",i,t,e)}}},function(t,e,r){"use strict";const s=r(25),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase-prefix.html";t.exports=class extends s{constructor(t,e){super("match_phrase_prefix",i,t,e)}maxExpansions(t){return this._queryOpts.max_expansions=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i,invalidParam:n},consts:{MULTI_MATCH_TYPE:o}}=r(1),u=r(14),{validateRewiteMethod:c}=r(9),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html",h=n(a,"type",o),g=n(a,"operator","'and' or 'or'"),l=n(a,"behavior","'all' or 'none'");t.exports=class extends u{constructor(t,e){super("multi_match",e),this._queryOpts.fields=[],s(t)||(Array.isArray(t)?this.fields(t):this.field(t))}field(t){return this._queryOpts.fields.push(t),this}fields(t){return i(t,Array),this._queryOpts.fields=this._queryOpts.fields.concat(t),this}type(t){s(t)&&h(t);const e=t.toLowerCase();return o.has(e)||h(t),this._queryOpts.type=e,this}tieBreaker(t){return this._queryOpts.tie_breaker=t,this}operator(t){s(t)&&g(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&g(t),this._queryOpts.operator=e,this}lenient(t){return this._queryOpts.lenient=t,this}slop(t){return this._queryOpts.slop=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}rewrite(t){return c(t,"rewrite",a),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return c(t,"fuzzy_rewrite",a),this._queryOpts.fuzzy_rewrite=t,this}zeroTermsQuery(t){s(t)&&l(t);const e=t.toLowerCase();return"all"!==e&&"none"!==e&&l(t),this._queryOpts.zero_terms_query=t,this}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(13),{util:{invalidParam:n,setDefault:o}}=r(1),u=r(19),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-common-terms-query.html",a=n(c,"low_freq_operator","'and' or 'or'"),h=n(c,"high_freq_operator","'and' or 'or'");t.exports=class extends u{constructor(t,e){super("common",t,e)}_warn(t){console.warn(`[CommonTermsQuery] ${t}`)}_warnMixedRepr(){this._warn("Do not mix with other representation!"),this._warn("Overwriting.")}_checkMinMatchRepr(){o(this._queryOpts,"minimum_should_match",{})||i(this._queryOpts.minimum_should_match)||(this._warnMixedRepr(),this._queryOpts.minimum_should_match={})}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}lowFreqOperator(t){s(t)&&a(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&a(t),this._queryOpts.low_freq_operator=e,this}highFreqOperator(t){s(t)&&h(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&h(t),this._queryOpts.high_freq_operator=e,this}lowFreq(t){return this._checkMinMatchRepr(),this._queryOpts.minimum_should_match.low_freq=t,this}highFreq(t){return this._checkMinMatchRepr(),this._queryOpts.minimum_should_match.high_freq=t,this}disableCoord(t){return this._queryOpts.disable_coord=t,this}}},function(t,e,r){"use strict";const s=r(26),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html";t.exports=class extends s{constructor(t){super("query_string",n,t)}defaultField(t){return this._queryOpts.default_field=t,this}allowLeadingWildcard(t){return this._queryOpts.allow_leading_wildcard=t,this}enablePositionIncrements(t){return this._queryOpts.enable_position_increments=t,this}fuzzyMaxExpansions(t){return this._queryOpts.fuzzy_max_expansions=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}fuzzyPrefixLength(t){return this._queryOpts.fuzzy_prefix_length=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return i(t,"fuzzy_rewrite",n),this._queryOpts.fuzzy_rewrite=t,this}phraseSlop(t){return this._queryOpts.phrase_slop=t,this}autoGeneratePhraseQueries(t){return this._queryOpts.auto_generate_phrase_queries=t,this}maxDeterminizedStates(t){return this._queryOpts.max_determinized_states=t,this}timeZone(t){return this._queryOpts.time_zone=t,this}splitOnWhitespace(t){return this._queryOpts.split_on_whitespace=t,this}useDisMax(t){return this._queryOpts.use_dis_max=t,this}tieBreaker(t){return this._queryOpts.tie_breaker=t,this}quoteAnalyzer(t){return this._queryOpts.quote_analyzer=t,this}escape(t){return this._queryOpts.escape=t,this}}},function(t,e,r){"use strict";const s=r(26),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html";t.exports=class extends s{constructor(t){super("simple_query_string",i,t)}flags(t){return this._queryOpts.flags=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i,invalidParam:n}}=r(1),o=r(14),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-combined-fields-query.html",c=n(u,"operator","'and' or 'or'"),a=n(u,"zero_terms_query","'all' or 'none'");t.exports=class extends o{constructor(t,e){super("combined_fields",e),this._queryOpts.fields=[],s(t)||(Array.isArray(t)?this.fields(t):this.field(t))}field(t){return this._queryOpts.fields.push(t),this}fields(t){return i(t,Array),this._queryOpts.fields=this._queryOpts.fields.concat(t),this}autoGenerateSynonymsPhraseQuery(t){return this._queryOpts.auto_generate_synonyms_phrase_query=t,this}operator(t){s(t)&&c(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&c(t),this._queryOpts.operator=e,this}zeroTermsQuery(t){s(t)&&a(t);const e=t.toLowerCase();return"all"!==e&&"none"!==e&&a(t),this._queryOpts.zero_terms_query=e,this}}},function(t,e,r){"use strict";const s=r(40);t.exports=class extends s{constructor(t,e){super("term",t,e)}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),{Query:n}=r(1);t.exports=class extends n{constructor(t,e){super("terms"),this._isTermsLookup=!1,this._termsLookupOpts={},this._values=[],s(t)||(this._field=t),s(e)||(Array.isArray(e)?this.values(e):this.value(e))}_setTermsLookupOpt(t,e){this._isTermsLookup=!0,this._termsLookupOpts[t]=e}field(t){return this._field=t,this}value(t){return this._values.push(t),this}values(t){return i(t,Array),this._values=this._values.concat(t),this}termsLookup(t){return i(t,Object),this._isTermsLookup=!0,Object.assign(this._termsLookupOpts,t),this}index(t){return this._setTermsLookupOpt("index",t),this}type(t){return this._setTermsLookupOpt("type",t),this}id(t){return this._setTermsLookupOpt("id",t),this}path(t){return this._setTermsLookupOpt("path",t),this}routing(t){return this._setTermsLookupOpt("routing",t),this}toJSON(){return{[this.queryType]:Object.assign({},this._queryOpts,{[this._field]:this._isTermsLookup?this._termsLookupOpts:this._values})}}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super("terms_set"),this._queryOpts.terms=[],s(t)||(this._field=t),s(e)||(Array.isArray(e)?this.terms(e):this.term(e))}field(t){return this._field=t,this}term(t){return this._queryOpts.terms.push(t),this}terms(t){return n(t,Array),this._queryOpts.terms=this._queryOpts.terms.concat(t),this}minimumShouldMatchField(t){return this._queryOpts.minimum_should_match_field=t,this}minimumShouldMatchScript(t){return this._queryOpts.minimum_should_match_script=t,this}toJSON(){return{[this.queryType]:{[this._field]:this._queryOpts}}}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{GEO_RELATION_SET:n}}=r(1),o=r(10),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html",c=i(u,"relation",n);t.exports=class extends o{constructor(t){super("range",t)}value(){throw console.log(`Please refer ${u}`),new Error("value is not supported in RangeQuery")}gte(t){return this._queryOpts.gte=t,this}lte(t){return this._queryOpts.lte=t,this}gt(t){return this._queryOpts.gt=t,this}lt(t){return this._queryOpts.lt=t,this}from(t){return this._queryOpts.from=t,this}to(t){return this._queryOpts.to=t,this}includeLower(t){return this._queryOpts.include_lower=t,this}includeUpper(t){return this._queryOpts.include_upper=t,this}timeZone(t){return this._queryOpts.time_zone=t,this}format(t){return this._queryOpts.format=t,this}relation(t){s(t)&&c(t);const e=t.toUpperCase();return n.has(e)||c(t),this._queryOpts.relation=e,this}toJSON(){return{[this.queryType]:{[this._field]:this._queryOpts}}}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("exists"),s(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-prefix-query.html";t.exports=class extends s{constructor(t,e){super("prefix",t,e)}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html";t.exports=class extends s{constructor(t,e){super("wildcard",t,e)}caseInsensitive(t){return this._queryOpts.case_insensitive=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html";t.exports=class extends s{constructor(t,e){super("regexp",t,e)}flags(t){return this._queryOpts.flags=t,this}caseInsensitive(t){return this._queryOpts.case_insensitive=t,this}maxDeterminizedStates(t){return this._queryOpts.max_determinized_states=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10);t.exports=class extends s{constructor(t,e){super("fuzzy",t,e)}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}transpositions(t){return this._queryOpts.transpositions=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("type"),s(t)||(this._queryOpts.value=t)}value(t){return this._queryOpts.value=t,this}type(t){return this.value(t)}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super("ids"),s(t)||(this._queryOpts.type=t),s(e)||this.values(e)}type(t){return this._queryOpts.type=t,this}values(t){return n(t,Array),this._queryOpts.values=t,this}ids(t){return this.values(t)}}},function(t,e,r){"use strict";e.scoreFunctions=r(41),e.ConstantScoreQuery=r(78),e.BoolQuery=r(79),e.DisMaxQuery=r(82),e.FunctionScoreQuery=r(83),e.BoostingQuery=r(84)},function(t,e,r){"use strict";const s=r(0),i=r(11);t.exports=class extends i{constructor(t){super("script_score"),s(t)||(this._opts.script=t)}script(t){return this._opts.script=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(11),{util:{recursiveToJSON:n}}=r(1);t.exports=class extends i{constructor(t){super(null),s(t)||(this._body.weight=t)}toJSON(){return n(this._body)}}},function(t,e,r){"use strict";const s=r(11);t.exports=class extends s{constructor(){super("random_score")}seed(t){return this._opts.seed=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{FIELD_MODIFIER_SET:n}}=r(1),o=r(11),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-field-value-factor","modifier",n);t.exports=class extends o{constructor(t){super("field_value_factor"),s(t)||(this._opts.field=t)}field(t){return this._opts.field=t,this}factor(t){return this._opts.factor=t,this}modifier(t){s(t)&&u(t);const e=t.toLowerCase();return n.has(e)||u(t),this._opts.modifier=e,this}missing(t){return this._opts.missing=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i,recursiveToJSON:n}}=r(1),o=r(11),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-decay","mode","'linear', 'exp' or 'gauss'");t.exports=class extends o{constructor(t="gauss",e){super(t),s(e)||(this._field=e)}mode(t){s(t)&&u(t);const e=t.toLowerCase();return"linear"!==e&&"exp"!==e&&"gauss"!==e&&u(t),this._name=t,this}linear(){return this._name="linear",this}exp(){return this._name="exp",this}gauss(){return this._name="gauss",this}field(t){return this._field=t,this}origin(t){return this._opts.origin=t,this}scale(t){return this._opts.scale=t,this}offset(t){return this._opts.offset=t,this}decay(t){return this._opts.decay=t,this}toJSON(){const t=Object.assign({[this._name]:{[this._field]:this._opts}},this._body);return n(t)}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t){super("constant_score"),s(t)||this.filter(t)}filter(t){return n(t,i),this._queryOpts.filter=t,this}query(t){return this.filter(t)}}},function(t,e,r){"use strict";const s=r(5),i=r(80),n=r(81),{Query:o,util:{checkType:u,setDefault:c,recursiveToJSON:a}}=r(1);t.exports=class extends o{constructor(){super("bool")}_addQuery(t,e){u(e,o),this._queryOpts[t].push(e)}_addQueries(t,e){c(this._queryOpts,t,[]),Array.isArray(e)?e.forEach(e=>this._addQuery(t,e)):this._addQuery(t,e)}must(t){return this._addQueries("must",t),this}filter(t){return this._addQueries("filter",t),this}mustNot(t){return this._addQueries("must_not",t),this}should(t){return this._addQueries("should",t),this}disableCoord(t){return this._queryOpts.disable_coord=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}adjustPureNegative(t){return this._queryOpts.adjust_pure_negative=t,this}toJSON(){const t=["must","filter","must_not","should"],e=t.filter(t=>s(this._queryOpts,t)).reduce((t,e)=>{const r=this._queryOpts[e];return t[e]=a(1===r.length?i(r):r),t},n(this._queryOpts,t));return{[this.queryType]:e}}}},function(t,e){t.exports=function(t){return t&&t.length?t[0]:void 0}},function(t,e,r){(function(e){var r=200,s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,l="object"==typeof e&&e&&e.Object===Object&&e,p="object"==typeof self&&self&&self.Object===Object&&self,_=l||p||Function("return this")();function f(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,s){var i=t.length,n=r+(s?1:-1);for(;s?n--:++n-1}function d(t,e,r){for(var s=-1,i=t?t.length:0;++s-1},G.prototype.set=function(t,e){var r=this.__data__,s=I(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},B.prototype.clear=function(){this.__data__={hash:new N,map:new(C||G),string:new N}},B.prototype.delete=function(t){return V(this,t).delete(t)},B.prototype.get=function(t){return V(this,t).get(t)},B.prototype.has=function(t){return V(this,t).has(t)},B.prototype.set=function(t,e){return V(this,t).set(t,e),this},L.prototype.add=L.prototype.push=function(t){return this.__data__.set(t,s),this},L.prototype.has=function(t){return this.__data__.has(t)};var K=j?O(j,Object):gt,Y=j?function(t){for(var e=[];t;)m(e,K(t)),t=P(t);return e}:gt;function X(t){return it(t)||st(t)||!!(F&&t&&t[F])}function tt(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||g.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!ot(t)}function ot(t){var e=ut(t)?Q.call(t):"";return e==u||e==c}function ut(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ct(t){return!!t&&"object"==typeof t}function at(t){return nt(t)?H(t,!0):W(t)}var ht=function(t,e){return e=$(void 0===e?t.length-1:e,0),function(){for(var r=arguments,s=-1,i=$(r.length-e,0),n=Array(i);++s0&&s(c)?r>1?t(c,r-1,s,i,n):m(n,c):i||(n[n.length]=c)}return n}(e,1),et),function(t,e){return function(t,e,r){for(var s=-1,i=e.length,n={};++s=r&&(o=x,u=!1,e=new L(e));t:for(;++nthis._addQuery(t)):this._addQuery(t),this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n,invalidParam:o},consts:{SCORE_MODE_SET:u,BOOST_MODE_SET:c}}=r(1),{ScoreFunction:a}=r(41),h="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html",g=o(h,"score_mode",u),l=o(h,"boost_mode",c);t.exports=class extends i{constructor(){super("function_score"),this._queryOpts.functions=[]}query(t){return n(t,i),this._queryOpts.query=t,this}scoreMode(t){s(t)&&g(t);const e=t.toLowerCase();return u.has(e)||g(t),this._queryOpts.score_mode=t,this}boostMode(t){s(t)&&l(t);const e=t.toLowerCase();return c.has(e)||l(t),this._queryOpts.boost_mode=e,this}maxBoost(t){return this._queryOpts.max_boost=t,this}minScore(t){return this._queryOpts.min_score=t,this}function(t){return n(t,a),this._queryOpts.functions.push(t),this}functions(t){return n(t,Array),t.forEach(t=>this.function(t)),this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e,r){super("boosting"),s(t)||this.positive(t),s(e)||this.negative(e),s(r)||(this._queryOpts.negative_boost=r)}positive(t){return n(t,i),this._queryOpts.positive=t,this}negative(t){return n(t,i),this._queryOpts.negative=t,this}negativeBoost(t){return this._queryOpts.negative_boost=t,this}}},function(t,e,r){"use strict";e.JoiningQueryBase=r(20),e.NestedQuery=r(86),e.HasChildQuery=r(87),e.HasParentQuery=r(88),e.ParentIdQuery=r(89)},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html";t.exports=class extends i{constructor(t,e){super("nested",n,t),s(e)||(this._queryOpts.path=e)}path(t){return this._queryOpts.path=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-child-query.html";t.exports=class extends i{constructor(t,e){super("has_child",n,t),s(e)||(this._queryOpts.type=e)}type(t){return this._queryOpts.type=t,this}childType(t){return console.warn("[HasChildQuery] Field `child_type` is deprecated. Use `type` instead."),this.type(t)}minChildren(t){return this._queryOpts.min_children=t,this}maxChildren(t){return this._queryOpts.max_children=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-parent-query.html";t.exports=class extends i{constructor(t,e){super("has_parent",n,t),s(e)||(this._queryOpts.parent_type=e)}scoreMode(){throw console.log("`score_mode` is deprecated. Use `score` instead"),console.log(`Please refer ${n}`),new Error("scoreMode is not supported in HasParentQuery")}type(t){return this.parentType(t)}parentType(t){return this._queryOpts.parent_type=t,this}score(t){return this._queryOpts.score=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t,e){super("parent_id"),s(t)||(this._queryOpts.type=t),s(e)||(this._queryOpts.id=e)}type(t){return this._queryOpts.type=t,this}id(t){return this._queryOpts.id=t,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}}},function(t,e,r){"use strict";e.GeoQueryBase=r(15),e.GeoShapeQuery=r(91),e.GeoBoundingBoxQuery=r(92),e.GeoDistanceQuery=r(93),e.GeoPolygonQuery=r(94)},function(t,e,r){"use strict";const s=r(0),{GeoShape:i,IndexedShape:n,util:{checkType:o,invalidParam:u},consts:{GEO_RELATION_SET:c}}=r(1),a=r(15),h="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-query.html",g=u(h,"relation",c);t.exports=class extends a{constructor(t){super("geo_shape",t)}validationMethod(){throw console.log(`Please refer ${h}`),new Error("validationMethod is not supported in GeoShapeQuery")}shape(t){return o(t,i),this._fieldOpts.shape=t,this}indexedShape(t){return o(t,n),this._fieldOpts.indexed_shape=t,this}relation(t){s(t)&&g(t);const e=t.toUpperCase();return c.has(e)||g(t),this._fieldOpts.relation=e,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o}}=r(1),u=r(15),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-bounding-box-query.html","type","'memory' or 'indexed'");t.exports=class extends u{constructor(t){super("geo_bounding_box",t)}topLeft(t){return n(t,i),this._fieldOpts.top_left=t,this}bottomRight(t){return n(t,i),this._fieldOpts.bottom_right=t,this}topRight(t){return n(t,i),this._fieldOpts.top_right=t,this}bottomLeft(t){return n(t,i),this._fieldOpts.bottom_left=t,this}top(t){return this._fieldOpts.top=t,this}left(t){return this._fieldOpts.left=t,this}bottom(t){return this._fieldOpts.bottom=t,this}right(t){return this._fieldOpts.right=t,this}type(t){s(t)&&c(t);const e=t.toLowerCase();return"memory"!==e&&"indexed"!==e&&c(t),this._queryOpts.type=e,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o}}=r(1),u=r(15),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-query.html","distance_type","'plane' or 'arc'");t.exports=class extends u{constructor(t,e){super("geo_distance",t),s(e)||this.geoPoint(e)}distance(t){return this._queryOpts.distance=t,this}distanceType(t){s(t)&&c(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&c(t),this._queryOpts.distance_type=e,this}geoPoint(t){return n(t,i),this._fieldOpts=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(15);t.exports=class extends i{constructor(t){super("geo_polygon",t)}points(t){return s(t,Array),this._fieldOpts.points=t,this}}},function(t,e,r){"use strict";e.MoreLikeThisQuery=r(96),e.ScriptQuery=r(97),e.ScriptScoreQuery=r(98),e.PercolateQuery=r(99),e.DistanceFeatureQuery=r(100),e.RankFeatureQuery=r(101)},function(t,e,r){"use strict";const s=r(5),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(){super("more_like_this")}_setSearchClause(t,e){Array.isArray(e)?this._queryOpts[t]=e:s(this._queryOpts,t)?(Array.isArray(this._queryOpts[t])||(this._queryOpts[t]=[this._queryOpts[t]]),this._queryOpts[t].push(e)):this._queryOpts[t]=e}fields(t){return n(t,Array),this._queryOpts.fields=t,this}like(t){return this._setSearchClause("like",t),this}unlike(t){return this._setSearchClause("unlike",t),this}likeText(t){return this._queryOpts.like_text=t,this}ids(t){return n(t,Array),this._queryOpts.ids=t,this}docs(t){return n(t,Array),this._queryOpts.docs=t,this}maxQueryTerms(t){return this._queryOpts.max_query_terms=t,this}minTermFreq(t){return this._queryOpts.min_term_freq=t,this}minDocFreq(t){return this._queryOpts.min_doc_freq=t,this}maxDocFreq(t){return this._queryOpts.max_doc_freq=t,this}minWordLength(t){return this._queryOpts.min_word_length=t,this}maxWordLength(t){return this._queryOpts.max_word_length=t,this}stopWords(t){return this._queryOpts.stop_words=t,this}analyzer(t){return this._queryOpts.analyzer=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}boostTerms(t){return this._queryOpts.boost_terms=t,this}include(t){return this._queryOpts.include=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t){super("script"),s(t)||this.script(t)}script(t){return o(t,n),this._queryOpts.script=t,this}}},function(t,e,r){"use strict";const{Query:s,Script:i,util:{checkType:n}}=r(1);t.exports=class extends s{constructor(){super("script_score")}query(t){return n(t,s),this._queryOpts.query=t,this}script(t){return n(t,i),this._queryOpts.script=t,this}minScore(t){return this._queryOpts.min_score=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i},Query:n}=r(1);t.exports=class extends n{constructor(t,e){super("percolate"),this._queryOpts.documents=[],s(t)||(this._queryOpts.field=t),s(e)||(this._queryOpts.document_type=e)}field(t){return this._queryOpts.field=t,this}documentType(t){return this._queryOpts.document_type=t,this}document(t){return this._queryOpts.documents.push(t),this}documents(t){return i(t,Array),this._queryOpts.documents=this._queryOpts.documents.concat(t),this}index(t){return this._queryOpts.index=t,this}type(t){return this._queryOpts.type=t,this}id(t){return this._queryOpts.id=t,this}routing(t){return this._queryOpts.routing=t,this}preference(t){return this._queryOpts.preference=t,this}version(t){return this._queryOpts.version=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("distance_feature"),s(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}origin(t){return this._queryOpts.origin=t,this}pivot(t){return this._queryOpts.pivot=t,this}}},function(t,e,r){"use strict";const{Query:s}=r(1),i=r(0);t.exports=class extends s{constructor(t){super("rank_feature"),i(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}linear(){return this._queryOpts.linear={},this}saturation(){return this._queryOpts.saturation={},this}saturationPivot(t){return this._queryOpts.saturation={},this._queryOpts.saturation.pivot=t,this}log(t){return this._queryOpts.log={},this._queryOpts.log.scaling_factor=t,this}sigmoid(t,e){return this._queryOpts.sigmoid={},this._queryOpts.sigmoid.pivot=t,this._queryOpts.sigmoid.exponent=e,this}}},function(t,e,r){"use strict";e.SpanLittleBigQueryBase=r(27),e.SpanTermQuery=r(103),e.SpanMultiTermQuery=r(104),e.SpanFirstQuery=r(105),e.SpanNearQuery=r(106),e.SpanOrQuery=r(107),e.SpanNotQuery=r(108),e.SpanContainingQuery=r(109),e.SpanWithinQuery=r(110),e.SpanFieldMaskingQuery=r(111)},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(8);t.exports=class extends n{constructor(t,e){super("span_term"),i(t)||(this._field=t),i(e)||(this._queryOpts.value=e)}field(t){return this._field=t,this}value(t){return this._queryOpts.value=t,this}toJSON(){if(!s(this._queryOpts,"value"))throw new Error("Value is required for Span term query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.value:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),{MultiTermQueryBase:n}=r(39),o=r(8);t.exports=class extends o{constructor(t){super("span_multi"),s(t)||this.match(t)}match(t){return i(t,n),this._queryOpts.match=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(8);t.exports=class extends n{constructor(t){super("span_first"),s(t)||this.match(t)}match(t){return i(t,n),this._queryOpts.match=t,this}end(t){return this._queryOpts.end=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_near")}clauses(t){return s(t,Array),t.forEach(t=>s(t,i)),this._queryOpts.clauses=t,this}slop(t){return this._queryOpts.slop=t,this}inOrder(t){return this._queryOpts.in_order=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_or")}clauses(t){return s(t,Array),t.forEach(t=>s(t,i)),this._queryOpts.clauses=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_not")}include(t){return s(t,i),this._queryOpts.include=t,this}exclude(t){return s(t,i),this._queryOpts.exclude=t,this}pre(t){return this._queryOpts.pre=t,this}post(t){return this._queryOpts.post=t,this}dist(t){return this._queryOpts.dist=t,this}}},function(t,e,r){"use strict";const s=r(27);t.exports=class extends s{constructor(){super("span_containing")}}},function(t,e,r){"use strict";const s=r(27);t.exports=class extends s{constructor(){super("span_within")}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(8);t.exports=class extends n{constructor(t,e){super("field_masking_span"),s(t)||(this._queryOpts.field=t),s(e)||this.query(e)}query(t){return i(t,n),this._queryOpts.query=t,this}field(t){return this._queryOpts.field=t,this}}},function(t,e,r){"use strict";e.metricsAggregations=r(113),e.bucketAggregations=r(129),e.pipelineAggregations=r(161),e.matrixAggregations=r(177)},function(t,e,r){"use strict";e.MetricsAggregationBase=r(3),e.AvgAggregation=r(114),e.CardinalityAggregation=r(115),e.ExtendedStatsAggregation=r(116),e.GeoBoundsAggregation=r(117),e.GeoCentroidAggregation=r(118),e.MaxAggregation=r(119),e.MinAggregation=r(120),e.PercentilesAggregation=r(121),e.PercentileRanksAggregation=r(122),e.ScriptedMetricAggregation=r(123),e.StatsAggregation=r(124),e.SumAggregation=r(125),e.TopHitsAggregation=r(126),e.ValueCountAggregation=r(127),e.WeightedAverageAggregation=r(128)},function(t,e,r){"use strict";const s=r(3);t.exports=class extends s{constructor(t,e){super(t,"avg",e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-cardinality-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"cardinality",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in CardinalityAggregation")}precisionThreshold(t){return this._aggsDef.precision_threshold=t,this}}},function(t,e,r){"use strict";const s=r(3);t.exports=class extends s{constructor(t,e){super(t,"extended_stats",e)}sigma(t){return this._aggsDef.sigma=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geobounds-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"geo_bounds",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in GeoBoundsAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in GeoBoundsAggregation")}wrapLongitude(t){return this._aggsDef.wrap_longitude=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geocentroid-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"geo_centroid",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in GeoCentroidAggregation")}}},function(t,e,r){"use strict";const s=r(3);t.exports=class extends s{constructor(t,e){super(t,"max",e)}}},function(t,e,r){"use strict";const s=r(3);t.exports=class extends s{constructor(t,e){super(t,"min",e)}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(3);t.exports=class extends i{constructor(t,e){super(t,"percentiles",e)}keyed(t){return this._aggsDef.keyed=t,this}percents(t){return s(t,Array),this._aggsDef.percents=t,this}tdigest(t){return this._aggsDef.tdigest={compression:t},this}compression(t){return this._aggsDef.tdigest={compression:t},this}hdr(t){return this._aggsDef.hdr={number_of_significant_value_digits:t},this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(3),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-percentile-rank-aggregation.html";t.exports=class extends n{constructor(t,e,r){super(t,"percentile_ranks",e),s(r)||this.values(r)}format(){throw console.log(`Please refer ${o}`),new Error("format is not supported in PercentileRanksAggregation")}keyed(t){return this._aggsDef.keyed=t,this}values(t){return i(t,Array),this._aggsDef.values=t,this}tdigest(t){return this._aggsDef.tdigest={compression:t},this}compression(t){return this.tdigest(t)}hdr(t){return this._aggsDef.hdr={number_of_significant_value_digits:t},this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-scripted-metric-aggregation.html";t.exports=class extends s{constructor(t){super(t,"scripted_metric")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in ScriptedMetricAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in ScriptedMetricAggregation")}missing(){throw console.log(`Please refer ${i}`),new Error("missing is not supported in ScriptedMetricAggregation")}initScript(t){return this._aggsDef.init_script=t,this}mapScript(t){return this._aggsDef.map_script=t,this}combineScript(t){return this._aggsDef.combine_script=t,this}reduceScript(t){return this._aggsDef.reduce_script=t,this}params(t){return this._aggsDef.params=t,this}}},function(t,e,r){"use strict";const s=r(3);t.exports=class extends s{constructor(t,e){super(t,"stats",e)}}},function(t,e,r){"use strict";const s=r(3);t.exports=class extends s{constructor(t,e){super(t,"sum",e)}}},function(t,e,r){"use strict";const s=r(3),{Highlight:i,Sort:n,util:{checkType:o,setDefault:u}}=r(1),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-top-hits-aggregation.html";t.exports=class extends s{constructor(t){super(t,"top_hits")}field(){throw console.log(`Please refer ${c}`),new Error("field is not supported in TopHitsAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in TopHitsAggregation")}missing(){throw console.log(`Please refer ${c}`),new Error("missing is not supported in TopHitsAggregation")}format(){throw console.log(`Please refer ${c}`),new Error("format is not supported in TopHitsAggregation")}from(t){return this._aggsDef.from=t,this}size(t){return this._aggsDef.size=t,this}sort(t){return o(t,n),u(this._aggsDef,"sort",[]),this._aggsDef.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}trackScores(t){return this._aggsDef.track_scores=t,this}version(t){return this._aggsDef.version=t,this}explain(t){return this._aggsDef.explain=t,this}highlight(t){return o(t,i),this._aggsDef.highlight=t,this}source(t){return this._aggsDef._source=t,this}storedFields(t){return this._aggsDef.stored_fields=t,this}scriptField(t,e){return u(this._aggsDef,"script_fields",{}),this._aggsDef.script_fields[t]={script:e},this}scriptFields(t){return o(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._aggsDef.docvalue_fields=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-valuecount-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"value_count",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in ValueCountAggregation")}}},function(t,e,r){"use strict";const{Script:s}=r(1),i=r(3),n=r(0),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-weight-avg-aggregation.html";t.exports=class extends i{constructor(t,e,r){super(t,"weighted_avg"),this._aggsDef.value={},this._aggsDef.weight={},n(e)||this.value(e),n(r)||this.weight(r)}value(t,e){if("string"!=typeof t&&!(t instanceof s))throw new TypeError("Value must be either a string or instanceof Script");return t instanceof s?(this._aggsDef.value.field&&delete this._aggsDef.value.field,this._aggsDef.value.script=t):(this._aggsDef.value.script&&delete this._aggsDef.value.script,this._aggsDef.value.field=t),n(e)||(this._aggsDef.value.missing=e),this}weight(t,e){if("string"!=typeof t&&!(t instanceof s))throw new TypeError("Weight must be either a string or instanceof Script");return t instanceof s?(this._aggsDef.weight.field&&delete this._aggsDef.weight.field,this._aggsDef.weight.script=t):(this._aggsDef.weight.script&&delete this._aggsDef.weight.script,this._aggsDef.weight.field=t),n(e)||(this._aggsDef.weight.missing=e),this}script(){throw console.log(`Please refer ${o}`),new Error("script is not supported in WeightedAverageAggregation")}missing(){throw console.log(`Please refer ${o}`),new Error("missing is not supported in WeightedAverageAggregation")}field(){throw console.log(`Please refer ${o}`),new Error("field is not supported in WeightedAverageAggregation")}}},function(t,e,r){"use strict";e.BucketAggregationBase=r(2),e.HistogramAggregationBase=r(28),e.RangeAggregationBase=r(16),e.TermsAggregationBase=r(29),e.SignificantAggregationBase=r(30),e.AdjacencyMatrixAggregation=r(130),e.ChildrenAggregation=r(131),e.CompositeAggregation=r(132),e.DateHistogramAggregation=r(137),e.AutoDateHistogramAggregation=r(138),e.VariableWidthHistogramAggregation=r(139),e.DateRangeAggregation=r(140),e.DiversifiedSamplerAggregation=r(141),e.FilterAggregation=r(142),e.FiltersAggregation=r(143),e.GeoDistanceAggregation=r(144),e.GeoHashGridAggregation=r(145),e.GeoHexGridAggregation=r(146),e.GeoTileGridAggregation=r(147),e.GlobalAggregation=r(148),e.HistogramAggregation=r(149),e.IpRangeAggregation=r(150),e.MissingAggregation=r(151),e.NestedAggregation=r(152),e.ParentAggregation=r(153),e.RangeAggregation=r(154),e.RareTermsAggregation=r(155),e.ReverseNestedAggregation=r(156),e.SamplerAggregation=r(157),e.SignificantTermsAggregation=r(158),e.SignificantTextAggregation=r(159),e.TermsAggregation=r(160)},function(t,e,r){"use strict";const{Query:s,util:{checkType:i,setDefault:n}}=r(1),o=r(2),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-adjacency-matrix-aggregation.html";t.exports=class extends o{constructor(t){super(t,"adjacency_matrix")}field(){throw console.log(`Please refer ${u}`),new Error("field is not supported in AdjacencyMatrixAggregation")}script(){throw console.log(`Please refer ${u}`),new Error("script is not supported in AdjacencyMatrixAggregation")}filter(t,e){return i(e,s),n(this._aggsDef,"filters",{}),this._aggsDef.filters[t]=e,this}filters(t){return i(t,Object),n(this._aggsDef,"filters",{}),Object.assign(this._aggsDef.filters,t),this}separator(t){return this._aggsDef.separator=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-children-aggregation.html";t.exports=class extends s{constructor(t){super(t,"children")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in ChildrenAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in ChildrenAggregation")}type(t){return this._aggsDef.type=t,this}}},function(t,e,r){"use strict";const{Aggregation:s,util:{checkType:i,constructorWrapper:n}}=r(1),{ValuesSourceBase:o,TermsValuesSource:u,HistogramValuesSource:c,DateHistogramValuesSource:a}=r(133);class h extends s{constructor(t){super(t,"composite"),this._aggsDef.sources=[]}sources(...t){return t.forEach(t=>i(t,o)),this._aggsDef.sources=this._aggsDef.sources.concat(t),this}size(t){return this._aggsDef.size=t,this}after(t){return this._aggsDef.after=t,this}}h.TermsValuesSource=u,h.termsValuesSource=n(u),h.HistogramValuesSource=c,h.histogramValuesSource=n(c),h.DateHistogramValuesSource=a,h.dateHistogramValuesSource=n(a),t.exports=h},function(t,e,r){"use strict";e.ValuesSourceBase=r(21),e.TermsValuesSource=r(134),e.HistogramValuesSource=r(135),e.DateHistogramValuesSource=r(136)},function(t,e,r){"use strict";const s=r(21),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_terms";t.exports=class extends s{constructor(t,e){super("terms",i,t,e)}}},function(t,e,r){"use strict";const s=r(0),i=r(21),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_histogram";t.exports=class extends i{constructor(t,e,r){super("histogram",n,t,e),s(r)||(this._opts.interval=r)}interval(t){return this._opts.interval=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(21),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_date_histogram";t.exports=class extends i{constructor(t,e,r){super("date_histogram",n,t,e),s(r)||(this._opts.interval=r)}interval(t){return this._opts.interval=t,this}calendarInterval(t){return this._opts.calendar_interval=t,this}fixedInterval(t){return this._opts.fixed_interval=t,this}timeZone(t){return this._opts.time_zone=t,this}format(t){return this._opts.format=t,this}}},function(t,e,r){"use strict";const s=r(28);t.exports=class extends s{constructor(t,e,r){super(t,"date_histogram",e,r)}timeZone(t){return this._aggsDef.time_zone=t,this}calendarInterval(t){return this._aggsDef.calendar_interval=t,this}fixedInterval(t){return this._aggsDef.fixed_interval=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2);t.exports=class extends i{constructor(t,e,r){super(t,"auto_date_histogram",e),s(r)||(this._aggsDef.buckets=r)}buckets(t){return this._aggsDef.buckets=t,this}minimumInterval(t){return this._aggsDef.minimum_interval=t,this}format(t){return this._aggsDef.format=t,this}missing(t){return this._aggsDef.missing=t,this}timeZone(t){return this._aggsDef.time_zone=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2);t.exports=class extends i{constructor(t,e,r){super(t,"variable_width_histogram",e),s(r)||(this._aggsDef.buckets=r)}buckets(t){return this._aggsDef.buckets=t,this}}},function(t,e,r){"use strict";const s=r(16);t.exports=class extends s{constructor(t,e){super(t,"date_range",e)}timeZone(t){return this._aggsDef.time_zone=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{EXECUTION_HINT_SET:n}}=r(1),o=r(2),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-diversified-sampler-aggregation.html","execution_hint",n);t.exports=class extends o{constructor(t,e){super(t,"diversified_sampler",e)}shardSize(t){return this._aggsDef.shard_size=t,this}maxDocsPerValue(t){return this._aggsDef.max_docs_per_value=t,this}executionHint(t){s(t)&&u(t);const e=t.toLowerCase();return n.has(e)||u(t),this._aggsDef.execution_hint=e,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1),o=r(2),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filter-aggregation.html";t.exports=class extends o{constructor(t,e){super(t,"filter"),s(e)||this.filter(e)}field(){throw console.log(`Please refer ${u}`),new Error("field is not supported in FilterAggregation")}script(){throw console.log(`Please refer ${u}`),new Error("script is not supported in FilterAggregation")}filter(t){return n(t,i),this._aggsDef=this._aggs[this.aggType]=t,this}}},function(t,e,r){"use strict";const s=r(7),{Query:i,util:{checkType:n,setDefault:o}}=r(1),u=r(2),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filters-aggregation.html";t.exports=class extends u{constructor(t){super(t,"filters")}field(){throw console.log(`Please refer ${c}`),new Error("field is not supported in FiltersAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in FiltersAggregation")}_warn(t){console.warn(`[FiltersAggregation] ${t}`)}_checkNamedFilters(){!o(this._aggsDef,"filters",{})&&Array.isArray(this._aggsDef.filters)&&(this._warn("Do not mix named and anonymous filters!"),this._warn("Overwriting anonymous filters."),this._aggsDef.filters={})}_checkAnonymousFilters(){o(this._aggsDef,"filters",[])||Array.isArray(this._aggsDef.filters)||(this._warn("Do not mix named and anonymous filters!"),this._warn("Overwriting named filters."),this._aggsDef.filters=[])}filter(t,e){return n(e,i),this._checkNamedFilters(),this._aggsDef.filters[t]=e,this}filters(t){return n(t,Object),this._checkNamedFilters(),Object.assign(this._aggsDef.filters,t),this}anonymousFilter(t){return n(t,i),this._checkAnonymousFilters(),this._aggsDef.filters.push(t),this}anonymousFilters(t){return n(t,Array),this._checkAnonymousFilters(),this._aggsDef.filters=this._aggsDef.filters.concat(t),this}otherBucket(t,e){return this._aggsDef.other_bucket=t,!s(e)&&this.otherBucketKey(e),this}otherBucketKey(t){return this._aggsDef.other_bucket_key=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o},consts:{UNIT_SET:u}}=r(1),c=r(16),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geodistance-aggregation.html",h=o(a,"unit",u),g=o(a,"distance_type","'plane' or 'arc'");t.exports=class extends c{constructor(t,e){super(t,"geo_distance",e)}format(){throw console.log(`Please refer ${a}`),new Error("format is not supported in GeoDistanceAggregation")}script(){throw console.log(`Please refer ${a}`),new Error("script is not supported in GeoDistanceAggregation")}origin(t){return n(t,i),this._aggsDef.origin=t,this}unit(t){return u.has(t)||h(t),this._aggsDef.unit=t,this}distanceType(t){s(t)&&g(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&g(t),this._aggsDef.distance_type=e,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohashgrid-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"geohash_grid",e)}format(){throw console.log(`Please refer ${n}`),new Error("format is not supported in GeoHashGridAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in GeoHashGridAggregation")}precision(t){if(s(t)||t<1||t>12)throw new Error("`precision` can only be value from 1 to 12.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohexgrid-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"geohex_grid",e)}format(){throw console.log(`Please refer ${n}`),new Error("format is not supported in GeoHexGridAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in GeoHexGridAggregation")}precision(t){if(s(t)||t<0||t>15)throw new Error("`precision` can only be value from 0 to 15.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,setDefault:o}}=r(1),u=r(2),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geotilegrid-aggregation.html";t.exports=class extends u{constructor(t,e){super(t,"geotile_grid",e)}format(){throw console.log(`Please refer ${c}`),new Error("format is not supported in GeoTileGridAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in GeoTileGridAggregation")}precision(t){if(s(t)||t<0||t>29)throw new Error("`precision` can only be value from 0 to 29.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}topLeft(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top_left=t,this}bottomRight(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom_right=t,this}topRight(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top_right=t,this}bottomLeft(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom_left=t,this}top(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top=t,this}left(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.left=t,this}bottom(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom=t,this}right(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.right=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-global-aggregation.html";t.exports=class extends s{constructor(t){super(t,"global")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in GlobalAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in GlobalAggregation")}}},function(t,e,r){"use strict";const s=r(28);t.exports=class extends s{constructor(t,e,r){super(t,"histogram",e,r)}}},function(t,e,r){"use strict";const s=r(16),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-iprange-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"ip_range",e),this._rangeRequiredKeys=["from","to","mask"]}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in IpRangeAggregation")}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-missing-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"missing",e)}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in MissingAggregation")}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-nested-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"nested"),s(e)||(this._aggsDef.path=e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in NestedAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in NestedAggregation")}path(t){return this._aggsDef.path=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-parent-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"parent"),s(e)||this.type(e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in ParentAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in ParentAggregation")}type(t){return this._aggsDef.type=t,this}}},function(t,e,r){"use strict";const s=r(16);t.exports=class extends s{constructor(t,e){super(t,"range",e)}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-rare-terms-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"rare_terms",e)}maxDocCount(t){if(s(t)||t<1||t>100)throw new Error("`maxDocCount` can only be value from 1 to 100.");return this._aggsDef.max_doc_count=t,this}precision(t){if(t<1e-5)throw new Error("`precision` must be greater than 0.00001.");return this._aggsDef.precision=t,this}include(t){return this._aggsDef.include=t,this}exclude(t){return this._aggsDef.exclude=t,this}missing(t){return this._aggsDef.missing=t,this}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in RareTermsAggregation")}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-reverse-nested-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"reverse_nested"),s(e)||(this._aggsDef.path=e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in ReverseNestedAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in ReverseNestedAggregation")}path(t){return this._aggsDef.path=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-sampler-aggregation.html";t.exports=class extends s{constructor(t){super(t,"sampler")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in SamplerAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in SamplerAggregation")}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(30),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significantterms-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"significant_terms",i,e)}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(30),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significanttext-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"significant_text",n,e)}filterDuplicateText(t){return this._aggsDef.filter_duplicate_text=t,this}sourceFields(t){return s(t,Array),this._aggsDef.source_fields=t,this}missing(){throw console.log(`Please refer ${n}`),new Error("missing is not supported in SignificantTextAggregation")}executionHint(){throw console.log(`Please refer ${n}`),new Error("executionHint is not supported in SignificantTextAggregation")}}},function(t,e,r){"use strict";const s=r(5),i=r(0),{util:{invalidParam:n}}=r(1),o=r(29),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html",c=n(u,"direction","'asc' or 'desc'"),a=n(u,"mode","'breadth_first' or 'depth_first'");t.exports=class extends o{constructor(t,e){super(t,"terms",u,e)}showTermDocCountError(t){return this._aggsDef.show_term_doc_count_error=t,this}includePartition(t,e){return this._aggsDef.include={partition:t,num_partitions:e},this}collectMode(t){i(t)&&a(t);const e=t.toLowerCase();return"breadth_first"!==e&&"depth_first"!==e&&a(t),this._aggsDef.collect_mode=e,this}order(t,e="desc"){i(e)&&c(e);const r=e.toLowerCase();return"asc"!==r&&"desc"!==r&&c(e),s(this._aggsDef,"order")?(Array.isArray(this._aggsDef.order)||(this._aggsDef.order=[this._aggsDef.order]),this._aggsDef.order.push({[t]:r})):this._aggsDef.order={[t]:r},this}}},function(t,e,r){"use strict";e.PipelineAggregationBase=r(4),e.AvgBucketAggregation=r(162),e.DerivativeAggregation=r(163),e.MaxBucketAggregation=r(164),e.MinBucketAggregation=r(165),e.SumBucketAggregation=r(166),e.StatsBucketAggregation=r(167),e.ExtendedStatsBucketAggregation=r(168),e.PercentilesBucketAggregation=r(169),e.MovingAverageAggregation=r(170),e.MovingFunctionAggregation=r(171),e.CumulativeSumAggregation=r(172),e.BucketScriptAggregation=r(173),e.BucketSelectorAggregation=r(174),e.SerialDifferencingAggregation=r(175),e.BucketSortAggregation=r(176)},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-avg-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"avg_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-derivative-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"derivative",i,e)}unit(t){return this._aggsDef.unit=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-max-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"max_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-min-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"min_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-sum-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"sum_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-stats-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"stats_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-extended-stats-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"extended_stats_bucket",i,e)}sigma(t){return this._aggsDef.sigma=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(4),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-percentiles-bucket-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"percentiles_bucket",n,e)}percents(t){return s(t,Array),this._aggsDef.percents=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{MODEL_SET:n}}=r(1),o=r(4),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movavg-aggregation.html",c=i(u,"model",n);t.exports=class extends o{constructor(t,e){super(t,"moving_avg",u,e)}format(){throw console.log(`Please refer ${u}`),new Error("format is not supported in MovingAverageAggregation")}model(t){s(t)&&c(t);const e=t.toLowerCase();return n.has(e)||c(t),this._aggsDef.model=e,this}window(t){return this._aggsDef.window=t,this}minimize(t){return this._aggsDef.minimize=t,this}settings(t){return this._aggsDef.settings=t,this}predict(t){return this._aggsDef.predict=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(4),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movfn-aggregation.html";t.exports=class extends i{constructor(t,e,r,i){super(t,"moving_fn",n,e),s(r)||(this._aggsDef.window=r),s(i)||(this._aggsDef.script=i)}window(t){return this._aggsDef.window=t,this}shift(t){return this._aggsDef.shift=t,this}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-cumulative-sum-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"cumulative_sum",i,e)}gapPolicy(){throw console.log(`Please refer ${i}`),new Error("gapPolicy is not supported in CumulativeSumAggregation")}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-script-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"bucket_script",i,e)}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-selector-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"bucket_selector",i,e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in BucketSelectorAggregation")}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-serialdiff-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"serial_diff",i,e)}lag(t){return this._aggsDef.lag=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-sort-aggregation.html";t.exports=class extends s{constructor(t){super(t,"bucket_sort",i)}sort(t){return this._aggsDef.sort=t,this}from(t){return this._aggsDef.from=t,this}size(t){return this._aggsDef.size=t,this}}},function(t,e,r){"use strict";e.MatrixStatsAggregation=r(178)},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super(t,"matrix_stats"),s(e)||this.fields(e)}fields(t){return n(t,Array),this._aggsDef.fields=t,this}mode(t){return this._aggsDef.mode=t,this}missing(t){return this._aggsDef.missing=t,this}}},function(t,e,r){"use strict";e.AnalyzedSuggesterBase=r(31),e.TermSuggester=r(180),e.DirectGenerator=r(181),e.PhraseSuggester=r(182),e.CompletionSuggester=r(183)},function(t,e,r){"use strict";const s=r(0),{consts:{SUGGEST_MODE_SET:i,STRING_DISTANCE_SET:n},util:{invalidParam:o}}=r(1),u=r(31),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-term.html",a=o(c,"sort","'score' or 'frequency'"),h=o(c,"suggest_mode",i),g=o(c,"string_distance",n);t.exports=class extends u{constructor(t,e,r){super("term",t,e,r)}sort(t){s(t)&&a(t);const e=t.toLowerCase();return"score"!==e&&"frequency"!==e&&a(t),this._suggestOpts.sort=e,this}suggestMode(t){s(t)&&h(t);const e=t.toLowerCase();return i.has(e)||h(t),this._suggestOpts.suggest_mode=e,this}maxEdits(t){return this._suggestOpts.max_edits=t,this}prefixLength(t){return this._suggestOpts.prefix_length=t,this}minWordLength(t){return this._suggestOpts.min_word_length=t,this}maxInspections(t){return this._suggestOpts.max_inspections=t,this}minDocFreq(t){return this._suggestOpts.min_doc_freq=t,this}maxTermFreq(t){return this._suggestOpts.max_term_freq=t,this}stringDistance(t){s(t)&&g(t);const e=t.toLowerCase();return n.has(e)||g(t),this._suggestOpts.string_distance=e,this}}},function(t,e,r){"use strict";const s=r(0),{consts:{SUGGEST_MODE_SET:i},util:{invalidParam:n}}=r(1),o=n("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html#_direct_generators","suggest_mode",i);t.exports=class{constructor(t){this._body={},s(t)||(this._body.field=t)}field(t){return this._body.field=t,this}size(t){return this._body.size=t,this}suggestMode(t){s(t)&&o(t);const e=t.toLowerCase();return i.has(e)||o(t),this._body.suggest_mode=e,this}maxEdits(t){return this._body.max_edits=t,this}prefixLength(t){return this._body.prefix_length=t,this}minWordLength(t){return this._body.min_word_length=t,this}maxInspections(t){return this._body.max_inspections=t,this}minDocFreq(t){return this._body.min_doc_freq=t,this}maxTermFreq(t){return this._body.max_term_freq=t,this}preFilter(t){return this._body.pre_filter=t,this}postFilter(t){return this._body.post_filter=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),{consts:{SMOOTHING_MODEL_SET:i},util:{recursiveToJSON:n,invalidParam:o}}=r(1),u=r(31),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html","smoothing",i);t.exports=class extends u{constructor(t,e,r){super("phrase",t,e,r)}gramSize(t){return this._suggestOpts.gram_size=t,this}realWordErrorLikelihood(t){return this._suggestOpts.real_word_error_likelihood=t,this}confidence(t){return this._suggestOpts.confidence=t,this}maxErrors(t){return this._suggestOpts.max_errors=t,this}separator(t){return this._suggestOpts.separator=t,this}highlight(t,e){return this._suggestOpts.highlight={pre_tag:t,post_tag:e},this}collate(t){return this._suggestOpts.collate=t,this}smoothing(t){s(t)&&c(t);const e=t.toLowerCase();return i.has(e)||c(t),this._suggestOpts.smoothing=e,this}directGenerator(t){return this._suggestOpts.direct_generator=Array.isArray(t)?t:[t],this}toJSON(){return n(this._body)}}},function(t,e,r){"use strict";const s=r(13),{Suggester:i,util:{setDefault:n}}=r(1);t.exports=class extends i{constructor(t,e){super("completion",t,e)}prefix(t){return this._opts.prefix=t,this}skipDuplicates(t=!0){return this._suggestOpts.skip_duplicates=t,this}_checkFuzzy(){s(this._suggestOpts.fuzzy)||(this._suggestOpts.fuzzy={})}fuzzy(t=!0){return this._suggestOpts.fuzzy=t,this}fuzziness(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.fuzziness=t,this}transpositions(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.transpositions=t,this}minLength(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.min_length=t,this}prefixLength(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.prefix_length=t,this}unicodeAware(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.unicode_aware=t,this}regex(t){return this._opts.regex=t,this}flags(t){return n(this._suggestOpts,"regex",{}),this._suggestOpts.regex.flags=t,this}maxDeterminizedStates(t){return n(this._suggestOpts,"regex",{}),this._suggestOpts.regex.max_determinized_states=t,this}contexts(t,e){return n(this._suggestOpts,"contexts",{}),this._suggestOpts.contexts[t]=e,this}}},function(t,e,r){"use strict";const s=r(0),{MatchAllQuery:i,termLevelQueries:{ExistsQuery:n},compoundQueries:{BoolQuery:o,FunctionScoreQuery:u,scoreFunctions:{RandomScoreFunction:c}}}=r(38),{Query:a,util:{checkType:h}}=r(1);e.missingQuery=function(t){return(new o).mustNot(new n(t))},e.randomSortQuery=function(t=new i,e){h(t,a);const r=new c;return(new u).query(t).function(s(e)?r:r.seed(e))},e.filterQuery=function(t,e=!1){h(t,a);const r=(new o).filter(t);return!0===e?r.must(new i):r}}])}); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.esb=e():t.esb=e()}(window,function(){return function(t){var e={};function r(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,s){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(s,i,function(e){return t[e]}.bind(null,i));return s},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=43)}([function(t,e){t.exports=function(t){return null==t}},function(t,e,r){"use strict";e.RequestBodySearch=r(44),e.Aggregation=r(33),e.Query=r(12),e.Suggester=r(34),e.Script=r(36),e.Highlight=r(24),e.GeoPoint=r(47),e.GeoShape=r(48),e.IndexedShape=r(49),e.Sort=r(23),e.Rescore=r(35),e.InnerHits=r(37),e.SearchTemplate=r(50),e.consts=r(18),e.util=r(6),e.RuntimeField=r(38)},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t,e,r){super(t,e),s(r)||(this._aggsDef.field=r)}field(t){return this._aggsDef.field=t,this}script(t){return o(t,n),this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t,e,r){super(t,e),s(r)||(this._aggsDef.field=r)}field(t){return this._aggsDef.field=t,this}script(t){return o(t,n),this._aggsDef.script=t,this}missing(t){return this._aggsDef.missing=t,this}format(t){return this._aggsDef.format=t,this}}},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,util:{invalidParam:n}}=r(1),o=n("","gap_policy","'skip' or 'insert_zeros'");t.exports=class extends i{constructor(t,e,r,i){super(t,e),this._refUrl=r,s(i)||(this._aggsDef.buckets_path=i)}bucketsPath(t){return this._aggsDef.buckets_path=t,this}gapPolicy(t){s(t)&&o(t,this._refUrl);const e=t.toLowerCase();return"skip"!==e&&"insert_zeros"!==e&&o(t,this._refUrl),this._aggsDef.gap_policy=e,this}format(t){return this._aggsDef.format=t,this}}},function(t,e,r){(function(e){var r="Expected a function",s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,l=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,y="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,w=y||m||Function("return this")();var x=Array.prototype,O=Function.prototype,b=Object.prototype,S=w["__core-js_shared__"],v=function(){var t=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),A=O.toString,q=b.hasOwnProperty,D=b.toString,T=RegExp("^"+A.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=w.Symbol,k=b.propertyIsEnumerable,E=x.splice,P=L(w,"Map"),z=L(Object,"create"),M=Q?Q.prototype:void 0,F=M?M.toString:void 0;function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e-1&&t%1==0&&t-1},$.prototype.set=function(t,e){var r=this.__data__,s=R(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},C.prototype.clear=function(){this.__data__={hash:new j,map:new(P||$),string:new j}},C.prototype.delete=function(t){return B(this,t).delete(t)},C.prototype.get=function(t){return B(this,t).get(t)},C.prototype.has=function(t){return B(this,t).has(t)},C.prototype.set=function(t,e){return B(this,t).set(t,e),this};var I=W(function(t){t=function(t){return null==t?"":function(t){if("string"==typeof t)return t;if(tt(t))return F?F.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(t)}(t);var e=[];return l.test(t)&&e.push(""),t.replace(p,function(t,r,s,i){e.push(s?i.replace(_,"$1"):r||t)}),e});function J(t){if("string"==typeof t||tt(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function W(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var s=function(){var r=arguments,i=e?e.apply(this,r):r[0],n=s.cache;if(n.has(i))return n.get(i);var o=t.apply(this,r);return s.cache=n.set(i,o),o};return s.cache=new(W.Cache||C),s}function U(t,e){return t===e||t!=t&&e!=e}W.Cache=C;var V=Array.isArray;function Z(t){var e=Y(t)?D.call(t):"";return e==u||e==c}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function X(t){return!!t&&"object"==typeof t}function tt(t){return"symbol"==typeof t||X(t)&&D.call(t)==a}t.exports=function(t,e){return null!=t&&H(t,e,N)}}).call(this,r(17))},function(t,e,r){"use strict";const s=r(7),i=r(0),n=r(22),o=r(13),u=r(46),c=r(5),a=r(32);function h(t,e,r){return t>=e&&t<=r}e.checkType=function(t,e){if(!(t instanceof e))throw i(t)?console.warn(`Was expecting instance of ${e.name} but got ${t}!`):console.warn(`${a(t)} is of the type ${typeof t}`),new TypeError(`Argument must be an instance of ${e.name}`)},e.constructorWrapper=function(t){return(...e)=>new t(...e)},e.firstDigitPos=function(t){if(s(t))return-1;const e=t.length;for(let r=0;rt(e));if(u(e,"toJSON")&&e.constructor!==Object)return t(e.toJSON());const r={};for(const s of Object.keys(e))r[s]=t(e[s]);return r},e.invalidParam=function(t,e,r){return(s,i=t)=>{i&&console.log(`See ${i}`),console.warn(`Got '${e}' - '${s}'`);const o=n(r)?r:a(r);throw new Error(`The '${e}' parameter should be one of ${o}`)}},e.setDefault=function(t,e,r){const s=!c(t,e);return s&&(t[e]=r),s}},function(t,e,r){(function(t,r){var s=9007199254740991,i="[object Arguments]",n="[object Function]",o="[object GeneratorFunction]",u="[object Map]",c="[object Set]",a=/^\[object .+?Constructor\]$/,h="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,l=h||g||Function("return this")(),p=e&&!e.nodeType&&e,_=p&&"object"==typeof r&&r&&!r.nodeType&&r,f=_&&_.exports===p;var d=Function.prototype,y=Object.prototype,m=l["__core-js_shared__"],w=function(){var t=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),x=d.toString,O=y.hasOwnProperty,b=y.toString,S=RegExp("^"+x.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=f?l.Buffer:void 0,A=y.propertyIsEnumerable,q=v?v.isBuffer:void 0,D=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object),T=N(l,"DataView"),Q=N(l,"Map"),k=N(l,"Promise"),E=N(l,"Set"),P=N(l,"WeakMap"),z=!A.call({valueOf:1},"valueOf"),M=B(T),F=B(Q),j=B(k),$=B(E),C=B(P);function R(t){return!(!U(t)||function(t){return!!w&&w in t}(t))&&(W(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t)?S:a).test(B(t))}function N(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return R(r)?r:void 0}var G=function(t){return b.call(t)};function B(t){if(null!=t){try{return x.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function L(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&I(t)}(t)&&O.call(t,"callee")&&(!A.call(t,"callee")||b.call(t)==i)}(T&&"[object DataView]"!=G(new T(new ArrayBuffer(1)))||Q&&G(new Q)!=u||k&&"[object Promise]"!=G(k.resolve())||E&&G(new E)!=c||P&&"[object WeakMap]"!=G(new P))&&(G=function(t){var e=b.call(t),r="[object Object]"==e?t.constructor:void 0,s=r?B(r):void 0;if(s)switch(s){case M:return"[object DataView]";case F:return u;case j:return"[object Promise]";case $:return c;case C:return"[object WeakMap]"}return e});var H=Array.isArray;function I(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}(t.length)&&!W(t)}var J=q||function(){return!1};function W(t){var e=U(t)?b.call(t):"";return e==n||e==o}function U(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}r.exports=function(t){if(I(t)&&(H(t)||"string"==typeof t||"function"==typeof t.splice||J(t)||L(t)))return!t.length;var e=G(t);if(e==u||e==c)return!t.size;if(z||function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||y)}(t))return!D(t).length;for(var r in t)if(O.call(t,r))return!1;return!0}}).call(this,r(17),r(45)(t))},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{}},function(t,e,r){"use strict";const{inspect:s}=r(32),{util:{firstDigitPos:i},consts:{REWRITE_METHOD_SET:n}}=r(1);e.validateRewiteMethod=function(t,e,r){if(!n.has(t)){const o=`${t.substring(0,i(t))}N`;if(!n.has(o))throw console.log(`See ${r}`),console.warn(`Got '${e}' - ${t}`),new Error(`The '${e}' parameter should belong to ${s(n)}`)}}},function(t,e,r){"use strict";const s=r(41);t.exports=class extends s{}},function(t,e,r){"use strict";const{Query:s,util:{checkType:i,recursiveToJSON:n}}=r(1);t.exports=class{constructor(t){this._name=t,this._body={},this._opts={}}filter(t){return i(t,s),this._body.filter=t,this}weight(t){return this._body.weight=t,this}toJSON(){const t=Object.assign({[this._name]:this._opts},this._body);return n(t)}}},function(t,e,r){"use strict";const{recursiveToJSON:s}=r(6);t.exports=class{constructor(t){this.queryType=t,this._body={},this._queryOpts=this._body[t]={}}boost(t){return this._queryOpts.boost=t,this}name(t){return this._queryOpts._name=t,this}getDSL(){return this.toJSON()}toJSON(){return s(this._body)}}},function(t,e){t.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t,e){super(t),s(e)||(this._queryOpts.query=e)}analyzer(t){return this._queryOpts.analyzer=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}query(t){return this._queryOpts.query=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{invalidParam:n,recursiveToJSON:o}}=r(1),u=n("","validation_method","'IGNORE_MALFORMED', 'COERCE' or 'STRICT'");t.exports=class extends i{constructor(t,e){super(t),this._field=null,this._fieldOpts={},s(e)||(this._field=e)}field(t){return this._field=t,this}validationMethod(t){s(t)&&u(t);const e=t.toUpperCase();return"IGNORE_MALFORMED"!==e&&"COERCE"!==e&&"STRICT"!==e&&u(t),this._queryOpts.validation_method=e,this}toJSON(){return o({[this.queryType]:Object.assign({[this._field]:this._fieldOpts},this._queryOpts)})}}},function(t,e,r){"use strict";const s=r(7),{util:{checkType:i}}=r(1),n=r(2),o=Object.prototype.hasOwnProperty;t.exports=class extends n{constructor(t,e,r){super(t,e,r),this._rangeRequiredKeys=["from","to"],this._aggsDef.ranges=[]}format(t){return this._aggsDef.format=t,this}range(t){if(i(t,Object),!this._rangeRequiredKeys.some(o,t))throw new Error(`Invalid Range! Range must have at least one of ${this._rangeRequiredKeys}`);return this._aggsDef.ranges.push(t),this}ranges(t){return i(t,Array),t.forEach(t=>this.range(t)),this}missing(t){return this._aggsDef.missing=t,this}keyed(t){return this._aggsDef.keyed=t,this}toJSON(){if(s(this._aggsDef.ranges))throw new Error("`ranges` cannot be empty.");return super.toJSON()}}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.EXECUTION_HINT_SET=new Set(["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]),e.UNIT_SET=new Set(["in","inch","yd","yards","ft","feet","km","kilometers","NM","nmi","nauticalmiles","mm","millimeters","cm","centimeters","mi","miles","m","meters"]),e.MODEL_SET=new Set(["simple","linear","ewma","holt","holt_winters"]),e.SORT_MODE_SET=new Set(["min","max","sum","avg","median"]),e.RESCORE_MODE_SET=new Set(["total","multiply","min","max","avg"]),e.REWRITE_METHOD_SET=new Set(["constant_score","constant_score_auto","constant_score_filter","scoring_boolean","constant_score_boolean","top_terms_N","top_terms_boost_N","top_terms_blended_freqs_N"]),e.MULTI_MATCH_TYPE=new Set(["best_fields","most_fields","cross_fields","phrase","phrase_prefix","bool_prefix"]),e.SCORE_MODE_SET=new Set(["multiply","sum","first","min","max","avg"]),e.BOOST_MODE_SET=new Set(["multiply","sum","replace","min","max","avg"]),e.FIELD_MODIFIER_SET=new Set(["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]),e.NESTED_SCORE_MODE_SET=new Set(["none","sum","min","max","avg"]),e.GEO_SHAPE_TYPES=new Set(["point","linestring","polygon","multipoint","multilinestring","multipolygon","geometrycollection","envelope","circle"]),e.GEO_RELATION_SET=new Set(["WITHIN","CONTAINS","DISJOINT","INTERSECTS"]),e.SUGGEST_MODE_SET=new Set(["missing","popular","always"]),e.STRING_DISTANCE_SET=new Set(["internal","damerau_levenshtein","levenstein","jarowinkler","ngram"]),e.SMOOTHING_MODEL_SET=new Set(["stupid_backoff","laplace","linear_interpolation"])},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(14);t.exports=class extends n{constructor(t,e,r){super(t,r),i(e)||(this._field=e)}field(t){return this._field=t,this}toJSON(){if(!s(this._queryOpts,"query"))throw new Error("Query string is required for full text query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.query:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}}},function(t,e,r){"use strict";const s=r(0),{Query:i,InnerHits:n,util:{checkType:o,invalidParam:u},consts:{NESTED_SCORE_MODE_SET:c}}=r(1),a=u("","score_mode",c);t.exports=class extends i{constructor(t,e,r){super(t),this.refUrl=e,s(r)||this.query(r)}query(t){return o(t,i),this._queryOpts.query=t,this}scoreMode(t){s(t)&&a(t);const e=t.toLowerCase();return c.has(e)||a(t),this._queryOpts.score_mode=e,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}innerHits(t){return o(t,n),this._queryOpts.inner_hits=t,this}}},function(t,e,r){"use strict";const s=r(7),i=r(0),{util:{invalidParam:n,recursiveToJSON:o}}=r(1),u=n("","order","'asc' or 'desc'");t.exports=class{constructor(t,e,r,n){if(s(t))throw new Error("ValuesSourceBase `valueSrcType` cannot be empty");this._name=r,this._valueSrcType=t,this._refUrl=e,this._body={},this._opts=this._body[t]={},i(n)||(this._opts.field=n)}field(t){return this._opts.field=t,this}script(t){return this._opts.script=t,this}valueType(t){return this._opts.value_type=t,this}order(t){i(t)&&u(t,this._refUrl);const e=t.toLowerCase();return"asc"!==e&&"desc"!==e&&u(t,this._refUrl),this._opts.order=e,this}missing(t){return this._opts.missing=t,this}missingBucket(t){return this._opts.missing_bucket=t,this}toJSON(){return{[this._name]:o(this._body)}}}},function(t,e){var r="[object String]",s=Object.prototype.toString,i=Array.isArray;t.exports=function(t){return"string"==typeof t||!i(t)&&function(t){return!!t&&"object"==typeof t}(t)&&s.call(t)==r}},function(t,e,r){"use strict";const s=r(7),i=r(5),n=r(0),o=r(12),u=r(36),{checkType:c,invalidParam:a,recursiveToJSON:h}=r(6),{SORT_MODE_SET:g,UNIT_SET:l}=r(18),p="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-sort.html",_=a(p,"order","'asc' or 'desc'"),f=a(p,"mode",g),d=a(p,"distance_type","'plane' or 'arc'"),y=a(p,"unit",l);t.exports=class{constructor(t,e){this._opts={},this._geoPoint=null,this._script=null,n(t)||(this._field=t),n(e)||this.order(e)}order(t){n(t)&&_(t);const e=t.toLowerCase();return"asc"!==e&&"desc"!==e&&_(t),this._opts.order=e,this}mode(t){n(t)&&f(t);const e=t.toLowerCase();return g.has(e)||f(t),this._opts.mode=e,this}nestedPath(t){return this._opts.nested_path=t,this}nestedFilter(t){return c(t,o),this._opts.nested_filter=t,this}nested(t){const{filter:e}=t;return n(e)||c(e,o),this._opts.nested=t,this}missing(t){return this._opts.missing=t,this}unmappedType(t){return this._opts.unmapped_type=t,this}geoDistance(t){return this._geoPoint=t,this}distanceType(t){n(t)&&d(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&d(t),this._opts.distance_type=e,this}unit(t){return l.has(t)||y(t),this._opts.unit=t,this}script(t){return c(t,u),this._script=t,this}type(t){return this._opts.type=t,this}format(t){return this._opts.format=t,this}reverse(t){return this._opts.reverse=t,this}toJSON(){const t=n(this._geoPoint),e=n(this._script);if(t&&e){if(s(this._opts))return this._field;if(1===Object.keys(this._opts).length&&i(this._opts,"order"))return{[this._field]:this._opts.order}}let r;return r=t?e?{[this._field]:this._opts}:{_script:Object.assign({script:this._script},this._opts)}:{_geo_distance:Object.assign({[this._field]:this._geoPoint},this._opts)},h(r)}}},function(t,e,r){"use strict";const s=r(5),i=r(7),n=r(0),o=r(22),u=r(12),{checkType:c,invalidParam:a,recursiveToJSON:h}=r(6),g="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html",l=a(g,"encoder","'default' or 'html'"),p=a(g,"type","'plain', 'postings' or 'fvh'"),_=a(g,"fragmenter","'simple' or 'span'");t.exports=class{constructor(t){this._fields={},this._highlight={fields:this._fields},n(t)||(o(t)?this.field(t):this.fields(t))}_setFieldOption(t,e,r){n(t)?this._highlight[e]=r:(this.field(t),this._fields[t][e]=r)}field(t){return n(t)||s(this._fields,t)||(this._fields[t]={}),this}fields(t){return c(t,Array),t.forEach(t=>this.field(t)),this}preTags(t,e){return this._setFieldOption(e,"pre_tags",o(t)?[t]:t),this}postTags(t,e){return this._setFieldOption(e,"post_tags",o(t)?[t]:t),this}styledTagsSchema(){return this._highlight.tags_schema="styled",this}scoreOrder(t){return this._setFieldOption(t,"order","score"),this}fragmentSize(t,e){return this._setFieldOption(e,"fragment_size",t),this}numberOfFragments(t,e){return this._setFieldOption(e,"number_of_fragments",t),this}noMatchSize(t,e){return this._setFieldOption(e,"no_match_size",t),this}highlightQuery(t,e){return c(t,u),this._setFieldOption(e,"highlight_query",t),this}matchedFields(t,e){if(c(t,Array),i(e))throw new Error("`matched_fields` requires field name to be passed");return this.type("fvh",e),this._setFieldOption(e,"matched_fields",t),this}phraseLimit(t){return this._highlight.phrase_limit=t,this}encoder(t){n(t)&&l(t);const e=t.toLowerCase();return"default"!==e&&"html"!==e&&l(t),this._highlight.encoder=e,this}requireFieldMatch(t,e){return this._setFieldOption(e,"require_field_match",t),this}boundaryMaxScan(t,e){return this._setFieldOption(e,"boundary_max_scan",t),this}boundaryChars(t,e){return this._setFieldOption(e,"boundary_chars",t),this}type(t,e){n(t)&&p(t);const r=t.toLowerCase();return"plain"!==r&&"postings"!==r&&"fvh"!==r&&p(t),this._setFieldOption(e,"type",r),this}forceSource(t,e){return this._setFieldOption(e,"force_source",t),this}fragmenter(t,e){n(t)&&_(t);const r=t.toLowerCase();return"simple"!==r&&"span"!==r&&_(t),this._setFieldOption(e,"fragmenter",r),this}toJSON(){return h(this._highlight)}}},function(t,e,r){"use strict";const s=r(19);t.exports=class extends s{constructor(t,e,r,s){super(t,r,s),this._refUrl=e}minimumShouldMatch(){throw console.log(`Please refer ${this._refUrl}`),new Error(`minimumShouldMatch is not supported in ${this.constructor.name}`)}slop(t){return this._queryOpts.slop=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i,setDefault:n,invalidParam:o}}=r(1),u=r(14),c=o("","operator","'AND' or 'OR'");t.exports=class extends u{constructor(t,e,r){super(t,r),this._refUrl=e}field(t){return n(this._queryOpts,"fields",[]),this._queryOpts.fields.push(t),this}fields(t){return i(t,Array),n(this._queryOpts,"fields",[]),this._queryOpts.fields=this._queryOpts.fields.concat(t),this}defaultOperator(t){s(t)&&c(t,this._refUrl);const e=t.toUpperCase();return"AND"!==e&&"OR"!==e&&c(t,this._refUrl),this._queryOpts.default_operator=e,this}analyzeWildcard(t){return this._queryOpts.analyze_wildcard=t,this}lenient(t){return this._queryOpts.lenient=t,this}quoteFieldSuffix(t){return this._queryOpts.quote_field_suffix=t,this}allFields(t){return this._queryOpts.all_fields=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{little(t){return s(t,i),this._queryOpts.little=t,this}big(t){return s(t,i),this._queryOpts.big=t,this}}},function(t,e,r){"use strict";const s=r(5),i=r(0),{util:{invalidParam:n}}=r(1),o=r(2),u=n("","direction","'asc' or 'desc'");t.exports=class extends o{constructor(t,e,r,s){super(t,e,r),i(s)||(this._aggsDef.interval=s)}interval(t){return this._aggsDef.interval=t,this}format(t){return this._aggsDef.format=t,this}offset(t){return this._aggsDef.offset=t,this}order(t,e="desc"){i(e)&&u(e);const r=e.toLowerCase();return"asc"!==r&&"desc"!==r&&u(e),s(this._aggsDef,"order")?(Array.isArray(this._aggsDef.order)||(this._aggsDef.order=[this._aggsDef.order]),this._aggsDef.order.push({[t]:r})):this._aggsDef.order={[t]:r},this}minDocCount(t){return this._aggsDef.min_doc_count=t,this}extendedBounds(t,e){return this._aggsDef.extended_bounds={min:t,max:e},this}hardBounds(t,e){return this._aggsDef.hard_bounds={min:t,max:e},this}missing(t){return this._aggsDef.missing=t,this}keyed(t){return this._aggsDef.keyed=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{EXECUTION_HINT_SET:n}}=r(1),o=r(2),u=i("","execution_hint",n);t.exports=class extends o{constructor(t,e,r,s){super(t,e,s),this._refUrl=r}format(t){return this._aggsDef.format=t,this}minDocCount(t){return this._aggsDef.min_doc_count=t,this}shardMinDocCount(t){return this._aggsDef.shard_min_doc_count=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}missing(t){return this._aggsDef.missing=t,this}include(t){return this._aggsDef.include=t,this}exclude(t){return this._aggsDef.exclude=t,this}executionHint(t){s(t)&&u(t,this._refUrl);const e=t.toLowerCase();return n.has(e)||u(t,this._refUrl),this._aggsDef.execution_hint=t,this}}},function(t,e,r){"use strict";const{Query:s,Script:i,util:{checkType:n}}=r(1),o=r(29);t.exports=class extends o{jlh(){return this._aggsDef.jlh={},this}mutualInformation(t=!0,e=!0){return this._aggsDef.mutual_information={include_negatives:t,background_is_superset:e},this}chiSquare(t=!0,e=!0){return this._aggsDef.chi_square={include_negatives:t,background_is_superset:e},this}gnd(t=!0){return this._aggsDef.gnd={background_is_superset:t},this}percentage(){return this._aggsDef.percentage={},this}scriptHeuristic(t){return n(t,i),this._aggsDef.script_heuristic={script:t},this}backgroundFilter(t){return n(t,s),this._aggsDef.background_filter=t,this}script(){throw console.log(`Please refer ${this._refUrl}`),new Error(`script is not supported in ${this.constructor.name}`)}}},function(t,e,r){"use strict";const s=r(0),{Suggester:i}=r(1);t.exports=class extends i{constructor(t,e,r,i){super(t,e,r),s(i)||(this._opts.text=i)}text(t){return this._opts.text=t,this}analyzer(t){return this._suggestOpts.analyzer=t,this}shardSize(t){return this._suggestOpts.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(22),i=r(13);function n(t,r){const s={seen:[],stylize:o};return arguments.length>=3&&(s.depth=arguments[2]),arguments.length>=4&&(s.colors=arguments[3]),a(r)?s.showHidden=r:r&&e._extend(s,r),g(s.showHidden)&&(s.showHidden=!1),g(s.depth)&&(s.depth=2),g(s.colors)&&(s.colors=!1),g(s.customInspect)&&(s.customInspect=!0),s.colors&&(s.stylize=u),c(s,t,s.depth)}function o(t){return t}function u(t,e){const r=n.styles[e];return r?`[${n.colors[r][0]}m${t}[${n.colors[r][1]}m`:t}function c(t,r,i){if(t.customInspect&&r&&f(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){let e=r.inspect(i,t);return s(e)||(e=c(t,e,i)),e}const n=function(t,e){if(g(e))return t.stylize("undefined","undefined");if(s(e)){const r=`'${JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')}'`;return t.stylize(r,"string")}if(function(t){return"number"==typeof t}(e))return t.stylize(`${e}`,"number");if(a(e))return t.stylize(`${e}`,"boolean");if(h(e))return t.stylize("null","null")}(t,r);if(n)return n;let o=Object.keys(r);const u=function(t){const e={};return t.forEach(t=>{e[t]=!0}),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),_(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return d(r);if(0===o.length){if(f(r)){const e=r.name?`: ${r.name}`:"";return t.stylize(`[Function${e}]`,"special")}if(l(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(p(r))return t.stylize(Date.prototype.toString.call(r),"date");if(_(r))return d(r)}let m,w="",x=!1,O=["{","}"];if(function(t){return Array.isArray(t)}(r)&&(x=!0,O=["[","]"]),f(r)){w=` [Function${r.name?`: ${r.name}`:""}]`}return l(r)&&(w=` ${RegExp.prototype.toString.call(r)}`),p(r)&&(w=` ${Date.prototype.toUTCString.call(r)}`),_(r)&&(w=` ${d(r)}`),0!==o.length||x&&0!==r.length?i<0?l(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),m=x?function(t,e,r,s,i){const n=[];for(let i=0,o=e.length;i{i.match(/^\d+$/)||n.push(y(t,e,r,s,i,!0))}),n}(t,r,i,u,o):o.map(e=>y(t,r,i,u,e,x)),t.seen.pop(),function(t,e,r){if(t.reduce((t,e)=>t+e.replace(/\u001b\[\d\d?m/g,"").length+1,0)>60)return`${r[0]+(""===e?"":`${e}\n `)} ${t.join(",\n ")} ${r[1]}`;return`${r[0]+e} ${t.join(", ")} ${r[1]}`}(m,w,O)):O[0]+w+O[1]}function a(t){return"boolean"==typeof t}function h(t){return null===t}function g(t){return void 0===t}function l(t){return i(t)&&"[object RegExp]"===m(t)}function p(t){return i(t)&&"[object Date]"===m(t)}function _(t){return i(t)&&("[object Error]"===m(t)||t instanceof Error)}function f(t){return"function"==typeof t}function d(t){return`[${Error.prototype.toString.call(t)}]`}function y(t,e,r,s,i,n){let o,u;const a=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]};if(a.get?u=a.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):a.set&&(u=t.stylize("[Setter]","special")),hasOwnProperty(s,i)||(o=`[${i}]`),u||(t.seen.indexOf(a.value)<0?(u=h(r)?c(t,a.value,null):c(t,a.value,r-1)).indexOf("\n")>-1&&(u=n?u.split("\n").map(t=>` ${t}`).join("\n").slice(2):`\n${u.split("\n").map(t=>` ${t}`).join("\n")}`):u=t.stylize("[Circular]","special")),g(o)){if(n&&i.match(/^\d+$/))return u;(o=JSON.stringify(`${i}`)).match(/^"([a-zA-Z_]\w*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return`${o}: ${u}`}function m(t){return Object.prototype.toString.call(t)}t.exports=n},function(t,e,r){"use strict";const s=r(5),i=r(7),{checkType:n,recursiveToJSON:o}=r(6);class u{constructor(t,e){if(i(e))throw new Error("Aggregation `aggType` cannot be empty");this._name=t,this.aggType=e,this._aggs={},this._aggsDef=this._aggs[e]={},this._nestedAggs=[]}name(t){return this._name=t,this}aggregation(t){return n(t,u),this._nestedAggs.push(t),this}agg(t){return this.aggregation(t)}aggregations(t){return n(t,Array),t.forEach(t=>this.aggregation(t)),this}aggs(t){return this.aggregations(t)}meta(t){return this._aggs.meta=t,this}_aggsName(){if(!i(this._name))return this._name;if(s(this._aggsDef,"field"))return`agg_${this.aggType}_${this._aggsDef.field}`;throw new Error("Aggregation name could not be determined")}getDSL(){return this.toJSON()}toJSON(){const t=o(this._aggs);return i(this._nestedAggs)||(t.aggs=Object.assign({},...o(this._nestedAggs))),{[this._aggsName()]:t}}}t.exports=u},function(t,e,r){"use strict";const s=r(0),i=r(7);t.exports=class{constructor(t,e,r){if(i(t))throw new Error("Suggester `suggesterType` cannot be empty");if(i(e))throw new Error("Suggester `name` cannot be empty");this.name=e,this.suggesterType=t,this._body={},this._opts=this._body[e]={},this._suggestOpts=this._opts[t]={},s(r)||(this._suggestOpts.field=r)}field(t){return this._suggestOpts.field=t,this}size(t){return this._suggestOpts.size=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),i=r(12),{checkType:n,invalidParam:o,recursiveToJSON:u}=r(6),{RESCORE_MODE_SET:c}=r(18),a=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-rescore.html","score_mode",c);t.exports=class{constructor(t,e){this._body={},this._rescoreOpts=this._body.query={},s(t)||(this._body.window_size=t),s(e)||this.rescoreQuery(e)}windowSize(t){return this._body.window_size=t,this}rescoreQuery(t){return n(t,i),this._rescoreOpts.rescore_query=t,this}queryWeight(t){return this._rescoreOpts.query_weight=t,this}rescoreQueryWeight(t){return this._rescoreOpts.rescore_query_weight=t,this}scoreMode(t){s(t)&&a(t);const e=t.toLowerCase();return c.has(e)||a(t),this._rescoreOpts.score_mode=e,this}toJSON(){return u(this._body)}}},function(t,e,r){"use strict";const s=r(0);t.exports=class{constructor(t,e){if(this._isTypeSet=!1,this._body={},!s(t)&&!s(e))switch(t.toLowerCase()){case"inline":this.inline(e);break;case"source":this.source(e);break;case"stored":this.stored(e);break;case"id":this.id(e);break;case"file":this.file(e);break;default:throw new Error("`type` must be one of `inline`, `stored`, `file`")}}_warn(t){console.warn(`[Script] ${t}`)}_checkMixedRepr(){this._isTypeSet&&(this._warn("Script source(`inline`/`source`/`stored`/`id`/`file`) was already specified!"),this._warn("Overwriting."),delete this._body.inline,delete this._body.source,delete this._body.stored,delete this._body.id,delete this._body.file)}inline(t){return this._checkMixedRepr(),this._body.inline=t,this._isTypeSet=!0,this}source(t){return this._checkMixedRepr(),this._body.source=t,this._isTypeSet=!0,this}stored(t){return this._checkMixedRepr(),this._body.stored=t,this._isTypeSet=!0,this}id(t){return this._checkMixedRepr(),this._body.id=t,this._isTypeSet=!0,this}file(t){return this._checkMixedRepr(),this._body.file=t,this._isTypeSet=!0,this}lang(t){return this._body.lang=t,this}params(t){return this._body.params=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),i=r(23),n=r(24),{checkType:o,setDefault:u,recursiveToJSON:c}=r(6);t.exports=class{constructor(t){this._body={},s(t)||(this._body.name=t)}name(t){return this._body.name=t,this}from(t){return this._body.from=t,this}size(t){return this._body.size=t,this}sort(t){return o(t,i),u(this._body,"sort",[]),this._body.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}highlight(t){return o(t,n),this._body.highlight=t,this}explain(t){return this._body.explain=t,this}source(t){return this._body._source=t,this}storedFields(t){return this._body.stored_fields=t,this}scriptField(t,e){return u(this._body,"script_fields",{}),this._body.script_fields[t]={script:e},this}scriptFields(t){return o(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._body.docvalue_fields=t,this}version(t){return this._body.version=t,this}toJSON(){return c(this._body)}}},function(t,e,r){"use strict";const s=r(0),i=["boolean","composite","date","double","geo_point","ip","keyword","long","lookup"];t.exports=class{constructor(t,e){this._body={},this._isTypeSet=!1,this._isScriptSet=!1,s(t)||this.type(t),s(e)||this.script(e)}script(t){this._body.script={source:t},this._isScriptSet=!0}type(t){const e=t.toLowerCase();if(!i.includes(e))throw new Error(`\`type\` must be one of ${i.join(", ")}`);this._body.type=e,this._isTypeSet=!0}toJSON(){if(!this._isTypeSet)throw new Error("`type` should be set");if(!this._isScriptSet)throw new Error("`script` should be set");return this._body}}},function(t,e,r){"use strict";e.MatchAllQuery=r(51),e.MatchNoneQuery=r(52),e.fullTextQueries=r(53),e.termLevelQueries=r(40),e.compoundQueries=r(73),e.joiningQueries=r(86),e.geoQueries=r(91),e.specializedQueries=r(96),e.spanQueries=r(103)},function(t,e,r){"use strict";e.MultiTermQueryBase=r(10),e.TermQuery=r(62),e.TermsQuery=r(63),e.TermsSetQuery=r(64),e.RangeQuery=r(65),e.ExistsQuery=r(66),e.PrefixQuery=r(67),e.WildcardQuery=r(68),e.RegexpQuery=r(69),e.FuzzyQuery=r(70),e.TypeQuery=r(71),e.IdsQuery=r(72)},function(t,e,r){"use strict";const s=r(5),i=r(0),{Query:n}=r(1);t.exports=class extends n{constructor(t,e,r){super(t),i(e)||(this._field=e),i(r)||(this._queryOpts.value=r)}field(t){return this._field=t,this}value(t){return this._queryOpts.value=t,this}toJSON(){if(!s(this._queryOpts,"value"))throw new Error("Value is required for term level query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.value:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}caseInsensitive(t=!0){return this._queryOpts.case_insensitive=t,this}}},function(t,e,r){"use strict";e.ScoreFunction=r(11),e.ScriptScoreFunction=r(74),e.WeightScoreFunction=r(75),e.RandomScoreFunction=r(76),e.FieldValueFactorFunction=r(77),e.DecayScoreFunction=r(78)},function(t,e,r){"use strict";const{RequestBodySearch:s,Highlight:i,Script:n,GeoPoint:o,GeoShape:u,IndexedShape:c,Sort:a,Rescore:h,InnerHits:g,RuntimeField:l,SearchTemplate:p,Query:_,util:{constructorWrapper:f}}=r(1),{MatchAllQuery:d,MatchNoneQuery:y,fullTextQueries:{MatchQuery:m,MatchPhraseQuery:w,MatchPhrasePrefixQuery:x,MultiMatchQuery:O,CommonTermsQuery:b,QueryStringQuery:S,SimpleQueryStringQuery:v,CombinedFieldsQuery:A},termLevelQueries:{TermQuery:q,TermsQuery:D,TermsSetQuery:T,RangeQuery:Q,ExistsQuery:k,PrefixQuery:E,WildcardQuery:P,RegexpQuery:z,FuzzyQuery:M,TypeQuery:F,IdsQuery:j},compoundQueries:{ConstantScoreQuery:$,BoolQuery:C,DisMaxQuery:R,FunctionScoreQuery:N,BoostingQuery:G,scoreFunctions:{ScriptScoreFunction:B,WeightScoreFunction:L,RandomScoreFunction:H,FieldValueFactorFunction:I,DecayScoreFunction:J}},joiningQueries:{NestedQuery:W,HasChildQuery:U,HasParentQuery:V,ParentIdQuery:Z},geoQueries:{GeoShapeQuery:K,GeoBoundingBoxQuery:Y,GeoDistanceQuery:X,GeoPolygonQuery:tt},specializedQueries:{MoreLikeThisQuery:et,ScriptQuery:rt,ScriptScoreQuery:st,PercolateQuery:it,DistanceFeatureQuery:nt,RankFeatureQuery:ot},spanQueries:{SpanTermQuery:ut,SpanMultiTermQuery:ct,SpanFirstQuery:at,SpanNearQuery:ht,SpanOrQuery:gt,SpanNotQuery:lt,SpanContainingQuery:pt,SpanWithinQuery:_t,SpanFieldMaskingQuery:ft}}=r(39),{metricsAggregations:{AvgAggregation:dt,CardinalityAggregation:yt,ExtendedStatsAggregation:mt,GeoBoundsAggregation:wt,GeoCentroidAggregation:xt,MaxAggregation:Ot,MinAggregation:bt,PercentilesAggregation:St,PercentileRanksAggregation:vt,ScriptedMetricAggregation:At,StatsAggregation:qt,SumAggregation:Dt,TopHitsAggregation:Tt,ValueCountAggregation:Qt,WeightedAverageAggregation:kt},bucketAggregations:{AdjacencyMatrixAggregation:Et,ChildrenAggregation:Pt,CompositeAggregation:zt,DateHistogramAggregation:Mt,AutoDateHistogramAggregation:Ft,VariableWidthHistogramAggregation:jt,DateRangeAggregation:$t,DiversifiedSamplerAggregation:Ct,FilterAggregation:Rt,FiltersAggregation:Nt,GeoDistanceAggregation:Gt,GeoHashGridAggregation:Bt,GeoHexGridAggregation:Lt,GeoTileGridAggregation:Ht,GlobalAggregation:It,HistogramAggregation:Jt,IpRangeAggregation:Wt,MissingAggregation:Ut,NestedAggregation:Vt,ParentAggregation:Zt,RangeAggregation:Kt,RareTermsAggregation:Yt,ReverseNestedAggregation:Xt,SamplerAggregation:te,SignificantTermsAggregation:ee,SignificantTextAggregation:re,TermsAggregation:se},pipelineAggregations:{AvgBucketAggregation:ie,DerivativeAggregation:ne,MaxBucketAggregation:oe,MinBucketAggregation:ue,SumBucketAggregation:ce,StatsBucketAggregation:ae,ExtendedStatsBucketAggregation:he,PercentilesBucketAggregation:ge,MovingAverageAggregation:le,MovingFunctionAggregation:pe,CumulativeSumAggregation:_e,BucketScriptAggregation:fe,BucketSelectorAggregation:de,SerialDifferencingAggregation:ye,BucketSortAggregation:me},matrixAggregations:{MatrixStatsAggregation:we}}=r(113),{TermSuggester:xe,DirectGenerator:Oe,PhraseSuggester:be,CompletionSuggester:Se}=r(180),ve=r(185);e.RequestBodySearch=s,e.requestBodySearch=f(s),e.Query=_,e.query=f(_),e.MatchAllQuery=d,e.matchAllQuery=f(d),e.MatchNoneQuery=y,e.matchNoneQuery=f(y),e.MatchQuery=m,e.matchQuery=f(m),e.MatchPhraseQuery=w,e.matchPhraseQuery=f(w),e.MatchPhrasePrefixQuery=x,e.matchPhrasePrefixQuery=f(x),e.MultiMatchQuery=O,e.multiMatchQuery=f(O),e.CommonTermsQuery=b,e.commonTermsQuery=f(b),e.QueryStringQuery=S,e.queryStringQuery=f(S),e.SimpleQueryStringQuery=v,e.simpleQueryStringQuery=f(v),e.CombinedFieldsQuery=A,e.combinedFieldsQuery=f(A),e.TermQuery=q,e.termQuery=f(q),e.TermsQuery=D,e.termsQuery=f(D),e.TermsSetQuery=T,e.termsSetQuery=f(T),e.RangeQuery=Q,e.rangeQuery=f(Q),e.ExistsQuery=k,e.existsQuery=f(k),e.PrefixQuery=E,e.prefixQuery=f(E),e.WildcardQuery=P,e.wildcardQuery=f(P),e.RegexpQuery=z,e.regexpQuery=f(z),e.FuzzyQuery=M,e.fuzzyQuery=f(M),e.TypeQuery=F,e.typeQuery=f(F),e.IdsQuery=j,e.idsQuery=f(j),e.ConstantScoreQuery=$,e.constantScoreQuery=f($),e.BoolQuery=C,e.boolQuery=f(C),e.DisMaxQuery=R,e.disMaxQuery=f(R),e.FunctionScoreQuery=N,e.functionScoreQuery=f(N),e.BoostingQuery=G,e.boostingQuery=f(G),e.NestedQuery=W,e.nestedQuery=f(W),e.HasChildQuery=U,e.hasChildQuery=f(U),e.HasParentQuery=V,e.hasParentQuery=f(V),e.ParentIdQuery=Z,e.parentIdQuery=f(Z),e.GeoShapeQuery=K,e.geoShapeQuery=f(K),e.GeoBoundingBoxQuery=Y,e.geoBoundingBoxQuery=f(Y),e.GeoDistanceQuery=X,e.geoDistanceQuery=f(X),e.GeoPolygonQuery=tt,e.geoPolygonQuery=f(tt),e.MoreLikeThisQuery=et,e.moreLikeThisQuery=f(et),e.ScriptQuery=rt,e.scriptQuery=f(rt),e.ScriptScoreQuery=st,e.scriptScoreQuery=f(st),e.PercolateQuery=it,e.percolateQuery=f(it),e.DistanceFeatureQuery=nt,e.distanceFeatureQuery=f(nt),e.RankFeatureQuery=ot,e.rankFeatureQuery=f(ot),e.SpanTermQuery=ut,e.spanTermQuery=f(ut),e.SpanMultiTermQuery=ct,e.spanMultiTermQuery=f(ct),e.SpanFirstQuery=at,e.spanFirstQuery=f(at),e.SpanNearQuery=ht,e.spanNearQuery=f(ht),e.SpanOrQuery=gt,e.spanOrQuery=f(gt),e.SpanNotQuery=lt,e.spanNotQuery=f(lt),e.SpanContainingQuery=pt,e.spanContainingQuery=f(pt),e.SpanWithinQuery=_t,e.spanWithinQuery=f(_t),e.SpanFieldMaskingQuery=ft,e.spanFieldMaskingQuery=f(ft),e.AvgAggregation=dt,e.avgAggregation=f(dt),e.WeightedAverageAggregation=kt,e.weightedAverageAggregation=f(kt),e.CardinalityAggregation=yt,e.cardinalityAggregation=f(yt),e.ExtendedStatsAggregation=mt,e.extendedStatsAggregation=f(mt),e.GeoBoundsAggregation=wt,e.geoBoundsAggregation=f(wt),e.GeoCentroidAggregation=xt,e.geoCentroidAggregation=f(xt),e.MaxAggregation=Ot,e.maxAggregation=f(Ot),e.MinAggregation=bt,e.minAggregation=f(bt),e.PercentilesAggregation=St,e.percentilesAggregation=f(St),e.PercentileRanksAggregation=vt,e.percentileRanksAggregation=f(vt),e.ScriptedMetricAggregation=At,e.scriptedMetricAggregation=f(At),e.StatsAggregation=qt,e.statsAggregation=f(qt),e.SumAggregation=Dt,e.sumAggregation=f(Dt),e.TopHitsAggregation=Tt,e.topHitsAggregation=f(Tt),e.ValueCountAggregation=Qt,e.valueCountAggregation=f(Qt),e.AdjacencyMatrixAggregation=Et,e.adjacencyMatrixAggregation=f(Et),e.ChildrenAggregation=Pt,e.childrenAggregation=f(Pt),e.CompositeAggregation=zt,e.compositeAggregation=f(zt),e.DateHistogramAggregation=Mt,e.dateHistogramAggregation=f(Mt),e.AutoDateHistogramAggregation=Ft,e.autoDateHistogramAggregation=f(Ft),e.VariableWidthHistogramAggregation=jt,e.variableWidthHistogramAggregation=f(jt),e.DateRangeAggregation=$t,e.dateRangeAggregation=f($t),e.DiversifiedSamplerAggregation=Ct,e.diversifiedSamplerAggregation=f(Ct),e.FilterAggregation=Rt,e.filterAggregation=f(Rt),e.FiltersAggregation=Nt,e.filtersAggregation=f(Nt),e.GeoDistanceAggregation=Gt,e.geoDistanceAggregation=f(Gt),e.GeoHashGridAggregation=Bt,e.geoHashGridAggregation=f(Bt),e.GeoHexGridAggregation=Lt,e.geoHexGridAggregation=f(Lt),e.GeoTileGridAggregation=Ht,e.geoTileGridAggregation=f(Ht),e.GlobalAggregation=It,e.globalAggregation=f(It),e.HistogramAggregation=Jt,e.histogramAggregation=f(Jt),e.IpRangeAggregation=Wt,e.ipRangeAggregation=f(Wt),e.MissingAggregation=Ut,e.missingAggregation=f(Ut),e.NestedAggregation=Vt,e.nestedAggregation=f(Vt),e.ParentAggregation=Zt,e.parentAggregation=f(Zt),e.RangeAggregation=Kt,e.rangeAggregation=f(Kt),e.RareTermsAggregation=Yt,e.rareTermsAggregation=f(Yt),e.ReverseNestedAggregation=Xt,e.reverseNestedAggregation=f(Xt),e.SamplerAggregation=te,e.samplerAggregation=f(te),e.SignificantTermsAggregation=ee,e.significantTermsAggregation=f(ee),e.SignificantTextAggregation=re,e.significantTextAggregation=f(re),e.TermsAggregation=se,e.termsAggregation=f(se),e.AvgBucketAggregation=ie,e.avgBucketAggregation=f(ie),e.DerivativeAggregation=ne,e.derivativeAggregation=f(ne),e.MaxBucketAggregation=oe,e.maxBucketAggregation=f(oe),e.MinBucketAggregation=ue,e.minBucketAggregation=f(ue),e.BucketSortAggregation=me,e.bucketSortAggregation=f(me),e.SumBucketAggregation=ce,e.sumBucketAggregation=f(ce),e.StatsBucketAggregation=ae,e.statsBucketAggregation=f(ae),e.ExtendedStatsBucketAggregation=he,e.extendedStatsBucketAggregation=f(he),e.PercentilesBucketAggregation=ge,e.percentilesBucketAggregation=f(ge),e.MovingAverageAggregation=le,e.movingAverageAggregation=f(le),e.MovingFunctionAggregation=pe,e.movingFunctionAggregation=f(pe),e.CumulativeSumAggregation=_e,e.cumulativeSumAggregation=f(_e),e.BucketScriptAggregation=fe,e.bucketScriptAggregation=f(fe),e.BucketSelectorAggregation=de,e.bucketSelectorAggregation=f(de),e.SerialDifferencingAggregation=ye,e.serialDifferencingAggregation=f(ye),e.MatrixStatsAggregation=we,e.matrixStatsAggregation=f(we),e.ScriptScoreFunction=B,e.scriptScoreFunction=f(B),e.WeightScoreFunction=L,e.weightScoreFunction=f(L),e.RandomScoreFunction=H,e.randomScoreFunction=f(H),e.FieldValueFactorFunction=I,e.fieldValueFactorFunction=f(I),e.DecayScoreFunction=J,e.decayScoreFunction=f(J),e.TermSuggester=xe,e.termSuggester=f(xe),e.DirectGenerator=Oe,e.directGenerator=f(Oe),e.PhraseSuggester=be,e.phraseSuggester=f(be),e.CompletionSuggester=Se,e.completionSuggester=f(Se),e.recipes=ve,e.cookMissingQuery=ve.missingQuery,e.cookRandomSortQuery=ve.randomSortQuery,e.cookFilterQuery=ve.filterQuery,e.Highlight=i,e.highlight=f(i),e.Script=n,e.script=f(n),e.GeoPoint=o,e.geoPoint=f(o),e.GeoShape=u,e.geoShape=f(u),e.IndexedShape=c,e.indexedShape=f(c),e.Sort=a,e.sort=f(a),e.Rescore=h,e.rescore=f(h),e.InnerHits=g,e.innerHits=f(g),e.SearchTemplate=p,e.searchTemplate=f(p),e.RuntimeField=l,e.runtimeField=f(l),e.prettyPrint=function(t){console.log(JSON.stringify(t,null,2))}},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(7),o=r(12),u=r(33),c=r(34),a=r(35),h=r(23),g=r(24),l=r(37),{checkType:p,setDefault:_,recursiveToJSON:f}=r(6),d=r(38);function y(t){return Object.assign({},...f(t))}t.exports=class{constructor(){this._body={},this._aggs=[],this._suggests=[],this._suggestText=null}query(t){return p(t,o),this._body.query=t,this}agg(t){return this.aggregation(t)}aggregation(t){return p(t,u),this._aggs.push(t),this}aggs(t){return this.aggregations(t)}aggregations(t){return p(t,Array),t.forEach(t=>this.aggregation(t)),this}suggest(t){return p(t,c),this._suggests.push(t),this}suggestText(t){return this._suggestText=t,this}timeout(t){return this._body.timeout=t,this}from(t){return this._body.from=t,this}size(t){return this._body.size=t,this}terminateAfter(t){return this._body.terminate_after=t,this}sort(t){return p(t,h),_(this._body,"sort",[]),this._body.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}trackScores(t){return this._body.track_scores=t,this}trackTotalHits(t){return this._body.track_total_hits=t,this}source(t){return this._body._source=t,this}storedFields(t){return this._body.stored_fields=t,this}runtimeMapping(t,e){return p(e,d),_(this._body,"runtime_mappings",{}),this._body.runtime_mappings[t]=e,this}runtimeMappings(t){return p(t,Object),Object.keys(t).forEach(e=>this.runtimeMapping(e,t[e])),this}scriptField(t,e){return _(this._body,"script_fields",{}),this._body.script_fields[t]={script:e},this}scriptFields(t){return p(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._body.docvalue_fields=t,this}postFilter(t){return p(t,o),this._body.post_filter=t,this}highlight(t){return p(t,g),this._body.highlight=t,this}rescore(t){return p(t,a),s(this._body,"rescore")?(Array.isArray(this._body.rescore)||(this._body.rescore=[this._body.rescore]),this._body.rescore.push(t)):this._body.rescore=t,this}explain(t){return this._body.explain=t,this}version(t){return this._body.version=t,this}indexBoost(t,e){return this.indicesBoost(t,e)}indicesBoost(t,e){return _(this._body,"indices_boost",[]),this._body.indices_boost.push({[t]:e}),this}minScore(t){return this._body.min_score=t,this}collapse(t,e,r){const s=this._body.collapse={field:t};return i(e)||(p(e,l),s.inner_hits=e,s.max_concurrent_group_searches=r),this}searchAfter(t){return this._body.search_after=t,this}toJSON(){const t=f(this._body);return n(this._aggs)||(t.aggs=y(this._aggs)),n(this._suggests)&&i(this._suggestText)||(t.suggest=y(this._suggests),i(this._suggestText)||(t.suggest.text=this._suggestText)),t}}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){(function(e){var r="Expected a function",s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,l=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,y="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,w=y||m||Function("return this")();var x=Array.prototype,O=Function.prototype,b=Object.prototype,S=w["__core-js_shared__"],v=function(){var t=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),A=O.toString,q=b.hasOwnProperty,D=b.toString,T=RegExp("^"+A.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=w.Symbol,k=b.propertyIsEnumerable,E=x.splice,P=L(w,"Map"),z=L(Object,"create"),M=Q?Q.prototype:void 0,F=M?M.toString:void 0;function j(t){var e=-1,r=t?t.length:0;for(this.clear();++e-1&&t%1==0&&t-1},$.prototype.set=function(t,e){var r=this.__data__,s=R(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},C.prototype.clear=function(){this.__data__={hash:new j,map:new(P||$),string:new j}},C.prototype.delete=function(t){return B(this,t).delete(t)},C.prototype.get=function(t){return B(this,t).get(t)},C.prototype.has=function(t){return B(this,t).has(t)},C.prototype.set=function(t,e){return B(this,t).set(t,e),this};var I=W(function(t){t=function(t){return null==t?"":function(t){if("string"==typeof t)return t;if(tt(t))return F?F.call(t):"";var e=t+"";return"0"==e&&1/t==-i?"-0":e}(t)}(t);var e=[];return l.test(t)&&e.push(""),t.replace(p,function(t,r,s,i){e.push(s?i.replace(_,"$1"):r||t)}),e});function J(t){if("string"==typeof t||tt(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}function W(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(r);var s=function(){var r=arguments,i=e?e.apply(this,r):r[0],n=s.cache;if(n.has(i))return n.get(i);var o=t.apply(this,r);return s.cache=n.set(i,o),o};return s.cache=new(W.Cache||C),s}function U(t,e){return t===e||t!=t&&e!=e}W.Cache=C;var V=Array.isArray;function Z(t){var e=Y(t)?D.call(t):"";return e==u||e==c}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function X(t){return!!t&&"object"==typeof t}function tt(t){return"symbol"==typeof t||X(t)&&D.call(t)==a}t.exports=function(t,e){return null!=t&&H(t,e,N)}}).call(this,r(17))},function(t,e,r){"use strict";const s=r(13),i=r(0),{checkType:n}=r(6);t.exports=class{constructor(){this._point=null}_warn(t){console.warn(`[GeoPoint] ${t}`)}_warnMixedRepr(){this._warn("Do not mix with other representation!"),this._warn("Overwriting.")}_checkObjRepr(){i(this._point)?this._point={}:s(this._point)||(this._warnMixedRepr(),this._point={})}lat(t){return this._checkObjRepr(),this._point.lat=t,this}lon(t){return this._checkObjRepr(),this._point.lon=t,this}object(t){return n(t,Object),!i(this._point)&&this._warnMixedRepr(),this._point=t,this}array(t){return n(t,Array),!i(this._point)&&this._warnMixedRepr(),this._point=t,this}string(t){return!i(this._point)&&this._warnMixedRepr(),this._point=t,this}toJSON(){return this._point}}},function(t,e,r){"use strict";const s=r(0),i=r(5),{checkType:n,invalidParam:o}=r(6),{GEO_SHAPE_TYPES:u}=r(18),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-shape.html","type",u);t.exports=class{constructor(t,e){this._body={},s(t)||this.type(t),s(e)||this.coordinates(e)}type(t){s(t)&&c(t);const e=t.toLowerCase();return u.has(e)||c(t),this._body.type=e,this}coordinates(t){return n(t,Array),this._body.coordinates=t,this}radius(t){return this._body.radius=t,this}toJSON(){if(!i(this._body,"type")||!i(this._body,"coordinates"))throw new Error("For all types, both the inner `type` and `coordinates` fields are required.");return this._body}}},function(t,e,r){"use strict";const s=r(0);t.exports=class{constructor(t,e){this._body={},s(t)||(this._body.id=t),s(e)||(this._body.type=e)}id(t){return this._body.id=t,this}type(t){return this._body.type=t,this}index(t){return this._body.index=t,this}path(t){return this._body.path=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),{recursiveToJSON:i}=r(6);t.exports=class{constructor(t,e){if(this._isTypeSet=!1,this._body={},!s(t)&&!s(e)){const r=t.toLowerCase();if("inline"!==r&&"id"!==r&&"indexed"!==r&&"file"!==r)throw new Error("`type` must be one of `inline`, `id`, `indexed`, `file`");this[r](e)}}_warn(t){console.warn(`[SearchTemplate] ${t}`)}_checkMixedRepr(){this._isTypeSet&&(this._warn("Search template source(`inline`/`id`/`file`) was already specified!"),this._warn("Overwriting."),delete this._body.file,delete this._body.id,delete this._body.file)}_setSource(t,e){return this._checkMixedRepr(),this._body[t]=e,this._isTypeSet=!0,this}inline(t){return this._setSource("inline",t)}id(t){return this._setSource("id",t)}indexed(t){return this.id(t)}file(t){return this._setSource("file",t)}params(t){return this._body.params=t,this}toJSON(){return i(this._body)}}},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{constructor(){super("match_all")}}},function(t,e,r){"use strict";const{Query:s}=r(1);t.exports=class extends s{constructor(){super("match_none")}}},function(t,e,r){"use strict";e.FullTextQueryBase=r(14),e.MatchPhraseQueryBase=r(25),e.MonoFieldQueryBase=r(19),e.QueryStringQueryBase=r(26),e.MatchQuery=r(54),e.MatchPhraseQuery=r(55),e.MatchPhrasePrefixQuery=r(56),e.MultiMatchQuery=r(57),e.CommonTermsQuery=r(58),e.QueryStringQuery=r(59),e.SimpleQueryStringQuery=r(60),e.CombinedFieldsQuery=r(61)},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i}}=r(1),n=r(19),{validateRewiteMethod:o}=r(9),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query.html",c=i(u,"operator","'and' or 'or'"),a=i(u,"zero_terms_query","'all' or 'none'");t.exports=class extends n{constructor(t,e){super("match",t,e)}operator(t){s(t)&&c(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&c(t),this._queryOpts.operator=e,this}lenient(t){return this._queryOpts.lenient=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}rewrite(t){return o(t,"rewrite",u),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return o(t,"fuzzy_rewrite",u),this._queryOpts.fuzzy_rewrite=t,this}fuzzyTranspositions(t){return this._queryOpts.fuzzy_transpositions=t,this}zeroTermsQuery(t){s(t)&&a(t);const e=t.toLowerCase();return"all"!==e&&"none"!==e&&a(t),this._queryOpts.zero_terms_query=e,this}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}}},function(t,e,r){"use strict";const s=r(25),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase.html";t.exports=class extends s{constructor(t,e){super("match_phrase",i,t,e)}}},function(t,e,r){"use strict";const s=r(25),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-query-phrase-prefix.html";t.exports=class extends s{constructor(t,e){super("match_phrase_prefix",i,t,e)}maxExpansions(t){return this._queryOpts.max_expansions=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i,invalidParam:n},consts:{MULTI_MATCH_TYPE:o}}=r(1),u=r(14),{validateRewiteMethod:c}=r(9),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html",h=n(a,"type",o),g=n(a,"operator","'and' or 'or'"),l=n(a,"behavior","'all' or 'none'");t.exports=class extends u{constructor(t,e){super("multi_match",e),this._queryOpts.fields=[],s(t)||(Array.isArray(t)?this.fields(t):this.field(t))}field(t){return this._queryOpts.fields.push(t),this}fields(t){return i(t,Array),this._queryOpts.fields=this._queryOpts.fields.concat(t),this}type(t){s(t)&&h(t);const e=t.toLowerCase();return o.has(e)||h(t),this._queryOpts.type=e,this}tieBreaker(t){return this._queryOpts.tie_breaker=t,this}operator(t){s(t)&&g(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&g(t),this._queryOpts.operator=e,this}lenient(t){return this._queryOpts.lenient=t,this}slop(t){return this._queryOpts.slop=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}rewrite(t){return c(t,"rewrite",a),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return c(t,"fuzzy_rewrite",a),this._queryOpts.fuzzy_rewrite=t,this}zeroTermsQuery(t){s(t)&&l(t);const e=t.toLowerCase();return"all"!==e&&"none"!==e&&l(t),this._queryOpts.zero_terms_query=t,this}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(13),{util:{invalidParam:n,setDefault:o}}=r(1),u=r(19),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-common-terms-query.html",a=n(c,"low_freq_operator","'and' or 'or'"),h=n(c,"high_freq_operator","'and' or 'or'");t.exports=class extends u{constructor(t,e){super("common",t,e)}_warn(t){console.warn(`[CommonTermsQuery] ${t}`)}_warnMixedRepr(){this._warn("Do not mix with other representation!"),this._warn("Overwriting.")}_checkMinMatchRepr(){o(this._queryOpts,"minimum_should_match",{})||i(this._queryOpts.minimum_should_match)||(this._warnMixedRepr(),this._queryOpts.minimum_should_match={})}cutoffFrequency(t){return this._queryOpts.cutoff_frequency=t,this}lowFreqOperator(t){s(t)&&a(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&a(t),this._queryOpts.low_freq_operator=e,this}highFreqOperator(t){s(t)&&h(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&h(t),this._queryOpts.high_freq_operator=e,this}lowFreq(t){return this._checkMinMatchRepr(),this._queryOpts.minimum_should_match.low_freq=t,this}highFreq(t){return this._checkMinMatchRepr(),this._queryOpts.minimum_should_match.high_freq=t,this}disableCoord(t){return this._queryOpts.disable_coord=t,this}}},function(t,e,r){"use strict";const s=r(26),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html";t.exports=class extends s{constructor(t){super("query_string",n,t)}defaultField(t){return this._queryOpts.default_field=t,this}allowLeadingWildcard(t){return this._queryOpts.allow_leading_wildcard=t,this}enablePositionIncrements(t){return this._queryOpts.enable_position_increments=t,this}fuzzyMaxExpansions(t){return this._queryOpts.fuzzy_max_expansions=t,this}fuzziness(t){return this._queryOpts.fuzziness=t,this}fuzzyPrefixLength(t){return this._queryOpts.fuzzy_prefix_length=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}fuzzyRewrite(t){return i(t,"fuzzy_rewrite",n),this._queryOpts.fuzzy_rewrite=t,this}phraseSlop(t){return this._queryOpts.phrase_slop=t,this}autoGeneratePhraseQueries(t){return this._queryOpts.auto_generate_phrase_queries=t,this}maxDeterminizedStates(t){return this._queryOpts.max_determinized_states=t,this}timeZone(t){return this._queryOpts.time_zone=t,this}splitOnWhitespace(t){return this._queryOpts.split_on_whitespace=t,this}useDisMax(t){return this._queryOpts.use_dis_max=t,this}tieBreaker(t){return this._queryOpts.tie_breaker=t,this}quoteAnalyzer(t){return this._queryOpts.quote_analyzer=t,this}escape(t){return this._queryOpts.escape=t,this}}},function(t,e,r){"use strict";const s=r(26),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html";t.exports=class extends s{constructor(t){super("simple_query_string",i,t)}flags(t){return this._queryOpts.flags=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i,invalidParam:n}}=r(1),o=r(14),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-combined-fields-query.html",c=n(u,"operator","'and' or 'or'"),a=n(u,"zero_terms_query","'all' or 'none'");t.exports=class extends o{constructor(t,e){super("combined_fields",e),this._queryOpts.fields=[],s(t)||(Array.isArray(t)?this.fields(t):this.field(t))}field(t){return this._queryOpts.fields.push(t),this}fields(t){return i(t,Array),this._queryOpts.fields=this._queryOpts.fields.concat(t),this}autoGenerateSynonymsPhraseQuery(t){return this._queryOpts.auto_generate_synonyms_phrase_query=t,this}operator(t){s(t)&&c(t);const e=t.toLowerCase();return"and"!==e&&"or"!==e&&c(t),this._queryOpts.operator=e,this}zeroTermsQuery(t){s(t)&&a(t);const e=t.toLowerCase();return"all"!==e&&"none"!==e&&a(t),this._queryOpts.zero_terms_query=e,this}}},function(t,e,r){"use strict";const s=r(41);t.exports=class extends s{constructor(t,e){super("term",t,e)}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),{Query:n}=r(1);t.exports=class extends n{constructor(t,e){super("terms"),this._isTermsLookup=!1,this._termsLookupOpts={},this._values=[],s(t)||(this._field=t),s(e)||(Array.isArray(e)?this.values(e):this.value(e))}_setTermsLookupOpt(t,e){this._isTermsLookup=!0,this._termsLookupOpts[t]=e}field(t){return this._field=t,this}value(t){return this._values.push(t),this}values(t){return i(t,Array),this._values=this._values.concat(t),this}termsLookup(t){return i(t,Object),this._isTermsLookup=!0,Object.assign(this._termsLookupOpts,t),this}index(t){return this._setTermsLookupOpt("index",t),this}type(t){return this._setTermsLookupOpt("type",t),this}id(t){return this._setTermsLookupOpt("id",t),this}path(t){return this._setTermsLookupOpt("path",t),this}routing(t){return this._setTermsLookupOpt("routing",t),this}toJSON(){return{[this.queryType]:Object.assign({},this._queryOpts,{[this._field]:this._isTermsLookup?this._termsLookupOpts:this._values})}}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super("terms_set"),this._queryOpts.terms=[],s(t)||(this._field=t),s(e)||(Array.isArray(e)?this.terms(e):this.term(e))}field(t){return this._field=t,this}term(t){return this._queryOpts.terms.push(t),this}terms(t){return n(t,Array),this._queryOpts.terms=this._queryOpts.terms.concat(t),this}minimumShouldMatchField(t){return this._queryOpts.minimum_should_match_field=t,this}minimumShouldMatchScript(t){return this._queryOpts.minimum_should_match_script=t,this}toJSON(){return{[this.queryType]:{[this._field]:this._queryOpts}}}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{GEO_RELATION_SET:n}}=r(1),o=r(10),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html",c=i(u,"relation",n);t.exports=class extends o{constructor(t){super("range",t)}value(){throw console.log(`Please refer ${u}`),new Error("value is not supported in RangeQuery")}gte(t){return this._queryOpts.gte=t,this}lte(t){return this._queryOpts.lte=t,this}gt(t){return this._queryOpts.gt=t,this}lt(t){return this._queryOpts.lt=t,this}from(t){return this._queryOpts.from=t,this}to(t){return this._queryOpts.to=t,this}includeLower(t){return this._queryOpts.include_lower=t,this}includeUpper(t){return this._queryOpts.include_upper=t,this}timeZone(t){return this._queryOpts.time_zone=t,this}format(t){return this._queryOpts.format=t,this}relation(t){s(t)&&c(t);const e=t.toUpperCase();return n.has(e)||c(t),this._queryOpts.relation=e,this}toJSON(){return{[this.queryType]:{[this._field]:this._queryOpts}}}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("exists"),s(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-prefix-query.html";t.exports=class extends s{constructor(t,e){super("prefix",t,e)}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html";t.exports=class extends s{constructor(t,e){super("wildcard",t,e)}caseInsensitive(t){return this._queryOpts.case_insensitive=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10),{validateRewiteMethod:i}=r(9),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html";t.exports=class extends s{constructor(t,e){super("regexp",t,e)}flags(t){return this._queryOpts.flags=t,this}caseInsensitive(t){return this._queryOpts.case_insensitive=t,this}maxDeterminizedStates(t){return this._queryOpts.max_determinized_states=t,this}rewrite(t){return i(t,"rewrite",n),this._queryOpts.rewrite=t,this}}},function(t,e,r){"use strict";const s=r(10);t.exports=class extends s{constructor(t,e){super("fuzzy",t,e)}fuzziness(t){return this._queryOpts.fuzziness=t,this}prefixLength(t){return this._queryOpts.prefix_length=t,this}maxExpansions(t){return this._queryOpts.max_expansions=t,this}transpositions(t){return this._queryOpts.transpositions=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("type"),s(t)||(this._queryOpts.value=t)}value(t){return this._queryOpts.value=t,this}type(t){return this.value(t)}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super("ids"),s(t)||(this._queryOpts.type=t),s(e)||this.values(e)}type(t){return this._queryOpts.type=t,this}values(t){return n(t,Array),this._queryOpts.values=t,this}ids(t){return this.values(t)}}},function(t,e,r){"use strict";e.scoreFunctions=r(42),e.ConstantScoreQuery=r(79),e.BoolQuery=r(80),e.DisMaxQuery=r(83),e.FunctionScoreQuery=r(84),e.BoostingQuery=r(85)},function(t,e,r){"use strict";const s=r(0),i=r(11);t.exports=class extends i{constructor(t){super("script_score"),s(t)||(this._opts.script=t)}script(t){return this._opts.script=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(11),{util:{recursiveToJSON:n}}=r(1);t.exports=class extends i{constructor(t){super(null),s(t)||(this._body.weight=t)}toJSON(){return n(this._body)}}},function(t,e,r){"use strict";const s=r(11);t.exports=class extends s{constructor(){super("random_score")}seed(t){return this._opts.seed=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{FIELD_MODIFIER_SET:n}}=r(1),o=r(11),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-field-value-factor","modifier",n);t.exports=class extends o{constructor(t){super("field_value_factor"),s(t)||(this._opts.field=t)}field(t){return this._opts.field=t,this}factor(t){return this._opts.factor=t,this}modifier(t){s(t)&&u(t);const e=t.toLowerCase();return n.has(e)||u(t),this._opts.modifier=e,this}missing(t){return this._opts.missing=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i,recursiveToJSON:n}}=r(1),o=r(11),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-decay","mode","'linear', 'exp' or 'gauss'");t.exports=class extends o{constructor(t="gauss",e){super(t),s(e)||(this._field=e)}mode(t){s(t)&&u(t);const e=t.toLowerCase();return"linear"!==e&&"exp"!==e&&"gauss"!==e&&u(t),this._name=t,this}linear(){return this._name="linear",this}exp(){return this._name="exp",this}gauss(){return this._name="gauss",this}field(t){return this._field=t,this}origin(t){return this._opts.origin=t,this}scale(t){return this._opts.scale=t,this}offset(t){return this._opts.offset=t,this}decay(t){return this._opts.decay=t,this}toJSON(){const t=Object.assign({[this._name]:{[this._field]:this._opts}},this._body);return n(t)}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t){super("constant_score"),s(t)||this.filter(t)}filter(t){return n(t,i),this._queryOpts.filter=t,this}query(t){return this.filter(t)}}},function(t,e,r){"use strict";const s=r(5),i=r(81),n=r(82),{Query:o,util:{checkType:u,setDefault:c,recursiveToJSON:a}}=r(1);t.exports=class extends o{constructor(){super("bool")}_addQuery(t,e){u(e,o),this._queryOpts[t].push(e)}_addQueries(t,e){c(this._queryOpts,t,[]),Array.isArray(e)?e.forEach(e=>this._addQuery(t,e)):this._addQuery(t,e)}must(t){return this._addQueries("must",t),this}filter(t){return this._addQueries("filter",t),this}mustNot(t){return this._addQueries("must_not",t),this}should(t){return this._addQueries("should",t),this}disableCoord(t){return this._queryOpts.disable_coord=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}adjustPureNegative(t){return this._queryOpts.adjust_pure_negative=t,this}toJSON(){const t=["must","filter","must_not","should"],e=t.filter(t=>s(this._queryOpts,t)).reduce((t,e)=>{const r=this._queryOpts[e];return t[e]=a(1===r.length?i(r):r),t},n(this._queryOpts,t));return{[this.queryType]:e}}}},function(t,e){t.exports=function(t){return t&&t.length?t[0]:void 0}},function(t,e,r){(function(e){var r=200,s="__lodash_hash_undefined__",i=1/0,n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object GeneratorFunction]",a="[object Symbol]",h=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,l="object"==typeof e&&e&&e.Object===Object&&e,p="object"==typeof self&&self&&self.Object===Object&&self,_=l||p||Function("return this")();function f(t,e){return!!(t?t.length:0)&&function(t,e,r){if(e!=e)return function(t,e,r,s){var i=t.length,n=r+(s?1:-1);for(;s?n--:++n-1}function d(t,e,r){for(var s=-1,i=t?t.length:0;++s-1},G.prototype.set=function(t,e){var r=this.__data__,s=I(r,t);return s<0?r.push([t,e]):r[s][1]=e,this},B.prototype.clear=function(){this.__data__={hash:new N,map:new(C||G),string:new N}},B.prototype.delete=function(t){return V(this,t).delete(t)},B.prototype.get=function(t){return V(this,t).get(t)},B.prototype.has=function(t){return V(this,t).has(t)},B.prototype.set=function(t,e){return V(this,t).set(t,e),this},L.prototype.add=L.prototype.push=function(t){return this.__data__.set(t,s),this},L.prototype.has=function(t){return this.__data__.has(t)};var K=j?O(j,Object):gt,Y=j?function(t){for(var e=[];t;)m(e,K(t)),t=P(t);return e}:gt;function X(t){return it(t)||st(t)||!!(F&&t&&t[F])}function tt(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||g.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=n}(t.length)&&!ot(t)}function ot(t){var e=ut(t)?Q.call(t):"";return e==u||e==c}function ut(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ct(t){return!!t&&"object"==typeof t}function at(t){return nt(t)?H(t,!0):W(t)}var ht=function(t,e){return e=$(void 0===e?t.length-1:e,0),function(){for(var r=arguments,s=-1,i=$(r.length-e,0),n=Array(i);++s0&&s(c)?r>1?t(c,r-1,s,i,n):m(n,c):i||(n[n.length]=c)}return n}(e,1),et),function(t,e){return function(t,e,r){for(var s=-1,i=e.length,n={};++s=r&&(o=x,u=!1,e=new L(e));t:for(;++nthis._addQuery(t)):this._addQuery(t),this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n,invalidParam:o},consts:{SCORE_MODE_SET:u,BOOST_MODE_SET:c}}=r(1),{ScoreFunction:a}=r(42),h="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html",g=o(h,"score_mode",u),l=o(h,"boost_mode",c);t.exports=class extends i{constructor(){super("function_score"),this._queryOpts.functions=[]}query(t){return n(t,i),this._queryOpts.query=t,this}scoreMode(t){s(t)&&g(t);const e=t.toLowerCase();return u.has(e)||g(t),this._queryOpts.score_mode=t,this}boostMode(t){s(t)&&l(t);const e=t.toLowerCase();return c.has(e)||l(t),this._queryOpts.boost_mode=e,this}maxBoost(t){return this._queryOpts.max_boost=t,this}minScore(t){return this._queryOpts.min_score=t,this}function(t){return n(t,a),this._queryOpts.functions.push(t),this}functions(t){return n(t,Array),t.forEach(t=>this.function(t)),this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e,r){super("boosting"),s(t)||this.positive(t),s(e)||this.negative(e),s(r)||(this._queryOpts.negative_boost=r)}positive(t){return n(t,i),this._queryOpts.positive=t,this}negative(t){return n(t,i),this._queryOpts.negative=t,this}negativeBoost(t){return this._queryOpts.negative_boost=t,this}}},function(t,e,r){"use strict";e.JoiningQueryBase=r(20),e.NestedQuery=r(87),e.HasChildQuery=r(88),e.HasParentQuery=r(89),e.ParentIdQuery=r(90)},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html";t.exports=class extends i{constructor(t,e){super("nested",n,t),s(e)||(this._queryOpts.path=e)}path(t){return this._queryOpts.path=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-child-query.html";t.exports=class extends i{constructor(t,e){super("has_child",n,t),s(e)||(this._queryOpts.type=e)}type(t){return this._queryOpts.type=t,this}childType(t){return console.warn("[HasChildQuery] Field `child_type` is deprecated. Use `type` instead."),this.type(t)}minChildren(t){return this._queryOpts.min_children=t,this}maxChildren(t){return this._queryOpts.max_children=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(20),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-has-parent-query.html";t.exports=class extends i{constructor(t,e){super("has_parent",n,t),s(e)||(this._queryOpts.parent_type=e)}scoreMode(){throw console.log("`score_mode` is deprecated. Use `score` instead"),console.log(`Please refer ${n}`),new Error("scoreMode is not supported in HasParentQuery")}type(t){return this.parentType(t)}parentType(t){return this._queryOpts.parent_type=t,this}score(t){return this._queryOpts.score=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t,e){super("parent_id"),s(t)||(this._queryOpts.type=t),s(e)||(this._queryOpts.id=e)}type(t){return this._queryOpts.type=t,this}id(t){return this._queryOpts.id=t,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}}},function(t,e,r){"use strict";e.GeoQueryBase=r(15),e.GeoShapeQuery=r(92),e.GeoBoundingBoxQuery=r(93),e.GeoDistanceQuery=r(94),e.GeoPolygonQuery=r(95)},function(t,e,r){"use strict";const s=r(0),{GeoShape:i,IndexedShape:n,util:{checkType:o,invalidParam:u},consts:{GEO_RELATION_SET:c}}=r(1),a=r(15),h="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-query.html",g=u(h,"relation",c);t.exports=class extends a{constructor(t){super("geo_shape",t)}validationMethod(){throw console.log(`Please refer ${h}`),new Error("validationMethod is not supported in GeoShapeQuery")}shape(t){return o(t,i),this._fieldOpts.shape=t,this}indexedShape(t){return o(t,n),this._fieldOpts.indexed_shape=t,this}relation(t){s(t)&&g(t);const e=t.toUpperCase();return c.has(e)||g(t),this._fieldOpts.relation=e,this}ignoreUnmapped(t){return this._queryOpts.ignore_unmapped=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o}}=r(1),u=r(15),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-bounding-box-query.html","type","'memory' or 'indexed'");t.exports=class extends u{constructor(t){super("geo_bounding_box",t)}topLeft(t){return n(t,i),this._fieldOpts.top_left=t,this}bottomRight(t){return n(t,i),this._fieldOpts.bottom_right=t,this}topRight(t){return n(t,i),this._fieldOpts.top_right=t,this}bottomLeft(t){return n(t,i),this._fieldOpts.bottom_left=t,this}top(t){return this._fieldOpts.top=t,this}left(t){return this._fieldOpts.left=t,this}bottom(t){return this._fieldOpts.bottom=t,this}right(t){return this._fieldOpts.right=t,this}type(t){s(t)&&c(t);const e=t.toLowerCase();return"memory"!==e&&"indexed"!==e&&c(t),this._queryOpts.type=e,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o}}=r(1),u=r(15),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-query.html","distance_type","'plane' or 'arc'");t.exports=class extends u{constructor(t,e){super("geo_distance",t),s(e)||this.geoPoint(e)}distance(t){return this._queryOpts.distance=t,this}distanceType(t){s(t)&&c(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&c(t),this._queryOpts.distance_type=e,this}geoPoint(t){return n(t,i),this._fieldOpts=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(15);t.exports=class extends i{constructor(t){super("geo_polygon",t)}points(t){return s(t,Array),this._fieldOpts.points=t,this}}},function(t,e,r){"use strict";e.MoreLikeThisQuery=r(97),e.ScriptQuery=r(98),e.ScriptScoreQuery=r(99),e.PercolateQuery=r(100),e.DistanceFeatureQuery=r(101),e.RankFeatureQuery=r(102)},function(t,e,r){"use strict";const s=r(5),{Query:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(){super("more_like_this")}_setSearchClause(t,e){Array.isArray(e)?this._queryOpts[t]=e:s(this._queryOpts,t)?(Array.isArray(this._queryOpts[t])||(this._queryOpts[t]=[this._queryOpts[t]]),this._queryOpts[t].push(e)):this._queryOpts[t]=e}fields(t){return n(t,Array),this._queryOpts.fields=t,this}like(t){return this._setSearchClause("like",t),this}unlike(t){return this._setSearchClause("unlike",t),this}likeText(t){return this._queryOpts.like_text=t,this}ids(t){return n(t,Array),this._queryOpts.ids=t,this}docs(t){return n(t,Array),this._queryOpts.docs=t,this}maxQueryTerms(t){return this._queryOpts.max_query_terms=t,this}minTermFreq(t){return this._queryOpts.min_term_freq=t,this}minDocFreq(t){return this._queryOpts.min_doc_freq=t,this}maxDocFreq(t){return this._queryOpts.max_doc_freq=t,this}minWordLength(t){return this._queryOpts.min_word_length=t,this}maxWordLength(t){return this._queryOpts.max_word_length=t,this}stopWords(t){return this._queryOpts.stop_words=t,this}analyzer(t){return this._queryOpts.analyzer=t,this}minimumShouldMatch(t){return this._queryOpts.minimum_should_match=t,this}boostTerms(t){return this._queryOpts.boost_terms=t,this}include(t){return this._queryOpts.include=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,Script:n,util:{checkType:o}}=r(1);t.exports=class extends i{constructor(t){super("script"),s(t)||this.script(t)}script(t){return o(t,n),this._queryOpts.script=t,this}}},function(t,e,r){"use strict";const{Query:s,Script:i,util:{checkType:n}}=r(1);t.exports=class extends s{constructor(){super("script_score")}query(t){return n(t,s),this._queryOpts.query=t,this}script(t){return n(t,i),this._queryOpts.script=t,this}minScore(t){return this._queryOpts.min_score=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i},Query:n}=r(1);t.exports=class extends n{constructor(t,e){super("percolate"),this._queryOpts.documents=[],s(t)||(this._queryOpts.field=t),s(e)||(this._queryOpts.document_type=e)}field(t){return this._queryOpts.field=t,this}documentType(t){return this._queryOpts.document_type=t,this}document(t){return this._queryOpts.documents.push(t),this}documents(t){return i(t,Array),this._queryOpts.documents=this._queryOpts.documents.concat(t),this}index(t){return this._queryOpts.index=t,this}type(t){return this._queryOpts.type=t,this}id(t){return this._queryOpts.id=t,this}routing(t){return this._queryOpts.routing=t,this}preference(t){return this._queryOpts.preference=t,this}version(t){return this._queryOpts.version=t,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i}=r(1);t.exports=class extends i{constructor(t){super("distance_feature"),s(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}origin(t){return this._queryOpts.origin=t,this}pivot(t){return this._queryOpts.pivot=t,this}}},function(t,e,r){"use strict";const{Query:s}=r(1),i=r(0);t.exports=class extends s{constructor(t){super("rank_feature"),i(t)||(this._queryOpts.field=t)}field(t){return this._queryOpts.field=t,this}linear(){return this._queryOpts.linear={},this}saturation(){return this._queryOpts.saturation={},this}saturationPivot(t){return this._queryOpts.saturation={},this._queryOpts.saturation.pivot=t,this}log(t){return this._queryOpts.log={},this._queryOpts.log.scaling_factor=t,this}sigmoid(t,e){return this._queryOpts.sigmoid={},this._queryOpts.sigmoid.pivot=t,this._queryOpts.sigmoid.exponent=e,this}}},function(t,e,r){"use strict";e.SpanLittleBigQueryBase=r(27),e.SpanTermQuery=r(104),e.SpanMultiTermQuery=r(105),e.SpanFirstQuery=r(106),e.SpanNearQuery=r(107),e.SpanOrQuery=r(108),e.SpanNotQuery=r(109),e.SpanContainingQuery=r(110),e.SpanWithinQuery=r(111),e.SpanFieldMaskingQuery=r(112)},function(t,e,r){"use strict";const s=r(5),i=r(0),n=r(8);t.exports=class extends n{constructor(t,e){super("span_term"),i(t)||(this._field=t),i(e)||(this._queryOpts.value=e)}field(t){return this._field=t,this}value(t){return this._queryOpts.value=t,this}toJSON(){if(!s(this._queryOpts,"value"))throw new Error("Value is required for Span term query!");const t=1===Object.keys(this._queryOpts).length?this._queryOpts.value:this._queryOpts;return{[this.queryType]:{[this._field]:t}}}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),{MultiTermQueryBase:n}=r(40),o=r(8);t.exports=class extends o{constructor(t){super("span_multi"),s(t)||this.match(t)}match(t){return i(t,n),this._queryOpts.match=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(8);t.exports=class extends n{constructor(t){super("span_first"),s(t)||this.match(t)}match(t){return i(t,n),this._queryOpts.match=t,this}end(t){return this._queryOpts.end=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_near")}clauses(t){return s(t,Array),t.forEach(t=>s(t,i)),this._queryOpts.clauses=t,this}slop(t){return this._queryOpts.slop=t,this}inOrder(t){return this._queryOpts.in_order=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_or")}clauses(t){return s(t,Array),t.forEach(t=>s(t,i)),this._queryOpts.clauses=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(8);t.exports=class extends i{constructor(){super("span_not")}include(t){return s(t,i),this._queryOpts.include=t,this}exclude(t){return s(t,i),this._queryOpts.exclude=t,this}pre(t){return this._queryOpts.pre=t,this}post(t){return this._queryOpts.post=t,this}dist(t){return this._queryOpts.dist=t,this}}},function(t,e,r){"use strict";const s=r(27);t.exports=class extends s{constructor(){super("span_containing")}}},function(t,e,r){"use strict";const s=r(27);t.exports=class extends s{constructor(){super("span_within")}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(8);t.exports=class extends n{constructor(t,e){super("field_masking_span"),s(t)||(this._queryOpts.field=t),s(e)||this.query(e)}query(t){return i(t,n),this._queryOpts.query=t,this}field(t){return this._queryOpts.field=t,this}}},function(t,e,r){"use strict";e.metricsAggregations=r(114),e.bucketAggregations=r(130),e.pipelineAggregations=r(162),e.matrixAggregations=r(178)},function(t,e,r){"use strict";e.MetricsAggregationBase=r(3),e.AvgAggregation=r(115),e.CardinalityAggregation=r(116),e.ExtendedStatsAggregation=r(117),e.GeoBoundsAggregation=r(118),e.GeoCentroidAggregation=r(119),e.MaxAggregation=r(120),e.MinAggregation=r(121),e.PercentilesAggregation=r(122),e.PercentileRanksAggregation=r(123),e.ScriptedMetricAggregation=r(124),e.StatsAggregation=r(125),e.SumAggregation=r(126),e.TopHitsAggregation=r(127),e.ValueCountAggregation=r(128),e.WeightedAverageAggregation=r(129)},function(t,e,r){"use strict";const s=r(3);t.exports=class extends s{constructor(t,e){super(t,"avg",e)}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-cardinality-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"cardinality",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in CardinalityAggregation")}precisionThreshold(t){return this._aggsDef.precision_threshold=t,this}}},function(t,e,r){"use strict";const s=r(3);t.exports=class extends s{constructor(t,e){super(t,"extended_stats",e)}sigma(t){return this._aggsDef.sigma=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geobounds-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"geo_bounds",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in GeoBoundsAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in GeoBoundsAggregation")}wrapLongitude(t){return this._aggsDef.wrap_longitude=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-geocentroid-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"geo_centroid",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in GeoCentroidAggregation")}}},function(t,e,r){"use strict";const s=r(3);t.exports=class extends s{constructor(t,e){super(t,"max",e)}}},function(t,e,r){"use strict";const s=r(3);t.exports=class extends s{constructor(t,e){super(t,"min",e)}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(3);t.exports=class extends i{constructor(t,e){super(t,"percentiles",e)}keyed(t){return this._aggsDef.keyed=t,this}percents(t){return s(t,Array),this._aggsDef.percents=t,this}tdigest(t){return this._aggsDef.tdigest={compression:t},this}compression(t){return this._aggsDef.tdigest={compression:t},this}hdr(t){return this._aggsDef.hdr={number_of_significant_value_digits:t},this}}},function(t,e,r){"use strict";const s=r(0),{util:{checkType:i}}=r(1),n=r(3),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-percentile-rank-aggregation.html";t.exports=class extends n{constructor(t,e,r){super(t,"percentile_ranks",e),s(r)||this.values(r)}format(){throw console.log(`Please refer ${o}`),new Error("format is not supported in PercentileRanksAggregation")}keyed(t){return this._aggsDef.keyed=t,this}values(t){return i(t,Array),this._aggsDef.values=t,this}tdigest(t){return this._aggsDef.tdigest={compression:t},this}compression(t){return this.tdigest(t)}hdr(t){return this._aggsDef.hdr={number_of_significant_value_digits:t},this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-scripted-metric-aggregation.html";t.exports=class extends s{constructor(t){super(t,"scripted_metric")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in ScriptedMetricAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in ScriptedMetricAggregation")}missing(){throw console.log(`Please refer ${i}`),new Error("missing is not supported in ScriptedMetricAggregation")}initScript(t){return this._aggsDef.init_script=t,this}mapScript(t){return this._aggsDef.map_script=t,this}combineScript(t){return this._aggsDef.combine_script=t,this}reduceScript(t){return this._aggsDef.reduce_script=t,this}params(t){return this._aggsDef.params=t,this}}},function(t,e,r){"use strict";const s=r(3);t.exports=class extends s{constructor(t,e){super(t,"stats",e)}}},function(t,e,r){"use strict";const s=r(3);t.exports=class extends s{constructor(t,e){super(t,"sum",e)}}},function(t,e,r){"use strict";const s=r(3),{Highlight:i,Sort:n,util:{checkType:o,setDefault:u}}=r(1),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-top-hits-aggregation.html";t.exports=class extends s{constructor(t){super(t,"top_hits")}field(){throw console.log(`Please refer ${c}`),new Error("field is not supported in TopHitsAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in TopHitsAggregation")}missing(){throw console.log(`Please refer ${c}`),new Error("missing is not supported in TopHitsAggregation")}format(){throw console.log(`Please refer ${c}`),new Error("format is not supported in TopHitsAggregation")}from(t){return this._aggsDef.from=t,this}size(t){return this._aggsDef.size=t,this}sort(t){return o(t,n),u(this._aggsDef,"sort",[]),this._aggsDef.sort.push(t),this}sorts(t){return t.forEach(t=>this.sort(t)),this}trackScores(t){return this._aggsDef.track_scores=t,this}version(t){return this._aggsDef.version=t,this}explain(t){return this._aggsDef.explain=t,this}highlight(t){return o(t,i),this._aggsDef.highlight=t,this}source(t){return this._aggsDef._source=t,this}storedFields(t){return this._aggsDef.stored_fields=t,this}scriptField(t,e){return u(this._aggsDef,"script_fields",{}),this._aggsDef.script_fields[t]={script:e},this}scriptFields(t){return o(t,Object),Object.keys(t).forEach(e=>this.scriptField(e,t[e])),this}docvalueFields(t){return this._aggsDef.docvalue_fields=t,this}}},function(t,e,r){"use strict";const s=r(3),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-valuecount-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"value_count",e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in ValueCountAggregation")}}},function(t,e,r){"use strict";const{Script:s}=r(1),i=r(3),n=r(0),o="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-weight-avg-aggregation.html";t.exports=class extends i{constructor(t,e,r){super(t,"weighted_avg"),this._aggsDef.value={},this._aggsDef.weight={},n(e)||this.value(e),n(r)||this.weight(r)}value(t,e){if("string"!=typeof t&&!(t instanceof s))throw new TypeError("Value must be either a string or instanceof Script");return t instanceof s?(this._aggsDef.value.field&&delete this._aggsDef.value.field,this._aggsDef.value.script=t):(this._aggsDef.value.script&&delete this._aggsDef.value.script,this._aggsDef.value.field=t),n(e)||(this._aggsDef.value.missing=e),this}weight(t,e){if("string"!=typeof t&&!(t instanceof s))throw new TypeError("Weight must be either a string or instanceof Script");return t instanceof s?(this._aggsDef.weight.field&&delete this._aggsDef.weight.field,this._aggsDef.weight.script=t):(this._aggsDef.weight.script&&delete this._aggsDef.weight.script,this._aggsDef.weight.field=t),n(e)||(this._aggsDef.weight.missing=e),this}script(){throw console.log(`Please refer ${o}`),new Error("script is not supported in WeightedAverageAggregation")}missing(){throw console.log(`Please refer ${o}`),new Error("missing is not supported in WeightedAverageAggregation")}field(){throw console.log(`Please refer ${o}`),new Error("field is not supported in WeightedAverageAggregation")}}},function(t,e,r){"use strict";e.BucketAggregationBase=r(2),e.HistogramAggregationBase=r(28),e.RangeAggregationBase=r(16),e.TermsAggregationBase=r(29),e.SignificantAggregationBase=r(30),e.AdjacencyMatrixAggregation=r(131),e.ChildrenAggregation=r(132),e.CompositeAggregation=r(133),e.DateHistogramAggregation=r(138),e.AutoDateHistogramAggregation=r(139),e.VariableWidthHistogramAggregation=r(140),e.DateRangeAggregation=r(141),e.DiversifiedSamplerAggregation=r(142),e.FilterAggregation=r(143),e.FiltersAggregation=r(144),e.GeoDistanceAggregation=r(145),e.GeoHashGridAggregation=r(146),e.GeoHexGridAggregation=r(147),e.GeoTileGridAggregation=r(148),e.GlobalAggregation=r(149),e.HistogramAggregation=r(150),e.IpRangeAggregation=r(151),e.MissingAggregation=r(152),e.NestedAggregation=r(153),e.ParentAggregation=r(154),e.RangeAggregation=r(155),e.RareTermsAggregation=r(156),e.ReverseNestedAggregation=r(157),e.SamplerAggregation=r(158),e.SignificantTermsAggregation=r(159),e.SignificantTextAggregation=r(160),e.TermsAggregation=r(161)},function(t,e,r){"use strict";const{Query:s,util:{checkType:i,setDefault:n}}=r(1),o=r(2),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-adjacency-matrix-aggregation.html";t.exports=class extends o{constructor(t){super(t,"adjacency_matrix")}field(){throw console.log(`Please refer ${u}`),new Error("field is not supported in AdjacencyMatrixAggregation")}script(){throw console.log(`Please refer ${u}`),new Error("script is not supported in AdjacencyMatrixAggregation")}filter(t,e){return i(e,s),n(this._aggsDef,"filters",{}),this._aggsDef.filters[t]=e,this}filters(t){return i(t,Object),n(this._aggsDef,"filters",{}),Object.assign(this._aggsDef.filters,t),this}separator(t){return this._aggsDef.separator=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-children-aggregation.html";t.exports=class extends s{constructor(t){super(t,"children")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in ChildrenAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in ChildrenAggregation")}type(t){return this._aggsDef.type=t,this}}},function(t,e,r){"use strict";const{Aggregation:s,util:{checkType:i,constructorWrapper:n}}=r(1),{ValuesSourceBase:o,TermsValuesSource:u,HistogramValuesSource:c,DateHistogramValuesSource:a}=r(134);class h extends s{constructor(t){super(t,"composite"),this._aggsDef.sources=[]}sources(...t){return t.forEach(t=>i(t,o)),this._aggsDef.sources=this._aggsDef.sources.concat(t),this}size(t){return this._aggsDef.size=t,this}after(t){return this._aggsDef.after=t,this}}h.TermsValuesSource=u,h.termsValuesSource=n(u),h.HistogramValuesSource=c,h.histogramValuesSource=n(c),h.DateHistogramValuesSource=a,h.dateHistogramValuesSource=n(a),t.exports=h},function(t,e,r){"use strict";e.ValuesSourceBase=r(21),e.TermsValuesSource=r(135),e.HistogramValuesSource=r(136),e.DateHistogramValuesSource=r(137)},function(t,e,r){"use strict";const s=r(21),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_terms";t.exports=class extends s{constructor(t,e){super("terms",i,t,e)}}},function(t,e,r){"use strict";const s=r(0),i=r(21),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_histogram";t.exports=class extends i{constructor(t,e,r){super("histogram",n,t,e),s(r)||(this._opts.interval=r)}interval(t){return this._opts.interval=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(21),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html#_date_histogram";t.exports=class extends i{constructor(t,e,r){super("date_histogram",n,t,e),s(r)||(this._opts.interval=r)}interval(t){return this._opts.interval=t,this}calendarInterval(t){return this._opts.calendar_interval=t,this}fixedInterval(t){return this._opts.fixed_interval=t,this}timeZone(t){return this._opts.time_zone=t,this}format(t){return this._opts.format=t,this}}},function(t,e,r){"use strict";const s=r(28);t.exports=class extends s{constructor(t,e,r){super(t,"date_histogram",e,r)}timeZone(t){return this._aggsDef.time_zone=t,this}calendarInterval(t){return this._aggsDef.calendar_interval=t,this}fixedInterval(t){return this._aggsDef.fixed_interval=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2);t.exports=class extends i{constructor(t,e,r){super(t,"auto_date_histogram",e),s(r)||(this._aggsDef.buckets=r)}buckets(t){return this._aggsDef.buckets=t,this}minimumInterval(t){return this._aggsDef.minimum_interval=t,this}format(t){return this._aggsDef.format=t,this}missing(t){return this._aggsDef.missing=t,this}timeZone(t){return this._aggsDef.time_zone=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2);t.exports=class extends i{constructor(t,e,r){super(t,"variable_width_histogram",e),s(r)||(this._aggsDef.buckets=r)}buckets(t){return this._aggsDef.buckets=t,this}}},function(t,e,r){"use strict";const s=r(16);t.exports=class extends s{constructor(t,e){super(t,"date_range",e)}timeZone(t){return this._aggsDef.time_zone=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{EXECUTION_HINT_SET:n}}=r(1),o=r(2),u=i("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-diversified-sampler-aggregation.html","execution_hint",n);t.exports=class extends o{constructor(t,e){super(t,"diversified_sampler",e)}shardSize(t){return this._aggsDef.shard_size=t,this}maxDocsPerValue(t){return this._aggsDef.max_docs_per_value=t,this}executionHint(t){s(t)&&u(t);const e=t.toLowerCase();return n.has(e)||u(t),this._aggsDef.execution_hint=e,this}}},function(t,e,r){"use strict";const s=r(0),{Query:i,util:{checkType:n}}=r(1),o=r(2),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filter-aggregation.html";t.exports=class extends o{constructor(t,e){super(t,"filter"),s(e)||this.filter(e)}field(){throw console.log(`Please refer ${u}`),new Error("field is not supported in FilterAggregation")}script(){throw console.log(`Please refer ${u}`),new Error("script is not supported in FilterAggregation")}filter(t){return n(t,i),this._aggsDef=this._aggs[this.aggType]=t,this}}},function(t,e,r){"use strict";const s=r(7),{Query:i,util:{checkType:n,setDefault:o}}=r(1),u=r(2),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filters-aggregation.html";t.exports=class extends u{constructor(t){super(t,"filters")}field(){throw console.log(`Please refer ${c}`),new Error("field is not supported in FiltersAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in FiltersAggregation")}_warn(t){console.warn(`[FiltersAggregation] ${t}`)}_checkNamedFilters(){!o(this._aggsDef,"filters",{})&&Array.isArray(this._aggsDef.filters)&&(this._warn("Do not mix named and anonymous filters!"),this._warn("Overwriting anonymous filters."),this._aggsDef.filters={})}_checkAnonymousFilters(){o(this._aggsDef,"filters",[])||Array.isArray(this._aggsDef.filters)||(this._warn("Do not mix named and anonymous filters!"),this._warn("Overwriting named filters."),this._aggsDef.filters=[])}filter(t,e){return n(e,i),this._checkNamedFilters(),this._aggsDef.filters[t]=e,this}filters(t){return n(t,Object),this._checkNamedFilters(),Object.assign(this._aggsDef.filters,t),this}anonymousFilter(t){return n(t,i),this._checkAnonymousFilters(),this._aggsDef.filters.push(t),this}anonymousFilters(t){return n(t,Array),this._checkAnonymousFilters(),this._aggsDef.filters=this._aggsDef.filters.concat(t),this}otherBucket(t,e){return this._aggsDef.other_bucket=t,!s(e)&&this.otherBucketKey(e),this}otherBucketKey(t){return this._aggsDef.other_bucket_key=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,invalidParam:o},consts:{UNIT_SET:u}}=r(1),c=r(16),a="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geodistance-aggregation.html",h=o(a,"unit",u),g=o(a,"distance_type","'plane' or 'arc'");t.exports=class extends c{constructor(t,e){super(t,"geo_distance",e)}format(){throw console.log(`Please refer ${a}`),new Error("format is not supported in GeoDistanceAggregation")}script(){throw console.log(`Please refer ${a}`),new Error("script is not supported in GeoDistanceAggregation")}origin(t){return n(t,i),this._aggsDef.origin=t,this}unit(t){return u.has(t)||h(t),this._aggsDef.unit=t,this}distanceType(t){s(t)&&g(t);const e=t.toLowerCase();return"plane"!==e&&"arc"!==e&&g(t),this._aggsDef.distance_type=e,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohashgrid-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"geohash_grid",e)}format(){throw console.log(`Please refer ${n}`),new Error("format is not supported in GeoHashGridAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in GeoHashGridAggregation")}precision(t){if(s(t)||t<1||t>12)throw new Error("`precision` can only be value from 1 to 12.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geohexgrid-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"geohex_grid",e)}format(){throw console.log(`Please refer ${n}`),new Error("format is not supported in GeoHexGridAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in GeoHexGridAggregation")}precision(t){if(s(t)||t<0||t>15)throw new Error("`precision` can only be value from 0 to 15.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(0),{GeoPoint:i,util:{checkType:n,setDefault:o}}=r(1),u=r(2),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-geotilegrid-aggregation.html";t.exports=class extends u{constructor(t,e){super(t,"geotile_grid",e)}format(){throw console.log(`Please refer ${c}`),new Error("format is not supported in GeoTileGridAggregation")}script(){throw console.log(`Please refer ${c}`),new Error("script is not supported in GeoTileGridAggregation")}precision(t){if(s(t)||t<0||t>29)throw new Error("`precision` can only be value from 0 to 29.");return this._aggsDef.precision=t,this}size(t){return this._aggsDef.size=t,this}shardSize(t){return this._aggsDef.shard_size=t,this}topLeft(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top_left=t,this}bottomRight(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom_right=t,this}topRight(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top_right=t,this}bottomLeft(t){return n(t,i),o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom_left=t,this}top(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.top=t,this}left(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.left=t,this}bottom(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.bottom=t,this}right(t){return o(this._aggsDef,"bounds",{}),this._aggsDef.bounds.right=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-global-aggregation.html";t.exports=class extends s{constructor(t){super(t,"global")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in GlobalAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in GlobalAggregation")}}},function(t,e,r){"use strict";const s=r(28);t.exports=class extends s{constructor(t,e,r){super(t,"histogram",e,r)}}},function(t,e,r){"use strict";const s=r(16),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-iprange-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"ip_range",e),this._rangeRequiredKeys=["from","to","mask"]}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in IpRangeAggregation")}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-missing-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"missing",e)}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in MissingAggregation")}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-nested-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"nested"),s(e)||(this._aggsDef.path=e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in NestedAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in NestedAggregation")}path(t){return this._aggsDef.path=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-parent-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"parent"),s(e)||this.type(e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in ParentAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in ParentAggregation")}type(t){return this._aggsDef.type=t,this}}},function(t,e,r){"use strict";const s=r(16);t.exports=class extends s{constructor(t,e){super(t,"range",e)}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-rare-terms-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"rare_terms",e)}maxDocCount(t){if(s(t)||t<1||t>100)throw new Error("`maxDocCount` can only be value from 1 to 100.");return this._aggsDef.max_doc_count=t,this}precision(t){if(t<1e-5)throw new Error("`precision` must be greater than 0.00001.");return this._aggsDef.precision=t,this}include(t){return this._aggsDef.include=t,this}exclude(t){return this._aggsDef.exclude=t,this}missing(t){return this._aggsDef.missing=t,this}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in RareTermsAggregation")}}},function(t,e,r){"use strict";const s=r(0),i=r(2),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-reverse-nested-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"reverse_nested"),s(e)||(this._aggsDef.path=e)}field(){throw console.log(`Please refer ${n}`),new Error("field is not supported in ReverseNestedAggregation")}script(){throw console.log(`Please refer ${n}`),new Error("script is not supported in ReverseNestedAggregation")}path(t){return this._aggsDef.path=t,this}}},function(t,e,r){"use strict";const s=r(2),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-sampler-aggregation.html";t.exports=class extends s{constructor(t){super(t,"sampler")}field(){throw console.log(`Please refer ${i}`),new Error("field is not supported in SamplerAggregation")}script(){throw console.log(`Please refer ${i}`),new Error("script is not supported in SamplerAggregation")}shardSize(t){return this._aggsDef.shard_size=t,this}}},function(t,e,r){"use strict";const s=r(30),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significantterms-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"significant_terms",i,e)}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(30),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-significanttext-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"significant_text",n,e)}filterDuplicateText(t){return this._aggsDef.filter_duplicate_text=t,this}sourceFields(t){return s(t,Array),this._aggsDef.source_fields=t,this}missing(){throw console.log(`Please refer ${n}`),new Error("missing is not supported in SignificantTextAggregation")}executionHint(){throw console.log(`Please refer ${n}`),new Error("executionHint is not supported in SignificantTextAggregation")}}},function(t,e,r){"use strict";const s=r(5),i=r(0),{util:{invalidParam:n}}=r(1),o=r(29),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html",c=n(u,"direction","'asc' or 'desc'"),a=n(u,"mode","'breadth_first' or 'depth_first'");t.exports=class extends o{constructor(t,e){super(t,"terms",u,e)}showTermDocCountError(t){return this._aggsDef.show_term_doc_count_error=t,this}includePartition(t,e){return this._aggsDef.include={partition:t,num_partitions:e},this}collectMode(t){i(t)&&a(t);const e=t.toLowerCase();return"breadth_first"!==e&&"depth_first"!==e&&a(t),this._aggsDef.collect_mode=e,this}order(t,e="desc"){i(e)&&c(e);const r=e.toLowerCase();return"asc"!==r&&"desc"!==r&&c(e),s(this._aggsDef,"order")?(Array.isArray(this._aggsDef.order)||(this._aggsDef.order=[this._aggsDef.order]),this._aggsDef.order.push({[t]:r})):this._aggsDef.order={[t]:r},this}}},function(t,e,r){"use strict";e.PipelineAggregationBase=r(4),e.AvgBucketAggregation=r(163),e.DerivativeAggregation=r(164),e.MaxBucketAggregation=r(165),e.MinBucketAggregation=r(166),e.SumBucketAggregation=r(167),e.StatsBucketAggregation=r(168),e.ExtendedStatsBucketAggregation=r(169),e.PercentilesBucketAggregation=r(170),e.MovingAverageAggregation=r(171),e.MovingFunctionAggregation=r(172),e.CumulativeSumAggregation=r(173),e.BucketScriptAggregation=r(174),e.BucketSelectorAggregation=r(175),e.SerialDifferencingAggregation=r(176),e.BucketSortAggregation=r(177)},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-avg-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"avg_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-derivative-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"derivative",i,e)}unit(t){return this._aggsDef.unit=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-max-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"max_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-min-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"min_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-sum-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"sum_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-stats-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"stats_bucket",i,e)}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-extended-stats-bucket-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"extended_stats_bucket",i,e)}sigma(t){return this._aggsDef.sigma=t,this}}},function(t,e,r){"use strict";const{util:{checkType:s}}=r(1),i=r(4),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-percentiles-bucket-aggregation.html";t.exports=class extends i{constructor(t,e){super(t,"percentiles_bucket",n,e)}percents(t){return s(t,Array),this._aggsDef.percents=t,this}}},function(t,e,r){"use strict";const s=r(0),{util:{invalidParam:i},consts:{MODEL_SET:n}}=r(1),o=r(4),u="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movavg-aggregation.html",c=i(u,"model",n);t.exports=class extends o{constructor(t,e){super(t,"moving_avg",u,e)}format(){throw console.log(`Please refer ${u}`),new Error("format is not supported in MovingAverageAggregation")}model(t){s(t)&&c(t);const e=t.toLowerCase();return n.has(e)||c(t),this._aggsDef.model=e,this}window(t){return this._aggsDef.window=t,this}minimize(t){return this._aggsDef.minimize=t,this}settings(t){return this._aggsDef.settings=t,this}predict(t){return this._aggsDef.predict=t,this}}},function(t,e,r){"use strict";const s=r(0),i=r(4),n="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-movfn-aggregation.html";t.exports=class extends i{constructor(t,e,r,i){super(t,"moving_fn",n,e),s(r)||(this._aggsDef.window=r),s(i)||(this._aggsDef.script=i)}window(t){return this._aggsDef.window=t,this}shift(t){return this._aggsDef.shift=t,this}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-cumulative-sum-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"cumulative_sum",i,e)}gapPolicy(){throw console.log(`Please refer ${i}`),new Error("gapPolicy is not supported in CumulativeSumAggregation")}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-script-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"bucket_script",i,e)}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-selector-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"bucket_selector",i,e)}format(){throw console.log(`Please refer ${i}`),new Error("format is not supported in BucketSelectorAggregation")}script(t){return this._aggsDef.script=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-serialdiff-aggregation.html";t.exports=class extends s{constructor(t,e){super(t,"serial_diff",i,e)}lag(t){return this._aggsDef.lag=t,this}}},function(t,e,r){"use strict";const s=r(4),i="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-bucket-sort-aggregation.html";t.exports=class extends s{constructor(t){super(t,"bucket_sort",i)}sort(t){return this._aggsDef.sort=t,this}from(t){return this._aggsDef.from=t,this}size(t){return this._aggsDef.size=t,this}}},function(t,e,r){"use strict";e.MatrixStatsAggregation=r(179)},function(t,e,r){"use strict";const s=r(0),{Aggregation:i,util:{checkType:n}}=r(1);t.exports=class extends i{constructor(t,e){super(t,"matrix_stats"),s(e)||this.fields(e)}fields(t){return n(t,Array),this._aggsDef.fields=t,this}mode(t){return this._aggsDef.mode=t,this}missing(t){return this._aggsDef.missing=t,this}}},function(t,e,r){"use strict";e.AnalyzedSuggesterBase=r(31),e.TermSuggester=r(181),e.DirectGenerator=r(182),e.PhraseSuggester=r(183),e.CompletionSuggester=r(184)},function(t,e,r){"use strict";const s=r(0),{consts:{SUGGEST_MODE_SET:i,STRING_DISTANCE_SET:n},util:{invalidParam:o}}=r(1),u=r(31),c="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-term.html",a=o(c,"sort","'score' or 'frequency'"),h=o(c,"suggest_mode",i),g=o(c,"string_distance",n);t.exports=class extends u{constructor(t,e,r){super("term",t,e,r)}sort(t){s(t)&&a(t);const e=t.toLowerCase();return"score"!==e&&"frequency"!==e&&a(t),this._suggestOpts.sort=e,this}suggestMode(t){s(t)&&h(t);const e=t.toLowerCase();return i.has(e)||h(t),this._suggestOpts.suggest_mode=e,this}maxEdits(t){return this._suggestOpts.max_edits=t,this}prefixLength(t){return this._suggestOpts.prefix_length=t,this}minWordLength(t){return this._suggestOpts.min_word_length=t,this}maxInspections(t){return this._suggestOpts.max_inspections=t,this}minDocFreq(t){return this._suggestOpts.min_doc_freq=t,this}maxTermFreq(t){return this._suggestOpts.max_term_freq=t,this}stringDistance(t){s(t)&&g(t);const e=t.toLowerCase();return n.has(e)||g(t),this._suggestOpts.string_distance=e,this}}},function(t,e,r){"use strict";const s=r(0),{consts:{SUGGEST_MODE_SET:i},util:{invalidParam:n}}=r(1),o=n("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html#_direct_generators","suggest_mode",i);t.exports=class{constructor(t){this._body={},s(t)||(this._body.field=t)}field(t){return this._body.field=t,this}size(t){return this._body.size=t,this}suggestMode(t){s(t)&&o(t);const e=t.toLowerCase();return i.has(e)||o(t),this._body.suggest_mode=e,this}maxEdits(t){return this._body.max_edits=t,this}prefixLength(t){return this._body.prefix_length=t,this}minWordLength(t){return this._body.min_word_length=t,this}maxInspections(t){return this._body.max_inspections=t,this}minDocFreq(t){return this._body.min_doc_freq=t,this}maxTermFreq(t){return this._body.max_term_freq=t,this}preFilter(t){return this._body.pre_filter=t,this}postFilter(t){return this._body.post_filter=t,this}toJSON(){return this._body}}},function(t,e,r){"use strict";const s=r(0),{consts:{SMOOTHING_MODEL_SET:i},util:{recursiveToJSON:n,invalidParam:o}}=r(1),u=r(31),c=o("https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-phrase.html","smoothing",i);t.exports=class extends u{constructor(t,e,r){super("phrase",t,e,r)}gramSize(t){return this._suggestOpts.gram_size=t,this}realWordErrorLikelihood(t){return this._suggestOpts.real_word_error_likelihood=t,this}confidence(t){return this._suggestOpts.confidence=t,this}maxErrors(t){return this._suggestOpts.max_errors=t,this}separator(t){return this._suggestOpts.separator=t,this}highlight(t,e){return this._suggestOpts.highlight={pre_tag:t,post_tag:e},this}collate(t){return this._suggestOpts.collate=t,this}smoothing(t){s(t)&&c(t);const e=t.toLowerCase();return i.has(e)||c(t),this._suggestOpts.smoothing=e,this}directGenerator(t){return this._suggestOpts.direct_generator=Array.isArray(t)?t:[t],this}toJSON(){return n(this._body)}}},function(t,e,r){"use strict";const s=r(13),{Suggester:i,util:{setDefault:n}}=r(1);t.exports=class extends i{constructor(t,e){super("completion",t,e)}prefix(t){return this._opts.prefix=t,this}skipDuplicates(t=!0){return this._suggestOpts.skip_duplicates=t,this}_checkFuzzy(){s(this._suggestOpts.fuzzy)||(this._suggestOpts.fuzzy={})}fuzzy(t=!0){return this._suggestOpts.fuzzy=t,this}fuzziness(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.fuzziness=t,this}transpositions(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.transpositions=t,this}minLength(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.min_length=t,this}prefixLength(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.prefix_length=t,this}unicodeAware(t){return this._checkFuzzy(),this._suggestOpts.fuzzy.unicode_aware=t,this}regex(t){return this._opts.regex=t,this}flags(t){return n(this._suggestOpts,"regex",{}),this._suggestOpts.regex.flags=t,this}maxDeterminizedStates(t){return n(this._suggestOpts,"regex",{}),this._suggestOpts.regex.max_determinized_states=t,this}contexts(t,e){return n(this._suggestOpts,"contexts",{}),this._suggestOpts.contexts[t]=e,this}}},function(t,e,r){"use strict";const s=r(0),{MatchAllQuery:i,termLevelQueries:{ExistsQuery:n},compoundQueries:{BoolQuery:o,FunctionScoreQuery:u,scoreFunctions:{RandomScoreFunction:c}}}=r(39),{Query:a,util:{checkType:h}}=r(1);e.missingQuery=function(t){return(new o).mustNot(new n(t))},e.randomSortQuery=function(t=new i,e){h(t,a);const r=new c;return(new u).query(t).function(s(e)?r:r.seed(e))},e.filterQuery=function(t,e=!1){h(t,a);const r=(new o).filter(t);return!0===e?r.must(new i):r}}])}); \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 9b27e49..309582e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,7 +2,7 @@ - elastic-builder 2.27.0 | Documentation + elastic-builder 2.28.0 | Documentation @@ -15,7 +15,7 @@

elastic-builder

-
2.27.0
+
2.28.0
elastic-builder #storedFields +
  • + #runtimeMapping +
  • + +
  • + #runtimeMappings +
  • +
  • @@ -6789,6 +6801,46 @@

    elastic-builder

  • +
  • + RuntimeField + + + + + +
  • + +
  • @@ -7394,7 +7446,7 @@

    -
    + src/core/request-body-search.js @@ -7484,7 +7536,7 @@

    - + src/core/request-body-search.js @@ -7564,7 +7616,7 @@

    - + src/core/request-body-search.js @@ -7658,7 +7710,7 @@

    - + src/core/request-body-search.js @@ -7751,7 +7803,7 @@

    - + src/core/request-body-search.js @@ -7852,7 +7904,7 @@

    - + src/core/request-body-search.js @@ -7953,7 +8005,7 @@

    - + src/core/request-body-search.js @@ -8060,7 +8112,7 @@

    - + src/core/request-body-search.js @@ -8150,7 +8202,7 @@

    - + src/core/request-body-search.js @@ -8237,7 +8289,7 @@

    - + src/core/request-body-search.js @@ -8318,7 +8370,7 @@

    - + src/core/request-body-search.js @@ -8401,7 +8453,7 @@

    - + src/core/request-body-search.js @@ -8486,7 +8538,7 @@

    - + src/core/request-body-search.js @@ -8594,7 +8646,7 @@

    - + src/core/request-body-search.js @@ -8703,7 +8755,7 @@

    - + src/core/request-body-search.js @@ -8797,7 +8849,7 @@

    - + src/core/request-body-search.js @@ -8880,7 +8932,7 @@

    - + src/core/request-body-search.js @@ -8994,7 +9046,7 @@

    - + src/core/request-body-search.js @@ -9081,6 +9133,228 @@

    + + +

    +

    + +
    +
    +
    + + runtimeMapping(runtimeFieldName, runtimeField) +
    +
    + +
    + +
    +
    +
    + + runtimeMappings(runtimeMappings) +
    +
    + @@ -9100,7 +9374,7 @@

    - + src/core/request-body-search.js @@ -9214,7 +9488,7 @@

    - + src/core/request-body-search.js @@ -9323,7 +9597,7 @@

    - + src/core/request-body-search.js @@ -9412,7 +9686,7 @@

    - + src/core/request-body-search.js @@ -9509,7 +9783,7 @@

    - + src/core/request-body-search.js @@ -9611,7 +9885,7 @@

    - + src/core/request-body-search.js @@ -9742,7 +10016,7 @@

    - + src/core/request-body-search.js @@ -9830,7 +10104,7 @@

    - + src/core/request-body-search.js @@ -9918,7 +10192,7 @@

    - + src/core/request-body-search.js @@ -10018,7 +10292,7 @@

    - + src/core/request-body-search.js @@ -10117,7 +10391,7 @@

    - + src/core/request-body-search.js @@ -10205,7 +10479,7 @@

    - + src/core/request-body-search.js @@ -10342,7 +10616,7 @@

    - + src/core/request-body-search.js @@ -10438,7 +10712,7 @@

    - + src/core/request-body-search.js @@ -10570,7 +10844,7 @@

    - + src/core/query.js @@ -10640,7 +10914,7 @@

    - + src/core/query.js @@ -10720,7 +10994,7 @@

    - + src/core/query.js @@ -10811,7 +11085,7 @@

    - + src/core/query.js @@ -10876,7 +11150,7 @@

    - + src/core/query.js @@ -10946,7 +11220,7 @@

    - + src/queries/match-all-query.js @@ -11012,7 +11286,7 @@

    - + src/queries/match-none-query.js @@ -11138,7 +11412,7 @@

    - + src/queries/full-text-queries/full-text-query-base.js @@ -11224,7 +11498,7 @@

    - + src/queries/full-text-queries/full-text-query-base.js @@ -11316,7 +11590,7 @@

    - + src/queries/full-text-queries/full-text-query-base.js @@ -11409,7 +11683,7 @@

    - + src/queries/full-text-queries/full-text-query-base.js @@ -11502,7 +11776,7 @@

    - + src/queries/full-text-queries/mono-field-query-base.js @@ -11597,7 +11871,7 @@

    - + src/queries/full-text-queries/mono-field-query-base.js @@ -11677,7 +11951,7 @@

    - + src/queries/full-text-queries/mono-field-query-base.js @@ -11748,7 +12022,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -11842,7 +12116,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -11931,7 +12205,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12015,7 +12289,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12102,7 +12376,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12182,7 +12456,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12262,7 +12536,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12387,7 +12661,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12512,7 +12786,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12593,7 +12867,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12691,7 +12965,7 @@

    - + src/queries/full-text-queries/match-query.js @@ -12792,7 +13066,7 @@

    - + src/queries/full-text-queries/match-phrase-query-base.js @@ -12895,7 +13169,7 @@

    - + src/queries/full-text-queries/match-phrase-query-base.js @@ -12960,7 +13234,7 @@

    - + src/queries/full-text-queries/match-phrase-query-base.js @@ -13047,7 +13321,7 @@

    - + src/queries/full-text-queries/match-phrase-query.js @@ -13137,7 +13411,7 @@

    - + src/queries/full-text-queries/match-phrase-prefix-query.js @@ -13226,7 +13500,7 @@

    - + src/queries/full-text-queries/match-phrase-prefix-query.js @@ -13319,7 +13593,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13413,7 +13687,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13497,7 +13771,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13591,7 +13865,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13743,7 +14017,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13827,7 +14101,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -13916,7 +14190,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14000,7 +14274,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14082,7 +14356,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14171,7 +14445,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14251,7 +14525,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14331,7 +14605,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14456,7 +14730,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14581,7 +14855,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14671,7 +14945,7 @@

    - + src/queries/full-text-queries/multi-match-query.js @@ -14765,7 +15039,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -14858,7 +15132,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -14947,7 +15221,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -15044,7 +15318,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -15133,7 +15407,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -15224,7 +15498,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -15315,7 +15589,7 @@

    - + src/queries/full-text-queries/common-terms-query.js @@ -15403,7 +15677,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15499,7 +15773,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15594,7 +15868,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15689,7 +15963,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15780,7 +16054,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15861,7 +16135,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -15945,7 +16219,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -16026,7 +16300,7 @@

    - + src/queries/full-text-queries/query-string-query-base.js @@ -16114,7 +16388,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16196,7 +16470,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16278,7 +16552,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16358,7 +16632,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16438,7 +16712,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16518,7 +16792,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16607,7 +16881,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16687,7 +16961,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16812,7 +17086,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -16937,7 +17211,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17019,7 +17293,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17101,7 +17375,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17183,7 +17457,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17263,7 +17537,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17349,7 +17623,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17441,7 +17715,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17521,7 +17795,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17603,7 +17877,7 @@

    - + src/queries/full-text-queries/query-string-query.js @@ -17688,7 +17962,7 @@

    - + src/queries/full-text-queries/simple-query-string-query.js @@ -17776,7 +18050,7 @@

    - + src/queries/full-text-queries/simple-query-string-query.js @@ -17959,7 +18233,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -18051,7 +18325,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -18131,7 +18405,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -18211,7 +18485,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -18277,7 +18551,7 @@

    - + src/queries/term-level-queries/value-term-query-base.js @@ -18365,7 +18639,7 @@

    - + src/queries/term-level-queries/term-query.js @@ -18453,7 +18727,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18550,7 +18824,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18630,7 +18904,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18710,7 +18984,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18801,7 +19075,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18894,7 +19168,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -18980,7 +19254,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -19060,7 +19334,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -19140,7 +19414,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -19220,7 +19494,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -19300,7 +19574,7 @@

    - + src/queries/term-level-queries/terms-query.js @@ -19371,7 +19645,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19465,7 +19739,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19545,7 +19819,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19625,7 +19899,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19716,7 +19990,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19796,7 +20070,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19888,7 +20162,7 @@

    - + src/queries/term-level-queries/terms-set-query.js @@ -19959,7 +20233,7 @@

    - + src/queries/term-level-queries/multi-term-query-base.js @@ -20029,7 +20303,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20115,7 +20389,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20179,7 +20453,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20259,7 +20533,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20339,7 +20613,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20419,7 +20693,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20499,7 +20773,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20580,7 +20854,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20661,7 +20935,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20745,7 +21019,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20829,7 +21103,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -20909,7 +21183,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -21000,7 +21274,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -21091,7 +21365,7 @@

    - + src/queries/term-level-queries/range-query.js @@ -21162,7 +21436,7 @@

    - + src/queries/term-level-queries/exists-query.js @@ -21245,7 +21519,7 @@

    - + src/queries/term-level-queries/exists-query.js @@ -21330,7 +21604,7 @@

    - + src/queries/term-level-queries/prefix-query.js @@ -21418,7 +21692,7 @@

    - + src/queries/term-level-queries/prefix-query.js @@ -21548,7 +21822,7 @@

    - + src/queries/term-level-queries/wildcard-query.js @@ -21636,7 +21910,7 @@

    - + src/queries/term-level-queries/wildcard-query.js @@ -21724,7 +21998,7 @@

    - + src/queries/term-level-queries/wildcard-query.js @@ -21854,7 +22128,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -21944,7 +22218,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -22049,7 +22323,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -22137,7 +22411,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -22227,7 +22501,7 @@

    - + src/queries/term-level-queries/regexp-query.js @@ -22357,7 +22631,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22457,7 +22731,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22544,7 +22818,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22628,7 +22902,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22711,7 +22985,7 @@

    - + src/queries/term-level-queries/fuzzy-query.js @@ -22797,7 +23071,7 @@

    - + src/queries/term-level-queries/type-query.js @@ -22878,7 +23152,7 @@

    - + src/queries/term-level-queries/type-query.js @@ -22959,7 +23233,7 @@

    - + src/queries/term-level-queries/type-query.js @@ -23046,7 +23320,7 @@

    - + src/queries/term-level-queries/ids-query.js @@ -23137,7 +23411,7 @@

    - + src/queries/term-level-queries/ids-query.js @@ -23220,7 +23494,7 @@

    - + src/queries/term-level-queries/ids-query.js @@ -23300,7 +23574,7 @@

    - + src/queries/term-level-queries/ids-query.js @@ -23446,7 +23720,7 @@

    - + src/queries/compound-queries/constant-score-query.js @@ -23531,7 +23805,7 @@

    - + src/queries/compound-queries/constant-score-query.js @@ -23612,7 +23886,7 @@

    - + src/queries/compound-queries/constant-score-query.js @@ -23700,7 +23974,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -23778,7 +24052,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -23873,7 +24147,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -23982,7 +24256,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24080,7 +24354,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24178,7 +24452,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24261,7 +24535,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24347,7 +24621,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24428,7 +24702,7 @@

    - + src/queries/compound-queries/bool-query.js @@ -24499,7 +24773,7 @@

    - + src/queries/compound-queries/dis-max-query.js @@ -24580,7 +24854,7 @@

    - + src/queries/compound-queries/dis-max-query.js @@ -24664,7 +24938,7 @@

    - + src/queries/compound-queries/dis-max-query.js @@ -24754,7 +25028,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -24859,7 +25133,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -24942,7 +25216,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -25038,7 +25312,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -25134,7 +25408,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -25214,7 +25488,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -25295,7 +25569,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -25378,7 +25652,7 @@

    - + src/queries/compound-queries/function-score-query.js @@ -25466,7 +25740,7 @@

    - + src/queries/compound-queries/boosting-query.js @@ -25580,7 +25854,7 @@

    - + src/queries/compound-queries/boosting-query.js @@ -25663,7 +25937,7 @@

    - + src/queries/compound-queries/boosting-query.js @@ -25747,7 +26021,7 @@

    - + src/queries/compound-queries/boosting-query.js @@ -25897,7 +26171,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -25993,7 +26267,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -26076,7 +26350,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -26193,7 +26467,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -26281,7 +26555,7 @@

    - + src/queries/joining-queries/joining-query-base.js @@ -26369,7 +26643,7 @@

    - + src/queries/joining-queries/nested-query.js @@ -26471,7 +26745,7 @@

    - + src/queries/joining-queries/nested-query.js @@ -26556,7 +26830,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -26664,7 +26938,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -26746,7 +27020,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -26827,7 +27101,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -26920,7 +27194,7 @@

    - + src/queries/joining-queries/has-child-query.js @@ -27018,7 +27292,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -27124,7 +27398,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -27191,7 +27465,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -27273,7 +27547,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -27354,7 +27628,7 @@

    - + src/queries/joining-queries/has-parent-query.js @@ -27458,7 +27732,7 @@

    - + src/queries/joining-queries/parent-id-query.js @@ -27552,7 +27826,7 @@

    - + src/queries/joining-queries/parent-id-query.js @@ -27637,7 +27911,7 @@

    - + src/queries/joining-queries/parent-id-query.js @@ -27718,7 +27992,7 @@

    - + src/queries/joining-queries/parent-id-query.js @@ -27871,7 +28145,7 @@

    - + src/queries/geo-queries/geo-query-base.js @@ -27956,7 +28230,7 @@

    - + src/queries/geo-queries/geo-query-base.js @@ -28036,7 +28310,7 @@

    - + src/queries/geo-queries/geo-query-base.js @@ -28143,7 +28417,7 @@

    - + src/queries/geo-queries/geo-query-base.js @@ -28214,7 +28488,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28316,7 +28590,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28380,7 +28654,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28471,7 +28745,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28562,7 +28836,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28653,7 +28927,7 @@

    - + src/queries/geo-queries/geo-shape-query.js @@ -28746,7 +29020,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -28848,7 +29122,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -28931,7 +29205,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29014,7 +29288,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29097,7 +29371,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29180,7 +29454,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29260,7 +29534,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29340,7 +29614,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29420,7 +29694,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29500,7 +29774,7 @@

    - + src/queries/geo-queries/geo-bounding-box-query.js @@ -29607,7 +29881,7 @@

    - + src/queries/geo-queries/geo-distance-query.js @@ -29702,7 +29976,7 @@

    - + src/queries/geo-queries/geo-distance-query.js @@ -29785,7 +30059,7 @@

    - + src/queries/geo-queries/geo-distance-query.js @@ -29881,7 +30155,7 @@

    - + src/queries/geo-queries/geo-distance-query.js @@ -29978,7 +30252,7 @@

    - + src/queries/geo-queries/geo-polygon-query.js @@ -30063,7 +30337,7 @@

    - + src/queries/geo-queries/geo-polygon-query.js @@ -30249,7 +30523,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30353,7 +30627,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30435,7 +30709,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30530,7 +30804,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30615,7 +30889,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30698,7 +30972,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30781,7 +31055,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30864,7 +31138,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -30947,7 +31221,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31028,7 +31302,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31110,7 +31384,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31192,7 +31466,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31273,7 +31547,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31354,7 +31628,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31436,7 +31710,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31518,7 +31792,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31606,7 +31880,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31688,7 +31962,7 @@

    - + src/queries/specialized-queries/more-like-this-query.js @@ -31774,7 +32048,7 @@

    - + src/queries/specialized-queries/script-query.js @@ -31860,7 +32134,7 @@

    - + src/queries/specialized-queries/script-query.js @@ -31945,7 +32219,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32048,7 +32322,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32131,7 +32405,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32214,7 +32488,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32304,7 +32578,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32394,7 +32668,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32476,7 +32750,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32558,7 +32832,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32640,7 +32914,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32721,7 +32995,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32802,7 +33076,7 @@

    - + src/queries/specialized-queries/percolate-query.js @@ -32950,7 +33224,7 @@

    - + src/queries/span-queries/span-query-base.js @@ -33012,7 +33286,7 @@

    - + src/queries/span-queries/span-term-query.js @@ -33108,7 +33382,7 @@

    - + src/queries/span-queries/span-term-query.js @@ -33188,7 +33462,7 @@

    - + src/queries/span-queries/span-term-query.js @@ -33268,7 +33542,7 @@

    - + src/queries/span-queries/span-term-query.js @@ -33339,7 +33613,7 @@

    - + src/queries/span-queries/span-multi-term-query.js @@ -33422,7 +33696,7 @@

    - + src/queries/span-queries/span-multi-term-query.js @@ -33508,7 +33782,7 @@

    - + src/queries/span-queries/span-first-query.js @@ -33591,7 +33865,7 @@

    - + src/queries/span-queries/span-first-query.js @@ -33671,7 +33945,7 @@

    - + src/queries/span-queries/span-first-query.js @@ -33757,7 +34031,7 @@

    - + src/queries/span-queries/span-near-query.js @@ -33833,7 +34107,7 @@

    - + src/queries/span-queries/span-near-query.js @@ -33926,7 +34200,7 @@

    - + src/queries/span-queries/span-near-query.js @@ -34008,7 +34282,7 @@

    - + src/queries/span-queries/span-near-query.js @@ -34092,7 +34366,7 @@

    - + src/queries/span-queries/span-or-query.js @@ -34164,7 +34438,7 @@

    - + src/queries/span-queries/span-or-query.js @@ -34262,7 +34536,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34338,7 +34612,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34418,7 +34692,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34499,7 +34773,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34580,7 +34854,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34660,7 +34934,7 @@

    - + src/queries/span-queries/span-not-query.js @@ -34746,7 +35020,7 @@

    - + src/queries/span-queries/span-little-big-query-base.js @@ -34809,7 +35083,7 @@

    - + src/queries/span-queries/span-little-big-query-base.js @@ -34890,7 +35164,7 @@

    - + src/queries/span-queries/span-little-big-query-base.js @@ -34976,7 +35250,7 @@

    - + src/queries/span-queries/span-containing-query.js @@ -35052,7 +35326,7 @@

    - + src/queries/span-queries/span-within-query.js @@ -35128,7 +35402,7 @@

    - + src/queries/span-queries/span-field-masking-query.js @@ -35233,7 +35507,7 @@

    - + src/queries/span-queries/span-field-masking-query.js @@ -35313,7 +35587,7 @@

    - + src/queries/span-queries/span-field-masking-query.js @@ -35462,7 +35736,7 @@

    - + src/core/aggregation.js @@ -35556,7 +35830,7 @@

    - + src/core/aggregation.js @@ -35637,7 +35911,7 @@

    - + src/core/aggregation.js @@ -35731,7 +36005,7 @@

    - + src/core/aggregation.js @@ -35814,7 +36088,7 @@

    - + src/core/aggregation.js @@ -35915,7 +36189,7 @@

    - + src/core/aggregation.js @@ -36016,7 +36290,7 @@

    - + src/core/aggregation.js @@ -36097,7 +36371,7 @@

    - + src/core/aggregation.js @@ -36162,7 +36436,7 @@

    - + src/core/aggregation.js @@ -36292,7 +36566,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36388,7 +36662,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36469,7 +36743,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36577,7 +36851,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36664,7 +36938,7 @@

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36750,7 +37024,7 @@

    - + src/aggregations/metrics-aggregations/avg-aggregation.js @@ -36863,7 +37137,7 @@

    - + src/aggregations/metrics-aggregations/cardinality-aggregation.js @@ -36964,7 +37238,7 @@

    - + src/aggregations/metrics-aggregations/cardinality-aggregation.js @@ -37028,7 +37302,7 @@

    - + src/aggregations/metrics-aggregations/cardinality-aggregation.js @@ -37126,7 +37400,7 @@

    - + src/aggregations/metrics-aggregations/extended-stats-aggregation.js @@ -37239,7 +37513,7 @@

    - + src/aggregations/metrics-aggregations/extended-stats-aggregation.js @@ -37334,7 +37608,7 @@

    - + src/aggregations/metrics-aggregations/geo-bounds-aggregation.js @@ -37425,7 +37699,7 @@

    - + src/aggregations/metrics-aggregations/geo-bounds-aggregation.js @@ -37489,7 +37763,7 @@

    - + src/aggregations/metrics-aggregations/geo-bounds-aggregation.js @@ -37553,7 +37827,7 @@

    - + src/aggregations/metrics-aggregations/geo-bounds-aggregation.js @@ -37640,7 +37914,7 @@

    - + src/aggregations/metrics-aggregations/geo-centroid-aggregation.js @@ -37741,7 +38015,7 @@

    - + src/aggregations/metrics-aggregations/geo-centroid-aggregation.js @@ -37810,7 +38084,7 @@

    - + src/aggregations/metrics-aggregations/max-aggregation.js @@ -37919,7 +38193,7 @@

    - + src/aggregations/metrics-aggregations/min-aggregation.js @@ -38028,7 +38302,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38131,7 +38405,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38222,7 +38496,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38324,7 +38598,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38420,7 +38694,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38517,7 +38791,7 @@

    - + src/aggregations/metrics-aggregations/percentiles-aggregation.js @@ -38616,7 +38890,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38744,7 +39018,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38808,7 +39082,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38899,7 +39173,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -38990,7 +39264,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -39077,7 +39351,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -39165,7 +39439,7 @@

    - + src/aggregations/metrics-aggregations/percentile-ranks-aggregation.js @@ -39266,7 +39540,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39371,7 +39645,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39435,7 +39709,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39499,7 +39773,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39563,7 +39837,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39645,7 +39919,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39728,7 +40002,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39812,7 +40086,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39897,7 +40171,7 @@

    - + src/aggregations/metrics-aggregations/scripted-metric-aggregation.js @@ -39987,7 +40261,7 @@

    - + src/aggregations/metrics-aggregations/stats-aggregation.js @@ -40097,7 +40371,7 @@

    - + src/aggregations/metrics-aggregations/sum-aggregation.js @@ -40219,7 +40493,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40331,7 +40605,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40395,7 +40669,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40459,7 +40733,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40523,7 +40797,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40587,7 +40861,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40668,7 +40942,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40749,7 +41023,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40845,7 +41119,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -40940,7 +41214,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41022,7 +41296,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41103,7 +41377,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41184,7 +41458,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41264,7 +41538,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41348,7 +41622,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41432,7 +41706,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41522,7 +41796,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41608,7 +41882,7 @@

    - + src/aggregations/metrics-aggregations/top-hits-aggregation.js @@ -41694,7 +41968,7 @@

    - + src/aggregations/metrics-aggregations/value-count-aggregation.js @@ -41795,7 +42069,7 @@

    - + src/aggregations/metrics-aggregations/value-count-aggregation.js @@ -41924,7 +42198,7 @@

    - + src/aggregations/bucket-aggregations/bucket-aggregation-base.js @@ -42020,7 +42294,7 @@

    - + src/aggregations/bucket-aggregations/bucket-aggregation-base.js @@ -42101,7 +42375,7 @@

    - + src/aggregations/bucket-aggregations/bucket-aggregation-base.js @@ -42212,7 +42486,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42300,7 +42574,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42364,7 +42638,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42428,7 +42702,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42529,7 +42803,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42623,7 +42897,7 @@

    - + src/aggregations/bucket-aggregations/adjacency-matrix-aggregation.js @@ -42712,7 +42986,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -42815,7 +43089,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -42896,7 +43170,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -42991,7 +43265,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -43085,7 +43359,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -43172,7 +43446,7 @@

    - + src/aggregations/bucket-aggregations/auto-date-histogram-aggregation.js @@ -43271,7 +43545,7 @@

    - + src/aggregations/bucket-aggregations/children-aggregation.js @@ -43369,7 +43643,7 @@

    - + src/aggregations/bucket-aggregations/children-aggregation.js @@ -43433,7 +43707,7 @@

    - + src/aggregations/bucket-aggregations/children-aggregation.js @@ -43497,7 +43771,7 @@

    - + src/aggregations/bucket-aggregations/children-aggregation.js @@ -43583,7 +43857,7 @@

    - + src/aggregations/bucket-aggregations/composite-aggregation.js @@ -43677,7 +43951,7 @@

    - + src/aggregations/bucket-aggregations/composite-aggregation.js @@ -43788,7 +44062,7 @@

    - + src/aggregations/bucket-aggregations/composite-aggregation.js @@ -43872,7 +44146,7 @@

    - + src/aggregations/bucket-aggregations/composite-aggregation.js @@ -44049,7 +44323,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44158,7 +44432,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44239,7 +44513,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44330,7 +44604,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44411,7 +44685,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44500,7 +44774,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44584,7 +44858,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44667,7 +44941,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/values-source-base.js @@ -44738,7 +45012,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/terms-values-source.js @@ -44831,7 +45105,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/histogram-values-source.js @@ -44935,7 +45209,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/histogram-values-source.js @@ -45021,7 +45295,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45125,7 +45399,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45206,7 +45480,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45299,7 +45573,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45395,7 +45669,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45481,7 +45755,7 @@

    - + src/aggregations/bucket-aggregations/composite-agg-values-sources/date-histogram-values-source.js @@ -45579,7 +45853,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45685,7 +45959,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45768,7 +46042,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45862,7 +46136,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -45953,7 +46227,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -46061,7 +46335,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -46149,7 +46423,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -46255,7 +46529,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -46362,7 +46636,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -46449,7 +46723,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation-base.js @@ -46544,7 +46818,7 @@

    - + src/aggregations/bucket-aggregations/date-histogram-aggregation.js @@ -46652,7 +46926,7 @@

    - + src/aggregations/bucket-aggregations/date-histogram-aggregation.js @@ -46746,7 +47020,7 @@

    - + src/aggregations/bucket-aggregations/date-histogram-aggregation.js @@ -46839,7 +47113,7 @@

    - + src/aggregations/bucket-aggregations/date-histogram-aggregation.js @@ -46941,7 +47215,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47038,7 +47312,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47122,7 +47396,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47228,7 +47502,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47337,7 +47611,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47418,7 +47692,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47519,7 +47793,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation-base.js @@ -47589,7 +47863,7 @@

    - + src/aggregations/bucket-aggregations/date-range-aggregation.js @@ -47685,7 +47959,7 @@

    - + src/aggregations/bucket-aggregations/date-range-aggregation.js @@ -47789,7 +48063,7 @@

    - + src/aggregations/bucket-aggregations/diversified-sampler-aggregation.js @@ -47911,7 +48185,7 @@

    - + src/aggregations/bucket-aggregations/diversified-sampler-aggregation.js @@ -47993,7 +48267,7 @@

    - + src/aggregations/bucket-aggregations/diversified-sampler-aggregation.js @@ -48076,7 +48350,7 @@

    - + src/aggregations/bucket-aggregations/diversified-sampler-aggregation.js @@ -48181,7 +48455,7 @@

    - + src/aggregations/bucket-aggregations/filter-aggregation.js @@ -48280,7 +48554,7 @@

    - + src/aggregations/bucket-aggregations/filter-aggregation.js @@ -48344,7 +48618,7 @@

    - + src/aggregations/bucket-aggregations/filter-aggregation.js @@ -48408,7 +48682,7 @@

    - + src/aggregations/bucket-aggregations/filter-aggregation.js @@ -48505,7 +48779,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48597,7 +48871,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48661,7 +48935,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48725,7 +48999,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48829,7 +49103,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -48923,7 +49197,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -49017,7 +49291,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -49111,7 +49385,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -49214,7 +49488,7 @@

    - + src/aggregations/bucket-aggregations/filters-aggregation.js @@ -49310,7 +49584,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49408,7 +49682,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49472,7 +49746,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49536,7 +49810,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49630,7 +49904,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49733,7 +50007,7 @@

    - + src/aggregations/bucket-aggregations/geo-distance-aggregation.js @@ -49844,7 +50118,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -49937,7 +50211,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -50001,7 +50275,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -50065,7 +50339,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -50154,7 +50428,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -50238,7 +50512,7 @@

    - + src/aggregations/bucket-aggregations/geo-hash-grid-aggregation.js @@ -50325,7 +50599,7 @@

    - + src/aggregations/bucket-aggregations/global-aggregation.js @@ -50415,7 +50689,7 @@

    - + src/aggregations/bucket-aggregations/global-aggregation.js @@ -50479,7 +50753,7 @@

    - + src/aggregations/bucket-aggregations/global-aggregation.js @@ -50548,7 +50822,7 @@

    - + src/aggregations/bucket-aggregations/histogram-aggregation.js @@ -50658,7 +50932,7 @@

    - + src/aggregations/bucket-aggregations/ip-range-aggregation.js @@ -50757,7 +51031,7 @@

    - + src/aggregations/bucket-aggregations/ip-range-aggregation.js @@ -50826,7 +51100,7 @@

    - + src/aggregations/bucket-aggregations/missing-aggregation.js @@ -50918,7 +51192,7 @@

    - + src/aggregations/bucket-aggregations/missing-aggregation.js @@ -50987,7 +51261,7 @@

    - + src/aggregations/bucket-aggregations/nested-aggregation.js @@ -51085,7 +51359,7 @@

    - + src/aggregations/bucket-aggregations/nested-aggregation.js @@ -51149,7 +51423,7 @@

    - + src/aggregations/bucket-aggregations/nested-aggregation.js @@ -51213,7 +51487,7 @@

    - + src/aggregations/bucket-aggregations/nested-aggregation.js @@ -51300,7 +51574,7 @@

    - + src/aggregations/bucket-aggregations/parent-aggregation.js @@ -51407,7 +51681,7 @@

    - + src/aggregations/bucket-aggregations/parent-aggregation.js @@ -51471,7 +51745,7 @@

    - + src/aggregations/bucket-aggregations/parent-aggregation.js @@ -51535,7 +51809,7 @@

    - + src/aggregations/bucket-aggregations/parent-aggregation.js @@ -51621,7 +51895,7 @@

    - + src/aggregations/bucket-aggregations/range-aggregation.js @@ -51741,7 +52015,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -51838,7 +52112,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -51926,7 +52200,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -52015,7 +52289,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -52103,7 +52377,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -52191,7 +52465,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -52272,7 +52546,7 @@

    - + src/aggregations/bucket-aggregations/rare-terms-aggregation.js @@ -52341,7 +52615,7 @@

    - + src/aggregations/bucket-aggregations/reverse-nested-aggregation.js @@ -52449,7 +52723,7 @@

    - + src/aggregations/bucket-aggregations/reverse-nested-aggregation.js @@ -52513,7 +52787,7 @@

    - + src/aggregations/bucket-aggregations/reverse-nested-aggregation.js @@ -52577,7 +52851,7 @@

    - + src/aggregations/bucket-aggregations/reverse-nested-aggregation.js @@ -52666,7 +52940,7 @@

    - + src/aggregations/bucket-aggregations/sampler-aggregation.js @@ -52768,7 +53042,7 @@

    - + src/aggregations/bucket-aggregations/sampler-aggregation.js @@ -52832,7 +53106,7 @@

    - + src/aggregations/bucket-aggregations/sampler-aggregation.js @@ -52896,7 +53170,7 @@

    - + src/aggregations/bucket-aggregations/sampler-aggregation.js @@ -52983,7 +53257,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53089,7 +53363,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53171,7 +53445,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53259,7 +53533,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53347,7 +53621,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53433,7 +53707,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53517,7 +53791,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53598,7 +53872,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53703,7 +53977,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53808,7 +54082,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation-base.js @@ -53922,7 +54196,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -53986,7 +54260,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54053,7 +54327,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54155,7 +54429,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54257,7 +54531,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54343,7 +54617,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54412,7 +54686,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54492,7 +54766,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54586,7 +54860,7 @@

    - + src/aggregations/bucket-aggregations/significant-aggregation-base.js @@ -54655,7 +54929,7 @@

    - + src/aggregations/bucket-aggregations/significant-terms-aggregation.js @@ -54758,7 +55032,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -54863,7 +55137,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -54960,7 +55234,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -55054,7 +55328,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -55118,7 +55392,7 @@

    - + src/aggregations/bucket-aggregations/significant-text-aggregation.js @@ -55187,7 +55461,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55278,7 +55552,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55360,7 +55634,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55464,7 +55738,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55560,7 +55834,7 @@

    - + src/aggregations/bucket-aggregations/terms-aggregation.js @@ -55754,7 +56028,7 @@

    - + src/aggregations/pipeline-aggregations/pipeline-aggregation-base.js @@ -55863,7 +56137,7 @@

    - + src/aggregations/pipeline-aggregations/pipeline-aggregation-base.js @@ -55962,7 +56236,7 @@

    - + src/aggregations/pipeline-aggregations/pipeline-aggregation-base.js @@ -56047,7 +56321,7 @@

    - + src/aggregations/pipeline-aggregations/pipeline-aggregation-base.js @@ -56133,7 +56407,7 @@

    - + src/aggregations/pipeline-aggregations/avg-bucket-aggregation.js @@ -56236,7 +56510,7 @@

    - + src/aggregations/pipeline-aggregations/derivative-aggregation.js @@ -56348,7 +56622,7 @@

    - + src/aggregations/pipeline-aggregations/derivative-aggregation.js @@ -56450,7 +56724,7 @@

    - + src/aggregations/pipeline-aggregations/max-bucket-aggregation.js @@ -56558,7 +56832,7 @@

    - + src/aggregations/pipeline-aggregations/min-bucket-aggregation.js @@ -56666,7 +56940,7 @@

    - + src/aggregations/pipeline-aggregations/sum-bucket-aggregation.js @@ -56770,7 +57044,7 @@

    - + src/aggregations/pipeline-aggregations/stats-bucket-aggregation.js @@ -56875,7 +57149,7 @@

    - + src/aggregations/pipeline-aggregations/extended-stats-bucket-aggregation.js @@ -56981,7 +57255,7 @@

    - + src/aggregations/pipeline-aggregations/extended-stats-bucket-aggregation.js @@ -57068,7 +57342,7 @@

    - + src/aggregations/pipeline-aggregations/percentiles-bucket-aggregation.js @@ -57174,7 +57448,7 @@

    - + src/aggregations/pipeline-aggregations/percentiles-bucket-aggregation.js @@ -57260,7 +57534,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57378,7 +57652,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57442,7 +57716,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57551,7 +57825,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57640,7 +57914,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57735,7 +58009,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57825,7 +58099,7 @@

    - + src/aggregations/pipeline-aggregations/moving-average-aggregation.js @@ -57922,7 +58196,7 @@

    - + src/aggregations/pipeline-aggregations/moving-function-aggregation.js @@ -58061,7 +58335,7 @@

    - + src/aggregations/pipeline-aggregations/moving-function-aggregation.js @@ -58149,7 +58423,7 @@

    - + src/aggregations/pipeline-aggregations/moving-function-aggregation.js @@ -58237,7 +58511,7 @@

    - + src/aggregations/pipeline-aggregations/moving-function-aggregation.js @@ -58329,7 +58603,7 @@

    - + src/aggregations/pipeline-aggregations/cumulative-sum-aggregation.js @@ -58428,7 +58702,7 @@

    - + src/aggregations/pipeline-aggregations/cumulative-sum-aggregation.js @@ -58497,7 +58771,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-script-aggregation.js @@ -58608,7 +58882,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-script-aggregation.js @@ -58704,7 +58978,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-selector-aggregation.js @@ -58823,7 +59097,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-selector-aggregation.js @@ -58887,7 +59161,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-selector-aggregation.js @@ -58983,7 +59257,7 @@

    - + src/aggregations/pipeline-aggregations/serial-differencing-aggregation.js @@ -59087,7 +59361,7 @@

    - + src/aggregations/pipeline-aggregations/serial-differencing-aggregation.js @@ -59174,7 +59448,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-sort-aggregation.js @@ -59268,7 +59542,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-sort-aggregation.js @@ -59349,7 +59623,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-sort-aggregation.js @@ -59430,7 +59704,7 @@

    - + src/aggregations/pipeline-aggregations/bucket-sort-aggregation.js @@ -59576,7 +59850,7 @@

    - + src/aggregations/matrix-aggregations/matrix-stats-aggregation.js @@ -59667,7 +59941,7 @@

    - + src/aggregations/matrix-aggregations/matrix-stats-aggregation.js @@ -59756,7 +60030,7 @@

    - + src/aggregations/matrix-aggregations/matrix-stats-aggregation.js @@ -59847,7 +60121,7 @@

    - + src/aggregations/matrix-aggregations/matrix-stats-aggregation.js @@ -60004,7 +60278,7 @@

    - + src/queries/compound-queries/score-functions/score-function.js @@ -60075,7 +60349,7 @@

    - + src/queries/compound-queries/score-functions/score-function.js @@ -60158,7 +60432,7 @@

    - + src/queries/compound-queries/score-functions/score-function.js @@ -60239,7 +60513,7 @@

    - + src/queries/compound-queries/score-functions/score-function.js @@ -60310,7 +60584,7 @@

    - + src/queries/compound-queries/score-functions/script-score-function.js @@ -60406,7 +60680,7 @@

    - + src/queries/compound-queries/score-functions/script-score-function.js @@ -60490,7 +60764,7 @@

    - + src/queries/compound-queries/score-functions/weight-score-function.js @@ -60574,7 +60848,7 @@

    - + src/queries/compound-queries/score-functions/weight-score-function.js @@ -60645,7 +60919,7 @@

    - + src/queries/compound-queries/score-functions/random-score-function.js @@ -60713,7 +60987,7 @@

    - + src/queries/compound-queries/score-functions/random-score-function.js @@ -60799,7 +61073,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -60887,7 +61161,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -60968,7 +61242,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -61049,7 +61323,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -61156,7 +61430,7 @@

    - + src/queries/compound-queries/score-functions/field-value-factor-function.js @@ -61243,7 +61517,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61361,7 +61635,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61451,7 +61725,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61519,7 +61793,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61587,7 +61861,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61655,7 +61929,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61736,7 +62010,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61820,7 +62094,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61905,7 +62179,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -61987,7 +62261,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -62069,7 +62343,7 @@

    - + src/queries/compound-queries/score-functions/decay-score-function.js @@ -62200,7 +62474,7 @@

    - + src/core/suggester.js @@ -62310,7 +62584,7 @@

    - + src/core/suggester.js @@ -62392,7 +62666,7 @@

    - + src/core/suggester.js @@ -62472,7 +62746,7 @@

    - + src/core/suggester.js @@ -62542,7 +62816,7 @@

    - + src/suggesters/analyzed-suggester-base.js @@ -62666,7 +62940,7 @@

    - + src/suggesters/analyzed-suggester-base.js @@ -62748,7 +63022,7 @@

    - + src/suggesters/analyzed-suggester-base.js @@ -62830,7 +63104,7 @@

    - + src/suggesters/analyzed-suggester-base.js @@ -62922,7 +63196,7 @@

    - + src/suggesters/term-suggester.js @@ -63038,7 +63312,7 @@

    - + src/suggesters/term-suggester.js @@ -63144,7 +63418,7 @@

    - + src/suggesters/term-suggester.js @@ -63255,7 +63529,7 @@

    - + src/suggesters/term-suggester.js @@ -63339,7 +63613,7 @@

    - + src/suggesters/term-suggester.js @@ -63424,7 +63698,7 @@

    - + src/suggesters/term-suggester.js @@ -63507,7 +63781,7 @@

    - + src/suggesters/term-suggester.js @@ -63594,7 +63868,7 @@

    - + src/suggesters/term-suggester.js @@ -63681,7 +63955,7 @@

    - + src/suggesters/term-suggester.js @@ -63770,7 +64044,7 @@

    - + src/suggesters/term-suggester.js @@ -63897,7 +64171,7 @@

    - + src/suggesters/direct-generator.js @@ -63971,7 +64245,7 @@

    - + src/suggesters/direct-generator.js @@ -64053,7 +64327,7 @@

    - + src/suggesters/direct-generator.js @@ -64133,7 +64407,7 @@

    - + src/suggesters/direct-generator.js @@ -64250,7 +64524,7 @@

    - + src/suggesters/direct-generator.js @@ -64334,7 +64608,7 @@

    - + src/suggesters/direct-generator.js @@ -64419,7 +64693,7 @@

    - + src/suggesters/direct-generator.js @@ -64502,7 +64776,7 @@

    - + src/suggesters/direct-generator.js @@ -64589,7 +64863,7 @@

    - + src/suggesters/direct-generator.js @@ -64676,7 +64950,7 @@

    - + src/suggesters/direct-generator.js @@ -64765,7 +65039,7 @@

    - + src/suggesters/direct-generator.js @@ -64849,7 +65123,7 @@

    - + src/suggesters/direct-generator.js @@ -64932,7 +65206,7 @@

    - + src/suggesters/direct-generator.js @@ -65002,7 +65276,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65123,7 +65397,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65210,7 +65484,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65294,7 +65568,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65381,7 +65655,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65471,7 +65745,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65554,7 +65828,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65647,7 +65921,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65774,7 +66048,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65877,7 +66151,7 @@

    - + src/suggesters/phrase-suggester.js @@ -65980,7 +66254,7 @@

    - + src/suggesters/phrase-suggester.js @@ -66050,7 +66324,7 @@

    - + src/suggesters/completion-suggester.js @@ -66169,7 +66443,7 @@

    - + src/suggesters/completion-suggester.js @@ -66249,7 +66523,7 @@

    - + src/suggesters/completion-suggester.js @@ -66332,7 +66606,7 @@

    - + src/suggesters/completion-suggester.js @@ -66417,7 +66691,7 @@

    - + src/suggesters/completion-suggester.js @@ -66512,7 +66786,7 @@

    - + src/suggesters/completion-suggester.js @@ -66593,7 +66867,7 @@

    - + src/suggesters/completion-suggester.js @@ -66676,7 +66950,7 @@

    - + src/suggesters/completion-suggester.js @@ -66760,7 +67034,7 @@

    - + src/suggesters/completion-suggester.js @@ -66846,7 +67120,7 @@

    - + src/suggesters/completion-suggester.js @@ -66934,7 +67208,7 @@

    - + src/suggesters/completion-suggester.js @@ -67032,7 +67306,7 @@

    - + src/suggesters/completion-suggester.js @@ -67115,7 +67389,7 @@

    - + src/suggesters/completion-suggester.js @@ -67315,7 +67589,7 @@

    - + src/core/highlight.js @@ -67424,7 +67698,7 @@

    - + src/core/highlight.js @@ -67506,7 +67780,7 @@

    - + src/core/highlight.js @@ -67598,7 +67872,7 @@

    - + src/core/highlight.js @@ -67700,7 +67974,7 @@

    - + src/core/highlight.js @@ -67802,7 +68076,7 @@

    - + src/core/highlight.js @@ -67876,7 +68150,7 @@

    - + src/core/highlight.js @@ -67964,7 +68238,7 @@

    - + src/core/highlight.js @@ -68063,7 +68337,7 @@

    - + src/core/highlight.js @@ -68166,7 +68440,7 @@

    - + src/core/highlight.js @@ -68267,7 +68541,7 @@

    - + src/core/highlight.js @@ -68386,7 +68660,7 @@

    - + src/core/highlight.js @@ -68509,7 +68783,7 @@

    - + src/core/highlight.js @@ -68595,7 +68869,7 @@

    - + src/core/highlight.js @@ -68692,7 +68966,7 @@

    - + src/core/highlight.js @@ -68793,7 +69067,7 @@

    - + src/core/highlight.js @@ -68884,7 +69158,7 @@

    - + src/core/highlight.js @@ -68976,7 +69250,7 @@

    - + src/core/highlight.js @@ -69099,7 +69373,7 @@

    - + src/core/highlight.js @@ -69195,7 +69469,7 @@

    - + src/core/highlight.js @@ -69313,7 +69587,7 @@

    - + src/core/highlight.js @@ -69383,7 +69657,7 @@

    - + src/core/script.js @@ -69491,7 +69765,7 @@

    - + src/core/script.js @@ -69573,7 +69847,7 @@

    - + src/core/script.js @@ -69656,7 +69930,7 @@

    - + src/core/script.js @@ -69739,7 +70013,7 @@

    - + src/core/script.js @@ -69823,7 +70097,7 @@

    - + src/core/script.js @@ -69913,7 +70187,7 @@

    - + src/core/script.js @@ -70001,7 +70275,7 @@

    - + src/core/script.js @@ -70082,7 +70356,7 @@

    - + src/core/script.js @@ -70152,7 +70426,7 @@

    - + src/core/geo-point.js @@ -70207,7 +70481,7 @@

    - + src/core/geo-point.js @@ -70288,7 +70562,7 @@

    - + src/core/geo-point.js @@ -70369,7 +70643,7 @@

    - + src/core/geo-point.js @@ -70460,7 +70734,7 @@

    - + src/core/geo-point.js @@ -70556,7 +70830,7 @@

    - + src/core/geo-point.js @@ -70637,7 +70911,7 @@

    - + src/core/geo-point.js @@ -70707,7 +70981,7 @@

    - + src/core/geo-shape.js @@ -70817,7 +71091,7 @@

    - + src/core/geo-shape.js @@ -70925,7 +71199,7 @@

    - + src/core/geo-shape.js @@ -71015,7 +71289,7 @@

    - + src/core/geo-shape.js @@ -71105,7 +71379,7 @@

    - + src/core/geo-shape.js @@ -71176,7 +71450,7 @@

    - + src/core/indexed-shape.js @@ -71270,7 +71544,7 @@

    - + src/core/indexed-shape.js @@ -71351,7 +71625,7 @@

    - + src/core/indexed-shape.js @@ -71432,7 +71706,7 @@

    - + src/core/indexed-shape.js @@ -71513,7 +71787,7 @@

    - + src/core/indexed-shape.js @@ -71595,7 +71869,7 @@

    - + src/core/indexed-shape.js @@ -71666,7 +71940,7 @@

    - + src/core/sort.js @@ -71761,7 +72035,7 @@

    - + src/core/sort.js @@ -71850,7 +72124,7 @@

    - + src/core/sort.js @@ -71960,7 +72234,7 @@

    - + src/core/sort.js @@ -72053,7 +72327,7 @@

    - + src/core/sort.js @@ -72155,7 +72429,7 @@

    - + src/core/sort.js @@ -72293,7 +72567,7 @@

    - + src/core/sort.js @@ -72381,7 +72655,7 @@

    - + src/core/sort.js @@ -72470,7 +72744,7 @@

    - + src/core/sort.js @@ -72578,7 +72852,7 @@

    - + src/core/sort.js @@ -72674,7 +72948,7 @@

    - + src/core/sort.js @@ -72768,7 +73042,7 @@

    - + src/core/sort.js @@ -72872,7 +73146,7 @@

    - + src/core/sort.js @@ -72954,7 +73228,7 @@

    - + src/core/sort.js @@ -73035,7 +73309,7 @@

    - + src/core/sort.js @@ -73116,7 +73390,7 @@

    - + src/core/sort.js @@ -73186,7 +73460,7 @@

    - + src/core/rescore.js @@ -73290,7 +73564,7 @@

    - + src/core/rescore.js @@ -73371,7 +73645,7 @@

    - + src/core/rescore.js @@ -73462,7 +73736,7 @@

    - + src/core/rescore.js @@ -73543,7 +73817,7 @@

    - + src/core/rescore.js @@ -73624,7 +73898,7 @@

    - + src/core/rescore.js @@ -73718,7 +73992,7 @@

    - + src/core/rescore.js @@ -73788,7 +74062,7 @@

    - + src/core/inner-hits.js @@ -73873,7 +74147,7 @@

    - + src/core/inner-hits.js @@ -73955,7 +74229,7 @@

    - + src/core/inner-hits.js @@ -74036,7 +74310,7 @@

    - + src/core/inner-hits.js @@ -74118,7 +74392,7 @@

    - + src/core/inner-hits.js @@ -74211,7 +74485,7 @@

    - + src/core/inner-hits.js @@ -74306,7 +74580,7 @@

    - + src/core/inner-hits.js @@ -74391,7 +74665,7 @@

    - + src/core/inner-hits.js @@ -74471,7 +74745,7 @@

    - + src/core/inner-hits.js @@ -74555,7 +74829,7 @@

    - + src/core/inner-hits.js @@ -74635,7 +74909,7 @@

    - + src/core/inner-hits.js @@ -74725,7 +74999,7 @@

    - + src/core/inner-hits.js @@ -74811,7 +75085,7 @@

    - + src/core/inner-hits.js @@ -74892,7 +75166,7 @@

    - + src/core/inner-hits.js @@ -74972,7 +75246,7 @@

    - + src/core/inner-hits.js @@ -75042,7 +75316,7 @@

    - + src/core/search-template.js @@ -75170,7 +75444,7 @@

    - + src/core/search-template.js @@ -75252,7 +75526,7 @@

    - + src/core/search-template.js @@ -75334,7 +75608,7 @@

    - + src/core/search-template.js @@ -75417,7 +75691,7 @@

    - + src/core/search-template.js @@ -75517,7 +75791,7 @@

    - + src/core/search-template.js @@ -75598,7 +75872,7 @@

    - + src/core/search-template.js @@ -75668,7 +75942,7 @@

    - + src/index.js @@ -75740,7 +76014,7 @@

    - + src/core/inspect.js @@ -75810,6 +76084,354 @@

    + + + + +
    + + +
    + +

    + RuntimeField +

    + + + + src/core/runtime-field.js + + +
    + + +

    Class supporting the Elasticsearch runtime field.

    +

    Elasticsearch reference

    +

    Added in Elasticsearch v7.11.0 +Release note

    + + + +
    new RuntimeField(type: string?, script: string?)
    + + + + + + + + + + + + +
    Parameters
    +
    + +
    +
    + type (string?) + One of +boolean +, +composite +, +date +, +double +, +geo_point +, +ip +, +keyword +, +long +, +lookup +. + +
    + +
    + +
    +
    + script (string?) + Source of the script. + +
    + +
    + +
    + + + + + + + + + +
    Example
    + + +
    const field = esb.runtimeField('keyword', `emit(doc['sessionId'].value + '::' + doc['name'].value)`);
    + + + + + + +
    Instance Members
    +
    + +
    +
    +
    + + script(script) +
    +
    + +
    + +
    +
    +
    + + type(type) +
    +
    + +
    + +
    +
    +
    + + toJSON() +
    +
    + +
    + +
    + + + +
    @@ -75824,7 +76446,7 @@

    - + src/queries/full-text-queries/combined-fields-query.js @@ -75915,7 +76537,7 @@

    - + src/queries/full-text-queries/combined-fields-query.js @@ -75999,7 +76621,7 @@

    - + src/queries/full-text-queries/combined-fields-query.js @@ -76093,7 +76715,7 @@

    - + src/queries/full-text-queries/combined-fields-query.js @@ -76175,7 +76797,7 @@

    - + src/queries/full-text-queries/combined-fields-query.js @@ -76264,7 +76886,7 @@

    - + src/queries/full-text-queries/combined-fields-query.js @@ -76367,7 +76989,7 @@

    - + src/queries/specialized-queries/script-score-query.js @@ -76437,7 +77059,7 @@

    - + src/queries/specialized-queries/script-score-query.js @@ -76520,7 +77142,7 @@

    - + src/queries/specialized-queries/script-score-query.js @@ -76603,7 +77225,7 @@

    - + src/queries/specialized-queries/script-score-query.js @@ -76689,7 +77311,7 @@

    - + src/queries/specialized-queries/distance-feature-query.js @@ -76777,7 +77399,7 @@

    - + src/queries/specialized-queries/distance-feature-query.js @@ -76856,7 +77478,7 @@

    - + src/queries/specialized-queries/distance-feature-query.js @@ -76936,7 +77558,7 @@

    - + src/queries/specialized-queries/distance-feature-query.js @@ -77025,7 +77647,7 @@

    - + src/queries/specialized-queries/rank-feature-query.js @@ -77111,7 +77733,7 @@

    - + src/queries/specialized-queries/rank-feature-query.js @@ -77190,7 +77812,7 @@

    - + src/queries/specialized-queries/rank-feature-query.js @@ -77255,7 +77877,7 @@

    - + src/queries/specialized-queries/rank-feature-query.js @@ -77321,7 +77943,7 @@

    - + src/queries/specialized-queries/rank-feature-query.js @@ -77399,7 +78021,7 @@

    - + src/queries/specialized-queries/rank-feature-query.js @@ -77487,7 +78109,7 @@

    - + src/queries/specialized-queries/rank-feature-query.js @@ -77578,7 +78200,7 @@

    - + src/aggregations/metrics-aggregations/weighted-average-aggregation.js @@ -77697,7 +78319,7 @@

    - + src/aggregations/metrics-aggregations/weighted-average-aggregation.js @@ -77788,7 +78410,7 @@

    - + src/aggregations/metrics-aggregations/weighted-average-aggregation.js @@ -77879,7 +78501,7 @@

    - + src/aggregations/metrics-aggregations/weighted-average-aggregation.js @@ -77943,7 +78565,7 @@

    - + src/aggregations/metrics-aggregations/weighted-average-aggregation.js @@ -78007,7 +78629,7 @@

    - + src/aggregations/metrics-aggregations/weighted-average-aggregation.js @@ -78076,7 +78698,7 @@

    - + src/aggregations/bucket-aggregations/variable-width-histogram-aggregation.js @@ -78180,7 +78802,7 @@

    - + src/aggregations/bucket-aggregations/variable-width-histogram-aggregation.js @@ -78266,7 +78888,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -78360,7 +78982,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -78424,7 +79046,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -78488,7 +79110,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -78577,7 +79199,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -78661,7 +79283,7 @@

    - + src/aggregations/bucket-aggregations/geo-hex-grid-aggregation.js @@ -78748,7 +79370,7 @@

    - + src/aggregations/bucket-aggregations/geo-tile-grid-aggregation.js @@ -78843,7 +79465,7 @@