Socket
Socket
Sign inDemoInstall

@alchemydocs/template

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alchemydocs/template - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

scss/errorpage.scss

4

dist/js/alchemy.js

@@ -1,2 +0,2 @@

!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";n.r(t),n.d(t,"getAbsolutePath",function(){return o}),n.d(t,"isAbsolutePath",function(){return r}),n.d(t,"isRelativePath",function(){return i}),n.d(t,"getDirectory",function(){return a}),n.d(t,"formList",function(){return s});const o=e=>{var t=document.createElement("a");return t.setAttribute("href",e),t.host+t.pathname},r=e=>/^(?:[a-z]+:)?\/\//i.test(e),i=e=>void 0!==e&&""!==e&&"/"!==e[0]&&!r(e),a=e=>{if(!e)return"";const t=e.lastIndexOf("/");return-1==t?"":t>-1?e.substr(0,t):void 0},s=(e,t)=>{let n=1;const o=(e,t)=>{if(!e||!e.items)return null;const r=e.items.length;if(0===r)return null;let i='<ul class="level'+n+" "+(t||"")+'">';n+=1;for(let n=0;n<r;n++){const r=e.items[n],a=r.name;let s=r.href;a&&(i+=s?'<li><a href="'+s+'">'+a+"</a>":"<li>"+a,i+=o(r,t)||"",i+="</li>")}return i+="</ul>"},r={items:e},i=[].concat(t).join(" ");return o(r,i)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([,function(e,t,n){"use strict";n.r(t),n.d(t,"getAbsolutePath",function(){return o}),n.d(t,"isAbsolutePath",function(){return r}),n.d(t,"isRelativePath",function(){return i}),n.d(t,"getDirectory",function(){return a}),n.d(t,"formList",function(){return s});const o=e=>{var t=document.createElement("a");return t.setAttribute("href",e),t.host+t.pathname},r=e=>/^(?:[a-z]+:)?\/\//i.test(e),i=e=>void 0!==e&&""!==e&&"/"!==e[0]&&!r(e),a=e=>{if(!e)return"";const t=e.lastIndexOf("/");return-1==t?"":t>-1?e.substr(0,t):void 0},s=(e,t)=>{let n=1;const o=(e,t)=>{if(!e||!e.items)return null;const r=e.items.length;if(0===r)return null;let i='<ul class="level'+n+" "+(t||"")+'">';n+=1;for(let n=0;n<r;n++){const r=e.items[n],a=r.name;let s=r.href;a&&(i+=s?'<li><a href="'+s+'">'+a+"</a>":"<li>"+a,i+=o(r,t)||"",i+="</li>")}return i+="</ul>"},r={items:e},i=[].concat(t).join(" ");return o(r,i)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){
/*!***************************************************

@@ -8,2 +8,2 @@ * mark.js v8.11.1

*****************************************************/
e.exports=function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(n){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=o,this.exclude=r,this.iframesTimeout=i}return n(e,[{key:"getContexts",value:function(){var e=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(function(t){var n=e.filter(function(e){return e.contains(t)}).length>0;-1!==e.indexOf(t)||n||e.push(t)}),e}},{key:"getIframeContents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=void 0;try{var r=e.contentWindow;if(o=r.document,!r||!o)throw new Error("iframe inaccessible")}catch(e){n()}o&&t(o)}},{key:"isIframeBlank",value:function(e){var t="about:blank",n=e.getAttribute("src").trim(),o=e.contentWindow.location.href;return o===t&&n!==t&&n}},{key:"observeIframeLoad",value:function(e,t,n){var o=this,r=!1,i=null,a=function a(){if(!r){r=!0,clearTimeout(i);try{o.isIframeBlank(e)||(e.removeEventListener("load",a),o.getIframeContents(e,t,n))}catch(e){n()}}};e.addEventListener("load",a),i=setTimeout(a,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,t,n){try{"complete"===e.contentWindow.document.readyState?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch(e){n()}}},{key:"waitForIframes",value:function(e,t){var n=this,o=0;this.forEachIframe(e,function(){return!0},function(e){o++,n.waitForIframes(e.querySelector("html"),function(){--o||t()})},function(e){e||t()})}},{key:"forEachIframe",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=t.querySelectorAll("iframe"),s=a.length,c=0;a=Array.prototype.slice.call(a);var l=function(){--s<=0&&i(c)};s||l(),a.forEach(function(t){e.matches(t,r.exclude)?l():r.onIframeReady(t,function(e){n(t)&&(c++,o(e)),l()},l)})}},{key:"createIterator",value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:"createInstanceOnIframe",value:function(t){return new e(t.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,t,n){var o=e.compareDocumentPosition(n),r=Node.DOCUMENT_POSITION_PRECEDING;if(o&r){if(null===t)return!0;var i=t.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_FOLLOWING;if(i&a)return!0}return!1}},{key:"getIteratorNode",value:function(e){var t=e.previousNode(),n=void 0;return n=null===t?e.nextNode():e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}},{key:"checkIframeFilter",value:function(e,t,n,o){var r=!1,i=!1;return o.forEach(function(e,t){e.val===n&&(r=t,i=e.handled)}),this.compareNodeIframe(e,t,n)?(!1!==r||i?!1===r||i||(o[r].handled=!0):o.push({val:n,handled:!0}),!0):(!1===r&&o.push({val:n,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,t,n,o){var r=this;e.forEach(function(e){e.handled||r.getIframeContents(e.val,function(e){r.createInstanceOnIframe(e).forEachNode(t,n,o)})})}},{key:"iterateThroughNodes",value:function(e,t,n,o,r){for(var i=this,a=this.createIterator(t,e,o),s=[],c=[],l=void 0,u=void 0;d=void 0,d=i.getIteratorNode(a),u=d.prevNode,l=d.node;)this.iframes&&this.forEachIframe(t,function(e){return i.checkIframeFilter(l,u,e,s)},function(t){i.createInstanceOnIframe(t).forEachNode(e,function(e){return c.push(e)},o)}),c.push(l);var d;c.forEach(function(e){n(e)}),this.iframes&&this.handleOpenIframes(s,e,n,o),r()}},{key:"forEachNode",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},i=this.getContexts(),a=i.length;a||r(),i.forEach(function(i){var s=function(){o.iterateThroughNodes(e,i,t,n,function(){--a<=0&&r()})};o.iframes?o.waitForIframes(i,s):s()})}}],[{key:"matches",value:function(e,t){var n="string"==typeof t?[t]:t,o=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(o){var r=!1;return n.every(function(t){return!o.call(e,t)||(r=!0,!1)}),r}return!1}}]),e}(),i=function(){function i(e){t(this,i),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf("MSIE")>-1||n.indexOf("Trident")>-1)&&(this.ie=!0)}return n(i,[{key:"log",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",o=this.opt.log;this.opt.debug&&"object"===(void 0===o?"undefined":e(o))&&"function"==typeof o[n]&&o[n]("mark.js: "+t)}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(e){return"disabled"!==this.opt.wildcards&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),"disabled"!==this.opt.wildcards&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e)}},{key:"createSynonymsRegExp",value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",o=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(r):this.escapeStr(r),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(i):this.escapeStr(i);""!==a&&""!==s&&(e=e.replace(new RegExp("("+this.escapeStr(a)+"|"+this.escapeStr(s)+")","gm"+n),o+"("+this.processSynomyms(a)+"|"+this.processSynomyms(s)+")"+o))}return e}},{key:"processSynomyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return(e=e.replace(/(?:\\)*\?/g,function(e){return"\\"===e.charAt(0)?"?":""})).replace(/(?:\\)*\*/g,function(e){return"\\"===e.charAt(0)?"*":""})}},{key:"createWildcardsRegExp",value:function(e){var t="withSpaces"===this.opt.wildcards;return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,function(e,t,n){var o=n.charAt(t+1);return/[(|)\\]/.test(o)||""===o?e:e+"\0"})}},{key:"createJoinersRegExp",value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join("["+t.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],o=[];return e.split("").forEach(function(r){n.every(function(n){if(-1!==n.indexOf(r)){if(o.indexOf(n)>-1)return!1;e=e.replace(new RegExp("["+n+"]","gm"+t),"["+n+"]"),o.push(n)}return!0})}),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var t=this,n=this.opt.accuracy,o="string"==typeof n?n:n.value,r="string"==typeof n?[]:n.limiters,i="";switch(r.forEach(function(e){i+="|"+t.escapeStr(e)}),o){case"partially":default:return"()("+e+")";case"complementary":return"()([^"+(i="\\s"+(i||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")))+"]*"+e+"[^"+i+"]*)";case"exactly":return"(^|\\s"+i+")("+e+")(?=$|\\s"+i+")"}}},{key:"getSeparatedKeywords",value:function(e){var t=this,n=[];return e.forEach(function(e){t.opt.separateWordSearch?e.split(" ").forEach(function(e){e.trim()&&-1===n.indexOf(e)&&n.push(e)}):e.trim()&&-1===n.indexOf(e)&&n.push(e)}),{keywords:n.sort(function(e,t){return t.length-e.length}),length:n.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var t=this;if(!Array.isArray(e)||"[object Object]"!==Object.prototype.toString.call(e[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var n=[],o=0;return e.sort(function(e,t){return e.start-t.start}).forEach(function(e){var r=t.callNoMatchOnInvalidRanges(e,o),i=r.start,a=r.end,s=r.valid;s&&(e.start=i,e.length=a-i,n.push(e),o=a)}),n}},{key:"callNoMatchOnInvalidRanges",value:function(e,t){var n=void 0,o=void 0,r=!1;return e&&void 0!==e.start?(n=parseInt(e.start,10),o=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&o-t>0&&o-n>0?r=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(e)),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:o,valid:r}}},{key:"checkWhitespaceRanges",value:function(e,t,n){var o=void 0,r=!0,i=n.length,a=t-i,s=parseInt(e.start,10)-a;return(o=(s=s>i?i:s)+parseInt(e.length,10))>i&&(o=i,this.log("End range automatically set to the max value of "+i)),s<0||o-s<0||s>i||o>i?(r=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):""===n.substring(s,o).replace(/\s+/g,"")&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:o,valid:r}}},{key:"getTextNodes",value:function(e){var t=this,n="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(e){o.push({start:n.length,end:(n+=e.textContent).length,node:e})},function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:n,nodes:o})})}},{key:"matchesExclude",value:function(e){return r.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,t,n){var o=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(n-t),a=document.createElement(o);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=r.textContent,r.parentNode.replaceChild(a,r),i}},{key:"wrapRangeInMappedTextNode",value:function(e,t,n,o,r){var i=this;e.nodes.every(function(a,s){var c=e.nodes[s+1];if(void 0===c||c.start>t){if(!o(a.node))return!1;var l=t-a.start,u=(n>a.end?a.end:n)-a.start,d=e.value.substr(0,a.start),h=e.value.substr(u+a.start);if(a.node=i.wrapRangeInTextNode(a.node,l,u),e.value=d+h,e.nodes.forEach(function(t,n){n>=s&&(e.nodes[n].start>0&&n!==s&&(e.nodes[n].start-=u),e.nodes[n].end-=u)}),n-=u,r(a.node.previousSibling,a.start),!(n>a.end))return!1;t=a.end}return!0})}},{key:"wrapMatches",value:function(e,t,n,o,r){var i=this,a=0===t?0:t+1;this.getTextNodes(function(t){t.nodes.forEach(function(t){t=t.node;for(var r=void 0;null!==(r=e.exec(t.textContent))&&""!==r[a];)if(n(r[a],t)){var s=r.index;if(0!==a)for(var c=1;c<a;c++)s+=r[c].length;t=i.wrapRangeInTextNode(t,s,s+r[a].length),o(t.previousSibling),e.lastIndex=0}}),r()})}},{key:"wrapMatchesAcrossElements",value:function(e,t,n,o,r){var i=this,a=0===t?0:t+1;this.getTextNodes(function(t){for(var s=void 0;null!==(s=e.exec(t.value))&&""!==s[a];){var c=s.index;if(0!==a)for(var l=1;l<a;l++)c+=s[l].length;var u=c+s[a].length;i.wrapRangeInMappedTextNode(t,c,u,function(e){return n(s[a],e)},function(t,n){e.lastIndex=n,o(t)})}r()})}},{key:"wrapRangeFromIndex",value:function(e,t,n,o){var r=this;this.getTextNodes(function(i){var a=i.value.length;e.forEach(function(e,o){var s=r.checkWhitespaceRanges(e,a,i.value),c=s.start,l=s.end,u=s.valid;u&&r.wrapRangeInMappedTextNode(i,c,l,function(n){return t(n,e,i.value.substring(c,l),o)},function(t){n(t,e)})}),o()})}},{key:"unwrapMatches",value:function(e){for(var t=e.parentNode,n=document.createDocumentFragment();e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}},{key:"normalizeTextNode",value:function(e){if(e){if(3===e.nodeType)for(;e.nextSibling&&3===e.nextSibling.nodeType;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}},{key:"markRegExp",value:function(e,t){var n=this;this.opt=t,this.log('Searching with expression "'+e+'"');var o=0,r="wrapMatches";this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),this[r](e,this.opt.ignoreGroups,function(e,t){return n.opt.filter(t,e,o)},function(e){o++,n.opt.each(e)},function(){0===o&&n.opt.noMatch(e),n.opt.done(o)})}},{key:"mark",value:function(e,t){var n=this;this.opt=t;var o=0,r="wrapMatches",i=this.getSeparatedKeywords("string"==typeof e?[e]:e),a=i.keywords,s=i.length,c=this.opt.caseSensitive?"":"i";this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),0===s?this.opt.done(o):function e(t){var i=new RegExp(n.createRegExp(t),"gm"+c),l=0;n.log('Searching with expression "'+i+'"'),n[r](i,1,function(e,r){return n.opt.filter(r,t,o,l)},function(e){l++,o++,n.opt.each(e)},function(){0===l&&n.opt.noMatch(t),a[s-1]===t?n.opt.done(o):e(a[a.indexOf(t)+1])})}(a[0])}},{key:"markRanges",value:function(e,t){var n=this;this.opt=t;var o=0,r=this.checkRanges(e);r&&r.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(r)),this.wrapRangeFromIndex(r,function(e,t,o,r){return n.opt.filter(e,t,o,r)},function(e,t){o++,n.opt.each(e,t)},function(){n.opt.done(o)})):this.opt.done(o)}},{key:"unmark",value:function(e){var t=this;this.opt=e;var n=this.opt.element?this.opt.element:"*";n+="[data-markjs]",this.opt.className&&(n+="."+this.opt.className),this.log('Removal selector "'+n+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(e){t.unwrapMatches(e)},function(e){var o=r.matches(e,n),i=t.matchesExclude(e);return!o||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(e){this._opt=o({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},e)},get:function(){return this._opt}},{key:"iterator",get:function(){return new r(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),i}();return function(e){var t=this,n=new i(e);return this.mark=function(e,o){return n.mark(e,o),t},this.markRegExp=function(e,o){return n.markRegExp(e,o),t},this.markRanges=function(e,o){return n.markRanges(e,o),t},this.unmark=function(e){return n.unmark(e),t},this}}()},function(e,t,n){n(4);const o=n(5),r=n(6),i=n(7);n(8),o().then(r).then(i),n(9),n(12),n(13),n(14),n(19)},function(e,t,n){},function(e,t,n){const{isRelativePath:o,getAbsolutePath:r,getDirectory:i}=n(0),a=document.getElementById("global-nav");e.exports=(()=>{let e=Promise.resolve();const t=document.querySelector('meta[property="docfx\\:navrel"]');if(t){const n=t.getAttribute("content");n&&(e=fetch(n).then(e=>e.text()).then(e=>((e,t)=>{const n=e.slice(e.indexOf("<ul"),e.indexOf("</ul")+4);a.innerHTML=n;const s=t.lastIndexOf("/");let c="";s>-1&&(c=t.substr(0,s+1));const l=r(window.location.pathname),u=document.querySelectorAll("#global-nav a");[].forEach.call(u,e=>{let t=e.getAttribute("href");o(t)&&(t=c+t),e.setAttribute("href",t);const n=document.querySelector('meta[property="docfx\\:tocrel"]'),a=n?n.getAttribute("content").replace(/\\/g,"/"):"";let s=!1,u=e.getAttribute("name");u?i(r(u=c+u))===i(r(a))&&(s=!0):r(t)===l&&"dropdown"!==e.getAttribute("data-toggle")&&(s=!0),s&&e.classList.add("active")})})(e,n)))}let n=!1;const s=document.querySelector(".sidebar"),c=document.querySelector("#global-nav"),l=document.getElementById("btn-toggle-nav");let u=!1;const d=document.getElementById("search"),h=document.getElementById("btn-toggle-search"),f=document.getElementById("search-input"),p=document.getElementById("search-results");return l.addEventListener("click",()=>{n?(s&&(s.style.display="none"),c.style.display="none",document.getElementById("search-results").style.display="none"):(s&&(s.style.display="block"),c.style.display="block",d&&(d.style.display="none",p.style.display="none",u=!1)),n=!n}),h.addEventListener("click",()=>{u?(d.style.display="none",p.style.display="none"):(d.style.display="flex",f.focus(),window.innerWidth<768&&(s&&(s.style.display="none"),c.style.display="none",n=!1)),u=!u}),e})},function(e,t,n){const{isRelativePath:o,getAbsolutePath:r}=n(0),i=document.getElementById("sidetoc");e.exports=(()=>{const e=document.querySelector('meta[property="docfx\\:tocrel"]');if(!e)return;const t=e.getAttribute("content").replace(/\\/g,"/");return t?fetch(t).then(e=>e.text()).then(e=>((e,t)=>{const n=e.slice(e.indexOf("<div>"),e.lastIndexOf("</div>")-1);i.innerHTML=n;const a=t.lastIndexOf("/");let s="";a>-1&&(s=t.substr(0,a+1));var c=r(window.location.pathname);const l=document.querySelectorAll("#sidetoc a[href]");[].forEach.call(l,e=>{let t=e.getAttribute("href");if(o(t)&&(t=s+t,e.setAttribute("href",t)),r(e.getAttribute("href"))===c){e.classList.add("active"),e.classList.add("open");const t=[].find.call(e.parentNode.parentNode.classList,e=>0===e.indexOf("level")).replace("level","");if(t>1)for(let n=1;n<t;n++){let o=e.parentNode;for(let e=n;e<t;e++)o=o.parentNode.parentNode;o.classList.add("expanded"),o.querySelector("a").classList.add("open")}}});const u=document.querySelectorAll(".toc .nav > li .expand-stub");[].forEach.call(u,e=>{e.addEventListener("click",t=>{t.preventDefault(),e.parentNode.parentNode.classList.toggle("expanded")})})})(e,t)):Promise.resolve()})},function(e,t,n){const{formList:o}=n(0),r=document.getElementById("breadcrumb");e.exports=(()=>{var e=[];const t=document.querySelectorAll("#global-nav a.active");[].forEach.call(t,t=>{e.push({name:t.textContent,href:t.getAttribute("href")})});const n=document.querySelectorAll("#toc a.open");[].forEach.call(n,t=>{e.push({name:t.innerHTML,href:t.href})});const i=o(e,"breadcrumb");r.innerHTML=i})},function(e,t){let n="/";const o=window.location.pathname,r=document.querySelector('meta[property="docfx:basepath"]');if(r&&(n=r.getAttribute("content"),o.endsWith("/")&&!n.endsWith("/")&&(n=`${n}/`)),o===n||o.replace(/\/index\.html$/,"")===n||"/index.html"===o&&"/"===n){document.querySelector("footer").style.display="none";const e=document.getElementById("search");e.parentNode.removeChild(e),document.getElementById("btn-toggle-search").style.display="none";const t=document.querySelector(".sidebar");t.parentNode.removeChild(t),window.innerWidth>=768&&(document.querySelector(".navbar-right").style.borderLeft="none"),window.addEventListener("resize",()=>{window.innerWidth>=768?document.querySelector(".navbar-right").style.borderLeft="none":document.querySelector(".navbar-right").style.borderLeft="1px solid #e6ecf1"})}},function(t,n,o){const r=o(10),i=o(11),{formList:a}=o(0),s=e=>e?e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e;let c=!1;const l=document.querySelector(".sideaffix"),u=document.getElementById("sideaffix-toggle"),d=(()=>{const t=document.querySelectorAll(["h1","h2","h3","h4"].map(e=>`article ${e}`).join(", ")),n=[],o=()=>{const e=n.pop(),t=n[n.length-1],o=t.siblings[t.siblings.length-1];[].forEach.call(e.siblings,e=>{o.items.push(e)})};for([].forEach.call(t,t=>{if(!t.id)return;const r={name:s(t.textContent),href:"#"+t.id,items:[]};if(!n.length)return void n.push({type:t.tagName,siblings:[r]});const i=n[n.length-1];if(t.tagName===i.type)i.siblings.push(r);else if(t.tagName[1]>i.type[1])n.push({type:t.tagName,siblings:[r]});else{for(;t.tagName[1]<n[n.length-1].type[1];)o();t.tagName===n[n.length-1].type?n[n.length-1].siblings.push(r):n.push({type:e.tagName,siblings:[r]})}});n.length>1;)o();if(n.length>0){var r=n.pop().siblings;return 1===r.length?r[0].items:r}})();if(d&&d.length>0){let e="<h5>In This Article</h5>";e+=a(d,["nav","docs-sidenav"]),document.getElementById("affix").innerHTML=e;const t=document.querySelector("header.navbar"),n=()=>t.getBoundingClientRect().height+20;new r("#affix a",{nested:!0,offset:n}),new i('a[href*="#"]',{offset:n})}else u.style.display="none";u.addEventListener("click",()=>{l.style.display=c?"none":"block",c=!c}),window.addEventListener("scroll",()=>{window.innerWidth<1280&&(l.style.display="none",c=!1)})},function(e,t,n){(function(n){var o,r;/*! gumshoejs v5.1.1 | (c) 2019 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/gumshoe */r=void 0!==n?n:"undefined"!=typeof window?window:this,void 0===(o=function(){return function(e){"use strict";var t={navClass:"active",contentClass:"active",nested:!1,nestedClass:"active",offset:0,reflow:!1,events:!0},n=function(e,t,n){if(n.settings.events){var o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t.dispatchEvent(o)}},o=function(e){var t=0;if(e.offsetParent)for(;e;)t+=e.offsetTop,e=e.offsetParent;return t>=0?t:0},r=function(e){e&&e.sort(function(e,t){return o(e.content)<o(t.content)?-1:1})},i=function(t,n,o){var r=t.getBoundingClientRect(),i=function(e){return"function"==typeof e.offset?parseFloat(e.offset()):parseFloat(e.offset)}(n);return o?parseInt(r.bottom,10)<(e.innerHeight||document.documentElement.clientHeight):parseInt(r.top,10)<=i},a=function(){return e.innerHeight+e.pageYOffset>=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},s=function(e,t){var n=e[e.length-1];if(function(e,t){return!(!a()||!i(e.content,t,!0))}(n,t))return n;for(var o=e.length-1;o>=0;o--)if(i(e[o].content,t))return e[o]},c=function(e,t){if(t.nested){var n=e.parentNode.closest("li");n&&(n.classList.remove(t.nestedClass),c(n,t))}},l=function(e,t){if(e){var o=e.nav.closest("li");o&&(o.classList.remove(t.navClass),e.content.classList.remove(t.contentClass),c(o,t),n("gumshoeDeactivate",o,{link:e.nav,content:e.content,settings:t}))}},u=function(e,t){if(t.nested){var n=e.parentNode.closest("li");n&&(n.classList.add(t.nestedClass),u(n,t))}};return function(o,i){var a,c,d,h,f,p={setup:function(){a=document.querySelectorAll(o),c=[],Array.prototype.forEach.call(a,function(e){var t=document.getElementById(decodeURIComponent(e.hash.substr(1)));t&&c.push({nav:e,content:t})}),r(c)},detect:function(){var e=s(c,f);e?d&&e.content===d.content||(l(d,f),function(e,t){if(e){var o=e.nav.closest("li");o&&(o.classList.add(t.navClass),e.content.classList.add(t.contentClass),u(o,t),n("gumshoeActivate",o,{link:e.nav,content:e.content,settings:t}))}}(e,f),d=e):d&&(l(d,f),d=null)}},m=function(t){h&&e.cancelAnimationFrame(h),h=e.requestAnimationFrame(p.detect)},g=function(t){h&&e.cancelAnimationFrame(h),h=e.requestAnimationFrame(function(){r(c),p.detect()})};return p.destroy=function(){d&&l(d,f),e.removeEventListener("scroll",m,!1),f.reflow&&e.removeEventListener("resize",g,!1),c=null,a=null,d=null,h=null,f=null},f=function(){var e={};return Array.prototype.forEach.call(arguments,function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}}),e}(t,i||{}),p.setup(),p.detect(),e.addEventListener("scroll",m,!1),f.reflow&&e.addEventListener("resize",g,!1),p}}(r)}.apply(t,[]))||(e.exports=o)}).call(this,n(1))},function(e,t,n){(function(n){var o,r;/*! smooth-scroll v16.0.3 | (c) 2019 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/smooth-scroll */window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,n=(this.document||this.ownerDocument).querySelectorAll(e),o=this;do{for(t=n.length;0<=--t&&n.item(t)!==o;);}while(t<0&&(o=o.parentElement));return o}),function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}(),function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,n){var o=(new Date).getTime(),r=Math.max(0,16-(o-e)),i=window.setTimeout(function(){t(o+r)},r);return e=o+r,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),r=void 0!==n?n:"undefined"!=typeof window?window:this,void 0===(o=function(){return function(e){"use strict";var t={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},n=function(){var e={};return Array.prototype.forEach.call(arguments,function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}}),e},o=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),o=n.length,r=-1,i="",a=n.charCodeAt(0);++r<o;){if(0===(t=n.charCodeAt(r)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");i+=1<=t&&t<=31||127==t||0===r&&48<=t&&t<=57||1===r&&48<=t&&t<=57&&45===a?"\\"+t.toString(16)+" ":128<=t||45===t||95===t||48<=t&&t<=57||65<=t&&t<=90||97<=t&&t<=122?n.charAt(r):"\\"+n.charAt(r)}return"#"+i},r=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},i=function(t,n,o,r){if(n.emitEvents&&"function"==typeof e.CustomEvent){var i=new CustomEvent(t,{bubbles:!0,detail:{anchor:o,toggle:r}});document.dispatchEvent(i)}};return function(a,s){var c,l,u,d,h={cancelScroll:function(e){cancelAnimationFrame(d),d=null,e||i("scrollCancel",c)},animateScroll:function(o,a,s){h.cancelScroll();var l=n(c||t,s||{}),f="[object Number]"===Object.prototype.toString.call(o),p=f||!o.tagName?null:o;if(f||p){var m=e.pageYOffset;l.header&&!u&&(u=document.querySelector(l.header));var g,v,y,w,b,E,x,S,k=function(t){return t?(n=t,parseInt(e.getComputedStyle(n).height,10)+t.offsetTop):0;var n}(u),_=f?o:function(t,n,o,i){var a=0;if(t.offsetParent)for(;a+=t.offsetTop,t=t.offsetParent;);return a=Math.max(a-n-o,0),i&&(a=Math.min(a,r()-e.innerHeight)),a}(p,k,parseInt("function"==typeof l.offset?l.offset(o,a):l.offset,10),l.clip),I=_-m,N=r(),C=0,A=(g=I,y=(v=l).speedAsDuration?v.speed:Math.abs(g/1e3*v.speed),v.durationMax&&y>v.durationMax?v.durationMax:v.durationMin&&y<v.durationMin?v.durationMin:parseInt(y,10)),T=function(t){var n,r,s;w||(w=t),C+=t-w,E=m+I*(r=b=1<(b=0===A?0:C/A)?1:b,"easeInQuad"===(n=l).easing&&(s=r*r),"easeOutQuad"===n.easing&&(s=r*(2-r)),"easeInOutQuad"===n.easing&&(s=r<.5?2*r*r:(4-2*r)*r-1),"easeInCubic"===n.easing&&(s=r*r*r),"easeOutCubic"===n.easing&&(s=--r*r*r+1),"easeInOutCubic"===n.easing&&(s=r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1),"easeInQuart"===n.easing&&(s=r*r*r*r),"easeOutQuart"===n.easing&&(s=1- --r*r*r*r),"easeInOutQuart"===n.easing&&(s=r<.5?8*r*r*r*r:1-8*--r*r*r*r),"easeInQuint"===n.easing&&(s=r*r*r*r*r),"easeOutQuint"===n.easing&&(s=1+--r*r*r*r*r),"easeInOutQuint"===n.easing&&(s=r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r),n.customEasing&&(s=n.customEasing(r)),s||r),e.scrollTo(0,Math.floor(E)),function(t,n){var r,s,c,u=e.pageYOffset;if(t==n||u==n||(m<n&&e.innerHeight+u)>=N)return h.cancelScroll(!0),s=n,c=f,0===(r=o)&&document.body.focus(),c||(r.focus(),document.activeElement!==r&&(r.setAttribute("tabindex","-1"),r.focus(),r.style.outline="none"),e.scrollTo(0,s)),i("scrollStop",l,o,a),!(d=w=null)}(E,_)||(d=e.requestAnimationFrame(T),w=t)};0===e.pageYOffset&&e.scrollTo(0,0),x=o,S=l,f||history.pushState&&S.updateURL&&history.pushState({smoothScroll:JSON.stringify(S),anchor:x.id},document.title,x===document.documentElement?"#top":"#"+x.id),i("scrollStart",l,o,a),h.cancelScroll(!0),e.requestAnimationFrame(T)}}},f=function(t){if(!("matchMedia"in e&&e.matchMedia("(prefers-reduced-motion)").matches)&&!t.defaultPrevented&&!(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)&&"closest"in t.target&&(l=t.target.closest(a))&&"a"===l.tagName.toLowerCase()&&!t.target.closest(c.ignore)&&l.hostname===e.location.hostname&&l.pathname===e.location.pathname&&/#/.test(l.href)){var n,r=o(l.hash);if("#"===r){if(!c.topOnEmptyHash)return;n=document.documentElement}else n=document.querySelector(r);(n=n||"#top"!==r?n:document.documentElement)&&(t.preventDefault(),function(t){if(history.replaceState&&t.updateURL&&!history.state){var n=e.location.hash;n=n||"",history.replaceState({smoothScroll:JSON.stringify(t),anchor:n||e.pageYOffset},document.title,n||e.location.href)}}(c),h.animateScroll(n,l))}},p=function(e){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(c)){var t=history.state.anchor;"string"==typeof t&&t&&!(t=document.querySelector(o(history.state.anchor)))||h.animateScroll(t,null,{updateURL:!1})}};return h.destroy=function(){c&&(document.removeEventListener("click",f,!1),e.removeEventListener("popstate",p,!1),h.cancelScroll(),d=u=l=c=null)},function(){if(!("querySelector"in document&&"addEventListener"in e&&"requestAnimationFrame"in e&&"closest"in e.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";h.destroy(),c=n(t,s||{}),u=c.header?document.querySelector(c.header):null,document.addEventListener("click",f,!1),c.updateURL&&c.popstate&&e.addEventListener("popstate",p,!1)}(),h}}(r)}.apply(t,[]))||(e.exports=o)}).call(this,n(1))},function(e,t){const n=document.querySelector('meta[property="docfx:newtab"]');if(n){"true"===n.getAttribute("content")&&[].forEach.call(document.links,e=>{e.hostname!==window.location.hostname&&e.setAttribute("target","_blank")})}},function(e,t){const n=document.querySelectorAll(".NOTE");[].forEach.call(n,e=>e.classList.add("alert","alert-info"));const o=document.querySelectorAll(".TIP");[].forEach.call(o,e=>e.classList.add("alert","alert-success"));const r=document.querySelectorAll(".TIP h5");[].forEach.call(r,e=>e.textContent="Success");const i=document.querySelectorAll(".WARNING");[].forEach.call(i,e=>e.classList.add("alert","alert-warning"));const a=document.querySelectorAll(".IMPORTANT, .CAUTION");[].forEach.call(a,e=>e.classList.add("alert","alert-danger"))},function(e,t,n){const o=n(15),r=n(16),i=n(17),a=document.getElementById("search-results"),s=document.querySelector('meta[property="docfx\\:rel"]');if(s){const e=s.getAttribute("content");let t;try{const n=new Worker(`${e}js/search-worker.js`);n||window.worker?(n.postMessage({event:"init",settings:{baseUrl:e}}),n.onmessage=(o=>{switch(o.data.e){case"index-ready":window.postToSearch=(e=>{n.postMessage({event:"search",q:e})});break;case"query-ready":const r=o.data.d;i(t,r,e)}})):o();const s=document.querySelectorAll(".search-input");[].forEach.call(s,e=>{e.addEventListener("keydown",t=>{13===t.keyCode&&t.preventDefault(),27===t.keyCode&&(e.classList.remove("active"),a.style.display="none")}),e.addEventListener("keyup",n=>{(t=n.target.value).length>=3&&window.postToSearch&&(window.postToSearch(t),e.classList.add("active"))})}),r()}catch(e){console.error(e)}}},function(e,t){e.exports=(()=>{var e=lunr(function(){this.ref("href"),this.field("title",{boost:50}),this.field("keywords",{boost:20})});lunr.tokenizer.seperator=/[\s\-\.]+/;var t={},n=new XMLHttpRequest,o=relHref+"index.json";o&&(n.open("GET",o),n.onload=function(){if(200==this.status)for(var n in t=JSON.parse(this.responseText))t.hasOwnProperty(n)&&e.add(t[n])},n.send()),$("body").bind("queryReady",function(){var n=e.search(query),o=[];n.forEach(function(e){var n=t[e.ref];o.push({href:n.href,title:n.title,keywords:n.keywords})}),handleSearchResults(o)})})},function(e,t,n){const o=new(n(2))(document.querySelector("article"));e.exports=(()=>{const{search:e}=window.location;if(e){const t=e.match(/\?q=(.+)/);t&&t[1].split("%20").forEach(e=>{""!==e&&o.mark(e)})}})},function(e,t,n){const o=n(18),r=n(2),i=document.getElementById("search-results"),a=new r(i),s=new o({rows:[],scrollId:"search-scrollArea",contentId:"search-contentArea",no_data_text:"No results found"});e.exports=((e,t,n)=>{if(0===t.length)s.update(["<div></div>"]),s.clear();else{const o=t.map(t=>{var o=n+t.href+"?q="+e,r=t.title,i=((e,t)=>{const n=e.split(/\s+/g),o=t.indexOf(n[0]);return o>100?`...${t.slice(o-100,o+100)}...`:o<=100?`${t.slice(0,o+100)}...`:void 0})(e,t.keywords);const a=document.createElement("a");a.setAttribute("href",o),a.classList.add("sr-item");const s=document.createElement("div");s.classList.add("item-title"),s.textContent=r;const c=document.createElement("div");c.classList.add("item-brief"),c.textContent=i,a.appendChild(s),a.appendChild(c);const l=document.createElement("div");return l.appendChild(a),l.innerHTML});s.update(o),e.split(/\s+/).forEach(e=>{""!==e&&a.mark(e)})}i.style.display="flex"})},function(e,t,n){e.exports=function(){"use strict";var e=function(){for(var e=3,t=document.createElement("b"),n=t.all||[];t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i><![endif]--\x3e",n[0];);return e>4?e:document.documentMode}(),t=navigator.platform.toLowerCase().indexOf("mac")+1,n=function(e){if(!(this instanceof n))return new n(e);var a=this,s={rows_in_block:50,blocks_in_cluster:4,tag:null,show_no_data_row:!0,no_data_class:"clusterize-no-data",no_data_text:"No data",keep_parity:!0,callbacks:{}};a.options={};for(var c,l=["rows_in_block","blocks_in_cluster","show_no_data_row","no_data_class","no_data_text","keep_parity","tag","callbacks"],u=0;c=l[u];u++)a.options[c]=void 0!==e[c]&&null!=e[c]?e[c]:s[c];for(var d,h=["scroll","content"],u=0;d=h[u];u++)if(a[d+"_elem"]=e[d+"Id"]?document.getElementById(e[d+"Id"]):e[d+"Elem"],!a[d+"_elem"])throw new Error("Error! Could not find "+d+" element");a.content_elem.hasAttribute("tabindex")||a.content_elem.setAttribute("tabindex",0);var f=i(e.rows)?e.rows:a.fetchMarkup(),p={},m=a.scroll_elem.scrollTop;a.insertToDOM(f,p),a.scroll_elem.scrollTop=m;var g=!1,v=0,y=!1,w=function(){t&&(y||(a.content_elem.style.pointerEvents="none"),y=!0,clearTimeout(v),v=setTimeout(function(){a.content_elem.style.pointerEvents="auto",y=!1},50)),g!=(g=a.getClusterNum())&&a.insertToDOM(f,p),a.options.callbacks.scrollingProgress&&a.options.callbacks.scrollingProgress(a.getScrollProgress())},b=0,E=function(){clearTimeout(b),b=setTimeout(a.refresh,100)};o("scroll",a.scroll_elem,w),o("resize",window,E),a.destroy=function(e){r("scroll",a.scroll_elem,w),r("resize",window,E),a.html((e?a.generateEmptyRow():f).join(""))},a.refresh=function(e){(a.getRowsHeight(f)||e)&&a.update(f)},a.update=function(e){f=i(e)?e:[];var t=a.scroll_elem.scrollTop;f.length*a.options.item_height<t&&(a.scroll_elem.scrollTop=0,g=0),a.insertToDOM(f,p),a.scroll_elem.scrollTop=t},a.clear=function(){a.update([])},a.getRowsAmount=function(){return f.length},a.getScrollProgress=function(){return this.options.scroll_top/(f.length*this.options.item_height)*100||0};var x=function(e,t){var n=i(t)?t:[];n.length&&(f="append"==e?f.concat(n):n.concat(f),a.insertToDOM(f,p))};a.append=function(e){x("append",e)},a.prepend=function(e){x("prepend",e)}};function o(e,t,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function r(e,t,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)}function i(e){return"[object Array]"===Object.prototype.toString.call(e)}function a(e,t){return window.getComputedStyle?window.getComputedStyle(t)[e]:t.currentStyle[e]}return n.prototype={constructor:n,fetchMarkup:function(){for(var e=[],t=this.getChildNodes(this.content_elem);t.length;)e.push(t.shift().outerHTML);return e},exploreEnvironment:function(t,n){var o=this.options;o.content_tag=this.content_elem.tagName.toLowerCase(),t.length&&(e&&e<=9&&!o.tag&&(o.tag=t[0].match(/<([^>\s\/]*)/)[1].toLowerCase()),this.content_elem.children.length<=1&&(n.data=this.html(t[0]+t[0]+t[0])),o.tag||(o.tag=this.content_elem.children[0].tagName.toLowerCase()),this.getRowsHeight(t))},getRowsHeight:function(e){var t=this.options,n=t.item_height;if(t.cluster_height=0,e.length){var o=this.content_elem.children;if(o.length){var r=o[Math.floor(o.length/2)];if(t.item_height=r.offsetHeight,"tr"==t.tag&&"collapse"!=a("borderCollapse",this.content_elem)&&(t.item_height+=parseInt(a("borderSpacing",this.content_elem),10)||0),"tr"!=t.tag){var i=parseInt(a("marginTop",r),10)||0,s=parseInt(a("marginBottom",r),10)||0;t.item_height+=Math.max(i,s)}return t.block_height=t.item_height*t.rows_in_block,t.rows_in_cluster=t.blocks_in_cluster*t.rows_in_block,t.cluster_height=t.blocks_in_cluster*t.block_height,n!=t.item_height}}},getClusterNum:function(){return this.options.scroll_top=this.scroll_elem.scrollTop,Math.floor(this.options.scroll_top/(this.options.cluster_height-this.options.block_height))||0},generateEmptyRow:function(){var e=this.options;if(!e.tag||!e.show_no_data_row)return[];var t,n=document.createElement(e.tag),o=document.createTextNode(e.no_data_text);return n.className=e.no_data_class,"tr"==e.tag&&((t=document.createElement("td")).colSpan=100,t.appendChild(o)),n.appendChild(t||o),[n.outerHTML]},generate:function(e,t){var n=this.options,o=e.length;if(o<n.rows_in_block)return{top_offset:0,bottom_offset:0,rows_above:0,rows:o?e:this.generateEmptyRow()};var r=Math.max((n.rows_in_cluster-n.rows_in_block)*t,0),i=r+n.rows_in_cluster,a=Math.max(r*n.item_height,0),s=Math.max((o-i)*n.item_height,0),c=[],l=r;a<1&&l++;for(var u=r;u<i;u++)e[u]&&c.push(e[u]);return{top_offset:a,bottom_offset:s,rows_above:l,rows:c}},renderExtraTag:function(e,t){var n=document.createElement(this.options.tag);return n.className=["clusterize-extra-row","clusterize-"+e].join(" "),t&&(n.style.height=t+"px"),n.outerHTML},insertToDOM:function(e,t){this.options.cluster_height||this.exploreEnvironment(e,t);var n=this.generate(e,this.getClusterNum()),o=n.rows.join(""),r=this.checkChanges("data",o,t),i=this.checkChanges("top",n.top_offset,t),a=this.checkChanges("bottom",n.bottom_offset,t),s=this.options.callbacks,c=[];r||i?(n.top_offset&&(this.options.keep_parity&&c.push(this.renderExtraTag("keep-parity")),c.push(this.renderExtraTag("top-space",n.top_offset))),c.push(o),n.bottom_offset&&c.push(this.renderExtraTag("bottom-space",n.bottom_offset)),s.clusterWillChange&&s.clusterWillChange(),this.html(c.join("")),"ol"==this.options.content_tag&&this.content_elem.setAttribute("start",n.rows_above),this.content_elem.style["counter-increment"]="clusterize-counter "+(n.rows_above-1),s.clusterChanged&&s.clusterChanged()):a&&(this.content_elem.lastChild.style.height=n.bottom_offset+"px")},html:function(t){var n=this.content_elem;if(e&&e<=9&&"tr"==this.options.tag){var o,r=document.createElement("div");for(r.innerHTML="<table><tbody>"+t+"</tbody></table>";o=n.lastChild;)n.removeChild(o);for(var i=this.getChildNodes(r.firstChild.firstChild);i.length;)n.appendChild(i.shift())}else n.innerHTML=t},getChildNodes:function(e){for(var t=e.children,n=[],o=0,r=t.length;o<r;o++)n.push(t[o]);return n},checkChanges:function(e,t,n){var o=t!=n[e];return n[e]=t,o}},n}()},function(e,t){const n=window.pluginConfig.statuspage;if(n){const e=document.getElementsByTagName("script")[0],t=document.createElement("script");t.onload=(()=>{new StatusPage.page({page:n.pageId}).summary({success:e=>{if(window.statusPageSummary=e,-1===window.location.pathname.indexOf("/status")){const t=document.createElement("div");t.classList.add("status-widget"),t.classList.add(e.status.indicator);const o=document.createElement("a");o.setAttribute("href","/status"),o.innerHTML=n.title||"Platform Status",t.appendChild(o),document.querySelector("#global-nav").appendChild(t)}}})}),t.src="https://cdn.statuspage.io/se-v2.js",e.parentNode.insertBefore(t,e)}}]);
e.exports=function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(n){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=o,this.exclude=r,this.iframesTimeout=i}return n(e,[{key:"getContexts",value:function(){var e=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach(function(t){var n=e.filter(function(e){return e.contains(t)}).length>0;-1!==e.indexOf(t)||n||e.push(t)}),e}},{key:"getIframeContents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=void 0;try{var r=e.contentWindow;if(o=r.document,!r||!o)throw new Error("iframe inaccessible")}catch(e){n()}o&&t(o)}},{key:"isIframeBlank",value:function(e){var t="about:blank",n=e.getAttribute("src").trim(),o=e.contentWindow.location.href;return o===t&&n!==t&&n}},{key:"observeIframeLoad",value:function(e,t,n){var o=this,r=!1,i=null,a=function a(){if(!r){r=!0,clearTimeout(i);try{o.isIframeBlank(e)||(e.removeEventListener("load",a),o.getIframeContents(e,t,n))}catch(e){n()}}};e.addEventListener("load",a),i=setTimeout(a,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,t,n){try{"complete"===e.contentWindow.document.readyState?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch(e){n()}}},{key:"waitForIframes",value:function(e,t){var n=this,o=0;this.forEachIframe(e,function(){return!0},function(e){o++,n.waitForIframes(e.querySelector("html"),function(){--o||t()})},function(e){e||t()})}},{key:"forEachIframe",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=t.querySelectorAll("iframe"),s=a.length,c=0;a=Array.prototype.slice.call(a);var l=function(){--s<=0&&i(c)};s||l(),a.forEach(function(t){e.matches(t,r.exclude)?l():r.onIframeReady(t,function(e){n(t)&&(c++,o(e)),l()},l)})}},{key:"createIterator",value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:"createInstanceOnIframe",value:function(t){return new e(t.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,t,n){var o=e.compareDocumentPosition(n),r=Node.DOCUMENT_POSITION_PRECEDING;if(o&r){if(null===t)return!0;var i=t.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_FOLLOWING;if(i&a)return!0}return!1}},{key:"getIteratorNode",value:function(e){var t=e.previousNode(),n=void 0;return n=null===t?e.nextNode():e.nextNode()&&e.nextNode(),{prevNode:t,node:n}}},{key:"checkIframeFilter",value:function(e,t,n,o){var r=!1,i=!1;return o.forEach(function(e,t){e.val===n&&(r=t,i=e.handled)}),this.compareNodeIframe(e,t,n)?(!1!==r||i?!1===r||i||(o[r].handled=!0):o.push({val:n,handled:!0}),!0):(!1===r&&o.push({val:n,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,t,n,o){var r=this;e.forEach(function(e){e.handled||r.getIframeContents(e.val,function(e){r.createInstanceOnIframe(e).forEachNode(t,n,o)})})}},{key:"iterateThroughNodes",value:function(e,t,n,o,r){for(var i=this,a=this.createIterator(t,e,o),s=[],c=[],l=void 0,u=void 0;d=void 0,d=i.getIteratorNode(a),u=d.prevNode,l=d.node;)this.iframes&&this.forEachIframe(t,function(e){return i.checkIframeFilter(l,u,e,s)},function(t){i.createInstanceOnIframe(t).forEachNode(e,function(e){return c.push(e)},o)}),c.push(l);var d;c.forEach(function(e){n(e)}),this.iframes&&this.handleOpenIframes(s,e,n,o),r()}},{key:"forEachNode",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},i=this.getContexts(),a=i.length;a||r(),i.forEach(function(i){var s=function(){o.iterateThroughNodes(e,i,t,n,function(){--a<=0&&r()})};o.iframes?o.waitForIframes(i,s):s()})}}],[{key:"matches",value:function(e,t){var n="string"==typeof t?[t]:t,o=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(o){var r=!1;return n.every(function(t){return!o.call(e,t)||(r=!0,!1)}),r}return!1}}]),e}(),i=function(){function i(e){t(this,i),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf("MSIE")>-1||n.indexOf("Trident")>-1)&&(this.ie=!0)}return n(i,[{key:"log",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",o=this.opt.log;this.opt.debug&&"object"===(void 0===o?"undefined":e(o))&&"function"==typeof o[n]&&o[n]("mark.js: "+t)}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(e){return"disabled"!==this.opt.wildcards&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),"disabled"!==this.opt.wildcards&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e)}},{key:"createSynonymsRegExp",value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",o=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(r):this.escapeStr(r),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(i):this.escapeStr(i);""!==a&&""!==s&&(e=e.replace(new RegExp("("+this.escapeStr(a)+"|"+this.escapeStr(s)+")","gm"+n),o+"("+this.processSynomyms(a)+"|"+this.processSynomyms(s)+")"+o))}return e}},{key:"processSynomyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return(e=e.replace(/(?:\\)*\?/g,function(e){return"\\"===e.charAt(0)?"?":""})).replace(/(?:\\)*\*/g,function(e){return"\\"===e.charAt(0)?"*":""})}},{key:"createWildcardsRegExp",value:function(e){var t="withSpaces"===this.opt.wildcards;return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,function(e,t,n){var o=n.charAt(t+1);return/[(|)\\]/.test(o)||""===o?e:e+"\0"})}},{key:"createJoinersRegExp",value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join("["+t.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],o=[];return e.split("").forEach(function(r){n.every(function(n){if(-1!==n.indexOf(r)){if(o.indexOf(n)>-1)return!1;e=e.replace(new RegExp("["+n+"]","gm"+t),"["+n+"]"),o.push(n)}return!0})}),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var t=this,n=this.opt.accuracy,o="string"==typeof n?n:n.value,r="string"==typeof n?[]:n.limiters,i="";switch(r.forEach(function(e){i+="|"+t.escapeStr(e)}),o){case"partially":default:return"()("+e+")";case"complementary":return"()([^"+(i="\\s"+(i||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")))+"]*"+e+"[^"+i+"]*)";case"exactly":return"(^|\\s"+i+")("+e+")(?=$|\\s"+i+")"}}},{key:"getSeparatedKeywords",value:function(e){var t=this,n=[];return e.forEach(function(e){t.opt.separateWordSearch?e.split(" ").forEach(function(e){e.trim()&&-1===n.indexOf(e)&&n.push(e)}):e.trim()&&-1===n.indexOf(e)&&n.push(e)}),{keywords:n.sort(function(e,t){return t.length-e.length}),length:n.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var t=this;if(!Array.isArray(e)||"[object Object]"!==Object.prototype.toString.call(e[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var n=[],o=0;return e.sort(function(e,t){return e.start-t.start}).forEach(function(e){var r=t.callNoMatchOnInvalidRanges(e,o),i=r.start,a=r.end,s=r.valid;s&&(e.start=i,e.length=a-i,n.push(e),o=a)}),n}},{key:"callNoMatchOnInvalidRanges",value:function(e,t){var n=void 0,o=void 0,r=!1;return e&&void 0!==e.start?(n=parseInt(e.start,10),o=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&o-t>0&&o-n>0?r=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(e)),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:o,valid:r}}},{key:"checkWhitespaceRanges",value:function(e,t,n){var o=void 0,r=!0,i=n.length,a=t-i,s=parseInt(e.start,10)-a;return(o=(s=s>i?i:s)+parseInt(e.length,10))>i&&(o=i,this.log("End range automatically set to the max value of "+i)),s<0||o-s<0||s>i||o>i?(r=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):""===n.substring(s,o).replace(/\s+/g,"")&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:o,valid:r}}},{key:"getTextNodes",value:function(e){var t=this,n="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(e){o.push({start:n.length,end:(n+=e.textContent).length,node:e})},function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:n,nodes:o})})}},{key:"matchesExclude",value:function(e){return r.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,t,n){var o=this.opt.element?this.opt.element:"mark",r=e.splitText(t),i=r.splitText(n-t),a=document.createElement(o);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=r.textContent,r.parentNode.replaceChild(a,r),i}},{key:"wrapRangeInMappedTextNode",value:function(e,t,n,o,r){var i=this;e.nodes.every(function(a,s){var c=e.nodes[s+1];if(void 0===c||c.start>t){if(!o(a.node))return!1;var l=t-a.start,u=(n>a.end?a.end:n)-a.start,d=e.value.substr(0,a.start),h=e.value.substr(u+a.start);if(a.node=i.wrapRangeInTextNode(a.node,l,u),e.value=d+h,e.nodes.forEach(function(t,n){n>=s&&(e.nodes[n].start>0&&n!==s&&(e.nodes[n].start-=u),e.nodes[n].end-=u)}),n-=u,r(a.node.previousSibling,a.start),!(n>a.end))return!1;t=a.end}return!0})}},{key:"wrapMatches",value:function(e,t,n,o,r){var i=this,a=0===t?0:t+1;this.getTextNodes(function(t){t.nodes.forEach(function(t){t=t.node;for(var r=void 0;null!==(r=e.exec(t.textContent))&&""!==r[a];)if(n(r[a],t)){var s=r.index;if(0!==a)for(var c=1;c<a;c++)s+=r[c].length;t=i.wrapRangeInTextNode(t,s,s+r[a].length),o(t.previousSibling),e.lastIndex=0}}),r()})}},{key:"wrapMatchesAcrossElements",value:function(e,t,n,o,r){var i=this,a=0===t?0:t+1;this.getTextNodes(function(t){for(var s=void 0;null!==(s=e.exec(t.value))&&""!==s[a];){var c=s.index;if(0!==a)for(var l=1;l<a;l++)c+=s[l].length;var u=c+s[a].length;i.wrapRangeInMappedTextNode(t,c,u,function(e){return n(s[a],e)},function(t,n){e.lastIndex=n,o(t)})}r()})}},{key:"wrapRangeFromIndex",value:function(e,t,n,o){var r=this;this.getTextNodes(function(i){var a=i.value.length;e.forEach(function(e,o){var s=r.checkWhitespaceRanges(e,a,i.value),c=s.start,l=s.end,u=s.valid;u&&r.wrapRangeInMappedTextNode(i,c,l,function(n){return t(n,e,i.value.substring(c,l),o)},function(t){n(t,e)})}),o()})}},{key:"unwrapMatches",value:function(e){for(var t=e.parentNode,n=document.createDocumentFragment();e.firstChild;)n.appendChild(e.removeChild(e.firstChild));t.replaceChild(n,e),this.ie?this.normalizeTextNode(t):t.normalize()}},{key:"normalizeTextNode",value:function(e){if(e){if(3===e.nodeType)for(;e.nextSibling&&3===e.nextSibling.nodeType;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}},{key:"markRegExp",value:function(e,t){var n=this;this.opt=t,this.log('Searching with expression "'+e+'"');var o=0,r="wrapMatches";this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),this[r](e,this.opt.ignoreGroups,function(e,t){return n.opt.filter(t,e,o)},function(e){o++,n.opt.each(e)},function(){0===o&&n.opt.noMatch(e),n.opt.done(o)})}},{key:"mark",value:function(e,t){var n=this;this.opt=t;var o=0,r="wrapMatches",i=this.getSeparatedKeywords("string"==typeof e?[e]:e),a=i.keywords,s=i.length,c=this.opt.caseSensitive?"":"i";this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),0===s?this.opt.done(o):function e(t){var i=new RegExp(n.createRegExp(t),"gm"+c),l=0;n.log('Searching with expression "'+i+'"'),n[r](i,1,function(e,r){return n.opt.filter(r,t,o,l)},function(e){l++,o++,n.opt.each(e)},function(){0===l&&n.opt.noMatch(t),a[s-1]===t?n.opt.done(o):e(a[a.indexOf(t)+1])})}(a[0])}},{key:"markRanges",value:function(e,t){var n=this;this.opt=t;var o=0,r=this.checkRanges(e);r&&r.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(r)),this.wrapRangeFromIndex(r,function(e,t,o,r){return n.opt.filter(e,t,o,r)},function(e,t){o++,n.opt.each(e,t)},function(){n.opt.done(o)})):this.opt.done(o)}},{key:"unmark",value:function(e){var t=this;this.opt=e;var n=this.opt.element?this.opt.element:"*";n+="[data-markjs]",this.opt.className&&(n+="."+this.opt.className),this.log('Removal selector "'+n+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(e){t.unwrapMatches(e)},function(e){var o=r.matches(e,n),i=t.matchesExclude(e);return!o||i?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(e){this._opt=o({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},e)},get:function(){return this._opt}},{key:"iterator",get:function(){return new r(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),i}();return function(e){var t=this,n=new i(e);return this.mark=function(e,o){return n.mark(e,o),t},this.markRegExp=function(e,o){return n.markRegExp(e,o),t},this.markRanges=function(e,o){return n.markRanges(e,o),t},this.unmark=function(e){return n.unmark(e),t},this}}()},function(e,t,n){n(5);const o=n(6),r=n(7),i=n(8);n(9),o().then(r).then(i),n(10),n(13),n(14),n(15),n(20),n(21)},function(e,t,n){},function(e,t,n){const{isRelativePath:o,getAbsolutePath:r,getDirectory:i}=n(1),a=document.getElementById("global-nav");e.exports=(()=>{let e=Promise.resolve();const t=document.querySelector('meta[property="docfx\\:navrel"]');if(t){const n=t.getAttribute("content");n&&(e=fetch(n).then(e=>e.text()).then(e=>((e,t)=>{const n=e.slice(e.indexOf("<ul"),e.indexOf("</ul")+4);a.innerHTML=n;const s=t.lastIndexOf("/");let c="";s>-1&&(c=t.substr(0,s+1));const l=r(window.location.pathname),u=document.querySelectorAll("#global-nav a");[].forEach.call(u,e=>{let t=e.getAttribute("href");o(t)&&(t=c+t),e.setAttribute("href",t);const n=document.querySelector('meta[property="docfx\\:tocrel"]'),a=n?n.getAttribute("content").replace(/\\/g,"/"):"";let s=!1,u=e.getAttribute("name");u?i(r(u=c+u))===i(r(a))&&(s=!0):r(t)===l&&"dropdown"!==e.getAttribute("data-toggle")&&(s=!0),s&&e.classList.add("active")})})(e,n)))}let n=!1;const s=document.querySelector(".sidebar"),c=document.querySelector("#global-nav"),l=document.getElementById("btn-toggle-nav");let u=!1;const d=document.getElementById("search"),h=document.getElementById("btn-toggle-search"),f=document.getElementById("search-input"),p=document.getElementById("search-results");return l.addEventListener("click",()=>{n?(s&&(s.style.display="none"),c.style.display="none",document.getElementById("search-results").style.display="none"):(s&&(s.style.display="block"),c.style.display="block",d&&(d.style.display="none",p.style.display="none",u=!1)),n=!n}),h.addEventListener("click",()=>{u?(d.style.display="none",p.style.display="none"):(d.style.display="flex",f.focus(),window.innerWidth<768&&(s&&(s.style.display="none"),c.style.display="none",n=!1)),u=!u}),e})},function(e,t,n){const{isRelativePath:o,getAbsolutePath:r}=n(1),i=document.getElementById("sidetoc");e.exports=(()=>{const e=document.querySelector('meta[property="docfx\\:tocrel"]');if(!e)return;const t=e.getAttribute("content").replace(/\\/g,"/");return t?fetch(t).then(e=>e.text()).then(e=>((e,t)=>{const n=e.slice(e.indexOf("<div>"),e.lastIndexOf("</div>")-1);i.innerHTML=n;const a=t.lastIndexOf("/");let s="";a>-1&&(s=t.substr(0,a+1));var c=r(window.location.pathname);const l=document.querySelectorAll("#sidetoc a[href]");[].forEach.call(l,e=>{let t=e.getAttribute("href");if(o(t)&&(t=s+t,e.setAttribute("href",t)),r(e.getAttribute("href"))===c){e.classList.add("active"),e.classList.add("open");const t=[].find.call(e.parentNode.parentNode.classList,e=>0===e.indexOf("level")).replace("level","");if(t>1)for(let n=1;n<t;n++){let o=e.parentNode;for(let e=n;e<t;e++)o=o.parentNode.parentNode;o.classList.add("expanded"),o.querySelector("a").classList.add("open")}}});const u=document.querySelectorAll(".toc .nav > li .expand-stub");[].forEach.call(u,e=>{e.addEventListener("click",t=>{t.preventDefault(),e.parentNode.parentNode.classList.toggle("expanded")})})})(e,t)):Promise.resolve()})},function(e,t,n){const{formList:o}=n(1),r=document.getElementById("breadcrumb");e.exports=(()=>{var e=[];const t=document.querySelectorAll("#global-nav a.active");[].forEach.call(t,t=>{e.push({name:t.textContent,href:t.getAttribute("href")})});const n=document.querySelectorAll("#toc a.open");[].forEach.call(n,t=>{e.push({name:t.innerHTML,href:t.href})});const i=o(e,"breadcrumb");r.innerHTML=i})},function(e,t){let n="/";const o=window.location.pathname,r=document.querySelector('meta[property="docfx:basepath"]');if(r&&(n=r.getAttribute("content"),o.endsWith("/")&&!n.endsWith("/")&&(n=`${n}/`)),o===n||o.replace(/\/index\.html$/,"")===n||"/index.html"===o&&"/"===n){document.querySelector("footer").style.display="none";const e=document.getElementById("search");e.parentNode.removeChild(e),document.getElementById("btn-toggle-search").style.display="none";const t=document.querySelector(".sidebar");t.parentNode.removeChild(t),window.innerWidth>=768&&(document.querySelector(".navbar-right").style.borderLeft="none"),window.addEventListener("resize",()=>{window.innerWidth>=768?document.querySelector(".navbar-right").style.borderLeft="none":document.querySelector(".navbar-right").style.borderLeft="1px solid #e6ecf1"})}},function(t,n,o){const r=o(11),i=o(12),{formList:a}=o(1),s=e=>e?e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e;let c=!1;const l=document.querySelector(".sideaffix"),u=document.getElementById("sideaffix-toggle"),d=(()=>{const t=document.querySelectorAll(["h1","h2","h3","h4"].map(e=>`article ${e}`).join(", ")),n=[],o=()=>{const e=n.pop(),t=n[n.length-1],o=t.siblings[t.siblings.length-1];[].forEach.call(e.siblings,e=>{o.items.push(e)})};for([].forEach.call(t,t=>{if(!t.id)return;const r={name:s(t.textContent),href:"#"+t.id,items:[]};if(!n.length)return void n.push({type:t.tagName,siblings:[r]});const i=n[n.length-1];if(t.tagName===i.type)i.siblings.push(r);else if(t.tagName[1]>i.type[1])n.push({type:t.tagName,siblings:[r]});else{for(;t.tagName[1]<n[n.length-1].type[1];)o();t.tagName===n[n.length-1].type?n[n.length-1].siblings.push(r):n.push({type:e.tagName,siblings:[r]})}});n.length>1;)o();if(n.length>0){var r=n.pop().siblings;return 1===r.length?r[0].items:r}})();if(d&&d.length>0){let e="<h5>In This Article</h5>";e+=a(d,["nav","docs-sidenav"]),document.getElementById("affix").innerHTML=e;const t=document.querySelector("header.navbar"),n=()=>t.getBoundingClientRect().height+20;new r("#affix a",{nested:!0,offset:n}),new i('a[href*="#"]',{offset:n})}else u.style.display="none";u.addEventListener("click",()=>{l.style.display=c?"none":"block",c=!c}),window.addEventListener("scroll",()=>{window.innerWidth<1280&&(l.style.display="none",c=!1)})},function(e,t,n){(function(n){var o,r;/*! gumshoejs v5.1.1 | (c) 2019 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/gumshoe */r=void 0!==n?n:"undefined"!=typeof window?window:this,void 0===(o=function(){return function(e){"use strict";var t={navClass:"active",contentClass:"active",nested:!1,nestedClass:"active",offset:0,reflow:!1,events:!0},n=function(e,t,n){if(n.settings.events){var o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t.dispatchEvent(o)}},o=function(e){var t=0;if(e.offsetParent)for(;e;)t+=e.offsetTop,e=e.offsetParent;return t>=0?t:0},r=function(e){e&&e.sort(function(e,t){return o(e.content)<o(t.content)?-1:1})},i=function(t,n,o){var r=t.getBoundingClientRect(),i=function(e){return"function"==typeof e.offset?parseFloat(e.offset()):parseFloat(e.offset)}(n);return o?parseInt(r.bottom,10)<(e.innerHeight||document.documentElement.clientHeight):parseInt(r.top,10)<=i},a=function(){return e.innerHeight+e.pageYOffset>=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},s=function(e,t){var n=e[e.length-1];if(function(e,t){return!(!a()||!i(e.content,t,!0))}(n,t))return n;for(var o=e.length-1;o>=0;o--)if(i(e[o].content,t))return e[o]},c=function(e,t){if(t.nested){var n=e.parentNode.closest("li");n&&(n.classList.remove(t.nestedClass),c(n,t))}},l=function(e,t){if(e){var o=e.nav.closest("li");o&&(o.classList.remove(t.navClass),e.content.classList.remove(t.contentClass),c(o,t),n("gumshoeDeactivate",o,{link:e.nav,content:e.content,settings:t}))}},u=function(e,t){if(t.nested){var n=e.parentNode.closest("li");n&&(n.classList.add(t.nestedClass),u(n,t))}};return function(o,i){var a,c,d,h,f,p={setup:function(){a=document.querySelectorAll(o),c=[],Array.prototype.forEach.call(a,function(e){var t=document.getElementById(decodeURIComponent(e.hash.substr(1)));t&&c.push({nav:e,content:t})}),r(c)},detect:function(){var e=s(c,f);e?d&&e.content===d.content||(l(d,f),function(e,t){if(e){var o=e.nav.closest("li");o&&(o.classList.add(t.navClass),e.content.classList.add(t.contentClass),u(o,t),n("gumshoeActivate",o,{link:e.nav,content:e.content,settings:t}))}}(e,f),d=e):d&&(l(d,f),d=null)}},m=function(t){h&&e.cancelAnimationFrame(h),h=e.requestAnimationFrame(p.detect)},g=function(t){h&&e.cancelAnimationFrame(h),h=e.requestAnimationFrame(function(){r(c),p.detect()})};return p.destroy=function(){d&&l(d,f),e.removeEventListener("scroll",m,!1),f.reflow&&e.removeEventListener("resize",g,!1),c=null,a=null,d=null,h=null,f=null},f=function(){var e={};return Array.prototype.forEach.call(arguments,function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}}),e}(t,i||{}),p.setup(),p.detect(),e.addEventListener("scroll",m,!1),f.reflow&&e.addEventListener("resize",g,!1),p}}(r)}.apply(t,[]))||(e.exports=o)}).call(this,n(2))},function(e,t,n){(function(n){var o,r;/*! smooth-scroll v16.0.3 | (c) 2019 Chris Ferdinandi | MIT License | http://github.com/cferdinandi/smooth-scroll */window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,n=(this.document||this.ownerDocument).querySelectorAll(e),o=this;do{for(t=n.length;0<=--t&&n.item(t)!==o;);}while(t<0&&(o=o.parentElement));return o}),function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}(),function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,n){var o=(new Date).getTime(),r=Math.max(0,16-(o-e)),i=window.setTimeout(function(){t(o+r)},r);return e=o+r,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),r=void 0!==n?n:"undefined"!=typeof window?window:this,void 0===(o=function(){return function(e){"use strict";var t={ignore:"[data-scroll-ignore]",header:null,topOnEmptyHash:!0,speed:500,speedAsDuration:!1,durationMax:null,durationMin:null,clip:!0,offset:0,easing:"easeInOutCubic",customEasing:null,updateURL:!0,popstate:!0,emitEvents:!0},n=function(){var e={};return Array.prototype.forEach.call(arguments,function(t){for(var n in t){if(!t.hasOwnProperty(n))return;e[n]=t[n]}}),e},o=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),o=n.length,r=-1,i="",a=n.charCodeAt(0);++r<o;){if(0===(t=n.charCodeAt(r)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");i+=1<=t&&t<=31||127==t||0===r&&48<=t&&t<=57||1===r&&48<=t&&t<=57&&45===a?"\\"+t.toString(16)+" ":128<=t||45===t||95===t||48<=t&&t<=57||65<=t&&t<=90||97<=t&&t<=122?n.charAt(r):"\\"+n.charAt(r)}return"#"+i},r=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},i=function(t,n,o,r){if(n.emitEvents&&"function"==typeof e.CustomEvent){var i=new CustomEvent(t,{bubbles:!0,detail:{anchor:o,toggle:r}});document.dispatchEvent(i)}};return function(a,s){var c,l,u,d,h={cancelScroll:function(e){cancelAnimationFrame(d),d=null,e||i("scrollCancel",c)},animateScroll:function(o,a,s){h.cancelScroll();var l=n(c||t,s||{}),f="[object Number]"===Object.prototype.toString.call(o),p=f||!o.tagName?null:o;if(f||p){var m=e.pageYOffset;l.header&&!u&&(u=document.querySelector(l.header));var g,v,y,w,b,E,x,S,k=function(t){return t?(n=t,parseInt(e.getComputedStyle(n).height,10)+t.offsetTop):0;var n}(u),_=f?o:function(t,n,o,i){var a=0;if(t.offsetParent)for(;a+=t.offsetTop,t=t.offsetParent;);return a=Math.max(a-n-o,0),i&&(a=Math.min(a,r()-e.innerHeight)),a}(p,k,parseInt("function"==typeof l.offset?l.offset(o,a):l.offset,10),l.clip),I=_-m,N=r(),C=0,T=(g=I,y=(v=l).speedAsDuration?v.speed:Math.abs(g/1e3*v.speed),v.durationMax&&y>v.durationMax?v.durationMax:v.durationMin&&y<v.durationMin?v.durationMin:parseInt(y,10)),A=function(t){var n,r,s;w||(w=t),C+=t-w,E=m+I*(r=b=1<(b=0===T?0:C/T)?1:b,"easeInQuad"===(n=l).easing&&(s=r*r),"easeOutQuad"===n.easing&&(s=r*(2-r)),"easeInOutQuad"===n.easing&&(s=r<.5?2*r*r:(4-2*r)*r-1),"easeInCubic"===n.easing&&(s=r*r*r),"easeOutCubic"===n.easing&&(s=--r*r*r+1),"easeInOutCubic"===n.easing&&(s=r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1),"easeInQuart"===n.easing&&(s=r*r*r*r),"easeOutQuart"===n.easing&&(s=1- --r*r*r*r),"easeInOutQuart"===n.easing&&(s=r<.5?8*r*r*r*r:1-8*--r*r*r*r),"easeInQuint"===n.easing&&(s=r*r*r*r*r),"easeOutQuint"===n.easing&&(s=1+--r*r*r*r*r),"easeInOutQuint"===n.easing&&(s=r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r),n.customEasing&&(s=n.customEasing(r)),s||r),e.scrollTo(0,Math.floor(E)),function(t,n){var r,s,c,u=e.pageYOffset;if(t==n||u==n||(m<n&&e.innerHeight+u)>=N)return h.cancelScroll(!0),s=n,c=f,0===(r=o)&&document.body.focus(),c||(r.focus(),document.activeElement!==r&&(r.setAttribute("tabindex","-1"),r.focus(),r.style.outline="none"),e.scrollTo(0,s)),i("scrollStop",l,o,a),!(d=w=null)}(E,_)||(d=e.requestAnimationFrame(A),w=t)};0===e.pageYOffset&&e.scrollTo(0,0),x=o,S=l,f||history.pushState&&S.updateURL&&history.pushState({smoothScroll:JSON.stringify(S),anchor:x.id},document.title,x===document.documentElement?"#top":"#"+x.id),i("scrollStart",l,o,a),h.cancelScroll(!0),e.requestAnimationFrame(A)}}},f=function(t){if(!("matchMedia"in e&&e.matchMedia("(prefers-reduced-motion)").matches)&&!t.defaultPrevented&&!(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey)&&"closest"in t.target&&(l=t.target.closest(a))&&"a"===l.tagName.toLowerCase()&&!t.target.closest(c.ignore)&&l.hostname===e.location.hostname&&l.pathname===e.location.pathname&&/#/.test(l.href)){var n,r=o(l.hash);if("#"===r){if(!c.topOnEmptyHash)return;n=document.documentElement}else n=document.querySelector(r);(n=n||"#top"!==r?n:document.documentElement)&&(t.preventDefault(),function(t){if(history.replaceState&&t.updateURL&&!history.state){var n=e.location.hash;n=n||"",history.replaceState({smoothScroll:JSON.stringify(t),anchor:n||e.pageYOffset},document.title,n||e.location.href)}}(c),h.animateScroll(n,l))}},p=function(e){if(null!==history.state&&history.state.smoothScroll&&history.state.smoothScroll===JSON.stringify(c)){var t=history.state.anchor;"string"==typeof t&&t&&!(t=document.querySelector(o(history.state.anchor)))||h.animateScroll(t,null,{updateURL:!1})}};return h.destroy=function(){c&&(document.removeEventListener("click",f,!1),e.removeEventListener("popstate",p,!1),h.cancelScroll(),d=u=l=c=null)},function(){if(!("querySelector"in document&&"addEventListener"in e&&"requestAnimationFrame"in e&&"closest"in e.Element.prototype))throw"Smooth Scroll: This browser does not support the required JavaScript methods and browser APIs.";h.destroy(),c=n(t,s||{}),u=c.header?document.querySelector(c.header):null,document.addEventListener("click",f,!1),c.updateURL&&c.popstate&&e.addEventListener("popstate",p,!1)}(),h}}(r)}.apply(t,[]))||(e.exports=o)}).call(this,n(2))},function(e,t){const n=document.querySelector('meta[property="docfx:newtab"]');if(n){"true"===n.getAttribute("content")&&[].forEach.call(document.links,e=>{e.hostname!==window.location.hostname&&e.setAttribute("target","_blank")})}},function(e,t){const n=document.querySelectorAll(".NOTE");[].forEach.call(n,e=>e.classList.add("alert","alert-info"));const o=document.querySelectorAll(".TIP");[].forEach.call(o,e=>e.classList.add("alert","alert-success"));const r=document.querySelectorAll(".TIP h5");[].forEach.call(r,e=>e.textContent="Success");const i=document.querySelectorAll(".WARNING");[].forEach.call(i,e=>e.classList.add("alert","alert-warning"));const a=document.querySelectorAll(".IMPORTANT, .CAUTION");[].forEach.call(a,e=>e.classList.add("alert","alert-danger"))},function(e,t,n){const o=n(16),r=n(17),i=n(18),a=document.getElementById("search-results"),s=document.querySelector('meta[property="docfx\\:rel"]');if(s){const e=s.getAttribute("content"),t=window.searchWorkerUrl||`${e}js/search-worker.js`;let n;try{const s=new Worker(t);s||window.worker?(s.postMessage({event:"init",settings:{baseUrl:e}}),s.onmessage=(t=>{switch(t.data.e){case"index-ready":window.postToSearch=((e,t=!1)=>{s.postMessage({event:"search",q:e,external:t})});break;case"query-ready":const{d:n,q:o}=t.data;t.data.external?window.handleSearchResults(o,n,e):i(o,n,e)}})):o();const c=document.querySelectorAll(".search-input");[].forEach.call(c,e=>{e.addEventListener("keydown",t=>{13===t.keyCode&&t.preventDefault(),27===t.keyCode&&(e.classList.remove("active"),a.style.display="none")}),e.addEventListener("keyup",t=>{(n=t.target.value).length>=3&&window.postToSearch&&(window.postToSearch(n),e.classList.add("active"))})}),r()}catch(e){console.error(e)}}},function(e,t){e.exports=(()=>{var e=lunr(function(){this.ref("href"),this.field("title",{boost:50}),this.field("keywords",{boost:20})});lunr.tokenizer.seperator=/[\s\-\.]+/;var t={},n=new XMLHttpRequest,o=relHref+"index.json";o&&(n.open("GET",o),n.onload=function(){if(200==this.status)for(var n in t=JSON.parse(this.responseText))t.hasOwnProperty(n)&&e.add(t[n])},n.send()),$("body").bind("queryReady",function(){var n=e.search(query),o=[];n.forEach(function(e){var n=t[e.ref];o.push({href:n.href,title:n.title,keywords:n.keywords})}),handleSearchResults(o)})})},function(e,t,n){const o=new(n(3))(document.querySelector("article"));e.exports=(()=>{const{search:e}=window.location;if(e){const t=e.match(/\?q=(.+)/);t&&t[1].split("%20").forEach(e=>{""!==e&&o.mark(e)})}})},function(e,t,n){const o=n(19),r=n(3),i=document.getElementById("search-results"),a=new r(i),s=new o({rows:[],scrollId:"search-scrollArea",contentId:"search-contentArea",no_data_text:"No results found"});e.exports=((e,t,n)=>{if(0===t.length)s.update(["<div></div>"]),s.clear();else{const o=t.map(t=>{var o=n+t.href+"?q="+e,r=t.title,i=((e,t)=>{const n=e.split(/\s+/g),o=t.indexOf(n[0]);return o>100?`...${t.slice(o-100,o+100)}...`:o<=100?`${t.slice(0,o+100)}...`:void 0})(e,t.keywords);const a=document.createElement("a");a.setAttribute("href",o),a.classList.add("sr-item");const s=document.createElement("div");s.classList.add("item-title"),s.textContent=r;const c=document.createElement("div");c.classList.add("item-brief"),c.textContent=i,a.appendChild(s),a.appendChild(c);const l=document.createElement("div");return l.appendChild(a),l.innerHTML});s.update(o),e.split(/\s+/).forEach(e=>{""!==e&&a.mark(e)})}i.style.display="flex"})},function(e,t,n){e.exports=function(){"use strict";var e=function(){for(var e=3,t=document.createElement("b"),n=t.all||[];t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i><![endif]--\x3e",n[0];);return e>4?e:document.documentMode}(),t=navigator.platform.toLowerCase().indexOf("mac")+1,n=function(e){if(!(this instanceof n))return new n(e);var a=this,s={rows_in_block:50,blocks_in_cluster:4,tag:null,show_no_data_row:!0,no_data_class:"clusterize-no-data",no_data_text:"No data",keep_parity:!0,callbacks:{}};a.options={};for(var c,l=["rows_in_block","blocks_in_cluster","show_no_data_row","no_data_class","no_data_text","keep_parity","tag","callbacks"],u=0;c=l[u];u++)a.options[c]=void 0!==e[c]&&null!=e[c]?e[c]:s[c];for(var d,h=["scroll","content"],u=0;d=h[u];u++)if(a[d+"_elem"]=e[d+"Id"]?document.getElementById(e[d+"Id"]):e[d+"Elem"],!a[d+"_elem"])throw new Error("Error! Could not find "+d+" element");a.content_elem.hasAttribute("tabindex")||a.content_elem.setAttribute("tabindex",0);var f=i(e.rows)?e.rows:a.fetchMarkup(),p={},m=a.scroll_elem.scrollTop;a.insertToDOM(f,p),a.scroll_elem.scrollTop=m;var g=!1,v=0,y=!1,w=function(){t&&(y||(a.content_elem.style.pointerEvents="none"),y=!0,clearTimeout(v),v=setTimeout(function(){a.content_elem.style.pointerEvents="auto",y=!1},50)),g!=(g=a.getClusterNum())&&a.insertToDOM(f,p),a.options.callbacks.scrollingProgress&&a.options.callbacks.scrollingProgress(a.getScrollProgress())},b=0,E=function(){clearTimeout(b),b=setTimeout(a.refresh,100)};o("scroll",a.scroll_elem,w),o("resize",window,E),a.destroy=function(e){r("scroll",a.scroll_elem,w),r("resize",window,E),a.html((e?a.generateEmptyRow():f).join(""))},a.refresh=function(e){(a.getRowsHeight(f)||e)&&a.update(f)},a.update=function(e){f=i(e)?e:[];var t=a.scroll_elem.scrollTop;f.length*a.options.item_height<t&&(a.scroll_elem.scrollTop=0,g=0),a.insertToDOM(f,p),a.scroll_elem.scrollTop=t},a.clear=function(){a.update([])},a.getRowsAmount=function(){return f.length},a.getScrollProgress=function(){return this.options.scroll_top/(f.length*this.options.item_height)*100||0};var x=function(e,t){var n=i(t)?t:[];n.length&&(f="append"==e?f.concat(n):n.concat(f),a.insertToDOM(f,p))};a.append=function(e){x("append",e)},a.prepend=function(e){x("prepend",e)}};function o(e,t,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function r(e,t,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)}function i(e){return"[object Array]"===Object.prototype.toString.call(e)}function a(e,t){return window.getComputedStyle?window.getComputedStyle(t)[e]:t.currentStyle[e]}return n.prototype={constructor:n,fetchMarkup:function(){for(var e=[],t=this.getChildNodes(this.content_elem);t.length;)e.push(t.shift().outerHTML);return e},exploreEnvironment:function(t,n){var o=this.options;o.content_tag=this.content_elem.tagName.toLowerCase(),t.length&&(e&&e<=9&&!o.tag&&(o.tag=t[0].match(/<([^>\s\/]*)/)[1].toLowerCase()),this.content_elem.children.length<=1&&(n.data=this.html(t[0]+t[0]+t[0])),o.tag||(o.tag=this.content_elem.children[0].tagName.toLowerCase()),this.getRowsHeight(t))},getRowsHeight:function(e){var t=this.options,n=t.item_height;if(t.cluster_height=0,e.length){var o=this.content_elem.children;if(o.length){var r=o[Math.floor(o.length/2)];if(t.item_height=r.offsetHeight,"tr"==t.tag&&"collapse"!=a("borderCollapse",this.content_elem)&&(t.item_height+=parseInt(a("borderSpacing",this.content_elem),10)||0),"tr"!=t.tag){var i=parseInt(a("marginTop",r),10)||0,s=parseInt(a("marginBottom",r),10)||0;t.item_height+=Math.max(i,s)}return t.block_height=t.item_height*t.rows_in_block,t.rows_in_cluster=t.blocks_in_cluster*t.rows_in_block,t.cluster_height=t.blocks_in_cluster*t.block_height,n!=t.item_height}}},getClusterNum:function(){return this.options.scroll_top=this.scroll_elem.scrollTop,Math.floor(this.options.scroll_top/(this.options.cluster_height-this.options.block_height))||0},generateEmptyRow:function(){var e=this.options;if(!e.tag||!e.show_no_data_row)return[];var t,n=document.createElement(e.tag),o=document.createTextNode(e.no_data_text);return n.className=e.no_data_class,"tr"==e.tag&&((t=document.createElement("td")).colSpan=100,t.appendChild(o)),n.appendChild(t||o),[n.outerHTML]},generate:function(e,t){var n=this.options,o=e.length;if(o<n.rows_in_block)return{top_offset:0,bottom_offset:0,rows_above:0,rows:o?e:this.generateEmptyRow()};var r=Math.max((n.rows_in_cluster-n.rows_in_block)*t,0),i=r+n.rows_in_cluster,a=Math.max(r*n.item_height,0),s=Math.max((o-i)*n.item_height,0),c=[],l=r;a<1&&l++;for(var u=r;u<i;u++)e[u]&&c.push(e[u]);return{top_offset:a,bottom_offset:s,rows_above:l,rows:c}},renderExtraTag:function(e,t){var n=document.createElement(this.options.tag);return n.className=["clusterize-extra-row","clusterize-"+e].join(" "),t&&(n.style.height=t+"px"),n.outerHTML},insertToDOM:function(e,t){this.options.cluster_height||this.exploreEnvironment(e,t);var n=this.generate(e,this.getClusterNum()),o=n.rows.join(""),r=this.checkChanges("data",o,t),i=this.checkChanges("top",n.top_offset,t),a=this.checkChanges("bottom",n.bottom_offset,t),s=this.options.callbacks,c=[];r||i?(n.top_offset&&(this.options.keep_parity&&c.push(this.renderExtraTag("keep-parity")),c.push(this.renderExtraTag("top-space",n.top_offset))),c.push(o),n.bottom_offset&&c.push(this.renderExtraTag("bottom-space",n.bottom_offset)),s.clusterWillChange&&s.clusterWillChange(),this.html(c.join("")),"ol"==this.options.content_tag&&this.content_elem.setAttribute("start",n.rows_above),this.content_elem.style["counter-increment"]="clusterize-counter "+(n.rows_above-1),s.clusterChanged&&s.clusterChanged()):a&&(this.content_elem.lastChild.style.height=n.bottom_offset+"px")},html:function(t){var n=this.content_elem;if(e&&e<=9&&"tr"==this.options.tag){var o,r=document.createElement("div");for(r.innerHTML="<table><tbody>"+t+"</tbody></table>";o=n.lastChild;)n.removeChild(o);for(var i=this.getChildNodes(r.firstChild.firstChild);i.length;)n.appendChild(i.shift())}else n.innerHTML=t},getChildNodes:function(e){for(var t=e.children,n=[],o=0,r=t.length;o<r;o++)n.push(t[o]);return n},checkChanges:function(e,t,n){var o=t!=n[e];return n[e]=t,o}},n}()},function(e,t){const n=document.getElementById("error-search-results");if(n){const{pathname:e}=window.location,t=e.replace(/\.html$/,"").split(/[\/-]/).join(" ");window.handleSearchResults=((e,t,o)=>{if(0===t.length){const e=document.createTextNode("No results found.");n.appendChild(e)}else t.forEach(t=>{const r=o+t.href+"?q="+e,i=document.createElement("a");i.setAttribute("href",r),i.textContent=t.title,n.appendChild(i)})});const o=()=>{window.postToSearch?window.postToSearch(t,!0):window.setTimeout(o,100)};o()}},function(e,t){const n=window.pluginConfig.statuspage;if(n){const e=document.getElementsByTagName("script")[0],t=document.createElement("script");t.onload=(()=>{new StatusPage.page({page:n.pageId}).summary({success:e=>{if(window.statusPageSummary=e,-1===window.location.pathname.indexOf("/status")){const t=document.createElement("div");t.classList.add("status-widget"),t.classList.add(e.status.indicator);const o=document.createElement("a");o.setAttribute("href","/status"),o.innerHTML=n.title||"Platform Status",t.appendChild(o),document.querySelector("#global-nav").appendChild(t)}}})}),t.src="https://cdn.statuspage.io/se-v2.js",e.parentNode.insertBefore(t,e)}}]);

@@ -1,2 +0,2 @@

!function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){var i,n;
!function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=22)}({0:function(e,t,r){var i,n;
/**

@@ -6,58 +6,47 @@ * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.6

* @license MIT
*/!function(){var s,o,a,u,l,c,h,d,f,p,y,m,g,x,v,w,Q,k,S,b,E,P,L,T,O,I,R=function(e){var t=new R.Builder;return t.pipeline.add(R.trimmer,R.stopWordFilter,R.stemmer),t.searchPipeline.add(R.stemmer),e.call(t,t),t.build()};R.version="2.3.6",
*/!function(){var s,o,a,u,l,c,h,d,f,p,y,m,g,x,v,w,Q,k,S,b,E,P,L,T,O,I,R=function(e){var t=new R.Builder;return t.pipeline.add(R.trimmer,R.stopWordFilter,R.stemmer),t.searchPipeline.add(R.stemmer),e.call(t,t),t.build()};R.version="2.3.6"
/*!
* lunr.utils
* Copyright (C) 2019 Oliver Nightingale
*/
R.utils={},R.utils.warn=(s=this,function(e){s.console&&console.warn&&console.warn(e)}),R.utils.asString=function(e){return null==e?"":e.toString()},R.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),i=0;i<r.length;i++){var n=r[i],s=e[n];if(Array.isArray(s))t[n]=s.slice();else{if("string"!=typeof s&&"number"!=typeof s&&"boolean"!=typeof s)throw new TypeError("clone is not deep and does not support nested objects");t[n]=s}}return t},R.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},R.FieldRef.joiner="/",R.FieldRef.fromString=function(e){var t=e.indexOf(R.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var r=e.slice(0,t),i=e.slice(t+1);return new R.FieldRef(i,r,e)},R.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+R.FieldRef.joiner+this.docRef),this._stringValue},
* lunr.utils
* Copyright (C) 2019 Oliver Nightingale
*/,R.utils={},R.utils.warn=(s=this,function(e){s.console&&console.warn&&console.warn(e)}),R.utils.asString=function(e){return null==e?"":e.toString()},R.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),i=0;i<r.length;i++){var n=r[i],s=e[n];if(Array.isArray(s))t[n]=s.slice();else{if("string"!=typeof s&&"number"!=typeof s&&"boolean"!=typeof s)throw new TypeError("clone is not deep and does not support nested objects");t[n]=s}}return t},R.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},R.FieldRef.joiner="/",R.FieldRef.fromString=function(e){var t=e.indexOf(R.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var r=e.slice(0,t),i=e.slice(t+1);return new R.FieldRef(i,r,e)},R.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+R.FieldRef.joiner+this.docRef),this._stringValue}
/*!
* lunr.Set
* Copyright (C) 2019 Oliver Nightingale
*/
R.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},R.Set.complete={intersect:function(e){return e},union:function(e){return e},contains:function(){return!0}},R.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},R.Set.prototype.contains=function(e){return!!this.elements[e]},R.Set.prototype.intersect=function(e){var t,r,i,n=[];if(e===R.Set.complete)return this;if(e===R.Set.empty)return e;this.length<e.length?(t=this,r=e):(t=e,r=this),i=Object.keys(t.elements);for(var s=0;s<i.length;s++){var o=i[s];o in r.elements&&n.push(o)}return new R.Set(n)},R.Set.prototype.union=function(e){return e===R.Set.complete?R.Set.complete:e===R.Set.empty?this:new R.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},R.idf=function(e,t){var r=0;for(var i in e)"_index"!=i&&(r+=Object.keys(e[i]).length);var n=(t-r+.5)/(r+.5);return Math.log(1+Math.abs(n))},R.Token=function(e,t){this.str=e||"",this.metadata=t||{}},R.Token.prototype.toString=function(){return this.str},R.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},R.Token.prototype.clone=function(e){return e=e||function(e){return e},new R.Token(e(this.str,this.metadata),this.metadata)},
* lunr.Set
* Copyright (C) 2019 Oliver Nightingale
*/,R.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},R.Set.complete={intersect:function(e){return e},union:function(e){return e},contains:function(){return!0}},R.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},R.Set.prototype.contains=function(e){return!!this.elements[e]},R.Set.prototype.intersect=function(e){var t,r,i,n=[];if(e===R.Set.complete)return this;if(e===R.Set.empty)return e;this.length<e.length?(t=this,r=e):(t=e,r=this),i=Object.keys(t.elements);for(var s=0;s<i.length;s++){var o=i[s];o in r.elements&&n.push(o)}return new R.Set(n)},R.Set.prototype.union=function(e){return e===R.Set.complete?R.Set.complete:e===R.Set.empty?this:new R.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},R.idf=function(e,t){var r=0;for(var i in e)"_index"!=i&&(r+=Object.keys(e[i]).length);var n=(t-r+.5)/(r+.5);return Math.log(1+Math.abs(n))},R.Token=function(e,t){this.str=e||"",this.metadata=t||{}},R.Token.prototype.toString=function(){return this.str},R.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},R.Token.prototype.clone=function(e){return e=e||function(e){return e},new R.Token(e(this.str,this.metadata),this.metadata)}
/*!
* lunr.tokenizer
* Copyright (C) 2019 Oliver Nightingale
*/
R.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map(function(e){return new R.Token(R.utils.asString(e).toLowerCase(),R.utils.clone(t))});for(var r=e.toString().trim().toLowerCase(),i=r.length,n=[],s=0,o=0;s<=i;s++){var a=s-o;if(r.charAt(s).match(R.tokenizer.separator)||s==i){if(a>0){var u=R.utils.clone(t)||{};u.position=[o,a],u.index=n.length,n.push(new R.Token(r.slice(o,s),u))}o=s+1}}return n},R.tokenizer.separator=/[\s\-]+/,
* lunr.tokenizer
* Copyright (C) 2019 Oliver Nightingale
*/,R.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map(function(e){return new R.Token(R.utils.asString(e).toLowerCase(),R.utils.clone(t))});for(var r=e.toString().trim().toLowerCase(),i=r.length,n=[],s=0,o=0;s<=i;s++){var a=s-o;if(r.charAt(s).match(R.tokenizer.separator)||s==i){if(a>0){var u=R.utils.clone(t)||{};u.position=[o,a],u.index=n.length,n.push(new R.Token(r.slice(o,s),u))}o=s+1}}return n},R.tokenizer.separator=/[\s\-]+/
/*!
* lunr.Pipeline
* Copyright (C) 2019 Oliver Nightingale
*/
R.Pipeline=function(){this._stack=[]},R.Pipeline.registeredFunctions=Object.create(null),R.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&R.utils.warn("Overwriting existing registered function: "+t),e.label=t,R.Pipeline.registeredFunctions[e.label]=e},R.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||R.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},R.Pipeline.load=function(e){var t=new R.Pipeline;return e.forEach(function(e){var r=R.Pipeline.registeredFunctions[e];if(!r)throw new Error("Cannot load unregistered function: "+e);t.add(r)}),t},R.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){R.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},R.Pipeline.prototype.after=function(e,t){R.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");r+=1,this._stack.splice(r,0,t)},R.Pipeline.prototype.before=function(e,t){R.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");this._stack.splice(r,0,t)},R.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},R.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r<t;r++){for(var i=this._stack[r],n=[],s=0;s<e.length;s++){var o=i(e[s],s,e);if(void 0!==o&&""!==o)if(Array.isArray(o))for(var a=0;a<o.length;a++)n.push(o[a]);else n.push(o)}e=n}return e},R.Pipeline.prototype.runString=function(e,t){var r=new R.Token(e,t);return this.run([r]).map(function(e){return e.toString()})},R.Pipeline.prototype.reset=function(){this._stack=[]},R.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return R.Pipeline.warnIfFunctionNotRegistered(e),e.label})},
* lunr.Pipeline
* Copyright (C) 2019 Oliver Nightingale
*/,R.Pipeline=function(){this._stack=[]},R.Pipeline.registeredFunctions=Object.create(null),R.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&R.utils.warn("Overwriting existing registered function: "+t),e.label=t,R.Pipeline.registeredFunctions[e.label]=e},R.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||R.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},R.Pipeline.load=function(e){var t=new R.Pipeline;return e.forEach(function(e){var r=R.Pipeline.registeredFunctions[e];if(!r)throw new Error("Cannot load unregistered function: "+e);t.add(r)}),t},R.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){R.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},R.Pipeline.prototype.after=function(e,t){R.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");r+=1,this._stack.splice(r,0,t)},R.Pipeline.prototype.before=function(e,t){R.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");this._stack.splice(r,0,t)},R.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},R.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r<t;r++){for(var i=this._stack[r],n=[],s=0;s<e.length;s++){var o=i(e[s],s,e);if(void 0!==o&&""!==o)if(Array.isArray(o))for(var a=0;a<o.length;a++)n.push(o[a]);else n.push(o)}e=n}return e},R.Pipeline.prototype.runString=function(e,t){var r=new R.Token(e,t);return this.run([r]).map(function(e){return e.toString()})},R.Pipeline.prototype.reset=function(){this._stack=[]},R.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return R.Pipeline.warnIfFunctionNotRegistered(e),e.label})}
/*!
* lunr.Vector
* Copyright (C) 2019 Oliver Nightingale
*/
R.Vector=function(e){this._magnitude=0,this.elements=e||[]},R.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,r=this.elements.length/2,i=r-t,n=Math.floor(i/2),s=this.elements[2*n];i>1&&(s<e&&(t=n),s>e&&(r=n),s!=e);)i=r-t,n=t+Math.floor(i/2),s=this.elements[2*n];return s==e?2*n:s>e?2*n:s<e?2*(n+1):void 0},R.Vector.prototype.insert=function(e,t){this.upsert(e,t,function(){throw"duplicate index"})},R.Vector.prototype.upsert=function(e,t,r){this._magnitude=0;var i=this.positionForIndex(e);this.elements[i]==e?this.elements[i+1]=r(this.elements[i+1],t):this.elements.splice(i,0,e,t)},R.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,r=1;r<t;r+=2){var i=this.elements[r];e+=i*i}return this._magnitude=Math.sqrt(e)},R.Vector.prototype.dot=function(e){for(var t=0,r=this.elements,i=e.elements,n=r.length,s=i.length,o=0,a=0,u=0,l=0;u<n&&l<s;)(o=r[u])<(a=i[l])?u+=2:o>a?l+=2:o==a&&(t+=r[u+1]*i[l+1],u+=2,l+=2);return t},R.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},R.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,r=0;t<this.elements.length;t+=2,r++)e[r]=this.elements[t];return e},R.Vector.prototype.toJSON=function(){return this.elements},
* lunr.Vector
* Copyright (C) 2019 Oliver Nightingale
*/,R.Vector=function(e){this._magnitude=0,this.elements=e||[]},R.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,r=this.elements.length/2,i=r-t,n=Math.floor(i/2),s=this.elements[2*n];i>1&&(s<e&&(t=n),s>e&&(r=n),s!=e);)i=r-t,n=t+Math.floor(i/2),s=this.elements[2*n];return s==e?2*n:s>e?2*n:s<e?2*(n+1):void 0},R.Vector.prototype.insert=function(e,t){this.upsert(e,t,function(){throw"duplicate index"})},R.Vector.prototype.upsert=function(e,t,r){this._magnitude=0;var i=this.positionForIndex(e);this.elements[i]==e?this.elements[i+1]=r(this.elements[i+1],t):this.elements.splice(i,0,e,t)},R.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,r=1;r<t;r+=2){var i=this.elements[r];e+=i*i}return this._magnitude=Math.sqrt(e)},R.Vector.prototype.dot=function(e){for(var t=0,r=this.elements,i=e.elements,n=r.length,s=i.length,o=0,a=0,u=0,l=0;u<n&&l<s;)(o=r[u])<(a=i[l])?u+=2:o>a?l+=2:o==a&&(t+=r[u+1]*i[l+1],u+=2,l+=2);return t},R.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},R.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,r=0;t<this.elements.length;t+=2,r++)e[r]=this.elements[t];return e},R.Vector.prototype.toJSON=function(){return this.elements}
/*!
* lunr.stemmer
* Copyright (C) 2019 Oliver Nightingale
* Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt
*/
R.stemmer=(o={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},a={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},u="[aeiouy]",l="[^aeiou][^aeiouy]*",c=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),h=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),d=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),f=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),p=/^(.+?)(ss|i)es$/,y=/^(.+?)([^s])s$/,m=/^(.+?)eed$/,g=/^(.+?)(ed|ing)$/,x=/.$/,v=/(at|bl|iz)$/,w=new RegExp("([^aeiouylsz])\\1$"),Q=new RegExp("^"+l+u+"[^aeiouwxy]$"),k=/^(.+?[^aeiou])y$/,S=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,b=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,E=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,P=/^(.+?)(s|t)(ion)$/,L=/^(.+?)e$/,T=/ll$/,O=new RegExp("^"+l+u+"[^aeiouwxy]$"),I=function(e){var t,r,i,n,s,u,l;if(e.length<3)return e;if("y"==(i=e.substr(0,1))&&(e=i.toUpperCase()+e.substr(1)),s=y,(n=p).test(e)?e=e.replace(n,"$1$2"):s.test(e)&&(e=e.replace(s,"$1$2")),s=g,(n=m).test(e)){var I=n.exec(e);(n=c).test(I[1])&&(n=x,e=e.replace(n,""))}else if(s.test(e)){t=(I=s.exec(e))[1],(s=f).test(t)&&(u=w,l=Q,(s=v).test(e=t)?e+="e":u.test(e)?(n=x,e=e.replace(n,"")):l.test(e)&&(e+="e"))}if((n=k).test(e)&&(e=(t=(I=n.exec(e))[1])+"i"),(n=S).test(e)&&(t=(I=n.exec(e))[1],r=I[2],(n=c).test(t)&&(e=t+o[r])),(n=b).test(e)&&(t=(I=n.exec(e))[1],r=I[2],(n=c).test(t)&&(e=t+a[r])),s=P,(n=E).test(e))t=(I=n.exec(e))[1],(n=h).test(t)&&(e=t);else if(s.test(e)){t=(I=s.exec(e))[1]+I[2],(s=h).test(t)&&(e=t)}return(n=L).test(e)&&(t=(I=n.exec(e))[1],s=d,u=O,((n=h).test(t)||s.test(t)&&!u.test(t))&&(e=t)),s=h,(n=T).test(e)&&s.test(e)&&(n=x,e=e.replace(n,"")),"y"==i&&(e=i.toLowerCase()+e.substr(1)),e},function(e){return e.update(I)}),R.Pipeline.registerFunction(R.stemmer,"stemmer"),
* lunr.stemmer
* Copyright (C) 2019 Oliver Nightingale
* Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt
*/,R.stemmer=(o={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},a={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},u="[aeiouy]",l="[^aeiou][^aeiouy]*",c=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),h=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),d=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),f=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),p=/^(.+?)(ss|i)es$/,y=/^(.+?)([^s])s$/,m=/^(.+?)eed$/,g=/^(.+?)(ed|ing)$/,x=/.$/,v=/(at|bl|iz)$/,w=new RegExp("([^aeiouylsz])\\1$"),Q=new RegExp("^"+l+u+"[^aeiouwxy]$"),k=/^(.+?[^aeiou])y$/,S=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,b=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,E=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,P=/^(.+?)(s|t)(ion)$/,L=/^(.+?)e$/,T=/ll$/,O=new RegExp("^"+l+u+"[^aeiouwxy]$"),I=function(e){var t,r,i,n,s,u,l;if(e.length<3)return e;if("y"==(i=e.substr(0,1))&&(e=i.toUpperCase()+e.substr(1)),s=y,(n=p).test(e)?e=e.replace(n,"$1$2"):s.test(e)&&(e=e.replace(s,"$1$2")),s=g,(n=m).test(e)){var I=n.exec(e);(n=c).test(I[1])&&(n=x,e=e.replace(n,""))}else if(s.test(e)){t=(I=s.exec(e))[1],(s=f).test(t)&&(u=w,l=Q,(s=v).test(e=t)?e+="e":u.test(e)?(n=x,e=e.replace(n,"")):l.test(e)&&(e+="e"))}if((n=k).test(e)&&(e=(t=(I=n.exec(e))[1])+"i"),(n=S).test(e)&&(t=(I=n.exec(e))[1],r=I[2],(n=c).test(t)&&(e=t+o[r])),(n=b).test(e)&&(t=(I=n.exec(e))[1],r=I[2],(n=c).test(t)&&(e=t+a[r])),s=P,(n=E).test(e))t=(I=n.exec(e))[1],(n=h).test(t)&&(e=t);else if(s.test(e)){t=(I=s.exec(e))[1]+I[2],(s=h).test(t)&&(e=t)}return(n=L).test(e)&&(t=(I=n.exec(e))[1],s=d,u=O,((n=h).test(t)||s.test(t)&&!u.test(t))&&(e=t)),s=h,(n=T).test(e)&&s.test(e)&&(n=x,e=e.replace(n,"")),"y"==i&&(e=i.toLowerCase()+e.substr(1)),e},function(e){return e.update(I)}),R.Pipeline.registerFunction(R.stemmer,"stemmer")
/*!
* lunr.stopWordFilter
* Copyright (C) 2019 Oliver Nightingale
*/
R.generateStopWordFilter=function(e){var t=e.reduce(function(e,t){return e[t]=t,e},{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},R.stopWordFilter=R.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"]),R.Pipeline.registerFunction(R.stopWordFilter,"stopWordFilter"),
* lunr.stopWordFilter
* Copyright (C) 2019 Oliver Nightingale
*/,R.generateStopWordFilter=function(e){var t=e.reduce(function(e,t){return e[t]=t,e},{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},R.stopWordFilter=R.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"]),R.Pipeline.registerFunction(R.stopWordFilter,"stopWordFilter")
/*!
* lunr.trimmer
* Copyright (C) 2019 Oliver Nightingale
*/
R.trimmer=function(e){return e.update(function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")})},R.Pipeline.registerFunction(R.trimmer,"trimmer"),
* lunr.trimmer
* Copyright (C) 2019 Oliver Nightingale
*/,R.trimmer=function(e){return e.update(function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")})},R.Pipeline.registerFunction(R.trimmer,"trimmer")
/*!
* lunr.TokenSet
* Copyright (C) 2019 Oliver Nightingale
*/
R.TokenSet=function(){this.final=!1,this.edges={},this.id=R.TokenSet._nextId,R.TokenSet._nextId+=1},R.TokenSet._nextId=1,R.TokenSet.fromArray=function(e){for(var t=new R.TokenSet.Builder,r=0,i=e.length;r<i;r++)t.insert(e[r]);return t.finish(),t.root},R.TokenSet.fromClause=function(e){return"editDistance"in e?R.TokenSet.fromFuzzyString(e.term,e.editDistance):R.TokenSet.fromString(e.term)},R.TokenSet.fromFuzzyString=function(e,t){for(var r=new R.TokenSet,i=[{node:r,editsRemaining:t,str:e}];i.length;){var n=i.pop();if(n.str.length>0){var s,o=n.str.charAt(0);o in n.node.edges?s=n.node.edges[o]:(s=new R.TokenSet,n.node.edges[o]=s),1==n.str.length&&(s.final=!0),i.push({node:s,editsRemaining:n.editsRemaining,str:n.str.slice(1)})}if(0!=n.editsRemaining){if("*"in n.node.edges)var a=n.node.edges["*"];else{a=new R.TokenSet;n.node.edges["*"]=a}if(0==n.str.length&&(a.final=!0),i.push({node:a,editsRemaining:n.editsRemaining-1,str:n.str}),n.str.length>1&&i.push({node:n.node,editsRemaining:n.editsRemaining-1,str:n.str.slice(1)}),1==n.str.length&&(n.node.final=!0),n.str.length>=1){if("*"in n.node.edges)var u=n.node.edges["*"];else{u=new R.TokenSet;n.node.edges["*"]=u}1==n.str.length&&(u.final=!0),i.push({node:u,editsRemaining:n.editsRemaining-1,str:n.str.slice(1)})}if(n.str.length>1){var l,c=n.str.charAt(0),h=n.str.charAt(1);h in n.node.edges?l=n.node.edges[h]:(l=new R.TokenSet,n.node.edges[h]=l),1==n.str.length&&(l.final=!0),i.push({node:l,editsRemaining:n.editsRemaining-1,str:c+n.str.slice(2)})}}}return r},R.TokenSet.fromString=function(e){for(var t=new R.TokenSet,r=t,i=0,n=e.length;i<n;i++){var s=e[i],o=i==n-1;if("*"==s)t.edges[s]=t,t.final=o;else{var a=new R.TokenSet;a.final=o,t.edges[s]=a,t=a}}return r},R.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var r=t.pop(),i=Object.keys(r.node.edges),n=i.length;r.node.final&&(r.prefix.charAt(0),e.push(r.prefix));for(var s=0;s<n;s++){var o=i[s];t.push({prefix:r.prefix.concat(o),node:r.node.edges[o]})}}return e},R.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),r=t.length,i=0;i<r;i++){var n=t[i];e=e+n+this.edges[n].id}return e},R.TokenSet.prototype.intersect=function(e){for(var t=new R.TokenSet,r=void 0,i=[{qNode:e,output:t,node:this}];i.length;){r=i.pop();for(var n=Object.keys(r.qNode.edges),s=n.length,o=Object.keys(r.node.edges),a=o.length,u=0;u<s;u++)for(var l=n[u],c=0;c<a;c++){var h=o[c];if(h==l||"*"==l){var d=r.node.edges[h],f=r.qNode.edges[l],p=d.final&&f.final,y=void 0;h in r.output.edges?(y=r.output.edges[h]).final=y.final||p:((y=new R.TokenSet).final=p,r.output.edges[h]=y),i.push({qNode:f,output:y,node:d})}}}return t},R.TokenSet.Builder=function(){this.previousWord="",this.root=new R.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},R.TokenSet.Builder.prototype.insert=function(e){var t,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),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(i=r;i<e.length;i++){var n=new R.TokenSet,s=e[i];t.edges[s]=n,this.uncheckedNodes.push({parent:t,char:s,child:n}),t=n}t.final=!0,this.previousWord=e},R.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},R.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var r=this.uncheckedNodes[t],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()}},
* lunr.TokenSet
* Copyright (C) 2019 Oliver Nightingale
*/,R.TokenSet=function(){this.final=!1,this.edges={},this.id=R.TokenSet._nextId,R.TokenSet._nextId+=1},R.TokenSet._nextId=1,R.TokenSet.fromArray=function(e){for(var t=new R.TokenSet.Builder,r=0,i=e.length;r<i;r++)t.insert(e[r]);return t.finish(),t.root},R.TokenSet.fromClause=function(e){return"editDistance"in e?R.TokenSet.fromFuzzyString(e.term,e.editDistance):R.TokenSet.fromString(e.term)},R.TokenSet.fromFuzzyString=function(e,t){for(var r=new R.TokenSet,i=[{node:r,editsRemaining:t,str:e}];i.length;){var n=i.pop();if(n.str.length>0){var s,o=n.str.charAt(0);o in n.node.edges?s=n.node.edges[o]:(s=new R.TokenSet,n.node.edges[o]=s),1==n.str.length&&(s.final=!0),i.push({node:s,editsRemaining:n.editsRemaining,str:n.str.slice(1)})}if(0!=n.editsRemaining){if("*"in n.node.edges)var a=n.node.edges["*"];else{a=new R.TokenSet;n.node.edges["*"]=a}if(0==n.str.length&&(a.final=!0),i.push({node:a,editsRemaining:n.editsRemaining-1,str:n.str}),n.str.length>1&&i.push({node:n.node,editsRemaining:n.editsRemaining-1,str:n.str.slice(1)}),1==n.str.length&&(n.node.final=!0),n.str.length>=1){if("*"in n.node.edges)var u=n.node.edges["*"];else{u=new R.TokenSet;n.node.edges["*"]=u}1==n.str.length&&(u.final=!0),i.push({node:u,editsRemaining:n.editsRemaining-1,str:n.str.slice(1)})}if(n.str.length>1){var l,c=n.str.charAt(0),h=n.str.charAt(1);h in n.node.edges?l=n.node.edges[h]:(l=new R.TokenSet,n.node.edges[h]=l),1==n.str.length&&(l.final=!0),i.push({node:l,editsRemaining:n.editsRemaining-1,str:c+n.str.slice(2)})}}}return r},R.TokenSet.fromString=function(e){for(var t=new R.TokenSet,r=t,i=0,n=e.length;i<n;i++){var s=e[i],o=i==n-1;if("*"==s)t.edges[s]=t,t.final=o;else{var a=new R.TokenSet;a.final=o,t.edges[s]=a,t=a}}return r},R.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var r=t.pop(),i=Object.keys(r.node.edges),n=i.length;r.node.final&&(r.prefix.charAt(0),e.push(r.prefix));for(var s=0;s<n;s++){var o=i[s];t.push({prefix:r.prefix.concat(o),node:r.node.edges[o]})}}return e},R.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),r=t.length,i=0;i<r;i++){var n=t[i];e=e+n+this.edges[n].id}return e},R.TokenSet.prototype.intersect=function(e){for(var t=new R.TokenSet,r=void 0,i=[{qNode:e,output:t,node:this}];i.length;){r=i.pop();for(var n=Object.keys(r.qNode.edges),s=n.length,o=Object.keys(r.node.edges),a=o.length,u=0;u<s;u++)for(var l=n[u],c=0;c<a;c++){var h=o[c];if(h==l||"*"==l){var d=r.node.edges[h],f=r.qNode.edges[l],p=d.final&&f.final,y=void 0;h in r.output.edges?(y=r.output.edges[h]).final=y.final||p:((y=new R.TokenSet).final=p,r.output.edges[h]=y),i.push({qNode:f,output:y,node:d})}}}return t},R.TokenSet.Builder=function(){this.previousWord="",this.root=new R.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},R.TokenSet.Builder.prototype.insert=function(e){var t,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),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(i=r;i<e.length;i++){var n=new R.TokenSet,s=e[i];t.edges[s]=n,this.uncheckedNodes.push({parent:t,char:s,child:n}),t=n}t.final=!0,this.previousWord=e},R.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},R.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var r=this.uncheckedNodes[t],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()}}
/*!
* lunr.Index
* Copyright (C) 2019 Oliver Nightingale
*/
R.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},R.Index.prototype.search=function(e){return this.query(function(t){new R.QueryParser(e,t).parse()})},R.Index.prototype.query=function(e){for(var t=new R.Query(this.fields),r=Object.create(null),i=Object.create(null),n=Object.create(null),s=Object.create(null),o=Object.create(null),a=0;a<this.fields.length;a++)i[this.fields[a]]=new R.Vector;e.call(t,t);for(a=0;a<t.clauses.length;a++){var u=t.clauses[a],l=null,c=R.Set.complete;l=u.usePipeline?this.pipeline.runString(u.term,{fields:u.fields}):[u.term];for(var h=0;h<l.length;h++){var d=l[h];u.term=d;var f=R.TokenSet.fromClause(u),p=this.tokenSet.intersect(f).toArray();if(0===p.length&&u.presence===R.Query.presence.REQUIRED){for(var y=0;y<u.fields.length;y++){s[F=u.fields[y]]=R.Set.empty}break}for(var m=0;m<p.length;m++){var g=p[m],x=this.invertedIndex[g],v=x._index;for(y=0;y<u.fields.length;y++){var w=x[F=u.fields[y]],Q=Object.keys(w),k=g+"/"+F,S=new R.Set(Q);if(u.presence==R.Query.presence.REQUIRED&&(c=c.union(S),void 0===s[F]&&(s[F]=R.Set.complete)),u.presence!=R.Query.presence.PROHIBITED){if(i[F].upsert(v,u.boost,function(e,t){return e+t}),!n[k]){for(var b=0;b<Q.length;b++){var E,P=Q[b],L=new R.FieldRef(P,F),T=w[P];void 0===(E=r[L])?r[L]=new R.MatchData(g,F,T):E.add(g,F,T)}n[k]=!0}}else void 0===o[F]&&(o[F]=R.Set.empty),o[F]=o[F].union(S)}}}if(u.presence===R.Query.presence.REQUIRED)for(y=0;y<u.fields.length;y++){s[F=u.fields[y]]=s[F].intersect(c)}}var O=R.Set.complete,I=R.Set.empty;for(a=0;a<this.fields.length;a++){var F;s[F=this.fields[a]]&&(O=O.intersect(s[F])),o[F]&&(I=I.union(o[F]))}var j=Object.keys(r),_=[],C=Object.create(null);if(t.isNegated()){j=Object.keys(this.fieldVectors);for(a=0;a<j.length;a++){L=j[a];var N=R.FieldRef.fromString(L);r[L]=new R.MatchData}}for(a=0;a<j.length;a++){var D=(N=R.FieldRef.fromString(j[a])).docRef;if(O.contains(D)&&!I.contains(D)){var A,B=this.fieldVectors[N],z=i[N.fieldName].similarity(B);if(void 0!==(A=C[D]))A.score+=z,A.matchData.combine(r[N]);else{var V={ref:D,score:z,matchData:r[N]};C[D]=V,_.push(V)}}}return _.sort(function(e,t){return t.score-e.score})},R.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map(function(e){return[e,this.invertedIndex[e]]},this),t=Object.keys(this.fieldVectors).map(function(e){return[e,this.fieldVectors[e].toJSON()]},this);return{version:R.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},R.Index.load=function(e){var t={},r={},i=e.fieldVectors,n=Object.create(null),s=e.invertedIndex,o=new R.TokenSet.Builder,a=R.Pipeline.load(e.pipeline);e.version!=R.version&&R.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+R.version+"' does not match serialized index '"+e.version+"'");for(var u=0;u<i.length;u++){var l=(h=i[u])[0],c=h[1];r[l]=new R.Vector(c)}for(u=0;u<s.length;u++){var h,d=(h=s[u])[0],f=h[1];o.insert(d),n[d]=f}return o.finish(),t.fields=e.fields,t.fieldVectors=r,t.invertedIndex=n,t.tokenSet=o.root,t.pipeline=a,new R.Index(t)},
* lunr.Index
* Copyright (C) 2019 Oliver Nightingale
*/,R.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},R.Index.prototype.search=function(e){return this.query(function(t){new R.QueryParser(e,t).parse()})},R.Index.prototype.query=function(e){for(var t=new R.Query(this.fields),r=Object.create(null),i=Object.create(null),n=Object.create(null),s=Object.create(null),o=Object.create(null),a=0;a<this.fields.length;a++)i[this.fields[a]]=new R.Vector;e.call(t,t);for(a=0;a<t.clauses.length;a++){var u=t.clauses[a],l=null,c=R.Set.complete;l=u.usePipeline?this.pipeline.runString(u.term,{fields:u.fields}):[u.term];for(var h=0;h<l.length;h++){var d=l[h];u.term=d;var f=R.TokenSet.fromClause(u),p=this.tokenSet.intersect(f).toArray();if(0===p.length&&u.presence===R.Query.presence.REQUIRED){for(var y=0;y<u.fields.length;y++){s[F=u.fields[y]]=R.Set.empty}break}for(var m=0;m<p.length;m++){var g=p[m],x=this.invertedIndex[g],v=x._index;for(y=0;y<u.fields.length;y++){var w=x[F=u.fields[y]],Q=Object.keys(w),k=g+"/"+F,S=new R.Set(Q);if(u.presence==R.Query.presence.REQUIRED&&(c=c.union(S),void 0===s[F]&&(s[F]=R.Set.complete)),u.presence!=R.Query.presence.PROHIBITED){if(i[F].upsert(v,u.boost,function(e,t){return e+t}),!n[k]){for(var b=0;b<Q.length;b++){var E,P=Q[b],L=new R.FieldRef(P,F),T=w[P];void 0===(E=r[L])?r[L]=new R.MatchData(g,F,T):E.add(g,F,T)}n[k]=!0}}else void 0===o[F]&&(o[F]=R.Set.empty),o[F]=o[F].union(S)}}}if(u.presence===R.Query.presence.REQUIRED)for(y=0;y<u.fields.length;y++){s[F=u.fields[y]]=s[F].intersect(c)}}var O=R.Set.complete,I=R.Set.empty;for(a=0;a<this.fields.length;a++){var F;s[F=this.fields[a]]&&(O=O.intersect(s[F])),o[F]&&(I=I.union(o[F]))}var j=Object.keys(r),_=[],C=Object.create(null);if(t.isNegated()){j=Object.keys(this.fieldVectors);for(a=0;a<j.length;a++){L=j[a];var N=R.FieldRef.fromString(L);r[L]=new R.MatchData}}for(a=0;a<j.length;a++){var D=(N=R.FieldRef.fromString(j[a])).docRef;if(O.contains(D)&&!I.contains(D)){var A,B=this.fieldVectors[N],z=i[N.fieldName].similarity(B);if(void 0!==(A=C[D]))A.score+=z,A.matchData.combine(r[N]);else{var V={ref:D,score:z,matchData:r[N]};C[D]=V,_.push(V)}}}return _.sort(function(e,t){return t.score-e.score})},R.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map(function(e){return[e,this.invertedIndex[e]]},this),t=Object.keys(this.fieldVectors).map(function(e){return[e,this.fieldVectors[e].toJSON()]},this);return{version:R.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},R.Index.load=function(e){var t={},r={},i=e.fieldVectors,n=Object.create(null),s=e.invertedIndex,o=new R.TokenSet.Builder,a=R.Pipeline.load(e.pipeline);e.version!=R.version&&R.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+R.version+"' does not match serialized index '"+e.version+"'");for(var u=0;u<i.length;u++){var l=(h=i[u])[0],c=h[1];r[l]=new R.Vector(c)}for(u=0;u<s.length;u++){var h,d=(h=s[u])[0],f=h[1];o.insert(d),n[d]=f}return o.finish(),t.fields=e.fields,t.fieldVectors=r,t.invertedIndex=n,t.tokenSet=o.root,t.pipeline=a,new R.Index(t)}
/*!
* lunr.Builder
* Copyright (C) 2019 Oliver Nightingale
*/
R.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=R.tokenizer,this.pipeline=new R.Pipeline,this.searchPipeline=new R.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},R.Builder.prototype.ref=function(e){this._ref=e},R.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},R.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},R.Builder.prototype.k1=function(e){this._k1=e},R.Builder.prototype.add=function(e,t){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=t||{},this.documentCount+=1;for(var n=0;n<i.length;n++){var s=i[n],o=this._fields[s].extractor,a=o?o(e):e[s],u=this.tokenizer(a,{fields:[s]}),l=this.pipeline.run(u),c=new R.FieldRef(r,s),h=Object.create(null);this.fieldTermFrequencies[c]=h,this.fieldLengths[c]=0,this.fieldLengths[c]+=l.length;for(var d=0;d<l.length;d++){var f=l[d];if(null==h[f]&&(h[f]=0),h[f]+=1,null==this.invertedIndex[f]){var p=Object.create(null);p._index=this.termIndex,this.termIndex+=1;for(var y=0;y<i.length;y++)p[i[y]]=Object.create(null);this.invertedIndex[f]=p}null==this.invertedIndex[f][s][r]&&(this.invertedIndex[f][s][r]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var g=this.metadataWhitelist[m],x=f.metadata[g];null==this.invertedIndex[f][s][r][g]&&(this.invertedIndex[f][s][r][g]=[]),this.invertedIndex[f][s][r][g].push(x)}}}},R.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,r={},i={},n=0;n<t;n++){var s=R.FieldRef.fromString(e[n]),o=s.fieldName;i[o]||(i[o]=0),i[o]+=1,r[o]||(r[o]=0),r[o]+=this.fieldLengths[s]}var a=Object.keys(this._fields);for(n=0;n<a.length;n++){var u=a[n];r[u]=r[u]/i[u]}this.averageFieldLength=r},R.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),r=t.length,i=Object.create(null),n=0;n<r;n++){for(var s=R.FieldRef.fromString(t[n]),o=s.fieldName,a=this.fieldLengths[s],u=new R.Vector,l=this.fieldTermFrequencies[s],c=Object.keys(l),h=c.length,d=this._fields[o].boost||1,f=this._documents[s.docRef].boost||1,p=0;p<h;p++){var y,m,g,x=c[p],v=l[x],w=this.invertedIndex[x]._index;void 0===i[x]?(y=R.idf(this.invertedIndex[x],this.documentCount),i[x]=y):y=i[x],m=y*((this._k1+1)*v)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[o]))+v),m*=d,m*=f,g=Math.round(1e3*m)/1e3,u.insert(w,g)}e[s]=u}this.fieldVectors=e},R.Builder.prototype.createTokenSet=function(){this.tokenSet=R.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},R.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new R.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},R.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},R.MatchData=function(e,t,r){for(var i=Object.create(null),n=Object.keys(r||{}),s=0;s<n.length;s++){var o=n[s];i[o]=r[o].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=i)},R.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),r=0;r<t.length;r++){var i=t[r],n=Object.keys(e.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var s=0;s<n.length;s++){var o=n[s],a=Object.keys(e.metadata[i][o]);null==this.metadata[i][o]&&(this.metadata[i][o]=Object.create(null));for(var u=0;u<a.length;u++){var l=a[u];null==this.metadata[i][o][l]?this.metadata[i][o][l]=e.metadata[i][o][l]:this.metadata[i][o][l]=this.metadata[i][o][l].concat(e.metadata[i][o][l])}}}},R.MatchData.prototype.add=function(e,t,r){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=r);if(t in this.metadata[e])for(var i=Object.keys(r),n=0;n<i.length;n++){var s=i[n];s in this.metadata[e][t]?this.metadata[e][t][s]=this.metadata[e][t][s].concat(r[s]):this.metadata[e][t][s]=r[s]}else this.metadata[e][t]=r},R.Query=function(e){this.clauses=[],this.allFields=e},R.Query.wildcard=new String("*"),R.Query.wildcard.NONE=0,R.Query.wildcard.LEADING=1,R.Query.wildcard.TRAILING=2,R.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},R.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=R.Query.wildcard.NONE),e.wildcard&R.Query.wildcard.LEADING&&e.term.charAt(0)!=R.Query.wildcard&&(e.term="*"+e.term),e.wildcard&R.Query.wildcard.TRAILING&&e.term.slice(-1)!=R.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=R.Query.presence.OPTIONAL),this.clauses.push(e),this},R.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=R.Query.presence.PROHIBITED)return!1;return!0},R.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach(function(e){this.term(e,R.utils.clone(t))},this),this;var r=t||{};return r.term=e.toString(),this.clause(r),this},R.QueryParseError=function(e,t,r){this.name="QueryParseError",this.message=e,this.start=t,this.end=r},R.QueryParseError.prototype=new Error,R.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},R.QueryLexer.prototype.run=function(){for(var e=R.QueryLexer.lexText;e;)e=e(this)},R.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,r=this.pos,i=0;i<this.escapeCharPositions.length;i++)r=this.escapeCharPositions[i],e.push(this.str.slice(t,r)),t=r+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},R.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},R.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},R.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return R.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},R.QueryLexer.prototype.width=function(){return this.pos-this.start},R.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},R.QueryLexer.prototype.backup=function(){this.pos-=1},R.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=R.QueryLexer.EOS&&this.backup()},R.QueryLexer.prototype.more=function(){return this.pos<this.length},R.QueryLexer.EOS="EOS",R.QueryLexer.FIELD="FIELD",R.QueryLexer.TERM="TERM",R.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",R.QueryLexer.BOOST="BOOST",R.QueryLexer.PRESENCE="PRESENCE",R.QueryLexer.lexField=function(e){return e.backup(),e.emit(R.QueryLexer.FIELD),e.ignore(),R.QueryLexer.lexText},R.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(R.QueryLexer.TERM)),e.ignore(),e.more())return R.QueryLexer.lexText},R.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(R.QueryLexer.EDIT_DISTANCE),R.QueryLexer.lexText},R.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(R.QueryLexer.BOOST),R.QueryLexer.lexText},R.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(R.QueryLexer.TERM)},R.QueryLexer.termSeparator=R.tokenizer.separator,R.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==R.QueryLexer.EOS)return R.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return R.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(R.QueryLexer.TERM),R.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(R.QueryLexer.TERM),R.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(R.QueryLexer.PRESENCE),R.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(R.QueryLexer.PRESENCE),R.QueryLexer.lexText;if(t.match(R.QueryLexer.termSeparator))return R.QueryLexer.lexTerm}else e.escapeCharacter()}},R.QueryParser=function(e,t){this.lexer=new R.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},R.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=R.QueryParser.parseClause;e;)e=e(this);return this.query},R.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},R.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},R.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},R.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case R.QueryLexer.PRESENCE:return R.QueryParser.parsePresence;case R.QueryLexer.FIELD:return R.QueryParser.parseField;case R.QueryLexer.TERM:return R.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(r+=" with value '"+t.str+"'"),new R.QueryParseError(r,t.start,t.end)}},R.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=R.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=R.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+t.str+"'";throw new R.QueryParseError(r,t.start,t.end)}var i=e.peekLexeme();if(null==i){r="expecting term or field, found nothing";throw new R.QueryParseError(r,t.start,t.end)}switch(i.type){case R.QueryLexer.FIELD:return R.QueryParser.parseField;case R.QueryLexer.TERM:return R.QueryParser.parseTerm;default:r="expecting term or field, found '"+i.type+"'";throw new R.QueryParseError(r,i.start,i.end)}}},R.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var r=e.query.allFields.map(function(e){return"'"+e+"'"}).join(", "),i="unrecognised field '"+t.str+"', possible fields: "+r;throw new R.QueryParseError(i,t.start,t.end)}e.currentClause.fields=[t.str];var n=e.peekLexeme();if(null==n){i="expecting term, found nothing";throw new R.QueryParseError(i,t.start,t.end)}switch(n.type){case R.QueryLexer.TERM:return R.QueryParser.parseTerm;default:i="expecting term, found '"+n.type+"'";throw new R.QueryParseError(i,n.start,n.end)}}},R.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(null!=r)switch(r.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new R.QueryParseError(i,r.start,r.end)}else e.nextClause()}},R.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new R.QueryParseError(i,t.start,t.end)}e.currentClause.editDistance=r;var n=e.peekLexeme();if(null!=n)switch(n.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:i="Unexpected lexeme type '"+n.type+"'";throw new R.QueryParseError(i,n.start,n.end)}else e.nextClause()}},R.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var i="boost must be numeric";throw new R.QueryParseError(i,t.start,t.end)}e.currentClause.boost=r;var n=e.peekLexeme();if(null!=n)switch(n.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:i="Unexpected lexeme type '"+n.type+"'";throw new R.QueryParseError(i,n.start,n.end)}else e.nextClause()}},void 0===(n="function"==typeof(i=function(){return R})?i.call(t,r,t,e):i)||(e.exports=n)}()},function(e,t,r){"use strict";r.r(t);var i=r(0),n=r.n(i);!async function(){let e,t,r;n.a.tokenizer.seperator=/[\s\-\.]+/;const i=async i=>{[t,r]=await Promise.all([fetch(`${i}/search-stopwords.json`).then(e=>e.json()),fetch(`${i}/index.json`).then(e=>e.json())]),t&&r&&(e=n()(function(){this.pipeline.remove(n.a.stopWordFilter),this.ref("href"),this.field("title",{boost:50}),this.field("keywords",{boost:20});for(let e in r)r.hasOwnProperty(e)&&this.add(r[e]);const e=n.a.generateStopWordFilter(t);n.a.Pipeline.registerFunction(e,"docfxStopWordFilter"),this.pipeline.add(e),this.searchPipeline.add(e)})),postMessage({e:"index-ready"})};onmessage=(t=>{const{event:n}=t.data;switch(n){case"init":const{settings:s}=t.data;i(s.baseUrl);break;case"search":const{q:o}=t.data,a=e.search(o),u=[];a.forEach(e=>{const t=r[e.ref];u.push({href:t.href,title:t.title,keywords:t.keywords})}),postMessage({e:"query-ready",q:o,d:u})}})}()}]);
* lunr.Builder
* Copyright (C) 2019 Oliver Nightingale
*/,R.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=R.tokenizer,this.pipeline=new R.Pipeline,this.searchPipeline=new R.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},R.Builder.prototype.ref=function(e){this._ref=e},R.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},R.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},R.Builder.prototype.k1=function(e){this._k1=e},R.Builder.prototype.add=function(e,t){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=t||{},this.documentCount+=1;for(var n=0;n<i.length;n++){var s=i[n],o=this._fields[s].extractor,a=o?o(e):e[s],u=this.tokenizer(a,{fields:[s]}),l=this.pipeline.run(u),c=new R.FieldRef(r,s),h=Object.create(null);this.fieldTermFrequencies[c]=h,this.fieldLengths[c]=0,this.fieldLengths[c]+=l.length;for(var d=0;d<l.length;d++){var f=l[d];if(null==h[f]&&(h[f]=0),h[f]+=1,null==this.invertedIndex[f]){var p=Object.create(null);p._index=this.termIndex,this.termIndex+=1;for(var y=0;y<i.length;y++)p[i[y]]=Object.create(null);this.invertedIndex[f]=p}null==this.invertedIndex[f][s][r]&&(this.invertedIndex[f][s][r]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var g=this.metadataWhitelist[m],x=f.metadata[g];null==this.invertedIndex[f][s][r][g]&&(this.invertedIndex[f][s][r][g]=[]),this.invertedIndex[f][s][r][g].push(x)}}}},R.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,r={},i={},n=0;n<t;n++){var s=R.FieldRef.fromString(e[n]),o=s.fieldName;i[o]||(i[o]=0),i[o]+=1,r[o]||(r[o]=0),r[o]+=this.fieldLengths[s]}var a=Object.keys(this._fields);for(n=0;n<a.length;n++){var u=a[n];r[u]=r[u]/i[u]}this.averageFieldLength=r},R.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),r=t.length,i=Object.create(null),n=0;n<r;n++){for(var s=R.FieldRef.fromString(t[n]),o=s.fieldName,a=this.fieldLengths[s],u=new R.Vector,l=this.fieldTermFrequencies[s],c=Object.keys(l),h=c.length,d=this._fields[o].boost||1,f=this._documents[s.docRef].boost||1,p=0;p<h;p++){var y,m,g,x=c[p],v=l[x],w=this.invertedIndex[x]._index;void 0===i[x]?(y=R.idf(this.invertedIndex[x],this.documentCount),i[x]=y):y=i[x],m=y*((this._k1+1)*v)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[o]))+v),m*=d,m*=f,g=Math.round(1e3*m)/1e3,u.insert(w,g)}e[s]=u}this.fieldVectors=e},R.Builder.prototype.createTokenSet=function(){this.tokenSet=R.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},R.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new R.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},R.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},R.MatchData=function(e,t,r){for(var i=Object.create(null),n=Object.keys(r||{}),s=0;s<n.length;s++){var o=n[s];i[o]=r[o].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=i)},R.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),r=0;r<t.length;r++){var i=t[r],n=Object.keys(e.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var s=0;s<n.length;s++){var o=n[s],a=Object.keys(e.metadata[i][o]);null==this.metadata[i][o]&&(this.metadata[i][o]=Object.create(null));for(var u=0;u<a.length;u++){var l=a[u];null==this.metadata[i][o][l]?this.metadata[i][o][l]=e.metadata[i][o][l]:this.metadata[i][o][l]=this.metadata[i][o][l].concat(e.metadata[i][o][l])}}}},R.MatchData.prototype.add=function(e,t,r){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=r);if(t in this.metadata[e])for(var i=Object.keys(r),n=0;n<i.length;n++){var s=i[n];s in this.metadata[e][t]?this.metadata[e][t][s]=this.metadata[e][t][s].concat(r[s]):this.metadata[e][t][s]=r[s]}else this.metadata[e][t]=r},R.Query=function(e){this.clauses=[],this.allFields=e},R.Query.wildcard=new String("*"),R.Query.wildcard.NONE=0,R.Query.wildcard.LEADING=1,R.Query.wildcard.TRAILING=2,R.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},R.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=R.Query.wildcard.NONE),e.wildcard&R.Query.wildcard.LEADING&&e.term.charAt(0)!=R.Query.wildcard&&(e.term="*"+e.term),e.wildcard&R.Query.wildcard.TRAILING&&e.term.slice(-1)!=R.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=R.Query.presence.OPTIONAL),this.clauses.push(e),this},R.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=R.Query.presence.PROHIBITED)return!1;return!0},R.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach(function(e){this.term(e,R.utils.clone(t))},this),this;var r=t||{};return r.term=e.toString(),this.clause(r),this},R.QueryParseError=function(e,t,r){this.name="QueryParseError",this.message=e,this.start=t,this.end=r},R.QueryParseError.prototype=new Error,R.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},R.QueryLexer.prototype.run=function(){for(var e=R.QueryLexer.lexText;e;)e=e(this)},R.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,r=this.pos,i=0;i<this.escapeCharPositions.length;i++)r=this.escapeCharPositions[i],e.push(this.str.slice(t,r)),t=r+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},R.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},R.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},R.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return R.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},R.QueryLexer.prototype.width=function(){return this.pos-this.start},R.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},R.QueryLexer.prototype.backup=function(){this.pos-=1},R.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=R.QueryLexer.EOS&&this.backup()},R.QueryLexer.prototype.more=function(){return this.pos<this.length},R.QueryLexer.EOS="EOS",R.QueryLexer.FIELD="FIELD",R.QueryLexer.TERM="TERM",R.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",R.QueryLexer.BOOST="BOOST",R.QueryLexer.PRESENCE="PRESENCE",R.QueryLexer.lexField=function(e){return e.backup(),e.emit(R.QueryLexer.FIELD),e.ignore(),R.QueryLexer.lexText},R.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(R.QueryLexer.TERM)),e.ignore(),e.more())return R.QueryLexer.lexText},R.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(R.QueryLexer.EDIT_DISTANCE),R.QueryLexer.lexText},R.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(R.QueryLexer.BOOST),R.QueryLexer.lexText},R.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(R.QueryLexer.TERM)},R.QueryLexer.termSeparator=R.tokenizer.separator,R.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==R.QueryLexer.EOS)return R.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return R.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(R.QueryLexer.TERM),R.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(R.QueryLexer.TERM),R.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(R.QueryLexer.PRESENCE),R.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(R.QueryLexer.PRESENCE),R.QueryLexer.lexText;if(t.match(R.QueryLexer.termSeparator))return R.QueryLexer.lexTerm}else e.escapeCharacter()}},R.QueryParser=function(e,t){this.lexer=new R.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},R.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=R.QueryParser.parseClause;e;)e=e(this);return this.query},R.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},R.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},R.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},R.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case R.QueryLexer.PRESENCE:return R.QueryParser.parsePresence;case R.QueryLexer.FIELD:return R.QueryParser.parseField;case R.QueryLexer.TERM:return R.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(r+=" with value '"+t.str+"'"),new R.QueryParseError(r,t.start,t.end)}},R.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=R.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=R.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+t.str+"'";throw new R.QueryParseError(r,t.start,t.end)}var i=e.peekLexeme();if(null==i){r="expecting term or field, found nothing";throw new R.QueryParseError(r,t.start,t.end)}switch(i.type){case R.QueryLexer.FIELD:return R.QueryParser.parseField;case R.QueryLexer.TERM:return R.QueryParser.parseTerm;default:r="expecting term or field, found '"+i.type+"'";throw new R.QueryParseError(r,i.start,i.end)}}},R.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var r=e.query.allFields.map(function(e){return"'"+e+"'"}).join(", "),i="unrecognised field '"+t.str+"', possible fields: "+r;throw new R.QueryParseError(i,t.start,t.end)}e.currentClause.fields=[t.str];var n=e.peekLexeme();if(null==n){i="expecting term, found nothing";throw new R.QueryParseError(i,t.start,t.end)}switch(n.type){case R.QueryLexer.TERM:return R.QueryParser.parseTerm;default:i="expecting term, found '"+n.type+"'";throw new R.QueryParseError(i,n.start,n.end)}}},R.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(null!=r)switch(r.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new R.QueryParseError(i,r.start,r.end)}else e.nextClause()}},R.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new R.QueryParseError(i,t.start,t.end)}e.currentClause.editDistance=r;var n=e.peekLexeme();if(null!=n)switch(n.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:i="Unexpected lexeme type '"+n.type+"'";throw new R.QueryParseError(i,n.start,n.end)}else e.nextClause()}},R.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var i="boost must be numeric";throw new R.QueryParseError(i,t.start,t.end)}e.currentClause.boost=r;var n=e.peekLexeme();if(null!=n)switch(n.type){case R.QueryLexer.TERM:return e.nextClause(),R.QueryParser.parseTerm;case R.QueryLexer.FIELD:return e.nextClause(),R.QueryParser.parseField;case R.QueryLexer.EDIT_DISTANCE:return R.QueryParser.parseEditDistance;case R.QueryLexer.BOOST:return R.QueryParser.parseBoost;case R.QueryLexer.PRESENCE:return e.nextClause(),R.QueryParser.parsePresence;default:i="Unexpected lexeme type '"+n.type+"'";throw new R.QueryParseError(i,n.start,n.end)}else e.nextClause()}},void 0===(n="function"==typeof(i=function(){return R})?i.call(t,r,t,e):i)||(e.exports=n)}()},22:function(e,t,r){"use strict";r.r(t);var i=r(0),n=r.n(i);!async function(){let e,t,r;n.a.tokenizer.seperator=/[\s\-\.]+/;const i=async i=>{[t,r]=await Promise.all([fetch(`${i}/search-stopwords.json`).then(e=>e.json()),fetch(`${i}/index.json`).then(e=>e.json())]),t&&r&&(e=n()(function(){this.pipeline.remove(n.a.stopWordFilter),this.ref("href"),this.field("title",{boost:50}),this.field("keywords",{boost:20});for(let e in r)r.hasOwnProperty(e)&&this.add(r[e]);const e=n.a.generateStopWordFilter(t);n.a.Pipeline.registerFunction(e,"docfxStopWordFilter"),this.pipeline.add(e),this.searchPipeline.add(e)})),postMessage({e:"index-ready"})};onmessage=(t=>{const{event:n}=t.data;switch(n){case"init":const{settings:s}=t.data;i(s.baseUrl);break;case"search":const{external:o,q:a}=t.data,u=e.search(a),l=[];u.forEach(e=>{const t=r[e.ref];l.push({href:t.href,title:t.title,keywords:t.keywords})}),postMessage({e:"query-ready",q:a,external:o,d:l})}})}()}});

