!function(){vare=function(t){varr=newe.Builder;returnr.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),r.searchPipeline.add(e.stemmer),t.call(r,r),r.build()};e.version="2.3.9",e.utils={},e.utils.warn=function(e){returnfunction(t){e.console&&console.warn&&console.warn(t)}}(this),e.utils.asString=function(e){returnvoid0===e||null===e?"":e.toString()},e.utils.clone=function(e){if(null===e||void0===e)returne;for(vart=Object.create(null),r=Object.keys(e),i=0;i<r.length;i++){varn=r[i],s=e[n];if(Array.isArray(s))t[n]=s.slice();else{if("string"!=typeofs&&"number"!=typeofs&&"boolean"!=typeofs)thrownewTypeError("clone is not deep and does not support nested objects");t[n]=s}}returnt},e.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},e.FieldRef.joiner="/",e.FieldRef.fromString=function(t){varr=t.indexOf(e.FieldRef.joiner);if(r===-1)throw"malformed field ref string";vari=t.slice(0,r),n=t.slice(r+1);returnnewe.FieldRef(n,i,t)},e.FieldRef.prototype.toString=function(){returnvoid0==this._stringValue&&(this._stringValue=this.fieldName+e.FieldRef.joiner+this.docRef),this._stringValue},e.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(vart=0;t<this.length;t++)this.elements[e[t]]=!0}elsethis.length=0},e.Set.complete={intersect:function(e){returne},union:function(){returnthis},contains:function(){return!0}},e.Set.empty={intersect:function(){returnthis},union:function(e){returne},contains:function(){return!1}},e.Set.prototype.contains=function(e){return!!this.elements[e]},e.Set.prototype.intersect=function(t){varr,i,n,s=[];if(t===e.Set.complete)returnthis;if(t===e.Set.empty)returnt;this.length<t.length?(r=this,i=t):(r=t,i=this),n=Object.keys(r.elements);for(varo=0;o<n.length;o++){vara=n[o];aini.elements&&s.push(a)}returnnewe.Set(s)},e.Set.prototype.union=function(t){returnt===e.Set.complete?e.Set.complete:t===e.Set.empty?this:newe.Set(Object.keys(this.elements).concat(Object.keys(t.elements)))},e.idf=function(e,t){varr=0;for(variine)"_index"!=i&&(r+=Object.keys(e[i]).length);varn=(t-r+.5)/(r+.5);returnMath.log(1+Math.abs(n))},e.Token=function(e,t){this.str=e||"",this.metadata=t||{}},e.Token.prototype.toString=function(){returnthis.str},e.Token.prototype.update=function(e){returnthis.str=e(this.str,this.metadata),this},e.Token.prototype.clone=function(t){returnt=t||function(e){returne},newe.Token(t(this.str,this.metadata),this.metadata)},e.tokenizer=function(t,r){if(null==t||void0==t)return[];if(Array.isArray(t))returnt.map(function(t){returnnewe.Token(e.utils.asString(t).toLowerCase(),e.utils.clone(r))});for(vari=t.toString().toLowerCase(),n=i.length,s=[],o=0,a=0;o<=n;o++){varu=i.charAt(o),l=o-a;if(u.match(e.tokenizer.separator)||o==n){if(l>0){varc=e.utils.clone(r)||{};c.position=[a,l],c.index=s.length,s.push(newe.Token(i.slice(a,o),c))}a=o+1}}returns},e.tokenizer.separator=/[\s\-]+/,e.Pipeline=function(){this._stack=[]},e.Pipeline.registeredFunctions=Object.create(null),e.Pipeline.registerFunction=function(t,r){rinthis.registeredFunctions&&e.utils.warn("Overwriting existing registered function: "+r),t.label=r,e.Pipeline.registeredFunctions[t.label]=t},e.Pipeline.warnIfFunctionNotRegistered=function(t){varr=t.label&&t.labelinthis.registeredFunctions;r||e.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},e.Pipeline.load=function(t){varr=newe.Pipeline;returnt.forEach(function(t){vari=e.Pipeline.registeredFunctions[t];if(!i)thrownewError("Cannot load unregistered function: "+t);r.add(i)}),r},e.Pipeline.prototype.add=function(){vart=Array.prototype.slice.call(arguments);t.forEach(function(t){e.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)},this)},e.Pipeline.prototype.after=function(t,r){e.Pipeline.warnIfFunctionNotRegistered(r);vari=this._stack.indexOf(t);if(i==-1)thrownewError("Cannot find existingFn");i+=1,this._stack.splice(i,0,r)},e.Pipeline.prototype.before=function(t,r){e.Pipeline.warnIfFunctionNotRegistered(r);vari=this._st