Socket
Socket
Sign inDemoInstall

anzhiyu-blog

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anzhiyu-blog - npm Package Compare versions

Comparing version 2.1.5 to 2.1.6

css/biliBg/autumn/autumn.css

2

anzhiyu/random.js

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

"use strict";var posts=["posts/ff46.html","posts/bd4e.html","posts/b1d7.html","posts/xoan.html","posts/fe76.html","posts/d335.html","posts/8645.html","posts/e173abca.html","posts/aa28.html","posts/443e.html","posts/1ed1.html","posts/aa50.html","posts/b590.html","posts/fc18.html","posts/ddae.html","posts/192f.html","posts/sdxhu.html","posts/6c69.html","posts/e62b.html","posts/968f.html","posts/ce6a.html","posts/292d.html","posts/asdx.html","posts/cf4f.html","posts/52d8.html","posts/72ea.html","posts/8e53.html","posts/c248.html","posts/2785.html","posts/3753.html","posts/3830.html","posts/e8da.html","posts/4190.html","posts/9520.html","posts/571d.html","posts/b8cf1317.html","posts/7e87.html","posts/eadb39c4.html","posts/fe37.html","posts/9ffb.html","posts/8b43.html","posts/3444.html","posts/222.html","posts/c939.html","posts/6fd4.html","posts/521a.html","posts/495f.html","posts/88de.html","posts/4a9f.html"];function toRandomPost(){pjax.loadUrl("/"+posts[Math.floor(Math.random()*posts.length)])}
"use strict";var posts=["posts/ff46.html","posts/bd4e.html","posts/b1d7.html","posts/xoan.html","posts/fe76.html","posts/d335.html","posts/8645.html","posts/e173abca.html","posts/aa28.html","posts/443e.html","posts/1ed1.html","posts/aa50.html","posts/b590.html","posts/fc18.html","posts/8d2b.html","posts/ddae.html","posts/192f.html","posts/sdxhu.html","posts/6c69.html","posts/e62b.html","posts/968f.html","posts/ce6a.html","posts/292d.html","posts/asdx.html","posts/cf4f.html","posts/52d8.html","posts/72ea.html","posts/8e53.html","posts/c248.html","posts/2785.html","posts/3753.html","posts/3830.html","posts/e8da.html","posts/4190.html","posts/9520.html","posts/571d.html","posts/b8cf1317.html","posts/7e87.html","posts/eadb39c4.html","posts/fe37.html","posts/9ffb.html","posts/8b43.html","posts/3444.html","posts/222.html","posts/c939.html","posts/6fd4.html","posts/521a.html","posts/495f.html","posts/88de.html","posts/4a9f.html"];function toRandomPost(){pjax.loadUrl("/"+posts[Math.floor(Math.random()*posts.length)])}

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

https://anzhiy.cn/posts/c939.html
https://anzhiy.cn/posts/8d2b.html

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

