Socket
Socket
Sign inDemoInstall

@alchemydocs/template

Package Overview
Dependencies
6
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

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=5)}([,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=5)}([,function(e,t,n){var o,r,i;i=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^\/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^\/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^\/:]+):\/*/,"$1://");for(var o=0;o<e.length;o++){var r=e[o];if("string"!=typeof r)throw new TypeError("Url must be a string. Received "+r);""!==r&&(o>0&&(r=r.replace(/^[\/]+/,"")),r=o<e.length-1?r.replace(/[\/]+$/,""):r.replace(/[\/]+$/,"/"),t.push(r))}var i=t.join("/"),a=(i=i.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return i=a.shift()+(a.length>0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=i():void 0===(r="function"==typeof(o=i)?o.call(t,n,t,e):o)||(e.exports=r)},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(6);const o=n(7),r=n(8),i=n(9);n(10),o().then(r).then(i),n(11),n(14),n(15),n(16),n(21),n(22)},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(12),i=o(13),{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(3))},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(3))},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(17),r=n(18),i=n(19),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(4))(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(20),r=n(4),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)}}]);
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(6);const o=n(7),r=n(8),i=n(9);n(10),o().then(r).then(i),n(11),n(14),n(15),n(16),n(21),n(22)},function(e,t,n){},function(e,t,n){const{isRelativePath:o,getAbsolutePath:r,getDirectory:i}=n(2),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 o=n(1),{isRelativePath:r,getAbsolutePath:i}=n(2),a=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)=>{let n=i(t).replace(/\/toc\.html$/,"");-1===n.indexOf("http")&&(n=`${window.location.protocol}//${n}`);const s=e.slice(e.indexOf("<div>"),e.lastIndexOf("</div>")-1);a.innerHTML=s;var c=i(window.location.pathname);const l=document.querySelectorAll("#sidetoc a[href]");[].forEach.call(l,e=>{let t=e.getAttribute("href");if(r(t)&&(t=o(n,t),e.setAttribute("href",t)),i(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(2),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(12),i=o(13),{formList:a}=o(2),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(3))},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(3))},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(17),r=n(18),i=n(19),a=document.getElementById("search-results"),s=document.querySelector('meta[property="docfx\\:rel"]');if(s){let e=s.getAttribute("content");e=e||"/";const 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:window.location.origin}}),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(4))(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(20),r=n(4),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)}}]);

@@ -51,2 +51,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=23)}({0:function(e,t,r){var i,n;

* 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)}()},2:function(e,t,r){var i,n,s;s=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^\/:]+:\/*$/)&&e.length>1){var r=e.shift();e[0]=r+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^\/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^\/:]+):\/*/,"$1://");for(var i=0;i<e.length;i++){var n=e[i];if("string"!=typeof n)throw new TypeError("Url must be a string. Received "+n);""!==n&&(i>0&&(n=n.replace(/^[\/]+/,"")),n=i<e.length-1?n.replace(/[\/]+$/,""):n.replace(/[\/]+$/,"/"),t.push(n))}var s=t.join("/"),o=(s=s.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return s=o.shift()+(o.length>0?"?":"")+o.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=s():void 0===(n="function"==typeof(i=s)?i.call(t,r,t,e):i)||(e.exports=n)},23:function(e,t,r){"use strict";r.r(t);var i=r(0),n=r.n(i),s=r(2),o=r.n(s);!async function(){let e,t,r;n.a.tokenizer.seperator=/[\s\-\.]+/;const i=async i=>{[t,r]=await Promise.all([fetch(o()(i,"search-stopwords.json")).then(e=>e.json()),fetch(o()(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})}})}()}});
*/,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)}()},1:function(e,t,r){var i,n,s;s=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^\/:]+:\/*$/)&&e.length>1){var r=e.shift();e[0]=r+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^\/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^\/:]+):\/*/,"$1://");for(var i=0;i<e.length;i++){var n=e[i];if("string"!=typeof n)throw new TypeError("Url must be a string. Received "+n);""!==n&&(i>0&&(n=n.replace(/^[\/]+/,"")),n=i<e.length-1?n.replace(/[\/]+$/,""):n.replace(/[\/]+$/,"/"),t.push(n))}var s=t.join("/"),o=(s=s.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return s=o.shift()+(o.length>0?"?":"")+o.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=s():void 0===(n="function"==typeof(i=s)?i.call(t,r,t,e):i)||(e.exports=n)},23:function(e,t,r){"use strict";r.r(t);var i=r(0),n=r.n(i),s=r(1),o=r.n(s);!async function(){let e,t,r;n.a.tokenizer.seperator=/[\s\-\.]+/;const i=async i=>{[t,r]=await Promise.all([fetch(o()(i,"search-stopwords.json")).then(e=>e.json()),fetch(o()(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})}})}()}});
{
"name": "@alchemydocs/template",
"version": "1.0.4",
"version": "1.0.5",
"description": "Default template for Alchemy",

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

@@ -9,4 +9,6 @@ const localSearch = require('./local');

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

@@ -20,3 +22,8 @@ let query;

} else {
worker.postMessage({ event: 'init', settings: { baseUrl: relHref } });
worker.postMessage({
event: 'init',
settings: {
baseUrl: window.location.origin
}
});
worker.onmessage = oEvent => {

@@ -23,0 +30,0 @@ switch (oEvent.data.e) {

import lunr from 'lunr';
import urljoin from 'url-join';
import urlJoin from 'url-join';

@@ -27,6 +27,6 @@ /**

[stopWords, searchData] = await Promise.all([
fetch(urljoin(baseUrl, 'search-stopwords.json')).then(res =>
fetch(urlJoin(baseUrl, 'search-stopwords.json')).then(res =>
res.json()
),
fetch(urljoin(baseUrl, 'index.json')).then(res => res.json())
fetch(urlJoin(baseUrl, 'index.json')).then(res => res.json())
]);

@@ -33,0 +33,0 @@

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

const urlJoin = require('url-join');
const { isRelativePath, getAbsolutePath } = require('./util');

@@ -6,10 +7,10 @@

const handleTocData = (data, tocRelUrl) => {
let baseUrl = getAbsolutePath(tocRelUrl).replace(/\/toc\.html$/, '');
if (baseUrl.indexOf('http') === -1) {
baseUrl = `${window.location.protocol}//${baseUrl}`;
}
const div = data.slice(data.indexOf('<div>'), data.lastIndexOf('</div>') - 1);
sidetoc.innerHTML = div;
const index = tocRelUrl.lastIndexOf('/');
let relativeUrl = '';
if (index > -1) {
relativeUrl = tocRelUrl.substr(0, index + 1);
}
var currentHref = getAbsolutePath(window.location.pathname);

@@ -20,3 +21,3 @@ const links = document.querySelectorAll('#sidetoc a[href]');

if (isRelativePath(href)) {
href = relativeUrl + href;
href = urlJoin(baseUrl, href);
link.setAttribute('href', href);

@@ -23,0 +24,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc