!function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t)}):e(t)}(this,function(h){M=(i=[]).concat,o=i.filter,l=i.slice,f=h.document,p={},e={},R={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},Z=/^\s*<(\w+|!)[^>]*>/,z=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,q=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,H=/^(?:body|html)$/i,I=/([A-Z])/g,V=["val","css","html","text","data","width","height","offset"],t=f.createElement("table"),_=f.createElement("tr"),B={tr:f.createElement("tbody"),tbody:t,thead:t,tfoot:t,td:_,th:_,"*":f.createElement("div")},U=/complete|loaded|interactive/,X=/^[\w-]*$/,W=(J={}).toString,d={},Y=f.createElement("div"),G={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},m=Array.isArray||function(t){return t instanceof Array},d.matches=function(t,e){var n,r;return!(!e||!t||1!==t.nodeType)&&((n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector)?n.call(t,e):((r=!(n=t.parentNode))&&(n=Y).appendChild(t),n=~d.qsa(n,e).indexOf(t),r&&Y.removeChild(t),n))},s=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},n=function(n){return o.call(n,function(t,e){return n.indexOf(t)==e})},d.fragment=function(t,e,n){var r,i,o;return(r=z.test(t)?c(f.createElement(RegExp.$1)):r)||(t.replace&&(t=t.replace(q,"<$1>")),e===u&&(e=Z.test(t)&&RegExp.$1),(o=B[e=e in B?e:"*"]).innerHTML=""+t,r=c.each(l.call(o.childNodes),function(){o.removeChild(this)})),N(n)&&(i=c(r),c.each(n,function(t,e){-1)<[^<]*)*<\/script>/gi,et=/^(?:text|application)\/javascript/i,nt=/^(?:text|application)\/xml/i,rt="application/json",it="text/html",ot=/^\s*$/,(at=x.createElement("a")).href=h.location.href,g.active=0,g.ajaxJSONP=function(n,r){var i,o,t,a,s,u,e,c;return"type"in n?(t=n.jsonpCallback,a=(g.isFunction(t)?t():t)||"Zepto"+Q++,s=x.createElement("script"),u=h[a],c={abort:e=function(t){g(s).triggerHandler("error",t||"abort")}},r&&r.promise(c),g(s).on("load error",function(t,e){clearTimeout(o),g(s).off().remove(),"error"!=t.type&&i?At(i[0],c,n,r):L(null,e||"error",c,n,r),h[a]=u,i&&g.isFunction(u)&&u(i[0]),u=i=void 0}),!1===Pt(c,n)?e("abort"):(h[a]=function(){i=arguments},s.src=n.url.replace(/\?(.+)=\?/,"?$1="+a),x.head.appendChild(s),0").html(t.replace(tt,"")).find(r):t),a&&a.apply(i,arguments)},g.ajax(t)),this},st=encodeURIComponent,g.param=function(t,e){var n=[];return n.add=function(t,e){null==(e=g.isFunction(e)?e():e)&&(e=""),this.push(st(t)+"="+st(e))},function n(r,t,i,o){var a,s=g.isArray(t),u=g.isPlainObject(t);g.each(t,function(t,e){a=g.type(e),o&&(t=i?o:o+"["+(u||"object"==a||"array"==a?t:"")+"]"),!o&&s?r.add(e.name,e.value):"array"==a||!i&&"object"==a?n(r,e,i,t):r.add(t,e)})}(n,t,e),n.join("&").replace(/%20/g,"+")},(v=t).fn.serializeArray=function(){function n(t){return t.forEach?t.forEach(n):void e.push({name:r,value:t})}var r,i,e=[];return this[0]&&v.each(this[0].elements,function(t,e){i=e.type,(r=e.name)&&"fieldset"!=e.nodeName.toLowerCase()&&!e.disabled&&"submit"!=i&&"reset"!=i&&"button"!=i&&"file"!=i&&("radio"!=i&&"checkbox"!=i||e.checked)&&n(v(e).val())}),e},v.fn.serialize=function(){var e=[];return this.serializeArray().forEach(function(t){e.push(encodeURIComponent(t.name)+"="+encodeURIComponent(t.value))}),e.join("&")},v.fn.submit=function(t){return 0 in arguments?this.bind("submit",t):this.length&&(t=v.Event("submit"),this.eq(0).trigger(t),t.isDefaultPrevented()||this.get(0).submit()),this};try{getComputedStyle(void 0)}catch(t){var Ot=getComputedStyle;h.getComputedStyle=function(t,e){try{return Ot(t,e)}catch(t){return null}}}return t;function D(t,e,n,r){return t.global?(t=e||x,e=n,n=r,e=g.Event(e),g(t).trigger(e,n),!e.isDefaultPrevented()):void 0}function Pt(t,e){var n=e.context;return!1!==e.beforeSend.call(n,t,e)&&!1!==D(e,n,"ajaxBeforeSend",[t,e])&&void D(e,n,"ajaxSend",[t,e])}function At(t,e,n,r){var i=n.context,o="success";n.success.call(i,t,o,e),r&&r.resolveWith(i,[t,o,e]),D(n,i,"ajaxSuccess",[e,n,t]),Dt(o,e,n)}function L(t,e,n,r,i){var o=r.context;r.error.call(o,n,e,t),i&&i.rejectWith(o,[n,e,t]),D(r,o,"ajaxError",[n,r,t||e]),Dt(e,n,r)}function Dt(t,e,n){var r=n.context;n.complete.call(r,e,t),D(n,r,"ajaxComplete",[e,n]),(t=n).global&&!--g.active&&D(t,null,"ajaxStop")}function $(){}function Lt(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function $t(t,e,n,r){return g.isFunction(e)&&(r=n,n=e,e=void 0),g.isFunction(n)||(r=n,n=void 0),{url:t,data:e,success:n,dataType:r}}function F(t){return t._zid||(t._zid=ut++)}function Ft(t,e,n,r){var i;return(e=kt(e)).ns&&(i=new RegExp("(?:^| )"+e.ns.replace(" "," .* ?")+"(?: |$)")),(j[F(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||i.test(t.ns))&&(!n||F(t.fn)===F(n))&&(!r||t.sel==r)})}function kt(t){t=(""+t).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function Mt(t,e){return t.del&&!ft&&t.e in ht||!!e}function Rt(t){return pt[t]||ft&&ht[t]||t}function Zt(r,t,i,o,a,s,u){var e=F(r),c=j[e]||(j[e]=[]);t.split(/\s/).forEach(function(t){if("ready"==t)return b(document).ready(i);var e=kt(t),n=(e.fn=i,e.sel=a,e.e in pt&&(i=function(t){t=t.relatedTarget;return!t||t!==this&&!b.contains(this,t)?e.fn.apply(this,arguments):void 0}),(e.del=s)||i);e.proxy=function(t){var e;if(!(t=qt(t)).isImmediatePropagationStopped())return t.data=o,!1===(e=n.apply(r,t._args==E?[t]:[t].concat(t._args)))&&(t.preventDefault(),t.stopPropagation()),e},e.i=c.length,c.push(e),"addEventListener"in r&&r.addEventListener(Rt(e.e),e.proxy,Mt(e,u))})}function zt(e,t,n,r,i){var o=F(e);(t||"").split(/\s/).forEach(function(t){Ft(e,t,n,r).forEach(function(t){delete j[o][t.i],"removeEventListener"in e&&e.removeEventListener(Rt(t.e),t.proxy,Mt(t,i))})})}function qt(r,i){return(i||!r.isDefaultPrevented)&&(i=i||r,b.each(gt,function(t,e){var n=i[t];r[t]=function(){return this[e]=dt,n&&n.apply(i,arguments)},r[e]=mt}),r.timeStamp||(r.timeStamp=Date.now()),i.defaultPrevented!==E?i.defaultPrevented:"returnValue"in i?!1===i.returnValue:i.getPreventDefault&&i.getPreventDefault())&&(r.isDefaultPrevented=dt),r}function Ht(t){var e,n={originalEvent:t};for(e in t)vt.test(e)||t[e]===E||(n[e]=t[e]);return qt(n,t)}function k(t){return"string"==typeof t}}); function _createForOfIteratorHelper(e,o){var t,r,n,a,i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return n=!(r=!0),{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){n=!0,t=e},f:function(){try{r||null==i.return||i.return()}finally{if(n)throw t}}};if(Array.isArray(e)||(i=_unsupportedIterableToArray(e))||o&&e&&"number"==typeof e.length)return i&&(e=i),a=0,{s:o=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,o){var t;if(e)return"string"==typeof e?_arrayLikeToArray(e,o):"Map"===(t="Object"===(t={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,o):void 0}function _arrayLikeToArray(e,o){(null==o||o>e.length)&&(o=e.length);for(var t=0,r=Array(o);t').css("overflow","hidden"),$(".search-popup-overlay").click(LocalSearch.onPopupClose),$(".popup").toggle();var e=$("#local-search-input");e.attr("autocapitalize","none"),e.attr("autocorrect","off"),e.focus()},searchFunc:function(e,o){$(".search-popup-overlay").is(":visible")?alert("Fetching data...don't worry"):($("body").append('
').css("overflow","hidden"),$("#search-loading-icon").css("margin","20% auto 0 auto").css("text-align","center"));var _,n=document.getElementById(e),a=document.getElementById(o);n&&a?(LocalSearch.unescape&&(_=function(e){return String(e).replace(/"/g,'"').replace(/'/g,"'").replace(/:/g,":").replace(/&#(\d+);/g,function(e,o){return String.fromCharCode(o)}).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}),$.ajax({url:LocalSearch.searchPath,timeout:5e3,dataType:LocalSearch.isXml?"xml":"json",async:!0,success:function(e){LocalSearch.isfetched=!0,$(".popup").detach().appendTo("body");function o(){var o,C=n.value.trim().toLowerCase(),$=C.split(/[\s\-]+/),w=(1<$.length&&$.push(C),[]);if(0]+>/g,""),i=(a=LocalSearch.unescape?a&&_(a):a).toLowerCase(),c=decodeURIComponent(e.url).replace(/\/{2,}/g,"/"),l=[],s=[];if(""!=r&&($.forEach(function(e){function o(e,o,t){var r=e.length;if(0===r)return[];var n,a=0,i=[];for(t||(o=o.toLowerCase(),e=e.toLowerCase());-1<(n=o.indexOf(e,a));)i.push({position:n,word:e}),a=n+r;return i}l=l.concat(o(e,n,!1)),s=s.concat(o(e,i,!1))}),0'+t.substring(e.position,o)+"",n=o}),r+=t.substring(n,e.end)},e=([l,s].forEach(function(e){e.sort(function(e,o){return o.position!==e.position?o.position-e.position:e.word.length-o.word.length})}),[]),d=(0!=l.length&&e.push(p(0,0,r.length,l)),[]);0!=s.length;){var f=s[s.length-1],g=f.position,f=f.word,m=g-20,v=g+80;m<0&&(m=0),(v=va.length&&(v=a.length),d.push(p(0,m,v,s))}d.sort(function(e,o){return e.searchTextCount!==o.searchTextCount?o.searchTextCount-e.searchTextCount:e.hits.length!==o.hits.length?o.hits.length-e.hits.length:e.start-o.start});var o=parseInt(LocalSearch.topN),S=(0<=o&&(d=d.slice(0,o)),"");S+=0!=e.length?"
  • "+u(r,e[0])+"":"
  • "+r+"",d.forEach(function(e){S+="

    '+u(a,e)+"...

    "}),S+="
  • ",w.push({item:S,searchTextCount:h,hitCount:t,id:w.length})}}()}catch(e){t.e(e)}finally{t.f()}}1===$.length&&""===$[0]?a.innerHTML='
    \n \n

    按Esc退出搜索...

    \n
    ':0===w.length?a.innerHTML='
    \n \n

    暂未查到有关内容,催更点这里

    \n
    '):(w.sort(function(e,o){return e.searchTextCount!==o.searchTextCount?o.searchTextCount-e.searchTextCount:e.hitCount!==o.hitCount?o.hitCount-e.hitCount:o.id-e.id}),o='
      ',w.forEach(function(e){o+=e.item}),o+="
    ",a.innerHTML=o)}var r=LocalSearch.isXml?$("entry",e).map(function(){return{title:$("title",this).text(),content:$("content",this).text(),url:$("url",this).text()}}).get():e;"auto"===LocalSearch.trigger?n.addEventListener("input",o):($(".search-icon").click(o),n.addEventListener("keypress",function(e){13===e.keyCode&&o()})),$(".local-search-pop-overlay").remove(),$("body").css("overflow",""),LocalSearch.proceedsearch()},error:function(e,o,t){alert(o+", Load error when get "+LocalSearch.searchPath),console.error(t),window.location.reload(!0)}})):console.error("Elements not exists with searchId: "+e+", resultContentId: "+o)},doSearch:function(e){e&&e.stopPropagation(),LocalSearch.isfetched?LocalSearch.proceedsearch():LocalSearch.searchFunc("local-search-input","local-search-result")}},SimpleCore={creationTime:new Date,highlightTheme:null,isPost:"false",prevTop:0,headerShow:!0,localSearch:{},readMode:"day",chatLink:"/",initParams:function(e){SimpleCore.creationTime=e.creationTime,SimpleCore.highlightTheme=e.highlightTheme,SimpleCore.isPost=e.isPost,SimpleCore.localSearch=e.localSearch,SimpleCore.readMode=e.readMode,SimpleCore.chatLink=e.chatLink},init:function(e){SimpleCore.initParams(e),LocalSearch.initParams(SimpleCore.localSearch),$(window).resize(function(){SimpleCore.syncSize()}),$(window).scroll(function(e){SimpleCore.scrollCallback()}),$(document).on("click",".btn-read-mode",function(e){e.preventDefault(),SimpleCore.switchReadMode()}),$(document).on("click",".btn-search",function(e){e.preventDefault(),SimpleCore.switchSearch()}),$(document).on("click","#local-search-input-tip",function(e){LocalSearch.doSearch(e)}),$(document).on("click",".popup-btn-close",function(e){e.preventDefault(),LocalSearch.onPopupClose()}),$(document).on("click",".popup",function(e){e.stopPropagation()}),$(document).on("click",".btn-gotop",function(e){e.preventDefault(),SimpleCore.goTop()}),SimpleCore.changeReadModel(),SimpleCore.setPageCurrent(),SimpleCore.setBuildingTime(),SimpleCore.syncSize(),SimpleCore.printGreeting(),SimpleCore.registerHotKeyEvent(),SimpleCore.setDefaultReadingMode()},goTop:function(){$("html, body").scrollTo({toT:0})},setPageCurrent:function(){"true"===SimpleCore.isPost?($("#cover").hide(),$("body").addClass("single")):($("#cover").show(),$("body").removeClass("single")),$.each($(".nav-menu a"),function(e,o){o.href===window.location.href||o.href===window.location.href.replace(/\/$/,"")?$(o).addClass("current"):$(o).removeClass("current")})},scrollCallback:function(){var e=document.documentElement.scrollTop||document.body.scrollTop||0;100 .main").width()):e.removeAttr("style"),o<768&&$(".site-name").click(function(e){e.preventDefault()})},switchSearch:function(){var e=$("#search");e.hasClass("active")?e.removeClass("active"):e.addClass("active")},switchReadMode:function(e){var o=$("body").hasClass("night-mode")?"day":"night";"string"==typeof e&&0').appendTo($("body"));var t="notice-"+(new Date).getTime();$('

    '+e+"

    "+o+"

    ").appendTo($("#notice")).on("click",".notice-item-close",function(){return $("#notice").remove(),!1}),$("#notice").css("margin-right",-$("#notice").width()/2),setTimeout(function(){$("#notice").remove()},1e4)},setLocalData:function(e,o){window.localStorage&&window.localStorage.setItem(e,o)},getLocalData:function(e){if(window.localStorage)return window.localStorage.getItem(e)},setBuildingTime:function(){var e=new Date(SimpleCore.creationTime),o=new Date,e=o.getTime()-e.getTime(),e=Math.floor(e/864e5);return $("#cpYear").html(o.getFullYear()),$("#siteBuildingTime").html(e),e},printGreeting:function(){var e=" _ _ _ _ _ _ _ _ \n( ) ( ) (_ ) (_ ) ( ) _ ( ) (_ ) ( )\n| |_| | __ | | | | _ | | ( ) | | _ _ __ | | _| |\n| _ | /'__`\\ | | | | /'_`\\ | | | | | | /'_`\\ ( '__)| | /'_` |\n| | | |( ___/ | | | | ( (_) ) | (_/ \\_) |( (_) )| | | | ( (_| |\n(_) (_)`\\____)(___)(___)`\\___/' `\\___x___/'`\\___/'(_) (___)`\\__,_)\n\n已稳定运行"+this.setBuildingTime()+"天,拦截了无数次逗比攻击!🎉🎉🎉\n ";console.log("%c\n"+e,"color: #527fe2; font-family:KaiTi;font-size: 16px")},registerHotKeyEvent:function(o){$(document).on("keyup",function(e){"Escape"===e.key&&"block"===$(".search-popup").css("display")&&($(".search-popup").hide(),$(".search-popup-overlay").remove(),$("body").css("overflow","")),"Shift"===e.key&&"none"===$(".search-popup").css("display")&&LocalSearch.doSearch(o)})},setDefaultReadingMode:function(){SimpleCore.getLocalData("read-mode")||"day"!==SimpleCore.readMode&&"night"!==SimpleCore.readMode||SimpleCore.switchReadMode(SimpleCore.readMode)}};$(function(){window.jsi_config?SimpleCore.init(window.jsi_config):console.error("JSimple get wrong config: ",window.jsi_config)});