"use strict";var anzhiyu_musicPlaying=!1,anzhiyu_musicStretch=!1,anzhiyu_musicFirst=!1,anzhiyu={changeThemeColor:function(e){null!==document.querySelector('meta[name="theme-color"]')&&document.querySelector('meta[name="theme-color"]').setAttribute("content",e)},initThemeColor:function(){var e=getComputedStyle(document.documentElement).getPropertyValue("--anzhiyu-bar-background").trim().replace('"',"").replace('"',"");56<(window.scrollY||document.documentElement.scrollTop)&&(e=getComputedStyle(document.documentElement).getPropertyValue("--anzhiyu-meta-theme-color").trim().replace('"',"").replace('"',""),anzhiyu.is_Post()&&(e=getComputedStyle(document.documentElement).getPropertyValue("--anzhiyu-meta-theme-post-color").trim().replace('"',"").replace('"',""))),this.changeThemeColor(e)},is_Post:function(){return 0<=window.location.href.indexOf("/posts/")},addNavBackgroundInit:function(){var e=0,t=0;0!=(0<(e=document.body?document.body.scrollTop:e)-(t=document.documentElement?document.documentElement.scrollTop:t)?e:t)&&(document.getElementById("page-header").classList.add("nav-fixed"),document.getElementById("page-header").classList.add("nav-visible"))},downloadImage:function(e,a){rm.hideRightMenu(),0==rm.downloadimging?(rm.downloadimging=!0,btf.snackbarShow("正在下载中,请稍后",!1,1e4),setTimeout(function(){var o=new Image;o.setAttribute("crossOrigin","anonymous"),o.onload=function(){var e=document.createElement("canvas");e.width=o.width,e.height=o.height;e.getContext("2d").drawImage(o,0,0,o.width,o.height);var e=e.toDataURL("image/png"),t=document.createElement("a"),n=new MouseEvent("click");t.download=a||"photo",t.href=e,t.dispatchEvent(n)},o.src=e,btf.snackbarShow("图片已添加盲水印,请遵守版权协议"),rm.downloadimging=!1},"10000")):btf.snackbarShow("有正在进行中的下载,请稍后再试")},stopImgRightDrag:function(){$("img").on("dragstart",function(){return!1})},scrollTo:function(e){e=document.querySelector(e).offsetTop;window.scrollTo(0,e-80)},showLoading:function(){document.querySelector("#loading-box").classList.remove("loaded")},hideLoading:function(){document.querySelector("#loading-box").classList.add("loaded")},hideAsideBtn:function(){var e=document.documentElement.classList;e.contains("hide-aside")?saveToLocal.set("aside-status","show",2):saveToLocal.set("aside-status","hide",2),e.toggle("hide-aside"),e.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on")},switchCommentBarrage:function(){document.querySelector(".comment-barrage")&&($(".comment-barrage").is(":visible")?($(".comment-barrage").hide(),btf.snackbarShow("✨ 已关闭评论弹幕"),$(".menu-commentBarrage-text").text("显示热评"),document.querySelector("#consoleCommentBarrage").classList.remove("on"),localStorage.setItem("commentBarrageSwitch","false")):$(".comment-barrage").is(":hidden")&&($(".comment-barrage").show(),$(".menu-commentBarrage-text").text("关闭热评"),document.querySelector("#consoleCommentBarrage").classList.add("on"),btf.snackbarShow("✨ 已开启评论弹幕"),localStorage.removeItem("commentBarrageSwitch"))),rm.hideRightMenu()},initIndexEssay:function(){document.querySelector(".essay_bar_swiper_container")&&setTimeout(function(){var e=new Swiper(".essay_bar_swiper_container",{passiveListeners:!0,direction:"vertical",loop:!0,autoplay:{disableOnInteraction:!0,delay:3e3},mousewheel:!0}),t=document.getElementById("bbtalk");null!==t&&(t.onmouseenter=function(){e.autoplay.stop()},t.onmouseleave=function(){e.autoplay.start()})},100)},diffDate:function(e){var t,n,o=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=new Date,e=new Date(e),a=a.getTime()-e.getTime(),i=864e5;return o?(o=a/i,t=a/36e5,n=a/6e4,1<=a/2592e6?e.toLocaleDateString().replace(/\//g,"-"):1<=o?parseInt(o)+" "+GLOBAL_CONFIG.date_suffix.day:1<=t?parseInt(t)+" "+GLOBAL_CONFIG.date_suffix.hour:1<=n?parseInt(n)+" "+GLOBAL_CONFIG.date_suffix.min:GLOBAL_CONFIG.date_suffix.just):parseInt(a/i)},changeTimeInEssay:function(){document.querySelector("#bber")&&document.querySelectorAll("#bber time").forEach(function(e){var t=e.getAttribute("datetime");e.innerText=anzhiyu.diffDate(t,!0),e.style.display="inline"})},changeTimeInAlbumDetail:function(){document.querySelector("#album_detail")&&document.querySelectorAll("#album_detail time").forEach(function(e){var t=e.getAttribute("datetime");e.innerText=anzhiyu.diffDate(t,!0),e.style.display="inline"})},reflashEssayWaterFall:function(){document.querySelector("#waterfall")&&setTimeout(function(){waterfall("#waterfall"),document.getElementById("waterfall").classList.add("show")},500)},commentText:function(e){"undefined"!=e&&"null"!=e||(e="好棒!");var t=document.getElementsByClassName("el-textarea__inner")[0],n=document.createEvent("HTMLEvents");t&&(n.initEvent("input",!0,!0),e=replaceAll(e,"\n","\n> "),t.value="> "+e+"\n\n",t.dispatchEvent(n),e=document.querySelector("#post-comment").offsetTop,window.scrollTo(0,e-80),t.focus(),t.setSelectionRange(-1,-1),document.getElementById("comment-tips")&&document.getElementById("comment-tips").classList.add("show"))},sayhi:function(){document.querySelector("#author-info__sayhi")&&(document.getElementById("author-info__sayhi").innerHTML=getTimeState()+"!我是")},addFriendLink:function(){var e,t=document.getElementsByClassName("el-textarea__inner")[0];t&&((e=document.createEvent("HTMLEvents")).initEvent("input",!0,!0),t.value="昵称(请勿包含博客等字样):\n网站地址(要求博客地址,请勿提交个人主页):\n头像图片url(请提供尽可能清晰的图片,我会上传到我自己的图床):\n描述:\n站点截图(可选):\n",t.dispatchEvent(e),t.focus(),t.setSelectionRange(-1,-1))},musicToggle:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];anzhiyu_musicFirst||(musicBindEvent(),anzhiyu_musicFirst=!0);anzhiyu_musicStretch=anzhiyu_musicPlaying?(document.querySelector("#nav-music").classList.remove("playing"),document.getElementById("menu-music-toggle").innerHTML='<i class="fa-solid fa-play"></i><span>播放音乐</span>',document.getElementById("nav-music-hoverTips").innerHTML="音乐已暂停",document.querySelector("#consoleMusic").classList.remove("on"),anzhiyu_musicPlaying=!1,document.querySelector("#nav-music").classList.remove("stretch"),!1):(document.querySelector("#nav-music").classList.add("playing"),document.getElementById("menu-music-toggle").innerHTML='<i class="fa-solid fa-pause"></i><span>暂停音乐</span>',document.querySelector("#consoleMusic").classList.add("on"),anzhiyu_musicPlaying=!0,document.querySelector("#nav-music").classList.add("stretch"),!0),e&&document.querySelector("#nav-music meting-js").aplayer.toggle()},musicTelescopic:function(){anzhiyu_musicStretch=anzhiyu_musicStretch?(document.querySelector("#nav-music").classList.remove("stretch"),!1):(document.querySelector("#nav-music").classList.add("stretch"),!0)},musicSkipBack:function(){document.querySelector("#nav-music meting-js").aplayer.skipBack()},musicSkipForward:function(){document.querySelector("#nav-music meting-js").aplayer.skipForward()},musicGetName:function(){for(var e=$(".aplayer-title"),t=[],n=e.length-1;0<=n;n--)t[n]=e[n].innerText;return t[0]},darkModeStatus:function(){"light"==("dark"===document.documentElement.getAttribute("data-theme")?"dark":"light")?$(".menu-darkmode-text").text("深色模式"):$(".menu-darkmode-text").text("浅色模式")},initConsoleState:function(){document.documentElement.classList.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on")},showConsole:function(){document.querySelector("#console").classList.add("show"),anzhiyu.initConsoleState()},hideConsole:function(){document.querySelector("#console").classList.remove("show")}},getTimeState=function(){var e=(new Date).getHours(),t="";return 0<=e&&e<=5?t="晚安😴":5<e&&e<=10?t="早上好👋":10<e&&e<=14?t="中午好👋":14<e&&e<=18?t="下午好👋":18<e&&e<=24&&(t="晚上好👋"),t};document.addEventListener("pjax:send",function(){anzhiyu.showLoading}),document.getElementById("page-name").innerText=document.title.split(" | 安知鱼")[0],anzhiyu.initIndexEssay(),anzhiyu.changeTimeInEssay(),anzhiyu.changeTimeInAlbumDetail(),anzhiyu.reflashEssayWaterFall(),anzhiyu.sayhi(),anzhiyu.stopImgRightDrag(),anzhiyu.addNavBackgroundInit(),addRightMenuClickEvent(),coverColor(),window.onload=function(){percent(),anzhiyu.initThemeColor()},anzhiyu.initThemeColor();
"use strict";var anzhiyu_musicPlaying=!1,anzhiyu_musicStretch=!1,anzhiyu_musicFirst=!1,themeColorMeta=document.querySelector('meta[name="theme-color"]'),pageHeaderEl=document.getElementById("page-header"),anzhiyu={changeThemeColor:function(e){null!==themeColorMeta&&themeColorMeta.setAttribute("content",e)},initThemeColor:function(){var e=getComputedStyle(document.documentElement).getPropertyValue("--anzhiyu-bar-background").trim().replace('"',"").replace('"',"");56<(window.scrollY||document.documentElement.scrollTop)&&anzhiyu.is_Post()&&(e=getComputedStyle(document.documentElement).getPropertyValue("--anzhiyu-meta-theme-post-color").trim().replace('"',"").replace('"',"")),themeColorMeta.getAttribute("content")!==e&&this.changeThemeColor(e)},is_Post:function(){return 0<=window.location.href.indexOf("/posts/")},addNavBackgroundInit:function(){var e=0,t=0;0!=(0<(e=document.body?document.body.scrollTop:e)-(t=document.documentElement?document.documentElement.scrollTop:t)?e:t)&&(pageHeaderEl.classList.add("nav-fixed"),pageHeaderEl.classList.add("nav-visible")),pageHeaderEl.querySelector(".bili-banner")&&(pageHeaderEl.classList.add("nav-fixed"),pageHeaderEl.classList.add("nav-visible"))},downloadImage:function(e,o){rm.hideRightMenu(),0==rm.downloadimging?(rm.downloadimging=!0,btf.snackbarShow("正在下载中,请稍后",!1,1e4),setTimeout(function(){var a=new Image;a.setAttribute("crossOrigin","anonymous"),a.onload=function(){var e=document.createElement("canvas");e.width=a.width,e.height=a.height;e.getContext("2d").drawImage(a,0,0,a.width,a.height);var e=e.toDataURL("image/png"),t=document.createElement("a"),n=new MouseEvent("click");t.download=o||"photo",t.href=e,t.dispatchEvent(n)},a.src=e,btf.snackbarShow("图片已添加盲水印,请遵守版权协议"),rm.downloadimging=!1},"10000")):btf.snackbarShow("有正在进行中的下载,请稍后再试")},stopImgRightDrag:function(){$("img").on("dragstart",function(){return!1})},scrollTo:function(e){e=document.querySelector(e).offsetTop;window.scrollTo(0,e-80)},showLoading:function(){document.querySelector("#loading-box").classList.remove("loaded")},hideLoading:function(){document.querySelector("#loading-box").classList.add("loaded")},hideAsideBtn:function(){var e=document.documentElement.classList;e.contains("hide-aside")?saveToLocal.set("aside-status","show",2):saveToLocal.set("aside-status","hide",2),e.toggle("hide-aside"),e.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on")},switchCommentBarrage:function(){document.querySelector(".comment-barrage")&&($(".comment-barrage").is(":visible")?($(".comment-barrage").hide(),btf.snackbarShow("✨ 已关闭评论弹幕"),$(".menu-commentBarrage-text").text("显示热评"),document.querySelector("#consoleCommentBarrage").classList.remove("on"),localStorage.setItem("commentBarrageSwitch","false")):$(".comment-barrage").is(":hidden")&&($(".comment-barrage").show(),$(".menu-commentBarrage-text").text("关闭热评"),document.querySelector("#consoleCommentBarrage").classList.add("on"),btf.snackbarShow("✨ 已开启评论弹幕"),localStorage.removeItem("commentBarrageSwitch"))),rm.hideRightMenu()},initIndexEssay:function(){document.querySelector(".essay_bar_swiper_container")&&setTimeout(function(){var e=new Swiper(".essay_bar_swiper_container",{passiveListeners:!0,direction:"vertical",loop:!0,autoplay:{disableOnInteraction:!0,delay:3e3},mousewheel:!0}),t=document.getElementById("bbtalk");null!==t&&(t.onmouseenter=function(){e.autoplay.stop()},t.onmouseleave=function(){e.autoplay.start()})},100)},diffDate:function(e){var t,n,a=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=new Date,e=new Date(e),o=o.getTime()-e.getTime(),i=864e5;return a?(a=o/i,t=o/36e5,n=o/6e4,1<=o/2592e6?e.toLocaleDateString().replace(/\//g,"-"):1<=a?parseInt(a)+" "+GLOBAL_CONFIG.date_suffix.day:1<=t?parseInt(t)+" "+GLOBAL_CONFIG.date_suffix.hour:1<=n?parseInt(n)+" "+GLOBAL_CONFIG.date_suffix.min:GLOBAL_CONFIG.date_suffix.just):parseInt(o/i)},changeTimeInEssay:function(){document.querySelector("#bber")&&document.querySelectorAll("#bber time").forEach(function(e){var t=e.getAttribute("datetime");e.innerText=anzhiyu.diffDate(t,!0),e.style.display="inline"})},changeTimeInAlbumDetail:function(){document.querySelector("#album_detail")&&document.querySelectorAll("#album_detail time").forEach(function(e){var t=e.getAttribute("datetime");e.innerText=anzhiyu.diffDate(t,!0),e.style.display="inline"})},reflashEssayWaterFall:function(){document.querySelector("#waterfall")&&setTimeout(function(){waterfall("#waterfall"),document.getElementById("waterfall").classList.add("show")},500)},commentText:function(e){"undefined"!=e&&"null"!=e||(e="好棒!");var t=document.getElementsByClassName("el-textarea__inner")[0],n=document.createEvent("HTMLEvents");t&&(n.initEvent("input",!0,!0),e=replaceAll(e,"\n","\n> "),t.value="> "+e+"\n\n",t.dispatchEvent(n),e=document.querySelector("#post-comment").offsetTop,window.scrollTo(0,e-80),t.focus(),t.setSelectionRange(-1,-1),document.getElementById("comment-tips")&&document.getElementById("comment-tips").classList.add("show"))},sayhi:function(){document.querySelector("#author-info__sayhi")&&(document.getElementById("author-info__sayhi").innerHTML=getTimeState()+"!我是")},addFriendLink:function(){var e,t=document.getElementsByClassName("el-textarea__inner")[0];t&&((e=document.createEvent("HTMLEvents")).initEvent("input",!0,!0),t.value="昵称(请勿包含博客等字样):\n网站地址(要求博客地址,请勿提交个人主页):\n头像图片url(请提供尽可能清晰的图片,我会上传到我自己的图床):\n描述:\n站点截图(可选):\n",t.dispatchEvent(e),t.focus(),t.setSelectionRange(-1,-1))},musicToggle:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];anzhiyu_musicFirst||(musicBindEvent(),anzhiyu_musicFirst=!0);anzhiyu_musicStretch=anzhiyu_musicPlaying?(document.querySelector("#nav-music").classList.remove("playing"),document.getElementById("menu-music-toggle").innerHTML='<i class="fa-solid fa-play"></i><span>播放音乐</span>',document.getElementById("nav-music-hoverTips").innerHTML="音乐已暂停",document.querySelector("#consoleMusic").classList.remove("on"),anzhiyu_musicPlaying=!1,document.querySelector("#nav-music").classList.remove("stretch"),!1):(document.querySelector("#nav-music").classList.add("playing"),document.getElementById("menu-music-toggle").innerHTML='<i class="fa-solid fa-pause"></i><span>暂停音乐</span>',document.querySelector("#consoleMusic").classList.add("on"),anzhiyu_musicPlaying=!0,document.querySelector("#nav-music").classList.add("stretch"),!0),e&&document.querySelector("#nav-music meting-js").aplayer.toggle()},musicTelescopic:function(){anzhiyu_musicStretch=anzhiyu_musicStretch?(document.querySelector("#nav-music").classList.remove("stretch"),!1):(document.querySelector("#nav-music").classList.add("stretch"),!0)},musicSkipBack:function(){document.querySelector("#nav-music meting-js").aplayer.skipBack()},musicSkipForward:function(){document.querySelector("#nav-music meting-js").aplayer.skipForward()},musicGetName:function(){for(var e=$(".aplayer-title"),t=[],n=e.length-1;0<=n;n--)t[n]=e[n].innerText;return t[0]},darkModeStatus:function(){"light"==("dark"===document.documentElement.getAttribute("data-theme")?"dark":"light")?$(".menu-darkmode-text").text("深色模式"):$(".menu-darkmode-text").text("浅色模式")},initConsoleState:function(){document.documentElement.classList.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on")},showConsole:function(){var e=document.getElementById("console");"TA"===event.target.id&&e.classList.add("reward-show"),anzhiyu.initConsoleState()},hideConsole:function(){var e=document.getElementById("console");e.classList.contains("show")?e.classList.remove("show"):e.classList.contains("reward-show")&&e.classList.remove("reward-show")}},getTimeState=function(){var e=(new Date).getHours(),t="";return 0<=e&&e<=5?t="晚安😴":5<e&&e<=10?t="早上好👋":10<e&&e<=14?t="中午好👋":14<e&&e<=18?t="下午好👋":18<e&&e<=24&&(t="晚上好👋"),t};document.addEventListener("pjax:send",function(){anzhiyu.showLoading}),document.getElementById("page-name").innerText=document.title.split(" | 安知鱼")[0],anzhiyu.initIndexEssay(),anzhiyu.changeTimeInEssay(),anzhiyu.changeTimeInAlbumDetail(),anzhiyu.reflashEssayWaterFall(),anzhiyu.sayhi(),anzhiyu.stopImgRightDrag(),anzhiyu.addNavBackgroundInit(),addRightMenuClickEvent(),coverColor(),anzhiyuScrollFn();

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

"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function owoBig(){var e=1,o="",r=document.createElement("div"),c=(r.id="owo-big",document.querySelector("body"));c.appendChild(r),document.getElementById("post-comment").addEventListener("DOMNodeInserted",function(t){t.target.classList&&"OwO-body"==t.target.classList.value&&((t=t.target).addEventListener("contextmenu",function(t){return t.preventDefault()}),t.addEventListener("mouseover",function(i){"IMG"==i.target.tagName&&e&&(e=0,o=setTimeout(function(){var t=3*i.path[0].clientHeight,e=3*i.path[0].clientWidth,o=i.x-i.offsetX-(e-i.path[0].clientWidth)/2,n=(o+e>c.clientWidth&&(o-=o+e-c.clientWidth+10),o<0&&(o=10),i.y-i.offsetY);r.style.height=t+"px",r.style.width=e+"px",r.style.left=o+"px",r.style.top=n+"px",r.style.display="flex",r.innerHTML='<img src="'.concat(i.target.src,'">')},300))}),t.addEventListener("mouseout",function(t){r.style.display="none",e=1,clearTimeout(o)}))})}function isInViewPortOfOne(t){var e;if(t)return e=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,t.offsetTop-document.documentElement.scrollTop<=e}document.getElementById("post-comment")&&owoBig(),window.scrollPercent=btf.throttle(percent,48),window.addEventListener("scroll",scrollPercent);var scrollBottomFirstFlag=!1,musicDom=document.getElementById("nav-music"),footerDom=document.getElementById("footer"),waterfallDom=document.getElementById("waterfall"),percentBtn=document.getElementById("percent"),pageBottomDomFlag=document.getElementById("post-comment")||document.getElementById("footer");function percent(){footerDom&&musicDom&&768<document.body.clientWidth&&(musicDom.style.bottom=isInViewPortOfOne(footerDom)?"-10px":"20px",musicDom.style.opacity=isInViewPortOfOne(footerDom)?"0":"1");var t=document.documentElement.scrollTop||window.pageYOffset,e=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-document.documentElement.clientHeight,e=Math.round(t/e*100);e=0<=(e=e<=99?e:99)?e:0,isInViewPortOfOne(pageBottomDomFlag)||90<e?(document.getElementById("nav-totop").classList.add("long"),percentBtn.innerHTML="返回顶部",scrollBottomFirstFlag=!0):(document.getElementById("nav-totop").classList.remove("long"),percentBtn.innerHTML=e),waterfallDom&&(t=t%document.documentElement.clientHeight,!scrollBottomFirstFlag&&100+t>=document.documentElement.clientHeight?(console.info(t,document.documentElement.clientHeight),setTimeout(function(){waterfall("#waterfall")},500)):setTimeout(function(){waterfallDom&&waterfall("#waterfall")},500)),scrollBottomFirstFlag&&0!==e||!anzhiyu.is_Post()||anzhiyu.initThemeColor()}function totraveling(){btf.snackbarShow("即将跳转到「开往」项目的成员博客,不保证跳转网站的安全性和可用性",!1,5e3),setTimeout(function(){window.open("https://travellings.link/")},"5000")}function replaceAll(t,e,o){return t.split(e).join(o)}window.onkeydown=function(t){123===t.keyCode&&btf.snackbarShow("开发者模式已打开,请遵循GPL协议",!1)};var navFn={switchDarkMode:function(){"light"==("dark"===document.documentElement.getAttribute("data-theme")?"dark":"light")?(activateDarkMode(),saveToLocal.set("theme","dark",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night,!1,2e3)):(activateLightMode(),saveToLocal.set("theme","light",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day,!1,2e3)),"function"==typeof utterancesTheme&&utterancesTheme(),"object"===("undefined"==typeof FB?"undefined":_typeof(FB))&&window.loadFBComment(),window.DISQUS&&document.getElementById("disqus_thread").children.length&&setTimeout(function(){return window.disqusReset()},200);var t,e="light"===document.documentElement.getAttribute("data-theme")?"#363636":"#F7F7FA";document.getElementById("posts-chart")&&((t=postsOption).textStyle.color=e,t.title.textStyle.color=e,t.xAxis.axisLine.lineStyle.color=e,t.yAxis.axisLine.lineStyle.color=e,postsChart.setOption(t)),document.getElementById("tags-chart")&&((t=tagsOption).textStyle.color=e,t.title.textStyle.color=e,t.xAxis.axisLine.lineStyle.color=e,t.yAxis.axisLine.lineStyle.color=e,tagsChart.setOption(t)),document.getElementById("categories-chart")&&((t=categoriesOption).textStyle.color=e,t.title.textStyle.color=e,t.legend.textStyle.color=e,categoriesChart.setOption(t))}};function musicBindEvent(){document.querySelector("#nav-music .aplayer-music").addEventListener("click",function(){anzhiyu.musicTelescopic()}),document.querySelector("#nav-music .aplayer-button").addEventListener("click",function(){anzhiyu.musicToggle(!1)})}function dogePlayerInit(t){new DogePlayer({container:document.getElementById(t.container),userId:t.userId||4945,vcode:t.vcode,autoPlay:!1})}function hasMobile(){var t=!1;return navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)&&(t=!0),t=document.body.clientWidth<800?!0:t}function coverColor(){var o,t=null==(t=document.getElementById("post-top-bg"))?void 0:t.src,n=document.querySelector(":root");void 0!==t?((o=new XMLHttpRequest).open("GET",t+"?imageAve",!0),o.send(),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status){var t=o.responseText;try{var e=JSON.parse(t,function(t,e){return e}).RGB;"light"==getContrastYIQ(e="#"+e.slice(2))&&(e=LightenDarkenColor(colorHex(e),-40)),n.style.setProperty("--anzhiyu-bar-background",e),anzhiyu.initThemeColor(e)}catch(t){n.style.setProperty("--anzhiyu-bar-background","var(--anzhiyu-main)"),anzhiyu.initThemeColor(e)}}}):n.style.setProperty("--anzhiyu-bar-background","var(--anzhiyu-meta-theme-color)")}function colorHex(t){if(/^(rgb|RGB)/.test(t)){for(var e=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),o="#",n=0;n<e.length;n++){var i=Number(e[n]).toString(16);"0"===i&&(i+=i),o+=i}return o=7!==o.length?t:o}if(!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t))return t;var r=t.replace(/#/,"").split("");if(6===r.length)return t;if(3===r.length){for(var c="#",n=0;n<r.length;n+=1)c+=r[n]+r[n];return c}}function colorRgb(t){var e=t.toLowerCase();if(e&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e)){if(4===e.length){for(var o="#",n=1;n<4;n+=1)o+=e.slice(n,n+1).concat(e.slice(n,n+1));e=o}for(var i=[],n=1;n<7;n+=2)i.push(parseInt("0x"+e.slice(n,n+2)));return"rgb("+i.join(",")+")"}return e}function LightenDarkenColor(t,e){var o=!1,t=("#"==t[0]&&(t=t.slice(1),o=!0),parseInt(t,16)),n=(t>>16)+e,i=(255<n?n=255:n<0&&(n=0),(t>>8&255)+e),t=(255<i?i=255:i<0&&(i=0),(255&t)+e);return 255<t?t=255:t<0&&(t=0),(o?"#":"")+String("000000"+(t|i<<8|n<<16).toString(16)).slice(-6)}function getContrastYIQ(t){t=colorRgb(t).match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),t=299*t[1]+587*t[2]+114*t[3];return.5<=(t/=255e3)?"light":"dark"}
"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function owoBig(){var e=1,n="",r=document.createElement("div"),c=(r.id="owo-big",document.querySelector("body"));c.appendChild(r),document.getElementById("post-comment").addEventListener("DOMNodeInserted",function(t){t.target.classList&&"OwO-body"==t.target.classList.value&&((t=t.target).addEventListener("contextmenu",function(t){return t.preventDefault()}),t.addEventListener("mouseover",function(i){"IMG"==i.target.tagName&&e&&(e=0,n=setTimeout(function(){var t=3*i.path[0].clientHeight,e=3*i.path[0].clientWidth,n=i.x-i.offsetX-(e-i.path[0].clientWidth)/2,o=(n+e>c.clientWidth&&(n-=n+e-c.clientWidth+10),n<0&&(n=10),i.y-i.offsetY);r.style.height=t+"px",r.style.width=e+"px",r.style.left=n+"px",r.style.top=o+"px",r.style.display="flex",r.innerHTML='<img src="'.concat(i.target.src,'">')},300))}),t.addEventListener("mouseout",function(t){r.style.display="none",e=1,clearTimeout(n)}))})}function isInViewPortOfOne(t){var e;if(t)return e=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,t.offsetTop-document.documentElement.scrollTop<=e}function anzhiyuScrollFn(){var n=!1,o=document.getElementById("nav-music"),i=document.getElementById("footer"),r=document.getElementById("waterfall"),c=document.getElementById("percent"),l=document.getElementById("post-comment")||document.getElementById("footer");window.anzhiyuScrollFnToDo=btf.throttle(function(){i&&o&&768<document.body.clientWidth&&(o.style.bottom=isInViewPortOfOne(i)?"-10px":"20px",o.style.opacity=isInViewPortOfOne(i)?"0":"1");var t=document.documentElement.scrollTop||window.pageYOffset,e=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-document.documentElement.clientHeight,e=Math.round(t/e*100),e=Math.min(99,Math.max(0,e));isInViewPortOfOne(l)||90<e?(document.getElementById("nav-totop").classList.add("long"),c.textContent="返回顶部",n=!0):(document.getElementById("nav-totop").classList.remove("long"),c.textContent=e),r&&(e=t%document.documentElement.clientHeight,!n&&100+e>=document.documentElement.clientHeight?(console.info(e,document.documentElement.clientHeight),setTimeout(function(){waterfall("#waterfall")},500)):setTimeout(function(){r&&waterfall("#waterfall")},500))},48),window.addEventListener("scroll",anzhiyuScrollFnToDo)}function totraveling(){btf.snackbarShow("即将跳转到「开往」项目的成员博客,不保证跳转网站的安全性和可用性",!1,5e3),setTimeout(function(){window.open("https://travellings.link/")},"5000")}function replaceAll(t,e,n){return t.split(e).join(n)}document.getElementById("post-comment")&&owoBig(),window.onkeydown=function(t){123===t.keyCode&&btf.snackbarShow("开发者模式已打开,请遵循GPL协议",!1)};var navFn={switchDarkMode:function(){"light"==("dark"===document.documentElement.getAttribute("data-theme")?"dark":"light")?(activateDarkMode(),saveToLocal.set("theme","dark",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night,!1,2e3)):(activateLightMode(),saveToLocal.set("theme","light",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day,!1,2e3)),"function"==typeof utterancesTheme&&utterancesTheme(),"object"===("undefined"==typeof FB?"undefined":_typeof(FB))&&window.loadFBComment(),window.DISQUS&&document.getElementById("disqus_thread").children.length&&setTimeout(function(){return window.disqusReset()},200);var t,e="light"===document.documentElement.getAttribute("data-theme")?"#363636":"#F7F7FA";document.getElementById("posts-chart")&&((t=postsOption).textStyle.color=e,t.title.textStyle.color=e,t.xAxis.axisLine.lineStyle.color=e,t.yAxis.axisLine.lineStyle.color=e,postsChart.setOption(t)),document.getElementById("tags-chart")&&((t=tagsOption).textStyle.color=e,t.title.textStyle.color=e,t.xAxis.axisLine.lineStyle.color=e,t.yAxis.axisLine.lineStyle.color=e,tagsChart.setOption(t)),document.getElementById("categories-chart")&&((t=categoriesOption).textStyle.color=e,t.title.textStyle.color=e,t.legend.textStyle.color=e,categoriesChart.setOption(t))}};function musicBindEvent(){document.querySelector("#nav-music .aplayer-music").addEventListener("click",function(){anzhiyu.musicTelescopic()}),document.querySelector("#nav-music .aplayer-button").addEventListener("click",function(){anzhiyu.musicToggle(!1)})}function dogePlayerInit(t){new DogePlayer({container:document.getElementById(t.container),userId:t.userId||4945,vcode:t.vcode,autoPlay:!1})}function hasMobile(){var t=!1;return navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)&&(t=!0),t=document.body.clientWidth<800?!0:t}function coverColor(){var n,t=null==(t=document.getElementById("post-top-bg"))?void 0:t.src,o=document.querySelector(":root");void 0!==t?((n=new XMLHttpRequest).open("GET",t+"?imageAve",!0),n.send(),n.onreadystatechange=function(){if(4==n.readyState&&200==n.status){var t=n.responseText;try{var e=JSON.parse(t,function(t,e){return e}).RGB;"light"==getContrastYIQ(e="#"+e.slice(2))&&(e=LightenDarkenColor(colorHex(e),-40)),o.style.setProperty("--anzhiyu-bar-background",e),anzhiyu.initThemeColor()}catch(t){o.style.setProperty("--anzhiyu-bar-background","var(--anzhiyu-main)"),anzhiyu.initThemeColor()}}}):o.style.setProperty("--anzhiyu-bar-background","var(--anzhiyu-meta-theme-color)"),anzhiyu.initThemeColor()}function colorHex(t){if(/^(rgb|RGB)/.test(t)){for(var e=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),n="#",o=0;o<e.length;o++){var i=Number(e[o]).toString(16);"0"===i&&(i+=i),n+=i}return n=7!==n.length?t:n}if(!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t))return t;var r=t.replace(/#/,"").split("");if(6===r.length)return t;if(3===r.length){for(var c="#",o=0;o<r.length;o+=1)c+=r[o]+r[o];return c}}function colorRgb(t){var e=t.toLowerCase();if(e&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e)){if(4===e.length){for(var n="#",o=1;o<4;o+=1)n+=e.slice(o,o+1).concat(e.slice(o,o+1));e=n}for(var i=[],o=1;o<7;o+=2)i.push(parseInt("0x"+e.slice(o,o+2)));return"rgb("+i.join(",")+")"}return e}function LightenDarkenColor(t,e){var n=!1,t=("#"==t[0]&&(t=t.slice(1),n=!0),parseInt(t,16)),o=(t>>16)+e,i=(255<o?o=255:o<0&&(o=0),(t>>8&255)+e),t=(255<i?i=255:i<0&&(i=0),(255&t)+e);return 255<t?t=255:t<0&&(t=0),(n?"#":"")+String("000000"+(t|i<<8|o<<16).toString(16)).slice(-6)}function getContrastYIQ(t){t=colorRgb(t).match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),t=299*t[1]+587*t[2]+114*t[3];return.5<=(t/=255e3)?"light":"dark"}

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

"use strict";function _typeof(e){return(_typeof="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})(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var n;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}document.addEventListener("DOMContentLoaded",function(){function l(e){e&&(t=document.getElementById("site-name").offsetWidth,e=document.querySelectorAll("#menus .menus_item"),n=0,e.length&&e.forEach(function(e){n+=e.offsetWidth}),e=document.querySelector("#search-button"),o=e?e.offsetWidth:0,u=document.getElementById("nav")),window.innerWidth<=768||t+n+o>u.offsetWidth-120?u.classList.add("hide-menu"):u.classList.remove("hide-menu")}function d(){var e,t,n,a,c,o,r,s,l,d,i,u,m,f,h=GLOBAL_CONFIG.highlight;function g(e,t,n){var o,i=document.createDocumentFragment();c&&((o=document.createElement("div")).className="highlight-tools ".concat(d),o.innerHTML=s+e+l,o.addEventListener("click",m),i.appendChild(o)),a&&t.offsetHeight>a+30&&((e=document.createElement("div")).className="code-expand-btn",e.innerHTML='<i class="fas fa-angle-double-down"></i>',e.addEventListener("click",f),i.appendChild(e)),"hl"===n?t.insertBefore(i,t.firstChild):t.parentNode.insertBefore(i,t)}h&&(e=h.highlightCopy,t=h.highlightLang,n=GLOBAL_CONFIG_SITE.isHighlightShrink,a=h.highlightHeightLimit,c=e||t||void 0!==n,o="highlighjs"===h.plugin?document.querySelectorAll("figure.highlight"):document.querySelectorAll('pre[class*="language-"]'),(c||a)&&o.length&&(r="prismjs"===h.plugin,d=!(l=s="")===n?"closed":"",void 0!==n&&(s='<i class="fas fa-angle-down expand '.concat(d,'"></i>')),e&&(l='<div class="copy-notice"></div><i class="fas fa-paste copy-button"></i>'),i=function(e){var t,n=e.parentNode,o=(n.classList.add("copy-true"),window.getSelection()),i=document.createRange();r?i.selectNodeContents(n.querySelectorAll("pre code")[0]):i.selectNodeContents(n.querySelectorAll("table .code pre")[0]),o.removeAllRanges(),o.addRange(i),o.toString();i=e.lastChild,document.queryCommandSupported&&document.queryCommandSupported("copy")?(document.execCommand("copy"),void 0!==GLOBAL_CONFIG.Snackbar?btf.snackbarShow(GLOBAL_CONFIG.copy.success):((t=i.previousElementSibling).innerText=GLOBAL_CONFIG.copy.success,t.style.opacity=1,setTimeout(function(){t.style.opacity=0},700))):void 0!==GLOBAL_CONFIG.Snackbar?btf.snackbarShow(GLOBAL_CONFIG.copy.noSupport):i.previousElementSibling.innerText=GLOBAL_CONFIG.copy.noSupport,o.removeAllRanges(),n.classList.remove("copy-true")},u=function(e){var t=_toConsumableArray(e.parentNode.children).slice(1);e.firstChild.classList.toggle("closed"),btf.isHidden(t[t.length-1])?t.forEach(function(e){e.style.display="block"}):t.forEach(function(e){e.style.display="none"})},m=function(e){e=e.target.classList;e.contains("expand")?u(this):e.contains("copy-button")&&i(this)},f=function(){this.classList.toggle("expand-done")},t?r?o.forEach(function(e){var t=e.getAttribute("data-language")?e.getAttribute("data-language"):"Code",t='<div class="code-lang">'.concat(t,"</div>");btf.wrap(e,"figure",{class:"highlight"}),g(t,e)}):o.forEach(function(e){var t=e.getAttribute("class").split(" ")[1];g('<div class="code-lang">'.concat(t="plain"!==t&&void 0!==t?t:"Code","</div>"),e,"hl")}):r?o.forEach(function(e){btf.wrap(e,"figure",{class:"highlight"}),g("",e)}):o.forEach(function(e){g("",e,"hl")})))}var t,n,o,u,i=!1,m=function(){btf.sidebarPaddingR(),document.body.style.overflow="hidden",btf.animateIn(document.getElementById("menu-mask"),"to_show 0.5s"),document.getElementById("sidebar-menus").classList.add("open"),i=!0},a=function(){var e=document.body;e.style.overflow="",e.style.paddingRight="",btf.animateOut(document.getElementById("menu-mask"),"to_hide 0.5s"),document.getElementById("sidebar-menus").classList.remove("open"),i=!1};function f(){var n,o,i,a,c,e,r=document.getElementById("rightside"),s=window.innerHeight+56;document.body.scrollHeight<=s?r.style.cssText="opacity: 1; transform: translateX(-58px)":(o=!(n=0),i=document.getElementById("page-header"),a="function"==typeof chatBtnHide,c="function"==typeof chatBtnShow,e=btf.throttle(function(){var e,t=window.scrollY||document.documentElement.scrollTop;e=n<t,56<(n=t)?(e?(i.classList.contains("nav-visible")&&i.classList.remove("nav-visible"),c&&!0===o&&(chatBtnHide(),o=!1)):(i.classList.contains("nav-visible")||i.classList.add("nav-visible"),a&&!1===o&&(chatBtnShow(),o=!0)),i.classList.add("nav-fixed"),"0"===window.getComputedStyle(r).getPropertyValue("opacity")&&(r.style.cssText="opacity: 0.8; transform: translateX(-58px)")):(0===t&&(i.classList.remove("nav-fixed"),i.classList.remove("nav-visible")),r.style.cssText="opacity: ''; transform: ''"),document.body.scrollHeight<=s&&(r.style.cssText="opacity: 0.8; transform: translateX(-58px)")},200),window.scrollCollect=e,window.addEventListener("scroll",scrollCollect))}function h(){var c,e,r,s,i,l,d,u,m,f=GLOBAL_CONFIG_SITE.isToc,h=GLOBAL_CONFIG.isAnchor,a=document.getElementById("article-container");a&&(f||h)&&(f&&(e=document.getElementById("card-toc"),s=(r=e.getElementsByClassName("toc-content")[0]).querySelectorAll(".toc-link"),i=e.querySelector(".toc-percentage"),l=r.classList.contains("is-expand"),d=function(e){var t=a.clientHeight,n=document.documentElement.clientHeight,o=a.offsetTop,t=n<t?t-n:document.documentElement.scrollHeight-n,n=Math.round(100*((e-o)/t));i.textContent=100<n?100:n<=0?0:n},window.mobileToc={open:function(){e.style.cssText="animation: toc-open .3s; opacity: 1; right: 55px"},close:function(){e.style.animation="toc-close .2s",setTimeout(function(){e.style.cssText="opacity:''; animation: ''; right: ''"},100)}},r.addEventListener("click",function(e){e.preventDefault();var t=e.target.classList;t.contains("toc-content")||(t=t.contains("toc-link")?e.target:e.target.parentElement,btf.scrollToDest(btf.getEleTop(document.getElementById(decodeURI(t.getAttribute("href")).replace("#",""))),300),window.innerWidth<900&&window.mobileToc.close())}),c=function(e){var e=e.getBoundingClientRect().top,t=r.scrollTop;e>document.documentElement.clientHeight-100&&(r.scrollTop=t+150),e<100&&(r.scrollTop=t-150)}),u=a.querySelectorAll("h1,h2,h3,h4,h5,h6"),m="",window.tocScrollFn=function(){return btf.throttle(function(){var e=window.scrollY||document.documentElement.scrollTop,n=(f&&d(e),e);if(0!==n){var o="",i="";if(u.forEach(function(e,t){n>btf.getEleTop(e)-80&&(e=e.id,o=e?"#"+encodeURI(e):"",i=t)}),m!==i&&(h&&btf.updateAnchor(o),m=i,f&&(r.querySelectorAll(".active").forEach(function(e){e.classList.remove("active")}),""!==o))){var t=s[i];if(t.classList.add("active"),setTimeout(function(){c(t)},0),!l)for(var a=t.parentNode;!a.matches(".toc");a=a.parentNode)a.matches("li")&&a.classList.add("active")}}},100)()},window.addEventListener("scroll",tocScrollFn))}function g(e){e.forEach(function(e){var t=e.getAttribute("datetime");e.innerText=btf.diffDate(t,!0),e.style.display="inline"})}var c,r=function(){var t=document.body,n=(t.classList.add("read-mode"),document.createElement("button"));n.type="button",n.className="fas fa-sign-out-alt exit-readmode",t.appendChild(n),n.addEventListener("click",function e(){t.classList.remove("read-mode"),n.remove(),n.removeEventListener("click",e)})},s=function(){"light"==("dark"===document.documentElement.getAttribute("data-theme")?"dark":"light")?(activateDarkMode(),saveToLocal.set("theme","dark",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)):(activateLightMode(),saveToLocal.set("theme","light",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)),"function"==typeof utterancesTheme&&utterancesTheme(),"function"==typeof changeGiscusTheme&&changeGiscusTheme(),"object"===("undefined"==typeof FB?"undefined":_typeof(FB))&&window.loadFBComment&&window.loadFBComment(),"function"==typeof runMermaid&&window.runMermaid()},y=function(e){var t=document.getElementById("rightside-config-hide").classList;t.toggle("show"),e.classList.contains("show")&&(t.add("status"),setTimeout(function(){t.remove("status")},300)),e.classList.toggle("show")},p=function(){btf.scrollToDest(0,500)},b=function(){var e=document.documentElement.classList;e.contains("hide-aside")?saveToLocal.set("aside-status","show",2):saveToLocal.set("aside-status","hide",2),e.toggle("hide-aside")},L=function(){var e=document.querySelector("#console");e.classList.contains("show")?e.classList.remove("show"):e.classList.add("show")},v=function(){"0"===window.getComputedStyle(document.getElementById("card-toc")).getPropertyValue("opacity")?window.mobileToc.open():window.mobileToc.close()},E=(document.getElementById("rightside").addEventListener("click",function(e){var t=e.target.id?e.target:e.target.parentNode;switch(t.id){case"go-up":p();break;case"rightside_config":y(t);break;case"mobile-toc-button":v();break;case"readmode":r();break;case"darkmode":s();break;case"hide-aside-btn":b();break;case"center-console":L()}}),function(){document.querySelectorAll("#article-container .tab > button").forEach(function(e){e.addEventListener("click",function(e){var t,n,o,i=this.parentNode;i.classList.contains("active")||(t=i.parentNode.nextElementSibling,(o=btf.siblings(i,".active")[0])&&o.classList.remove("active"),i.classList.add("active"),n=this.getAttribute("data-href").replace("#",""),_toConsumableArray(t.children).forEach(function(e){e.id===n?e.classList.add("active"):e.classList.remove("active")}),0<(o=t.querySelectorAll("#".concat(n," .fj-gallery"))).length&&btf.initJustifiedGallery(o))})})}),w=function(){document.querySelectorAll("#article-container .tabs .tab-to-top").forEach(function(e){e.addEventListener("click",function(){btf.scrollToDest(btf.getEleTop(btf.getParents(this,".tabs")),300)})})};window.refreshFn=function(){l(!0),u.classList.add("show"),GLOBAL_CONFIG_SITE.isPost?(void 0!==GLOBAL_CONFIG.noticeOutdate&&(n=GLOBAL_CONFIG.noticeOutdate,(o=btf.diffDate(GLOBAL_CONFIG_SITE.postUpdate))>=n.limitDay&&((t=document.createElement("div")).className="post-outdate-notice",t.textContent=n.messagePrev+" "+o+" "+n.messageNext,o=document.getElementById("article-container"),"top"===n.position?o.insertBefore(t,o.firstChild):o.appendChild(t))),GLOBAL_CONFIG.relativeDate.post&&g(document.querySelectorAll("#post-meta time"))):(GLOBAL_CONFIG.relativeDate.homepage&&g(document.querySelectorAll("#recent-posts time")),GLOBAL_CONFIG.runtime&&(n=document.getElementById("runtimeshow"))&&(o=n.getAttribute("data-publishDate"),n.innerText=btf.diffDate(o)+" "+GLOBAL_CONFIG.runtime),(t=document.getElementById("last-push-date"))&&(e=t.getAttribute("data-lastPushDate"),t.innerText=btf.diffDate(e,!0)),(e=document.querySelectorAll("#aside-cat-list .card-category-list-item.parent i")).length&&e.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();this.classList.toggle("expand");e=this.parentNode.nextElementSibling;btf.isHidden(e)?e.style.display="block":e.style.display="none"})})),h(),GLOBAL_CONFIG_SITE.isHome&&(s=document.getElementById("scroll-down"))&&s.addEventListener("click",function(){btf.scrollToDest(document.getElementById("content-inner").offsetTop,300)}),d(),GLOBAL_CONFIG.isPhotoFigcaption&&document.querySelectorAll("#article-container img").forEach(function(e){var t,n=e.parentNode,o=e.title||e.alt;o&&!n.parentNode.classList.contains("justified-gallery")&&((t=document.createElement("div")).className="img-alt is-center",t.textContent=o,n.insertBefore(t,e.nextSibling))}),f();var e,t,n,o,i,a,c,r,s=document.querySelectorAll("#article-container .fj-gallery");s.length&&((i=s).forEach(function(e){e.querySelectorAll("img").forEach(function(e){var t=e.getAttribute("data-lazy-src");t&&(e.src=t),btf.wrap(e,"div",{class:"fj-gallery-item"})})}),window.fjGallery?setTimeout(function(){btf.initJustifiedGallery(i)},100):((a=document.createElement("link")).rel="stylesheet",a.href=GLOBAL_CONFIG.source.justifiedGallery.css,document.body.appendChild(a),getScript("".concat(GLOBAL_CONFIG.source.justifiedGallery.js)).then(function(){btf.initJustifiedGallery(i)}))),btf.loadLightbox(document.querySelectorAll("#article-container img:not(.no-lightbox)")),(a=document.querySelectorAll("#article-container :not(.highlight) > table, #article-container > table")).length&&a.forEach(function(e){btf.wrap(e,"div",{class:"table-wrap"})}),(r=document.querySelectorAll("#article-container .hide-button")).length&&r.forEach(function(e){e.addEventListener("click",function(e){this.classList.add("open");var t=this.nextElementSibling.querySelectorAll(".fj-gallery");t.length&&btf.initJustifiedGallery(t)})}),E(),w(),c=!1,(r=document.querySelector("#comment-switch > .switch-btn"))&&r.addEventListener("click",function(){this.classList.toggle("move"),document.querySelectorAll("#post-comment > .comment-wrap > div").forEach(function(e){btf.isHidden(e)?e.style.cssText="display: block;animation: tabshow .5s":e.style.cssText="display: none;animation: ''"}),c||"function"!=typeof loadOtherComment||(c=!0,loadOtherComment())}),document.getElementById("toggle-menu").addEventListener("click",function(){m()})},refreshFn(),window.addEventListener("resize",function(){l(!1),btf.isHidden(document.getElementById("toggle-menu"))&&i&&a()}),document.getElementById("menu-mask").addEventListener("click",function(e){a()}),document.querySelectorAll("#sidebar-menus .site-page.group").forEach(function(e){e.addEventListener("click",function(){this.classList.toggle("hide")})}),GLOBAL_CONFIG.islazyload&&(window.lazyLoadInstance=new LazyLoad({elements_selector:"img",threshold:0,data_src:"lazy-src"})),void 0!==GLOBAL_CONFIG.copyright&&(c=GLOBAL_CONFIG.copyright,document.body.oncopy=function(e){e.preventDefault();var t=window.getSelection(0).toString(),t=t.length>c.limitCount?t+"\n\n\n"+c.languages.author+"\n"+c.languages.link+window.location.href+"\n"+c.languages.source+"\n"+c.languages.info:t;return(e.clipboardData?e:window).clipboardData.setData("text",t)})});
"use strict";function _typeof(e){return(_typeof="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})(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var n;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}document.addEventListener("DOMContentLoaded",function(){function l(e){e&&(t=document.getElementById("site-name").offsetWidth,e=document.querySelectorAll("#menus .menus_item"),n=0,e.length&&e.forEach(function(e){n+=e.offsetWidth}),e=document.querySelector("#search-button"),o=e?e.offsetWidth:0,u=document.getElementById("nav")),window.innerWidth<=768||t+n+o>u.offsetWidth-120?u.classList.add("hide-menu"):u.classList.remove("hide-menu")}function d(){var e,t,n,a,c,o,s,r,l,d,i,u,m,f,h=GLOBAL_CONFIG.highlight;function g(e,t,n){var o,i=document.createDocumentFragment();c&&((o=document.createElement("div")).className="highlight-tools ".concat(d),o.innerHTML=r+e+l,o.addEventListener("click",m),i.appendChild(o)),a&&t.offsetHeight>a+30&&((e=document.createElement("div")).className="code-expand-btn",e.innerHTML='<i class="fas fa-angle-double-down"></i>',e.addEventListener("click",f),i.appendChild(e)),"hl"===n?t.insertBefore(i,t.firstChild):t.parentNode.insertBefore(i,t)}h&&(e=h.highlightCopy,t=h.highlightLang,n=GLOBAL_CONFIG_SITE.isHighlightShrink,a=h.highlightHeightLimit,c=e||t||void 0!==n,o="highlighjs"===h.plugin?document.querySelectorAll("figure.highlight"):document.querySelectorAll('pre[class*="language-"]'),(c||a)&&o.length&&(s="prismjs"===h.plugin,d=!(l=r="")===n?"closed":"",void 0!==n&&(r='<i class="fas fa-angle-down expand '.concat(d,'"></i>')),e&&(l='<div class="copy-notice"></div><i class="fas fa-paste copy-button"></i>'),i=function(e){var t,n=e.parentNode,o=(n.classList.add("copy-true"),window.getSelection()),i=document.createRange();s?i.selectNodeContents(n.querySelectorAll("pre code")[0]):i.selectNodeContents(n.querySelectorAll("table .code pre")[0]),o.removeAllRanges(),o.addRange(i),o.toString();i=e.lastChild,document.queryCommandSupported&&document.queryCommandSupported("copy")?(document.execCommand("copy"),void 0!==GLOBAL_CONFIG.Snackbar?btf.snackbarShow(GLOBAL_CONFIG.copy.success):((t=i.previousElementSibling).innerText=GLOBAL_CONFIG.copy.success,t.style.opacity=1,setTimeout(function(){t.style.opacity=0},700))):void 0!==GLOBAL_CONFIG.Snackbar?btf.snackbarShow(GLOBAL_CONFIG.copy.noSupport):i.previousElementSibling.innerText=GLOBAL_CONFIG.copy.noSupport,o.removeAllRanges(),n.classList.remove("copy-true")},u=function(e){var t=_toConsumableArray(e.parentNode.children).slice(1);e.firstChild.classList.toggle("closed"),btf.isHidden(t[t.length-1])?t.forEach(function(e){e.style.display="block"}):t.forEach(function(e){e.style.display="none"})},m=function(e){e=e.target.classList;e.contains("expand")?u(this):e.contains("copy-button")&&i(this)},f=function(){this.classList.toggle("expand-done")},t?s?o.forEach(function(e){var t=e.getAttribute("data-language")?e.getAttribute("data-language"):"Code",t='<div class="code-lang">'.concat(t,"</div>");btf.wrap(e,"figure",{class:"highlight"}),g(t,e)}):o.forEach(function(e){var t=e.getAttribute("class").split(" ")[1];g('<div class="code-lang">'.concat(t="plain"!==t&&void 0!==t?t:"Code","</div>"),e,"hl")}):s?o.forEach(function(e){btf.wrap(e,"figure",{class:"highlight"}),g("",e)}):o.forEach(function(e){g("",e,"hl")})))}var t,n,o,u,i=!1,m=function(){btf.sidebarPaddingR(),document.body.style.overflow="hidden",btf.animateIn(document.getElementById("menu-mask"),"to_show 0.5s"),document.getElementById("sidebar-menus").classList.add("open"),i=!0},a=function(){var e=document.body;e.style.overflow="",e.style.paddingRight="",btf.animateOut(document.getElementById("menu-mask"),"to_hide 0.5s"),document.getElementById("sidebar-menus").classList.remove("open"),i=!1};function f(){var n,o,i,a,c,e,s=document.getElementById("rightside"),r=window.innerHeight+56;document.body.scrollHeight<=r?s.style.cssText="opacity: 1; transform: translateX(-58px)":(o=!(n=0),i=document.getElementById("page-header"),a="function"==typeof chatBtnHide,c="function"==typeof chatBtnShow,e=btf.throttle(function(){var e,t=window.scrollY||document.documentElement.scrollTop;e=n<t,56<(n=t)?(e?(i.classList.contains("nav-visible")&&i.classList.remove("nav-visible"),c&&!0===o&&(chatBtnHide(),o=!1)):(i.classList.contains("nav-visible")||i.classList.add("nav-visible"),a&&!1===o&&(chatBtnShow(),o=!0)),i.classList.add("nav-fixed"),anzhiyu.initThemeColor(),"0"===window.getComputedStyle(s).getPropertyValue("opacity")&&(s.style.cssText="opacity: 0.8; transform: translateX(-58px)")):(0===t&&(i.querySelector(".bili-banner")||(i.classList.remove("nav-fixed"),i.classList.remove("nav-visible")),anzhiyu.initThemeColor()),s.style.cssText="opacity: ''; transform: ''"),document.body.scrollHeight<=r&&(s.style.cssText="opacity: 0.8; transform: translateX(-58px)")},200),window.scrollCollect=e,window.addEventListener("scroll",scrollCollect))}function h(){var c,e,s,r,i,l,d,u,m,f=GLOBAL_CONFIG_SITE.isToc,h=GLOBAL_CONFIG.isAnchor,a=document.getElementById("article-container");a&&(f||h)&&(f&&(e=document.getElementById("card-toc"),r=(s=e.getElementsByClassName("toc-content")[0]).querySelectorAll(".toc-link"),i=e.querySelector(".toc-percentage"),l=s.classList.contains("is-expand"),d=function(e){var t=a.clientHeight,n=document.documentElement.clientHeight,o=a.offsetTop,t=n<t?t-n:document.documentElement.scrollHeight-n,n=Math.round(100*((e-o)/t));i.textContent=100<n?100:n<=0?0:n},window.mobileToc={open:function(){e.style.cssText="animation: toc-open .3s; opacity: 1; right: 55px"},close:function(){e.style.animation="toc-close .2s",setTimeout(function(){e.style.cssText="opacity:''; animation: ''; right: ''"},100)}},s.addEventListener("click",function(e){e.preventDefault();var t=e.target.classList;t.contains("toc-content")||(t=t.contains("toc-link")?e.target:e.target.parentElement,btf.scrollToDest(btf.getEleTop(document.getElementById(decodeURI(t.getAttribute("href")).replace("#",""))),300),window.innerWidth<900&&window.mobileToc.close())}),c=function(e){var e=e.getBoundingClientRect().top,t=s.scrollTop;e>document.documentElement.clientHeight-100&&(s.scrollTop=t+150),e<100&&(s.scrollTop=t-150)}),u=a.querySelectorAll("h1,h2,h3,h4,h5,h6"),m="",window.tocScrollFn=function(){return btf.throttle(function(){var e=window.scrollY||document.documentElement.scrollTop,n=(f&&d(e),e);if(0!==n){var o="",i="";if(u.forEach(function(e,t){n>btf.getEleTop(e)-80&&(e=e.id,o=e?"#"+encodeURI(e):"",i=t)}),m!==i&&(h&&btf.updateAnchor(o),m=i,f&&(s.querySelectorAll(".active").forEach(function(e){e.classList.remove("active")}),""!==o))){var t=r[i];if(t.classList.add("active"),setTimeout(function(){c(t)},0),!l)for(var a=t.parentNode;!a.matches(".toc");a=a.parentNode)a.matches("li")&&a.classList.add("active")}}},100)()},window.addEventListener("scroll",tocScrollFn))}function g(e){e.forEach(function(e){var t=e.getAttribute("datetime");e.innerText=btf.diffDate(t,!0),e.style.display="inline"})}var c,s=function(){var t=document.body,n=(t.classList.add("read-mode"),document.createElement("button"));n.type="button",n.className="fas fa-sign-out-alt exit-readmode",t.appendChild(n),n.addEventListener("click",function e(){t.classList.remove("read-mode"),n.remove(),n.removeEventListener("click",e)})},r=function(){"light"==("dark"===document.documentElement.getAttribute("data-theme")?"dark":"light")?(activateDarkMode(),saveToLocal.set("theme","dark",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)):(activateLightMode(),saveToLocal.set("theme","light",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)),"function"==typeof utterancesTheme&&utterancesTheme(),"function"==typeof changeGiscusTheme&&changeGiscusTheme(),"object"===("undefined"==typeof FB?"undefined":_typeof(FB))&&window.loadFBComment&&window.loadFBComment(),"function"==typeof runMermaid&&window.runMermaid()},y=function(e){var t=document.getElementById("rightside-config-hide").classList;t.toggle("show"),e.classList.contains("show")&&(t.add("status"),setTimeout(function(){t.remove("status")},300)),e.classList.toggle("show")},p=function(){btf.scrollToDest(0,500)},b=function(){var e=document.documentElement.classList;e.contains("hide-aside")?saveToLocal.set("aside-status","show",2):saveToLocal.set("aside-status","hide",2),e.toggle("hide-aside")},L=function(){var e=document.getElementById("console");document.documentElement.classList.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on"),e.classList.contains("show")?e.classList.remove("show"):e.classList.add("show")},v=function(){"0"===window.getComputedStyle(document.getElementById("card-toc")).getPropertyValue("opacity")?window.mobileToc.open():window.mobileToc.close()},E=(document.getElementById("rightside").addEventListener("click",function(e){var t=e.target.id?e.target:e.target.parentNode;switch(t.id){case"go-up":p();break;case"rightside_config":y(t);break;case"mobile-toc-button":v();break;case"readmode":s();break;case"darkmode":r();break;case"hide-aside-btn":b();break;case"center-console":L()}}),function(){document.querySelectorAll("#article-container .tab > button").forEach(function(e){e.addEventListener("click",function(e){var t,n,o,i=this.parentNode;i.classList.contains("active")||(t=i.parentNode.nextElementSibling,(o=btf.siblings(i,".active")[0])&&o.classList.remove("active"),i.classList.add("active"),n=this.getAttribute("data-href").replace("#",""),_toConsumableArray(t.children).forEach(function(e){e.id===n?e.classList.add("active"):e.classList.remove("active")}),0<(o=t.querySelectorAll("#".concat(n," .fj-gallery"))).length&&btf.initJustifiedGallery(o))})})}),w=function(){document.querySelectorAll("#article-container .tabs .tab-to-top").forEach(function(e){e.addEventListener("click",function(){btf.scrollToDest(btf.getEleTop(btf.getParents(this,".tabs")),300)})})};window.refreshFn=function(){l(!0),u.classList.add("show"),GLOBAL_CONFIG_SITE.isPost?(void 0!==GLOBAL_CONFIG.noticeOutdate&&(n=GLOBAL_CONFIG.noticeOutdate,(o=btf.diffDate(GLOBAL_CONFIG_SITE.postUpdate))>=n.limitDay&&((t=document.createElement("div")).className="post-outdate-notice",t.textContent=n.messagePrev+" "+o+" "+n.messageNext,o=document.getElementById("article-container"),"top"===n.position?o.insertBefore(t,o.firstChild):o.appendChild(t))),GLOBAL_CONFIG.relativeDate.post&&g(document.querySelectorAll("#post-meta time"))):(GLOBAL_CONFIG.relativeDate.homepage&&g(document.querySelectorAll("#recent-posts time")),GLOBAL_CONFIG.runtime&&(n=document.getElementById("runtimeshow"))&&(o=n.getAttribute("data-publishDate"),n.innerText=btf.diffDate(o)+" "+GLOBAL_CONFIG.runtime),(t=document.getElementById("last-push-date"))&&(e=t.getAttribute("data-lastPushDate"),t.innerText=btf.diffDate(e,!0)),(e=document.querySelectorAll("#aside-cat-list .card-category-list-item.parent i")).length&&e.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();this.classList.toggle("expand");e=this.parentNode.nextElementSibling;btf.isHidden(e)?e.style.display="block":e.style.display="none"})})),h(),GLOBAL_CONFIG_SITE.isHome&&(r=document.getElementById("scroll-down"))&&r.addEventListener("click",function(){btf.scrollToDest(document.getElementById("content-inner").offsetTop,300)}),d(),GLOBAL_CONFIG.isPhotoFigcaption&&document.querySelectorAll("#article-container img").forEach(function(e){var t,n=e.parentNode,o=e.title||e.alt;o&&!n.parentNode.classList.contains("justified-gallery")&&((t=document.createElement("div")).className="img-alt is-center",t.textContent=o,n.insertBefore(t,e.nextSibling))}),f();var e,t,n,o,i,a,c,s,r=document.querySelectorAll("#article-container .fj-gallery");r.length&&((i=r).forEach(function(e){e.querySelectorAll("img").forEach(function(e){var t=e.getAttribute("data-lazy-src");t&&(e.src=t),btf.wrap(e,"div",{class:"fj-gallery-item"})})}),window.fjGallery?setTimeout(function(){btf.initJustifiedGallery(i)},100):((a=document.createElement("link")).rel="stylesheet",a.href=GLOBAL_CONFIG.source.justifiedGallery.css,document.body.appendChild(a),getScript("".concat(GLOBAL_CONFIG.source.justifiedGallery.js)).then(function(){btf.initJustifiedGallery(i)}))),btf.loadLightbox(document.querySelectorAll("#article-container img:not(.no-lightbox)")),(a=document.querySelectorAll("#article-container :not(.highlight) > table, #article-container > table")).length&&a.forEach(function(e){btf.wrap(e,"div",{class:"table-wrap"})}),(s=document.querySelectorAll("#article-container .hide-button")).length&&s.forEach(function(e){e.addEventListener("click",function(e){this.classList.add("open");var t=this.nextElementSibling.querySelectorAll(".fj-gallery");t.length&&btf.initJustifiedGallery(t)})}),E(),w(),c=!1,(s=document.querySelector("#comment-switch > .switch-btn"))&&s.addEventListener("click",function(){this.classList.toggle("move"),document.querySelectorAll("#post-comment > .comment-wrap > div").forEach(function(e){btf.isHidden(e)?e.style.cssText="display: block;animation: tabshow .5s":e.style.cssText="display: none;animation: ''"}),c||"function"!=typeof loadOtherComment||(c=!0,loadOtherComment())}),document.getElementById("toggle-menu").addEventListener("click",function(){m()})},refreshFn(),window.addEventListener("resize",function(){l(!1),btf.isHidden(document.getElementById("toggle-menu"))&&i&&a()}),document.getElementById("menu-mask").addEventListener("click",function(e){a()}),document.querySelectorAll("#sidebar-menus .site-page.group").forEach(function(e){e.addEventListener("click",function(){this.classList.toggle("hide")})}),GLOBAL_CONFIG.islazyload&&(window.lazyLoadInstance=new LazyLoad({elements_selector:"img",threshold:0,data_src:"lazy-src"})),void 0!==GLOBAL_CONFIG.copyright&&(c=GLOBAL_CONFIG.copyright,document.body.oncopy=function(e){e.preventDefault();var t=window.getSelection(0).toString(),t=t.length>c.limitCount?t+"\n\n\n"+c.languages.author+"\n"+c.languages.link+window.location.href+"\n"+c.languages.source+"\n"+c.languages.info:t;return(e.clipboardData?e:window).clipboardData.setData("text",t)})});

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

{"name":"anzhiyu-blog","version":"2.1.5","description":"博客静态资源","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/anzhiyu-c/anzhiyu-c.github.io.git"},"keywords":["anzhiyu","blog"],"author":"anzhiyu","license":"ISC","bugs":{"url":"https://github.com/anzhiyu-c/anzhiyu-c.github.io/issues"},"homepage":"https://github.com/anzhiyu-c/anzhiyu-c.github.io#readme"}
{"name":"anzhiyu-blog","version":"2.1.6","description":"博客静态资源","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/anzhiyu-c/anzhiyu-c.github.io.git"},"keywords":["anzhiyu","blog"],"author":"anzhiyu","license":"ISC","bugs":{"url":"https://github.com/anzhiyu-c/anzhiyu-c.github.io/issues"},"homepage":"https://github.com/anzhiyu-c/anzhiyu-c.github.io#readme"}

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

"use strict";var workboxVersion="5.1.3";importScripts("https://storage.googleapis.com/workbox-cdn/releases/".concat(workboxVersion,"/workbox-sw.js")),workbox.core.setCacheNameDetails({prefix:"安知鱼"}),workbox.core.skipWaiting(),workbox.core.clientsClaim(),workbox.precaching.precacheAndRoute([{revision:"b7d2aa9d8fe90f9079b4e39bea052b59",url:"./404.html"},{revision:"1bd4b4d57c4c068fe6298f130f43333b",url:"./index.html"},{revision:"38b232de3c9e5ab12a2adf764300733f",url:"./js/main.js"},{revision:"212962d8361cdb4e60d5846427881a5f",url:"./css/index.css"},{revision:"8190796a570d269ef04b777d93d44e6d",url:"./img/404.jpg"},{revision:"88450dd56ea1a00ba772424b30b7d34d",url:"./img/algolia.svg"},{revision:"c2d4a57cd6abff978d2c52ee974c74a9",url:"./img/avatar.jpg"},{revision:"8ae5a79610a0d180e897627550311181",url:"./img/avatar.webp"},{revision:"34a79bf208a1c3bee9d6e491a00cd369",url:"./img/comment_bg.png"},{revision:"463fd720116f4237a0dbf0330c144bf9",url:"./img/favicon.ico"},{revision:"d8499ef17be10a92728a69f02f2cf947",url:"./img/favicon.png"},{revision:"68af0be9d22722e74665ef44dd532ba8",url:"./img/friend_404.gif"},{revision:"2f4249413c1f598aadc57ac4c587c5bd",url:"./img/x1.cur"},{revision:"a08852037090515a0a193e7d54b18441",url:"./img/x2.cur"}],{directoryIndex:null}),workbox.precaching.cleanupOutdatedCaches(),workbox.routing.registerRoute(/\.(?:png|jpg|jpeg|gif|bmp|webp|svg|ico)$/,new workbox.strategies.CacheFirst({cacheName:"images",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/\.(?:eot|ttf|woff|woff2)$/,new workbox.strategies.CacheFirst({cacheName:"fonts",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/^https:\/\/fonts\.googleapis\.com/,new workbox.strategies.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets"})),workbox.routing.registerRoute(/^https:\/\/fonts\.gstatic\.com/,new workbox.strategies.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/^https:\/\/npm\.elemecdn\.com\/anzhiyu-blog/,new workbox.strategies.CacheFirst({cacheName:"static-libs",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/^https:\/\/alist\.anzhiy\.cn/,new workbox.strategies.CacheFirst({cacheName:"alist-anzhiy-cn",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.googleAnalytics.initialize();
"use strict";var workboxVersion="5.1.3";importScripts("https://storage.googleapis.com/workbox-cdn/releases/".concat(workboxVersion,"/workbox-sw.js")),workbox.core.setCacheNameDetails({prefix:"安知鱼"}),workbox.core.skipWaiting(),workbox.core.clientsClaim(),workbox.precaching.precacheAndRoute([{revision:"8542f181d022b054a697e12030035855",url:"./404.html"},{revision:"bb1bec58b4644bba8c00b11c94d09436",url:"./index.html"},{revision:"1e423f47f32651e55d2cdb5e495122f9",url:"./js/main.js"},{revision:"ee668ad29264ba6e769a521f763d861c",url:"./css/index.css"},{revision:"8190796a570d269ef04b777d93d44e6d",url:"./img/404.jpg"},{revision:"88450dd56ea1a00ba772424b30b7d34d",url:"./img/algolia.svg"},{revision:"c2d4a57cd6abff978d2c52ee974c74a9",url:"./img/avatar.jpg"},{revision:"8ae5a79610a0d180e897627550311181",url:"./img/avatar.webp"},{revision:"34a79bf208a1c3bee9d6e491a00cd369",url:"./img/comment_bg.png"},{revision:"463fd720116f4237a0dbf0330c144bf9",url:"./img/favicon.ico"},{revision:"d8499ef17be10a92728a69f02f2cf947",url:"./img/favicon.png"},{revision:"68af0be9d22722e74665ef44dd532ba8",url:"./img/friend_404.gif"},{revision:"2f4249413c1f598aadc57ac4c587c5bd",url:"./img/x1.cur"},{revision:"a08852037090515a0a193e7d54b18441",url:"./img/x2.cur"}],{directoryIndex:null}),workbox.precaching.cleanupOutdatedCaches(),workbox.routing.registerRoute(/\.(?:png|jpg|jpeg|gif|bmp|webp|svg|ico)$/,new workbox.strategies.CacheFirst({cacheName:"images",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/\.(?:eot|ttf|woff|woff2)$/,new workbox.strategies.CacheFirst({cacheName:"fonts",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/^https:\/\/fonts\.googleapis\.com/,new workbox.strategies.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets"})),workbox.routing.registerRoute(/^https:\/\/fonts\.gstatic\.com/,new workbox.strategies.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/^https:\/\/npm\.elemecdn\.com\/anzhiyu-blog/,new workbox.strategies.CacheFirst({cacheName:"static-libs",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/^https:\/\/alist\.anzhiy\.cn/,new workbox.strategies.CacheFirst({cacheName:"alist-anzhiy-cn",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.googleAnalytics.initialize();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc