app.js 48 KB

123
  1. /*! For license information please see app.js.LICENSE.txt */
  2. (()=>{var e,t,n,o,r,s={3394:(e,t,n)=>{n.d(t,{m:()=>s});const o={src:"data-src",srcset:"data-srcset",selector:".lazyload",root:null,rootMargin:"0px",threshold:0};class r{constructor(e,t){this.settings={...o,...t},this.elms=e||document.querySelectorAll(this.settings.selector),this.init()}elms;obs=null;settings;init(){if(!IntersectionObserver)return void this.load();const e=this;this.obs=new IntersectionObserver((function(t){Array.prototype.forEach.call(t,(function(t){t.isIntersecting&&(e.obs.unobserve(t.target),e.doLoad(t.target))}))}),{root:this.settings.root,rootMargin:this.settings.rootMargin,threshold:[this.settings.threshold]}),this.elms.forEach((t=>{e.obs.observe(t)}))}loadAndDestroy(){this.settings&&(this.load(),this.destroy())}load(){if(!this.settings)return;const{settings:e}=this;Array.prototype.forEach.call(this.elms,this.doLoad)}doLoad=e=>{const{settings:t}=this,n=e.getAttribute(t.src),o=e.getAttribute(t.srcset),r=e.tagName.toLowerCase();"video"===r?n&&(e.src=n):"img"===r?(n&&(e.src=n),o&&(e.srcset=o)):e.style.backgroundImage="url('"+n+"')"};destroy(){this.settings&&(this.obs.disconnect(),this.settings=null)}}const s=(e,t)=>new r(e,t)},1513:(e,t,n)=>{n.d(t,{U:()=>a,G:()=>i});n(6077);const o=_iro.cookie_version_control||"";const r=navigator.userAgent,s=Array.from(r.matchAll(/(Firefox|Chrome|Version|OPR|Edg)\/(\d+)/gi));function i(e){for(const[t,n,o]of s)if(parseFloat(o)>=e[n])return!0;return!1}const a=function(){const e=["image/*,*/*;q=0.8"];return i({Chrome:59,OPR:46,Firefox:3,Edg:79,Version:8})&&(e.push("image/apng"),i({Chrome:32,OPR:19,Firefox:65,Edg:18,Version:14})&&(!function(e,t,n){const r=n?"; expires="+new Date(Date.now()+24*n*60*60*1e3).toUTCString():"";document.cookie=e+o+"="+(t||"")+r+"; path=/"}("su_webp","1",114514),e.push("image/webp"),i({Chrome:85,OPR:71,Firefox:93})&&e.push("image/avif"))),e.reverse().join(",")}()},5396:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(7698),r=n(3173);const s=["# 商业转载请联系作者获得授权,非商业转载请注明出处。","# For commercial use, please contact the author for authorization. For non-commercial use, please indicate the source.","# 协议(License):署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)","# 作者(Author):"+_iro.author_name,"# 链接(URL):"+window.location.href,"# 来源(Source):"+_iro.site_name];function i(e){const t=window.getSelection();if(t){const n=t.toString();n.length>30&&(!function(e,t){e.preventDefault();const n=s.join("<br>")+"<br><br>"+t.replace(/\r\n/g,"<br>"),o=s.join("\n")+"\n\n"+t.toString().replace(/\r\n/g,"\n");if(e.clipboardData)e.clipboardData.setData("text/html",n),e.clipboardData.setData("text/plain",o);else if(window.clipboardData)window.clipboardData.setData("text",o)}(e,n),(0,o.f)((0,r.__)("复制成功!"),1e3))}}function a(){_iro.clipboardCopyright&&(document.body.removeEventListener("copy",i),document.body.addEventListener("copy",i))}},1936:(e,t,n)=>{n.d(t,{sk:()=>h,Rj:()=>b,U7:()=>y,k:()=>m,Tk:()=>f});n(38);function o(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function r(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=o(n);return(e,n)=>r.then((o=>n(o.transaction(t,e).objectStore(t))))}const s=r("sakurairo","cache");var i=n(1513),a=n(3173),c=n(9142),l=n(7698);let d=1,u="";async function m(){h(await b(!0)),d++}async function f(){d--,h(await b(!0))}const g=document.querySelector(".centerbg"),h=_iro.site_bg_as_cover?e=>{document.body.style.backgroundImage=`url(${e})`,document.dispatchEvent(new CustomEvent("coverBG_change",{detail:e}))}:g?e=>{g.style.backgroundImage=`url(${e})`,document.dispatchEvent(new CustomEvent("coverBG_change",{detail:e}))}:()=>{};function p(e){const t=e?.match(/^url\("(.+)"\)$/);if(t)return t[1]}const y=_iro.site_bg_as_cover?()=>p(document.body.style.backgroundImage):()=>p(g.style.backgroundImage);function v(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=new URL(_iro.cover_api);return(0,c.t)()&&1==_iro.random_graphs_mts?(t.searchParams.set("type","mobile"),t.toString()+(e?"&"+d:"")):t.toString()+(e?(""===t.search?"?":"&")+d:"")}const b=_iro.cache_cover?function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(t="cover",s("readonly",(e=>o(e.get(t))))).then((t=>t&&t instanceof ArrayBuffer?(URL.revokeObjectURL(u),u="",u=URL.createObjectURL(new Blob([t])),u):v(e))).finally((()=>{!async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{const t=await fetch(v(e),{headers:{Accept:i.U}});if(500==t.status){const e=await t.json();(0,l.f)(e.message),console.warn(e.message)}else if(t.ok){const e=await t.arrayBuffer();try{((e,t)=>{s("readwrite",(n=>(n.put(t,e),o(n.transaction))))})("cover",e)}catch(e){console.warn(e)}}}catch(e){e instanceof TypeError&&(console.warn((0,a.__)("你的封面API好像不支持跨域调用,这种情况下缓存是不会生效的哦")),(e=>{s("readwrite",(t=>(t.delete(e),o(t.transaction))))})("cover"))}}(e)}));var t}:v},2001:(e,t,n)=>{n.d(t,{B3:()=>l,Lg:()=>d,N2:()=>s,q1:()=>m});const o=window.matchMedia("(prefers-color-scheme:dark)");let r=!1;const s=()=>r;function i(e){e!==r&&(document.dispatchEvent(new CustomEvent("darkmode",{detail:e})),r=e)}function a(){localStorage.getItem("dark")||(o.matches&&_iro.darkmode?l():d())}function c(e){e==u()?localStorage.removeItem("dark"):1==e?localStorage.setItem("dark","1"):localStorage.setItem("dark","0")}function l(e){document.documentElement.style.backgroundColor="#333",document.getElementsByClassName("site-content")[0].style.backgroundColor="#333",document.body.classList.add("dark"),e&&c(!0),i(!0)}function d(e){document.documentElement.style.backgroundColor="",document.getElementsByClassName("site-content")[0].style.backgroundColor="rgba(255, 255, 255, .8)",document.body.classList.remove("dark"),document.body.classList.remove("dynamic"),i(!1),e&&c(!1)}function u(){switch(_iro.dm_strategy){case"client":return o.matches;case"eien":return!0;default:return function(){const e=new Date;return e.getHours()>21||e.getHours()<7}()}}function m(){const e=localStorage.getItem("dark");e?"1"==e?l():d():u()&&_iro.darkmode?l():d()}"client"===_iro.dm_strategy&&(o.removeEventListener?o.removeEventListener("change",a):o.removeListener(a),o.addEventListener?o.addEventListener("change",a):o.addListener(a))},5329:(e,t,n)=>{n.d(t,{T:()=>u,y:()=>l});var o=n(7698),r=n(3173),s=n(9142);let i,a;function c(e){return()=>{const{name:t}=e.dataset;t!=localStorage.getItem("font_family")&&("serif"==t?((0,s.t)()&&(0,o.f)((0,r.__)("将从网络加载字体,流量请注意")),document.body.classList.add("serif"),localStorage.setItem("font_family","serif"),d("serif")):(document.body.classList.remove("serif"),localStorage.setItem("font_family","sans-serif"),d("sans-serif")))}}function l(){const e=localStorage.getItem("font_family");e&&"serif"!=e||document.body.classList.add("serif")}function d(e){"sans-serif"===e||"sans-serif"==localStorage.getItem("font_family")?(i.classList.remove("selected"),a.classList.add("selected")):(a.classList.remove("selected"),i.classList.add("selected"))}function u(){const e=(i=document.getElementsByClassName("control-btn-serif")[0],a=document.getElementsByClassName("control-btn-sans-serif")[0],a&&i);e||localStorage.removeItem("font_family"),l(),e&&(d(),i.addEventListener("click",c(i)),a.addEventListener("click",c(a)))}},3957:(e,t,n)=>{async function o(){const e=document.getElementById("footer_yiyan");if(e){const t=_iro.yiyan_api||["https://api.maho.cc/yiyan/"];0==t.length&&console.warn("一言API: 路径为空");for(const n of t)try{const t=await r(n);e.innerText=t;break}catch(e){console.warn(`一言API: 尝试联系"${n}"时出错。 `,e);continue}}}n.d(t,{Z:()=>o});const r=async e=>{const t=await fetch(e,{headers:{Accept:"application/json"}});if(t.ok){const e=await t.json(),n=("null"==e.from_who?null:e.from_who)||"",o=e.from!=e.from_who?`「${e.from}」`:"";return e.hitokoto+"——"+n+o}throw t.status}},9142:(e,t,n)=>{n.d(t,{T:()=>r,t:()=>i});let o=!1;function r(){const e=window.matchMedia("(max-width:860px)");o=e.matches,e.addEventListener?e.addEventListener("change",s):e.addListener(s)}function s(e){o=e.matches}const i=()=>o},1236:(e,t,n)=>{n.d(t,{Z:()=>o});n(38);function o(){for(const e of document.querySelectorAll(".showcard")){const t=e.querySelector(".img"),n=e.querySelector(".showcard-button");if(!t||!n)throw new Error("invalid structure for .showcard");t.addEventListener("mouseover",(function(){n.classList.add("hover")})),t.addEventListener("mouseout",(function(){n.classList.remove("hover")}))}}},9428:(e,t,n)=>{n.d(t,{Z:()=>i,d:()=>s});var o=n(2493);let r;function s(){r&&(r.destroy(),r=null)}async function i(){const e=document.getElementById("typed-js-initial");if(e)try{const t=JSON.parse(e.innerHTML),s=document.querySelector(".element");if(s.innerText="",_iro.ext_shared_lib)window.Typed||await(0,o.V)("lib/typed.min.js","typed.js"),r=new window.Typed(s,t);else{const{default:e}=await n.e(842).then(n.bind(n,8842));r=new e(s,t)}}catch(e){console.error("请检查typed.js设置",e)}}},2533:(e,t,n)=>{n.d(t,{$Q:()=>p,Ce:()=>g,MB:()=>h,ze:()=>y});var o=n(8451),r=n(3173),s=n(2493);const i=document.getElementById("bgvideo"),a=_iro.movies.name?.split(",")||[];let c=new Array(a.length).fill(0).map(((e,t)=>t)),l=[];const d=()=>{0==c.length&&(c=new Array(a.length).fill(0).map(((e,t)=>t)));const e=Math.floor(Math.random()*c.length);return a[c.splice(e,1)[0]]};function u(){const e=document.getElementsByClassName("video-stu")[0],t=d();e.innerHTML=(0,r.__)("正在载入视频 ..."),e.style.bottom="0px",i.setAttribute("src",new URL(t,_iro.movies.url||location.origin).toString()),i.setAttribute("video-name",(0,o.cG)(t))}function m(){const e=document.getElementById("video-btn");e&&(e.classList.add("video-pause"),e.classList.remove("video-play"),e.style.display="");try{if(document.querySelector(".video-stu").style.bottom="-100px",document.querySelector(".focusinfo").style.top="-999px",_iro.float_player_on)return void Promise.all([n.e(200),n.e(347)]).then(n.bind(n,200)).then((e=>{let{pauseAllPlayer:t}=e;l=t(),i.play()}))}catch(e){console.warn(e)}i.play()}function f(){const e=document.getElementById("video-btn");e&&(e.classList.add("video-play"),e.classList.remove("video-pause"));try{document.querySelector(".focusinfo").style.top="49.3%"}catch{}i.pause();for(const e of l)e.play()}function g(){i&&null!=i.oncanplay&&document.querySelector(".haslive")&&document.querySelector(".videolive")&&m()}function h(){if(i&&null!=i.oncanplay&&document.querySelector(".haslive")){f();const e=document.getElementsByClassName("video-stu")[0];e.style.bottom="0px",e.innerHTML=(0,r.__)("已暂停...")}}function p(){const e=document.getElementById("video-btn");e&&e.addEventListener("click",(function(){this.classList.contains("loadvideo")?(this.classList.add("video-pause"),this.classList.remove("loadvideo"),u(),i.oncanplay=()=>{m(),document.getElementById("video-add").style.display="block",e.classList.add("videolive","haslive")}):this.classList.contains("video-pause")?(f(),e.classList.remove("videolive"),document.getElementsByClassName("video-stu")[0].style.bottom="0px",document.getElementsByClassName("video-stu")[0].innerHTML=(0,r.__)("已暂停...")):(m(),e.classList.add("videolive")),i.onended=function(){i.setAttribute("src",""),document.getElementById("video-add").style.display="none",document.querySelector(".focusinfo").style.top="49.3%",e&&(e.classList.add("loadvideo"),e.classList.remove("video-pause","videolive","haslive"),_iro.movies.loop&&e.click())}}));const t=document.getElementById("video-add");t&&t.addEventListener("click",u)}async function y(){!async function(){const e=document.querySelectorAll("video.hls");if(0==e.length)return;if(e[0].canPlayType("application/vnd.apple.mpegurl"))for(const t of e)t.src=t.dataset.src||t.src,t.autoplay=!0;else{if(!window.Hls)try{if(_iro.ext_shared_lib)await(0,s.V)("dist/hls.light.min.js","hls.js");else{const{default:e}=await n.e(933).then(n.t.bind(n,933,23));window.Hls=e}}catch(e){console.warn("Hls load failed: ",e)}Hls.isSupported()||console.error("Hls: Media Source Extensions is unsupported.");for(const t of e){const e=new Hls;e.loadSource(t.dataset.src||t.src),e.attachMedia(t),e.on(Hls.Events.MANIFEST_PARSED,(()=>{t.play()}))}}}(),async function(){document.querySelectorAll("video.lazyload").forEach((e=>e.addEventListener("canplay",v)))}()}function v(){this.poster=""}},4478:(e,t,n)=>{n.d(t,{k:()=>r});var o=n(3173);function r(){if(!_iro.audio)return;const e=window.AudioContext||window.webkitAudioContext;if(e){let t,n=0;const r=1,i=function(){const e=o.o.opt.web_audio?.sheet;if("string"==typeof e)return e.split(" ");if(e instanceof Array)return e}()||s,a=document.querySelectorAll(".site-title, #moblieGoTop, .site-branding, .searchbox, .changeSkin-gear, .menu-list li"),c="♪ ♩ ♫ ♬ ♭ € § ¶ ♯".split(" "),l=new e,d=e=>{if(t)return;let s=i[n];s||(n=0,s=i[n]),n+=r;const a=l.createOscillator(),d=l.createGain(),u=l.createGain();a.connect(d),d.connect(u),u.connect(l.destination),u.gain.setValueAtTime(o.o.opt.web_audio?.main_gain||1,l.currentTime),a.type="sine",a.frequency.value=s,d.gain.setValueAtTime(0,l.currentTime),d.gain.linearRampToValueAtTime(1,l.currentTime+.01),a.start(l.currentTime),d.gain.exponentialRampToValueAtTime(.001,l.currentTime+1),a.stop(l.currentTime+1);const m=Math.round(7*Math.random()),f=e.pageX,g=e.pageY-5;t=document.createElement("b"),t.textContent=c[m],t.style.zIndex="99999",t.style.top=g-100+"px",t.style.left=f+"px",t.style.position="absolute",t.style.color="#FF6EB4",document.body.appendChild(t),t.animate([{top:g+"px"},{opacity:0}],{duration:500}),setTimeout((()=>{t.remove(),t=null}),500)};a.forEach((e=>{e.addEventListener("mouseenter",d)}))}}const s="880 987 1046 987 1046 1318 987 659 659 880 784 880 1046 784 659 659 698 659 698 1046 659 1046 1046 1046 987 698 698 987 987 880 987 1046 987 1046 1318 987 659 659 880 784 880 1046 784 659 698 1046 987 1046 1174 1174 1174 1046 1046 880 987 784 880 1046 1174 1318 1174 1318 1567 1046 987 1046 1318 1318 1174 784 784 880 1046 987 1174 1046 784 784 1396 1318 1174 659 1318 1046 1318 1760 1567 1567 1318 1174 1046 1046 1174 1046 1174 1567 1318 1318 1760 1567 1318 1174 1046 1046 1174 1046 1174 987 880 880 987 880".split(" ")},7698:(e,t,n)=>{function o(){const e=document.getElementsByClassName("butterBar");if(e.length>0)for(let t=0;t<e.length;t++)e[t].remove()}function r(e,t){o();const n=document.createElement("div"),r=document.createElement("p");return n.classList.add("butterBar","butterBar--center"),r.classList.add("butterBar-message"),r.innerHTML=e,n.appendChild(r),document.body.appendChild(n),!0!==t&&setTimeout((()=>{o()}),"number"==typeof t?t:6e3),n}n.d(t,{f:()=>r})},2493:(e,t,n)=>{n.d(t,{V:()=>d,i:()=>c});var o=n(8451);const r="sakurairo_prefer_cdn",s=[["https://jsd.nmxc.ltd/npm/","@","/",""],["https://cdn.jsdelivr.net/npm/","@","/",""],["https://unpkg.com/","@","/",""]];const i=function(){const e=localStorage.getItem(r);if(e){const t=parseInt(e);return isNaN(t)||t>=s.length?(localStorage.removeItem(r),0):t}return 0}(),a={raw:s[i]},c=(e,t,n)=>String.raw(a,t,n||{"@fancyapps/fancybox":"3.5.7","@kotorik/palette":"2.1.0","@mui/utils":"5.11.13","@sliphua/pjax":"2.4.0","baguettebox.js":"1.11.1",buffer:"6.0.3","change-case":"4.1.2",clipboard:"2.0.11","color-space":"2.0.0","fg-loadcss":"3.1.0","highlight.js":"11.7.0","highlightjs-line-numbers.js":"2.8.0","hls.js":"1.3.5","idb-keyval":"6.2.0",jquery:"3.6.4",lightgallery:"2.7.1","lottie-web":"5.10.2",mathjax:"3.2.2",md5:"2.3.0",nprogress:"0.2.0","particles.js":"2.0.0",prismjs:"1.29.0","promise-worker":"2.0.1","smoothscroll-for-websites":"1.4.10","textarea-caret-position":"0.1.1",tocbot:"4.20.1",tslib:"2.5.0","typed.js":"2.0.14",vue:"3.2.47"}[t]||"latest",e);function l(e){const t=s[i][0];if(e.match(t))return!0}(0,o.Cd)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e4,t=0,n=0;const o=new PerformanceObserver(((e,o)=>{for(const o of e.getEntries())if(l(o.name)){n++;const{transferSize:e}=o;0==e&&t++}}));o.observe({entryTypes:["resource"]}),setTimeout((()=>{if(o.disconnect(),t/n>.7){const e=i+1;localStorage.setItem(r,(e>=s.length?0:e).toString())}}),e)}));const d=(e,t,n)=>{const o=document.createElement("script");return o.src=c(e,t,n),o.async=!0,new Promise((e=>{o.onload=e,o.onerror=()=>{console.error(t,"加载失败")},document.body.append(o)})).finally((()=>{o.onload=o.onerror=null}))}},3173:(e,t,n)=>{n.d(t,{_$:()=>r,__:()=>o,o:()=>s,t:()=>i});const o=e=>window._sakurairoi18n&&_sakurairoi18n[e]||e,r=function(e){let t=o(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];for(const e in r)t=t.replace("{"+e+"}",r[e]);return t},s={opt:{},build:{hash:"53f31d4",date:"2023/4/16"}},i=(e,t)=>Object.defineProperty(s,e,{value:t,writable:!1,enumerable:!0});if("_sakurairo"in window){const e=window._sakurairo;"opt"in e&&(s.opt=e.opt)}window._sakurairo=s},8451:(e,t,n)=>{n.d(t,{Cd:()=>i,NB:()=>r,bf:()=>l,cG:()=>a,wy:()=>c});n(6077);let o=[];const r=e=>{let t=!1;return function(){if(!t){t=!0;try{const n=e(...arguments);return n instanceof Promise?n.finally((()=>t=!1)):t=!1,n}catch(e){console.warn(e),t=!1}}}},s=()=>{document.removeEventListener("DOMContentLoaded",s);for(const e of o)e();o=[]},i=function(e){if("loading"!==document.readyState)return e();0==o.length&&document.addEventListener("DOMContentLoaded",s,!1),o.push(e)},a=e=>e.replace(/\.\w+$/,"");function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3?arguments[3]:void 0;const r=e;r.status=r.status||getComputedStyle(r,null).display;const s="none"!=r.status;1==s&&"show"==n||0==s&&"hide"==n||(r.status=s?"none":"block",r.style.transition="height "+t/1e3+"s",r.style.overflow="hidden",clearTimeout(r.tagTimer),r.tagTimer=r.tagTimer||null,r.style.display="block",r.tagHeight=r.tagHeight||r.clientHeight+"px",r.style.display="",r.style.height=s?r.tagHeight:"0px",setTimeout((()=>{r.style.height=s?"0px":r.tagHeight}),0),r.tagTimer=setTimeout((()=>{r.style.display=s?"none":"block",r.style.transition="",r.style.overflow="",r.style.height="",r.status=r.tagHeight=null}),t),o&&o())}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=new URL(e),{searchParams:r}=o;for(const[e,n]of Object.entries(t))r.set(e,n);return n&&r.set("_wpnonce",_iro.nonce),o.toString()}},7982:(e,t,n)=>{n.d(t,{CE:()=>T,MN:()=>k,LP:()=>L,PE:()=>x,bp:()=>I,RD:()=>S,D9:()=>E,H5:()=>B,po:()=>M,nO:()=>b,Gl:()=>A,DH:()=>C,j6:()=>_});var o=n(3394),r=n(8451),s=n(1936),i=n(9142);const a=document.getElementById("main-container");function c(){document.body.classList.toggle("navOpen"),a.classList.toggle("open"),document.getElementById("mo-nav").classList.toggle("open"),document.querySelector(".openNav").classList.toggle("open"),document.querySelector(".site-header").classList.toggle("open")}function l(){c(),document.documentElement.style.overflow="unset",a.removeEventListener("click",l)}var d=n(2533),u=n(3173);let m;function f(e,t,n,o,r,s,i){if(e){const t=e.trim().split(" "),n=o.indexOf(t[t.length-1]),r=i.indexOf(t[t.length-1]);o=(o=n<60?o.slice(0,80):o.slice(n-30,n+30)).replace(t[t.length-1],'<mark class="search-keyword"> '+t[t.length-1].toUpperCase()+" </mark>"),i=(i=r<60?i.slice(0,80):i.slice(r-30,r+30)).replace(t[t.length-1],'<mark class="search-keyword"> '+t[t.length-1].toUpperCase()+" </mark>")}return`<div class="ins-selectable ins-search-item" href="${t}"><header><i class="fa-solid ${n}" aria-hidden="true"></i>${o}<i class="fa-solid ${r}">${s}</i></header><p class="ins-search-preview">${i}</p></div>`}function g(e,t){let n="",o="",r="",s="",i="",a="";const c='<section class="ins-section"><header class="ins-section-header">',l="</section>",d="</header>",m=function(e,t){for(let e=0;e<t.length;e++)-1!=[".","?","*"].indexOf(t[e])&&(t=t.slice(0,e)+"\\"+t.slice(e),e++);return t=t.replace(t,"^(?=.*?"+t+").+$").replace(/\s/g,")(?=.*?"),e.filter((e=>Object.values(e).some((e=>new RegExp(t+"").test(e)))))}(e,t.trim());for(const e of m)switch(e.type){case"post":o+=f(t,e.link,"fa-inbox",e.title,"fa-comments",e.comments,e.text);break;case"tag":i+=f("",e.link,"fa-tag",e.title,"none","","");break;case"category":s+=f("",e.link,"fa-folder",e.title,"none","","");break;case"page":r+=f(t,e.link,"fa-file",e.title,"fa-comments",e.comments,e.text);break;case"comment":a+=f(t,e.link,"fa-comment",e.title,"none","",e.text)}o&&(n=n+c+(0,u.__)("文章")+d+o+l),r&&(n=n+c+(0,u.__)("页面")+d+r+l),s&&(n=n+c+(0,u.__)("分类")+d+s+l),i&&(n=n+c+(0,u.__)("标签")+d+i+l),a&&(n=n+c+(0,u.__)("评论")+d+a+l),document.getElementById("PostlistBox").innerHTML=n}function h(){const e=document.querySelector(".search_close"),t=document.getElementById("Ty");for(const n of document.getElementsByClassName("ins-selectable"))n.addEventListener("click",(()=>{t.href=n.getAttribute("href"),t.click(),e.click()}))}function p(){if(document.getElementsByClassName("js-toggle-search")[0].classList.toggle("is-active"),document.getElementsByClassName("js-search")[0].classList.toggle("is-visible"),document.documentElement.style.overflowY="hidden",_iro.live_search){m=[],function(e){const t=document.getElementById("search-input");null!=sessionStorage.getItem("search")?(m=JSON.parse(sessionStorage.getItem("search")),g(m,t.value),h()):fetch(e).then((async e=>{if(e.ok){const n=await e.text();""!=n&&(sessionStorage.setItem("search",n),m=JSON.parse(n),g(m,t.value),h())}else console.warn("HTTP "+e.status)})).catch((e=>console.warn(e)))}((0,r.bf)(_iro.api+"sakura/v1/cache_search/json"));let e=document.getElementById("search-input"),t=null;e.oninput=function(){null!=t&&clearTimeout(t),t=setTimeout((function(){g(m,e.value),h()}),250)}}}var y=n(2001),v=!0;function b(){if(!1===v){const e=document.querySelector(".pattern-center"),t=document.querySelector(".headertop-bar");e&&(e.classList.remove("pattern-center"),e.classList.add("pattern-center-sakura")),t&&(t.classList.remove("headertop-bar"),t.classList.add("headertop-bar-sakura"))}else{const e=document.querySelector(".pattern-center-sakura"),t=document.querySelector(".headertop-bar-sakura");e&&(e.classList.remove("pattern-center-sakura"),e.classList.add("pattern-center")),t&&(t.classList.remove("headertop-bar-sakura"),t.classList.add("headertop-bar"))}}async function w(e){let t;switch(v="white-bg"==e||"dark-bg"==e,b(),e){case"white-bg":if(_iro.site_bg_as_cover)return void(0,s.sk)(await(0,s.Rj)());t=_iro.skin_bg0;break;case"diy1-bg":t=_iro.skin_bg1;break;case"diy2-bg":t=_iro.skin_bg2;break;case"diy3-bg":t=_iro.skin_bg3;break;case"diy4-bg":t=_iro.skin_bg4}document.body.style.backgroundImage=t?`url(${t})`:""}function E(){const e=document.getElementById("bg-next"),t=document.getElementById("bg-pre");e&&(e.onclick=s.k),t&&(t.onclick=s.Tk)}function _(e){let t=document.getElementById("archives");if(null==t)return;let n=t.getElementsByClassName("al_mon");if(1==e)t.addEventListener("click",(e=>{e.target.classList.contains("al_mon")&&(e.preventDefault(),(0,r.wy)(e.target.nextElementSibling,500))})),(0,o.m)();else{let e=document.getElementById("al_expand_collapse");e.style.cursor="s-resize";for(let e=0;e<n.length;e++){let t=n[e],o=t.nextElementSibling.getElementsByTagName("li").length;t.style.cursor="s-resize",t.querySelector("#post-num").textContent=o}const o=t.getElementsByClassName("al_post_list"),s=o[0],a=()=>{(0,r.wy)(s,500,"show")};for(const e of o)(0,r.wy)(e,500,"hide",a);if(t.addEventListener("click",(e=>{e.target.classList.contains("al_mon")&&((0,r.wy)(e.target.nextElementSibling,500),e.preventDefault())})),!(0,i.t)()){for(let e=0;e<o.length;e++){let t=o[e];t.parentNode.addEventListener("mouseover",(()=>((0,r.wy)(t,500,"show"),!1)))}0;let t=0;e.addEventListener("click",(()=>{if(0==t){for(let e=0;e<o.length;e++){let t=o[e];(0,r.wy)(t,500,"show")}t++}else if(1==t){for(let e=0;e<o.length;e++){let t=o[e];(0,r.wy)(t,500,"hide")}t--}}))}}}function k(){const e=document.querySelector(".iconflat");e&&e.addEventListener("click",(e=>{e.stopPropagation(),document.body.classList.contains("navOpen")?l():(c(),document.documentElement.style.overflow="hidden",a.addEventListener("click",l))}))}function L(){document.body.classList.contains("navOpen")&&l()}function S(){if("auto"==_iro.windowheight){if(document.querySelector("h1.main-title")){const e=document.getElementById("centerbg"),t=document.getElementById("bgvideo");e&&(e.style.height="100vh"),t&&(t.style.minHeight="100vh")}}else{const e=document.querySelector(".headertop");e&&e.classList.add("headertop-bar")}}function x(){const e=document.querySelector(".headertop");if(e){let t=document.querySelector(".blank");if(document.querySelector(".main-title")){try{t.style.paddingTop="0px"}catch(e){}e.style.height="auto",e.style.display="",_iro.movies.live&&(0,d.Ce)()}else{try{t.style.paddingTop="75px"}catch(e){}e.style.height="0px",e.style.display="none",(0,d.MB)()}}}function T(){let e=document.querySelector(".comments-fold"),t=document.querySelector(".comments-main");null!=e&&(e.style.display="block",t.style.display="none",e.addEventListener("click",(()=>{(0,r.wy)(t,500,"show"),e.style.display="none"})));let n=document.getElementsByClassName("archives");if(n.length>0){for(let e=1;e<n.length;e++)n[e].style.display="none";n[0].style.display="";let e=document.getElementById("archives-temp").getElementsByTagName("h3");const t=e=>{e.preventDefault(),e.stopPropagation(),(0,r.wy)(e.target.nextElementSibling,300)};for(let n=0;n<e.length;n++)e[n].addEventListener("click",t)}for(const e of document.getElementsByClassName("js-toggle-search"))e.addEventListener("click",p);const o=document.querySelector(".search_close");o&&o.addEventListener("click",(()=>{let e=document.getElementsByClassName("js-search")[0];e.classList.contains("is-visible")&&(document.getElementsByClassName("js-toggle-search")[0].classList.toggle("is-active"),e.classList.toggle("is-visible"),document.documentElement.style.overflowY="unset")}));try{const e=document.getElementById("loading");e.addEventListener("click",(()=>{e.classList.add("hide"),e.classList.remove("show")}))}catch(e){}}function C(){const e=document.getElementById("show-nav");e&&e.addEventListener("click",(()=>{const t=document.querySelector(".site-top .lower nav");e.classList.contains("showNav")?(e.classList.remove("showNav"),e.classList.add("hideNav"),t&&t.classList.add("navbar")):(e.classList.remove("hideNav"),e.classList.add("showNav"),t&&t.classList.remove("navbar"))}))}function I(){const e=document.querySelectorAll(".menu-list li"),t=e=>{const t=e.target.id||e.target.parentElement.id;"dark-bg"==t?(0,y.B3)(!0):((0,y.Lg)(!0),w(t),localStorage.setItem("bgImgSetting",t)),A()};for(const n of e)n.addEventListener("click",t)}function B(){return w(localStorage.getItem("bgImgSetting")||"white-bg")}async function M(){_iro.site_bg_as_cover||_iro.land_at_home&&((0,s.U7)()||(0,s.sk)(await(0,s.Rj)()))}function A(){document.querySelector(".skin-menu").classList.remove("show"),setTimeout((()=>{const e=document.querySelector(".changeSkin-gear");null!=e&&(e.style.visibility="visible")}),300)}},3577:()=>{window.imgError=function(e,t){switch(t){case 1:e.src="https://s.nmxc.ltd/sakurairo_vision/@2.6/basic/friendlink.jpg";break;case 2:e.src="https://sdn.geekzu.org/avatar/?s=80&d=mm&r=g";break;default:e.src="https://s.nmxc.ltd/sakurairo_vision/@2.6/basic/image-404.png"}},window.cmt_showPopup=function(e){let t=e.querySelector("#thePopup");t.classList.add("show"),e.querySelector("input").onblur=()=>{t.classList.remove("show")}},window.coverVideo=function(){let e=document.getElementById("coverVideo"),t=document.getElementById("cv-pc");if(e.paused){e.play();try{t.innerHTML='<i class="fa-solid fa-pause"></i>'}catch{}}else{e.pause();try{t.innerHTML='<i class="fa-solid fa-play"></i>'}catch{}}},window.coverVideoMute=function(){const e=document.getElementById("coverVideo"),t=document.getElementById("cv-vc");e.muted?(e.muted=!1,t.innerHTML='<i class="fa-solid fa-volume-high"></i>'):(e.muted=!0,t.innerHTML='<i class="fa-solid fa-volume-off"></i>')},window.killCoverVideo=function(){var e=document.getElementById("coverVideo"),t=document.getElementById("cv-pc");if(e.paused);else{e.pause();try{t.innerHTML='<i class="fa-solid fa-play"></i>'}catch(e){}}},window.mail_me=function(){window.open("mailto:"+_iro.email_name+"@"+_iro.email_domain)},window.headertop_down=function(){let e=document.getElementById("content").getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:e,behavior:"smooth"})}},2849:(e,t,n)=>{var o=n(1936),r=n(5396),s=(n(9966),n(3394)),i=(n(3577),n(8451));function a(e){if(document.documentElement.style.overflowY="unset",0!=_iro.preload_blur)try{return void(e.animate([{filter:"blur(0px)",backdropFilter:"blur(10px)",opacity:1},{backdropFilter:"blur(0px)grayscale(0)",opacity:.1},{opacity:0,filter:"blur(100px)"}],{duration:_iro.preload_blur,fill:"forwards",easing:"ease"}).onfinish=()=>{e.remove()})}catch(e){console.warn(e)}e.classList.add("hide"),e.classList.remove("show"),setTimeout((()=>e.remove()),233)}var c=n(1513),l=n(3957),d=n(4478),u=n(1809);Math.max(499,491,487,503);const m={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]};var f={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"],whitepoint:{2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}}};f.max=f.whitepoint[2].D65,f.rgb=function(e,t){t=t||f.whitepoint[2].E;var n,o,r,s=e[0]/t[0],i=e[1]/t[1],a=e[2]/t[2];return o=-.96924363628087*s+1.87596750150772*i+.041555057407175*a,r=.055630079696993*s+-.20397695888897*i+1.056971514242878*a,n=(n=3.240969941904521*s+-1.537383177570093*i+-.498610760293*a)>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(n=Math.min(Math.max(0,n),1)),255*(o=Math.min(Math.max(0,o),1)),255*(r=Math.min(Math.max(0,r),1))]},m.xyz=function(e,t){var n=e[0]/255,o=e[1]/255,r=e[2]/255,s=.21263900587151*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.71516867876775*(o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92)+.072192315360733*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92),i=.019330818715591*n+.11919477979462*o+.95053215224966*r;return[(.41239079926595*n+.35758433938387*o+.18048078840183*r)*(t=t||f.whitepoint[2].E)[0],s*t[1],i*t[2]]};function g(e,t){const n=document.createElement("canvas"),o=n.getContext("2d");return n.height=t,n.width=e,o}function h(e,t){return new OffscreenCanvas(e,t).getContext("2d")}f.lab=function(e){var t=e[0],n=e[1],o=e[2];return n/=100,o/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]};p.bind(void 0,g),p.bind(void 0,h);function p(e,t){const{naturalWidth:n,naturalHeight:o}=t,r=e(n,o);return r.drawImage(t,0,0,n,o),r.getImageData(0,0,n,o)}const y=v.bind(void 0,g);v.bind(void 0,h);function v(e,t,n){const{naturalWidth:o,naturalHeight:r}=t,s=o*r/n;if(s>1){const n=o/Math.sqrt(s),i=r/Math.sqrt(s),a=e(n,i);return a.drawImage(t,0,0,n,i),a.getImageData(0,0,n,i)}{const n=e(o,r);return n.drawImage(t,0,0),n.getImageData(0,0,o,r)}}var b=n(3492),w=n.n(b),E=n(2001);let _,k;async function L(e){try{const t=document.createElement("img");t.src=e,t.crossOrigin="anonymous",await function(e){return new Promise(((t,n)=>{e.complete?t():(e.addEventListener("load",(e=>{t(e)})),e.addEventListener("error",(e=>{n(e)})))}))}(t);const n=y(t,1e4),o=await _.postMessage({k:8,img:n}),{label:r,centroid:s}=o,i=Math.max(...r),a=r.findIndex((e=>e==i));k=s[a],S()}catch(e){console.error(e),x(getComputedStyle(document.documentElement).getPropertyValue("--theme-skin-matching"))}}function S(e){const t=m.hsl(k);(void 0===e?(0,E.N2)():e)&&(t[2]*=.5),x(function(e){let[t,n,o,r]=e;return r?"hsla("+t+"deg,"+n+"%,"+o+"%,"+r+")":"hsl("+t+"deg,"+n+"%,"+o+"%)"}(t))}function x(e){const t=document.querySelector("meta[name=theme-color]");t&&(t.content=e)}function T(){const{effect:e}=_iro;e&&("yuki"==e.type?n.e(865).then(n.bind(n,7865)):n.e(170).then(n.bind(n,5170))),async function(){const e=document.getElementById("particles-js-cfg");if(e)try{await n.e(689).then(n.t.bind(n,689,23)),particlesJS("particles-js",JSON.parse(e.innerHTML))}catch(e){console.error(e)}}()}m.hsl=function(e){var t,n,o=e[0]/255,r=e[1]/255,s=e[2]/255,i=Math.min(o,r,s),a=Math.max(o,r,s),c=a-i;return a===i?t=0:o===a?t=(r-s)/c:r===a?t=2+(s-o)/c:s===a&&(t=4+(o-r)/c),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+a)/2,[t,100*(a===i?0:n<=.5?c/(a+i):c/(2-a-i)),100*n]};var C=n(9142),I=n(5329);var B=n(7982),M=n(9428),A=n(1236),q=n(7481),j=n.n(q),N=n(2533);(0,C.T)(),_iro.pjax=_iro.pjax&&(0,c.G)({Firefox:60,Edg:79,Chrome:66,OPR:53,Version:12}),_iro.pjax&&n.e(497).then(n.bind(n,1497)).then((e=>{let{default:t}=e;return t()})),(0,B.j6)(),(0,r.Z)(),setTimeout((function(){!function(){let e=document.getElementById("secondary");if((0,C.t)())e&&e.remove();else{let t=document.querySelector(".show-hide");t&&t.addEventListener("click",(()=>{e&&e.classList.toggle("active")}))}}()}),100),window.addEventListener("hashchange",(()=>{const e=location.hash.substring(1);if(!/^[A-z0-9_-]+$/.test(e))return;const t=document.getElementById(e);t&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())}),!1),(0,E.q1)(),(0,i.Cd)((function(){_iro.float_player_on&&((0,C.t)()||Promise.all([n.e(200),n.e(347)]).then(n.bind(n,200)).then((e=>{let{aplayerInit:t}=e;return t()}))),_iro.land_at_home&&(0,M.Z)(),Promise.all([(0,B.po)(),(0,B.H5)()]).then((()=>{if((0,c.G)({Version:15})){_||(_=new(w())(new Worker(new URL(n.p+n.u(375),n.b)))),document.addEventListener("coverBG_change",(e=>{let{detail:t}=e;return L(t)})),document.addEventListener("darkmode",(e=>{let{detail:t}=e;return S(t)}));const e=(0,o.U7)();e&&L(e)}})),(0,B.bp)();let e=document.querySelector("#changskin"),t=document.querySelector(".skin-menu #close-skinMenu");e&&e.addEventListener("click",(function(){document.querySelector(".skin-menu").classList.toggle("show")})),t&&t.addEventListener("click",B.Gl),function(){const e=document.querySelector(".site-header"),t=document.querySelector("#changskin"),n=document.querySelector("#moblieGoTop"),o=o=>{o>0?e.classList.add("yya"):e.classList.remove("yya");const r=o>20?"scale(1)":"scale(0)";n.style.transform=r,t.style.transform=r};if((0,C.t)()){const e=()=>{const e=document.documentElement.scrollTop||document.body.scrollTop;o(e)};window.addEventListener("scroll",e)}else{const e=document.getElementById("bar"),t=document.querySelector(".skin-menu"),n=n=>{const o=document.documentElement.scrollHeight||document.body.scrollHeight,r=Math.round(n/(o-window.innerHeight)*100);e.style.width=r+"%",t&&t.classList.remove("show")},r=()=>{const e=document.documentElement.scrollTop||document.body.scrollTop;n(e),o(e)};window.addEventListener("scroll",r)}}();const r=document.querySelector("#moblieGoTop");r&&(r.onclick=()=>{window.scrollTo({top:0,behavior:"smooth"})}),(0,u.A)(),(0,B.MN)(),(0,N.$Q)(),(0,l.Z)(),(0,B.D9)(),(0,I.T)(),(0,B.RD)(),(0,B.PE)(),(0,B.CE)(),(0,B.DH)(),(0,d.k)(),function(){const e=document.getElementById("preload");if(e){if("complete"===document.readyState)return a(e);window.addEventListener("load",(()=>{a(e)}))}}(),(0,s.m)(),(0,A.Z)(),j().colorful=!0,j().shake=!1,document.body.addEventListener("input",j()),(0,u.O)(),(0,N.ze)(),(0,B.nO)(),T(),function(){const e="background: linear-gradient(to bottom right, #7b2a52, #36307f,#272151);color:#fff";console.log("%c Sakurairo %c https://github.com/mirai-mamori/Sakurairo",e,""),console.log("誰もが信じ崇めてる\nまさに最強で無敵のアイドル\n弱点なんて見当たらない\n一番星を宿している\n弱いとこなんて見せちゃダメダメ\n知りたくないとこは見せずに\n唯一無二じゃなくちゃイヤイヤ\nそれこそ%c本物のアイ%c\n%c ⌜IDOL⌟ ","color:#b424b8","",e)}()}))},1809:(e,t,n)=>{n.d(t,{A:()=>d,O:()=>c});var o=n(8451),r=n(3394),s=n(3173);let i;const a=(0,o.NB)((function(){const e=document.location.href,t=document.querySelector("#pagination a");t.classList.contains("loading")||(t.classList.add("loading"),t.innerText="",fetch(t.getAttribute("href")+"#main").then((async n=>{const o=await n.text();if(e!=document.location.href)return;const i=(new DOMParser).parseFromString(o,"text/html"),a=i.querySelectorAll("#main .post"),l=i.querySelector("#pagination a"),d=l&&l.innerText,u=l&&l.getAttribute("href"),m=document.getElementById("main");for(let e=0;e<a.length;e++)m.append(a[e]);const f=document.querySelector("#pagination a"),g=document.querySelector("#add_post span");if(f&&(f.classList.remove("loading"),f.innerText=d),g&&(g.classList.remove("loading"),g.innerText=""),(0,r.m)(),c(),document.dispatchEvent(new CustomEvent("ajax_post_loaded")),null!=u){t.setAttribute("href",u);let e=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop;window.scrollTo({top:e+300,behavior:"smooth"})}else document.getElementById("pagination").innerHTML="<span>"+(0,s.__)("很高兴你翻到这里,但是真的没有了...")+"</span>"})))}));function c(){const e=document.querySelectorAll("article.post-list-thumb");if(e){const t=new IntersectionObserver((e=>{e.forEach((e=>{e.target.classList.contains("post-list-show")?(e.target.style.willChange="auto",t.unobserve(e.target)):e.isIntersecting&&(e.target.classList.add("post-list-show"),e.target.style.willChange="auto",t.unobserve(e.target))}))}),{root:null,threshold:[.66]});for(const n of e)t.observe(n)}}function l(e){"pagination"==e.target.parentElement.id&&(e.preventDefault(),e.stopPropagation(),clearTimeout(i),a())}function d(){new IntersectionObserver((e=>{if(e[0].intersectionRatio<=0)return;const t=document.querySelector("#pagination a");if(t){const e=t.getAttribute("href"),n=document.getElementById("add_post_time");if(null!=e&&n){const e=n.title;"233"!=e&&(console.log("%c 自动加载时倒计时 %c","background:#9a9da2; color:#ffffff; border-radius:4px;","","",e),i=setTimeout(a,1e3*e))}}})).observe(document.querySelector(".footer-device")),document.body.removeEventListener("click",l),document.body.addEventListener("click",l)}},9966:function(e,t,n){var o;o=void 0!==n.g?n.g:this,t.loadCSS=function(e,t,n,r){var s,i=o.document,a=i.createElement("link");if(t)s=t;else{var c=(i.body||i.getElementsByTagName("head")[0]).childNodes;s=c[c.length-1]}var l=i.styleSheets;if(r)for(var d in r)r.hasOwnProperty(d)&&a.setAttribute(d,r[d]);a.rel="stylesheet",a.href=e,a.media="only x",function e(t){if(i.body)return t();setTimeout((function(){e(t)}))}((function(){s.parentNode.insertBefore(a,t?s:s.nextSibling)}));var u=function(e){for(var t=a.href,n=l.length;n--;)if(l[n].href===t)return e();setTimeout((function(){u(e)}))};function m(){a.addEventListener&&a.removeEventListener("load",m),a.media=n||"all"}return a.addEventListener&&a.addEventListener("load",m),a.onloadcssdefined=u,u(m),a}},7481:function(e){var t;t=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){var o=document.createElement("canvas");o.width=window.innerWidth,o.height=window.innerHeight,o.style.cssText="position:fixed;top:0;left:0;pointer-events:none;z-index:999999",window.addEventListener("resize",(function(){o.width=window.innerWidth,o.height=window.innerHeight})),document.body.appendChild(o);var r=o.getContext("2d"),s=[],i=0,a=!1;function c(e,t){return Math.random()*(t-e)+e}function l(e){if(u.colorful){var t=c(0,360);return"hsla("+c(t-10,t+10)+", 100%, "+c(50,80)+"%, 1)"}return window.getComputedStyle(e).color}function d(e,t,n){return{x:e,y:t,alpha:1,color:n,velocity:{x:2*Math.random()-1,y:2*Math.random()-3.5}}}function u(){for(var e=function(){var e,t=document.activeElement;if("TEXTAREA"===t.tagName||"INPUT"===t.tagName&&"text"===t.getAttribute("type")){var o=n(1)(t,t.selectionEnd);return e=t.getBoundingClientRect(),{x:o.left+e.left,y:o.top+e.top,color:l(t)}}var r=window.getSelection();if(r.rangeCount){var s=r.getRangeAt(0),i=s.startContainer;return i.nodeType===document.TEXT_NODE&&(i=i.parentNode),{x:(e=s.getBoundingClientRect()).left,y:e.top,color:l(i)}}return{x:0,y:0,color:"transparent"}}(),t=5+Math.round(10*Math.random());t--;)s[i]=d(e.x,e.y,e.color),i=(i+1)%500;if(u.shake){var o=1+2*Math.random(),r=o*(Math.random()>.5?-1:1),c=o*(Math.random()>.5?-1:1);document.body.style.marginLeft=r+"px",document.body.style.marginTop=c+"px",setTimeout((function(){document.body.style.marginLeft="",document.body.style.marginTop=""}),75)}a||requestAnimationFrame(m)}function m(){a=!0,r.clearRect(0,0,o.width,o.height);for(var e=!1,t=o.getBoundingClientRect(),n=0;n<s.length;++n){var i=s[n];i.alpha<=.1||(i.velocity.y+=.075,i.x+=i.velocity.x,i.y+=i.velocity.y,i.alpha*=.96,r.globalAlpha=i.alpha,r.fillStyle=i.color,r.fillRect(Math.round(i.x-1.5)-t.left,Math.round(i.y-1.5)-t.top,3,3),e=!0)}e?requestAnimationFrame(m):a=!1}u.shake=!0,u.colorful=!1,e.exports=u},function(e,t){!function(){var t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],n=null!=window.mozInnerScreenX;function o(e,o,r){var s=r&&r.debug||!1;if(s){var i=document.querySelector("#input-textarea-caret-position-mirror-div");i&&i.parentNode.removeChild(i)}var a=document.createElement("div");a.id="input-textarea-caret-position-mirror-div",document.body.appendChild(a);var c=a.style,l=window.getComputedStyle?getComputedStyle(e):e.currentStyle;c.whiteSpace="pre-wrap","INPUT"!==e.nodeName&&(c.wordWrap="break-word"),c.position="absolute",s||(c.visibility="hidden"),t.forEach((function(e){c[e]=l[e]})),n?e.scrollHeight>parseInt(l.height)&&(c.overflowY="scroll"):c.overflow="hidden",a.textContent=e.value.substring(0,o),"INPUT"===e.nodeName&&(a.textContent=a.textContent.replace(/\s/g," "));var d=document.createElement("span");d.textContent=e.value.substring(o)||".",a.appendChild(d);var u={top:d.offsetTop+parseInt(l.borderTopWidth),left:d.offsetLeft+parseInt(l.borderLeftWidth)};return s?d.style.backgroundColor="#aaa":document.body.removeChild(a),u}void 0!==e&&void 0!==e.exports?e.exports=o:window.getCaretCoordinates=o}()}])},e.exports=t()},3492:e=>{var t=0;function n(e,t){var n=t.data;if(Array.isArray(n)&&!(n.length<2)){var o=n[0],r=n[1],s=n[2],i=e._callbacks[o];i&&(delete e._callbacks[o],i(r,s))}}function o(e){var t=this;t._worker=e,t._callbacks={},e.addEventListener("message",(function(e){n(t,e)}))}o.prototype.postMessage=function(e){var o=this,r=t++,s=[r,e];return new Promise((function(e,t){if(o._callbacks[r]=function(n,o){if(n)return t(new Error(n.message));e(o)},void 0!==o._worker.controller){var i=new MessageChannel;i.port1.onmessage=function(e){n(o,e)},o._worker.controller.postMessage(s,[i.port2])}else o._worker.postMessage(s)}))},e.exports=o}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return s[e].call(n.exports,n,n.exports,a),n.exports}a.m=s,e=[],a.O=(t,n,o,r)=>{if(!n){var s=1/0;for(d=0;d<e.length;d++){for(var[n,o,r]=e[d],i=!0,c=0;c<n.length;c++)(!1&r||s>=r)&&Object.keys(a.O).every((e=>a.O[e](n[c])))?n.splice(c--,1):(i=!1,r<s&&(s=r));if(i){e.splice(d--,1);var l=o();void 0!==l&&(t=l)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,o,r]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var r=Object.create(null);a.r(r);var s={};t=t||[null,n({}),n([]),n(n)];for(var i=2&o&&e;"object"==typeof i&&!~t.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach((t=>s[t]=()=>e[t]));return s.default=()=>e,a.d(r,s),r},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>(({18:"lg-2",173:"lg-3",321:"lg-12",388:"lg-1",440:"lg-4",441:"lg-10",453:"lg-11",478:"lg-6",558:"lg-8",637:"lg-5",730:"lg-9",868:"lg-7",963:"lg-0"}[e]||e)+".js"),a.miniCssF=e=>e+".css",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},r="sakurairo-scripts:",a.l=(e,t,n,s)=>{if(o[e])o[e].push(t);else{var i,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==r+n){i=u;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,a.nc&&i.setAttribute("nonce",a.nc),i.setAttribute("data-webpack",r+n),i.src=e),o[e]=[t];var m=(t,n)=>{i.onerror=i.onload=null,clearTimeout(f);var r=o[e];if(delete o[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},f=setTimeout(m.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=m.bind(null,i.onerror),i.onload=m.bind(null,i.onload),c&&document.head.appendChild(i)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((t,n)=>{var o=a.miniCssF(e),r=a.p+o;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),o=0;o<n.length;o++){var r=(i=n[o]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(r===e||r===t))return i}var s=document.getElementsByTagName("style");for(o=0;o<s.length;o++){var i;if((r=(i=s[o]).getAttribute("data-href"))===e||r===t)return i}})(o,r))return t();((e,t,n,o,r)=>{var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onerror=s.onload=n=>{if(s.onerror=s.onload=null,"load"===n.type)o();else{var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=i,c.request=a,s.parentNode&&s.parentNode.removeChild(s),r(c)}},s.href=t,n?n.parentNode.insertBefore(s,n.nextSibling):document.head.appendChild(s)})(e,r,null,t,n)})),t={143:0};a.f.miniCss=(n,o)=>{t[n]?o.push(t[n]):0!==t[n]&&{347:1,739:1}[n]&&o.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{a.b=document.baseURI||self.location.href;var e={143:0};a.f.j=(t,n)=>{var o=a.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else if(/^(347|739)$/.test(t))e[t]=0;else{var r=new Promise(((n,r)=>o=e[t]=[n,r]));n.push(o[2]=r);var s=a.p+a.u(t),i=new Error;a.l(s,(n=>{if(a.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var r=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+r+": "+s+")",i.name="ChunkLoadError",i.type=r,i.request=s,o[1](i)}}),"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,n)=>{var o,r,[s,i,c]=n,l=0;if(s.some((t=>0!==e[t]))){for(o in i)a.o(i,o)&&(a.m[o]=i[o]);if(c)var d=c(a)}for(t&&t(n);l<s.length;l++)r=s[l],a.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return a.O(d)},n=globalThis.webpackChunksakurairo_scripts=globalThis.webpackChunksakurairo_scripts||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var c=a.O(void 0,[920],(()=>a(2849)));c=a.O(c)})();
  3. //# sourceMappingURL=app.js.map