ig-typedoc-theme
Version:
infragistics theme for typedoc API documentation with versioning and localization
2 lines • 46.5 kB
JavaScript
/*! For license information please see common.js.LICENSE.txt */
!function(){var e={559:function(e,t,r){var n,i;!function(){var s,o,a,l,c,u,d,h,f,p,m,g,y,v,x,w,L,E,b,S,k,Q,P,T,I,O,R,C,N,F,j=function(e){var t=new j.Builder;return t.pipeline.add(j.trimmer,j.stopWordFilter,j.stemmer),t.searchPipeline.add(j.stemmer),e.call(t,t),t.build()};j.version="2.3.9",j.utils={},j.utils.warn=(s=this,function(e){s.console&&console.warn&&console.warn(e)}),j.utils.asString=function(e){return null==e?"":e.toString()},j.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],s=e[i];if(Array.isArray(s))t[i]=s.slice();else{if("string"!=typeof s&&"number"!=typeof s&&"boolean"!=typeof s)throw new TypeError("clone is not deep and does not support nested objects");t[i]=s}}return t},j.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},j.FieldRef.joiner="/",j.FieldRef.fromString=function(e){var t=e.indexOf(j.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var r=e.slice(0,t),n=e.slice(t+1);return new j.FieldRef(n,r,e)},j.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+j.FieldRef.joiner+this.docRef),this._stringValue},j.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},j.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},j.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},j.Set.prototype.contains=function(e){return!!this.elements[e]},j.Set.prototype.intersect=function(e){var t,r,n,i=[];if(e===j.Set.complete)return this;if(e===j.Set.empty)return e;this.length<e.length?(t=this,r=e):(t=e,r=this),n=Object.keys(t.elements);for(var s=0;s<n.length;s++){var o=n[s];o in r.elements&&i.push(o)}return new j.Set(i)},j.Set.prototype.union=function(e){return e===j.Set.complete?j.Set.complete:e===j.Set.empty?this:new j.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},j.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))},j.Token=function(e,t){this.str=e||"",this.metadata=t||{}},j.Token.prototype.toString=function(){return this.str},j.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},j.Token.prototype.clone=function(e){return e=e||function(e){return e},new j.Token(e(this.str,this.metadata),this.metadata)},j.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new j.Token(j.utils.asString(e).toLowerCase(),j.utils.clone(t))}));for(var r=e.toString().toLowerCase(),n=r.length,i=[],s=0,o=0;s<=n;s++){var a=s-o;if(r.charAt(s).match(j.tokenizer.separator)||s==n){if(a>0){var l=j.utils.clone(t)||{};l.position=[o,a],l.index=i.length,i.push(new j.Token(r.slice(o,s),l))}o=s+1}}return i},j.tokenizer.separator=/[\s\-]+/,j.Pipeline=function(){this._stack=[]},j.Pipeline.registeredFunctions=Object.create(null),j.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&j.utils.warn("Overwriting existing registered function: "+t),e.label=t,j.Pipeline.registeredFunctions[e.label]=e},j.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||j.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},j.Pipeline.load=function(e){var t=new j.Pipeline;return e.forEach((function(e){var r=j.Pipeline.registeredFunctions[e];if(!r)throw new Error("Cannot load unregistered function: "+e);t.add(r)})),t},j.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(e){j.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},j.Pipeline.prototype.after=function(e,t){j.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)},j.Pipeline.prototype.before=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");this._stack.splice(r,0,t)},j.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},j.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r<t;r++){for(var n=this._stack[r],i=[],s=0;s<e.length;s++){var o=n(e[s],s,e);if(null!=o&&""!==o)if(Array.isArray(o))for(var a=0;a<o.length;a++)i.push(o[a]);else i.push(o)}e=i}return e},j.Pipeline.prototype.runString=function(e,t){var r=new j.Token(e,t);return this.run([r]).map((function(e){return e.toString()}))},j.Pipeline.prototype.reset=function(){this._stack=[]},j.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return j.Pipeline.warnIfFunctionNotRegistered(e),e.label}))},j.Vector=function(e){this._magnitude=0,this.elements=e||[]},j.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),s=this.elements[2*i];n>1&&(s<e&&(t=i),s>e&&(r=i),s!=e);)n=r-t,i=t+Math.floor(n/2),s=this.elements[2*i];return s==e||s>e?2*i:s<e?2*(i+1):void 0},j.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},j.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)},j.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)},j.Vector.prototype.dot=function(e){for(var t=0,r=this.elements,n=e.elements,i=r.length,s=n.length,o=0,a=0,l=0,c=0;l<i&&c<s;)(o=r[l])<(a=n[c])?l+=2:o>a?c+=2:o==a&&(t+=r[l+1]*n[c+1],l+=2,c+=2);return t},j.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},j.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},j.Vector.prototype.toJSON=function(){return this.elements},j.stemmer=(o={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:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",h="^("+c+")?"+u+c+u+c,f="^("+c+")?"+l,p=new RegExp("^("+c+")?"+u+c),m=new RegExp(h),g=new RegExp(d),y=new RegExp(f),v=/^(.+?)(ss|i)es$/,x=/^(.+?)([^s])s$/,w=/^(.+?)eed$/,L=/^(.+?)(ed|ing)$/,E=/.$/,b=/(at|bl|iz)$/,S=new RegExp("([^aeiouylsz])\\1$"),k=new RegExp("^"+c+l+"[^aeiouwxy]$"),Q=/^(.+?[^aeiou])y$/,P=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,T=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,I=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,O=/^(.+?)(s|t)(ion)$/,R=/^(.+?)e$/,C=/ll$/,N=new RegExp("^"+c+l+"[^aeiouwxy]$"),F=function(e){var t,r,n,i,s,l,c;if(e.length<3)return e;if("y"==(n=e.substr(0,1))&&(e=n.toUpperCase()+e.substr(1)),s=x,(i=v).test(e)?e=e.replace(i,"$1$2"):s.test(e)&&(e=e.replace(s,"$1$2")),s=L,(i=w).test(e)){var u=i.exec(e);(i=p).test(u[1])&&(i=E,e=e.replace(i,""))}else s.test(e)&&(t=(u=s.exec(e))[1],(s=y).test(t)&&(l=S,c=k,(s=b).test(e=t)?e+="e":l.test(e)?(i=E,e=e.replace(i,"")):c.test(e)&&(e+="e")));return(i=Q).test(e)&&(e=(t=(u=i.exec(e))[1])+"i"),(i=P).test(e)&&(t=(u=i.exec(e))[1],r=u[2],(i=p).test(t)&&(e=t+o[r])),(i=T).test(e)&&(t=(u=i.exec(e))[1],r=u[2],(i=p).test(t)&&(e=t+a[r])),s=O,(i=I).test(e)?(t=(u=i.exec(e))[1],(i=m).test(t)&&(e=t)):s.test(e)&&(t=(u=s.exec(e))[1]+u[2],(s=m).test(t)&&(e=t)),(i=R).test(e)&&(t=(u=i.exec(e))[1],s=g,l=N,((i=m).test(t)||s.test(t)&&!l.test(t))&&(e=t)),s=m,(i=C).test(e)&&s.test(e)&&(i=E,e=e.replace(i,"")),"y"==n&&(e=n.toLowerCase()+e.substr(1)),e},function(e){return e.update(F)}),j.Pipeline.registerFunction(j.stemmer,"stemmer"),j.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}},j.stopWordFilter=j.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"]),j.Pipeline.registerFunction(j.stopWordFilter,"stopWordFilter"),j.trimmer=function(e){return e.update((function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")}))},j.Pipeline.registerFunction(j.trimmer,"trimmer"),j.TokenSet=function(){this.final=!1,this.edges={},this.id=j.TokenSet._nextId,j.TokenSet._nextId+=1},j.TokenSet._nextId=1,j.TokenSet.fromArray=function(e){for(var t=new j.TokenSet.Builder,r=0,n=e.length;r<n;r++)t.insert(e[r]);return t.finish(),t.root},j.TokenSet.fromClause=function(e){return"editDistance"in e?j.TokenSet.fromFuzzyString(e.term,e.editDistance):j.TokenSet.fromString(e.term)},j.TokenSet.fromFuzzyString=function(e,t){for(var r=new j.TokenSet,n=[{node:r,editsRemaining:t,str:e}];n.length;){var i=n.pop();if(i.str.length>0){var s,o=i.str.charAt(0);o in i.node.edges?s=i.node.edges[o]:(s=new j.TokenSet,i.node.edges[o]=s),1==i.str.length&&(s.final=!0),n.push({node:s,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 j.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 l=i.node.edges["*"];else l=new j.TokenSet,i.node.edges["*"]=l;1==i.str.length&&(l.final=!0),n.push({node:l,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var c,u=i.str.charAt(0),d=i.str.charAt(1);d in i.node.edges?c=i.node.edges[d]:(c=new j.TokenSet,i.node.edges[d]=c),1==i.str.length&&(c.final=!0),n.push({node:c,editsRemaining:i.editsRemaining-1,str:u+i.str.slice(2)})}}}return r},j.TokenSet.fromString=function(e){for(var t=new j.TokenSet,r=t,n=0,i=e.length;n<i;n++){var s=e[n],o=n==i-1;if("*"==s)t.edges[s]=t,t.final=o;else{var a=new j.TokenSet;a.final=o,t.edges[s]=a,t=a}}return r},j.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 s=0;s<i;s++){var o=n[s];t.push({prefix:r.prefix.concat(o),node:r.node.edges[o]})}}return e},j.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},j.TokenSet.prototype.intersect=function(e){for(var t=new j.TokenSet,r=void 0,n=[{qNode:e,output:t,node:this}];n.length;){r=n.pop();for(var i=Object.keys(r.qNode.edges),s=i.length,o=Object.keys(r.node.edges),a=o.length,l=0;l<s;l++)for(var c=i[l],u=0;u<a;u++){var d=o[u];if(d==c||"*"==c){var h=r.node.edges[d],f=r.qNode.edges[c],p=h.final&&f.final,m=void 0;d in r.output.edges?(m=r.output.edges[d]).final=m.final||p:((m=new j.TokenSet).final=p,r.output.edges[d]=m),n.push({qNode:f,output:m,node:h})}}}return t},j.TokenSet.Builder=function(){this.previousWord="",this.root=new j.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},j.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 j.TokenSet,s=e[n];t.edges[s]=i,this.uncheckedNodes.push({parent:t,char:s,child:i}),t=i}t.final=!0,this.previousWord=e},j.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},j.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()}},j.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},j.Index.prototype.search=function(e){return this.query((function(t){new j.QueryParser(e,t).parse()}))},j.Index.prototype.query=function(e){for(var t=new j.Query(this.fields),r=Object.create(null),n=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=0;a<this.fields.length;a++)n[this.fields[a]]=new j.Vector;for(e.call(t,t),a=0;a<t.clauses.length;a++){var l,c=t.clauses[a],u=j.Set.empty;l=c.usePipeline?this.pipeline.runString(c.term,{fields:c.fields}):[c.term];for(var d=0;d<l.length;d++){var h=l[d];c.term=h;var f=j.TokenSet.fromClause(c),p=this.tokenSet.intersect(f).toArray();if(0===p.length&&c.presence===j.Query.presence.REQUIRED){for(var m=0;m<c.fields.length;m++)s[R=c.fields[m]]=j.Set.empty;break}for(var g=0;g<p.length;g++){var y=p[g],v=this.invertedIndex[y],x=v._index;for(m=0;m<c.fields.length;m++){var w=v[R=c.fields[m]],L=Object.keys(w),E=y+"/"+R,b=new j.Set(L);if(c.presence==j.Query.presence.REQUIRED&&(u=u.union(b),void 0===s[R]&&(s[R]=j.Set.complete)),c.presence!=j.Query.presence.PROHIBITED){if(n[R].upsert(x,c.boost,(function(e,t){return e+t})),!i[E]){for(var S=0;S<L.length;S++){var k,Q=L[S],P=new j.FieldRef(Q,R),T=w[Q];void 0===(k=r[P])?r[P]=new j.MatchData(y,R,T):k.add(y,R,T)}i[E]=!0}}else void 0===o[R]&&(o[R]=j.Set.empty),o[R]=o[R].union(b)}}}if(c.presence===j.Query.presence.REQUIRED)for(m=0;m<c.fields.length;m++)s[R=c.fields[m]]=s[R].intersect(u)}var I=j.Set.complete,O=j.Set.empty;for(a=0;a<this.fields.length;a++){var R;s[R=this.fields[a]]&&(I=I.intersect(s[R])),o[R]&&(O=O.union(o[R]))}var C=Object.keys(r),N=[],F=Object.create(null);if(t.isNegated())for(C=Object.keys(this.fieldVectors),a=0;a<C.length;a++){P=C[a];var D=j.FieldRef.fromString(P);r[P]=new j.MatchData}for(a=0;a<C.length;a++){var A=(D=j.FieldRef.fromString(C[a])).docRef;if(I.contains(A)&&!O.contains(A)){var _,z=this.fieldVectors[D],V=n[D.fieldName].similarity(z);if(void 0!==(_=F[A]))_.score+=V,_.matchData.combine(r[D]);else{var $={ref:A,score:V,matchData:r[D]};F[A]=$,N.push($)}}}return N.sort((function(e,t){return t.score-e.score}))},j.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:j.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},j.Index.load=function(e){var t={},r={},n=e.fieldVectors,i=Object.create(null),s=e.invertedIndex,o=new j.TokenSet.Builder,a=j.Pipeline.load(e.pipeline);e.version!=j.version&&j.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+j.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<n.length;l++){var c=(d=n[l])[0],u=d[1];r[c]=new j.Vector(u)}for(l=0;l<s.length;l++){var d,h=(d=s[l])[0],f=d[1];o.insert(h),i[h]=f}return o.finish(),t.fields=e.fields,t.fieldVectors=r,t.invertedIndex=i,t.tokenSet=o.root,t.pipeline=a,new j.Index(t)},j.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=j.tokenizer,this.pipeline=new j.Pipeline,this.searchPipeline=new j.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},j.Builder.prototype.ref=function(e){this._ref=e},j.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},j.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},j.Builder.prototype.k1=function(e){this._k1=e},j.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 s=n[i],o=this._fields[s].extractor,a=o?o(e):e[s],l=this.tokenizer(a,{fields:[s]}),c=this.pipeline.run(l),u=new j.FieldRef(r,s),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var h=0;h<c.length;h++){var f=c[h];if(null==d[f]&&(d[f]=0),d[f]+=1,null==this.invertedIndex[f]){var p=Object.create(null);p._index=this.termIndex,this.termIndex+=1;for(var m=0;m<n.length;m++)p[n[m]]=Object.create(null);this.invertedIndex[f]=p}null==this.invertedIndex[f][s][r]&&(this.invertedIndex[f][s][r]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var y=this.metadataWhitelist[g],v=f.metadata[y];null==this.invertedIndex[f][s][r][y]&&(this.invertedIndex[f][s][r][y]=[]),this.invertedIndex[f][s][r][y].push(v)}}}},j.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,r={},n={},i=0;i<t;i++){var s=j.FieldRef.fromString(e[i]),o=s.fieldName;n[o]||(n[o]=0),n[o]+=1,r[o]||(r[o]=0),r[o]+=this.fieldLengths[s]}var a=Object.keys(this._fields);for(i=0;i<a.length;i++){var l=a[i];r[l]=r[l]/n[l]}this.averageFieldLength=r},j.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 s=j.FieldRef.fromString(t[i]),o=s.fieldName,a=this.fieldLengths[s],l=new j.Vector,c=this.fieldTermFrequencies[s],u=Object.keys(c),d=u.length,h=this._fields[o].boost||1,f=this._documents[s.docRef].boost||1,p=0;p<d;p++){var m,g,y,v=u[p],x=c[v],w=this.invertedIndex[v]._index;void 0===n[v]?(m=j.idf(this.invertedIndex[v],this.documentCount),n[v]=m):m=n[v],g=m*((this._k1+1)*x)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[o]))+x),g*=h,g*=f,y=Math.round(1e3*g)/1e3,l.insert(w,y)}e[s]=l}this.fieldVectors=e},j.Builder.prototype.createTokenSet=function(){this.tokenSet=j.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},j.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new j.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},j.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},j.MatchData=function(e,t,r){for(var n=Object.create(null),i=Object.keys(r||{}),s=0;s<i.length;s++){var o=i[s];n[o]=r[o].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=n)},j.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 s=0;s<i.length;s++){var o=i[s],a=Object.keys(e.metadata[n][o]);null==this.metadata[n][o]&&(this.metadata[n][o]=Object.create(null));for(var l=0;l<a.length;l++){var c=a[l];null==this.metadata[n][o][c]?this.metadata[n][o][c]=e.metadata[n][o][c]:this.metadata[n][o][c]=this.metadata[n][o][c].concat(e.metadata[n][o][c])}}}},j.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 s=n[i];s in this.metadata[e][t]?this.metadata[e][t][s]=this.metadata[e][t][s].concat(r[s]):this.metadata[e][t][s]=r[s]}else this.metadata[e][t]=r},j.Query=function(e){this.clauses=[],this.allFields=e},j.Query.wildcard=new String("*"),j.Query.wildcard.NONE=0,j.Query.wildcard.LEADING=1,j.Query.wildcard.TRAILING=2,j.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},j.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=j.Query.wildcard.NONE),e.wildcard&j.Query.wildcard.LEADING&&e.term.charAt(0)!=j.Query.wildcard&&(e.term="*"+e.term),e.wildcard&j.Query.wildcard.TRAILING&&e.term.slice(-1)!=j.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=j.Query.presence.OPTIONAL),this.clauses.push(e),this},j.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=j.Query.presence.PROHIBITED)return!1;return!0},j.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,j.utils.clone(t))}),this),this;var r=t||{};return r.term=e.toString(),this.clause(r),this},j.QueryParseError=function(e,t,r){this.name="QueryParseError",this.message=e,this.start=t,this.end=r},j.QueryParseError.prototype=new Error,j.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},j.QueryLexer.prototype.run=function(){for(var e=j.QueryLexer.lexText;e;)e=e(this)},j.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("")},j.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},j.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},j.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return j.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},j.QueryLexer.prototype.width=function(){return this.pos-this.start},j.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},j.QueryLexer.prototype.backup=function(){this.pos-=1},j.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=j.QueryLexer.EOS&&this.backup()},j.QueryLexer.prototype.more=function(){return this.pos<this.length},j.QueryLexer.EOS="EOS",j.QueryLexer.FIELD="FIELD",j.QueryLexer.TERM="TERM",j.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",j.QueryLexer.BOOST="BOOST",j.QueryLexer.PRESENCE="PRESENCE",j.QueryLexer.lexField=function(e){return e.backup(),e.emit(j.QueryLexer.FIELD),e.ignore(),j.QueryLexer.lexText},j.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(j.QueryLexer.TERM)),e.ignore(),e.more())return j.QueryLexer.lexText},j.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.EDIT_DISTANCE),j.QueryLexer.lexText},j.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.BOOST),j.QueryLexer.lexText},j.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(j.QueryLexer.TERM)},j.QueryLexer.termSeparator=j.tokenizer.separator,j.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==j.QueryLexer.EOS)return j.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return j.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if(t.match(j.QueryLexer.termSeparator))return j.QueryLexer.lexTerm}else e.escapeCharacter()}},j.QueryParser=function(e,t){this.lexer=new j.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},j.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=j.QueryParser.parseClause;e;)e=e(this);return this.query},j.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},j.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},j.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},j.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case j.QueryLexer.PRESENCE:return j.QueryParser.parsePresence;case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.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 j.QueryParseError(r,t.start,t.end)}},j.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=j.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=j.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+t.str+"'";throw new j.QueryParseError(r,t.start,t.end)}var n=e.peekLexeme();if(null==n)throw r="expecting term or field, found nothing",new j.QueryParseError(r,t.start,t.end);switch(n.type){case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:throw r="expecting term or field, found '"+n.type+"'",new j.QueryParseError(r,n.start,n.end)}}},j.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 j.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 j.QueryParseError(n,t.start,t.end);if(i.type===j.QueryLexer.TERM)return j.QueryParser.parseTerm;throw n="expecting term, found '"+i.type+"'",new j.QueryParseError(n,i.start,i.end)}},j.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 j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:var n="Unexpected lexeme type '"+r.type+"'";throw new j.QueryParseError(n,r.start,r.end)}else e.nextClause()}},j.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 j.QueryParseError(n,t.start,t.end)}e.currentClause.editDistance=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:throw n="Unexpected lexeme type '"+i.type+"'",new j.QueryParseError(n,i.start,i.end)}else e.nextClause()}},j.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 j.QueryParseError(n,t.start,t.end)}e.currentClause.boost=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:throw n="Unexpected lexeme type '"+i.type+"'",new j.QueryParseError(n,i.start,i.end)}else e.nextClause()}},void 0===(i="function"==typeof(n=function(){return j})?n.call(t,r,t,e):n)||(e.exports=i)}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}!function(){"use strict";!function(){const e=$("body").data("api-versions-json"),t=$("body").attr("default-url");$.ajax({url:e,type:"get",contentType:"application/json",xhrFields:{withCredentials:!1}}).done((function(e){let r=e.folders;const n=$("#versions");r=r.reverse(),r.forEach((function(e){const r=t.replace("typescript/latest",e+"/typescript");n.append($("<option>",{value:r,text:e}))}));const i=r.filter((function(e){return window.location.href.indexOf(e)>=0}))[0]||r[0],s=t.replace("typescript/latest",i+"/typescript");n.val(s)})),$("#versions").on("change",(function(){const e=$("#versions").val();window.location.assign(e)}))}()}(),function(){"use strict";!function(e,t,r,n){var i,s,o,a={addImgResponsiveClass:function(t){t.find("img").each((function(t,r){var n=e(r);n.attr("class")?-1===n.attr("class").indexOf("img-responsive")&&n.addClass("img-responsive"):n.addClass("img-responsive")}))}};e((function(){var t,l=e(".main-box");i=e(r),o=e("#nav-button"),s=e("#nav-container"),1===l.length&&a.addImgResponsiveClass(l);var c=function(){e(r).width()==t||(t=i.width(),r.matchMedia&&r.matchMedia("print").matches)||(n.common.isSmallDeviceWidth(),n.common.syncSidebarHeight())};c(),i.on("resize",c),o.click((function(e){var t=0===parseInt(s.height())?n.locale.navHideLabel:n.locale.navShowLabel;o.text(t).blur(),t===n.locale.navShowLabel&&n.common.scrollToTop()}))})),(n=n||{}).renderingService=a}(jQuery,Modernizr,window,window.igViewer)}(),function(){"use strict";!function(e,t,r){Array.prototype.clean=function(e){for(var t=0;t<this.length;t++)this[t]==e&&(this.splice(t,1),t--);return this};var n,i=t(e),s=t("#top-button"),o=t(".nav-sidebar"),a=t("body"),l={currentPageInfo:{}},c={contentContainerId:"#document-content-container",contentElementId:"#document-content",$errorPublishedMessage:t("#error-published-message"),contentFolderName:"help",homePages:["index","home-page"],topicAPI:"",isOnline:!1,baseURI:e.baseURI||"",footer:t("#footer-container"),currentPageInfo:function(e){return e?(l.currentPageInfo.pageName,e.pageName,void(l.currentPageInfo=e)):l.currentPageInfo},versionQuery:function(t){var r=(t||e.location.search).match(/[\?&]v=(\d\d\.\d)/);return r&&r[1]?"?v="+r[1]:""},isContentPage:function(){return!(!c.path||!c.path.length)||!!c.isOnIndexPage()},getPageInfo:function(e,t){var r=e.replace(/\.html(?=\?|$)/i,"").toLowerCase();c.isOnIndexPage(r)&&!c.isOnline&&c.baseURI&&(c.baseURI="../");var n=c.baseURI+e,i=c.baseURI+r,s=c.topicAPI+r;return{title:t,fileName:e,pageName:r,path:{navigation:c.isOnline?i:n,service:c.isOnline?s:n,noExt:i,api:s,ext:n},isContentPage:c.isContentPage()}},getPageNameFromLocation:function(){var t=e.location.pathname.split("/");t=t.clean("");var r=c.isOnline?"":c.homePages[2];return t.length>1&&(r=c.isOnline?t.pop().toLowerCase():t.pop()),r+=c.versionQuery(),decodeURIComponent(r)},isOnIndexPage:function(e){if(!e){var t=location.protocol+"//"+location.host+location.pathname;if(t===c.baseURI)return!0;e=t.replace(c.baseURI,"")}return-1!==jQuery.inArray(e,c.homePages)},isCurrentPage:function(t,r){return t=t||e.location.protocol+"//"+e.location.host+e.location.pathname,t+=c.versionQuery(r),c.currentPageInfo().path.navigation==t},isUsingWebServer:function(){var t=e.location.protocol;return"http:"===t||"https:"===t},isSmallDeviceWidth:function(){return i.width()<768},shouldUsePushState:function(){return!!r.history&&c.isUsingWebServer()},hasLocationHash:function(){return e.location.hash&&e.location.hash.length>0},refreshHash:function(){c.hasLocationHash()&&e.location.assign(e.location.href)},scrollToTop:function(){t("html, body").animate({scrollTop:0},"fast")},adjustTopLinkPos:function(){i.height()+i.scrollTop()>c.footer.offset().top?s.css({position:"absolute"}):s.css({position:"fixed"})},publishErrorToServer:function(r){var n;r.message&&(n=" Message: "+r.message),r.stack&&(n+=" Stack: "+r.stack);var i={errorText:n,url:e.document.location.href};t.post("api/error",i),c.$errorPublishedMessage.fadeIn()},syncSidebarHeight:function(){var e=void 0,r=o.height();void 0===(e=(n=n||t(c.contentContainerId).parent()).data("defaultMinHeight"))&&(e=parseInt(n.css("minHeight"),10),n.data("defaultMinHeight",e)),r>e?n.css("minHeight",r):n.css("minHeight",e)},toAbsoluteURL:function(t){var r=e.document.createElement("a");return r.href=t,r.href},getProductList:function(){var e=a.attr("data-product-list"),t=[];return void 0!==e&&(t=e.split("|")),t}};s.children("button").click((function(e){c.scrollToTop(),this.blur()})),c.$errorPublishedMessage.on("click",".close",(function(e){c.$errorPublishedMessage.fadeOut()})),c.isOnline="online"===t("body").attr("data-mode"),c.baseURI=c.toAbsoluteURL(c.baseURI),c.currentPageInfo(c.getPageInfo(c.getPageNameFromLocation())),c.adjustTopLinkPos(),c.refreshHash(),i.scroll(c.adjustTopLinkPos),i.one("load",(function(){c.syncSidebarHeight()})),e.igViewer=e.igViewer||{},e.igViewer.common=c}(window,jQuery,Modernizr)}(),function(){"use strict";var e;e=$("body").data("base-url")+"/navigation",$.ajax({url:e,type:"get",xhrFields:{withCredentials:!1}}).done((function(e){var t=$(e),r=t.find("#header")[0].outerHTML;$("#header").replaceWith(r);var n=$("#logOutLink");if(0!==n.length){var i=n.attr("href").split("?")[0];n.attr("href",i)}var s=t.find("footer.ui-footer")[0].outerHTML;$("footer.ui-footer").replaceWith(s);var o=t.find("#footer")[0].outerHTML;$("#footer").replaceWith(o),window.igViewer.common.footer=$("#footer-container"),igNavigation.init()})),window.igViewer.common.footer=$("#footer-container"),igNavigation.init(),$(document).ready((function(){window.igViewer.common.adjustTopLinkPos()}))}(),function(){"use strict";const e=[];function t(t,r){e.push({selector:r,constructor:t})}class n{el;constructor(e){this.el=e.el}}class i{listeners={};addEventListener(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)}removeEventListener(e,t){if(!(e in this.listeners))return;const r=this.listeners[e];for(let e=0,n=r.length;e<n;e++)if(r[e]===t)return void r.splice(e,1)}dispatchEvent(e){if(!(e.type in this.listeners))return!0;const t=this.listeners[e.type].slice();for(let r=0,n=t.length;r<n;r++)t[r].call(this,e);return!e.defaultPrevented}}const s=(e,t=100)=>{let r=Date.now();return(...n)=>{r+t-Date.now()<0&&(e(...n),r=Date.now())}};class o extends i{static instance=new o;scrollTop=0;lastY=0;width=0;height=0;toolbar;showToolbar=!0;secondaryNav;constructor(){super(),this.toolbar=document.querySelector(".tsd-page-toolbar"),this.secondaryNav=document.querySelector(".tsd-navigation.secondary"),window.addEventListener("scroll",s((()=>this.onScroll()),10)),window.addEventListener("resize",s((()=>this.onResize()),10)),this.onResize(),this.onScroll()}triggerResize(){const e=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(e)}onResize(){this.width=window.innerWidth||0,this.height=window.innerHeight||0;const e=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(e)}onScroll(){this.scrollTop=window.scrollY||0;const e=new CustomEvent("scroll",{detail:{scrollTop:this.scrollTop}});this.dispatchEvent(e)}}var a=r(559);function l(e,t){let r=e.querySelector(".current");if(r){const e=1==t?r.nextElementSibling:r.previousElementSibling;e&&(r.classList.remove("current"),e.classList.add("current"))}else r=e.querySelector(1==t?"li:first-child":"li:last-child"),r&&r.classList.add("current")}function c(e,t){if(""===t)return e;const r=e.toLocaleLowerCase(),n=t.toLocaleLowerCase(),i=[];let s=0,o=r.indexOf(n);for(;-1!=o;)i.push(d(e.substring(s,o)),`<b>${d(e.substring(o,o+n.length))}</b>`),s=o+n.length,o=r.indexOf(n,s);return i.push(d(e.substring(s))),i.join("")}const u={"&":"&","<":"<",">":">","'":"'",'"':"""};function d(e){return e.replace(/[&<>"'"]/g,(e=>u[e]))}class h{signature;description;constructor(e,t){this.signature=e,this.description=t}addClass(e){return this.signature.classList.add(e),this.description.classList.add(e),this}removeClass(e){return this.signature.classList.remove(e),this.description.classList.remove(e),this}}let f="mousedown",p="mousemove",m="mouseup";const g={x:0,y:0};let y=!1,v=!1,x=!1,w=!1;const L=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(L?"is-mobile":"not-mobile"),L&&"ontouchstart"in document.documentElement&&(!0,f="touchstart",p="touchmove",m="touchend"),document.addEventListener(f,(e=>{v=!0,w=!1;const t="touchstart"==f?e.targetTouches[0]:e;g.y=t.pageY||0,g.x=t.pageX||0})),document.addEventListener(p,(e=>{if(v&&!w){const t="touchstart"==f?e.targetTouches[0]:e,r=g.x-(t.pageX||0),n=g.y-(t.pageY||0);w=Math.sqrt(r*r+n*n)>10}})),document.addEventListener(m,(()=>{v=!1})),document.addEventListener("click",(e=>{y&&(e.preventDefault(),e.stopImmediatePropagation(),y=!1)}));class E{key;value;defaultValue;constructor(e,t){this.key=e,this.value=t,this.defaultValue=t,this.initialize(),window.localStorage[this.key]&&this.setValue(this.fromLocalStorage(window.localStorage[this.key]))}initialize(){}setValue(e){if(this.value==e)return;const t=this.value;this.value=e,window.localStorage[this.key]=this.toLocalStorage(e),this.handleValueChange(t,e)}}class b extends E{checkbox;initialize(){const e=document.querySelector("#tsd-filter-"+this.key);e&&(this.checkbox=e,this.checkbox.addEventListener("change",(()=>{this.setValue(this.checkbox.checked)})))}handleValueChange(e,t){this.checkbox&&(this.checkbox.checked=this.value,document.documentElement.classList.toggle("toggle-"+this.key,this.value!=this.defaultValue))}fromLocalStorage(e){return"true"==e}toLocalStorage(e){return e?"true":"false"}}class S extends E{select;initialize(){document.documentElement.classList.add("toggle-"+this.key+this.value);const e=document.querySelector("#tsd-filter-"+this.key);if(!e)return;this.select=e;const t=()=>{this.select.classList.add("active")};this.select.addEventListener(f,t),this.select.addEventListener("mouseover",t),this.select.addEventListener("mouseleave",(()=>{this.select.classList.remove("active")})),this.select.querySelectorAll("li").forEach((t=>{t.addEventListener(m,(t=>{e.classList.remove("active"),this.setValue(t.target.dataset.value||"")}))})),document.addEventListener(f,(e=>{this.select.contains(e.target)||this.select.classList.remove("active")}))}handleValueChange(e,t){this.select.querySelectorAll("li.selected").forEach((e=>{e.classList.remove("selected")}));const r=this.select.querySelector('li[data-value="'+t+'"]'),n=this.select.querySelector(".tsd-select-label");r&&n&&(r.classList.add("selected"),n.textContent=r.textContent),document.documentElement.classList.remove("toggle-"+e),document.documentElement.classList.add("toggle-"+t)}fromLocalStorage(e){return e}toLocalStorage(e){return e}}class k extends n{optionVisibility;optionInherited;optionExternals;constructor(e){super(e),this.optionVisibility=new S("visibility","private"),this.optionInherited=new b("inherited",!0),this.optionExternals=new b("externals",!0)}static isSupported(){try{return void 0!==window.localStorage}catch(e){return!1}}}!function(){const e=document.getElementById("tsd-search");if(!e)return;const t=document.getElementById("search-script");e.classList.add("loading"),t&&(t.addEventListener("error",(()=>{e.classList.remove("loading"),e.classList.add("failure")})),t.addEventListener("load",(()=>{e.classList.remove("loading"),e.classList.add("ready")})),window.searchData&&e.classList.remove("loading"));const r=document.querySelector("#tsd-search-field"),n=document.querySelector(".results");if(!r||!n)throw new Error("The input field or the result list wrapper was not found");let i=!1;n.addEventListener("mousedown",(()=>i=!0)),n.addEventListener("mouseup",(()=>{i=!1,e.classList.remove("has-focus")})),r.addEventListener("focus",(()=>e.classList.add("has-focus"))),r.addEventListener("blur",(()=>{i||(i=!1,e.classList.remove("has-focus"))}));const s={base:e.dataset.base+"/"};!function(e,t,r,n){r.addEventListener("input",((e,t=100)=>{let r;return(...n)=>{clearTimeout(r),r=setTimeout((()=>e(n)),t)}})((()=>{!async function(e,t,r,n){if(await async function(e,t){if(!e.index&&window.searchData){t.classList.remove("loading"),t.classList.add("ready");const r=await fetch(window.searchData),n=new Blob([await r.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(n).json();e.data=i,e.index=a.Index.load(i.index)}}(n,e),!n.index||!n.data)return;t.textContent="";const i=r.value.trim();let s=n.index.search(`*${i}*`);for(let e=0,r=Math.min(10,s.length);e<r;e++){const r=n.data.rows[Number(s[e].ref)];let o=c(r.name,i);r.parent&&(o=`<span class="parent">${c(r.parent,i)}.</span>${o}`);const a=document.createElement("li");a.classList.value=r.classes;const l=document.createElement("a");l.href=n.base+r.url,l.classList.add("tsd-kind-icon"),l.innerHTML=o,a.append(l),t.appendChild(a)}}(e,t,r,n)}),200));let i=!1;r.addEventListener("keydown",(e=>{i=!0,"Enter"==e.key?function(e,t){let r=e.querySelector(".current");if(r||(r=e.querySelector("li:first-child")),r){const e=r.querySelector("a");e&&(window.location.href=e.href),t.blur()}}(t,r):"Escape"==e.key?r.blur():"ArrowUp"==e.key?l(t,-1):"ArrowDown"===e.key?l(t,1):i=!1})),r.addEventListener("keypress",(e=>{i&&e.preventDefault()})),document.body.addEventListener("keydown",(e=>{e.altKey||e.ctrlKey||e.metaKey||r.matches(":focus")||"/"!==e.key||(r.focus(),e.preventDefault())}))}(e,n,r,s)}(),t(class extends n{anchors=[];index=-1;constructor(e){super(e),o.instance.addEventListener("resize",(()=>this.onResize())),o.instance.addEventListener("scroll",(e=>this.onScroll(e))),this.createAnchors()}createAnchors(){let e=window.location.href;-1!=e.indexOf("#")&&(e=e.substr(0,e.indexOf("#"))),this.el.querySelectorAll("a").forEach((t=>{const r=t.href;if(-1==r.indexOf("#"))return;if(r.substr(0,e.length)!=e)return;const n=r.substr(r.indexOf("#")+1),i=document.querySelector("a.tsd-anchor[name="+n+"]"),s=t.parentNode;i&&s&&this.anchors.push({link:s,anchor:i,position:0})})),this.onResize()}onResize(){let e;for(let t=0,r=this.anchors.length;t<r;t++){e=this.anchors[t];const r=e.anchor.getBoundingClientRect();e.position=r.top+document.body.scrollTop}this.anchors.sort(((e,t)=>e.position-t.position));const t=new CustomEvent("scroll",{detail:{scrollTop:o.instance.scrollTop}});this.onScroll(t)}onScroll(e){const t=e.detail.scrollTop+5,r=this.anchors,n=r.length-1;let i=this.index;for(;i>-1&&r[i].position>t;)i-=1;for(;i<n&&r[i+1].position<t;)i+=1;this.index!=i&&(this.index>-1&&this.anchors[this.index].link.classList.remove("focus"),this.index=i,this.index>-1&&this.anchors[this.index].link.classList.add("focus"))}},".menu-highlight"),t(class extends n{groups=[];container;index=-1;constructor(e){super(e),this.createGroups(),this.container&&(this.el.classList.add("active"),Array.from(this.el.children).forEach((e=>{e.addEventListener("touchstart",(e=>this.onClick(e))),e.addEventListener("click",(e=>this.onClick(e)))})),this.container.classList.add("active"),this.setIndex(0))}setIndex(e){if(e<0&&(e=0),e>this.groups.length-1&&(e=this.groups.length-1),this.index==e)return;const t=this.groups[e];if(this.index>-1){const e=this.groups[this.index];e.removeClass("current").addClass("fade-out"),t.addClass("current"),t.addClass("fade-in"),o.instance.triggerResize(),setTimeout((()=>{e.removeClass("fade-out"),t.removeClass("fade-in")}),300)}else t.addClass("current"),o.instance.triggerResize();this.index=e}createGroups(){const e=this.el.children;if(e.length<2)return;this.container=this.el.nextElementSibling;const t=this.container.children;this.groups=[];for(let r=0;r<e.length;r++)this.groups.push(new h(e[r],t[r]))}onClick(e){this.groups.forEach(((t,r)=>{t.signature===e.currentTarget&&this.setIndex(r)}))}},".tsd-signatures"),t(class extends n{active;className;constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(m,(e=>this.onPointerUp(e))),this.el.addEventListener("click",(e=>e.preventDefault())),document.addEventListener(f,(e=>this.onDocumentPointerDown(e))),document.addEventListener(m,(e=>this.onDocumentPointerUp(e)))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);const t=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(t),setTimeout((()=>document.documentElement.classList.remove(t)),500)}onPointerUp(e){w||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-menu, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!w&&this.active&&e.target.closest(".col-menu")){const t=e.target.closest("a");if(t){let e=window.location.href;-1!=e.indexOf("#")&&(e=e.substr(0,e.indexOf("#"))),t.href.substr(0,e.length)==e&&setTimeout((()=>this.setActive(!1)),250)}}}},"a[data-toggle]"),k.isSupported()?t(k,"#tsd-filter"):document.documentElement.classList.add("no-filter");const Q=new class{constructor(){this.createComponents(document.body)}createComponents(t){e.forEach((e=>{t.querySelectorAll(e.selector).forEach((t=>{t.dataset.hasInstance||(new e.constructor({el:t}),t.dataset.hasInstance=String(!0))}))}))}};Object.defineProperty(window,"app",{value:Q})}()}();