"use strict";(self.webpackChunkcnblogs_theme_simplememorye_2_1_0=self.webpackChunkcnblogs_theme_simplememorye_2_1_0||[]).push([[9628],{98363:function(e,t,n){n.d(t,{Gl:function(){return c},Oh:function(){return m},rR:function(){return u},G6:function(){return l},wi:function(){return a}});var o=n(9669);const i=n.n(o)().create({timeout:15e3}),s=e=>(e.response&&console.error(`errorHandler: ${e.response}`),Promise.reject(e));i.interceptors.request.use((e=>(e.headers["Content-Type"]||(e.headers["Content-Type"]="application/json"),e.requestBaseUrl&&(e.baseURL=e.requestBaseUrl||""),e)),s),i.interceptors.response.use((e=>e.data),s);var r=i;function c(e,t){return r({url:t,method:"GET",requestBaseUrl:e})}function a(e,t,n){return r({url:t,method:"GET",params:n,requestBaseUrl:e})}function l(e,t){return r({url:t,requestBaseUrl:e})}function u(){return r({requestBaseUrl:"https://v2.jinrishici.com/one.json?client=npm-sdk/1.0"})}function m(e){return r({requestBaseUrl:`https://v2.jinrishici.com/one.json?client=npm-sdk/1.0&X-User-Token=${e}`})}},78991:function(e,t,n){function o(e){return(e=>{let t=e.replace(/[\r\n]/g,""),n=$("#digg_count"),o=t.match(/.*posted\s*@\s*([0-9\-:\s]{16}).*阅读\s*\((\d*)\).*评论\s*\((\d*)\).*推荐\s*\((\d*)\).*/)||t.match(/.*posted\s*@\s*([0-9\-:\s]{16}).*阅读\s*\((\d*)\).*评论\s*\((\d*)\).*/)||t.match(/.*posted\s*@\s*([0-9\-:\s]{16}).*/);return{date:void 0===o[1]?"1970-01-01 00:00":o[1],vnum:void 0===o[2]?"0":o[2],cnum:void 0===o[3]?"0":o[3],tnum:void 0===o[4]?n.length?n.text():"0":o[4]}})(e)}n.d(t,{Z:function(){return o}})},60565:function(e,t,n){n.r(t),n.d(t,{default:function(){return s}});var o=n(78991),i=n(98363);function s(e){(()=>{$("#homeTopTitle span").text(e.__config.info.name),e.__config.animate.infoName.enable&&$("#homeTopTitle span").hover((function(){$("#homeTopTitle span").css("animation","pageTitleText 2s infinite"),$("#homeTopTitle span").css("-webkit-animation","pageTitleText 1s infinite")}),(function(){$("#homeTopTitle span").css("animation","none"),$("#homeTopTitle span").css("-webkit-animation","none")}));let t=e.__config.banner.home.title,n=$("#hitokoto");if($.isArray(t)&&t.length>0){let o=e.__tools.randomNum(0,t.length-1);return n.html(t[o]).css("display","-webkit-box"),e.__tools.setDomHomePosition(),!0}if("string"==typeof t&&""!==t)return n.html(t).css("display","-webkit-box"),e.__tools.setDomHomePosition(),!0;let o=["当你凝视深渊时，深渊也在凝视着你。","有的人25岁就死了，只是到75岁才埋葬"];function s(t){if("success"===t?.status||0===t.errno){let e=t?.note||t.data.content,o=t?.content||`《${t.data.origin.title}》 - ${t.data.origin.dynasty} - ${t.data.origin.author}`;n.html(e).css("display","-webkit-box"),$("#hitokotoAuthor").text(o).show()}else{let t=e.__tools.randomNum(0,o.length-1);n.html(o[t]).css("display","-webkit-box")}e.__tools.setDomHomePosition()}if("one"===e.__config.banner.home.titleSource&&e.__tools.getJsonp().then((e=>(s(e),!1))),"jinrishici"===e.__config.banner.home.titleSource){const e="jinrishici-token";let t=window.localStorage.getItem(e)||"";t?(0,i.Oh)(encodeURIComponent(t)).then((e=>s(e))):(0,i.rR)().then((t=>{window.localStorage.setItem(e,t.token),s(t)}))}})(),$(".scroll-down").click((function(){let t;t=$("#home").offset().top+10,e.__tools.actScroll(t,500)})),(()=>{$("#main .c_b_p_desc_readmore");let e=$("#main .postTitle");function t(e){let t=(0,o.Z)(e);return'<span class="postMeta"><i class="iconfont icon-schedule"></i>发表于 '+t.date+'<i class="iconfont icon-browse"></i>阅读：'+t.vnum+'<i class="iconfont icon-interactive"></i>评论：'+t.cnum+'<i class="iconfont icon-hot"></i>推荐：'+t.tnum+"</span>"}$.each(e,(n=>{let o=$(e[n]),i=o.text(),s=o.nextAll(".postDesc:eq(0)").text();o.after(t(s)),/\[置顶\]/.test(i)&&o.append('<span class="postSticky">置顶</span>'),o.find("a").text(i.replace("[置顶]",""))})),e=$("#main .entrylistPosttitle"),$.each(e,(n=>{let o=$(e[n]),i=o.nextAll(".entrylistItemPostDesc:eq(0)").text();o.after(t(i))}))})(),(()=>{let e=$(".c_b_p_desc");$.each(e,(t=>{let n=$(e[t]),o=n.find("img.desc_img"),i=n[0].innerHTML;if(n[0].innerHTML=i.replace("摘要：            ",""),o.length>0){let e=o.attr("src");o.hide(),n.css("width","60%"),n.parent("div").css("min-height","150px");let t='<div class="c_b_p_desc_img"><div style="background: url(\''+e+"') center center / contain no-repeat;\"></div></div>";n.after(t)}}))})(),e.__config.animate.homeBanner.enable&&n.e(8086).then(n.t.bind(n,43255,23)).then((t=>{$(".main-header").circleMagic(e.__config.animate.homeBanner.options)}))}}}]);