@@ -1,1 +0,1 @@

!function(e){var t={};function n(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(o,s,function(t){return e[t]}.bind(null,s));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}({20:function(e,t,n){n(21);const o=n(22),s=n(23),a=n(24),c=n(25),d=n(27),i=document.querySelector(".sideaffix");i&&i.parentNode.removeChild(i),(()=>{const{baseUrl:e,metrics:t,pageId:n}=window.pluginConfig.statuspage;o(e);const i=()=>{window.StatusPage&&window.statusPageSummary?(()=>{const o=new StatusPage.page({page:n});s(),a(o),c(e,t),d(o)})():window.setTimeout(i,100)};i()})()},21:function(e,t,n){},22:function(e,t){e.exports=(e=>{const t=()=>{const n=document.getElementById("toc");if(!n)return void window.setTimeout(t,100);n.innerHTML="";const o=document.createElement("ul");o.classList.add("nav"),o.classList.add("level1"),n.appendChild(o);const s=document.createElement("li");o.appendChild(s);const a=document.createElement("a");a.id="subscribe-toggle",a.textContent="Subscribe to updates",a.setAttribute("href","#"),s.appendChild(a);const c=document.createElement("li");o.appendChild(c);const d=document.createElement("a");d.textContent="RSS Feed",d.setAttribute("href",`${e}/history.rss`),d.setAttribute("target","_blank"),c.appendChild(d)};t()})},23:function(e,t){e.exports=(()=>{const e=window.statusPageSummary;document.getElementById("page-status").textContent=e.status.description,document.getElementById("page-status").classList.add(e.status.indicator),e.components.forEach(e=>{const t=document.createElement("div");t.classList.add("component"),t.classList.add(e.status);const n=document.createElement("div");n.classList.add("component-title"),t.appendChild(n),n.appendChild(document.createTextNode(e.name));const o=document.createElement("div");o.classList.add("component-description"),o.textContent=e.description,n.appendChild(o);const s=document.createElement("div");s.classList.add("component-status"),s.textContent=(e=>e.charAt(0).toUpperCase()+e.slice(1))(e.status),t.appendChild(s),document.getElementById("components").appendChild(t)})})},24:function(e,t){e.exports=(e=>{e.incidents({success:e=>{e.incidents.forEach(e=>{const t=new Date(e.started_at).toLocaleString(),n=document.createElement("div");n.classList.add("incident");const o=document.createElement("h4");o.classList.add(e.impact),o.textContent=`${t} - ${e.name}`,n.appendChild(o),e.incident_updates.forEach(e=>{const t=new Date(e.created_at).toLocaleString(),o=document.createElement("div");o.classList.add("update");const s=document.createElement("strong");s.classList.add("update-title"),s.textContent=(e=>e.charAt(0).toUpperCase()+e.slice(1))(e.status),o.appendChild(s);const a=document.createElement("div");a.textContent=e.body;const c=document.createElement("div");c.classList.add("timestamp"),c.textContent=`Posted at: ${t}`,a.appendChild(c),o.appendChild(a),n.appendChild(o)}),document.getElementById("incidents").appendChild(n)})}})})},25:function(e,t,n){const o=n(26);e.exports=((e,t)=>{let n="day";const s=s=>{t.forEach(t=>{fetch(`${e}/metrics-display/${t}/${s}.json`).then(e=>e.json()).then(e=>{o(e,t,n=s)})})};s(n);const a=document.querySelectorAll(".timescales button");["day","week","month"].forEach(e=>{const t=document.getElementById(`chart-timescale-${e}`);t.addEventListener("click",()=>{[].forEach.call(a,e=>e.classList.remove("isActive")),t.classList.add("isActive"),s(e)})})})},26:function(e,t){const n={},o={},s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],a=document.getElementById("charts");e.exports=((e,t,c)=>{o[t]=e.metrics[0].data;const d=e.metrics[0].data.map(e=>e.timestamp),i=e.metrics[0].data.map(e=>e.value);if(n[t])return n[t].data.labels=d,n[t].data.datasets[0].data=i,void n[t].update();const r=document.createElement("div");r.classList.add("chart"),a.appendChild(r);const l=document.createElement("h3");l.textContent=e.metrics[0].metric.name,r.appendChild(l);const u=document.createElement("h3");u.classList.add("mean");const m=Math.round(e.metrics[0].summary.mean)+"ms";u.textContent=m,r.appendChild(u);const p=document.createElement("canvas");p.setAttribute("width",750),p.setAttribute("height",150),r.appendChild(p);const f=p.getContext("2d");n[t]=new Chart(f,{type:"line",data:{labels:d,datasets:[{data:i,borderWidth:2,borderColor:"#42b5c5",fill:!1,pointRadius:0,pointBackgroundColor:"#42b5c5",pointBorderColor:"#fff",pointBorderWidth:2,lineTension:.1}]},options:{legend:{display:!1},scales:{xAxes:[{gridLines:{display:!1},ticks:{fontColor:"#aaa",callback:(e,t)=>{let n=10;return"day"===c&&(n=5),t%n==0?e:""}},beforeTickToLabelConversion:e=>(e.ticks=e.ticks.map(e=>{const t=new Date(1e3*e);return"day"===c?t.toLocaleTimeString().slice(0,5):t.getDay()+" "+s[t.getMonth()]}),e)}],yAxes:[{beginAtZero:!1,gridLines:{drawBorder:!1},ticks:{fontColor:"#aaa"}}]},tooltips:{mode:"index",intersect:!1,callbacks:{title:e=>{const n=e[0].index,a=new Date(1e3*o[t][n].timestamp);return a.getDay()+" "+s[a.getMonth()]+" "+a.getFullYear()+" "+a.toLocaleTimeString().slice(0,5)},label:e=>e.value+"ms"}},hover:{mode:"index",intersect:!1}}})})},27:function(e,t){let n=!1;const o=document.getElementById("subscribe-modal"),s=()=>{o.style.display="none",n=!1};e.exports=(e=>{document.getElementById("subscribe-toggle").addEventListener("click",e=>{e.preventDefault(),o.style.display=n?"none":"block",n=!n}),document.getElementById("subscribe-modal-close").addEventListener("click",s);const t=document.getElementById("email-input"),a=document.getElementById("subscribe-status");document.getElementById("btn-subscribe").addEventListener("click",()=>{e.subscribe({subscriber:{email:t.value},success:e=>{if(e.errors)return a.classList.add("danger"),void(a.textContent=e.errors.join("\n"));a.textContent="Success! Check your inbox for a confirmation email."}})})})}});
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var s=t[o]={i:o,l:!1,exports:{}};return e[o].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(o,s,function(t){return e[t]}.bind(null,s));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=23)}({23:function(e,t,n){n(24);const o=n(25),s=n(26),a=n(27),c=n(28),d=n(30),i=document.querySelector(".sideaffix");i&&i.parentNode.removeChild(i),(()=>{const{baseUrl:e,metrics:t,pageId:n}=window.pluginConfig.statuspage;o(e);const i=()=>{window.StatusPage&&window.statusPageSummary?(()=>{const o=new StatusPage.page({page:n});s(),a(o),c(e,t),d(o)})():window.setTimeout(i,100)};i()})()},24:function(e,t,n){},25:function(e,t){e.exports=(e=>{const t=()=>{const n=document.getElementById("toc");if(!n)return void window.setTimeout(t,100);n.innerHTML="";const o=document.createElement("ul");o.classList.add("nav"),o.classList.add("level1"),n.appendChild(o);const s=document.createElement("li");o.appendChild(s);const a=document.createElement("a");a.id="subscribe-toggle",a.textContent="Subscribe to updates",a.setAttribute("href","#"),s.appendChild(a);const c=document.createElement("li");o.appendChild(c);const d=document.createElement("a");d.textContent="RSS Feed",d.setAttribute("href",`${e}/history.rss`),d.setAttribute("target","_blank"),c.appendChild(d)};t()})},26:function(e,t){e.exports=(()=>{const e=window.statusPageSummary;document.getElementById("page-status").textContent=e.status.description,document.getElementById("page-status").classList.add(e.status.indicator),e.components.forEach(e=>{const t=document.createElement("div");t.classList.add("component"),t.classList.add(e.status);const n=document.createElement("div");n.classList.add("component-title"),t.appendChild(n),n.appendChild(document.createTextNode(e.name));const o=document.createElement("div");o.classList.add("component-description"),o.textContent=e.description,n.appendChild(o);const s=document.createElement("div");s.classList.add("component-status"),s.textContent=(e=>e.charAt(0).toUpperCase()+e.slice(1))(e.status),t.appendChild(s),document.getElementById("components").appendChild(t)})})},27:function(e,t){e.exports=(e=>{e.incidents({success:e=>{e.incidents.forEach(e=>{const t=new Date(e.started_at).toLocaleString(),n=document.createElement("div");n.classList.add("incident");const o=document.createElement("h4");o.classList.add(e.impact),o.textContent=`${t} - ${e.name}`,n.appendChild(o),e.incident_updates.forEach(e=>{const t=new Date(e.created_at).toLocaleString(),o=document.createElement("div");o.classList.add("update");const s=document.createElement("strong");s.classList.add("update-title"),s.textContent=(e=>e.charAt(0).toUpperCase()+e.slice(1))(e.status),o.appendChild(s);const a=document.createElement("div");a.textContent=e.body;const c=document.createElement("div");c.classList.add("timestamp"),c.textContent=`Posted at: ${t}`,a.appendChild(c),o.appendChild(a),n.appendChild(o)}),document.getElementById("incidents").appendChild(n)})}})})},28:function(e,t,n){const o=n(29);e.exports=((e,t)=>{let n="day";const s=s=>{t.forEach(t=>{fetch(`${e}/metrics-display/${t}/${s}.json`).then(e=>e.json()).then(e=>{o(e,t,n=s)})})};s(n);const a=document.querySelectorAll(".timescales button");["day","week","month"].forEach(e=>{const t=document.getElementById(`chart-timescale-${e}`);t.addEventListener("click",()=>{[].forEach.call(a,e=>e.classList.remove("isActive")),t.classList.add("isActive"),s(e)})})})},29:function(e,t){const n={},o={},s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],a=document.getElementById("charts");e.exports=((e,t,c)=>{o[t]=e.metrics[0].data;const d=e.metrics[0].data.map(e=>e.timestamp),i=e.metrics[0].data.map(e=>e.value);if(n[t])return n[t].data.labels=d,n[t].data.datasets[0].data=i,void n[t].update();const r=document.createElement("div");r.classList.add("chart"),a.appendChild(r);const l=document.createElement("h3");l.textContent=e.metrics[0].metric.name,r.appendChild(l);const u=document.createElement("h3");u.classList.add("mean");const m=Math.round(e.metrics[0].summary.mean)+"ms";u.textContent=m,r.appendChild(u);const p=document.createElement("canvas");p.setAttribute("width",750),p.setAttribute("height",150),r.appendChild(p);const f=p.getContext("2d");n[t]=new Chart(f,{type:"line",data:{labels:d,datasets:[{data:i,borderWidth:2,borderColor:"#42b5c5",fill:!1,pointRadius:0,pointBackgroundColor:"#42b5c5",pointBorderColor:"#fff",pointBorderWidth:2,lineTension:.1}]},options:{legend:{display:!1},scales:{xAxes:[{gridLines:{display:!1},ticks:{fontColor:"#aaa",callback:(e,t)=>{let n=10;return"day"===c&&(n=5),t%n==0?e:""}},beforeTickToLabelConversion:e=>(e.ticks=e.ticks.map(e=>{const t=new Date(1e3*e);return"day"===c?t.toLocaleTimeString().slice(0,5):t.getDay()+" "+s[t.getMonth()]}),e)}],yAxes:[{beginAtZero:!1,gridLines:{drawBorder:!1},ticks:{fontColor:"#aaa"}}]},tooltips:{mode:"index",intersect:!1,callbacks:{title:e=>{const n=e[0].index,a=new Date(1e3*o[t][n].timestamp);return a.getDay()+" "+s[a.getMonth()]+" "+a.getFullYear()+" "+a.toLocaleTimeString().slice(0,5)},label:e=>e.value+"ms"}},hover:{mode:"index",intersect:!1}}})})},30:function(e,t){let n=!1;const o=document.getElementById("subscribe-modal"),s=()=>{o.style.display="none",n=!1};e.exports=(e=>{document.getElementById("subscribe-toggle").addEventListener("click",e=>{e.preventDefault(),o.style.display=n?"none":"block",n=!n}),document.getElementById("subscribe-modal-close").addEventListener("click",s);const t=document.getElementById("email-input"),a=document.getElementById("subscribe-status");document.getElementById("btn-subscribe").addEventListener("click",()=>{e.subscribe({subscriber:{email:t.value},success:e=>{if(e.errors)return a.classList.add("danger"),void(a.textContent=e.errors.join("\n"));a.textContent="Success! Check your inbox for a confirmation email."}})})})}});
{
"name": "@alchemydocs/template",
"version": "1.0.2",
"version": "1.0.3",
"description": "Default template for Alchemy",

@@ -29,5 +29,5 @@ "author": "Poq Commerce <dev@poqcommerce.com>",

"terser-webpack-plugin": "^1.2.4",
"webpack": "^4.31.0",
"webpack": "^4.32.2",
"webpack-cli": "^3.3.2"
}
}

@@ -17,3 +17,4 @@ require('../scss/alchemy.scss');

require('./search');
require('./errorpage');
require('./status/widget');

@@ -10,2 +10,3 @@ const localSearch = require('./local');

const relHref = relMeta.getAttribute('content');
const searchWorkerUrl = window.searchWorkerUrl || `${relHref}js/search-worker.js`;

@@ -15,3 +16,3 @@ let query;

try {
const worker = new Worker(`${relHref}js/search-worker.js`);
const worker = new Worker(searchWorkerUrl);
if (!worker && !window.worker) {

@@ -24,9 +25,13 @@ localSearch();

case 'index-ready':
window.postToSearch = query => {
worker.postMessage({ event: 'search', q: query });
window.postToSearch = (query, external = false) => {
worker.postMessage({ event: 'search', q: query, external });
};
break;
case 'query-ready':
const hits = oEvent.data.d;
handleSearchResults(query, hits, relHref);
const { d: hits, q } = oEvent.data;
if (oEvent.data.external) {
window.handleSearchResults(q, hits, relHref);
} else {
handleSearchResults(q, hits, relHref);
}
break;

@@ -33,0 +38,0 @@ }

@@ -12,3 +12,6 @@ import lunr from 'lunr';

*
* `worker.postMessage({ event: 'search', q: 'my query' })`
* `worker.postMessage({ event: 'search', q: 'my query', external: false })`
*
* External queries don't open the default search results and instead call on
* window.handleSearchResults to display results elsewhere (e.g. error page).
*/

@@ -64,3 +67,3 @@ (async function() {

case 'search':
const { q } = oEvent.data;
const { external, q } = oEvent.data;
const hits = lunrIndex.search(q);

@@ -77,3 +80,3 @@ const results = [];

postMessage({ e: 'query-ready', q, d: results });
postMessage({ e: 'query-ready', q, external, d: results });
break;

@@ -80,0 +83,0 @@ }

@@ -13,2 +13,3 @@ const path = require('path');

alchemy: './src/index.js',
'search-worker': './src/search/search-worker.js',
statuspage: './src/status/statuspage.js'

@@ -15,0 +16,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc