sassdoc-theme-herman
Version:
An Odd SassDoc theme.
2 lines • 87.1 kB
JavaScript
/*! For license information please see search.min.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([[187],{19:function(){(window.nunjucksPrecompiled=window.nunjucksPrecompiled||{})["search_results.njk"]={root:function(e,t,r,n,i){var o="";try{o+='<h1 class="search-heading">\n <span class="search-term">',o+=n.suppressValue(n.contextOrFrameLookup(t,r,"term"),e.opts.autoescape),o+="</span>:\n ",o+=n.suppressValue(n.contextOrFrameLookup(t,r,"count")||"No",e.opts.autoescape),o+=" ",o+=n.suppressValue(1==n.contextOrFrameLookup(t,r,"count")?"result":"results",e.opts.autoescape),o+="\n</h1>\n\n",n.contextOrFrameLookup(t,r,"count")&&(o+='\n <ul class="js-search-results search-results"></ul>\n'),i(null,o+="\n")}catch(e){i(n.handleError(e,0,0))}}}},1998:function(e,t,r){var n,i;!function(){var o,s,a,u,c,l,f,h,p,d,v,y,g,m,x,w,b,k,E,S,O,L,T,j,P,I,R,_,N,Q,F=function(e){var t=new F.Builder;return t.pipeline.add(F.trimmer,F.stopWordFilter,F.stemmer),t.searchPipeline.add(F.stemmer),e.call(t,t),t.build()};F.version="2.3.9",F.utils={},F.utils.warn=(o=this,function(e){o.console&&console.warn&&console.warn(e)}),F.utils.asString=function(e){return null==e?"":e.toString()},F.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),n=0;n<r.length;n++){var i=r[n],o=e[i];if(Array.isArray(o))t[i]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[i]=o}}return t},F.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},F.FieldRef.joiner="/",F.FieldRef.fromString=function(e){var t=e.indexOf(F.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var r=e.slice(0,t),n=e.slice(t+1);return new F.FieldRef(n,r,e)},F.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+F.FieldRef.joiner+this.docRef),this._stringValue},F.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},F.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},F.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},F.Set.prototype.contains=function(e){return!!this.elements[e]},F.Set.prototype.intersect=function(e){var t,r,n,i=[];if(e===F.Set.complete)return this;if(e===F.Set.empty)return e;this.length<e.length?(t=this,r=e):(t=e,r=this),n=Object.keys(t.elements);for(var o=0;o<n.length;o++){var s=n[o];s in r.elements&&i.push(s)}return new F.Set(i)},F.Set.prototype.union=function(e){return e===F.Set.complete?F.Set.complete:e===F.Set.empty?this:new F.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},F.idf=function(e,t){var r=0;for(var n in e)"_index"!=n&&(r+=Object.keys(e[n]).length);var i=(t-r+.5)/(r+.5);return Math.log(1+Math.abs(i))},F.Token=function(e,t){this.str=e||"",this.metadata=t||{}},F.Token.prototype.toString=function(){return this.str},F.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},F.Token.prototype.clone=function(e){return e=e||function(e){return e},new F.Token(e(this.str,this.metadata),this.metadata)},F.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map(function(e){return new F.Token(F.utils.asString(e).toLowerCase(),F.utils.clone(t))});for(var r=e.toString().toLowerCase(),n=r.length,i=[],o=0,s=0;o<=n;o++){var a=o-s;if(r.charAt(o).match(F.tokenizer.separator)||o==n){if(a>0){var u=F.utils.clone(t)||{};u.position=[s,a],u.index=i.length,i.push(new F.Token(r.slice(s,o),u))}s=o+1}}return i},F.tokenizer.separator=/[\s\-]+/,F.Pipeline=function(){this._stack=[]},F.Pipeline.registeredFunctions=Object.create(null),F.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&F.utils.warn("Overwriting existing registered function: "+t),e.label=t,F.Pipeline.registeredFunctions[e.label]=e},F.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||F.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},F.Pipeline.load=function(e){var t=new F.Pipeline;return e.forEach(function(e){var r=F.Pipeline.registeredFunctions[e];if(!r)throw new Error("Cannot load unregistered function: "+e);t.add(r)}),t},F.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){F.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},F.Pipeline.prototype.after=function(e,t){F.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");r+=1,this._stack.splice(r,0,t)},F.Pipeline.prototype.before=function(e,t){F.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");this._stack.splice(r,0,t)},F.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},F.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r<t;r++){for(var n=this._stack[r],i=[],o=0;o<e.length;o++){var s=n(e[o],o,e);if(null!=s&&""!==s)if(Array.isArray(s))for(var a=0;a<s.length;a++)i.push(s[a]);else i.push(s)}e=i}return e},F.Pipeline.prototype.runString=function(e,t){var r=new F.Token(e,t);return this.run([r]).map(function(e){return e.toString()})},F.Pipeline.prototype.reset=function(){this._stack=[]},F.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return F.Pipeline.warnIfFunctionNotRegistered(e),e.label})},F.Vector=function(e){this._magnitude=0,this.elements=e||[]},F.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,r=this.elements.length/2,n=r-t,i=Math.floor(n/2),o=this.elements[2*i];n>1&&(o<e&&(t=i),o>e&&(r=i),o!=e);)n=r-t,i=t+Math.floor(n/2),o=this.elements[2*i];return o==e||o>e?2*i:o<e?2*(i+1):void 0},F.Vector.prototype.insert=function(e,t){this.upsert(e,t,function(){throw"duplicate index"})},F.Vector.prototype.upsert=function(e,t,r){this._magnitude=0;var n=this.positionForIndex(e);this.elements[n]==e?this.elements[n+1]=r(this.elements[n+1],t):this.elements.splice(n,0,e,t)},F.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,r=1;r<t;r+=2){var n=this.elements[r];e+=n*n}return this._magnitude=Math.sqrt(e)},F.Vector.prototype.dot=function(e){for(var t=0,r=this.elements,n=e.elements,i=r.length,o=n.length,s=0,a=0,u=0,c=0;u<i&&c<o;)(s=r[u])<(a=n[c])?u+=2:s>a?c+=2:s==a&&(t+=r[u+1]*n[c+1],u+=2,c+=2);return t},F.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},F.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,r=0;t<this.elements.length;t+=2,r++)e[r]=this.elements[t];return e},F.Vector.prototype.toJSON=function(){return this.elements},F.stemmer=(s={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},a={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},f="^("+(c="[^aeiou][^aeiouy]*")+")?"+(l=(u="[aeiouy]")+"[aeiou]*")+c+"("+l+")?$",h="^("+c+")?"+l+c+l+c,p="^("+c+")?"+u,d=new RegExp("^("+c+")?"+l+c),v=new RegExp(h),y=new RegExp(f),g=new RegExp(p),m=/^(.+?)(ss|i)es$/,x=/^(.+?)([^s])s$/,w=/^(.+?)eed$/,b=/^(.+?)(ed|ing)$/,k=/.$/,E=/(at|bl|iz)$/,S=new RegExp("([^aeiouylsz])\\1$"),O=new RegExp("^"+c+u+"[^aeiouwxy]$"),L=/^(.+?[^aeiou])y$/,T=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,j=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,P=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,I=/^(.+?)(s|t)(ion)$/,R=/^(.+?)e$/,_=/ll$/,N=new RegExp("^"+c+u+"[^aeiouwxy]$"),Q=function(e){var t,r,n,i,o,u,c;if(e.length<3)return e;if("y"==(n=e.substr(0,1))&&(e=n.toUpperCase()+e.substr(1)),o=x,(i=m).test(e)?e=e.replace(i,"$1$2"):o.test(e)&&(e=e.replace(o,"$1$2")),o=b,(i=w).test(e)){var l=i.exec(e);(i=d).test(l[1])&&(i=k,e=e.replace(i,""))}else o.test(e)&&(t=(l=o.exec(e))[1],(o=g).test(t)&&(u=S,c=O,(o=E).test(e=t)?e+="e":u.test(e)?(i=k,e=e.replace(i,"")):c.test(e)&&(e+="e")));return(i=L).test(e)&&(e=(t=(l=i.exec(e))[1])+"i"),(i=T).test(e)&&(t=(l=i.exec(e))[1],r=l[2],(i=d).test(t)&&(e=t+s[r])),(i=j).test(e)&&(t=(l=i.exec(e))[1],r=l[2],(i=d).test(t)&&(e=t+a[r])),o=I,(i=P).test(e)?(t=(l=i.exec(e))[1],(i=v).test(t)&&(e=t)):o.test(e)&&(t=(l=o.exec(e))[1]+l[2],(o=v).test(t)&&(e=t)),(i=R).test(e)&&(t=(l=i.exec(e))[1],o=y,u=N,((i=v).test(t)||o.test(t)&&!u.test(t))&&(e=t)),o=v,(i=_).test(e)&&o.test(e)&&(i=k,e=e.replace(i,"")),"y"==n&&(e=n.toLowerCase()+e.substr(1)),e},function(e){return e.update(Q)}),F.Pipeline.registerFunction(F.stemmer,"stemmer"),F.generateStopWordFilter=function(e){var t=e.reduce(function(e,t){return e[t]=t,e},{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},F.stopWordFilter=F.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),F.Pipeline.registerFunction(F.stopWordFilter,"stopWordFilter"),F.trimmer=function(e){return e.update(function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")})},F.Pipeline.registerFunction(F.trimmer,"trimmer"),F.TokenSet=function(){this.final=!1,this.edges={},this.id=F.TokenSet._nextId,F.TokenSet._nextId+=1},F.TokenSet._nextId=1,F.TokenSet.fromArray=function(e){for(var t=new F.TokenSet.Builder,r=0,n=e.length;r<n;r++)t.insert(e[r]);return t.finish(),t.root},F.TokenSet.fromClause=function(e){return"editDistance"in e?F.TokenSet.fromFuzzyString(e.term,e.editDistance):F.TokenSet.fromString(e.term)},F.TokenSet.fromFuzzyString=function(e,t){for(var r=new F.TokenSet,n=[{node:r,editsRemaining:t,str:e}];n.length;){var i=n.pop();if(i.str.length>0){var o,s=i.str.charAt(0);s in i.node.edges?o=i.node.edges[s]:(o=new F.TokenSet,i.node.edges[s]=o),1==i.str.length&&(o.final=!0),n.push({node:o,editsRemaining:i.editsRemaining,str:i.str.slice(1)})}if(0!=i.editsRemaining){if("*"in i.node.edges)var a=i.node.edges["*"];else a=new F.TokenSet,i.node.edges["*"]=a;if(0==i.str.length&&(a.final=!0),n.push({node:a,editsRemaining:i.editsRemaining-1,str:i.str}),i.str.length>1&&n.push({node:i.node,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)}),1==i.str.length&&(i.node.final=!0),i.str.length>=1){if("*"in i.node.edges)var u=i.node.edges["*"];else u=new F.TokenSet,i.node.edges["*"]=u;1==i.str.length&&(u.final=!0),n.push({node:u,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var c,l=i.str.charAt(0),f=i.str.charAt(1);f in i.node.edges?c=i.node.edges[f]:(c=new F.TokenSet,i.node.edges[f]=c),1==i.str.length&&(c.final=!0),n.push({node:c,editsRemaining:i.editsRemaining-1,str:l+i.str.slice(2)})}}}return r},F.TokenSet.fromString=function(e){for(var t=new F.TokenSet,r=t,n=0,i=e.length;n<i;n++){var o=e[n],s=n==i-1;if("*"==o)t.edges[o]=t,t.final=s;else{var a=new F.TokenSet;a.final=s,t.edges[o]=a,t=a}}return r},F.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var r=t.pop(),n=Object.keys(r.node.edges),i=n.length;r.node.final&&(r.prefix.charAt(0),e.push(r.prefix));for(var o=0;o<i;o++){var s=n[o];t.push({prefix:r.prefix.concat(s),node:r.node.edges[s]})}}return e},F.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),r=t.length,n=0;n<r;n++){var i=t[n];e=e+i+this.edges[i].id}return e},F.TokenSet.prototype.intersect=function(e){for(var t=new F.TokenSet,r=void 0,n=[{qNode:e,output:t,node:this}];n.length;){r=n.pop();for(var i=Object.keys(r.qNode.edges),o=i.length,s=Object.keys(r.node.edges),a=s.length,u=0;u<o;u++)for(var c=i[u],l=0;l<a;l++){var f=s[l];if(f==c||"*"==c){var h=r.node.edges[f],p=r.qNode.edges[c],d=h.final&&p.final,v=void 0;f in r.output.edges?(v=r.output.edges[f]).final=v.final||d:((v=new F.TokenSet).final=d,r.output.edges[f]=v),n.push({qNode:p,output:v,node:h})}}}return t},F.TokenSet.Builder=function(){this.previousWord="",this.root=new F.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},F.TokenSet.Builder.prototype.insert=function(e){var t,r=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var n=0;n<e.length&&n<this.previousWord.length&&e[n]==this.previousWord[n];n++)r++;for(this.minimize(r),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,n=r;n<e.length;n++){var i=new F.TokenSet,o=e[n];t.edges[o]=i,this.uncheckedNodes.push({parent:t,char:o,child:i}),t=i}t.final=!0,this.previousWord=e},F.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},F.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var r=this.uncheckedNodes[t],n=r.child.toString();n in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[n]:(r.child._str=n,this.minimizedNodes[n]=r.child),this.uncheckedNodes.pop()}},F.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},F.Index.prototype.search=function(e){return this.query(function(t){new F.QueryParser(e,t).parse()})},F.Index.prototype.query=function(e){for(var t=new F.Query(this.fields),r=Object.create(null),n=Object.create(null),i=Object.create(null),o=Object.create(null),s=Object.create(null),a=0;a<this.fields.length;a++)n[this.fields[a]]=new F.Vector;for(e.call(t,t),a=0;a<t.clauses.length;a++){var u,c=t.clauses[a],l=F.Set.empty;u=c.usePipeline?this.pipeline.runString(c.term,{fields:c.fields}):[c.term];for(var f=0;f<u.length;f++){var h=u[f];c.term=h;var p=F.TokenSet.fromClause(c),d=this.tokenSet.intersect(p).toArray();if(0===d.length&&c.presence===F.Query.presence.REQUIRED){for(var v=0;v<c.fields.length;v++)o[R=c.fields[v]]=F.Set.empty;break}for(var y=0;y<d.length;y++){var g=d[y],m=this.invertedIndex[g],x=m._index;for(v=0;v<c.fields.length;v++){var w=m[R=c.fields[v]],b=Object.keys(w),k=g+"/"+R,E=new F.Set(b);if(c.presence==F.Query.presence.REQUIRED&&(l=l.union(E),void 0===o[R]&&(o[R]=F.Set.complete)),c.presence!=F.Query.presence.PROHIBITED){if(n[R].upsert(x,c.boost,function(e,t){return e+t}),!i[k]){for(var S=0;S<b.length;S++){var O,L=b[S],T=new F.FieldRef(L,R),j=w[L];void 0===(O=r[T])?r[T]=new F.MatchData(g,R,j):O.add(g,R,j)}i[k]=!0}}else void 0===s[R]&&(s[R]=F.Set.empty),s[R]=s[R].union(E)}}}if(c.presence===F.Query.presence.REQUIRED)for(v=0;v<c.fields.length;v++)o[R=c.fields[v]]=o[R].intersect(l)}var P=F.Set.complete,I=F.Set.empty;for(a=0;a<this.fields.length;a++){var R;o[R=this.fields[a]]&&(P=P.intersect(o[R])),s[R]&&(I=I.union(s[R]))}var _=Object.keys(r),N=[],Q=Object.create(null);if(t.isNegated())for(_=Object.keys(this.fieldVectors),a=0;a<_.length;a++){T=_[a];var C=F.FieldRef.fromString(T);r[T]=new F.MatchData}for(a=0;a<_.length;a++){var A=(C=F.FieldRef.fromString(_[a])).docRef;if(P.contains(A)&&!I.contains(A)){var M,D=this.fieldVectors[C],B=n[C.fieldName].similarity(D);if(void 0!==(M=Q[A]))M.score+=B,M.matchData.combine(r[C]);else{var V={ref:A,score:B,matchData:r[C]};Q[A]=V,N.push(V)}}}return N.sort(function(e,t){return t.score-e.score})},F.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map(function(e){return[e,this.invertedIndex[e]]},this),t=Object.keys(this.fieldVectors).map(function(e){return[e,this.fieldVectors[e].toJSON()]},this);return{version:F.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},F.Index.load=function(e){var t={},r={},n=e.fieldVectors,i=Object.create(null),o=e.invertedIndex,s=new F.TokenSet.Builder,a=F.Pipeline.load(e.pipeline);e.version!=F.version&&F.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+F.version+"' does not match serialized index '"+e.version+"'");for(var u=0;u<n.length;u++){var c=(f=n[u])[0],l=f[1];r[c]=new F.Vector(l)}for(u=0;u<o.length;u++){var f,h=(f=o[u])[0],p=f[1];s.insert(h),i[h]=p}return s.finish(),t.fields=e.fields,t.fieldVectors=r,t.invertedIndex=i,t.tokenSet=s.root,t.pipeline=a,new F.Index(t)},F.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=F.tokenizer,this.pipeline=new F.Pipeline,this.searchPipeline=new F.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},F.Builder.prototype.ref=function(e){this._ref=e},F.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},F.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},F.Builder.prototype.k1=function(e){this._k1=e},F.Builder.prototype.add=function(e,t){var r=e[this._ref],n=Object.keys(this._fields);this._documents[r]=t||{},this.documentCount+=1;for(var i=0;i<n.length;i++){var o=n[i],s=this._fields[o].extractor,a=s?s(e):e[o],u=this.tokenizer(a,{fields:[o]}),c=this.pipeline.run(u),l=new F.FieldRef(r,o),f=Object.create(null);this.fieldTermFrequencies[l]=f,this.fieldLengths[l]=0,this.fieldLengths[l]+=c.length;for(var h=0;h<c.length;h++){var p=c[h];if(null==f[p]&&(f[p]=0),f[p]+=1,null==this.invertedIndex[p]){var d=Object.create(null);d._index=this.termIndex,this.termIndex+=1;for(var v=0;v<n.length;v++)d[n[v]]=Object.create(null);this.invertedIndex[p]=d}null==this.invertedIndex[p][o][r]&&(this.invertedIndex[p][o][r]=Object.create(null));for(var y=0;y<this.metadataWhitelist.length;y++){var g=this.metadataWhitelist[y],m=p.metadata[g];null==this.invertedIndex[p][o][r][g]&&(this.invertedIndex[p][o][r][g]=[]),this.invertedIndex[p][o][r][g].push(m)}}}},F.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,r={},n={},i=0;i<t;i++){var o=F.FieldRef.fromString(e[i]),s=o.fieldName;n[s]||(n[s]=0),n[s]+=1,r[s]||(r[s]=0),r[s]+=this.fieldLengths[o]}var a=Object.keys(this._fields);for(i=0;i<a.length;i++){var u=a[i];r[u]=r[u]/n[u]}this.averageFieldLength=r},F.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),r=t.length,n=Object.create(null),i=0;i<r;i++){for(var o=F.FieldRef.fromString(t[i]),s=o.fieldName,a=this.fieldLengths[o],u=new F.Vector,c=this.fieldTermFrequencies[o],l=Object.keys(c),f=l.length,h=this._fields[s].boost||1,p=this._documents[o.docRef].boost||1,d=0;d<f;d++){var v,y,g,m=l[d],x=c[m],w=this.invertedIndex[m]._index;void 0===n[m]?(v=F.idf(this.invertedIndex[m],this.documentCount),n[m]=v):v=n[m],y=v*((this._k1+1)*x)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[s]))+x),y*=h,y*=p,g=Math.round(1e3*y)/1e3,u.insert(w,g)}e[o]=u}this.fieldVectors=e},F.Builder.prototype.createTokenSet=function(){this.tokenSet=F.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},F.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new F.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},F.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},F.MatchData=function(e,t,r){for(var n=Object.create(null),i=Object.keys(r||{}),o=0;o<i.length;o++){var s=i[o];n[s]=r[s].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=n)},F.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),r=0;r<t.length;r++){var n=t[r],i=Object.keys(e.metadata[n]);null==this.metadata[n]&&(this.metadata[n]=Object.create(null));for(var o=0;o<i.length;o++){var s=i[o],a=Object.keys(e.metadata[n][s]);null==this.metadata[n][s]&&(this.metadata[n][s]=Object.create(null));for(var u=0;u<a.length;u++){var c=a[u];null==this.metadata[n][s][c]?this.metadata[n][s][c]=e.metadata[n][s][c]:this.metadata[n][s][c]=this.metadata[n][s][c].concat(e.metadata[n][s][c])}}}},F.MatchData.prototype.add=function(e,t,r){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=r);if(t in this.metadata[e])for(var n=Object.keys(r),i=0;i<n.length;i++){var o=n[i];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(r[o]):this.metadata[e][t][o]=r[o]}else this.metadata[e][t]=r},F.Query=function(e){this.clauses=[],this.allFields=e},F.Query.wildcard=new String("*"),F.Query.wildcard.NONE=0,F.Query.wildcard.LEADING=1,F.Query.wildcard.TRAILING=2,F.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},F.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=F.Query.wildcard.NONE),e.wildcard&F.Query.wildcard.LEADING&&e.term.charAt(0)!=F.Query.wildcard&&(e.term="*"+e.term),e.wildcard&F.Query.wildcard.TRAILING&&e.term.slice(-1)!=F.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=F.Query.presence.OPTIONAL),this.clauses.push(e),this},F.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=F.Query.presence.PROHIBITED)return!1;return!0},F.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach(function(e){this.term(e,F.utils.clone(t))},this),this;var r=t||{};return r.term=e.toString(),this.clause(r),this},F.QueryParseError=function(e,t,r){this.name="QueryParseError",this.message=e,this.start=t,this.end=r},F.QueryParseError.prototype=new Error,F.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},F.QueryLexer.prototype.run=function(){for(var e=F.QueryLexer.lexText;e;)e=e(this)},F.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,r=this.pos,n=0;n<this.escapeCharPositions.length;n++)r=this.escapeCharPositions[n],e.push(this.str.slice(t,r)),t=r+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},F.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},F.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},F.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return F.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},F.QueryLexer.prototype.width=function(){return this.pos-this.start},F.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},F.QueryLexer.prototype.backup=function(){this.pos-=1},F.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=F.QueryLexer.EOS&&this.backup()},F.QueryLexer.prototype.more=function(){return this.pos<this.length},F.QueryLexer.EOS="EOS",F.QueryLexer.FIELD="FIELD",F.QueryLexer.TERM="TERM",F.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",F.QueryLexer.BOOST="BOOST",F.QueryLexer.PRESENCE="PRESENCE",F.QueryLexer.lexField=function(e){return e.backup(),e.emit(F.QueryLexer.FIELD),e.ignore(),F.QueryLexer.lexText},F.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(F.QueryLexer.TERM)),e.ignore(),e.more())return F.QueryLexer.lexText},F.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(F.QueryLexer.EDIT_DISTANCE),F.QueryLexer.lexText},F.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(F.QueryLexer.BOOST),F.QueryLexer.lexText},F.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(F.QueryLexer.TERM)},F.QueryLexer.termSeparator=F.tokenizer.separator,F.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==F.QueryLexer.EOS)return F.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return F.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(F.QueryLexer.TERM),F.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(F.QueryLexer.TERM),F.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(F.QueryLexer.PRESENCE),F.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(F.QueryLexer.PRESENCE),F.QueryLexer.lexText;if(t.match(F.QueryLexer.termSeparator))return F.QueryLexer.lexTerm}else e.escapeCharacter()}},F.QueryParser=function(e,t){this.lexer=new F.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},F.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=F.QueryParser.parseClause;e;)e=e(this);return this.query},F.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},F.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},F.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},F.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case F.QueryLexer.PRESENCE:return F.QueryParser.parsePresence;case F.QueryLexer.FIELD:return F.QueryParser.parseField;case F.QueryLexer.TERM:return F.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(r+=" with value '"+t.str+"'"),new F.QueryParseError(r,t.start,t.end)}},F.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=F.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=F.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+t.str+"'";throw new F.QueryParseError(r,t.start,t.end)}var n=e.peekLexeme();if(null==n)throw r="expecting term or field, found nothing",new F.QueryParseError(r,t.start,t.end);switch(n.type){case F.QueryLexer.FIELD:return F.QueryParser.parseField;case F.QueryLexer.TERM:return F.QueryParser.parseTerm;default:throw r="expecting term or field, found '"+n.type+"'",new F.QueryParseError(r,n.start,n.end)}}},F.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var r=e.query.allFields.map(function(e){return"'"+e+"'"}).join(", "),n="unrecognised field '"+t.str+"', possible fields: "+r;throw new F.QueryParseError(n,t.start,t.end)}e.currentClause.fields=[t.str];var i=e.peekLexeme();if(null==i)throw n="expecting term, found nothing",new F.QueryParseError(n,t.start,t.end);if(i.type===F.QueryLexer.TERM)return F.QueryParser.parseTerm;throw n="expecting term, found '"+i.type+"'",new F.QueryParseError(n,i.start,i.end)}},F.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(null!=r)switch(r.type){case F.QueryLexer.TERM:return e.nextClause(),F.QueryParser.parseTerm;case F.QueryLexer.FIELD:return e.nextClause(),F.QueryParser.parseField;case F.QueryLexer.EDIT_DISTANCE:return F.QueryParser.parseEditDistance;case F.QueryLexer.BOOST:return F.QueryParser.parseBoost;case F.QueryLexer.PRESENCE:return e.nextClause(),F.QueryParser.parsePresence;default:var n="Unexpected lexeme type '"+r.type+"'";throw new F.QueryParseError(n,r.start,r.end)}else e.nextClause()}},F.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="edit distance must be numeric";throw new F.QueryParseError(n,t.start,t.end)}e.currentClause.editDistance=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case F.QueryLexer.TERM:return e.nextClause(),F.QueryParser.parseTerm;case F.QueryLexer.FIELD:return e.nextClause(),F.QueryParser.parseField;case F.QueryLexer.EDIT_DISTANCE:return F.QueryParser.parseEditDistance;case F.QueryLexer.BOOST:return F.QueryParser.parseBoost;case F.QueryLexer.PRESENCE:return e.nextClause(),F.QueryParser.parsePresence;default:throw n="Unexpected lexeme type '"+i.type+"'",new F.QueryParseError(n,i.start,i.end)}else e.nextClause()}},F.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="boost must be numeric";throw new F.QueryParseError(n,t.start,t.end)}e.currentClause.boost=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case F.QueryLexer.TERM:return e.nextClause(),F.QueryParser.parseTerm;case F.QueryLexer.FIELD:return e.nextClause(),F.QueryParser.parseField;case F.QueryLexer.EDIT_DISTANCE:return F.QueryParser.parseEditDistance;case F.QueryLexer.BOOST:return F.QueryParser.parseBoost;case F.QueryLexer.PRESENCE:return e.nextClause(),F.QueryParser.parsePresence;default:throw n="Unexpected lexeme type '"+i.type+"'",new F.QueryParseError(n,i.start,i.end)}else e.nextClause()}},void 0===(i="function"==typeof(n=function(){return F})?n.call(t,r,t,e):n)||(e.exports=i)}()},4429:function(e,t,r){"use strict";var n=r(6478),i=r.n(n),o=r(1998),s=r.n(o),a=r(6152),u=r.n(a),c=r(9857),l=r.n(c),f=r(6556);r(9594),r(19),l().installJinjaCompat();const h=l().Loader.extend({getSource:e=>({src:{type:"code",obj:window.nunjucksPrecompiled[e]},path:e})}),p=new(l().Environment)(new h);let d;const v=()=>d,y=e=>{const t={title:[],contents:[]};return Object.keys(e).forEach(r=>{Object.keys(e[r]).forEach(n=>{const i=e[r][n].position.map(e=>({start:e[0],length:e[1]}));t[n]=t[n].concat(i)})}),t},g=(e,t)=>{if(t.title.length){const r=e.find('[data-result-field="title"]').get(0);new(u())(r).markRanges(t.title)}if(t.contents.length){const r=e.find('[data-result-field="contents"]').get(0);t.contents.sort((e,t)=>e.start-t.start),new(u())(r).markRanges(t.contents.slice(0,5),{done:()=>{r.childNodes.forEach(e=>{const t=null!==e.previousSibling,r=null!==e.nextSibling;if("#text"===e.nodeName){const n=e.nodeValue.split(" ");t&&r?n.length>30&&n.splice(15,n.length-30,"…"):r?n.length>15&&n.splice(0,n.length-15,"…"):t&&n.length>15&&n.splice(15,n.length-15,"…"),e.nodeValue=n.join(" ")}})}})}},m=(e,t)=>{e&&e.store&&e.idx&&t&&((e=>{d=e})(e&&e.store),((e,t)=>{let r=f();if(e&&e.length)for(const t of e){const e=v()[t.ref],n=y(t.matchData.metadata);if(n.title.length||n.contents.length){const i={url:t.ref,title:e.title,contents:n.contents.length?e.contents:""},o=f(p.render("search_result.njk",i));g(o,n),r=r.add(o)}}const n=f(p.render("search_results.njk",{term:t,count:r.length}));n.filter(".js-search-results").html(r),f("[data-page]").html(n)})(s().Index.load(e.idx).search(t),t))};window.getSearchData=()=>{const e=i()(window.location.search.substring(1));if(e&&e.q){const t=new XMLHttpRequest;t.open("GET","search-data.json",!0),t.onload=function(){let t;if(this.status>=200&&this.status<400)try{t=JSON.parse(this.responseText)}catch(e){}m(t,e.q)},t.onerror=function(){m(void 0,e.q)},t.send()}}},6152:function(e){e.exports=function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(){function e(r){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;t(this,e),this.ctx=r,this.iframes=n,this.exclude=i,this.iframesTimeout=o}return r(e,[{key:"getContexts",value:function(){var e=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(function(t){var r=e.filter(function(e){return e.contains(t)}).length>0;-1!==e.indexOf(t)||r||e.push(t)}),e}},{key:"getIframeContents",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=void 0;try{var i=e.contentWindow;if(n=i.document,!i||!n)throw new Error("iframe inaccessible")}catch(e){r()}n&&t(n)}},{key:"isIframeBlank",value:function(e){var t="about:blank",r=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&r!==t&&r}},{key:"observeIframeLoad",value:function(e,t,r){var n=this,i=!1,o=null,s=function s(){if(!i){i=!0,clearTimeout(o);try{n.isIframeBlank(e)||(e.removeEventListener("load",s),n.getIframeContents(e,t,r))}catch(e){r()}}};e.addEventListener("load",s),o=setTimeout(s,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,t,r){try{"complete"===e.contentWindow.document.readyState?this.isIframeBlank(e)?this.observeIframeLoad(e,t,r):this.getIframeContents(e,t,r):this.observeIframeLoad(e,t,r)}catch(e){r()}}},{key:"waitForIframes",value:function(e,t){var r=this,n=0;this.forEachIframe(e,function(){return!0},function(e){n++,r.waitForIframes(e.querySelector("html"),function(){--n||t()})},function(e){e||t()})}},{key:"forEachIframe",value:function(t,r,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},s=t.querySelectorAll("iframe"),a=s.length,u=0;s=Array.prototype.slice.call(s);var c=function(){--a<=0&&o(u)};a||c(),s.forEach(function(t){e.matches(t,i.exclude)?c():i.onIframeReady(t,function(e){r(t)&&(u++,n(e)),c()},c)})}},{key:"createIterator",value:function(e,t,r){return document.createNodeIterator(e,t,r,!1)}},{key:"createInstanceOnIframe",value:function(t){return new e(t.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,t,r){if(e.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING){if(null===t)return!0;if(t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}},{key:"getIteratorNode",value:function(e){var t=e.previousNode();return{prevNode:t,node:(null===t||e.nextNode())&&e.nextNode()}}},{key:"checkIframeFilter",value:function(e,t,r,n){var i=!1,o=!1;return n.forEach(function(e,t){e.val===r&&(i=t,o=e.handled)}),this.compareNodeIframe(e,t,r)?(!1!==i||o?!1===i||o||(n[i].handled=!0):n.push({val:r,handled:!0}),!0):(!1===i&&n.push({val:r,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,t,r,n){var i=this;e.forEach(function(e){e.handled||i.getIframeContents(e.val,function(e){i.createInstanceOnIframe(e).forEachNode(t,r,n)})})}},{key:"iterateThroughNodes",value:function(e,t,r,n,i){for(var o=this,s=this.createIterator(t,e,n),a=[],u=[],c=void 0,l=void 0,f=function(){var e=o.getIteratorNode(s);return l=e.prevNode,c=e.node};f();)this.iframes&&this.forEachIframe(t,function(e){return o.checkIframeFilter(c,l,e,a)},function(t){o.createInstanceOnIframe(t).forEachNode(e,function(e){return u.push(e)},n)}),u.push(c);u.forEach(function(e){r(e)}),this.iframes&&this.handleOpenIframes(a,e,r,n),i()}},{key:"forEachNode",value:function(e,t,r){var n=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},o=this.getContexts(),s=o.length;s||i(),o.forEach(function(o){var a=function(){n.iterateThroughNodes(e,o,t,r,function(){--s<=0&&i()})};n.iframes?n.waitForIframes(o,a):a()})}}],[{key:"matches",value:function(e,t){var r="string"==typeof t?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){var i=!1;return r.every(function(t){return!n.call(e,t)||(i=!0,!1)}),i}return!1}}]),e}(),o=function(){function o(e){t(this,o),this.ctx=e,this.ie=!1;var r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.indexOf("Trident")>-1)&&(this.ie=!0)}return r(o,[{key:"log",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",n=this.opt.log;this.opt.debug&&"object"===(void 0===n?"undefined":e(n))&&"function"==typeof n[r]&&n[r]("mark.js: "+t)}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(e){return"disabled"!==this.opt.wildcards&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),"disabled"!==this.opt.wildcards&&(e=this.createWildcardsRegExp(e)),this.createAccuracyRegExp(e)}},{key:"createSynonymsRegExp",value:function(e){var t=this.opt.synonyms,r=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(i):this.escapeStr(i),a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(o):this.escapeStr(o);""!==s&&""!==a&&(e=e.replace(new RegExp("("+this.escapeStr(s)+"|"+this.escapeStr(a)+")","gm"+r),n+"("+this.processSynomyms(s)+"|"+this.processSynomyms(a)+")"+n))}return e}},{key:"processSynomyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return(e=e.replace(/(?:\\)*\?/g,function(e){return"\\"===e.charAt(0)?"?":""})).replace(/(?:\\)*\*/g,function(e){return"\\"===e.charAt(0)?"*":""})}},{key:"createWildcardsRegExp",value:function(e){var t="withSpaces"===this.opt.wildcards;return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,function(e,t,r){var n=r.charAt(t+1);return/[(|)\\]/.test(n)||""===n?e:e+"\0"})}},{key:"createJoinersRegExp",value:function(e){var t=[],r=this.opt.ignorePunctuation;return Array.isArray(r)&&r.length&&t.push(this.escapeStr(r.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join("["+t.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var t=this.opt.caseSensitive?"":"i",r=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],n=[];return e.split("").forEach(function(i){r.every(function(r){if(-1!==r.indexOf(i)){if(n.indexOf(r)>-1)return!1;e=e.replace(new RegExp("["+r+"]","gm"+t),"["+r+"]"),n.push(r)}return!0})}),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var t=this,r=this.opt.accuracy,n="string"==typeof r?r:r.value,i="string"==typeof r?[]:r.limiters,o="";switch(i.forEach(function(e){o+="|"+t.escapeStr(e)}),n){case"partially":default:return"()("+e+")";case"complementary":return"()([^"+(o="\\s"+(o||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")))+"]*"+e+"[^"+o+"]*)";case"exactly":return"(^|\\s"+o+")("+e+")(?=$|\\s"+o+")"}}},{key:"getSeparatedKeywords",value:function(e){var t=this,r=[];return e.forEach(function(e){t.opt.separateWordSearch?e.split(" ").forEach(function(e){e.trim()&&-1===r.indexOf(e)&&r.push(e)}):e.trim()&&-1===r.indexOf(e)&&r.push(e)}),{keywords:r.sort(function(e,t){return t.length-e.length}),length:r.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var t=this;if(!Array.isArray(e)||"[object Object]"!==Object.prototype.toString.call(e[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var r=[],n=0;return e.sort(function(e,t){return e.start-t.start}).forEach(function(e){var i=t.callNoMatchOnInvalidRanges(e,n),o=i.start,s=i.end;i.valid&&(e.start=o,e.length=s-o,r.push(e),n=s)}),r}},{key:"callNoMatchOnInvalidRanges",value:function(e,t){var r=void 0,n=void 0,i=!1;return e&&void 0!==e.start?(n=(r=parseInt(e.start,10))+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-r>0?i=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(e)),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:r,end:n,valid:i}}},{key:"checkWhitespaceRanges",value:function(e,t,r){var n=void 0,i=!0,o=r.length,s=t-o,a=parseInt(e.start,10)-s;return(n=(a=a>o?o:a)+parseInt(e.length,10))>o&&(n=o,this.log("End range automatically set to the max value of "+o)),a<0||n-a<0||a>o||n>o?(i=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):""===r.substring(a,n).replace(/\s+/g,"")&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:a,end:n,valid:i}}},{key:"getTextNodes",value:function(e){var t=this,r="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(e){n.push({start:r.length,end:(r+=e.textContent).length,node:e})},function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:r,nodes:n})})}},{key:"matchesExclude",value:function(e){return i.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,t,r){var n=this.opt.element?this.opt.element:"mark",i=e.splitText(t),o=i.splitText(r-t),s=document.createElement(n);return s.setAttribute("data-markjs","true"),this.opt.className&&s.setAttribute("class",this.opt.className),s.textContent=i.textContent,i.parentNode.replaceChild(s,i),o}},{key:"wrapRangeInMappedTextNode",value:function(e,t,r,n,i){var o=this;e.nodes.every(function(s,a){var u=e.nodes[a+1];if(void 0===u||u.start>t){if(!n(s.node))return!1;var c=t-s.start,l=(r>s.end?s.end:r)-s.start,f=e.value.substr(0,s.start),h=e.value.substr(l+s.start);if(s.node=o.wrapRangeInTextNode(s.node,c,l),e.value=f+h,e.nodes.forEach(function(t,r){r>=a&&(e.nodes[r].start>0&&r!==a&&(e.nodes[r].start-=l),e.nodes[r].end-=l)}),r-=l,i(s.node.previousSibling,s.start),!(r>s.end))return!1;t=s.end}return!0})}},{key:"wrapMatches",value:function(e,t,r,n,i){var o=this,s=0===t?0:t+1;this.getTextNodes(function(t){t.nodes.forEach(function(t){t=t.node;for(var i=void 0;null!==(i=e.exec(t.textContent))&&""!==i[s];)if(r(i[s],t)){var a=i.index;if(0!==s)for(var u=1;u<s;u++)a+=i[u].length;t=o.wrapRangeInTextNode(t,a,a+i[s].length),n(t.previousSibling),e.lastIndex=0}}),i()})}},{key:"wrapMatchesAcrossElements",value:function(e,t,r,n,i){var o=this,s=0===t?0:t+1;this.getTextNodes(function(t){for(var a=void 0;null!==(a=e.exec(t.value))&&""!==a[s];){var u=a.index;if(0!==s)for(var c=1;c<s;c++)u+=a[c].length;var l=u+a[s].length;o.wrapRangeInMappedTextNode(t,u,l,function(e){return r(a[s],e)},function(t,r){e.lastIndex=r,n(t)})}i()})}},{key:"wrapRangeFromIndex",value:function(e,t,r,n){var i=this;this.getTextNodes(function(o){var s=o.value.length;e.forEach(function(e,n){var a=i.checkWhitespaceRanges(e,s,o.value),u=a.start,c=a.end;a.valid&&i.wrapRangeInMappedTextNode(o,u,c,function(r){return t(r,e,o.value.substring(u,c),n)},function(t){r(t,e)})}),n()})}},{key:"unwrapMatches",value:function(e){for(var t=e.parentNode,r=document.createDocumentFragment();e.firstChild;)r.appendChild(e.removeChild(e.firstChild));t.replaceChild(r,e),this.ie?this.normalizeTextNode(t):t.normalize()}},{key:"normalizeTextNode",value:function(e){if(e){if(3===e.nodeType)for(;e.nextSibling&&3===e.nextSibling.nodeType;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}},{key:"markRegExp",value:function(e,t){var r=this;this.opt=t,this.log('Searching with expression "'+e+'"');var n=0,i="wrapMatches";this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,function(e,t){return r.opt.filter(t,e,n)},function(e){n++,r.opt.each(e)},function(){0===n&&r.opt.noMatch(e),r.opt.done(n)})}},{key:"mark",value:function(e,t){var r=this;this.opt=t;var n=0,i="wrapMatches",o=this.getSeparatedKeywords("string"==typeof e?[e]:e),s=o.keywords,a=o.length,u=this.opt.caseSensitive?"":"i";this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),0===a?this.opt.done(n):function e(t){var o=new RegExp(r.createRegExp(t),"gm"+u),c=0;r.log('Searching with expression "'+o+'"'),r[i](o,1,function(e,i){return r.opt.filter(i,t,n,c)},function(e){c++,n++,r.opt.each(e)},function(){0===c&&r.opt.noMatch(t),s[a-1]===t?r.opt.done(n):e(s[s.indexOf(t)+1])})}(s[0])}},{key:"markRanges",value:function(e,t){var r=this;this.opt=t;var n=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,function(e,t,n,i){return r.opt.filter(e,t,n,i)},function(e,t){n++,r.opt.each(e,t)},function(){r.opt.done(n)})):this.opt.done(n)}},{key:"unmark",value:function(e){var t=this;this.opt=e;var r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+="."+this.opt.className),this.log('Removal selector "'+r+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(e){t.unwrapMatches(e)},function(e){var n=i.matches(e,r),o=t.matchesExclude(e);return!n||o?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(e){this._opt=n({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},e)},get:function(){return this._opt}},{key:"iterator",get:function(){return new i(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),o}();return function(e){var t=this,r=new o(e);return this.mark=function(e,n){return r.mark(e,n),t},this.markRegExp=function(e,n){return r.markRegExp(e,n),t},this.markRanges=function(e,n){return r.markRanges(e,n),t},this.unmark=function(e){return r.unmark(e),t},this}}()},6478:function(e,t,r){!function(){try{var t=r(6556)}catch(e){}var n,i;e.exports=(i=function(e,t){var r={},n={true:!0,false:!1,null:null};return e?(e.replace(/\+/g," ").split("&").forEach(function(e){var i,o=e.split("="),s=decodeURIComponent(o[0]),a=r,u=0,c=s.split("]["),l=c.length-1;if(/\[/.test(c[0])&&/\]$/.test(c[l])?(c[l]=c[l].replace(/\]$/,""),l=(c=c.shift().split("[").concat(c)).length-1):l=0,2===o.length)if(i=decodeURIComponent(o[1]),t&&(i=i&&!isNaN(i)&&+i+""===i?+i:"undefined"===i?void 0:void 0!==n[i]?n[i]:i),l)for(;u<=l;u++)a=a[s=""===c[u]?a.length:c[u]]=u<l?a[s]||(c[u+1]&&isNaN(c[u+1])?{}:[]):i;else"[object Array]"===Object.prototype.toString.call(r[s])?r[s].push(i):{}.hasOwnProperty.call(r,s)?r[s]=[r[s],i]:r[s]=i;else s&&(r[s]=t?void 0:"")}),r):r},(n=t)&&(n.prototype.deparam=n.deparam=i),i)}()},9594:function(){(window.nunjucksPrecompiled=window.nunjucksPrecompiled||{})["search_result.njk"]={root:function(e,t,r,n,i){var o="";try{o+='<li class="search-result text-block">\n <h2><a href="',o+=n.suppressValue(n.contextOrFrameLookup(t,r,"url"),e.opts.autoescape),o+='" data-result-field="title">',o+=n.suppressValue(n.contextOrFrameLookup(t,r,"title"),e.opts.autoescape),o+='</a></h2>\n <div data-result-field="contents">',o+=n.suppressValue(n.contextOrFrameLookup(t,r,"contents"),e.opts.autoescape),i(null,o+="</div>\n</li>\n")}catch(e){i(n.handleError(e,0,0))}}}},9857:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,t){},function(e,t,r){"use strict";var n=Array.prototype,i=Object.prototype,o={"&":"&",'"':""","'":"'","<":"<",">":">","\\":"\"},s=/[&"'<>\\]/g;function a(e,t){return i.hasOwnProperty.call(e,t)}function u(e){return o[e]}function c(e,t,r){var n,i,o;if(e instanceof Error&&(e=(i=e).name+": "+i.message),Object.setPrototypeOf?(n=new Error(e),Object.setPrototypeOf(n,c.prototype)):(n=this,Object.defineProperty(n,"message",{enumerable:!1,writable:!0,v