diff --git a/browser/elastic-builder.min.js b/browser/elastic-builder.min.js index d32a0f9..634aded 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,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){"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){(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=U(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 U(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(U.Cache||C),s}function W(t,e){return t===e||t!=t&&e!=e}U.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!(!W(t)||function(t){return!!w&&w in t}(t))&&(U(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)&&!U(t)}var J=q||function(){return!1};function U(t){var e=W(t)?b.call(t):"";return e==n||e==o}function W(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:U,HasParentQuery:W,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},bucketAggregations:{AdjacencyMatrixAggregation:Qt,ChildrenAggregation:kt,CompositeAggregation:Et,DateHistogramAggregation:Pt,AutoDateHistogramAggregation:zt,VariableWidthHistogramAggregation:Mt,DateRangeAggregation:Ft,DiversifiedSamplerAggregation:jt,FilterAggregation:$t,FiltersAggregation:Ct,GeoDistanceAggregation:Rt,GeoHashGridAggregation:Nt,GeoHexGridAggregation:Gt,GeoTileGridAggregation:Bt,GlobalAggregation:Lt,HistogramAggregation:Ht,IpRangeAggregation:It,MissingAggregation:Jt,NestedAggregation:Ut,ParentAggregation:Wt,RangeAggregation:Vt,RareTermsAggregation:Zt,ReverseNestedAggregation:Kt,SamplerAggregation:Yt,SignificantTermsAggregation:Xt,SignificantTextAggregation:te,TermsAggregation:ee},pipelineAggregations:{AvgBucketAggregation:re,DerivativeAggregation:se,MaxBucketAggregation:ie,MinBucketAggregation:ne,SumBucketAggregation:oe,StatsBucketAggregation:ue,ExtendedStatsBucketAggregation:ce,PercentilesBucketAggregation:ae,MovingAverageAggregation:he,MovingFunctionAggregation:ge,CumulativeSumAggregation:le,BucketScriptAggregation:pe,BucketSelectorAggregation:_e,SerialDifferencingAggregation:fe,BucketSortAggregation:de},matrixAggregations:{MatrixStatsAggregation:ye}}=r(112),{TermSuggester:me,DirectGenerator:we,PhraseSuggester:xe,CompletionSuggester:Oe}=r(178),be=r(183);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=U,e.hasChildQuery=_(U),e.HasParentQuery=W,e.hasParentQuery=_(W),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.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=Qt,e.adjacencyMatrixAggregation=_(Qt),e.ChildrenAggregation=kt,e.childrenAggregation=_(kt),e.CompositeAggregation=Et,e.compositeAggregation=_(Et),e.DateHistogramAggregation=Pt,e.dateHistogramAggregation=_(Pt),e.AutoDateHistogramAggregation=zt,e.autoDateHistogramAggregation=_(zt),e.VariableWidthHistogramAggregation=Mt,e.variableWidthHistogramAggregation=_(Mt),e.DateRangeAggregation=Ft,e.dateRangeAggregation=_(Ft),e.DiversifiedSamplerAggregation=jt,e.diversifiedSamplerAggregation=_(jt),e.FilterAggregation=$t,e.filterAggregation=_($t),e.FiltersAggregation=Ct,e.filtersAggregation=_(Ct),e.GeoDistanceAggregation=Rt,e.geoDistanceAggregation=_(Rt),e.GeoHashGridAggregation=Nt,e.geoHashGridAggregation=_(Nt),e.GeoHexGridAggregation=Gt,e.geoHexGridAggregation=_(Gt),e.GeoTileGridAggregation=Bt,e.geoTileGridAggregation=_(Bt),e.GlobalAggregation=Lt,e.globalAggregation=_(Lt),e.HistogramAggregation=Ht,e.histogramAggregation=_(Ht),e.IpRangeAggregation=It,e.ipRangeAggregation=_(It),e.MissingAggregation=Jt,e.missingAggregation=_(Jt),e.NestedAggregation=Ut,e.nestedAggregation=_(Ut),e.ParentAggregation=Wt,e.parentAggregation=_(Wt),e.RangeAggregation=Vt,e.rangeAggregation=_(Vt),e.RareTermsAggregation=Zt,e.rareTermsAggregation=_(Zt),e.ReverseNestedAggregation=Kt,e.reverseNestedAggregation=_(Kt),e.SamplerAggregation=Yt,e.samplerAggregation=_(Yt),e.SignificantTermsAggregation=Xt,e.significantTermsAggregation=_(Xt),e.SignificantTextAggregation=te,e.significantTextAggregation=_(te),e.TermsAggregation=ee,e.termsAggregation=_(ee),e.AvgBucketAggregation=re,e.avgBucketAggregation=_(re),e.DerivativeAggregation=se,e.derivativeAggregation=_(se),e.MaxBucketAggregation=ie,e.maxBucketAggregation=_(ie),e.MinBucketAggregation=ne,e.minBucketAggregation=_(ne),e.BucketSortAggregation=de,e.bucketSortAggregation=_(de),e.SumBucketAggregation=oe,e.sumBucketAggregation=_(oe),e.StatsBucketAggregation=ue,e.statsBucketAggregation=_(ue),e.ExtendedStatsBucketAggregation=ce,e.extendedStatsBucketAggregation=_(ce),e.PercentilesBucketAggregation=ae,e.percentilesBucketAggregation=_(ae),e.MovingAverageAggregation=he,e.movingAverageAggregation=_(he),e.MovingFunctionAggregation=ge,e.movingFunctionAggregation=_(ge),e.CumulativeSumAggregation=le,e.cumulativeSumAggregation=_(le),e.BucketScriptAggregation=pe,e.bucketScriptAggregation=_(pe),e.BucketSelectorAggregation=_e,e.bucketSelectorAggregation=_(_e),e.SerialDifferencingAggregation=fe,e.serialDifferencingAggregation=_(fe),e.MatrixStatsAggregation=ye,e.matrixStatsAggregation=_(ye),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=me,e.termSuggester=_(me),e.DirectGenerator=we,e.directGenerator=_(we),e.PhraseSuggester=xe,e.phraseSuggester=_(xe),e.CompletionSuggester=Oe,e.completionSuggester=_(Oe),e.recipes=be,e.cookMissingQuery=be.missingQuery,e.cookRandomSortQuery=be.randomSortQuery,e.cookFilterQuery=be.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=U(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 U(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(U.Cache||C),s}function W(t,e){return t===e||t!=t&&e!=e}U.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):U(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(128),e.pipelineAggregations=r(160),e.matrixAggregations=r(176)},function(t,e,r){"use strict";e.MetricsAggregationBase=r(4),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)},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"avg",e)}}},function(t,e,r){"use strict";const s=r(4),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(4);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(4),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(4),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(4);t.exports=class extends s{constructor(t,e){super(t,"max",e)}}},function(t,e,r){"use strict";const s=r(4);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(4);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(4),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(4),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(4);t.exports=class extends s{constructor(t,e){super(t,"stats",e)}}},function(t,e,r){"use strict";const s=r(4);t.exports=class extends s{constructor(t,e){super(t,"sum",e)}}},function(t,e,r){"use strict";const s=r(4),{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(4),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";e.BucketAggregationBase=r(2),e.HistogramAggregationBase=r(28),e.RangeAggregationBase=r(16),e.TermsAggregationBase=r(29),e.SignificantAggregationBase=r(30),e.AdjacencyMatrixAggregation=r(129),e.ChildrenAggregation=r(130),e.CompositeAggregation=r(131),e.DateHistogramAggregation=r(136),e.AutoDateHistogramAggregation=r(137),e.VariableWidthHistogramAggregation=r(138),e.DateRangeAggregation=r(139),e.DiversifiedSamplerAggregation=r(140),e.FilterAggregation=r(141),e.FiltersAggregation=r(142),e.GeoDistanceAggregation=r(143),e.GeoHashGridAggregation=r(144),e.GeoHexGridAggregation=r(145),e.GeoTileGridAggregation=r(146),e.GlobalAggregation=r(147),e.HistogramAggregation=r(148),e.IpRangeAggregation=r(149),e.MissingAggregation=r(150),e.NestedAggregation=r(151),e.ParentAggregation=r(152),e.RangeAggregation=r(153),e.RareTermsAggregation=r(154),e.ReverseNestedAggregation=r(155),e.SamplerAggregation=r(156),e.SignificantTermsAggregation=r(157),e.SignificantTextAggregation=r(158),e.TermsAggregation=r(159)},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(132);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(133),e.HistogramValuesSource=r(134),e.DateHistogramValuesSource=r(135)},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(3),e.AvgBucketAggregation=r(161),e.DerivativeAggregation=r(162),e.MaxBucketAggregation=r(163),e.MinBucketAggregation=r(164),e.SumBucketAggregation=r(165),e.StatsBucketAggregation=r(166),e.ExtendedStatsBucketAggregation=r(167),e.PercentilesBucketAggregation=r(168),e.MovingAverageAggregation=r(169),e.MovingFunctionAggregation=r(170),e.CumulativeSumAggregation=r(171),e.BucketScriptAggregation=r(172),e.BucketSelectorAggregation=r(173),e.SerialDifferencingAggregation=r(174),e.BucketSortAggregation=r(175)},function(t,e,r){"use strict";const s=r(3),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(3),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(3),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(3),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(3),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(3),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(3),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(3),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(3),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(3),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(3),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(3),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(3),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(3),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(3),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(177)},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(179),e.DirectGenerator=r(180),e.PhraseSuggester=r(181),e.CompletionSuggester=r(182)},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=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 diff --git a/docs/index.html b/docs/index.html index 760bb65..9b27e49 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,7 +2,7 @@ - elastic-builder 2.26.0 | Documentation + elastic-builder 2.27.0 | Documentation @@ -15,7 +15,7 @@

elastic-builder

-
2.26.0
+
2.27.0
elastic-builder +
+ + + + +
  • + WeightedAverageAggregation + + + +
  • @@ -7342,7 +7394,7 @@

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    - + src/core/request-body-search.js @@ -9048,7 +9100,7 @@

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    - + src/aggregations/metrics-aggregations/metrics-aggregation-base.js @@ -36525,14 +36577,14 @@

    -

    Sets the missing parameter ehich defines how documents +

    Sets the missing parameter which defines how documents that are missing a value should be treated.

    @@ -36612,7 +36664,7 @@

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    - + src/core/inspect.js @@ -75772,7 +75824,7 @@

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    + + + + + + + + +
    + + + + + +

    A single-value metrics aggregation that computes the weighted average of numeric values that are extracted from the aggregated documents. +These values can be extracted either from specific numeric fields in the documents.

    +

    Elasticsearch reference

    +

    Added in Elasticsearch v6.4.0 +Release notes

    +

    As a formula, a weighted average is ∑(value * weight) / ∑(weight)

    + + + +
    new WeightedAverageAggregation(name: string, value: string?, weight: string?)
    + + + +

    + Extends + + MetricsAggregationBase + +

    + + + + + + + + + + +
    Parameters
    +
    + +
    +
    + name (string) + The name which will be used to refer to this aggregation. + +
    + +
    + +
    +
    + value (string?) + The field or script to be used as the value. + +
    + +
    + +
    +
    + weight (string?) + The field or script to be used as the weighting. + +
    + +
    + +
    + + + + + + + + + +
    Example
    + + +
    // Compute the average grade over all documents, weighing by teacher score.
    +const agg = esb.weightedAverageAggregation('avg_grade', 'grade', 'teacher_score');
    + + +
    // Compute the average grade where the weight is calculated by a script.
    +// Filling in missing values as '10'.
    +const agg = esb.weightedAverageAggregation('avg_grade', 'grade')
    +     .weight(esb.script('inline', "doc['teacher_score'].value").lang('painless'), 10)
    +);
    + + +
    // Compute the average grade, weighted by teacher score, filling in missing values.
    +const agg = esb.weightedAverageAggregation('avg_grade').value('grade', 5).weight('teacher_score', 10));
    + + +
    // Compute the average grade over all documents, weighing by teacher score.
    +const agg = esb.weightedAverageAggregation('avg_grade').value('grade').weight('teacher_score');
    + + + + + + +
    Instance Members
    +
    + +
    +
    +
    + + value(value, missing?) +
    +
    + +
    + +
    +
    +
    + + weight(weight, missing?) +
    +
    + +
    + +
    +
    +
    + + script() +
    +
    + +
    + +
    +
    +
    + + missing() +
    +
    + +
    + +
    +
    +
    + + field() +
    +
    + @@ -77526,7 +78076,7 @@

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

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

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

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

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

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

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

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

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