iframe-coordinator-cli 6.4.0 → 6.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/assets/index-DEUCFuke.css +1 -0
  2. package/dist/assets/index-DejhDHus.js +57 -0
  3. package/dist/favicon.svg +1 -0
  4. package/dist/ifc-docs/assets/hierarchy.js +1 -1
  5. package/dist/ifc-docs/assets/highlight.css +130 -91
  6. package/dist/ifc-docs/assets/icons.js +20 -17
  7. package/dist/ifc-docs/assets/icons.svg +1 -1
  8. package/dist/ifc-docs/assets/main.js +2535 -5
  9. package/dist/ifc-docs/assets/navigation.js +2 -1
  10. package/dist/ifc-docs/assets/search.js +2 -1
  11. package/dist/ifc-docs/assets/style.css +1571 -1581
  12. package/dist/ifc-docs/classes/client.Client.html +2388 -99
  13. package/dist/ifc-docs/classes/client.WorkerClient.html +2164 -0
  14. package/dist/ifc-docs/classes/host.FrameRouterElement.html +850 -24
  15. package/dist/ifc-docs/classes/host.WorkerPool.html +879 -0
  16. package/dist/ifc-docs/documents/client-setup.html +579 -75
  17. package/dist/ifc-docs/functions/host.registerCustomElements.html +218 -3
  18. package/dist/ifc-docs/hierarchy.html +168 -1
  19. package/dist/ifc-docs/index.html +432 -31
  20. package/dist/ifc-docs/interfaces/client.ClientConfigOptions.html +331 -4
  21. package/dist/ifc-docs/interfaces/client.EventEmitter.html +752 -0
  22. package/dist/ifc-docs/interfaces/host.ClientConfig.html +399 -7
  23. package/dist/ifc-docs/interfaces/host.ClientRegistration.html +580 -24
  24. package/dist/ifc-docs/interfaces/host.RoutingMap.html +211 -4
  25. package/dist/ifc-docs/interfaces/host.WorkerAppData.html +388 -0
  26. package/dist/ifc-docs/interfaces/host.WorkerConfig.html +398 -0
  27. package/dist/ifc-docs/interfaces/host.WorkerItem.html +401 -0
  28. package/dist/ifc-docs/interfaces/host.WorkerRegistry.html +210 -0
  29. package/dist/ifc-docs/interfaces/messages.Breadcrumb.html +373 -0
  30. package/dist/ifc-docs/interfaces/messages.EnvData.html +510 -0
  31. package/dist/ifc-docs/interfaces/messages.KeyData.html +540 -0
  32. package/dist/ifc-docs/interfaces/messages.ModalRequest.html +381 -0
  33. package/dist/ifc-docs/interfaces/messages.NavRequest.html +390 -0
  34. package/dist/ifc-docs/interfaces/messages.Notification.html +435 -0
  35. package/dist/ifc-docs/interfaces/messages.PageMetadata.html +438 -0
  36. package/dist/ifc-docs/interfaces/messages.PromptOnLeave.html +390 -0
  37. package/dist/ifc-docs/interfaces/messages.Publication.html +443 -0
  38. package/dist/ifc-docs/modules/client.html +742 -2
  39. package/dist/ifc-docs/modules/host.html +647 -1
  40. package/dist/ifc-docs/modules/messages.html +462 -0
  41. package/dist/ifc-docs/modules.html +359 -1
  42. package/dist/ifc-docs/types/client.EnvDataHandler.html +239 -5
  43. package/dist/ifc-docs/types/client.EventHandler.html +247 -2
  44. package/dist/index.html +3 -3
  45. package/package.json +3 -4
  46. package/dist/assets/index-BLdxgMq2.css +0 -1
  47. package/dist/assets/index-IcxzuslN.js +0 -49
  48. package/dist/ifc-docs/classes/client.EventEmitter.html +0 -14
  49. package/dist/ifc-docs/interfaces/client.Breadcrumb.html +0 -6
  50. package/dist/ifc-docs/interfaces/client.EnvData.html +0 -11
  51. package/dist/ifc-docs/interfaces/client.KeyData.html +0 -12
  52. package/dist/ifc-docs/interfaces/client.ModalRequest.html +0 -6
  53. package/dist/ifc-docs/interfaces/client.NavRequest.html +0 -9
  54. package/dist/ifc-docs/interfaces/client.Notification.html +0 -9
  55. package/dist/ifc-docs/interfaces/client.PageMetadata.html +0 -8
  56. package/dist/ifc-docs/interfaces/client.PromptOnLeave.html +0 -9
  57. package/dist/ifc-docs/interfaces/client.Publication.html +0 -11
@@ -1,9 +1,2539 @@
1
1
  "use strict";
2
- window.translations={"copy":"Copy","copied":"Copied!","normally_hidden":"This member is normally hidden due to your filter settings.","hierarchy_expand":"Expand","hierarchy_collapse":"Collapse","folder":"Folder","search_index_not_available":"The search index is not available","search_no_results_found_for_0":"No results found for {0}","kind_1":"Project","kind_2":"Module","kind_4":"Namespace","kind_8":"Enumeration","kind_16":"Enumeration Member","kind_32":"Variable","kind_64":"Function","kind_128":"Class","kind_256":"Interface","kind_512":"Constructor","kind_1024":"Property","kind_2048":"Method","kind_4096":"Call Signature","kind_8192":"Index Signature","kind_16384":"Constructor Signature","kind_32768":"Parameter","kind_65536":"Type Literal","kind_131072":"Type Parameter","kind_262144":"Accessor","kind_524288":"Get Signature","kind_1048576":"Set Signature","kind_2097152":"Type Alias","kind_4194304":"Reference","kind_8388608":"Document"};
3
- "use strict";(()=>{var Ke=Object.create;var he=Object.defineProperty;var Ge=Object.getOwnPropertyDescriptor;var Ze=Object.getOwnPropertyNames;var Xe=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty;var et=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var tt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ze(e))!Ye.call(t,i)&&i!==n&&he(t,i,{get:()=>e[i],enumerable:!(r=Ge(e,i))||r.enumerable});return t};var nt=(t,e,n)=>(n=t!=null?Ke(Xe(t)):{},tt(e||!t||!t.__esModule?he(n,"default",{value:t,enumerable:!0}):n,t));var ye=et((me,ge)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=(function(e){return function(n){e.console&&console.warn&&console.warn(n)}})(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i<r.length;i++){var s=r[i],o=e[s];if(Array.isArray(o)){n[s]=o.slice();continue}if(typeof o=="string"||typeof o=="number"||typeof o=="boolean"){n[s]=o;continue}throw new TypeError("clone is not deep and does not support nested objects")}return n},t.FieldRef=function(e,n,r){this.docRef=e,this.fieldName=n,this._stringValue=r},t.FieldRef.joiner="/",t.FieldRef.fromString=function(e){var n=e.indexOf(t.FieldRef.joiner);if(n===-1)throw"malformed field ref string";var r=e.slice(0,n),i=e.slice(n+1);return new t.FieldRef(i,r,e)},t.FieldRef.prototype.toString=function(){return this._stringValue==null&&(this._stringValue=this.fieldName+t.FieldRef.joiner+this.docRef),this._stringValue};t.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var n=0;n<this.length;n++)this.elements[e[n]]=!0}else this.length=0},t.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},t.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},t.Set.prototype.contains=function(e){return!!this.elements[e]},t.Set.prototype.intersect=function(e){var n,r,i,s=[];if(e===t.Set.complete)return this;if(e===t.Set.empty)return e;this.length<e.length?(n=this,r=e):(n=e,r=this),i=Object.keys(n.elements);for(var o=0;o<i.length;o++){var a=i[o];a in r.elements&&s.push(a)}return new t.Set(s)},t.Set.prototype.union=function(e){return e===t.Set.complete?t.Set.complete:e===t.Set.empty?this:new t.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},t.idf=function(e,n){var r=0;for(var i in e)i!="_index"&&(r+=Object.keys(e[i]).length);var s=(n-r+.5)/(r+.5);return Math.log(1+Math.abs(s))},t.Token=function(e,n){this.str=e||"",this.metadata=n||{}},t.Token.prototype.toString=function(){return this.str},t.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},t.Token.prototype.clone=function(e){return e=e||function(n){return n},new t.Token(e(this.str,this.metadata),this.metadata)};t.tokenizer=function(e,n){if(e==null||e==null)return[];if(Array.isArray(e))return e.map(function(f){return new t.Token(t.utils.asString(f).toLowerCase(),t.utils.clone(n))});for(var r=e.toString().toLowerCase(),i=r.length,s=[],o=0,a=0;o<=i;o++){var c=r.charAt(o),l=o-a;if(c.match(t.tokenizer.separator)||o==i){if(l>0){var d=t.utils.clone(n)||{};d.position=[a,l],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index.
4
- `,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r<n;r++){for(var i=this._stack[r],s=[],o=0;o<e.length;o++){var a=i(e[o],o,e);if(!(a==null||a===""))if(Array.isArray(a))for(var c=0;c<a.length;c++)s.push(a[c]);else s.push(a)}e=s}return e},t.Pipeline.prototype.runString=function(e,n){var r=new t.Token(e,n);return this.run([r]).map(function(i){return i.toString()})},t.Pipeline.prototype.reset=function(){this._stack=[]},t.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})};t.Vector=function(e){this._magnitude=0,this.elements=e||[]},t.Vector.prototype.positionForIndex=function(e){if(this.elements.length==0)return 0;for(var n=0,r=this.elements.length/2,i=r-n,s=Math.floor(i/2),o=this.elements[s*2];i>1&&(o<e&&(n=s),o>e&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(o<e)return(s+1)*2},t.Vector.prototype.insert=function(e,n){this.upsert(e,n,function(){throw"duplicate index"})},t.Vector.prototype.upsert=function(e,n,r){this._magnitude=0;var i=this.positionForIndex(e);this.elements[i]==e?this.elements[i+1]=r(this.elements[i+1],n):this.elements.splice(i,0,e,n)},t.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,n=this.elements.length,r=1;r<n;r+=2){var i=this.elements[r];e+=i*i}return this._magnitude=Math.sqrt(e)},t.Vector.prototype.dot=function(e){for(var n=0,r=this.elements,i=e.elements,s=r.length,o=i.length,a=0,c=0,l=0,d=0;l<s&&d<o;)a=r[l],c=i[d],a<c?l+=2:a>c?d+=2:a==c&&(n+=r[l+1]*i[d+1],l+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n<this.elements.length;n+=2,r++)e[r]=this.elements[n];return e},t.Vector.prototype.toJSON=function(){return this.elements};t.stemmer=(function(){var e={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"},n={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},r="[^aeiou]",i="[aeiouy]",s=r+"[^aeiouy]*",o=i+"[aeiou]*",a="^("+s+")?"+o+s,c="^("+s+")?"+o+s+"("+o+")?$",l="^("+s+")?"+o+s+o+s,d="^("+s+")?"+i,f=new RegExp(a),p=new RegExp(l),v=new RegExp(c),x=new RegExp(d),w=/^(.+?)(ss|i)es$/,m=/^(.+?)([^s])s$/,g=/^(.+?)eed$/,T=/^(.+?)(ed|ing)$/,L=/.$/,C=/(at|bl|iz)$/,O=new RegExp("([^aeiouylsz])\\1$"),j=new RegExp("^"+s+i+"[^aeiouwxy]$"),N=/^(.+?[^aeiou])y$/,q=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,W=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,B=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,z=/^(.+?)(s|t)(ion)$/,_=/^(.+?)e$/,U=/ll$/,J=new RegExp("^"+s+i+"[^aeiouwxy]$"),V=function(u){var y,P,k,h,E,Q,H;if(u.length<3)return u;if(k=u.substr(0,1),k=="y"&&(u=k.toUpperCase()+u.substr(1)),h=w,E=m,h.test(u)?u=u.replace(h,"$1$2"):E.test(u)&&(u=u.replace(E,"$1$2")),h=g,E=T,h.test(u)){var b=h.exec(u);h=f,h.test(b[1])&&(h=L,u=u.replace(h,""))}else if(E.test(u)){var b=E.exec(u);y=b[1],E=x,E.test(y)&&(u=y,E=C,Q=O,H=j,E.test(u)?u=u+"e":Q.test(u)?(h=L,u=u.replace(h,"")):H.test(u)&&(u=u+"e"))}if(h=N,h.test(u)){var b=h.exec(u);y=b[1],u=y+"i"}if(h=q,h.test(u)){var b=h.exec(u);y=b[1],P=b[2],h=f,h.test(y)&&(u=y+e[P])}if(h=W,h.test(u)){var b=h.exec(u);y=b[1],P=b[2],h=f,h.test(y)&&(u=y+n[P])}if(h=B,E=z,h.test(u)){var b=h.exec(u);y=b[1],h=p,h.test(y)&&(u=y)}else if(E.test(u)){var b=E.exec(u);y=b[1]+b[2],E=p,E.test(y)&&(u=y)}if(h=_,h.test(u)){var b=h.exec(u);y=b[1],h=p,E=v,Q=J,(h.test(y)||E.test(y)&&!Q.test(y))&&(u=y)}return h=U,E=p,h.test(u)&&E.test(u)&&(h=L,u=u.replace(h,"")),k=="y"&&(u=k.toLowerCase()+u.substr(1)),u};return function(A){return A.update(V)}})(),t.Pipeline.registerFunction(t.stemmer,"stemmer");t.generateStopWordFilter=function(e){var n=e.reduce(function(r,i){return r[i]=i,r},{});return function(r){if(r&&n[r.toString()]!==r.toString())return r}},t.stopWordFilter=t.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"]),t.Pipeline.registerFunction(t.stopWordFilter,"stopWordFilter");t.trimmer=function(e){return e.update(function(n){return n.replace(/^\W+/,"").replace(/\W+$/,"")})},t.Pipeline.registerFunction(t.trimmer,"trimmer");t.TokenSet=function(){this.final=!1,this.edges={},this.id=t.TokenSet._nextId,t.TokenSet._nextId+=1},t.TokenSet._nextId=1,t.TokenSet.fromArray=function(e){for(var n=new t.TokenSet.Builder,r=0,i=e.length;r<i;r++)n.insert(e[r]);return n.finish(),n.root},t.TokenSet.fromClause=function(e){return"editDistance"in e?t.TokenSet.fromFuzzyString(e.term,e.editDistance):t.TokenSet.fromString(e.term)},t.TokenSet.fromFuzzyString=function(e,n){for(var r=new t.TokenSet,i=[{node:r,editsRemaining:n,str:e}];i.length;){var s=i.pop();if(s.str.length>0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var c=s.node.edges["*"];else{var c=new t.TokenSet;s.node.edges["*"]=c}if(s.str.length==0&&(c.final=!0),i.push({node:c,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}s.str.length==1&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),f=s.str.charAt(1),p;f in s.node.edges?p=s.node.edges[f]:(p=new t.TokenSet,s.node.edges[f]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i<s;i++){var o=e[i],a=i==s-1;if(o=="*")n.edges[o]=n,n.final=a;else{var c=new t.TokenSet;c.final=a,n.edges[o]=c,n=c}}return r},t.TokenSet.prototype.toArray=function(){for(var e=[],n=[{prefix:"",node:this}];n.length;){var r=n.pop(),i=Object.keys(r.node.edges),s=i.length;r.node.final&&(r.prefix.charAt(0),e.push(r.prefix));for(var o=0;o<s;o++){var a=i[o];n.push({prefix:r.prefix.concat(a),node:r.node.edges[a]})}}return e},t.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",n=Object.keys(this.edges).sort(),r=n.length,i=0;i<r;i++){var s=n[i],o=this.edges[s];e=e+s+o.id}return e},t.TokenSet.prototype.intersect=function(e){for(var n=new t.TokenSet,r=void 0,i=[{qNode:e,output:n,node:this}];i.length;){r=i.pop();for(var s=Object.keys(r.qNode.edges),o=s.length,a=Object.keys(r.node.edges),c=a.length,l=0;l<o;l++)for(var d=s[l],f=0;f<c;f++){var p=a[f];if(p==d||d=="*"){var v=r.node.edges[p],x=r.qNode.edges[d],w=v.final&&x.final,m=void 0;p in r.output.edges?(m=r.output.edges[p],m.final=m.final||w):(m=new t.TokenSet,m.final=w,r.output.edges[p]=m),i.push({qNode:x,output:m,node:v})}}}return n},t.TokenSet.Builder=function(){this.previousWord="",this.root=new t.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},t.TokenSet.Builder.prototype.insert=function(e){var n,r=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<e.length&&i<this.previousWord.length&&e[i]==this.previousWord[i];i++)r++;this.minimize(r),this.uncheckedNodes.length==0?n=this.root:n=this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(var i=r;i<e.length;i++){var s=new t.TokenSet,o=e[i];n.edges[o]=s,this.uncheckedNodes.push({parent:n,char:o,child:s}),n=s}n.final=!0,this.previousWord=e},t.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},t.TokenSet.Builder.prototype.minimize=function(e){for(var n=this.uncheckedNodes.length-1;n>=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),c=0;c<this.fields.length;c++)i[this.fields[c]]=new t.Vector;e.call(n,n);for(var c=0;c<n.clauses.length;c++){var l=n.clauses[c],d=null,f=t.Set.empty;l.usePipeline?d=this.pipeline.runString(l.term,{fields:l.fields}):d=[l.term];for(var p=0;p<d.length;p++){var v=d[p];l.term=v;var x=t.TokenSet.fromClause(l),w=this.tokenSet.intersect(x).toArray();if(w.length===0&&l.presence===t.Query.presence.REQUIRED){for(var m=0;m<l.fields.length;m++){var g=l.fields[m];o[g]=t.Set.empty}break}for(var T=0;T<w.length;T++)for(var L=w[T],C=this.invertedIndex[L],O=C._index,m=0;m<l.fields.length;m++){var g=l.fields[m],j=C[g],N=Object.keys(j),q=L+"/"+g,W=new t.Set(N);if(l.presence==t.Query.presence.REQUIRED&&(f=f.union(W),o[g]===void 0&&(o[g]=t.Set.complete)),l.presence==t.Query.presence.PROHIBITED){a[g]===void 0&&(a[g]=t.Set.empty),a[g]=a[g].union(W);continue}if(i[g].upsert(O,l.boost,function(Ue,Je){return Ue+Je}),!s[q]){for(var B=0;B<N.length;B++){var z=N[B],_=new t.FieldRef(z,g),U=j[z],J;(J=r[_])===void 0?r[_]=new t.MatchData(L,g,U):J.add(L,g,U)}s[q]=!0}}}if(l.presence===t.Query.presence.REQUIRED)for(var m=0;m<l.fields.length;m++){var g=l.fields[m];o[g]=o[g].intersect(f)}}for(var V=t.Set.complete,A=t.Set.empty,c=0;c<this.fields.length;c++){var g=this.fields[c];o[g]&&(V=V.intersect(o[g])),a[g]&&(A=A.union(a[g]))}var u=Object.keys(r),y=[],P=Object.create(null);if(n.isNegated()){u=Object.keys(this.fieldVectors);for(var c=0;c<u.length;c++){var _=u[c],k=t.FieldRef.fromString(_);r[_]=new t.MatchData}}for(var c=0;c<u.length;c++){var k=t.FieldRef.fromString(u[c]),h=k.docRef;if(V.contains(h)&&!A.contains(h)){var E=this.fieldVectors[k],Q=i[k.fieldName].similarity(E),H;if((H=P[h])!==void 0)H.score+=Q,H.matchData.combine(r[k]);else{var b={ref:h,score:Q,matchData:r[k]};P[h]=b,y.push(b)}}}return y.sort(function(We,ze){return ze.score-We.score})},t.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map(function(r){return[r,this.invertedIndex[r]]},this),n=Object.keys(this.fieldVectors).map(function(r){return[r,this.fieldVectors[r].toJSON()]},this);return{version:t.version,fields:this.fields,fieldVectors:n,invertedIndex:e,pipeline:this.pipeline.toJSON()}},t.Index.load=function(e){var n={},r={},i=e.fieldVectors,s=Object.create(null),o=e.invertedIndex,a=new t.TokenSet.Builder,c=t.Pipeline.load(e.pipeline);e.version!=t.version&&t.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+t.version+"' does not match serialized index '"+e.version+"'");for(var l=0;l<i.length;l++){var d=i[l],f=d[0],p=d[1];r[f]=new t.Vector(p)}for(var l=0;l<o.length;l++){var d=o[l],v=d[0],x=d[1];a.insert(v),s[v]=x}return a.finish(),n.fields=e.fields,n.fieldVectors=r,n.invertedIndex=s,n.tokenSet=a.root,n.pipeline=c,new t.Index(n)};t.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=t.tokenizer,this.pipeline=new t.Pipeline,this.searchPipeline=new t.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},t.Builder.prototype.ref=function(e){this._ref=e},t.Builder.prototype.field=function(e,n){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=n||{}},t.Builder.prototype.b=function(e){e<0?this._b=0:e>1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s<i.length;s++){var o=i[s],a=this._fields[o].extractor,c=a?a(e):e[o],l=this.tokenizer(c,{fields:[o]}),d=this.pipeline.run(l),f=new t.FieldRef(r,o),p=Object.create(null);this.fieldTermFrequencies[f]=p,this.fieldLengths[f]=0,this.fieldLengths[f]+=d.length;for(var v=0;v<d.length;v++){var x=d[v];if(p[x]==null&&(p[x]=0),p[x]+=1,this.invertedIndex[x]==null){var w=Object.create(null);w._index=this.termIndex,this.termIndex+=1;for(var m=0;m<i.length;m++)w[i[m]]=Object.create(null);this.invertedIndex[x]=w}this.invertedIndex[x][o][r]==null&&(this.invertedIndex[x][o][r]=Object.create(null));for(var g=0;g<this.metadataWhitelist.length;g++){var T=this.metadataWhitelist[g],L=x.metadata[T];this.invertedIndex[x][o][r][T]==null&&(this.invertedIndex[x][o][r][T]=[]),this.invertedIndex[x][o][r][T].push(L)}}}},t.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),n=e.length,r={},i={},s=0;s<n;s++){var o=t.FieldRef.fromString(e[s]),a=o.fieldName;i[a]||(i[a]=0),i[a]+=1,r[a]||(r[a]=0),r[a]+=this.fieldLengths[o]}for(var c=Object.keys(this._fields),s=0;s<c.length;s++){var l=c[s];r[l]=r[l]/i[l]}this.averageFieldLength=r},t.Builder.prototype.createFieldVectors=function(){for(var e={},n=Object.keys(this.fieldTermFrequencies),r=n.length,i=Object.create(null),s=0;s<r;s++){for(var o=t.FieldRef.fromString(n[s]),a=o.fieldName,c=this.fieldLengths[o],l=new t.Vector,d=this.fieldTermFrequencies[o],f=Object.keys(d),p=f.length,v=this._fields[a].boost||1,x=this._documents[o.docRef].boost||1,w=0;w<p;w++){var m=f[w],g=d[m],T=this.invertedIndex[m]._index,L,C,O;i[m]===void 0?(L=t.idf(this.invertedIndex[m],this.documentCount),i[m]=L):L=i[m],C=L*((this._k1+1)*g)/(this._k1*(1-this._b+this._b*(c/this.averageFieldLength[a]))+g),C*=v,C*=x,O=Math.round(C*1e3)/1e3,l.insert(T,O)}e[o]=l}this.fieldVectors=e},t.Builder.prototype.createTokenSet=function(){this.tokenSet=t.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},t.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new t.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},t.Builder.prototype.use=function(e){var n=Array.prototype.slice.call(arguments,1);n.unshift(this),e.apply(this,n)},t.MatchData=function(e,n,r){for(var i=Object.create(null),s=Object.keys(r||{}),o=0;o<s.length;o++){var a=s[o];i[a]=r[a].slice()}this.metadata=Object.create(null),e!==void 0&&(this.metadata[e]=Object.create(null),this.metadata[e][n]=i)},t.MatchData.prototype.combine=function(e){for(var n=Object.keys(e.metadata),r=0;r<n.length;r++){var i=n[r],s=Object.keys(e.metadata[i]);this.metadata[i]==null&&(this.metadata[i]=Object.create(null));for(var o=0;o<s.length;o++){var a=s[o],c=Object.keys(e.metadata[i][a]);this.metadata[i][a]==null&&(this.metadata[i][a]=Object.create(null));for(var l=0;l<c.length;l++){var d=c[l];this.metadata[i][a][d]==null?this.metadata[i][a][d]=e.metadata[i][a][d]:this.metadata[i][a][d]=this.metadata[i][a][d].concat(e.metadata[i][a][d])}}}},t.MatchData.prototype.add=function(e,n,r){if(!(e in this.metadata)){this.metadata[e]=Object.create(null),this.metadata[e][n]=r;return}if(!(n in this.metadata[e])){this.metadata[e][n]=r;return}for(var i=Object.keys(r),s=0;s<i.length;s++){var o=i[s];o in this.metadata[e][n]?this.metadata[e][n][o]=this.metadata[e][n][o].concat(r[o]):this.metadata[e][n][o]=r[o]}},t.Query=function(e){this.clauses=[],this.allFields=e},t.Query.wildcard=new String("*"),t.Query.wildcard.NONE=0,t.Query.wildcard.LEADING=1,t.Query.wildcard.TRAILING=2,t.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},t.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=t.Query.wildcard.NONE),e.wildcard&t.Query.wildcard.LEADING&&e.term.charAt(0)!=t.Query.wildcard&&(e.term="*"+e.term),e.wildcard&t.Query.wildcard.TRAILING&&e.term.slice(-1)!=t.Query.wildcard&&(e.term=""+e.term+"*"),"presence"in e||(e.presence=t.Query.presence.OPTIONAL),this.clauses.push(e),this},t.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=t.Query.presence.PROHIBITED)return!1;return!0},t.Query.prototype.term=function(e,n){if(Array.isArray(e))return e.forEach(function(i){this.term(i,t.utils.clone(n))},this),this;var r=n||{};return r.term=e.toString(),this.clause(r),this},t.QueryParseError=function(e,n,r){this.name="QueryParseError",this.message=e,this.start=n,this.end=r},t.QueryParseError.prototype=new Error,t.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},t.QueryLexer.prototype.run=function(){for(var e=t.QueryLexer.lexText;e;)e=e(this)},t.QueryLexer.prototype.sliceString=function(){for(var e=[],n=this.start,r=this.pos,i=0;i<this.escapeCharPositions.length;i++)r=this.escapeCharPositions[i],e.push(this.str.slice(n,r)),n=r+1;return e.push(this.str.slice(n,this.pos)),this.escapeCharPositions.length=0,e.join("")},t.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},t.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},t.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos<this.length},t.QueryLexer.EOS="EOS",t.QueryLexer.FIELD="FIELD",t.QueryLexer.TERM="TERM",t.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",t.QueryLexer.BOOST="BOOST",t.QueryLexer.PRESENCE="PRESENCE",t.QueryLexer.lexField=function(e){return e.backup(),e.emit(t.QueryLexer.FIELD),e.ignore(),t.QueryLexer.lexText},t.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},(function(e,n){typeof define=="function"&&define.amd?define(n):typeof me=="object"?ge.exports=n():e.lunr=n()})(this,function(){return t})})()});var M,G={getItem(){return null},setItem(){}},K;try{K=localStorage,M=K}catch{K=G,M=G}var S={getItem:t=>M.getItem(t),setItem:(t,e)=>M.setItem(t,e),disableWritingLocalStorage(){M=G},disable(){localStorage.clear(),M=G},enable(){M=K}};window.TypeDoc||={disableWritingLocalStorage(){S.disableWritingLocalStorage()},disableLocalStorage:()=>{S.disable()},enableLocalStorage:()=>{S.enable()}};window.translations||={copy:"Copy",copied:"Copied!",normally_hidden:"This member is normally hidden due to your filter settings.",hierarchy_expand:"Expand",hierarchy_collapse:"Collapse",search_index_not_available:"The search index is not available",search_no_results_found_for_0:"No results found for {0}",folder:"Folder",kind_1:"Project",kind_2:"Module",kind_4:"Namespace",kind_8:"Enumeration",kind_16:"Enumeration Member",kind_32:"Variable",kind_64:"Function",kind_128:"Class",kind_256:"Interface",kind_512:"Constructor",kind_1024:"Property",kind_2048:"Method",kind_4096:"Call Signature",kind_8192:"Index Signature",kind_16384:"Constructor Signature",kind_32768:"Parameter",kind_65536:"Type Literal",kind_131072:"Type Parameter",kind_262144:"Accessor",kind_524288:"Get Signature",kind_1048576:"Set Signature",kind_2097152:"Type Alias",kind_4194304:"Reference",kind_8388608:"Document"};var pe=[];function X(t,e){pe.push({selector:e,constructor:t})}var Z=class{alwaysVisibleMember=null;constructor(){this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){pe.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!rt(e)){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r,document.querySelector(".col-sidebar").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};function rt(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)}var fe=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var Ie=nt(ye(),1);async function R(t){let e=Uint8Array.from(atob(t),s=>s.charCodeAt(0)),r=new Blob([e]).stream().pipeThrough(new DecompressionStream("deflate")),i=await new Response(r).text();return JSON.parse(i)}var Y="closing",ae="tsd-overlay";function it(){let t=Math.abs(window.innerWidth-document.documentElement.clientWidth);document.body.style.overflow="hidden",document.body.style.paddingRight=`${t}px`}function st(){document.body.style.removeProperty("overflow"),document.body.style.removeProperty("padding-right")}function xe(t,e){t.addEventListener("animationend",()=>{t.classList.contains(Y)&&(t.classList.remove(Y),document.getElementById(ae)?.remove(),t.close(),st())}),t.addEventListener("cancel",n=>{n.preventDefault(),ve(t)}),e?.closeOnClick&&document.addEventListener("click",n=>{t.open&&!t.contains(n.target)&&ve(t)},!0)}function Ee(t){if(t.open)return;let e=document.createElement("div");e.id=ae,document.body.appendChild(e),t.showModal(),it()}function ve(t){if(!t.open)return;document.getElementById(ae)?.classList.add(Y),t.classList.add(Y)}var I=class{el;app;constructor(e){this.el=e.el,this.app=e.app}};var be=document.head.appendChild(document.createElement("style"));be.dataset.for="filters";var le={};function we(t){for(let e of t.split(/\s+/))if(le.hasOwnProperty(e)&&!le[e])return!0;return!1}var ee=class extends I{key;value;constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),be.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; }
5
- `,this.app.updateIndexVisibility()}fromLocalStorage(){let e=S.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){S.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),le[`tsd-is-${this.el.name}`]=this.value,this.app.filterChanged(),this.app.updateIndexVisibility()}};var Le=0;async function Se(t,e){if(!window.searchData)return;let n=await R(window.searchData);t.data=n,t.index=Ie.Index.load(n.index),e.innerHTML=""}function _e(){let t=document.getElementById("tsd-search-trigger"),e=document.getElementById("tsd-search"),n=document.getElementById("tsd-search-input"),r=document.getElementById("tsd-search-results"),i=document.getElementById("tsd-search-script"),s=document.getElementById("tsd-search-status");if(!(t&&e&&n&&r&&i&&s))throw new Error("Search controls missing");let o={base:document.documentElement.dataset.base};o.base.endsWith("/")||(o.base+="/"),i.addEventListener("error",()=>{let a=window.translations.search_index_not_available;Pe(s,a)}),i.addEventListener("load",()=>{Se(o,s)}),Se(o,s),ot({trigger:t,searchEl:e,results:r,field:n,status:s},o)}function ot(t,e){let{field:n,results:r,searchEl:i,status:s,trigger:o}=t;xe(i,{closeOnClick:!0});function a(){Ee(i),n.setSelectionRange(0,n.value.length)}o.addEventListener("click",a),n.addEventListener("input",fe(()=>{at(r,n,s,e)},200)),n.addEventListener("keydown",l=>{if(r.childElementCount===0||l.ctrlKey||l.metaKey||l.altKey)return;let d=n.getAttribute("aria-activedescendant"),f=d?document.getElementById(d):null;if(f){let p=!1,v=!1;switch(l.key){case"Home":case"End":case"ArrowLeft":case"ArrowRight":v=!0;break;case"ArrowDown":case"ArrowUp":p=l.shiftKey;break}(p||v)&&ke(n)}if(!l.shiftKey)switch(l.key){case"Enter":f?.querySelector("a")?.click();break;case"ArrowUp":Te(r,n,f,-1),l.preventDefault();break;case"ArrowDown":Te(r,n,f,1),l.preventDefault();break}});function c(){ke(n)}n.addEventListener("change",c),n.addEventListener("blur",c),n.addEventListener("click",c),document.body.addEventListener("keydown",l=>{if(l.altKey||l.metaKey||l.shiftKey)return;let d=l.ctrlKey&&l.key==="k",f=!l.ctrlKey&&!ut()&&l.key==="/";(d||f)&&(l.preventDefault(),a())})}function at(t,e,n,r){if(!r.index||!r.data)return;t.innerHTML="",n.innerHTML="",Le+=1;let i=e.value.trim(),s;if(i){let a=i.split(" ").map(c=>c.length?`*${c}*`:"").join(" ");s=r.index.search(a).filter(({ref:c})=>{let l=r.data.rows[Number(c)].classes;return!l||!we(l)})}else s=[];if(s.length===0&&i){let a=window.translations.search_no_results_found_for_0.replace("{0}",` "<strong>${te(i)}</strong>" `);Pe(n,a);return}for(let a=0;a<s.length;a++){let c=s[a],l=r.data.rows[Number(c.ref)],d=1;l.name.toLowerCase().startsWith(i.toLowerCase())&&(d*=10/(1+Math.abs(l.name.length-i.length))),c.score*=d}s.sort((a,c)=>c.score-a.score);let o=Math.min(10,s.length);for(let a=0;a<o;a++){let c=r.data.rows[Number(s[a].ref)],d=`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" class="tsd-kind-icon" aria-label="${window.translations[`kind_${c.kind}`].replaceAll('"',"&quot;")}"><use href="#icon-${c.icon||c.kind}"></use></svg>`,f=Ce(c.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(f+=` (score: ${s[a].score.toFixed(2)})`),c.parent&&(f=`<span class="parent">
6
- ${Ce(c.parent,i)}.</span>${f}`);let p=document.createElement("li");p.id=`tsd-search:${Le}-${a}`,p.role="option",p.ariaSelected="false",p.classList.value=c.classes??"";let v=document.createElement("a");v.tabIndex=-1,v.href=r.base+c.url,v.innerHTML=d+`<span class="text">${f}</span>`,p.append(v),t.appendChild(p)}}function Te(t,e,n,r){let i;if(r===1?i=n?.nextElementSibling||t.firstElementChild:i=n?.previousElementSibling||t.lastElementChild,i!==n){if(!i||i.role!=="option"){console.error("Option missing");return}i.ariaSelected="true",i.scrollIntoView({behavior:"smooth",block:"nearest"}),e.setAttribute("aria-activedescendant",i.id),n?.setAttribute("aria-selected","false")}}function ke(t){let e=t.getAttribute("aria-activedescendant");(e?document.getElementById(e):null)?.setAttribute("aria-selected","false"),t.setAttribute("aria-activedescendant","")}function Ce(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(te(t.substring(s,o)),`<mark>${te(t.substring(o,o+r.length))}</mark>`),s=o+r.length,o=n.indexOf(r,s);return i.push(te(t.substring(s))),i.join("")}var lt={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#039;",'"':"&quot;"};function te(t){return t.replace(/[&<>"'"]/g,e=>lt[e])}function Pe(t,e){t.innerHTML=e?`<div>${e}</div>`:""}var ct=["button","checkbox","file","hidden","image","radio","range","reset","submit"];function ut(){let t=document.activeElement;return t?t.isContentEditable||t.tagName==="TEXTAREA"||t.tagName==="SEARCH"?!0:t.tagName==="INPUT"&&!ct.includes(t.type):!1}var D="mousedown",Me="mousemove",$="mouseup",ne={x:0,y:0},Qe=!1,ce=!1,dt=!1,F=!1,Oe=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(Oe?"is-mobile":"not-mobile");Oe&&"ontouchstart"in document.documentElement&&(dt=!0,D="touchstart",Me="touchmove",$="touchend");document.addEventListener(D,t=>{ce=!0,F=!1;let e=D=="touchstart"?t.targetTouches[0]:t;ne.y=e.pageY||0,ne.x=e.pageX||0});document.addEventListener(Me,t=>{if(ce&&!F){let e=D=="touchstart"?t.targetTouches[0]:t,n=ne.x-(e.pageX||0),r=ne.y-(e.pageY||0);F=Math.sqrt(n*n+r*r)>10}});document.addEventListener($,()=>{ce=!1});document.addEventListener("click",t=>{Qe&&(t.preventDefault(),t.stopImmediatePropagation(),Qe=!1)});var re=class extends I{active;className;constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener($,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(D,n=>this.onDocumentPointerDown(n)),document.addEventListener($,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){F||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!F&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var ue=new Map,de=class{open;accordions=[];key;constructor(e,n){this.key=e,this.open=n}add(e){this.accordions.push(e),e.open=this.open,e.addEventListener("toggle",()=>{this.toggle(e.open)})}toggle(e){for(let n of this.accordions)n.open=e;S.setItem(this.key,e.toString())}},ie=class extends I{constructor(e){super(e);let n=this.el.querySelector("summary"),r=n.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)});let i=`tsd-accordion-${n.dataset.key??n.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`,s;if(ue.has(i))s=ue.get(i);else{let o=S.getItem(i),a=o?o==="true":this.el.open;s=new de(i,a),ue.set(i,s)}s.add(this.el)}};function He(t){let e=S.getItem("tsd-theme")||"os";t.value=e,Ae(e),t.addEventListener("change",()=>{S.setItem("tsd-theme",t.value),Ae(t.value)})}function Ae(t){document.documentElement.dataset.theme=t}var se;function Ne(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Re),Re())}async function Re(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let e=await R(window.navigationData);se=document.documentElement.dataset.base,se.endsWith("/")||(se+="/"),t.innerHTML="";for(let n of e)Be(n,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Be(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='<svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>',De(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let c=a.appendChild(document.createElement("ul"));c.className="tsd-nested-navigation";for(let l of t.children)Be(l,c,i)}else De(t,r,t.class)}function De(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));if(r.href=se+t.path,n&&(r.className=n),location.pathname===r.pathname&&!r.href.includes("#")&&(r.classList.add("current"),r.ariaCurrent="page"),t.kind){let i=window.translations[`kind_${t.kind}`].replaceAll('"',"&quot;");r.innerHTML=`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" class="tsd-kind-icon" aria-label="${i}"><use href="#icon-${t.icon||t.kind}"></use></svg>`}r.appendChild(Fe(t.text,document.createElement("span")))}else{let r=e.appendChild(document.createElement("span")),i=window.translations.folder.replaceAll('"',"&quot;");r.innerHTML=`<svg width="20" height="20" viewBox="0 0 24 24" fill="none" class="tsd-kind-icon" aria-label="${i}"><use href="#icon-folder"></use></svg>`,r.appendChild(Fe(t.text,document.createElement("span")))}}function Fe(t,e){let n=t.split(/(?<=[^A-Z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])|(?<=[_-])(?=[^_-])/);for(let r=0;r<n.length;++r)r!==0&&e.appendChild(document.createElement("wbr")),e.appendChild(document.createTextNode(n[r]));return e}var oe=document.documentElement.dataset.base;oe.endsWith("/")||(oe+="/");function $e(){document.querySelector(".tsd-full-hierarchy")?ht():document.querySelector(".tsd-hierarchy")&&pt()}function ht(){document.addEventListener("click",r=>{let i=r.target;for(;i.parentElement&&i.parentElement.tagName!="LI";)i=i.parentElement;i.dataset.dropdown&&(i.dataset.dropdown=String(i.dataset.dropdown!=="true"))});let t=new Map,e=new Set;for(let r of document.querySelectorAll(".tsd-full-hierarchy [data-refl]")){let i=r.querySelector("ul");t.has(r.dataset.refl)?e.add(r.dataset.refl):i&&t.set(r.dataset.refl,i)}for(let r of e)n(r);function n(r){let i=t.get(r).cloneNode(!0);i.querySelectorAll("[id]").forEach(s=>{s.removeAttribute("id")}),i.querySelectorAll("[data-dropdown]").forEach(s=>{s.dataset.dropdown="false"});for(let s of document.querySelectorAll(`[data-refl="${r}"]`)){let o=gt(),a=s.querySelector("ul");s.insertBefore(o,a),o.dataset.dropdown=String(!!a),a||s.appendChild(i.cloneNode(!0))}}}function pt(){let t=document.getElementById("tsd-hierarchy-script");t&&(t.addEventListener("load",Ve),Ve())}async function Ve(){let t=document.querySelector(".tsd-panel.tsd-hierarchy:has(h4 a)");if(!t||!window.hierarchyData)return;let e=+t.dataset.refl,n=await R(window.hierarchyData),r=t.querySelector("ul"),i=document.createElement("ul");if(i.classList.add("tsd-hierarchy"),ft(i,n,e),r.querySelectorAll("li").length==i.querySelectorAll("li").length)return;let s=document.createElement("span");s.classList.add("tsd-hierarchy-toggle"),s.textContent=window.translations.hierarchy_expand,t.querySelector("h4 a")?.insertAdjacentElement("afterend",s),s.insertAdjacentText("beforebegin",", "),s.addEventListener("click",()=>{s.textContent===window.translations.hierarchy_expand?(r.insertAdjacentElement("afterend",i),r.remove(),s.textContent=window.translations.hierarchy_collapse):(i.insertAdjacentElement("afterend",r),i.remove(),s.textContent=window.translations.hierarchy_expand)})}function ft(t,e,n){let r=e.roots.filter(i=>mt(e,i,n));for(let i of r)t.appendChild(je(e,i,n))}function je(t,e,n,r=new Set){if(r.has(e))return;r.add(e);let i=t.reflections[e],s=document.createElement("li");if(s.classList.add("tsd-hierarchy-item"),e===n){let o=s.appendChild(document.createElement("span"));o.textContent=i.name,o.classList.add("tsd-hierarchy-target")}else{for(let a of i.uniqueNameParents||[]){let c=t.reflections[a],l=s.appendChild(document.createElement("a"));l.textContent=c.name,l.href=oe+c.url,l.className=c.class+" tsd-signature-type",s.append(document.createTextNode("."))}let o=s.appendChild(document.createElement("a"));o.textContent=t.reflections[e].name,o.href=oe+i.url,o.className=i.class+" tsd-signature-type"}if(i.children){let o=s.appendChild(document.createElement("ul"));o.classList.add("tsd-hierarchy");for(let a of i.children){let c=je(t,a,n,r);c&&o.appendChild(c)}}return r.delete(e),s}function mt(t,e,n){if(e===n)return!0;let r=new Set,i=[t.reflections[e]];for(;i.length;){let s=i.pop();if(!r.has(s)){r.add(s);for(let o of s.children||[]){if(o===n)return!0;i.push(t.reflections[o])}}}return!1}function gt(){let t=document.createElementNS("http://www.w3.org/2000/svg","svg");return t.setAttribute("width","20"),t.setAttribute("height","20"),t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.innerHTML='<use href="#icon-chevronDown"></use>',t}X(re,"a[data-toggle]");X(ie,".tsd-accordion");X(ee,".tsd-filter-item input[type=checkbox]");var qe=document.getElementById("tsd-theme");qe&&He(qe);var yt=new Z;Object.defineProperty(window,"app",{value:yt});_e();Ne();$e();"virtualKeyboard"in navigator&&(navigator.virtualKeyboard.overlaysContent=!0);})();
2
+ window.translations = {
3
+ copy: "Copy",
4
+ copied: "Copied!",
5
+ normally_hidden:
6
+ "This member is normally hidden due to your filter settings.",
7
+ hierarchy_expand: "Expand",
8
+ hierarchy_collapse: "Collapse",
9
+ folder: "Folder",
10
+ search_index_not_available: "The search index is not available",
11
+ search_no_results_found_for_0: "No results found for {0}",
12
+ kind_1: "Project",
13
+ kind_2: "Module",
14
+ kind_4: "Namespace",
15
+ kind_8: "Enumeration",
16
+ kind_16: "Enumeration Member",
17
+ kind_32: "Variable",
18
+ kind_64: "Function",
19
+ kind_128: "Class",
20
+ kind_256: "Interface",
21
+ kind_512: "Constructor",
22
+ kind_1024: "Property",
23
+ kind_2048: "Method",
24
+ kind_4096: "Call Signature",
25
+ kind_8192: "Index Signature",
26
+ kind_16384: "Constructor Signature",
27
+ kind_32768: "Parameter",
28
+ kind_65536: "Type Literal",
29
+ kind_131072: "Type Parameter",
30
+ kind_262144: "Accessor",
31
+ kind_524288: "Get Signature",
32
+ kind_1048576: "Set Signature",
33
+ kind_2097152: "Type Alias",
34
+ kind_4194304: "Reference",
35
+ kind_8388608: "Document",
36
+ };
37
+ ("use strict");
38
+ (() => {
39
+ var Ke = Object.create;
40
+ var he = Object.defineProperty;
41
+ var Ge = Object.getOwnPropertyDescriptor;
42
+ var Ze = Object.getOwnPropertyNames;
43
+ var Xe = Object.getPrototypeOf,
44
+ Ye = Object.prototype.hasOwnProperty;
45
+ var et = (t, e) => () => (
46
+ e || t((e = { exports: {} }).exports, e),
47
+ e.exports
48
+ );
49
+ var tt = (t, e, n, r) => {
50
+ if ((e && typeof e == "object") || typeof e == "function")
51
+ for (let i of Ze(e))
52
+ !Ye.call(t, i) &&
53
+ i !== n &&
54
+ he(t, i, {
55
+ get: () => e[i],
56
+ enumerable: !(r = Ge(e, i)) || r.enumerable,
57
+ });
58
+ return t;
59
+ };
60
+ var nt = (t, e, n) => (
61
+ (n = t != null ? Ke(Xe(t)) : {}),
62
+ tt(
63
+ e || !t || !t.__esModule
64
+ ? he(n, "default", { value: t, enumerable: !0 })
65
+ : n,
66
+ t,
67
+ )
68
+ );
69
+ var ye = et((me, ge) => {
70
+ (function () {
71
+ var t = function (e) {
72
+ var n = new t.Builder();
73
+ return (
74
+ n.pipeline.add(t.trimmer, t.stopWordFilter, t.stemmer),
75
+ n.searchPipeline.add(t.stemmer),
76
+ e.call(n, n),
77
+ n.build()
78
+ );
79
+ };
80
+ t.version = "2.3.9";
81
+ ((t.utils = {}),
82
+ (t.utils.warn = (function (e) {
83
+ return function (n) {
84
+ e.console && console.warn && console.warn(n);
85
+ };
86
+ })(this)),
87
+ (t.utils.asString = function (e) {
88
+ return e == null ? "" : e.toString();
89
+ }),
90
+ (t.utils.clone = function (e) {
91
+ if (e == null) return e;
92
+ for (
93
+ var n = Object.create(null), r = Object.keys(e), i = 0;
94
+ i < r.length;
95
+ i++
96
+ ) {
97
+ var s = r[i],
98
+ o = e[s];
99
+ if (Array.isArray(o)) {
100
+ n[s] = o.slice();
101
+ continue;
102
+ }
103
+ if (
104
+ typeof o == "string" ||
105
+ typeof o == "number" ||
106
+ typeof o == "boolean"
107
+ ) {
108
+ n[s] = o;
109
+ continue;
110
+ }
111
+ throw new TypeError(
112
+ "clone is not deep and does not support nested objects",
113
+ );
114
+ }
115
+ return n;
116
+ }),
117
+ (t.FieldRef = function (e, n, r) {
118
+ ((this.docRef = e), (this.fieldName = n), (this._stringValue = r));
119
+ }),
120
+ (t.FieldRef.joiner = "/"),
121
+ (t.FieldRef.fromString = function (e) {
122
+ var n = e.indexOf(t.FieldRef.joiner);
123
+ if (n === -1) throw "malformed field ref string";
124
+ var r = e.slice(0, n),
125
+ i = e.slice(n + 1);
126
+ return new t.FieldRef(i, r, e);
127
+ }),
128
+ (t.FieldRef.prototype.toString = function () {
129
+ return (
130
+ this._stringValue == null &&
131
+ (this._stringValue =
132
+ this.fieldName + t.FieldRef.joiner + this.docRef),
133
+ this._stringValue
134
+ );
135
+ }));
136
+ ((t.Set = function (e) {
137
+ if (((this.elements = Object.create(null)), e)) {
138
+ this.length = e.length;
139
+ for (var n = 0; n < this.length; n++) this.elements[e[n]] = !0;
140
+ } else this.length = 0;
141
+ }),
142
+ (t.Set.complete = {
143
+ intersect: function (e) {
144
+ return e;
145
+ },
146
+ union: function () {
147
+ return this;
148
+ },
149
+ contains: function () {
150
+ return !0;
151
+ },
152
+ }),
153
+ (t.Set.empty = {
154
+ intersect: function () {
155
+ return this;
156
+ },
157
+ union: function (e) {
158
+ return e;
159
+ },
160
+ contains: function () {
161
+ return !1;
162
+ },
163
+ }),
164
+ (t.Set.prototype.contains = function (e) {
165
+ return !!this.elements[e];
166
+ }),
167
+ (t.Set.prototype.intersect = function (e) {
168
+ var n,
169
+ r,
170
+ i,
171
+ s = [];
172
+ if (e === t.Set.complete) return this;
173
+ if (e === t.Set.empty) return e;
174
+ (this.length < e.length
175
+ ? ((n = this), (r = e))
176
+ : ((n = e), (r = this)),
177
+ (i = Object.keys(n.elements)));
178
+ for (var o = 0; o < i.length; o++) {
179
+ var a = i[o];
180
+ a in r.elements && s.push(a);
181
+ }
182
+ return new t.Set(s);
183
+ }),
184
+ (t.Set.prototype.union = function (e) {
185
+ return e === t.Set.complete
186
+ ? t.Set.complete
187
+ : e === t.Set.empty
188
+ ? this
189
+ : new t.Set(
190
+ Object.keys(this.elements).concat(Object.keys(e.elements)),
191
+ );
192
+ }),
193
+ (t.idf = function (e, n) {
194
+ var r = 0;
195
+ for (var i in e) i != "_index" && (r += Object.keys(e[i]).length);
196
+ var s = (n - r + 0.5) / (r + 0.5);
197
+ return Math.log(1 + Math.abs(s));
198
+ }),
199
+ (t.Token = function (e, n) {
200
+ ((this.str = e || ""), (this.metadata = n || {}));
201
+ }),
202
+ (t.Token.prototype.toString = function () {
203
+ return this.str;
204
+ }),
205
+ (t.Token.prototype.update = function (e) {
206
+ return ((this.str = e(this.str, this.metadata)), this);
207
+ }),
208
+ (t.Token.prototype.clone = function (e) {
209
+ return (
210
+ (e =
211
+ e ||
212
+ function (n) {
213
+ return n;
214
+ }),
215
+ new t.Token(e(this.str, this.metadata), this.metadata)
216
+ );
217
+ }));
218
+ ((t.tokenizer = function (e, n) {
219
+ if (e == null || e == null) return [];
220
+ if (Array.isArray(e))
221
+ return e.map(function (f) {
222
+ return new t.Token(
223
+ t.utils.asString(f).toLowerCase(),
224
+ t.utils.clone(n),
225
+ );
226
+ });
227
+ for (
228
+ var r = e.toString().toLowerCase(),
229
+ i = r.length,
230
+ s = [],
231
+ o = 0,
232
+ a = 0;
233
+ o <= i;
234
+ o++
235
+ ) {
236
+ var c = r.charAt(o),
237
+ l = o - a;
238
+ if (c.match(t.tokenizer.separator) || o == i) {
239
+ if (l > 0) {
240
+ var d = t.utils.clone(n) || {};
241
+ ((d.position = [a, l]),
242
+ (d.index = s.length),
243
+ s.push(new t.Token(r.slice(a, o), d)));
244
+ }
245
+ a = o + 1;
246
+ }
247
+ }
248
+ return s;
249
+ }),
250
+ (t.tokenizer.separator = /[\s\-]+/));
251
+ ((t.Pipeline = function () {
252
+ this._stack = [];
253
+ }),
254
+ (t.Pipeline.registeredFunctions = Object.create(null)),
255
+ (t.Pipeline.registerFunction = function (e, n) {
256
+ (n in this.registeredFunctions &&
257
+ t.utils.warn("Overwriting existing registered function: " + n),
258
+ (e.label = n),
259
+ (t.Pipeline.registeredFunctions[e.label] = e));
260
+ }),
261
+ (t.Pipeline.warnIfFunctionNotRegistered = function (e) {
262
+ var n = e.label && e.label in this.registeredFunctions;
263
+ n ||
264
+ t.utils.warn(
265
+ `Function is not registered with pipeline. This may cause problems when serialising the index.
266
+ `,
267
+ e,
268
+ );
269
+ }),
270
+ (t.Pipeline.load = function (e) {
271
+ var n = new t.Pipeline();
272
+ return (
273
+ e.forEach(function (r) {
274
+ var i = t.Pipeline.registeredFunctions[r];
275
+ if (i) n.add(i);
276
+ else throw new Error("Cannot load unregistered function: " + r);
277
+ }),
278
+ n
279
+ );
280
+ }),
281
+ (t.Pipeline.prototype.add = function () {
282
+ var e = Array.prototype.slice.call(arguments);
283
+ e.forEach(function (n) {
284
+ (t.Pipeline.warnIfFunctionNotRegistered(n), this._stack.push(n));
285
+ }, this);
286
+ }),
287
+ (t.Pipeline.prototype.after = function (e, n) {
288
+ t.Pipeline.warnIfFunctionNotRegistered(n);
289
+ var r = this._stack.indexOf(e);
290
+ if (r == -1) throw new Error("Cannot find existingFn");
291
+ ((r = r + 1), this._stack.splice(r, 0, n));
292
+ }),
293
+ (t.Pipeline.prototype.before = function (e, n) {
294
+ t.Pipeline.warnIfFunctionNotRegistered(n);
295
+ var r = this._stack.indexOf(e);
296
+ if (r == -1) throw new Error("Cannot find existingFn");
297
+ this._stack.splice(r, 0, n);
298
+ }),
299
+ (t.Pipeline.prototype.remove = function (e) {
300
+ var n = this._stack.indexOf(e);
301
+ n != -1 && this._stack.splice(n, 1);
302
+ }),
303
+ (t.Pipeline.prototype.run = function (e) {
304
+ for (var n = this._stack.length, r = 0; r < n; r++) {
305
+ for (var i = this._stack[r], s = [], o = 0; o < e.length; o++) {
306
+ var a = i(e[o], o, e);
307
+ if (!(a == null || a === ""))
308
+ if (Array.isArray(a))
309
+ for (var c = 0; c < a.length; c++) s.push(a[c]);
310
+ else s.push(a);
311
+ }
312
+ e = s;
313
+ }
314
+ return e;
315
+ }),
316
+ (t.Pipeline.prototype.runString = function (e, n) {
317
+ var r = new t.Token(e, n);
318
+ return this.run([r]).map(function (i) {
319
+ return i.toString();
320
+ });
321
+ }),
322
+ (t.Pipeline.prototype.reset = function () {
323
+ this._stack = [];
324
+ }),
325
+ (t.Pipeline.prototype.toJSON = function () {
326
+ return this._stack.map(function (e) {
327
+ return (t.Pipeline.warnIfFunctionNotRegistered(e), e.label);
328
+ });
329
+ }));
330
+ ((t.Vector = function (e) {
331
+ ((this._magnitude = 0), (this.elements = e || []));
332
+ }),
333
+ (t.Vector.prototype.positionForIndex = function (e) {
334
+ if (this.elements.length == 0) return 0;
335
+ for (
336
+ var n = 0,
337
+ r = this.elements.length / 2,
338
+ i = r - n,
339
+ s = Math.floor(i / 2),
340
+ o = this.elements[s * 2];
341
+ i > 1 && (o < e && (n = s), o > e && (r = s), o != e);
342
+ )
343
+ ((i = r - n),
344
+ (s = n + Math.floor(i / 2)),
345
+ (o = this.elements[s * 2]));
346
+ if (o == e || o > e) return s * 2;
347
+ if (o < e) return (s + 1) * 2;
348
+ }),
349
+ (t.Vector.prototype.insert = function (e, n) {
350
+ this.upsert(e, n, function () {
351
+ throw "duplicate index";
352
+ });
353
+ }),
354
+ (t.Vector.prototype.upsert = function (e, n, r) {
355
+ this._magnitude = 0;
356
+ var i = this.positionForIndex(e);
357
+ this.elements[i] == e
358
+ ? (this.elements[i + 1] = r(this.elements[i + 1], n))
359
+ : this.elements.splice(i, 0, e, n);
360
+ }),
361
+ (t.Vector.prototype.magnitude = function () {
362
+ if (this._magnitude) return this._magnitude;
363
+ for (var e = 0, n = this.elements.length, r = 1; r < n; r += 2) {
364
+ var i = this.elements[r];
365
+ e += i * i;
366
+ }
367
+ return (this._magnitude = Math.sqrt(e));
368
+ }),
369
+ (t.Vector.prototype.dot = function (e) {
370
+ for (
371
+ var n = 0,
372
+ r = this.elements,
373
+ i = e.elements,
374
+ s = r.length,
375
+ o = i.length,
376
+ a = 0,
377
+ c = 0,
378
+ l = 0,
379
+ d = 0;
380
+ l < s && d < o;
381
+ )
382
+ ((a = r[l]),
383
+ (c = i[d]),
384
+ a < c
385
+ ? (l += 2)
386
+ : a > c
387
+ ? (d += 2)
388
+ : a == c && ((n += r[l + 1] * i[d + 1]), (l += 2), (d += 2)));
389
+ return n;
390
+ }),
391
+ (t.Vector.prototype.similarity = function (e) {
392
+ return this.dot(e) / this.magnitude() || 0;
393
+ }),
394
+ (t.Vector.prototype.toArray = function () {
395
+ for (
396
+ var e = new Array(this.elements.length / 2), n = 1, r = 0;
397
+ n < this.elements.length;
398
+ n += 2, r++
399
+ )
400
+ e[r] = this.elements[n];
401
+ return e;
402
+ }),
403
+ (t.Vector.prototype.toJSON = function () {
404
+ return this.elements;
405
+ }));
406
+ ((t.stemmer = (function () {
407
+ var e = {
408
+ ational: "ate",
409
+ tional: "tion",
410
+ enci: "ence",
411
+ anci: "ance",
412
+ izer: "ize",
413
+ bli: "ble",
414
+ alli: "al",
415
+ entli: "ent",
416
+ eli: "e",
417
+ ousli: "ous",
418
+ ization: "ize",
419
+ ation: "ate",
420
+ ator: "ate",
421
+ alism: "al",
422
+ iveness: "ive",
423
+ fulness: "ful",
424
+ ousness: "ous",
425
+ aliti: "al",
426
+ iviti: "ive",
427
+ biliti: "ble",
428
+ logi: "log",
429
+ },
430
+ n = {
431
+ icate: "ic",
432
+ ative: "",
433
+ alize: "al",
434
+ iciti: "ic",
435
+ ical: "ic",
436
+ ful: "",
437
+ ness: "",
438
+ },
439
+ r = "[^aeiou]",
440
+ i = "[aeiouy]",
441
+ s = r + "[^aeiouy]*",
442
+ o = i + "[aeiou]*",
443
+ a = "^(" + s + ")?" + o + s,
444
+ c = "^(" + s + ")?" + o + s + "(" + o + ")?$",
445
+ l = "^(" + s + ")?" + o + s + o + s,
446
+ d = "^(" + s + ")?" + i,
447
+ f = new RegExp(a),
448
+ p = new RegExp(l),
449
+ v = new RegExp(c),
450
+ x = new RegExp(d),
451
+ w = /^(.+?)(ss|i)es$/,
452
+ m = /^(.+?)([^s])s$/,
453
+ g = /^(.+?)eed$/,
454
+ T = /^(.+?)(ed|ing)$/,
455
+ L = /.$/,
456
+ C = /(at|bl|iz)$/,
457
+ O = new RegExp("([^aeiouylsz])\\1$"),
458
+ j = new RegExp("^" + s + i + "[^aeiouwxy]$"),
459
+ N = /^(.+?[^aeiou])y$/,
460
+ q =
461
+ /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,
462
+ W = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,
463
+ B =
464
+ /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,
465
+ z = /^(.+?)(s|t)(ion)$/,
466
+ _ = /^(.+?)e$/,
467
+ U = /ll$/,
468
+ J = new RegExp("^" + s + i + "[^aeiouwxy]$"),
469
+ V = function (u) {
470
+ var y, P, k, h, E, Q, H;
471
+ if (u.length < 3) return u;
472
+ if (
473
+ ((k = u.substr(0, 1)),
474
+ k == "y" && (u = k.toUpperCase() + u.substr(1)),
475
+ (h = w),
476
+ (E = m),
477
+ h.test(u)
478
+ ? (u = u.replace(h, "$1$2"))
479
+ : E.test(u) && (u = u.replace(E, "$1$2")),
480
+ (h = g),
481
+ (E = T),
482
+ h.test(u))
483
+ ) {
484
+ var b = h.exec(u);
485
+ ((h = f), h.test(b[1]) && ((h = L), (u = u.replace(h, ""))));
486
+ } else if (E.test(u)) {
487
+ var b = E.exec(u);
488
+ ((y = b[1]),
489
+ (E = x),
490
+ E.test(y) &&
491
+ ((u = y),
492
+ (E = C),
493
+ (Q = O),
494
+ (H = j),
495
+ E.test(u)
496
+ ? (u = u + "e")
497
+ : Q.test(u)
498
+ ? ((h = L), (u = u.replace(h, "")))
499
+ : H.test(u) && (u = u + "e")));
500
+ }
501
+ if (((h = N), h.test(u))) {
502
+ var b = h.exec(u);
503
+ ((y = b[1]), (u = y + "i"));
504
+ }
505
+ if (((h = q), h.test(u))) {
506
+ var b = h.exec(u);
507
+ ((y = b[1]), (P = b[2]), (h = f), h.test(y) && (u = y + e[P]));
508
+ }
509
+ if (((h = W), h.test(u))) {
510
+ var b = h.exec(u);
511
+ ((y = b[1]), (P = b[2]), (h = f), h.test(y) && (u = y + n[P]));
512
+ }
513
+ if (((h = B), (E = z), h.test(u))) {
514
+ var b = h.exec(u);
515
+ ((y = b[1]), (h = p), h.test(y) && (u = y));
516
+ } else if (E.test(u)) {
517
+ var b = E.exec(u);
518
+ ((y = b[1] + b[2]), (E = p), E.test(y) && (u = y));
519
+ }
520
+ if (((h = _), h.test(u))) {
521
+ var b = h.exec(u);
522
+ ((y = b[1]),
523
+ (h = p),
524
+ (E = v),
525
+ (Q = J),
526
+ (h.test(y) || (E.test(y) && !Q.test(y))) && (u = y));
527
+ }
528
+ return (
529
+ (h = U),
530
+ (E = p),
531
+ h.test(u) && E.test(u) && ((h = L), (u = u.replace(h, ""))),
532
+ k == "y" && (u = k.toLowerCase() + u.substr(1)),
533
+ u
534
+ );
535
+ };
536
+ return function (A) {
537
+ return A.update(V);
538
+ };
539
+ })()),
540
+ t.Pipeline.registerFunction(t.stemmer, "stemmer"));
541
+ ((t.generateStopWordFilter = function (e) {
542
+ var n = e.reduce(function (r, i) {
543
+ return ((r[i] = i), r);
544
+ }, {});
545
+ return function (r) {
546
+ if (r && n[r.toString()] !== r.toString()) return r;
547
+ };
548
+ }),
549
+ (t.stopWordFilter = t.generateStopWordFilter([
550
+ "a",
551
+ "able",
552
+ "about",
553
+ "across",
554
+ "after",
555
+ "all",
556
+ "almost",
557
+ "also",
558
+ "am",
559
+ "among",
560
+ "an",
561
+ "and",
562
+ "any",
563
+ "are",
564
+ "as",
565
+ "at",
566
+ "be",
567
+ "because",
568
+ "been",
569
+ "but",
570
+ "by",
571
+ "can",
572
+ "cannot",
573
+ "could",
574
+ "dear",
575
+ "did",
576
+ "do",
577
+ "does",
578
+ "either",
579
+ "else",
580
+ "ever",
581
+ "every",
582
+ "for",
583
+ "from",
584
+ "get",
585
+ "got",
586
+ "had",
587
+ "has",
588
+ "have",
589
+ "he",
590
+ "her",
591
+ "hers",
592
+ "him",
593
+ "his",
594
+ "how",
595
+ "however",
596
+ "i",
597
+ "if",
598
+ "in",
599
+ "into",
600
+ "is",
601
+ "it",
602
+ "its",
603
+ "just",
604
+ "least",
605
+ "let",
606
+ "like",
607
+ "likely",
608
+ "may",
609
+ "me",
610
+ "might",
611
+ "most",
612
+ "must",
613
+ "my",
614
+ "neither",
615
+ "no",
616
+ "nor",
617
+ "not",
618
+ "of",
619
+ "off",
620
+ "often",
621
+ "on",
622
+ "only",
623
+ "or",
624
+ "other",
625
+ "our",
626
+ "own",
627
+ "rather",
628
+ "said",
629
+ "say",
630
+ "says",
631
+ "she",
632
+ "should",
633
+ "since",
634
+ "so",
635
+ "some",
636
+ "than",
637
+ "that",
638
+ "the",
639
+ "their",
640
+ "them",
641
+ "then",
642
+ "there",
643
+ "these",
644
+ "they",
645
+ "this",
646
+ "tis",
647
+ "to",
648
+ "too",
649
+ "twas",
650
+ "us",
651
+ "wants",
652
+ "was",
653
+ "we",
654
+ "were",
655
+ "what",
656
+ "when",
657
+ "where",
658
+ "which",
659
+ "while",
660
+ "who",
661
+ "whom",
662
+ "why",
663
+ "will",
664
+ "with",
665
+ "would",
666
+ "yet",
667
+ "you",
668
+ "your",
669
+ ])),
670
+ t.Pipeline.registerFunction(t.stopWordFilter, "stopWordFilter"));
671
+ ((t.trimmer = function (e) {
672
+ return e.update(function (n) {
673
+ return n.replace(/^\W+/, "").replace(/\W+$/, "");
674
+ });
675
+ }),
676
+ t.Pipeline.registerFunction(t.trimmer, "trimmer"));
677
+ ((t.TokenSet = function () {
678
+ ((this.final = !1),
679
+ (this.edges = {}),
680
+ (this.id = t.TokenSet._nextId),
681
+ (t.TokenSet._nextId += 1));
682
+ }),
683
+ (t.TokenSet._nextId = 1),
684
+ (t.TokenSet.fromArray = function (e) {
685
+ for (
686
+ var n = new t.TokenSet.Builder(), r = 0, i = e.length;
687
+ r < i;
688
+ r++
689
+ )
690
+ n.insert(e[r]);
691
+ return (n.finish(), n.root);
692
+ }),
693
+ (t.TokenSet.fromClause = function (e) {
694
+ return "editDistance" in e
695
+ ? t.TokenSet.fromFuzzyString(e.term, e.editDistance)
696
+ : t.TokenSet.fromString(e.term);
697
+ }),
698
+ (t.TokenSet.fromFuzzyString = function (e, n) {
699
+ for (
700
+ var r = new t.TokenSet(),
701
+ i = [{ node: r, editsRemaining: n, str: e }];
702
+ i.length;
703
+ ) {
704
+ var s = i.pop();
705
+ if (s.str.length > 0) {
706
+ var o = s.str.charAt(0),
707
+ a;
708
+ (o in s.node.edges
709
+ ? (a = s.node.edges[o])
710
+ : ((a = new t.TokenSet()), (s.node.edges[o] = a)),
711
+ s.str.length == 1 && (a.final = !0),
712
+ i.push({
713
+ node: a,
714
+ editsRemaining: s.editsRemaining,
715
+ str: s.str.slice(1),
716
+ }));
717
+ }
718
+ if (s.editsRemaining != 0) {
719
+ if ("*" in s.node.edges) var c = s.node.edges["*"];
720
+ else {
721
+ var c = new t.TokenSet();
722
+ s.node.edges["*"] = c;
723
+ }
724
+ if (
725
+ (s.str.length == 0 && (c.final = !0),
726
+ i.push({
727
+ node: c,
728
+ editsRemaining: s.editsRemaining - 1,
729
+ str: s.str,
730
+ }),
731
+ s.str.length > 1 &&
732
+ i.push({
733
+ node: s.node,
734
+ editsRemaining: s.editsRemaining - 1,
735
+ str: s.str.slice(1),
736
+ }),
737
+ s.str.length == 1 && (s.node.final = !0),
738
+ s.str.length >= 1)
739
+ ) {
740
+ if ("*" in s.node.edges) var l = s.node.edges["*"];
741
+ else {
742
+ var l = new t.TokenSet();
743
+ s.node.edges["*"] = l;
744
+ }
745
+ (s.str.length == 1 && (l.final = !0),
746
+ i.push({
747
+ node: l,
748
+ editsRemaining: s.editsRemaining - 1,
749
+ str: s.str.slice(1),
750
+ }));
751
+ }
752
+ if (s.str.length > 1) {
753
+ var d = s.str.charAt(0),
754
+ f = s.str.charAt(1),
755
+ p;
756
+ (f in s.node.edges
757
+ ? (p = s.node.edges[f])
758
+ : ((p = new t.TokenSet()), (s.node.edges[f] = p)),
759
+ s.str.length == 1 && (p.final = !0),
760
+ i.push({
761
+ node: p,
762
+ editsRemaining: s.editsRemaining - 1,
763
+ str: d + s.str.slice(2),
764
+ }));
765
+ }
766
+ }
767
+ }
768
+ return r;
769
+ }),
770
+ (t.TokenSet.fromString = function (e) {
771
+ for (
772
+ var n = new t.TokenSet(), r = n, i = 0, s = e.length;
773
+ i < s;
774
+ i++
775
+ ) {
776
+ var o = e[i],
777
+ a = i == s - 1;
778
+ if (o == "*") ((n.edges[o] = n), (n.final = a));
779
+ else {
780
+ var c = new t.TokenSet();
781
+ ((c.final = a), (n.edges[o] = c), (n = c));
782
+ }
783
+ }
784
+ return r;
785
+ }),
786
+ (t.TokenSet.prototype.toArray = function () {
787
+ for (var e = [], n = [{ prefix: "", node: this }]; n.length; ) {
788
+ var r = n.pop(),
789
+ i = Object.keys(r.node.edges),
790
+ s = i.length;
791
+ r.node.final && (r.prefix.charAt(0), e.push(r.prefix));
792
+ for (var o = 0; o < s; o++) {
793
+ var a = i[o];
794
+ n.push({ prefix: r.prefix.concat(a), node: r.node.edges[a] });
795
+ }
796
+ }
797
+ return e;
798
+ }),
799
+ (t.TokenSet.prototype.toString = function () {
800
+ if (this._str) return this._str;
801
+ for (
802
+ var e = this.final ? "1" : "0",
803
+ n = Object.keys(this.edges).sort(),
804
+ r = n.length,
805
+ i = 0;
806
+ i < r;
807
+ i++
808
+ ) {
809
+ var s = n[i],
810
+ o = this.edges[s];
811
+ e = e + s + o.id;
812
+ }
813
+ return e;
814
+ }),
815
+ (t.TokenSet.prototype.intersect = function (e) {
816
+ for (
817
+ var n = new t.TokenSet(),
818
+ r = void 0,
819
+ i = [{ qNode: e, output: n, node: this }];
820
+ i.length;
821
+ ) {
822
+ r = i.pop();
823
+ for (
824
+ var s = Object.keys(r.qNode.edges),
825
+ o = s.length,
826
+ a = Object.keys(r.node.edges),
827
+ c = a.length,
828
+ l = 0;
829
+ l < o;
830
+ l++
831
+ )
832
+ for (var d = s[l], f = 0; f < c; f++) {
833
+ var p = a[f];
834
+ if (p == d || d == "*") {
835
+ var v = r.node.edges[p],
836
+ x = r.qNode.edges[d],
837
+ w = v.final && x.final,
838
+ m = void 0;
839
+ (p in r.output.edges
840
+ ? ((m = r.output.edges[p]), (m.final = m.final || w))
841
+ : ((m = new t.TokenSet()),
842
+ (m.final = w),
843
+ (r.output.edges[p] = m)),
844
+ i.push({ qNode: x, output: m, node: v }));
845
+ }
846
+ }
847
+ }
848
+ return n;
849
+ }),
850
+ (t.TokenSet.Builder = function () {
851
+ ((this.previousWord = ""),
852
+ (this.root = new t.TokenSet()),
853
+ (this.uncheckedNodes = []),
854
+ (this.minimizedNodes = {}));
855
+ }),
856
+ (t.TokenSet.Builder.prototype.insert = function (e) {
857
+ var n,
858
+ r = 0;
859
+ if (e < this.previousWord)
860
+ throw new Error("Out of order word insertion");
861
+ for (
862
+ var i = 0;
863
+ i < e.length &&
864
+ i < this.previousWord.length &&
865
+ e[i] == this.previousWord[i];
866
+ i++
867
+ )
868
+ r++;
869
+ (this.minimize(r),
870
+ this.uncheckedNodes.length == 0
871
+ ? (n = this.root)
872
+ : (n =
873
+ this.uncheckedNodes[this.uncheckedNodes.length - 1].child));
874
+ for (var i = r; i < e.length; i++) {
875
+ var s = new t.TokenSet(),
876
+ o = e[i];
877
+ ((n.edges[o] = s),
878
+ this.uncheckedNodes.push({ parent: n, char: o, child: s }),
879
+ (n = s));
880
+ }
881
+ ((n.final = !0), (this.previousWord = e));
882
+ }),
883
+ (t.TokenSet.Builder.prototype.finish = function () {
884
+ this.minimize(0);
885
+ }),
886
+ (t.TokenSet.Builder.prototype.minimize = function (e) {
887
+ for (var n = this.uncheckedNodes.length - 1; n >= e; n--) {
888
+ var r = this.uncheckedNodes[n],
889
+ i = r.child.toString();
890
+ (i in this.minimizedNodes
891
+ ? (r.parent.edges[r.char] = this.minimizedNodes[i])
892
+ : ((r.child._str = i), (this.minimizedNodes[i] = r.child)),
893
+ this.uncheckedNodes.pop());
894
+ }
895
+ }));
896
+ ((t.Index = function (e) {
897
+ ((this.invertedIndex = e.invertedIndex),
898
+ (this.fieldVectors = e.fieldVectors),
899
+ (this.tokenSet = e.tokenSet),
900
+ (this.fields = e.fields),
901
+ (this.pipeline = e.pipeline));
902
+ }),
903
+ (t.Index.prototype.search = function (e) {
904
+ return this.query(function (n) {
905
+ var r = new t.QueryParser(e, n);
906
+ r.parse();
907
+ });
908
+ }),
909
+ (t.Index.prototype.query = function (e) {
910
+ for (
911
+ var n = new t.Query(this.fields),
912
+ r = Object.create(null),
913
+ i = Object.create(null),
914
+ s = Object.create(null),
915
+ o = Object.create(null),
916
+ a = Object.create(null),
917
+ c = 0;
918
+ c < this.fields.length;
919
+ c++
920
+ )
921
+ i[this.fields[c]] = new t.Vector();
922
+ e.call(n, n);
923
+ for (var c = 0; c < n.clauses.length; c++) {
924
+ var l = n.clauses[c],
925
+ d = null,
926
+ f = t.Set.empty;
927
+ l.usePipeline
928
+ ? (d = this.pipeline.runString(l.term, { fields: l.fields }))
929
+ : (d = [l.term]);
930
+ for (var p = 0; p < d.length; p++) {
931
+ var v = d[p];
932
+ l.term = v;
933
+ var x = t.TokenSet.fromClause(l),
934
+ w = this.tokenSet.intersect(x).toArray();
935
+ if (w.length === 0 && l.presence === t.Query.presence.REQUIRED) {
936
+ for (var m = 0; m < l.fields.length; m++) {
937
+ var g = l.fields[m];
938
+ o[g] = t.Set.empty;
939
+ }
940
+ break;
941
+ }
942
+ for (var T = 0; T < w.length; T++)
943
+ for (
944
+ var L = w[T], C = this.invertedIndex[L], O = C._index, m = 0;
945
+ m < l.fields.length;
946
+ m++
947
+ ) {
948
+ var g = l.fields[m],
949
+ j = C[g],
950
+ N = Object.keys(j),
951
+ q = L + "/" + g,
952
+ W = new t.Set(N);
953
+ if (
954
+ (l.presence == t.Query.presence.REQUIRED &&
955
+ ((f = f.union(W)),
956
+ o[g] === void 0 && (o[g] = t.Set.complete)),
957
+ l.presence == t.Query.presence.PROHIBITED)
958
+ ) {
959
+ (a[g] === void 0 && (a[g] = t.Set.empty),
960
+ (a[g] = a[g].union(W)));
961
+ continue;
962
+ }
963
+ if (
964
+ (i[g].upsert(O, l.boost, function (Ue, Je) {
965
+ return Ue + Je;
966
+ }),
967
+ !s[q])
968
+ ) {
969
+ for (var B = 0; B < N.length; B++) {
970
+ var z = N[B],
971
+ _ = new t.FieldRef(z, g),
972
+ U = j[z],
973
+ J;
974
+ (J = r[_]) === void 0
975
+ ? (r[_] = new t.MatchData(L, g, U))
976
+ : J.add(L, g, U);
977
+ }
978
+ s[q] = !0;
979
+ }
980
+ }
981
+ }
982
+ if (l.presence === t.Query.presence.REQUIRED)
983
+ for (var m = 0; m < l.fields.length; m++) {
984
+ var g = l.fields[m];
985
+ o[g] = o[g].intersect(f);
986
+ }
987
+ }
988
+ for (
989
+ var V = t.Set.complete, A = t.Set.empty, c = 0;
990
+ c < this.fields.length;
991
+ c++
992
+ ) {
993
+ var g = this.fields[c];
994
+ (o[g] && (V = V.intersect(o[g])), a[g] && (A = A.union(a[g])));
995
+ }
996
+ var u = Object.keys(r),
997
+ y = [],
998
+ P = Object.create(null);
999
+ if (n.isNegated()) {
1000
+ u = Object.keys(this.fieldVectors);
1001
+ for (var c = 0; c < u.length; c++) {
1002
+ var _ = u[c],
1003
+ k = t.FieldRef.fromString(_);
1004
+ r[_] = new t.MatchData();
1005
+ }
1006
+ }
1007
+ for (var c = 0; c < u.length; c++) {
1008
+ var k = t.FieldRef.fromString(u[c]),
1009
+ h = k.docRef;
1010
+ if (V.contains(h) && !A.contains(h)) {
1011
+ var E = this.fieldVectors[k],
1012
+ Q = i[k.fieldName].similarity(E),
1013
+ H;
1014
+ if ((H = P[h]) !== void 0)
1015
+ ((H.score += Q), H.matchData.combine(r[k]));
1016
+ else {
1017
+ var b = { ref: h, score: Q, matchData: r[k] };
1018
+ ((P[h] = b), y.push(b));
1019
+ }
1020
+ }
1021
+ }
1022
+ return y.sort(function (We, ze) {
1023
+ return ze.score - We.score;
1024
+ });
1025
+ }),
1026
+ (t.Index.prototype.toJSON = function () {
1027
+ var e = Object.keys(this.invertedIndex)
1028
+ .sort()
1029
+ .map(function (r) {
1030
+ return [r, this.invertedIndex[r]];
1031
+ }, this),
1032
+ n = Object.keys(this.fieldVectors).map(function (r) {
1033
+ return [r, this.fieldVectors[r].toJSON()];
1034
+ }, this);
1035
+ return {
1036
+ version: t.version,
1037
+ fields: this.fields,
1038
+ fieldVectors: n,
1039
+ invertedIndex: e,
1040
+ pipeline: this.pipeline.toJSON(),
1041
+ };
1042
+ }),
1043
+ (t.Index.load = function (e) {
1044
+ var n = {},
1045
+ r = {},
1046
+ i = e.fieldVectors,
1047
+ s = Object.create(null),
1048
+ o = e.invertedIndex,
1049
+ a = new t.TokenSet.Builder(),
1050
+ c = t.Pipeline.load(e.pipeline);
1051
+ e.version != t.version &&
1052
+ t.utils.warn(
1053
+ "Version mismatch when loading serialised index. Current version of lunr '" +
1054
+ t.version +
1055
+ "' does not match serialized index '" +
1056
+ e.version +
1057
+ "'",
1058
+ );
1059
+ for (var l = 0; l < i.length; l++) {
1060
+ var d = i[l],
1061
+ f = d[0],
1062
+ p = d[1];
1063
+ r[f] = new t.Vector(p);
1064
+ }
1065
+ for (var l = 0; l < o.length; l++) {
1066
+ var d = o[l],
1067
+ v = d[0],
1068
+ x = d[1];
1069
+ (a.insert(v), (s[v] = x));
1070
+ }
1071
+ return (
1072
+ a.finish(),
1073
+ (n.fields = e.fields),
1074
+ (n.fieldVectors = r),
1075
+ (n.invertedIndex = s),
1076
+ (n.tokenSet = a.root),
1077
+ (n.pipeline = c),
1078
+ new t.Index(n)
1079
+ );
1080
+ }));
1081
+ ((t.Builder = function () {
1082
+ ((this._ref = "id"),
1083
+ (this._fields = Object.create(null)),
1084
+ (this._documents = Object.create(null)),
1085
+ (this.invertedIndex = Object.create(null)),
1086
+ (this.fieldTermFrequencies = {}),
1087
+ (this.fieldLengths = {}),
1088
+ (this.tokenizer = t.tokenizer),
1089
+ (this.pipeline = new t.Pipeline()),
1090
+ (this.searchPipeline = new t.Pipeline()),
1091
+ (this.documentCount = 0),
1092
+ (this._b = 0.75),
1093
+ (this._k1 = 1.2),
1094
+ (this.termIndex = 0),
1095
+ (this.metadataWhitelist = []));
1096
+ }),
1097
+ (t.Builder.prototype.ref = function (e) {
1098
+ this._ref = e;
1099
+ }),
1100
+ (t.Builder.prototype.field = function (e, n) {
1101
+ if (/\//.test(e))
1102
+ throw new RangeError(
1103
+ "Field '" + e + "' contains illegal character '/'",
1104
+ );
1105
+ this._fields[e] = n || {};
1106
+ }),
1107
+ (t.Builder.prototype.b = function (e) {
1108
+ e < 0 ? (this._b = 0) : e > 1 ? (this._b = 1) : (this._b = e);
1109
+ }),
1110
+ (t.Builder.prototype.k1 = function (e) {
1111
+ this._k1 = e;
1112
+ }),
1113
+ (t.Builder.prototype.add = function (e, n) {
1114
+ var r = e[this._ref],
1115
+ i = Object.keys(this._fields);
1116
+ ((this._documents[r] = n || {}), (this.documentCount += 1));
1117
+ for (var s = 0; s < i.length; s++) {
1118
+ var o = i[s],
1119
+ a = this._fields[o].extractor,
1120
+ c = a ? a(e) : e[o],
1121
+ l = this.tokenizer(c, { fields: [o] }),
1122
+ d = this.pipeline.run(l),
1123
+ f = new t.FieldRef(r, o),
1124
+ p = Object.create(null);
1125
+ ((this.fieldTermFrequencies[f] = p),
1126
+ (this.fieldLengths[f] = 0),
1127
+ (this.fieldLengths[f] += d.length));
1128
+ for (var v = 0; v < d.length; v++) {
1129
+ var x = d[v];
1130
+ if (
1131
+ (p[x] == null && (p[x] = 0),
1132
+ (p[x] += 1),
1133
+ this.invertedIndex[x] == null)
1134
+ ) {
1135
+ var w = Object.create(null);
1136
+ ((w._index = this.termIndex), (this.termIndex += 1));
1137
+ for (var m = 0; m < i.length; m++)
1138
+ w[i[m]] = Object.create(null);
1139
+ this.invertedIndex[x] = w;
1140
+ }
1141
+ this.invertedIndex[x][o][r] == null &&
1142
+ (this.invertedIndex[x][o][r] = Object.create(null));
1143
+ for (var g = 0; g < this.metadataWhitelist.length; g++) {
1144
+ var T = this.metadataWhitelist[g],
1145
+ L = x.metadata[T];
1146
+ (this.invertedIndex[x][o][r][T] == null &&
1147
+ (this.invertedIndex[x][o][r][T] = []),
1148
+ this.invertedIndex[x][o][r][T].push(L));
1149
+ }
1150
+ }
1151
+ }
1152
+ }),
1153
+ (t.Builder.prototype.calculateAverageFieldLengths = function () {
1154
+ for (
1155
+ var e = Object.keys(this.fieldLengths),
1156
+ n = e.length,
1157
+ r = {},
1158
+ i = {},
1159
+ s = 0;
1160
+ s < n;
1161
+ s++
1162
+ ) {
1163
+ var o = t.FieldRef.fromString(e[s]),
1164
+ a = o.fieldName;
1165
+ (i[a] || (i[a] = 0),
1166
+ (i[a] += 1),
1167
+ r[a] || (r[a] = 0),
1168
+ (r[a] += this.fieldLengths[o]));
1169
+ }
1170
+ for (var c = Object.keys(this._fields), s = 0; s < c.length; s++) {
1171
+ var l = c[s];
1172
+ r[l] = r[l] / i[l];
1173
+ }
1174
+ this.averageFieldLength = r;
1175
+ }),
1176
+ (t.Builder.prototype.createFieldVectors = function () {
1177
+ for (
1178
+ var e = {},
1179
+ n = Object.keys(this.fieldTermFrequencies),
1180
+ r = n.length,
1181
+ i = Object.create(null),
1182
+ s = 0;
1183
+ s < r;
1184
+ s++
1185
+ ) {
1186
+ for (
1187
+ var o = t.FieldRef.fromString(n[s]),
1188
+ a = o.fieldName,
1189
+ c = this.fieldLengths[o],
1190
+ l = new t.Vector(),
1191
+ d = this.fieldTermFrequencies[o],
1192
+ f = Object.keys(d),
1193
+ p = f.length,
1194
+ v = this._fields[a].boost || 1,
1195
+ x = this._documents[o.docRef].boost || 1,
1196
+ w = 0;
1197
+ w < p;
1198
+ w++
1199
+ ) {
1200
+ var m = f[w],
1201
+ g = d[m],
1202
+ T = this.invertedIndex[m]._index,
1203
+ L,
1204
+ C,
1205
+ O;
1206
+ (i[m] === void 0
1207
+ ? ((L = t.idf(this.invertedIndex[m], this.documentCount)),
1208
+ (i[m] = L))
1209
+ : (L = i[m]),
1210
+ (C =
1211
+ (L * ((this._k1 + 1) * g)) /
1212
+ (this._k1 *
1213
+ (1 - this._b + this._b * (c / this.averageFieldLength[a])) +
1214
+ g)),
1215
+ (C *= v),
1216
+ (C *= x),
1217
+ (O = Math.round(C * 1e3) / 1e3),
1218
+ l.insert(T, O));
1219
+ }
1220
+ e[o] = l;
1221
+ }
1222
+ this.fieldVectors = e;
1223
+ }),
1224
+ (t.Builder.prototype.createTokenSet = function () {
1225
+ this.tokenSet = t.TokenSet.fromArray(
1226
+ Object.keys(this.invertedIndex).sort(),
1227
+ );
1228
+ }),
1229
+ (t.Builder.prototype.build = function () {
1230
+ return (
1231
+ this.calculateAverageFieldLengths(),
1232
+ this.createFieldVectors(),
1233
+ this.createTokenSet(),
1234
+ new t.Index({
1235
+ invertedIndex: this.invertedIndex,
1236
+ fieldVectors: this.fieldVectors,
1237
+ tokenSet: this.tokenSet,
1238
+ fields: Object.keys(this._fields),
1239
+ pipeline: this.searchPipeline,
1240
+ })
1241
+ );
1242
+ }),
1243
+ (t.Builder.prototype.use = function (e) {
1244
+ var n = Array.prototype.slice.call(arguments, 1);
1245
+ (n.unshift(this), e.apply(this, n));
1246
+ }),
1247
+ (t.MatchData = function (e, n, r) {
1248
+ for (
1249
+ var i = Object.create(null), s = Object.keys(r || {}), o = 0;
1250
+ o < s.length;
1251
+ o++
1252
+ ) {
1253
+ var a = s[o];
1254
+ i[a] = r[a].slice();
1255
+ }
1256
+ ((this.metadata = Object.create(null)),
1257
+ e !== void 0 &&
1258
+ ((this.metadata[e] = Object.create(null)),
1259
+ (this.metadata[e][n] = i)));
1260
+ }),
1261
+ (t.MatchData.prototype.combine = function (e) {
1262
+ for (var n = Object.keys(e.metadata), r = 0; r < n.length; r++) {
1263
+ var i = n[r],
1264
+ s = Object.keys(e.metadata[i]);
1265
+ this.metadata[i] == null &&
1266
+ (this.metadata[i] = Object.create(null));
1267
+ for (var o = 0; o < s.length; o++) {
1268
+ var a = s[o],
1269
+ c = Object.keys(e.metadata[i][a]);
1270
+ this.metadata[i][a] == null &&
1271
+ (this.metadata[i][a] = Object.create(null));
1272
+ for (var l = 0; l < c.length; l++) {
1273
+ var d = c[l];
1274
+ this.metadata[i][a][d] == null
1275
+ ? (this.metadata[i][a][d] = e.metadata[i][a][d])
1276
+ : (this.metadata[i][a][d] = this.metadata[i][a][d].concat(
1277
+ e.metadata[i][a][d],
1278
+ ));
1279
+ }
1280
+ }
1281
+ }
1282
+ }),
1283
+ (t.MatchData.prototype.add = function (e, n, r) {
1284
+ if (!(e in this.metadata)) {
1285
+ ((this.metadata[e] = Object.create(null)),
1286
+ (this.metadata[e][n] = r));
1287
+ return;
1288
+ }
1289
+ if (!(n in this.metadata[e])) {
1290
+ this.metadata[e][n] = r;
1291
+ return;
1292
+ }
1293
+ for (var i = Object.keys(r), s = 0; s < i.length; s++) {
1294
+ var o = i[s];
1295
+ o in this.metadata[e][n]
1296
+ ? (this.metadata[e][n][o] = this.metadata[e][n][o].concat(r[o]))
1297
+ : (this.metadata[e][n][o] = r[o]);
1298
+ }
1299
+ }),
1300
+ (t.Query = function (e) {
1301
+ ((this.clauses = []), (this.allFields = e));
1302
+ }),
1303
+ (t.Query.wildcard = new String("*")),
1304
+ (t.Query.wildcard.NONE = 0),
1305
+ (t.Query.wildcard.LEADING = 1),
1306
+ (t.Query.wildcard.TRAILING = 2),
1307
+ (t.Query.presence = { OPTIONAL: 1, REQUIRED: 2, PROHIBITED: 3 }),
1308
+ (t.Query.prototype.clause = function (e) {
1309
+ return (
1310
+ "fields" in e || (e.fields = this.allFields),
1311
+ "boost" in e || (e.boost = 1),
1312
+ "usePipeline" in e || (e.usePipeline = !0),
1313
+ "wildcard" in e || (e.wildcard = t.Query.wildcard.NONE),
1314
+ e.wildcard & t.Query.wildcard.LEADING &&
1315
+ e.term.charAt(0) != t.Query.wildcard &&
1316
+ (e.term = "*" + e.term),
1317
+ e.wildcard & t.Query.wildcard.TRAILING &&
1318
+ e.term.slice(-1) != t.Query.wildcard &&
1319
+ (e.term = "" + e.term + "*"),
1320
+ "presence" in e || (e.presence = t.Query.presence.OPTIONAL),
1321
+ this.clauses.push(e),
1322
+ this
1323
+ );
1324
+ }),
1325
+ (t.Query.prototype.isNegated = function () {
1326
+ for (var e = 0; e < this.clauses.length; e++)
1327
+ if (this.clauses[e].presence != t.Query.presence.PROHIBITED)
1328
+ return !1;
1329
+ return !0;
1330
+ }),
1331
+ (t.Query.prototype.term = function (e, n) {
1332
+ if (Array.isArray(e))
1333
+ return (
1334
+ e.forEach(function (i) {
1335
+ this.term(i, t.utils.clone(n));
1336
+ }, this),
1337
+ this
1338
+ );
1339
+ var r = n || {};
1340
+ return ((r.term = e.toString()), this.clause(r), this);
1341
+ }),
1342
+ (t.QueryParseError = function (e, n, r) {
1343
+ ((this.name = "QueryParseError"),
1344
+ (this.message = e),
1345
+ (this.start = n),
1346
+ (this.end = r));
1347
+ }),
1348
+ (t.QueryParseError.prototype = new Error()),
1349
+ (t.QueryLexer = function (e) {
1350
+ ((this.lexemes = []),
1351
+ (this.str = e),
1352
+ (this.length = e.length),
1353
+ (this.pos = 0),
1354
+ (this.start = 0),
1355
+ (this.escapeCharPositions = []));
1356
+ }),
1357
+ (t.QueryLexer.prototype.run = function () {
1358
+ for (var e = t.QueryLexer.lexText; e; ) e = e(this);
1359
+ }),
1360
+ (t.QueryLexer.prototype.sliceString = function () {
1361
+ for (
1362
+ var e = [], n = this.start, r = this.pos, i = 0;
1363
+ i < this.escapeCharPositions.length;
1364
+ i++
1365
+ )
1366
+ ((r = this.escapeCharPositions[i]),
1367
+ e.push(this.str.slice(n, r)),
1368
+ (n = r + 1));
1369
+ return (
1370
+ e.push(this.str.slice(n, this.pos)),
1371
+ (this.escapeCharPositions.length = 0),
1372
+ e.join("")
1373
+ );
1374
+ }),
1375
+ (t.QueryLexer.prototype.emit = function (e) {
1376
+ (this.lexemes.push({
1377
+ type: e,
1378
+ str: this.sliceString(),
1379
+ start: this.start,
1380
+ end: this.pos,
1381
+ }),
1382
+ (this.start = this.pos));
1383
+ }),
1384
+ (t.QueryLexer.prototype.escapeCharacter = function () {
1385
+ (this.escapeCharPositions.push(this.pos - 1), (this.pos += 1));
1386
+ }),
1387
+ (t.QueryLexer.prototype.next = function () {
1388
+ if (this.pos >= this.length) return t.QueryLexer.EOS;
1389
+ var e = this.str.charAt(this.pos);
1390
+ return ((this.pos += 1), e);
1391
+ }),
1392
+ (t.QueryLexer.prototype.width = function () {
1393
+ return this.pos - this.start;
1394
+ }),
1395
+ (t.QueryLexer.prototype.ignore = function () {
1396
+ (this.start == this.pos && (this.pos += 1), (this.start = this.pos));
1397
+ }),
1398
+ (t.QueryLexer.prototype.backup = function () {
1399
+ this.pos -= 1;
1400
+ }),
1401
+ (t.QueryLexer.prototype.acceptDigitRun = function () {
1402
+ var e, n;
1403
+ do ((e = this.next()), (n = e.charCodeAt(0)));
1404
+ while (n > 47 && n < 58);
1405
+ e != t.QueryLexer.EOS && this.backup();
1406
+ }),
1407
+ (t.QueryLexer.prototype.more = function () {
1408
+ return this.pos < this.length;
1409
+ }),
1410
+ (t.QueryLexer.EOS = "EOS"),
1411
+ (t.QueryLexer.FIELD = "FIELD"),
1412
+ (t.QueryLexer.TERM = "TERM"),
1413
+ (t.QueryLexer.EDIT_DISTANCE = "EDIT_DISTANCE"),
1414
+ (t.QueryLexer.BOOST = "BOOST"),
1415
+ (t.QueryLexer.PRESENCE = "PRESENCE"),
1416
+ (t.QueryLexer.lexField = function (e) {
1417
+ return (
1418
+ e.backup(),
1419
+ e.emit(t.QueryLexer.FIELD),
1420
+ e.ignore(),
1421
+ t.QueryLexer.lexText
1422
+ );
1423
+ }),
1424
+ (t.QueryLexer.lexTerm = function (e) {
1425
+ if (
1426
+ (e.width() > 1 && (e.backup(), e.emit(t.QueryLexer.TERM)),
1427
+ e.ignore(),
1428
+ e.more())
1429
+ )
1430
+ return t.QueryLexer.lexText;
1431
+ }),
1432
+ (t.QueryLexer.lexEditDistance = function (e) {
1433
+ return (
1434
+ e.ignore(),
1435
+ e.acceptDigitRun(),
1436
+ e.emit(t.QueryLexer.EDIT_DISTANCE),
1437
+ t.QueryLexer.lexText
1438
+ );
1439
+ }),
1440
+ (t.QueryLexer.lexBoost = function (e) {
1441
+ return (
1442
+ e.ignore(),
1443
+ e.acceptDigitRun(),
1444
+ e.emit(t.QueryLexer.BOOST),
1445
+ t.QueryLexer.lexText
1446
+ );
1447
+ }),
1448
+ (t.QueryLexer.lexEOS = function (e) {
1449
+ e.width() > 0 && e.emit(t.QueryLexer.TERM);
1450
+ }),
1451
+ (t.QueryLexer.termSeparator = t.tokenizer.separator),
1452
+ (t.QueryLexer.lexText = function (e) {
1453
+ for (;;) {
1454
+ var n = e.next();
1455
+ if (n == t.QueryLexer.EOS) return t.QueryLexer.lexEOS;
1456
+ if (n.charCodeAt(0) == 92) {
1457
+ e.escapeCharacter();
1458
+ continue;
1459
+ }
1460
+ if (n == ":") return t.QueryLexer.lexField;
1461
+ if (n == "~")
1462
+ return (
1463
+ e.backup(),
1464
+ e.width() > 0 && e.emit(t.QueryLexer.TERM),
1465
+ t.QueryLexer.lexEditDistance
1466
+ );
1467
+ if (n == "^")
1468
+ return (
1469
+ e.backup(),
1470
+ e.width() > 0 && e.emit(t.QueryLexer.TERM),
1471
+ t.QueryLexer.lexBoost
1472
+ );
1473
+ if ((n == "+" && e.width() === 1) || (n == "-" && e.width() === 1))
1474
+ return (e.emit(t.QueryLexer.PRESENCE), t.QueryLexer.lexText);
1475
+ if (n.match(t.QueryLexer.termSeparator))
1476
+ return t.QueryLexer.lexTerm;
1477
+ }
1478
+ }),
1479
+ (t.QueryParser = function (e, n) {
1480
+ ((this.lexer = new t.QueryLexer(e)),
1481
+ (this.query = n),
1482
+ (this.currentClause = {}),
1483
+ (this.lexemeIdx = 0));
1484
+ }),
1485
+ (t.QueryParser.prototype.parse = function () {
1486
+ (this.lexer.run(), (this.lexemes = this.lexer.lexemes));
1487
+ for (var e = t.QueryParser.parseClause; e; ) e = e(this);
1488
+ return this.query;
1489
+ }),
1490
+ (t.QueryParser.prototype.peekLexeme = function () {
1491
+ return this.lexemes[this.lexemeIdx];
1492
+ }),
1493
+ (t.QueryParser.prototype.consumeLexeme = function () {
1494
+ var e = this.peekLexeme();
1495
+ return ((this.lexemeIdx += 1), e);
1496
+ }),
1497
+ (t.QueryParser.prototype.nextClause = function () {
1498
+ var e = this.currentClause;
1499
+ (this.query.clause(e), (this.currentClause = {}));
1500
+ }),
1501
+ (t.QueryParser.parseClause = function (e) {
1502
+ var n = e.peekLexeme();
1503
+ if (n != null)
1504
+ switch (n.type) {
1505
+ case t.QueryLexer.PRESENCE:
1506
+ return t.QueryParser.parsePresence;
1507
+ case t.QueryLexer.FIELD:
1508
+ return t.QueryParser.parseField;
1509
+ case t.QueryLexer.TERM:
1510
+ return t.QueryParser.parseTerm;
1511
+ default:
1512
+ var r = "expected either a field or a term, found " + n.type;
1513
+ throw (
1514
+ n.str.length >= 1 && (r += " with value '" + n.str + "'"),
1515
+ new t.QueryParseError(r, n.start, n.end)
1516
+ );
1517
+ }
1518
+ }),
1519
+ (t.QueryParser.parsePresence = function (e) {
1520
+ var n = e.consumeLexeme();
1521
+ if (n != null) {
1522
+ switch (n.str) {
1523
+ case "-":
1524
+ e.currentClause.presence = t.Query.presence.PROHIBITED;
1525
+ break;
1526
+ case "+":
1527
+ e.currentClause.presence = t.Query.presence.REQUIRED;
1528
+ break;
1529
+ default:
1530
+ var r = "unrecognised presence operator'" + n.str + "'";
1531
+ throw new t.QueryParseError(r, n.start, n.end);
1532
+ }
1533
+ var i = e.peekLexeme();
1534
+ if (i == null) {
1535
+ var r = "expecting term or field, found nothing";
1536
+ throw new t.QueryParseError(r, n.start, n.end);
1537
+ }
1538
+ switch (i.type) {
1539
+ case t.QueryLexer.FIELD:
1540
+ return t.QueryParser.parseField;
1541
+ case t.QueryLexer.TERM:
1542
+ return t.QueryParser.parseTerm;
1543
+ default:
1544
+ var r = "expecting term or field, found '" + i.type + "'";
1545
+ throw new t.QueryParseError(r, i.start, i.end);
1546
+ }
1547
+ }
1548
+ }),
1549
+ (t.QueryParser.parseField = function (e) {
1550
+ var n = e.consumeLexeme();
1551
+ if (n != null) {
1552
+ if (e.query.allFields.indexOf(n.str) == -1) {
1553
+ var r = e.query.allFields
1554
+ .map(function (o) {
1555
+ return "'" + o + "'";
1556
+ })
1557
+ .join(", "),
1558
+ i = "unrecognised field '" + n.str + "', possible fields: " + r;
1559
+ throw new t.QueryParseError(i, n.start, n.end);
1560
+ }
1561
+ e.currentClause.fields = [n.str];
1562
+ var s = e.peekLexeme();
1563
+ if (s == null) {
1564
+ var i = "expecting term, found nothing";
1565
+ throw new t.QueryParseError(i, n.start, n.end);
1566
+ }
1567
+ switch (s.type) {
1568
+ case t.QueryLexer.TERM:
1569
+ return t.QueryParser.parseTerm;
1570
+ default:
1571
+ var i = "expecting term, found '" + s.type + "'";
1572
+ throw new t.QueryParseError(i, s.start, s.end);
1573
+ }
1574
+ }
1575
+ }),
1576
+ (t.QueryParser.parseTerm = function (e) {
1577
+ var n = e.consumeLexeme();
1578
+ if (n != null) {
1579
+ ((e.currentClause.term = n.str.toLowerCase()),
1580
+ n.str.indexOf("*") != -1 && (e.currentClause.usePipeline = !1));
1581
+ var r = e.peekLexeme();
1582
+ if (r == null) {
1583
+ e.nextClause();
1584
+ return;
1585
+ }
1586
+ switch (r.type) {
1587
+ case t.QueryLexer.TERM:
1588
+ return (e.nextClause(), t.QueryParser.parseTerm);
1589
+ case t.QueryLexer.FIELD:
1590
+ return (e.nextClause(), t.QueryParser.parseField);
1591
+ case t.QueryLexer.EDIT_DISTANCE:
1592
+ return t.QueryParser.parseEditDistance;
1593
+ case t.QueryLexer.BOOST:
1594
+ return t.QueryParser.parseBoost;
1595
+ case t.QueryLexer.PRESENCE:
1596
+ return (e.nextClause(), t.QueryParser.parsePresence);
1597
+ default:
1598
+ var i = "Unexpected lexeme type '" + r.type + "'";
1599
+ throw new t.QueryParseError(i, r.start, r.end);
1600
+ }
1601
+ }
1602
+ }),
1603
+ (t.QueryParser.parseEditDistance = function (e) {
1604
+ var n = e.consumeLexeme();
1605
+ if (n != null) {
1606
+ var r = parseInt(n.str, 10);
1607
+ if (isNaN(r)) {
1608
+ var i = "edit distance must be numeric";
1609
+ throw new t.QueryParseError(i, n.start, n.end);
1610
+ }
1611
+ e.currentClause.editDistance = r;
1612
+ var s = e.peekLexeme();
1613
+ if (s == null) {
1614
+ e.nextClause();
1615
+ return;
1616
+ }
1617
+ switch (s.type) {
1618
+ case t.QueryLexer.TERM:
1619
+ return (e.nextClause(), t.QueryParser.parseTerm);
1620
+ case t.QueryLexer.FIELD:
1621
+ return (e.nextClause(), t.QueryParser.parseField);
1622
+ case t.QueryLexer.EDIT_DISTANCE:
1623
+ return t.QueryParser.parseEditDistance;
1624
+ case t.QueryLexer.BOOST:
1625
+ return t.QueryParser.parseBoost;
1626
+ case t.QueryLexer.PRESENCE:
1627
+ return (e.nextClause(), t.QueryParser.parsePresence);
1628
+ default:
1629
+ var i = "Unexpected lexeme type '" + s.type + "'";
1630
+ throw new t.QueryParseError(i, s.start, s.end);
1631
+ }
1632
+ }
1633
+ }),
1634
+ (t.QueryParser.parseBoost = function (e) {
1635
+ var n = e.consumeLexeme();
1636
+ if (n != null) {
1637
+ var r = parseInt(n.str, 10);
1638
+ if (isNaN(r)) {
1639
+ var i = "boost must be numeric";
1640
+ throw new t.QueryParseError(i, n.start, n.end);
1641
+ }
1642
+ e.currentClause.boost = r;
1643
+ var s = e.peekLexeme();
1644
+ if (s == null) {
1645
+ e.nextClause();
1646
+ return;
1647
+ }
1648
+ switch (s.type) {
1649
+ case t.QueryLexer.TERM:
1650
+ return (e.nextClause(), t.QueryParser.parseTerm);
1651
+ case t.QueryLexer.FIELD:
1652
+ return (e.nextClause(), t.QueryParser.parseField);
1653
+ case t.QueryLexer.EDIT_DISTANCE:
1654
+ return t.QueryParser.parseEditDistance;
1655
+ case t.QueryLexer.BOOST:
1656
+ return t.QueryParser.parseBoost;
1657
+ case t.QueryLexer.PRESENCE:
1658
+ return (e.nextClause(), t.QueryParser.parsePresence);
1659
+ default:
1660
+ var i = "Unexpected lexeme type '" + s.type + "'";
1661
+ throw new t.QueryParseError(i, s.start, s.end);
1662
+ }
1663
+ }
1664
+ }),
1665
+ (function (e, n) {
1666
+ typeof define == "function" && define.amd
1667
+ ? define(n)
1668
+ : typeof me == "object"
1669
+ ? (ge.exports = n())
1670
+ : (e.lunr = n());
1671
+ })(this, function () {
1672
+ return t;
1673
+ }));
1674
+ })();
1675
+ });
1676
+ var M,
1677
+ G = {
1678
+ getItem() {
1679
+ return null;
1680
+ },
1681
+ setItem() {},
1682
+ },
1683
+ K;
1684
+ try {
1685
+ ((K = localStorage), (M = K));
1686
+ } catch {
1687
+ ((K = G), (M = G));
1688
+ }
1689
+ var S = {
1690
+ getItem: (t) => M.getItem(t),
1691
+ setItem: (t, e) => M.setItem(t, e),
1692
+ disableWritingLocalStorage() {
1693
+ M = G;
1694
+ },
1695
+ disable() {
1696
+ (localStorage.clear(), (M = G));
1697
+ },
1698
+ enable() {
1699
+ M = K;
1700
+ },
1701
+ };
1702
+ window.TypeDoc ||= {
1703
+ disableWritingLocalStorage() {
1704
+ S.disableWritingLocalStorage();
1705
+ },
1706
+ disableLocalStorage: () => {
1707
+ S.disable();
1708
+ },
1709
+ enableLocalStorage: () => {
1710
+ S.enable();
1711
+ },
1712
+ };
1713
+ window.translations ||= {
1714
+ copy: "Copy",
1715
+ copied: "Copied!",
1716
+ normally_hidden:
1717
+ "This member is normally hidden due to your filter settings.",
1718
+ hierarchy_expand: "Expand",
1719
+ hierarchy_collapse: "Collapse",
1720
+ search_index_not_available: "The search index is not available",
1721
+ search_no_results_found_for_0: "No results found for {0}",
1722
+ folder: "Folder",
1723
+ kind_1: "Project",
1724
+ kind_2: "Module",
1725
+ kind_4: "Namespace",
1726
+ kind_8: "Enumeration",
1727
+ kind_16: "Enumeration Member",
1728
+ kind_32: "Variable",
1729
+ kind_64: "Function",
1730
+ kind_128: "Class",
1731
+ kind_256: "Interface",
1732
+ kind_512: "Constructor",
1733
+ kind_1024: "Property",
1734
+ kind_2048: "Method",
1735
+ kind_4096: "Call Signature",
1736
+ kind_8192: "Index Signature",
1737
+ kind_16384: "Constructor Signature",
1738
+ kind_32768: "Parameter",
1739
+ kind_65536: "Type Literal",
1740
+ kind_131072: "Type Parameter",
1741
+ kind_262144: "Accessor",
1742
+ kind_524288: "Get Signature",
1743
+ kind_1048576: "Set Signature",
1744
+ kind_2097152: "Type Alias",
1745
+ kind_4194304: "Reference",
1746
+ kind_8388608: "Document",
1747
+ };
1748
+ var pe = [];
1749
+ function X(t, e) {
1750
+ pe.push({ selector: e, constructor: t });
1751
+ }
1752
+ var Z = class {
1753
+ alwaysVisibleMember = null;
1754
+ constructor() {
1755
+ (this.createComponents(document.body),
1756
+ this.ensureFocusedElementVisible(),
1757
+ this.listenForCodeCopies(),
1758
+ window.addEventListener("hashchange", () =>
1759
+ this.ensureFocusedElementVisible(),
1760
+ ),
1761
+ document.body.style.display ||
1762
+ (this.ensureFocusedElementVisible(),
1763
+ this.updateIndexVisibility(),
1764
+ this.scrollToHash()));
1765
+ }
1766
+ createComponents(e) {
1767
+ pe.forEach((n) => {
1768
+ e.querySelectorAll(n.selector).forEach((r) => {
1769
+ r.dataset.hasInstance ||
1770
+ (new n.constructor({ el: r, app: this }),
1771
+ (r.dataset.hasInstance = String(!0)));
1772
+ });
1773
+ });
1774
+ }
1775
+ filterChanged() {
1776
+ this.ensureFocusedElementVisible();
1777
+ }
1778
+ showPage() {
1779
+ document.body.style.display &&
1780
+ (document.body.style.removeProperty("display"),
1781
+ this.ensureFocusedElementVisible(),
1782
+ this.updateIndexVisibility(),
1783
+ this.scrollToHash());
1784
+ }
1785
+ scrollToHash() {
1786
+ if (location.hash) {
1787
+ let e = document.getElementById(location.hash.substring(1));
1788
+ if (!e) return;
1789
+ e.scrollIntoView({ behavior: "instant", block: "start" });
1790
+ }
1791
+ }
1792
+ ensureActivePageVisible() {
1793
+ let e = document.querySelector(".tsd-navigation .current"),
1794
+ n = e?.parentElement;
1795
+ for (; n && !n.classList.contains(".tsd-navigation"); )
1796
+ (n instanceof HTMLDetailsElement && (n.open = !0),
1797
+ (n = n.parentElement));
1798
+ if (e && !rt(e)) {
1799
+ let r =
1800
+ e.getBoundingClientRect().top -
1801
+ document.documentElement.clientHeight / 4;
1802
+ ((document.querySelector(".site-menu").scrollTop = r),
1803
+ (document.querySelector(".col-sidebar").scrollTop = r));
1804
+ }
1805
+ }
1806
+ updateIndexVisibility() {
1807
+ let e = document.querySelector(".tsd-index-content"),
1808
+ n = e?.open;
1809
+ (e && (e.open = !0),
1810
+ document.querySelectorAll(".tsd-index-section").forEach((r) => {
1811
+ r.style.display = "block";
1812
+ let i = Array.from(r.querySelectorAll(".tsd-index-link")).every(
1813
+ (s) => s.offsetParent == null,
1814
+ );
1815
+ r.style.display = i ? "none" : "block";
1816
+ }),
1817
+ e && (e.open = n));
1818
+ }
1819
+ ensureFocusedElementVisible() {
1820
+ if (
1821
+ (this.alwaysVisibleMember &&
1822
+ (this.alwaysVisibleMember.classList.remove("always-visible"),
1823
+ this.alwaysVisibleMember.firstElementChild.remove(),
1824
+ (this.alwaysVisibleMember = null)),
1825
+ !location.hash)
1826
+ )
1827
+ return;
1828
+ let e = document.getElementById(location.hash.substring(1));
1829
+ if (!e) return;
1830
+ let n = e.parentElement;
1831
+ for (; n && n.tagName !== "SECTION"; ) n = n.parentElement;
1832
+ if (!n) return;
1833
+ let r = n.offsetParent == null,
1834
+ i = n;
1835
+ for (; i !== document.body; )
1836
+ (i instanceof HTMLDetailsElement && (i.open = !0),
1837
+ (i = i.parentElement));
1838
+ if (n.offsetParent == null) {
1839
+ ((this.alwaysVisibleMember = n), n.classList.add("always-visible"));
1840
+ let s = document.createElement("p");
1841
+ (s.classList.add("warning"),
1842
+ (s.textContent = window.translations.normally_hidden),
1843
+ n.prepend(s));
1844
+ }
1845
+ r && e.scrollIntoView();
1846
+ }
1847
+ listenForCodeCopies() {
1848
+ document.querySelectorAll("pre > button").forEach((e) => {
1849
+ let n;
1850
+ e.addEventListener("click", () => {
1851
+ (e.previousElementSibling instanceof HTMLElement &&
1852
+ navigator.clipboard.writeText(
1853
+ e.previousElementSibling.innerText.trim(),
1854
+ ),
1855
+ (e.textContent = window.translations.copied),
1856
+ e.classList.add("visible"),
1857
+ clearTimeout(n),
1858
+ (n = setTimeout(() => {
1859
+ (e.classList.remove("visible"),
1860
+ (n = setTimeout(() => {
1861
+ e.textContent = window.translations.copy;
1862
+ }, 100)));
1863
+ }, 1e3)));
1864
+ });
1865
+ });
1866
+ }
1867
+ };
1868
+ function rt(t) {
1869
+ let e = t.getBoundingClientRect(),
1870
+ n = Math.max(document.documentElement.clientHeight, window.innerHeight);
1871
+ return !(e.bottom < 0 || e.top - n >= 0);
1872
+ }
1873
+ var fe = (t, e = 100) => {
1874
+ let n;
1875
+ return () => {
1876
+ (clearTimeout(n), (n = setTimeout(() => t(), e)));
1877
+ };
1878
+ };
1879
+ var Ie = nt(ye(), 1);
1880
+ async function R(t) {
1881
+ let e = Uint8Array.from(atob(t), (s) => s.charCodeAt(0)),
1882
+ r = new Blob([e])
1883
+ .stream()
1884
+ .pipeThrough(new DecompressionStream("deflate")),
1885
+ i = await new Response(r).text();
1886
+ return JSON.parse(i);
1887
+ }
1888
+ var Y = "closing",
1889
+ ae = "tsd-overlay";
1890
+ function it() {
1891
+ let t = Math.abs(window.innerWidth - document.documentElement.clientWidth);
1892
+ ((document.body.style.overflow = "hidden"),
1893
+ (document.body.style.paddingRight = `${t}px`));
1894
+ }
1895
+ function st() {
1896
+ (document.body.style.removeProperty("overflow"),
1897
+ document.body.style.removeProperty("padding-right"));
1898
+ }
1899
+ function xe(t, e) {
1900
+ (t.addEventListener("animationend", () => {
1901
+ t.classList.contains(Y) &&
1902
+ (t.classList.remove(Y),
1903
+ document.getElementById(ae)?.remove(),
1904
+ t.close(),
1905
+ st());
1906
+ }),
1907
+ t.addEventListener("cancel", (n) => {
1908
+ (n.preventDefault(), ve(t));
1909
+ }),
1910
+ e?.closeOnClick &&
1911
+ document.addEventListener(
1912
+ "click",
1913
+ (n) => {
1914
+ t.open && !t.contains(n.target) && ve(t);
1915
+ },
1916
+ !0,
1917
+ ));
1918
+ }
1919
+ function Ee(t) {
1920
+ if (t.open) return;
1921
+ let e = document.createElement("div");
1922
+ ((e.id = ae), document.body.appendChild(e), t.showModal(), it());
1923
+ }
1924
+ function ve(t) {
1925
+ if (!t.open) return;
1926
+ (document.getElementById(ae)?.classList.add(Y), t.classList.add(Y));
1927
+ }
1928
+ var I = class {
1929
+ el;
1930
+ app;
1931
+ constructor(e) {
1932
+ ((this.el = e.el), (this.app = e.app));
1933
+ }
1934
+ };
1935
+ var be = document.head.appendChild(document.createElement("style"));
1936
+ be.dataset.for = "filters";
1937
+ var le = {};
1938
+ function we(t) {
1939
+ for (let e of t.split(/\s+/)) if (le.hasOwnProperty(e) && !le[e]) return !0;
1940
+ return !1;
1941
+ }
1942
+ var ee = class extends I {
1943
+ key;
1944
+ value;
1945
+ constructor(e) {
1946
+ (super(e),
1947
+ (this.key = `filter-${this.el.name}`),
1948
+ (this.value = this.el.checked),
1949
+ this.el.addEventListener("change", () => {
1950
+ this.setLocalStorage(this.el.checked);
1951
+ }),
1952
+ this.setLocalStorage(this.fromLocalStorage()),
1953
+ (be.innerHTML += `html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; }
1954
+ `),
1955
+ this.app.updateIndexVisibility());
1956
+ }
1957
+ fromLocalStorage() {
1958
+ let e = S.getItem(this.key);
1959
+ return e ? e === "true" : this.el.checked;
1960
+ }
1961
+ setLocalStorage(e) {
1962
+ (S.setItem(this.key, e.toString()),
1963
+ (this.value = e),
1964
+ this.handleValueChange());
1965
+ }
1966
+ handleValueChange() {
1967
+ ((this.el.checked = this.value),
1968
+ document.documentElement.classList.toggle(this.key, this.value),
1969
+ (le[`tsd-is-${this.el.name}`] = this.value),
1970
+ this.app.filterChanged(),
1971
+ this.app.updateIndexVisibility());
1972
+ }
1973
+ };
1974
+ var Le = 0;
1975
+ async function Se(t, e) {
1976
+ if (!window.searchData) return;
1977
+ let n = await R(window.searchData);
1978
+ ((t.data = n), (t.index = Ie.Index.load(n.index)), (e.innerHTML = ""));
1979
+ }
1980
+ function _e() {
1981
+ let t = document.getElementById("tsd-search-trigger"),
1982
+ e = document.getElementById("tsd-search"),
1983
+ n = document.getElementById("tsd-search-input"),
1984
+ r = document.getElementById("tsd-search-results"),
1985
+ i = document.getElementById("tsd-search-script"),
1986
+ s = document.getElementById("tsd-search-status");
1987
+ if (!(t && e && n && r && i && s))
1988
+ throw new Error("Search controls missing");
1989
+ let o = { base: document.documentElement.dataset.base };
1990
+ (o.base.endsWith("/") || (o.base += "/"),
1991
+ i.addEventListener("error", () => {
1992
+ let a = window.translations.search_index_not_available;
1993
+ Pe(s, a);
1994
+ }),
1995
+ i.addEventListener("load", () => {
1996
+ Se(o, s);
1997
+ }),
1998
+ Se(o, s),
1999
+ ot({ trigger: t, searchEl: e, results: r, field: n, status: s }, o));
2000
+ }
2001
+ function ot(t, e) {
2002
+ let { field: n, results: r, searchEl: i, status: s, trigger: o } = t;
2003
+ xe(i, { closeOnClick: !0 });
2004
+ function a() {
2005
+ (Ee(i), n.setSelectionRange(0, n.value.length));
2006
+ }
2007
+ (o.addEventListener("click", a),
2008
+ n.addEventListener(
2009
+ "input",
2010
+ fe(() => {
2011
+ at(r, n, s, e);
2012
+ }, 200),
2013
+ ),
2014
+ n.addEventListener("keydown", (l) => {
2015
+ if (r.childElementCount === 0 || l.ctrlKey || l.metaKey || l.altKey)
2016
+ return;
2017
+ let d = n.getAttribute("aria-activedescendant"),
2018
+ f = d ? document.getElementById(d) : null;
2019
+ if (f) {
2020
+ let p = !1,
2021
+ v = !1;
2022
+ switch (l.key) {
2023
+ case "Home":
2024
+ case "End":
2025
+ case "ArrowLeft":
2026
+ case "ArrowRight":
2027
+ v = !0;
2028
+ break;
2029
+ case "ArrowDown":
2030
+ case "ArrowUp":
2031
+ p = l.shiftKey;
2032
+ break;
2033
+ }
2034
+ (p || v) && ke(n);
2035
+ }
2036
+ if (!l.shiftKey)
2037
+ switch (l.key) {
2038
+ case "Enter":
2039
+ f?.querySelector("a")?.click();
2040
+ break;
2041
+ case "ArrowUp":
2042
+ (Te(r, n, f, -1), l.preventDefault());
2043
+ break;
2044
+ case "ArrowDown":
2045
+ (Te(r, n, f, 1), l.preventDefault());
2046
+ break;
2047
+ }
2048
+ }));
2049
+ function c() {
2050
+ ke(n);
2051
+ }
2052
+ (n.addEventListener("change", c),
2053
+ n.addEventListener("blur", c),
2054
+ n.addEventListener("click", c),
2055
+ document.body.addEventListener("keydown", (l) => {
2056
+ if (l.altKey || l.metaKey || l.shiftKey) return;
2057
+ let d = l.ctrlKey && l.key === "k",
2058
+ f = !l.ctrlKey && !ut() && l.key === "/";
2059
+ (d || f) && (l.preventDefault(), a());
2060
+ }));
2061
+ }
2062
+ function at(t, e, n, r) {
2063
+ if (!r.index || !r.data) return;
2064
+ ((t.innerHTML = ""), (n.innerHTML = ""), (Le += 1));
2065
+ let i = e.value.trim(),
2066
+ s;
2067
+ if (i) {
2068
+ let a = i
2069
+ .split(" ")
2070
+ .map((c) => (c.length ? `*${c}*` : ""))
2071
+ .join(" ");
2072
+ s = r.index.search(a).filter(({ ref: c }) => {
2073
+ let l = r.data.rows[Number(c)].classes;
2074
+ return !l || !we(l);
2075
+ });
2076
+ } else s = [];
2077
+ if (s.length === 0 && i) {
2078
+ let a = window.translations.search_no_results_found_for_0.replace(
2079
+ "{0}",
2080
+ ` "<strong>${te(i)}</strong>" `,
2081
+ );
2082
+ Pe(n, a);
2083
+ return;
2084
+ }
2085
+ for (let a = 0; a < s.length; a++) {
2086
+ let c = s[a],
2087
+ l = r.data.rows[Number(c.ref)],
2088
+ d = 1;
2089
+ (l.name.toLowerCase().startsWith(i.toLowerCase()) &&
2090
+ (d *= 10 / (1 + Math.abs(l.name.length - i.length))),
2091
+ (c.score *= d));
2092
+ }
2093
+ s.sort((a, c) => c.score - a.score);
2094
+ let o = Math.min(10, s.length);
2095
+ for (let a = 0; a < o; a++) {
2096
+ let c = r.data.rows[Number(s[a].ref)],
2097
+ d = `<svg width="20" height="20" viewBox="0 0 24 24" fill="none" class="tsd-kind-icon" aria-label="${window.translations[`kind_${c.kind}`].replaceAll('"', "&quot;")}"><use href="#icon-${c.icon || c.kind}"></use></svg>`,
2098
+ f = Ce(c.name, i);
2099
+ (globalThis.DEBUG_SEARCH_WEIGHTS &&
2100
+ (f += ` (score: ${s[a].score.toFixed(2)})`),
2101
+ c.parent &&
2102
+ (f = `<span class="parent">
2103
+ ${Ce(c.parent, i)}.</span>${f}`));
2104
+ let p = document.createElement("li");
2105
+ ((p.id = `tsd-search:${Le}-${a}`),
2106
+ (p.role = "option"),
2107
+ (p.ariaSelected = "false"),
2108
+ (p.classList.value = c.classes ?? ""));
2109
+ let v = document.createElement("a");
2110
+ ((v.tabIndex = -1),
2111
+ (v.href = r.base + c.url),
2112
+ (v.innerHTML = d + `<span class="text">${f}</span>`),
2113
+ p.append(v),
2114
+ t.appendChild(p));
2115
+ }
2116
+ }
2117
+ function Te(t, e, n, r) {
2118
+ let i;
2119
+ if (
2120
+ (r === 1
2121
+ ? (i = n?.nextElementSibling || t.firstElementChild)
2122
+ : (i = n?.previousElementSibling || t.lastElementChild),
2123
+ i !== n)
2124
+ ) {
2125
+ if (!i || i.role !== "option") {
2126
+ console.error("Option missing");
2127
+ return;
2128
+ }
2129
+ ((i.ariaSelected = "true"),
2130
+ i.scrollIntoView({ behavior: "smooth", block: "nearest" }),
2131
+ e.setAttribute("aria-activedescendant", i.id),
2132
+ n?.setAttribute("aria-selected", "false"));
2133
+ }
2134
+ }
2135
+ function ke(t) {
2136
+ let e = t.getAttribute("aria-activedescendant");
2137
+ ((e ? document.getElementById(e) : null)?.setAttribute(
2138
+ "aria-selected",
2139
+ "false",
2140
+ ),
2141
+ t.setAttribute("aria-activedescendant", ""));
2142
+ }
2143
+ function Ce(t, e) {
2144
+ if (e === "") return t;
2145
+ let n = t.toLocaleLowerCase(),
2146
+ r = e.toLocaleLowerCase(),
2147
+ i = [],
2148
+ s = 0,
2149
+ o = n.indexOf(r);
2150
+ for (; o != -1; )
2151
+ (i.push(
2152
+ te(t.substring(s, o)),
2153
+ `<mark>${te(t.substring(o, o + r.length))}</mark>`,
2154
+ ),
2155
+ (s = o + r.length),
2156
+ (o = n.indexOf(r, s)));
2157
+ return (i.push(te(t.substring(s))), i.join(""));
2158
+ }
2159
+ var lt = {
2160
+ "&": "&amp;",
2161
+ "<": "&lt;",
2162
+ ">": "&gt;",
2163
+ "'": "&#039;",
2164
+ '"': "&quot;",
2165
+ };
2166
+ function te(t) {
2167
+ return t.replace(/[&<>"'"]/g, (e) => lt[e]);
2168
+ }
2169
+ function Pe(t, e) {
2170
+ t.innerHTML = e ? `<div>${e}</div>` : "";
2171
+ }
2172
+ var ct = [
2173
+ "button",
2174
+ "checkbox",
2175
+ "file",
2176
+ "hidden",
2177
+ "image",
2178
+ "radio",
2179
+ "range",
2180
+ "reset",
2181
+ "submit",
2182
+ ];
2183
+ function ut() {
2184
+ let t = document.activeElement;
2185
+ return t
2186
+ ? t.isContentEditable ||
2187
+ t.tagName === "TEXTAREA" ||
2188
+ t.tagName === "SEARCH"
2189
+ ? !0
2190
+ : t.tagName === "INPUT" && !ct.includes(t.type)
2191
+ : !1;
2192
+ }
2193
+ var D = "mousedown",
2194
+ Me = "mousemove",
2195
+ $ = "mouseup",
2196
+ ne = { x: 0, y: 0 },
2197
+ Qe = !1,
2198
+ ce = !1,
2199
+ dt = !1,
2200
+ F = !1,
2201
+ Oe = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
2202
+ navigator.userAgent,
2203
+ );
2204
+ document.documentElement.classList.add(Oe ? "is-mobile" : "not-mobile");
2205
+ Oe &&
2206
+ "ontouchstart" in document.documentElement &&
2207
+ ((dt = !0), (D = "touchstart"), (Me = "touchmove"), ($ = "touchend"));
2208
+ document.addEventListener(D, (t) => {
2209
+ ((ce = !0), (F = !1));
2210
+ let e = D == "touchstart" ? t.targetTouches[0] : t;
2211
+ ((ne.y = e.pageY || 0), (ne.x = e.pageX || 0));
2212
+ });
2213
+ document.addEventListener(Me, (t) => {
2214
+ if (ce && !F) {
2215
+ let e = D == "touchstart" ? t.targetTouches[0] : t,
2216
+ n = ne.x - (e.pageX || 0),
2217
+ r = ne.y - (e.pageY || 0);
2218
+ F = Math.sqrt(n * n + r * r) > 10;
2219
+ }
2220
+ });
2221
+ document.addEventListener($, () => {
2222
+ ce = !1;
2223
+ });
2224
+ document.addEventListener("click", (t) => {
2225
+ Qe && (t.preventDefault(), t.stopImmediatePropagation(), (Qe = !1));
2226
+ });
2227
+ var re = class extends I {
2228
+ active;
2229
+ className;
2230
+ constructor(e) {
2231
+ (super(e),
2232
+ (this.className = this.el.dataset.toggle || ""),
2233
+ this.el.addEventListener($, (n) => this.onPointerUp(n)),
2234
+ this.el.addEventListener("click", (n) => n.preventDefault()),
2235
+ document.addEventListener(D, (n) => this.onDocumentPointerDown(n)),
2236
+ document.addEventListener($, (n) => this.onDocumentPointerUp(n)));
2237
+ }
2238
+ setActive(e) {
2239
+ if (this.active == e) return;
2240
+ ((this.active = e),
2241
+ document.documentElement.classList.toggle("has-" + this.className, e),
2242
+ this.el.classList.toggle("active", e));
2243
+ let n = (this.active ? "to-has-" : "from-has-") + this.className;
2244
+ (document.documentElement.classList.add(n),
2245
+ setTimeout(() => document.documentElement.classList.remove(n), 500));
2246
+ }
2247
+ onPointerUp(e) {
2248
+ F || (this.setActive(!0), e.preventDefault());
2249
+ }
2250
+ onDocumentPointerDown(e) {
2251
+ if (this.active) {
2252
+ if (e.target.closest(".col-sidebar, .tsd-filter-group")) return;
2253
+ this.setActive(!1);
2254
+ }
2255
+ }
2256
+ onDocumentPointerUp(e) {
2257
+ if (!F && this.active && e.target.closest(".col-sidebar")) {
2258
+ let n = e.target.closest("a");
2259
+ if (n) {
2260
+ let r = window.location.href;
2261
+ (r.indexOf("#") != -1 && (r = r.substring(0, r.indexOf("#"))),
2262
+ n.href.substring(0, r.length) == r &&
2263
+ setTimeout(() => this.setActive(!1), 250));
2264
+ }
2265
+ }
2266
+ }
2267
+ };
2268
+ var ue = new Map(),
2269
+ de = class {
2270
+ open;
2271
+ accordions = [];
2272
+ key;
2273
+ constructor(e, n) {
2274
+ ((this.key = e), (this.open = n));
2275
+ }
2276
+ add(e) {
2277
+ (this.accordions.push(e),
2278
+ (e.open = this.open),
2279
+ e.addEventListener("toggle", () => {
2280
+ this.toggle(e.open);
2281
+ }));
2282
+ }
2283
+ toggle(e) {
2284
+ for (let n of this.accordions) n.open = e;
2285
+ S.setItem(this.key, e.toString());
2286
+ }
2287
+ },
2288
+ ie = class extends I {
2289
+ constructor(e) {
2290
+ super(e);
2291
+ let n = this.el.querySelector("summary"),
2292
+ r = n.querySelector("a");
2293
+ r &&
2294
+ r.addEventListener("click", () => {
2295
+ location.assign(r.href);
2296
+ });
2297
+ let i = `tsd-accordion-${n.dataset.key ?? n.textContent.trim().replace(/\s+/g, "-").toLowerCase()}`,
2298
+ s;
2299
+ if (ue.has(i)) s = ue.get(i);
2300
+ else {
2301
+ let o = S.getItem(i),
2302
+ a = o ? o === "true" : this.el.open;
2303
+ ((s = new de(i, a)), ue.set(i, s));
2304
+ }
2305
+ s.add(this.el);
2306
+ }
2307
+ };
2308
+ function He(t) {
2309
+ let e = S.getItem("tsd-theme") || "os";
2310
+ ((t.value = e),
2311
+ Ae(e),
2312
+ t.addEventListener("change", () => {
2313
+ (S.setItem("tsd-theme", t.value), Ae(t.value));
2314
+ }));
2315
+ }
2316
+ function Ae(t) {
2317
+ document.documentElement.dataset.theme = t;
2318
+ }
2319
+ var se;
2320
+ function Ne() {
2321
+ let t = document.getElementById("tsd-nav-script");
2322
+ t && (t.addEventListener("load", Re), Re());
2323
+ }
2324
+ async function Re() {
2325
+ let t = document.getElementById("tsd-nav-container");
2326
+ if (!t || !window.navigationData) return;
2327
+ let e = await R(window.navigationData);
2328
+ ((se = document.documentElement.dataset.base),
2329
+ se.endsWith("/") || (se += "/"),
2330
+ (t.innerHTML = ""));
2331
+ for (let n of e) Be(n, t, []);
2332
+ (window.app.createComponents(t),
2333
+ window.app.showPage(),
2334
+ window.app.ensureActivePageVisible());
2335
+ }
2336
+ function Be(t, e, n) {
2337
+ let r = e.appendChild(document.createElement("li"));
2338
+ if (t.children) {
2339
+ let i = [...n, t.text],
2340
+ s = r.appendChild(document.createElement("details"));
2341
+ s.className = t.class ? `${t.class} tsd-accordion` : "tsd-accordion";
2342
+ let o = s.appendChild(document.createElement("summary"));
2343
+ ((o.className = "tsd-accordion-summary"),
2344
+ (o.dataset.key = i.join("$")),
2345
+ (o.innerHTML =
2346
+ '<svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>'),
2347
+ De(t, o));
2348
+ let a = s.appendChild(document.createElement("div"));
2349
+ a.className = "tsd-accordion-details";
2350
+ let c = a.appendChild(document.createElement("ul"));
2351
+ c.className = "tsd-nested-navigation";
2352
+ for (let l of t.children) Be(l, c, i);
2353
+ } else De(t, r, t.class);
2354
+ }
2355
+ function De(t, e, n) {
2356
+ if (t.path) {
2357
+ let r = e.appendChild(document.createElement("a"));
2358
+ if (
2359
+ ((r.href = se + t.path),
2360
+ n && (r.className = n),
2361
+ location.pathname === r.pathname &&
2362
+ !r.href.includes("#") &&
2363
+ (r.classList.add("current"), (r.ariaCurrent = "page")),
2364
+ t.kind)
2365
+ ) {
2366
+ let i = window.translations[`kind_${t.kind}`].replaceAll('"', "&quot;");
2367
+ r.innerHTML = `<svg width="20" height="20" viewBox="0 0 24 24" fill="none" class="tsd-kind-icon" aria-label="${i}"><use href="#icon-${t.icon || t.kind}"></use></svg>`;
2368
+ }
2369
+ r.appendChild(Fe(t.text, document.createElement("span")));
2370
+ } else {
2371
+ let r = e.appendChild(document.createElement("span")),
2372
+ i = window.translations.folder.replaceAll('"', "&quot;");
2373
+ ((r.innerHTML = `<svg width="20" height="20" viewBox="0 0 24 24" fill="none" class="tsd-kind-icon" aria-label="${i}"><use href="#icon-folder"></use></svg>`),
2374
+ r.appendChild(Fe(t.text, document.createElement("span"))));
2375
+ }
2376
+ }
2377
+ function Fe(t, e) {
2378
+ let n = t.split(
2379
+ /(?<=[^A-Z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])|(?<=[_-])(?=[^_-])/,
2380
+ );
2381
+ for (let r = 0; r < n.length; ++r)
2382
+ (r !== 0 && e.appendChild(document.createElement("wbr")),
2383
+ e.appendChild(document.createTextNode(n[r])));
2384
+ return e;
2385
+ }
2386
+ var oe = document.documentElement.dataset.base;
2387
+ oe.endsWith("/") || (oe += "/");
2388
+ function $e() {
2389
+ document.querySelector(".tsd-full-hierarchy")
2390
+ ? ht()
2391
+ : document.querySelector(".tsd-hierarchy") && pt();
2392
+ }
2393
+ function ht() {
2394
+ document.addEventListener("click", (r) => {
2395
+ let i = r.target;
2396
+ for (; i.parentElement && i.parentElement.tagName != "LI"; )
2397
+ i = i.parentElement;
2398
+ i.dataset.dropdown &&
2399
+ (i.dataset.dropdown = String(i.dataset.dropdown !== "true"));
2400
+ });
2401
+ let t = new Map(),
2402
+ e = new Set();
2403
+ for (let r of document.querySelectorAll(
2404
+ ".tsd-full-hierarchy [data-refl]",
2405
+ )) {
2406
+ let i = r.querySelector("ul");
2407
+ t.has(r.dataset.refl)
2408
+ ? e.add(r.dataset.refl)
2409
+ : i && t.set(r.dataset.refl, i);
2410
+ }
2411
+ for (let r of e) n(r);
2412
+ function n(r) {
2413
+ let i = t.get(r).cloneNode(!0);
2414
+ (i.querySelectorAll("[id]").forEach((s) => {
2415
+ s.removeAttribute("id");
2416
+ }),
2417
+ i.querySelectorAll("[data-dropdown]").forEach((s) => {
2418
+ s.dataset.dropdown = "false";
2419
+ }));
2420
+ for (let s of document.querySelectorAll(`[data-refl="${r}"]`)) {
2421
+ let o = gt(),
2422
+ a = s.querySelector("ul");
2423
+ (s.insertBefore(o, a),
2424
+ (o.dataset.dropdown = String(!!a)),
2425
+ a || s.appendChild(i.cloneNode(!0)));
2426
+ }
2427
+ }
2428
+ }
2429
+ function pt() {
2430
+ let t = document.getElementById("tsd-hierarchy-script");
2431
+ t && (t.addEventListener("load", Ve), Ve());
2432
+ }
2433
+ async function Ve() {
2434
+ let t = document.querySelector(".tsd-panel.tsd-hierarchy:has(h4 a)");
2435
+ if (!t || !window.hierarchyData) return;
2436
+ let e = +t.dataset.refl,
2437
+ n = await R(window.hierarchyData),
2438
+ r = t.querySelector("ul"),
2439
+ i = document.createElement("ul");
2440
+ if (
2441
+ (i.classList.add("tsd-hierarchy"),
2442
+ ft(i, n, e),
2443
+ r.querySelectorAll("li").length == i.querySelectorAll("li").length)
2444
+ )
2445
+ return;
2446
+ let s = document.createElement("span");
2447
+ (s.classList.add("tsd-hierarchy-toggle"),
2448
+ (s.textContent = window.translations.hierarchy_expand),
2449
+ t.querySelector("h4 a")?.insertAdjacentElement("afterend", s),
2450
+ s.insertAdjacentText("beforebegin", ", "),
2451
+ s.addEventListener("click", () => {
2452
+ s.textContent === window.translations.hierarchy_expand
2453
+ ? (r.insertAdjacentElement("afterend", i),
2454
+ r.remove(),
2455
+ (s.textContent = window.translations.hierarchy_collapse))
2456
+ : (i.insertAdjacentElement("afterend", r),
2457
+ i.remove(),
2458
+ (s.textContent = window.translations.hierarchy_expand));
2459
+ }));
2460
+ }
2461
+ function ft(t, e, n) {
2462
+ let r = e.roots.filter((i) => mt(e, i, n));
2463
+ for (let i of r) t.appendChild(je(e, i, n));
2464
+ }
2465
+ function je(t, e, n, r = new Set()) {
2466
+ if (r.has(e)) return;
2467
+ r.add(e);
2468
+ let i = t.reflections[e],
2469
+ s = document.createElement("li");
2470
+ if ((s.classList.add("tsd-hierarchy-item"), e === n)) {
2471
+ let o = s.appendChild(document.createElement("span"));
2472
+ ((o.textContent = i.name), o.classList.add("tsd-hierarchy-target"));
2473
+ } else {
2474
+ for (let a of i.uniqueNameParents || []) {
2475
+ let c = t.reflections[a],
2476
+ l = s.appendChild(document.createElement("a"));
2477
+ ((l.textContent = c.name),
2478
+ (l.href = oe + c.url),
2479
+ (l.className = c.class + " tsd-signature-type"),
2480
+ s.append(document.createTextNode(".")));
2481
+ }
2482
+ let o = s.appendChild(document.createElement("a"));
2483
+ ((o.textContent = t.reflections[e].name),
2484
+ (o.href = oe + i.url),
2485
+ (o.className = i.class + " tsd-signature-type"));
2486
+ }
2487
+ if (i.children) {
2488
+ let o = s.appendChild(document.createElement("ul"));
2489
+ o.classList.add("tsd-hierarchy");
2490
+ for (let a of i.children) {
2491
+ let c = je(t, a, n, r);
2492
+ c && o.appendChild(c);
2493
+ }
2494
+ }
2495
+ return (r.delete(e), s);
2496
+ }
2497
+ function mt(t, e, n) {
2498
+ if (e === n) return !0;
2499
+ let r = new Set(),
2500
+ i = [t.reflections[e]];
2501
+ for (; i.length; ) {
2502
+ let s = i.pop();
2503
+ if (!r.has(s)) {
2504
+ r.add(s);
2505
+ for (let o of s.children || []) {
2506
+ if (o === n) return !0;
2507
+ i.push(t.reflections[o]);
2508
+ }
2509
+ }
2510
+ }
2511
+ return !1;
2512
+ }
2513
+ function gt() {
2514
+ let t = document.createElementNS("http://www.w3.org/2000/svg", "svg");
2515
+ return (
2516
+ t.setAttribute("width", "20"),
2517
+ t.setAttribute("height", "20"),
2518
+ t.setAttribute("viewBox", "0 0 24 24"),
2519
+ t.setAttribute("fill", "none"),
2520
+ (t.innerHTML = '<use href="#icon-chevronDown"></use>'),
2521
+ t
2522
+ );
2523
+ }
2524
+ X(re, "a[data-toggle]");
2525
+ X(ie, ".tsd-accordion");
2526
+ X(ee, ".tsd-filter-item input[type=checkbox]");
2527
+ var qe = document.getElementById("tsd-theme");
2528
+ qe && He(qe);
2529
+ var yt = new Z();
2530
+ Object.defineProperty(window, "app", { value: yt });
2531
+ _e();
2532
+ Ne();
2533
+ $e();
2534
+ "virtualKeyboard" in navigator &&
2535
+ (navigator.virtualKeyboard.overlaysContent = !0);
2536
+ })();
7
2537
  /*! Bundled license information:
8
2538
 
9
2539
  lunr/lunr.js: