!function(){vart,l,c,e,r,h,d,f,p,y,m,g,x,v,w,Q,k,S,E,L,b,P,T,O,I,i,n,s,z=function(e){vart=newz.Builder;returnt.pipeline.add(z.trimmer,z.stopWordFilter,z.stemmer),t.searchPipeline.add(z.stemmer),e.call(t,t),t.build()};z.version="2.3.5",z.utils={},z.utils.warn=(t=this,function(e){t.console&&console.warn&&console.warn(e)}),z.utils.asString=function(e){returnnull==e?"":e.toString()},z.utils.clone=function(e){if(null==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},z.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},z.FieldRef.joiner="/",z.FieldRef.fromString=function(e){vart=e.indexOf(z.FieldRef.joiner);if(-1===t)throw"malformed field ref string";varr=e.slice(0,t),i=e.slice(t+1);returnnewz.FieldRef(i,r,e)},z.FieldRef.prototype.toString=function(){returnnull==this._stringValue&&(this._stringValue=this.fieldName+z.FieldRef.joiner+this.docRef),this._stringValue},z.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},z.Set.complete={intersect:function(e){returne},union:function(e){returne},contains:function(){return!0}},z.Set.empty={intersect:function(){returnthis},union:function(e){returne},contains:function(){return!1}},z.Set.prototype.contains=function(e){return!!this.elements[e]},z.Set.prototype.intersect=function(e){vart,r,i,n=[];if(e===z.Set.complete)returnthis;if(e===z.Set.empty)returne;r=this.length<e.length?(t=this,e):(t=e,this),i=Object.keys(t.elements);for(vars=0;s<i.length;s++){varo=i[s];oinr.elements&&n.push(o)}returnnewz.Set(n)},z.Set.prototype.union=function(e){returne===z.Set.complete?z.Set.complete:e===z.Set.empty?this:newz.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},z.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))},z.Token=function(e,t){this.str=e||"",this.metadata=t||{}},z.Token.prototype.toString=function(){returnthis.str},z.Token.prototype.update=function(e){returnthis.str=e(this.str,this.metadata),this},z.Token.prototype.clone=function(e){returne=e||function(e){returne},newz.Token(e(this.str,this.metadata),this.metadata)},z.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))returne.map(function(e){returnnewz.Token(z.utils.asString(e).toLowerCase(),z.utils.clone(t))});for(varr=e.toString().trim().toLowerCase(),i=r.length,n=[],s=0,o=0;s<=i;s++){vara=s-o;if(r.charAt(s).match(z.tokenizer.separator)||s==i){if(0<a){varu=z.utils.clone(t)||{};u.position=[o,a],u.index=n.length,n.push(newz.Token(r.slice(o,s),u))}o=s+1}}returnn},z.tokenizer.separator=/[\s\-]+/,z.Pipeline=function(){this._stack=[]},z.Pipeline.registeredFunctions=Object.create(null),z.Pipeline.registerFunction=function(e,t){tinthis.registeredFunctions&&z.utils.warn("Overwriting existing registered function: "+t),e.label=t,z.Pipeline.registeredFunctions[e.label]=e},z.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.labelinthis.registeredFunctions||z.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},z.Pipeline.load=function(e){varr=newz.Pipeline;returne.forEach(function(e){vart=z.Pipeline.registeredFunctions[e];if(!t)thrownewError("Cannot load unregistered function: "+e);r.add(t)}),r},z.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){z.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},z.Pipeline.prototype.after=function(e,t){z.Pipeline.warnIfFunctionNotRegistered(t);varr=this._stack.indexOf(e);if(-1==r)thrownewError("Cannot find existingFn");r+=1,this._stack.splice(r,0,t)},z.Pipeline.prototype.before=function(e,t){z.Pipeline.warnIfFunctionNotRegistered(t);varr=this._stack.inde