text: function getAndRemoveConfig(e){void 0===e&&(e="");var a={};return{str:e=e&&e.replace(/^'/,"").replace(/'$/,"").replace(/(?:^|\s):([\w-]+:?)=?([\w-%]+)?/g,function(e,n,t){return-1===n.indexOf(":")?(a[n]=t&&t.replace(/&quot;/g,"")||!0,""):e}).trim(),config:a}}var INDEXS={},LOCAL_STORAGE={EXPIRE_KEY:"docsify.search.expires",INDEX_KEY:"docsify.search.index"};function resolveExpireKey(e){return e?LOCAL_STORAGE.EXPIRE_KEY+"/"+e:LOCAL_STORAGE.EXPIRE_KEY}function resolveIndexKey(e){return e?LOCAL_STORAGE.INDEX_KEY+"/"+e:LOCAL_STORAGE.INDEX_KEY}function escapeHtml(e){var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return String(e).replace(/[&<>"']/g,function(e){return n[e]})}function getAllPaths(o){var i=[];return Docsify.dom.findAll(".sidebar-nav a:not(.section-link):not([data-nosearch])").forEach(function(e){var n=e.href,t=e.getAttribute("href"),a=o.parse(n).path;a&&-1===i.indexOf(a)&&!Docsify.util.isAbsolutePath(t)&&i.push(a)}),i}function getTableData(e){return e.text||"table"!==e.type||(e.cells.unshift(e.header),e.text=e.cells.map(function(e){return e.join(" | ")}).join(" |\n ")),e.text}function saveData(e,n,t){localStorage.setItem(n,Date.now()+e),localStorage.setItem(t,JSON.stringify(INDEXS))}function genIndex(o,e,i,r){void 0===e&&(e="");var s,n=window.marked.lexer(e),c=window.Docsify.slugify,d={};return n.forEach(function(e){if("heading"===e.type&&e.depth<=r){var n=getAndRemoveConfig(e.text),t=n.str,a=n.config;s=a.id?i.toURL(o,{id:c(a.id)}):i.toURL(o,{id:c(escapeHtml(e.text))}),d[s]={slug:s,title:t,body:""}}else{if(!s)return;d[s]?d[s].body?(e.text=getTableData(e),d[s].body+="\n"+(e.text||"")):(e.text=getTableData(e),d[s].body=d[s].body?d[s].body+e.text:e.text):d[s]={slug:s,title:"",body:""}}}),c.clear(),d}function search(e){var o=[],i=[];Object.keys(INDEXS).forEach(function(n){i=i.concat(Object.keys(INDEXS[n]).map(function(e){return INDEXS[n][e]}))});var r=(e=e.trim()).split(/[\s\-，\\/]+/);1!==r.length&&(r=[].concat(e,r));function n(e){var n=i[e],s=0,c="",d=n.title&&n.title.trim(),l=n.body&&n.body.trim(),t=n.slug||"";if(d&&(r.forEach(function(e){var n,t=new RegExp(e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),"gi"),a=-1;if(n=d?d.search(t):-1,a=l?l.search(t):-1,0<=n||0<=a){s+=0<=n?3:0<=a?2:0,a<0&&(a=0);var o,i=0;i=0==(o=a<11?0:a-10)?70:a+e.length+60,l&&i>l.length&&(i=l.length);var r="..."+escapeHtml(l).substring(o,i).replace(t,'<em class="search-keyword">'+e+"</em>")+"...";c+=r}}),0<s)){var a={title:escapeHtml(d),content:l?c:"",url:t,score:s};o.push(a)}}for(var t=0;t<i.length;t++)n(t);return o.sort(function(e,n){return n.score-e.score})}function init(t,a){var e="auto"===t.paths,o=resolveExpireKey(t.namespace),i=resolveIndexKey(t.namespace),n=localStorage.getItem(o)<Date.now();if(INDEXS=JSON.parse(localStorage.getItem(i)),n)INDEXS={};else if(!e)return;var r=e?getAllPaths(a.router):t.paths,s=r.length,c=0;r.forEach(function(n){if(INDEXS[n])return c++;Docsify.get(a.router.getFile(n),!1,a.config.requestHeaders).then(function(e){INDEXS[n]=genIndex(n,e,a.router,t.depth),s===++c&&saveData(t.maxAge,o,i)})})}var options,NO_DATA_TEXT="";function style(){Docsify.dom.style("\n.sidebar {\n  padding-top: 0;\n}\n\n.search {\n  margin-bottom: 20px;\n  padding: 6px;\n  border-bottom: 1px solid #eee;\n}\n\n.search .input-wrap {\n  display: flex;\n  align-items: center;\n}\n\n.search .results-panel {\n  display: none;\n}\n\n.search .results-panel.show {\n  display: block;\n}\n\n.search input {\n  outline: none;\n  border: none;\n  width: 100%;\n  padding: 0 7px;\n  line-height: 36px;\n  font-size: 14px;\n  border: 1px solid transparent;\n}\n\n.search input:focus {\n  box-shadow: 0 0 5px var(--theme-color, #42b983);\n  border: 1px solid var(--theme-color, #42b983);\n}\n\n.search input::-webkit-search-decoration,\n.search input::-webkit-search-cancel-button,\n.search input {\n  -webkit-appearance: none;\n  -moz-appearance: none;\n  appearance: none;\n}\n.search .clear-button {\n  cursor: pointer;\n  width: 36px;\n  text-align: right;\n  display: none;\n}\n\n.search .clear-button.show {\n  display: block;\n}\n\n.search .clear-button svg {\n  transform: scale(.5);\n}\n\n.search h2 {\n  font-size: 17px;\n  margin: 10px 0;\n}\n\n.search a {\n  text-decoration: none;\n  color: inherit;\n}\n\n.search .matching-post {\n  border-bottom: 1px solid #eee;\n}\n\n.search .matching-post:last-child {\n  border-bottom: 0;\n}\n\n.search p {\n  font-size: 14px;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  display: -webkit-box;\n  -webkit-line-clamp: 2;\n  -webkit-box-orient: vertical;\n}\n\n.search p.empty {\n  text-align: center;\n}\n\n.app-name.hide, .sidebar-nav.hide {\n  display: none;\n}")}function tpl(e){void 0===e&&(e="");var n='<div class="input-wrap">\n      <input type="search" value="'+e+'" aria-label="Search text" />\n      <div class="clear-button">\n        <svg width="26" height="24">\n          <circle cx="12" cy="12" r="11" fill="#ccc" />\n          <path stroke="white" stroke-width="2" d="M8.25,8.25,15.75,15.75" />\n          <path stroke="white" stroke-width="2"d="M8.25,15.75,15.75,8.25" />\n        </svg>\n      </div>\n    </div>\n    <div class="results-panel"></div>\n    </div>',t=Docsify.dom.create("div",n),a=Docsify.dom.find("aside");Docsify.dom.toggleClass(t,"search"),Docsify.dom.before(a,t)}function doSearch(e){var n=Docsify.dom.find("div.search"),t=Docsify.dom.find(n,".results-panel"),a=Docsify.dom.find(n,".clear-button"),o=Docsify.dom.find(".sidebar-nav"),i=Docsify.dom.find(".app-name");if(!e)return t.classList.remove("show"),a.classList.remove("show"),t.innerHTML="",void(options.hideOtherSidebarContent&&(o.classList.remove("hide"),i.classList.remove("hide")));var r=search(e),s="";r.forEach(function(e){s+='<div class="matching-post">\n<a href="'+e.url+'">\n<h2>'+e.title+"</h2>\n<p>"+e.content+"</p>\n</a>\n</div>"}),t.classList.add("show"),a.classList.add("show"),t.innerHTML=s||'<p class="empty">'+NO_DATA_TEXT+"</p>",options.hideOtherSidebarContent&&(o.classList.add("hide"),i.classList.add("hide"))}function bindEvents(){var e,n=Docsify.dom.find("div.search"),t=Docsify.dom.find(n,"input"),a=Docsify.dom.find(n,".input-wrap");Docsify.dom.on(n,"click",function(e){return-1===["A","H2","P","EM"].indexOf(e.target.tagName)&&e.stopPropagation()}),Docsify.dom.on(t,"input",function(n){clearTimeout(e),e=setTimeout(function(e){return doSearch(n.target.value.trim())},100)}),Docsify.dom.on(a,"click",function(e){"INPUT"!==e.target.tagName&&(t.value="",doSearch())})}function updatePlaceholder(e,n){var t=Docsify.dom.getNode('.search input[type="search"]');if(t)if("string"==typeof e)t.placeholder=e;else{var a=Object.keys(e).filter(function(e){return-1<n.indexOf(e)})[0];t.placeholder=e[a]}}function updateNoData(e,n){if("string"==typeof e)NO_DATA_TEXT=e;else{var t=Object.keys(e).filter(function(e){return-1<n.indexOf(e)})[0];NO_DATA_TEXT=e[t]}}function updateOptions(e){options=e}function init$1(e,n){var t=n.router.parse().query.s;updateOptions(e),style(),tpl(t),bindEvents(),t&&setTimeout(function(e){return doSearch(t)},500)}function update(e,n){updateOptions(e),updatePlaceholder(e.placeholder,n.route.path),updateNoData(e.noData,n.route.path)}var CONFIG={placeholder:"Type to search",noData:"No Results!",paths:"auto",depth:2,maxAge:864e5,hideOtherSidebarContent:!1,namespace:void 0},install=function(e,n){var t=Docsify.util,a=n.config.search||CONFIG;Array.isArray(a)?CONFIG.paths=a:"object"==typeof a&&(CONFIG.paths=Array.isArray(a.paths)?a.paths:"auto",CONFIG.maxAge=t.isPrimitive(a.maxAge)?a.maxAge:CONFIG.maxAge,CONFIG.placeholder=a.placeholder||CONFIG.placeholder,CONFIG.noData=a.noData||CONFIG.noData,CONFIG.depth=a.depth||CONFIG.depth,CONFIG.hideOtherSidebarContent=a.hideOtherSidebarContent||CONFIG.hideOtherSidebarContent,CONFIG.namespace=a.namespace||CONFIG.namespace);var o="auto"===CONFIG.paths;e.mounted(function(e){init$1(CONFIG,n),o||init(CONFIG,n)}),e.doneEach(function(e){update(CONFIG,n),o&&init(CONFIG,n)})};$docsify.plugins=[].concat(install,$docsify.plugins);
  