1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12268,85504,85806,30017,99841,57122,50520,15536,18338,2360,18302,28996,4738,15870,21109,11949,49816,82807,804,30921,60091,48190,34774,93036,28481,53891],{85504:function(e,t,r){r.r(t),r.d(t,{default:function(){return g}});var a=r(85893),n=r(84588),l=r(69325),s=r(26964),i=r(24955),o=r.n(i),c=r(23493),d=r.n(c),u=r(41664),x=r.n(u),f=r(11163),h=r(67294),m=r(46977);let v=[{key:"â â",action:"éæ©"},{key:"Enter",action:"跳转"},{key:"Esc",action:"å
³é"}];function g(e){let{cRef:t}=e,[r,s]=(0,h.useState)([]),[i,c]=(0,h.useState)(!1),[u,x]=(0,h.useState)(0),[g,j]=(0,h.useState)(null),[b,w]=(0,h.useState)(0),[N,k]=(0,h.useState)(0),[A,_]=(0,h.useState)(0),[E,S]=(0,h.useState)(0),[O,C]=(0,h.useState)(!1),[I,L]=(0,h.useState)(!1),T=(0,h.useRef)(null),M=(0,f.useRouter)();(0,m.y1)("ctrl+k",e=>{e.preventDefault(),c(!0)}),(0,m.y1)("down",e=>{I&&(e.preventDefault(),E<r.length-1&&S(E+1))},{enableOnFormTags:!0}),(0,m.y1)("up",e=>{I&&(e.preventDefault(),E>0&&S(E-1))},{enableOnFormTags:!0}),(0,m.y1)("esc",e=>{I&&(e.preventDefault(),c(!1))},{enableOnFormTags:!0}),(0,m.y1)("enter",e=>{I&&r.length>0&&R(F)},{enableOnFormTags:!0});let R=()=>{r.length>0&&(window.location.href="".concat((0,l.JA)("SUB_PATH",""),"/").concat(r[E].slug))},P=()=>{S(0),j(""),s([]),_(0),w(0),k(0),T.current&&(T.current.value="")};(0,h.useEffect)(()=>{c(!1)},[M]),(0,h.useEffect)(()=>{i?setTimeout(()=>{var e;null===(e=T.current)||void 0===e||e.focus()},100):P()},[i]),(0,h.useImperativeHandle)(t,()=>({openSearch:()=>{c(!0)}}));let F=o()((0,l.JA)("ALGOLIA_APP_ID"),(0,l.JA)("ALGOLIA_SEARCH_ONLY_APP_KEY")).initIndex((0,l.JA)("ALGOLIA_INDEX")),J=async(e,t)=>{if(j(e),x(t),s([]),_(0),w(0),k(0),S(0),e&&""!==e){C(!0);try{let{hits:r,nbHits:a,nbPages:l,processingTimeMS:i}=await F.search(e,{page:t,hitsPerPage:10});_(i),w(l),k(a),s(r),C(!1);let o=document.getElementById("search-wrapper").getElementsByClassName("replace");setTimeout(()=>{(0,n.Z)({doms:o,search:e,target:{element:"span",className:"font-bold border-b border-dashed"}})},200)}catch(e){console.error("Algolia search error:",e)}}},U=(0,h.useRef)(d()(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;J(e,t)},1e3)),H=(0,h.useRef)(null),D=e=>{let t=e.target.value;H.current&&clearTimeout(H.current),H.current=setTimeout(()=>{U.current(t)},800)},B=()=>{c(!1)};return(0,l.JA)("ALGOLIA_APP_ID")?(0,a.jsxs)("div",{id:"search-wrapper",className:"".concat(i?"opacity-100":"invisible opacity-0 pointer-events-none"," z-30 fixed h-screen w-screen left-0 top-0 sm:mt-12 flex items-start justify-center mt-0"),children:[(0,a.jsxs)("div",{className:"".concat(i?"opacity-100":"invisible opacity-0 translate-y-10"," flex flex-col justify-between w-full min-h-[10rem] h-full md:h-fit max-w-xl dark:bg-hexo-black-gray dark:border-gray-800 bg-white dark:bg- p-5 rounded-lg z-50 shadow border hover:border-blue-600 duration-300 transition-all "),children:[(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("div",{className:"text-2xl text-blue-600 dark:text-yellow-600 font-bold",children:"æç´¢"}),(0,a.jsx)("div",{children:(0,a.jsx)("i",{className:"text-gray-600 fa-solid fa-xmark p-1 cursor-pointer hover:text-blue-600",onClick:B})})]}),(0,a.jsx)("input",{type:"text",placeholder:"å¨è¿éè¾å
¥æç´¢å
³é®è¯...",onChange:e=>D(e),onFocus:()=>L(!0),onBlur:()=>L(!1),className:"text-black dark:text-gray-200 bg-gray-50 dark:bg-gray-600 outline-blue-500 w-full px-4 my-2 py-1 mb-4 border rounded-md",ref:T}),(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)(p,{})}),0===r.length&&g&&!O&&(0,a.jsx)("div",{children:(0,a.jsxs)("p",{className:" text-slate-600 text-center my-4 text-base",children:[" ","æ æ³æ¾å°ç¸å
³ç»æ",(0,a.jsxs)("span",{className:"font-semibold",children:['"',g,'"']})]})}),(0,a.jsx)("ul",{className:"flex-1 overflow-auto",children:r.map((e,t)=>(0,a.jsx)("li",{onMouseEnter:()=>S(t),onClick:()=>R(t),className:"cursor-pointer replace my-2 p-2 duration-100 \n rounded-lg\n ".concat(E===t?"bg-blue-600 dar
1k:bg-yellow-600":""),children:(0,a.jsx)("a",{className:"".concat(E===t?" text-white":" text-black dark:text-gray-300 "),children:e.title})},e.objectID))}),(0,a.jsx)(y,{totalPage:b,page:u,switchPage:e=>{U.current(g,e)}}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-2 sm:text-sm text-xs dark:text-gray-300",children:[0===N&&(0,a.jsx)("div",{className:"flex items-center",children:v.map((e,t)=>(0,a.jsxs)(h.Fragment,{children:[(0,a.jsx)("div",{className:"border-gray-300 dark:text-gray-300 text-gray-600 px-2 rounded border inline-block",children:e.key}),(0,a.jsx)("span",{className:"ml-2 mr-4 text-gray-600 dark:text-gray-300",children:e.action})]},t))}),(0,a.jsx)("div",{children:N>0&&(0,a.jsxs)("p",{children:["å
±æç´¢å° ",N," æ¡ç»æï¼ç¨æ¶ ",A," 毫ç§"]})}),(0,a.jsx)("div",{className:"text-gray-600 dark:text-gray-300 text-right",children:(0,a.jsxs)("span",{children:[(0,a.jsx)("i",{className:"fa-brands fa-algolia"})," Algolia æä¾æç´¢æå¡"]})})]})]}),(0,a.jsx)("div",{onClick:B,className:"z-30 fixed top-0 left-0 w-full h-full flex items-center justify-center glassmorphism"})]}):(0,a.jsx)(a.Fragment,{})}function p(){let{tagOptions:e}=(0,s.O)(),t=null==e?void 0:e.slice(0,10);return(0,a.jsx)("div",{id:"tags-group",className:"dark:border-gray-700 space-y-2",children:null==t?void 0:t.map((e,t)=>(0,a.jsx)(x(),{passHref:!0,href:"/tag/".concat(encodeURIComponent(e.name)),className:"cursor-pointer inline-block whitespace-nowrap",children:(0,a.jsxs)("div",{className:"flex items-center text-black dark:text-gray-300 hover:bg-blue-600 dark:hover:bg-yellow-600 hover:scale-110 hover:text-white rounded-lg px-2 py-0.5 duration-150 transition-all",children:[(0,a.jsxs)("div",{className:"text-lg",children:[e.name," "]}),e.count?(0,a.jsx)("sup",{className:"relative ml-1",children:e.count}):(0,a.jsx)(a.Fragment,{})]})},t))})}function y(e){let{totalPage:t,page:r,switchPage:n}=e;return t<=0?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)("div",{className:"flex space-x-1 w-full justify-center py-1",children:Array.from({length:t},(e,t)=>{let l=r===t?"font-bold text-white bg-blue-600 dark:bg-yellow-600 rounded":"hover:text-blue-600 hover:font-bold dark:text-gray-300";return(0,a.jsx)("div",{onClick:()=>n(t),className:"text-center cursor-pointer w-6 h-6 ".concat(l),children:t+1},t)})})}},28481:function(e,t,r){r.r(t),r.d(t,{default:function(){return i}});var a=r(85893),n=r(69325),l=r(78174),s=r(67294);function i(e){let{value:t}=e,r=(0,n.JA)("QR_CODE_CDN");return(0,s.useEffect)(()=>{let e;if(t)return(0,l.loadExternalResource)(r,"js").then(r=>{var a;let n=null===(a=window)||void 0===a?void 0:a.QRCode;void 0!==n&&(e=new n(document.getElementById("qrcode"),{text:t,width:256,height:256,colorDark:"#000000",colorLight:"#ffffff",correctLevel:n.CorrectLevel.H}))}),()=>{e&&e.clear()}},[]),(0,a.jsx)("div",{id:"qrcode"})}},90493:function(e,t,r){async function a(e,t,r){let a=await fetch("/api/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e,first_name:t,last_name:r})});return await a.json()}r.d(t,{x:function(){return a}}),r(43551)},85806:function(e,t,r){r.r(t);var a=r(85893),n=r(26964),l=r(5152);let s=r.n(l)()(()=>Promise.resolve().then(r.bind(r,31933)),{loadableGenerated:{webpack:()=>[31933]}});t.default=e=>{let{post:t,className:r}=e,{locale:l}=(0,n.O)();return(null==t?void 0:t.blockMap)?(0,a.jsx)("div",{className:r,children:(0,a.jsxs)("section",{id:"announcement-wrapper",className:"dark:text-gray-300 rounded-xl px-2 py-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("i",{className:"mr-2 fas fa-bullhorn"}),l.COMMON.ANNOUNCEMENT]}),t&&(0,a.jsx)("div",{id:"announcement-content",children:(0,a.jsx)(s,{post:t,className:"text-center "})})]})}):(0,a.jsx)(a.Fragment,{})}},30017:function(e,t,r){r.r(t),r.d(t,{default:function(){return s}});var a=r(85893),n=r(41664),l=r.n(n);function s(e){let{prev:t,next:r}=e;return t&&r?(0,a.jsxs)("section",{className:"text-gray-800 h-28 flex items-center justify-between space-x-5 my-4",children:[(0,a.jsxs)(l(),{href:"/".concat(t.slug),passHref:!0,className:"text-sm cursor-pointer justify-center items-center flex w-full h-full bg-white bg-opacity-40 hover:bg-hexo-black-gray dark:bg-hexo-black-gray dark:text-gray-200 hover:text-white duration-300",children:[(0,a.jsx)("i",{className:"mr-1 fas fa-angle-double-left"}),t.title]}),(0,a.jsxs)(l(),{href:"/".concat(r.slug),passHref:!0,className:"text-sm cursor-pointer justify-center items-center flex w-full h-full bg-white bg-opacity-40 hover:bg-hexo-black-gray dark:bg-hexo-black-gray dark:text-gray-200 hover:text-white duration-300",children:[r.title,(0,a.jsx)("i",{className:"ml-1 my-1 fas fa-angle-double-right"})]})]}):(0,a.jsx)(a.Fragment,{})}},99841:function(e,t,r){r.r(t),r.d(t,{default:function(){return p}});var a=r(85893),n=r(86429),l=r(46767),s=r(27134),i=r(67968),o=r(31933),c=r(68020),d=r(3643),u=r(69325),x=r(26964),f=r(31761),h=r(41664),m=r.n(
1h),v=r(30017),g=r(48190);function p(e){let{post:t,prev:r,next:h}=e,{locale:p,fullWidth:y}=(0,x.O)();return t?(0,a.jsxs)("div",{id:"container",className:"".concat(y?"px-10":"max-w-5xl "," overflow-x-auto flex-grow mx-auto w-screen md:w-full"),children:[(null==t?void 0:t.type)&&(null==t||t.type,!0)&&(null==t?void 0:t.pageCover)&&(0,a.jsx)("div",{className:"w-full relative md:flex-shrink-0 overflow-hidden",children:(0,a.jsx)(s.Z,{alt:t.title,src:null==t?void 0:t.pageCover,className:"object-cover max-h-[60vh] w-full"})}),(0,a.jsxs)("article",{itemScope:!0,itemType:"https://schema.org/Movie",className:"subpixel-antialiased overflow-y-hidden py-10 px-5 lg:pt-24 md:px-32 dark:border-gray-700 bg-white dark:bg-hexo-black-gray",children:[(0,a.jsxs)("header",{children:[(0,a.jsxs)("div",{className:"font-bold text-4xl text-black dark:text-white",children:[(0,u.JA)("POST_TITLE_ICON")&&(0,a.jsx)(i.Z,{icon:null==t?void 0:t.pageIcon}),t.title]}),(0,a.jsx)("section",{className:"flex-wrap flex mt-2 text-gray-400 dark:text-gray-400 font-light leading-8",children:(0,a.jsxs)("div",{children:[(null==t?void 0:t.category)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(m(),{href:"/category/".concat(t.category),passHref:!0,className:"cursor-pointer text-md mr-2 hover:text-black dark:hover:text-white border-b dark:border-gray-500 border-dashed",children:[(0,a.jsx)("i",{className:"mr-1 fas fa-folder-open"}),t.category]}),(0,a.jsx)("span",{className:"mr-2",children:"|"})]}),(null==t?void 0:t.type)!=="Page"&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m(),{href:"/archive#".concat((0,f.x)(null==t?void 0:t.publishDate,"yyyy-MM")),passHref:!0,className:"pl-1 mr-2 cursor-pointer hover:text-gray-700 dark:hover:text-gray-200 border-b dark:border-gray-500 border-dashed",children:null==t?void 0:t.publishDay}),(0,a.jsx)("span",{className:"mr-2",children:"|"}),(0,a.jsxs)("span",{className:"mx-2 text-gray-400 dark:text-gray-500",children:[p.COMMON.LAST_EDITED_TIME,": ",t.lastEditedDay]})]}),(0,a.jsx)("div",{className:"my-2",children:t.tagItems&&(0,a.jsx)("div",{className:"flex flex-nowrap overflow-x-auto",children:t.tagItems.map(e=>(0,a.jsx)(g.default,{tag:e},e.name))})})]})}),(0,a.jsx)(d.default,{className:"w-full",orientation:"horizontal"})]}),(0,a.jsx)("section",{id:"article-wrapper",children:t&&(0,a.jsx)(o.default,{post:t})}),(0,a.jsxs)("section",{children:[(0,a.jsx)(l.AdSlot,{type:"in-article"}),(0,a.jsx)(c.default,{post:t})]})]}),(null==t?void 0:t.type)==="Post"&&(0,a.jsx)(v.default,{prev:r,next:h}),(0,a.jsx)("div",{className:"duration-200 shadow py-6 px-12 w-screen md:w-full overflow-x-auto dark:border-gray-700 bg-white dark:bg-hexo-black-gray",children:(0,a.jsx)(n.default,{frontMatter:t})})]}):(0,a.jsx)(a.Fragment,{})}},57122:function(e,t,r){r.r(t);var a=r(85893),n=r(26964),l=r(67294);t.default=e=>{let{validPassword:t}=e,{locale:r}=(0,n.O)(),s=()=>{let e=document.getElementById("password");if(!t(null==e?void 0:e.value)){let e=document.getElementById("tips");e&&(e.innerHTML="",e.innerHTML="<div class='text-red-500 animate__shakeX animate__animated'>".concat(r.COMMON.PASSWORD_ERROR,"</div>"))}},i=(0,l.useRef)(null);return(0,l.useEffect)(()=>{i.current.focus()},[]),(0,a.jsx)("div",{id:"container",className:"flex justify-center",children:(0,a.jsx)("div",{className:"shadow md:hover:shadow-2xl overflow-x-auto max-w-5xl w-screen md:w-full py-10 px-5 lg:pt-24 md:px-24 min-h-screen dark:border-gray-700 bg-white dark:bg-gray-800 duration-200 subpixel-antialiased",children:(0,a.jsx)("div",{className:"w-full flex justify-center items-center h-96 ",children:(0,a.jsxs)("div",{className:"text-center space-y-3 dark:text-gray-300 text-black",children:[(0,a.jsx)("div",{className:"font-bold",children:r.COMMON.ARTICLE_LOCK_TIPS}),(0,a.jsxs)("div",{className:"flex mx-4",children:[(0,a.jsx)("input",{id:"password",type:"password",onKeyDown:e=>{"Enter"===e.key&&s()},ref:i,className:"outline-none w-full text-sm pl-5 rounded-l transition focus:shadow-lg font-light leading-10 bg-gray-100 dark:bg-gray-500"}),(0,a.jsx)("div",{onClick:s,className:"px-3 whitespace-nowrap cursor-pointer items-center justify-center py-2 bg-gray-700 hover:bg-gray-400 text-white rounded-r duration-300",children:(0,a.jsxs)("i",{className:"duration-200 cursor-pointer fas fa-key",children:["\xa0",r.COMMON.SUBMIT]})})]}),(0,a.jsx)("div",{id:"tips"})]})})})})}},99315:function(e,t,r){r.r(t);var a=r(85893),n=r(76898),l=r(46767),s=r(69325),i=r(26964),o=r(78174),c=r(34774),d=r(23279),u=r.n(d),x=r(11163),f=r(67294),h=r(85806),m=r(18302),v=r(28996),g=r(4738),p=r(15870),y=r(21109),j=r(82807),b=r(12268),w=r(30921),N=r(60091);t.default=function(e){let{tagOptions:t,currentTag:r,categoryOptions:d,currentCategory:k,post:A,slot:_,notice:E}=e,S=(0,x.useRouter)(),{fullWidth:O}=(0,i.O)(),C=O||(0,s.JA)("FUKASAWA_SIDEBAR_COLLAPSE_SATUS_DEFAULT",null,c.default),I=(0,s.JA)("FUKASAWA_SIDEBAR_COLLAPSE_ON_SCROLL",!1,c.default),L=(0,s.JA)("FUKASAWA_SIDEBAR_COLLAPSE_BUTTON",null,c.default),[T,M]=(0,f.useState)(()=>"true"===localStorage.getItem("fukasawa-sidebar-collapse")||C);(0,f.useEffect)(()=>{o.isBrowser&&localStorage.setItem("fukasawa-sidebar-collapse",T)},[T]);let R=(0,s.JA)("LAYOUT_SIDEBAR_REVERSE"),P=(0,f.useMemo)(()=>T?R?"right-2":"left-2":R?"right-80":"left-80",[T]);return(0,f.useEffect)(()=>
1{if(!I)return;let e=u()(()=>{window.innerWidth<1366||window.scrollY>=1366?M(!0):M(!1)},100);return A&&(window.addEventListener("resize",e),window.addEventListener("scroll",e,{passive:!0})),()=>{A&&(window.removeEventListener("resize",e),window.removeEventListener("scroll",e,{passive:!0}))}},[]),(0,a.jsxs)("div",{className:"sideLeft relative ".concat(T?"w-0":"w-80"," duration-300 transition-all bg-white dark:bg-hexo-black-gray min-h-screen hidden lg:block z-20"),children:[L&&(0,a.jsx)("div",{className:"".concat(P," hidden lg:block fixed top-0 cursor-pointer hover:scale-110 duration-300 px-3 py-2 dark:text-white"),onClick:()=>{M(!T)},children:T?(0,a.jsx)("i",{className:"fa-solid fa-indent text-xl"}):(0,a.jsx)("i",{className:"fas fa-bars text-xl"})}),(0,a.jsxs)("div",{className:"h-full ".concat(T?"hidden":"p-8"),children:[(0,a.jsx)(p.default,{...e}),(0,a.jsx)("section",{className:"siteInfo flex flex-col dark:text-gray-300 pt-8",children:(0,s.JA)("DESCRIPTION")}),(0,a.jsxs)("section",{className:"flex flex-col text-gray-600",children:[(0,a.jsx)("div",{className:"w-12 my-4"}),(0,a.jsx)(j.MenuList,{...e})]}),(0,a.jsxs)("section",{className:"flex flex-col text-gray-600",children:[(0,a.jsx)("div",{className:"w-12 my-4"}),(0,a.jsx)(b.default,{...e})]}),(0,a.jsxs)("section",{className:"flex flex-col dark:text-gray-300",children:[(0,a.jsx)("div",{className:"w-12 my-4"}),(0,a.jsx)(h.default,{post:E})]}),(0,a.jsx)("section",{children:(0,a.jsx)(y.default,{})}),(0,a.jsx)("section",{children:(0,a.jsx)(l.AdSlot,{type:"in-article"})}),"/tag"!==S.asPath&&(0,a.jsxs)("section",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"w-12 my-4"}),(0,a.jsx)(g.default,{tags:t,currentTag:r})]}),"/category"!==S.asPath&&(0,a.jsxs)("section",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"w-12 my-4"}),(0,a.jsx)(v.default,{categories:d,currentCategory:k})]}),(0,a.jsxs)("section",{className:"flex flex-col",children:[(0,a.jsx)("div",{className:"w-12 my-4"}),(0,a.jsx)(N.default,{}),(0,a.jsx)(w.default,{})]}),(0,a.jsx)("section",{className:"flex justify-center dark:text-gray-200 pt-4",children:(0,a.jsx)(n.Z,{})}),(0,a.jsxs)("section",{className:"sticky top-0 pt-12 flex flex-col max-h-screen ",children:[(0,a.jsx)(m.default,{toc:null==A?void 0:A.toc}),(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("div",{children:_})})]})]})]})}},50520:function(e,t,r){r.r(t);var a=r(85893),n=r(27134),l=r(67968),s=r(69325),i=r(26964),o=r(41664),c=r.n(o),d=r(34774),u=r(48190);t.default=e=>{var t;let{showAnimate:r,post:o,showSummary:x}=e,{siteInfo:f}=(0,i.O)(),h=(0,s.JA)("FUKASAWA_POST_LIST_PREVIEW",null,d.default)&&o.blockMap;(0,s.JA)("FUKASAWA_POST_LIST_COVER_FORCE",null,d.default)&&o&&!o.pageCover&&(o.pageCoverThumbnail=null==f?void 0:f.pageCover);let m=(0,s.JA)("FUKASAWA_POST_LIST_COVER",null,d.default)&&(null==o?void 0:o.pageCoverThumbnail),v=(0,s.JA)("FUKASAWA_POST_LIST_ANIMATION",null,d.default)||r;return(0,a.jsx)("article",{...v?{"data-aos":"fade-up","data-aos-duration":"300","data-aos-once":"true","data-aos-anchor-placement":"top-bottom"}:{},style:{maxHeight:"60rem"},className:"w-full lg:max-w-sm p-3 shadow mb-4 mx-2 bg-white dark:bg-hexo-black-gray hover:shadow-lg duration-200",children:(0,a.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[m&&(0,a.jsx)(c(),{href:null==o?void 0:o.href,passHref:!0,legacyBehavior:!0,children:(0,a.jsx)("div",{className:"flex-grow mb-3 w-full duration-200 cursor-pointer transform overflow-hidden",children:(0,a.jsx)(n.Z,{src:null==o?void 0:o.pageCoverThumbnail,alt:(null==o?void 0:o.title)||(0,s.JA)("TITLE"),className:"object-cover w-full h-full hover:scale-125 transform duration-500"})})}),(0,a.jsxs)("div",{className:"flex flex-col w-full",children:[(0,a.jsx)("h2",{children:(0,a.jsxs)(c(),{passHref:!0,href:null==o?void 0:o.href,className:"break-words cursor-pointer font-bold hover:underline text-xl ".concat(h?"justify-center":"justify-start"," leading-tight text-gray-700 dark:text-gray-100 hover:text-blue-500 dark:hover:text-blue-400"),children:[(0,s.JA)("POST_TITLE_ICON")&&(0,a.jsx)(l.Z,{icon:o.pageIcon})," ",o.title]})}),(!h||x)&&(0,a.jsx)("main",{className:"my-2 tracking-wide line-clamp-3 text-gray-800 dark:text-gray-300 text-md font-light leading-6",children:o.summary}),(0,a.jsxs)("div",{className:"mt-auto justify-between flex",children:[o.category&&(0,a.jsxs)(c(),{href:"/category/".concat(o.category),passHref:!0,className:"cursor-pointer dark:text-gray-300 font-light text-sm hover:underline hover:text-indigo-700 dark:hover:text-indigo-400 transform",children:[(0,a.jsx)("i",{className:"mr-1 far fa-folder"}),o.category]}),(0,a.jsx)("div",{className:"md:flex-nowrap flex-wrap md:justify-start inl
1ine-block",children:(0,a.jsx)("div",{children:null===(t=o.tagItems)||void 0===t?void 0:t.map(e=>(0,a.jsx)(u.default,{tag:e},e.name))})})]})]})]})})}},15536:function(e,t,r){r.r(t);var a=r(85893),n=r(26964);t.default=e=>{let{currentSearch:t}=e,{locale:r}=(0,n.O)();return(0,a.jsx)("div",{className:"flex items-center justify-center min-h-screen mx-auto md:-mt-20",children:(0,a.jsxs)("p",{className:"text-gray-500 dark:text-gray-300",children:[r.COMMON.NO_RESULTS_FOUND," ",t&&(0,a.jsx)("div",{children:t})]})})}},53798:function(e,t,r){r.r(t);var a=r(85893),n=r(46767),l=r(69325),s=r(26964),i=r(78174),o=r(23279),c=r.n(o),d=r(67294),u=r(50520),x=r(15536),f=r(804);let h=()=>i.isBrowser?window.innerWidth>=1024?3:window.innerWidth>=640?2:1:3;t.default=e=>{let{page:t=1,posts:r=[],postCount:o,siteInfo:m}=e,{NOTION_CONFIG:v}=(0,s.O)(),g=(0,l.JA)("POSTS_PER_PAGE",null,v),[p,y]=(0,d.useState)(h()),[j,b]=(0,d.useState)([]);return((0,d.useEffect)(()=>{let e=c()(()=>{y(h())},200);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,d.useEffect)(()=>{let e=(null==r?void 0:r.length)||0,t=Math.ceil(e/p),a=Array(e),n=0;for(let l=0;l<p;l++)for(let s=0;s<t;s++){let t=s*p+l;t<e&&(a[n]=(0,i.deepClone)(r[t]),n++)}b(a)},[p,r]),j&&0!==j.length)?(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{id:"posts-wrapper",className:"grid-container",children:[null==j?void 0:j.map((e,t)=>(0,a.jsx)("div",{className:"grid-item justify-center flex",style:{breakInside:"avoid"},children:(0,a.jsx)(u.default,{index:t,post:e,siteInfo:m},e.id)},e.id)),(0,l.JA)("ADSENSE_GOOGLE_ID")&&(0,a.jsx)("div",{className:"p-3",children:(0,a.jsx)(n.AdSlot,{type:"flow"})})]}),(0,a.jsx)(f.default,{page:t,showNext:t<Math.ceil(o/g)})]}):(0,a.jsx)(x.default,{})}},18338:function(e,t,r){r.r(t);var a=r(85893),n=r(69325),l=r(26964),s=r(93096),i=r.n(s),o=r(67294),c=r(50520),d=r(15536);t.default=e=>{let{posts:t}=e,{locale:r,NOTION_CONFIG:s}=(0,l.O)(),[u,x]=(0,o.useState)(1),f=(0,n.JA)("POSTS_PER_PAGE",null,s),[h,m]=(0,o.useState)([]),v=Math.ceil(t.length/f),g=()=>{u<v&&x(u+1)},p=(0,o.useRef)(null),y=(0,o.useCallback)(i()(()=>{window.scrollY+window.outerHeight>(p&&p.current?p.current.clientHeight:0)+100&&g()},500));return((0,o.useEffect)(()=>(window.addEventListener("scroll",y),()=>{window.removeEventListener("scroll",y)})),(0,o.useEffect)(()=>{let e=(u-1)*f,r=t.slice(e,e+f),a=[];for(let e=0;e<3;e++)for(let t=e;t<r.length;t+=3)a.push(r[t]);m(e=>[...e,a])},[t,u]),t&&0!==t.length)?(0,a.jsxs)("div",{ref:p,children:[h.map((e,t)=>(0,a.jsx)("div",{id:"posts-wrapper",className:"grid-container mb-10",children:e.map(e=>(0,a.jsx)("div",{className:"grid-item justify-center flex",style:{breakInside:"avoid"},children:(0,a.jsx)(c.default,{post:e,showAnimate:t>0},e.id)},e.id))},t)),(0,a.jsx)("div",{className:"w-full my-4 py-4 text-center cursor-pointer",onClick:g,children:u<v?r.COMMON.MORE:"".concat(r.COMMON.NO_MORE," \uD83D\uDE30")})]}):(0,a.jsx)(d.default,{})}},2360:function(e,t,r){r.r(t);var a=r(85893),n=r(41664),l=r.n(n);t.default=e=>{let{posts:t=[],archiveTitle:r}=e;return t&&0!==t.length?(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"pt-16 pb-4 text-3xl dark:text-gray-300",id:r,children:r}),(0,a.jsx)("ul",{children:null==t?void 0:t.map(e=>{var t;return(0,a.jsx)("li",{className:"border-l-2 p-1 text-xs md:text-base items-center hover:scale-x-105 hover:border-gray-500 dark:hover:border-gray-300 dark:border-gray-400 transform duration-500",children:(0,a.jsxs)("div",{id:null==e?void 0:e.publishDay,children:[(0,a.jsx)("span",{className:"text-gray-400",children:null===(t=e.date)||void 0===t?void 0:t.start_date})," ","\xa0",(0,a.jsx)(l(),{href:null==e?void 0:e.href,passHref:!0,className:"dark:text-gray-400 dark:hover:text-gray-300 overflow-x-hidden hover:underline cursor-pointer text-gray-600",children:e.title})]})},e.id)})})]}):(0,a.jsx)(a.Fragment,{})}},18302:function(e,t,r){r.r(t);var a=r(85893),n=r(26964),l=r(93096),s=r.n(l),i=r(58622),o=r(67294);t.default=e=>{let{toc:t}=e,{locale:r}=(0,n.O)(),[l,c]=(0,o.useState)(null);(0,o.useEffect)(()=>{let e=s()(()=>{var e;let r=document.getElementsByClassName("notion-h"),a=null,n=l;for(let e=0;e<r.length;++e){let t=r[e];if(!t||!(t instanceof Element))continue;n||(n=t.getAttribute("data-id"));let l=t.getBoundingClientRect(),s=Math.max(150,(a?l.top-a.bottom:0)/4);if(l.top-s<0){n=t.getAttribute("data-id"),a=l;continue}break}c(n);let s=null==t?void 0:t.findIndex(e=>(0,i.Gw)(e.id)===n);null==d||null===(e=d.current)||void 0===e||e.scrollTo({top:28*s,behavior:"smooth"})},200);return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[t]);let d=(0,o.useRef)(null);return!t||(null==t?void 0:t.length)<1?(0,a.jsx)(a.Fragment,{}):(0,a.jsxs)("div",{id:"catalog",className:"flex-1 flex-col flex overflow-hidden",children:[(0,a.jsxs)("div",{className:"w-full dark:text-gray-300 mb-2",children:[(0,a.jsx)("i",{className:"mr-1 fas fa-stream"}),r.COMMON.TABLE_OF_CONTENTS]}),(0,a.jsx)("nav",{ref:d,className:"flex-1 overflow-auto overscroll-none scroll-hidden text-black mb-6",children:t.map(e=>{let t=(0,i.Gw)(e.id);return(0,a.jsx)("a",{href:"#".concat(t),className:"".concat(l===t&&"dark:border-white border-gray-800 text-gray-800 font-bold"," hover:font-semibold border-l pl-4 block hover:text-gray-800 border-lduration-300 transform dark:text-gray-400 dark:border-gray-400\n notion-table-of-contents-item-indent-level-").concat(e.indentLevel," catalog-item "),children:(0,a.jsx)("span",{style:{display:"inline-block",marginLeft:16*e.indentLevel},className:"truncate ".concat(l===t?" font-bold text-black dark:text-white underline":""),children:e.text})},t)})})]})}},28996:function(e,t,r){r.r(t);var a=r(85893),n=r(41664),l=r.n(n);t.default=function(e){let{currentCategory:t,categories:r}=e;return r?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{id:"category-list",className:"dark:border-gray-600 flex flex-wrap",children:r.map(e=>{let r=t===e.name;return(0,a.jsxs)(l(),{href:"/category/".concat(e.name),passHref:!0,className:(r?"hover:text-white dark:hover:text-white bg-gray-600 text-white ":"dark:text-gray-400 text-gray-500 hover:text-white hover:bg-gray-500 dark:hover:text-white")+" text-sm w-full items-center duration-300 px-2 cursor-pointer py-1 font-light",children:[(0,a.jsx)("i",{className:"".concat(r?"text-white fa-folder-open":"fa-folder text-gray-400"," fas mr-2")}),e.name,"(",e.count,")"]},e.name)})})}):(0,a.jsx)(a.Fragment,{})}},4738:function(e,t,r){r.r(t);var a=r(85893),n=r(48190);t.default=function(e){var t;let{tags:r,currentTag:l}=e;return r?(0,a.jsx)("div",{id:"tags-group",className:"dark:border-gray-600 w-66 space-y-2",children:null==r?void 0:null===(t=r.slice(0,20))||void 0===t?void 0:t.map(e=>{let t=e.name===l;return(0,a.jsx)(n.default,{tag:e,selected:t},e.name)})}):(0,a.jsx)(a.Fragment,{})}},70588:function(e,t,r){r.r(t);var a=r(85893),n=r(22468),l=r(67294),s=r(15870),i=r(82807),o=r(12268);t.default=e=>{let[t,r]=(0,l.useState)(!1),c=(0,l.useRef)(null);return(0,a.jsx)("div",{id:"top-nav",className:"z-40 block lg:hidden",children:(0,a.jsxs)("div",{id:"sticky-nav",className:"relative w-full top-0 z-20 transform duration-500 bg-white dark:bg-black",children:[(0,a.jsx)(n.Z,{type:"vertical",isOpen:t,collapseRef:c,children:(0,a.jsxs)("div",{className:"py-1 px-5",children:[(0,a.jsx)(i.MenuList,{...e,onHeightChange:e=>{var t;return null===(t=c.current)||void 0===t?void 0:t.updateCollapseHeight(e)}}),(0,a.jsx)(o.default,{...e})]})}),(0,a.jsxs)("div",{className:"w-full flex justify-between items-center p-4 ",children:[(0,a.jsx)("div",{className:"flex flex-none flex-grow-0",children:(0,a.jsx)(s.default,{...e})}),(0,a.jsx)("div",{className:"flex"}),(0,a.jsx)("div",{className:"mr-1 flex justify-end items-center text-sm space-x-4 font-serif dark:text-gray-200",children:(0,a.jsx)("div",{onClick:()=>{r(!t)},className:"cursor-pointer text-lg p-2",children:t?(0,a.jsx)("i",{className:"fas fa-times"}):(0,a.jsx)("i",{className:"fas fa-bars"})})})]})]})})}},15870:function(e,t,r){r.r(t);var a=r(85893),n=r(69325),l=r(41664),s=r.n(l);t.default=e=>(0,a.jsx)("section",{className:"flex",children:(0,a.jsx)(s(),{href:"/",className:"logo hover:bg-black hover:text-white border-black border-2 duration-500 px-4 py-2 cursor-pointer dark:text-gray-300 dark:border-gray-300 font-black",children:(0,n.JA)("TITLE")})})},21109:function(e,t,r){r.r(t),r.d(t,{default:function(){return c}});
1var a=r(85893),n=r(67294),l=r(90493),s=r(69325),i=r(34774),o=r(26964);function c(){let e=(0,n.useRef)(),[t,r]=(0,n.useState)(!1),{locale:c}=(0,o.O)();return(0,n.useEffect)(()=>{let t=e.current,a=e=>{e.preventDefault();let t=document.querySelector("#newsletter").value;(0,l.x)(t).then(e=>{console.log("Subscription succeeded:",e),r(!0)}).catch(e=>{console.error("Subscription failed:",e)})};return null==t||t.addEventListener("submit",a),()=>{null==t||t.removeEventListener("submit",a)}},[l.x]),(0,a.jsx)(a.Fragment,{children:(0,s.JA)("FUKASAWA_MAILCHIMP_FORM",null,i.default)&&(0,a.jsxs)("div",{className:"sm:col-span-6 md:col-span-3 lg:col-span-3",children:[(0,a.jsx)("h6",{className:"text-gray-800 font-medium mb-2",children:c.MAILCHIMP.SUBSCRIBE}),(0,a.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:c.MAILCHIMP.MSG}),(0,a.jsx)("form",{ref:e,children:(0,a.jsx)("div",{className:"flex flex-wrap mb-4",children:(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("label",{className:"block text-sm sr-only",htmlFor:"newsletter",children:c.MAILCHIMP.EMAIL}),(0,a.jsxs)("div",{className:"relative flex items-center max-w-xs",children:[(0,a.jsx)("input",{disabled:t,id:"newsletter",type:"email",className:"form-input w-full text-gray-800 px-3 py-2 pr-12 text-sm",placeholder:c.MAILCHIMP.EMAIL,required:!0}),(0,a.jsxs)("button",{disabled:t,type:"submit",className:"absolute inset-0 left-auto","aria-label":"Subscribe",children:[(0,a.jsx)("span",{className:"absolute inset-0 right-auto w-px -ml-px my-2 bg-gray-300","aria-hidden":"true"}),(0,a.jsx)("svg",{className:"w-3 h-3 fill-current text-blue-600 mx-3 shrink-0",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M11.707 5.293L7 .586 5.586 2l3 3H0v2h8.586l-3 3L7 11.414l4.707-4.707a1 1 0 000-1.414z",fillRule:"nonzero"})})]})]}),t&&(0,a.jsx)("p",{className:"mt-2 text-green-600 text-sm",children:"Thanks for subscribing!"})]})})})]})})}},11949:function(e,t,r){r.r(t),r.d(t,{MenuItemCollapse:function(){return c}});var a=r(85893),n=r(22468),l=r(41664),s=r.n(l),i=r(11163),o=r(67294);let c=e=>{var t;let{link:r}=e,[l,c]=(0,o.useState)(!1),d=(null==r?void 0:null===(t=r.subMenus)||void 0===t?void 0:t.length)>0,[u,x]=(0,o.useState)(!1),f=(0,i.useRouter)();if(!r||!r.show)return null;let h=f.pathname===r.href||f.asPath===r.href;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:(h?"bg-gray-600 text-white hover:text-white":"hover:text-gray-600")+" px-5 w-full text-left duration-200 dark:bg-hexo-black-gray dark:border-black",onClick:()=>{c(!l)},children:[!d&&(0,a.jsx)(s(),{href:null==r?void 0:r.href,target:null==r?void 0:r.target,className:"dark:text-gray-200 py-2 w-full my-auto items-center justify-between flex ",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat(r.icon," text-center w-4 mr-4")}),r.name]})}),d&&(0,a.jsxs)("div",{onClick:d?()=>{x(!u)}:null,className:"py-2 font-extralight flex justify-between cursor-pointer dark:text-gray-200 no-underline tracking-widest",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat(r.icon," text-center w-4 mr-4")}),r.name]}),(0,a.jsx)("div",{className:"inline-flex items-center ",children:(0,a.jsx)("i",{className:"px-2 fas fa-chevron-right transition-all duration-200 ".concat(u?"rotate-90":"")})})]})]}),d&&(0,a.jsx)(n.Z,{isOpen:u,onHeightChange:e.onHeightChange,children:r.subMenus.map((e,t)=>(0,a.jsx)("div",{className:"whitespace-nowrap dark:text-gray-200 not:last-child:border-b-0 border-b dark:border-gray-800 py-2 px-14 cursor-pointer hover:bg-gray-100 font-extralight dark:bg-black text-left justify-start text-gray-600 bg-gray-50 dark:hover:bg-gray-900 tracking-widest transition-all duration-200",children:(0,a.jsx)(s(),{href:e.href,target:null==r?void 0:r.target,children:(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat(e.icon," text-center w-3 mr-3 text-xs")}),e.title]})})},t))})]})}},49816:function(e,t,r){r.r(t),r.d(t,{MenuItemDrop:function(){return i}});var a=r(85893),n=r(41664),l=r.n(n),s=r(67294);let i=e=>{var t,r;let{link:n}=e,[i,o]=(0,s.useState)(!1),c=(null==n?void 0:null===(t=n.subMenus)||void 0===t?void 0:t.length)>0;return(0,a.jsxs)("li",{onMouseOver:()=>{o(!0)},onMouseOut:()=>o(!1),className:"relative py-1 mb-1.5 duration-500 justify-between text-gray-500 dark:text-gray-300 hover:text-black hover:underline cursor-pointer flex flex-nowrap items-center ",children:[!c&&(0,a.jsxs)(l(),{href:null==n?void 0:n.href,target:null==n?void 0:n.target,className:"w-full my-auto items-center justify-between flex ",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat(n.icon," text-center w-4 mr-2")}),n.name]}),n.slot]}),c&&(0,a.jsxs)("div",{className:"w-full my-auto items-center justify-between flex ",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"".concat(n.icon," text-center w-4 mr-2")}),n.name]}),n.slot,c&&(0,a.jsx)("div",{className:"text-right",children:(0,a.jsx)("i",{className:"px-2 fas fa-chevron-left duration-500 transition-all ".concat(i?" rotate-180":"")})})]}),c&&(0,a.jsx)("ul",{className:"".concat(i?"visible opacity-100 left-72":"invisible opacity-0 left-80"," z-20 p-2 absolute right-0 top-0 w-full border-gray-100 bg-white dark:bg-black dark:border-gray-800 transition-all duration-300 drop-shadow-lg "),children:null==n?void 0:null===(r=n.subMenus)||void 0===r?void 0:r.map((e,t)=>(0,a.jsx)("li",{children:(0,a.jsxs)(l(),{href:e.href,target:null==n?void 0:n.target,className:"my-auto py-1 px-2 items-center justify-start flex text-gray-500 dark:text-gray-300 hover:text-black hover:bg-gray-50 dark:hover:bg-gray-900 tracking-widest transition-all duration-200 dark:border-gray-800 ",children:[e.icon&&(0,a.jsx)("i",{className:"".concat(e.icon," w-4 text-center ")}),(0,a.jsx)("div",{className:"ml-2 whitespace-nowrap",children:e.name}),e.slot]})},t))})]})}},82807:function(e,t,r){r.r(t),r.d(t,{MenuList:function(){return c}});
1var a=r(85893),n=r(69325),l=r(26964),s=r(34774),i=r(11949),o=r(49816);let c=e=>{let{customNav:t,customMenu:r}=e,{locale:c}=(0,l.O)(),d=[{name:c.NAV.INDEX,href:"/",show:!0},{name:c.COMMON.CATEGORY,href:"/category",show:(0,n.JA)("FUKASAWA_MENU_CATEGORY",null,s.default)},{name:c.COMMON.TAGS,href:"/tag",show:(0,n.JA)("FUKASAWA_MENU_TAG",null,s.default)},{name:c.NAV.ARCHIVE,href:"/archive",show:(0,n.JA)("FUKASAWA_MENU_ARCHIVE",null,s.default)}];return(t&&(d=d.concat(t)),(0,n.JA)("CUSTOM_MENU")&&(d=r),d&&0!==d.length)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("menu",{id:"nav-pc",className:"hidden md:block text-sm z-10",children:null==d?void 0:d.map((e,t)=>(0,a.jsx)(o.MenuItemDrop,{link:e},t))}),(0,a.jsx)("menu",{id:"nav-mobile",className:"block md:hidden text-sm z-10 pb-1",children:null==d?void 0:d.map((t,r)=>(0,a.jsx)(i.MenuItemCollapse,{link:t,onHeightChange:e.onHeightChange},r))})]}):null}},804:function(e,t,r){r.r(t);var a=r(85893),n=r(41664),l=r.n(n),s=r(11163),i=r(26964);t.default=e=>{let{page:t,showNext:r}=e,{locale:n}=(0,i.O)(),o=(0,s.useRouter)(),c=+t,d=o.asPath.split("?")[0].replace(/\/page\/[1-9]\d*/,"").replace(/\/$/,"");return(0,a.jsxs)("div",{className:"my-10 flex justify-between font-medium text-black dark:text-gray-100 space-x-2",children:[(0,a.jsxs)(l(),{href:{pathname:2===c?"".concat(d,"/"):"".concat(d,"/page/").concat(c-1),query:o.query.s?{s:o.query.s}:{}},passHref:!0,rel:"prev",className:"".concat(1===c?"invisible":"visible"," text-center w-full duration-200 px-4 py-2 hover:border-black border-b-2 hover:font-bold"),children:["â",n.PAGINATION.PREV]}),(0,a.jsxs)(l(),{href:{pathname:"".concat(d,"/page/").concat(c+1),query:o.query.s?{s:o.query.s}:{}},passHref:!0,rel:"next",className:"".concat(r?"visible":"invisible"," text-center w-full duration-200 px-4 py-2 hover:border-black border-b-2 hover:font-bold"),children:[n.PAGINATION.NEXT,"â"]})]})}},12268:function(e,t,r){r.r(t);var a=r(85893),n=r(26964),l=r(11163),s=r(67294),i=r(59159),o=r(69325);t.default=e=>{let{keyword:t,cRef:r}=e,{searchModal:c}=(0,i.useFukasawaGlobal)(),[d,u]=(0,s.useState)(!1),{locale:x}=(0,n.O)(),f=(0,l.useRouter)(),h=(0,s.useRef)();(0,s.useImperativeHandle)(r,()=>({focus:()=>{var e;null==h||null===(e=h.current)||void 0===e||e.focus()}}));let m=()=>{if((0,o.JA)("ALGOLIA_APP_ID")){var e;null==c||null===(e=c.current)||void 0===e||e.openSearch()}let t=h.current.value;t&&""!==t?(u(!0),f.push({pathname:"/search/"+t}).then(e=>{u(!1)})):f.push({pathname:"/"}).then(e=>{})},v=()=>{h.current.value=""};return(0,a.jsxs)("div",{className:"flex w-full bg-gray-100",children:[(0,a.jsx)("input",{ref:h,type:"text",placeholder:x.SEARCH.ARTICLES,"aria-label":"Search",className:"outline-none w-full text-sm pl-2 transition focus:shadow-lg font-light leading-10 text-black bg-gray-100 dark:bg-gray-800 dark:text-white",onKeyUp:e=>{if((0,o.JA)("ALGOLIA_APP_ID")){var t;null==c||null===(t=c.current)||void 0===t||t.openSearch();return}13===e.keyCode?m(h.current.value):27===e.keyCode&&v()},onFocus:()=>{if((0,o.JA)("ALGOLIA_APP_ID")){var e;null==c||null===(e=c.current)||void 0===e||e.openSearch()}},defaultValue:t||""}),(0,a.jsx)("div",{className:"-ml-8 cursor-pointer float-right items-center justify-center py-2",onClick:m,children:(0,a.jsx)("i",{className:"hover:text-black transform duration-200 text-gray-500 cursor-pointer fas ".concat(d?"fa-spinner animate-spin":"fa-search")})}),t&&t.length&&(0,a.jsx)("div",{className:"-ml-12 cursor-pointer flex float-right items-center justify-center py-2",children:(0,a.jsx)("i",{className:"hover:text-black transform duration-200 text-gray-400 cursor-pointer fas fa-times",onClick:v})})]})}},30921:function(e,t,r){r.r(t);var a=r(85893),n=r(63074),l=r(69325);t.default=function(e){let{title:t}=e,r=new Date().getFullYear(),s=(0,l.JA)("SINCE"),i=parseInt(s)<r?s+"-"+r:r;return(0,a.jsxs)("footer",{className:"relative leading-6 justify-start w-full text-gray-600 dark:text-gray-300 text-xs ",children:[(0,a.jsxs)("span",{children:["\xa9 ","".concat(i),(0,a.jsxs)("span",{children:[(0,a.jsxs)("a",{href:(0,l.JA)("LINK"),children:[(0,a.jsx)("i",{className:"mx-1 animate-pulse fas fa-heart"}),(0,l.JA)("AUTHOR")]}),". ",(0,a.jsx)("br",{})]}),(0,l.JA)("BEI_AN")&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("i",{className:"fas fa-shield-alt"}),(0,a.jsx)("a",{href:"https://beian.miit.gov.cn/",className:"mr-2",children:(0,l.JA)("BEI_AN")}),(0,a.jsx)("br",{})]}),(0,a.jsx)(n.u,{}),(0,a.jsxs)("span",{className:"hidden busuanzi_container_site_pv",children:[(0,a.jsx)("i",{className:"fas fa-eye"}),(0,a.jsx)("span",{className:"px-1 busuanzi_value_site_pv",children:" "})]}),(0,a.jsxs)("span",{className:"pl-2 hidden busuanzi_container_site_uv",children:[(0,a.jsx)("i",{className:"fas fa-users"}),(0,a.jsx)("span",{className:"px-1 busuanzi_value_site_uv",children:" "})]}),(0,a.jsx)("br",{}),(0,a.jsxs)("span",{className:"text-xs font-serif",children:["Powered by",(0,a.jsxs)("a",{href:"https://github.com/tangly1024/NotionNext",className:"underline",children:["NotionNext ",(0,l.JA)("VERSION")]})]}),(0,a.jsx)("br",{})]}),(0,a.jsx)("h1",{children:t})]})}},60091:function(e,t,r){r.r(t);var a=r(85893),n=r(28481),l=r(69325),s=r(67294);t.default=()=>{let e=(0,l.JA)("CONTACT_GITHUB"),t=(0,l.JA)("CONTACT_TWITTER"),r=(0,l.JA)("CONTACT_TELEGRAM"),i=(0,l.JA)("CONTACT_LINKEDIN"),o=(0,l.JA)("CONTACT_WEIBO"),c=(0,l.JA)("CONTACT_INSTAGRAM"),d=(0,l.JA)("CONTACT_EMAIL"),u=(0,l.JA)("ENABLE_RSS"),x=(0,l.JA)("CONTACT_BILIBILI"),f=(0,l.JA)("CONTACT_YOUTUBE"),h=(0,l.JA)("CONTACT_XIAOHONGSHU"),m=(0,l.JA)("CONTACT_ZHISHIXINGQIU"),v=(0,l.JA)("CONTACT_WEHCHAT_PUBLIC"),[g,p]=(0,s.use
1State)(!1);return(0,a.jsx)("div",{className:"w-full justify-center flex-wrap flex",children:(0,a.jsxs)("div",{className:"space-x-3 text-xl flex items-center text-gray-600 dark:text-gray-300 ",children:[e&&(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",title:"github",href:e,children:(0,a.jsx)("i",{className:"transform hover:scale-125 duration-150 fab fa-github dark:hover:text-green-400 hover:text-green-600"})}),t&&(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",title:"twitter",href:t,children:(0,a.jsx)("i",{className:"transform hover:scale-125 duration-150 fab fa-twitter dark:hover:text-green-400 hover:text-green-600"})}),r&&(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",href:r,title:"telegram",children:(0,a.jsx)("i",{className:"transform hover:scale-125 duration-150 fab fa-telegram dark:hover:text-green-400 hover:text-green-600"})}),i&&(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",href:i,title:"linkIn",children:(0,a.jsx)("i",{className:"transform hover:scale-125 duration-150 fab fa-linkedin dark:hover:text-green-400 hover:text-green-600"})}),o&&(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",title:"weibo",href:o,children:(0,a.jsx)("i",{className:"transform hover:scale-125 duration-150 fab fa-weibo dark:hover:text-green-400 hover:text-green-600"})}),c&&(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",title:"instagram",href:c,children:(0,a.jsx)("i",{className:"transform hover:scale-125 duration-150 fab fa-instagram dark:hover:text-green-400 hover:text-green-600"})}),d&&(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",title:"email",href:"mailto:".concat(d),children:(0,a.jsx)("i",{className:"transform hover:scale-125 duration-150 fas fa-envelope dark:hover:text-green-400 hover:text-green-600"})}),u&&(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",title:"RSS",href:"/rss/feed.xml",children:(0,a.jsx)("i",{className:"transform hover:scale-125 duration-150 fas fa-rss dark:hover:text-green-400 hover:text-green-600"})}),x&&(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",title:"bilibili",href:x,children:(0,a.jsx)("i",{className:"transform hover:scale-125 duration-150 dark:hover:text-green-400 hover:text-green-600 fab fa-bilibili"})}),f&&(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",title:"youtube",href:f,children:(0,a.jsx)("i",{className:"transform hover:scale-125 duration-150 fab fa-youtube dark:hover:text-green-400 hover:text-green-600"})}),h&&(0,a.jsx)("a",{target:"_blank",rel:"noreferrer",title:"å°çº¢ä¹¦",href:h,children:(0,a.jsx)("img",{className:"transform hover:scale-125 duration-150 w-6",src:"/svg/xiaohongshu.svg",alt:"å°çº¢ä¹¦"})}),m&&(0,a.jsxs)("a",{target:"_blank",rel:"noreferrer",title:"ç¥è¯æç",className:"flex justify-center items-center",href:m,children:[(0,a.jsx)("img",{className:"transform hover:scale-125 duration-150 w-6",src:"/svg/zhishixingqiu.svg",alt:"ç¥è¯æç"})," "]}),v&&(0,a.jsxs)("button",{onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)},"aria-label":"微信å
¬ä¼å·",children:[(0,a.jsx)("div",{id:"wechat-button",children:(0,a.jsx)("i",{className:"transform scale-105 hover:scale-125 duration-150 fab fa-weixin dark:hover:text-green-400 hover:text-green-600"})}),(0,a.jsx)("div",{className:"absolute",children:(0,a.jsx)("div",{id:"pop",className:(g?"opacity-100 ":" invisible opacity-0")+" z-40 absolute bottom-10 -left-10 bg-white shadow-xl transition-all duration-200 text-center",children:(0,a.jsx)("div",{className:"p-2 mt-1 w-28 h-28",children:g&&(0,a.jsx)(n.default,{value:v})})})})]})]})})}},48190:function(e,t,r){r.r(t);var a=r(85893),n=r(41664),l=r.n(n);t.default=e=>{let{tag:t,selected:r=!1}=e;return(0,a.jsx)(l(),{href:r?"/":"/tag/".concat(encodeURIComponent(t.name)),passHref:!0,className:"cursor-pointer inline-block rounded hover:bg-gray-500 hover:text-white duration-200\n mr-2 py-0.5 px-1 text-xs whitespace-nowrap dark:hover:text-white\n ".concat(r?"text-white dark:text-gray-300 bg-black dark:bg-black dark:hover:bg-gray-900":"text-gray-600 hover:shadow-xl dark:border-gray-400 notion-".concat(t.color,"_background dark:bg-gray-800")),children:(0,a.jsxs)("div",{className:"font-light dark:text-gray-400",children:[r&&(0,a.jsx)("i",{className:"mr-1 fas fa-tag"})," ",t.name+(t.count?"(".concat(t.count,")"):"")," "]})},t)}},34774:function(e,t,r){r.r(t),t.default={FUKASAWA_MAILCHIMP_FORM:!1,FUKASAWA_POST_LIST_COVER:!0,FUKASAWA_POST_LIST_COVER_FORCE:!1,FUKASAWA_POST_LIST_PREVIEW:!1,FUKASAWA_POST_LIST_ANIMATION:!1,FUKASAWA_MENU_CATEGORY:!0,FUKASAWA_MENU_TAG:!0,FUKASAWA_MENU_ARCHIVE:!0,FUKASAWA_SIDEBAR_COLLAPSE_BUTTON:!0,FUKASAWA_SIDEBAR_COLLAPSE_SATUS_DEFAULT:!1,FUKASAWA_SIDEBAR_COLLAPSE_ON_SCROLL:!1}},59159:function(e,t,r){r.r(t),r.d(t,{Layout404:function(){return F},LayoutArchive:function(){return P},LayoutBase:function(){return I},LayoutCategoryIndex:function(){return J},LayoutIndex:function(){return L},LayoutPostList:function(){return T},LayoutSearch:function(){return R},LayoutSlug:function(){return M},LayoutTagIndex:function(){return U},THEME_CONFIG:function(){return _.default},useFukasawaGlobal:function(){return C}});
1var a=r(85893),n=r(85504),l=r(46767),s=r(84588),i=r(3643),o=r(69325),c=r(26964),d=r(78174),u=r(45007),x=r(5152),f=r.n(x),h=r(41664),m=r.n(h),v=r(11163),g=r(67294),p=r(99841),y=r(57122),j=r(99315),b=r(53798),w=r(18338),N=r(2360),k=r(70588),A=r(48190),_=r(34774),E=r(93036);let S=f()(()=>Promise.resolve().then(r.bind(r,91577)),{loadableGenerated:{webpack:()=>[91577]}}),O=(0,g.createContext)(),C=()=>(0,g.useContext)(O),I=e=>{let{children:t,headerSlot:r}=e,s=(0,a.jsx)(S,{}),{onLoading:i,fullWidth:d}=(0,c.O)(),x=(0,g.useRef)(null);return(0,a.jsx)(O.Provider,{value:{searchModal:x},children:(0,a.jsxs)("div",{id:"theme-fukasawa",className:"".concat((0,o.JA)("FONT_STYLE")," dark:bg-black scroll-smooth"),children:[(0,a.jsx)(E.Style,{}),(0,a.jsx)(k.default,{...e}),(0,a.jsxs)("div",{className:(JSON.parse((0,o.JA)("LAYOUT_SIDEBAR_REVERSE"))?"flex-row-reverse":"")+" flex",children:[(0,a.jsx)(j.default,{...e,slot:s}),(0,a.jsx)("main",{id:"wrapper",className:"relative flex w-full py-8 justify-center bg-day dark:bg-night",children:(0,a.jsxs)("div",{id:"container-inner",className:"".concat(d?"":"2xl:max-w-6xl md:max-w-4xl"," w-full relative z-10"),children:[(0,a.jsxs)(u.u,{show:!i,appear:!0,className:"w-full",enter:"transition ease-in-out duration-700 transform order-first",enterFrom:"opacity-0 translate-y-16",enterTo:"opacity-100",leave:"transition ease-in-out duration-300 transform",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-16",unmount:!1,children:[(0,a.jsxs)("div",{children:[" ",r," "]}),(0,a.jsxs)("div",{children:[" ",t," "]})]}),(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(l.AdSlot,{type:"native"})})]})})]}),(0,a.jsx)(n.default,{cRef:x,...e})]})})},L=e=>(0,a.jsx)(T,{...e}),T=e=>{let t=(0,o.JA)("POST_LIST_STYLE");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"w-full p-2",children:(0,a.jsx)(i.default,{className:"w-full",orientation:"horizontal"})}),"page"===t?(0,a.jsx)(b.default,{...e}):(0,a.jsx)(w.default,{...e})]})},M=e=>{let{post:t,lock:r,validPassword:n}=e,l=(0,v.useRouter)(),s=1e3*(0,o.JA)("POST_WAITING_TIME_FOR_404");return(0,g.useEffect)(()=>{t||setTimeout(()=>{d.isBrowser&&!document.querySelector("#article-wrapper #notion-article")&&l.push("/404").then(()=>{console.warn("æ¾ä¸å°é¡µé¢",l.asPath)})},s)},[t]),(0,a.jsx)(a.Fragment,{children:r?(0,a.jsx)(y.default,{validPassword:n}):t&&(0,a.jsx)(p.default,{...e})})},R=e=>{let{keyword:t}=e,r=(0,v.useRouter)();return(0,g.useEffect)(()=>{d.isBrowser&&(0,s.Z)({doms:document.getElementById("posts-wrapper"),search:t,target:{element:"span",className:"text-red-500 border-b border-dashed"}})},[r]),(0,a.jsx)(T,{...e})},P=e=>{let{archivePosts:t}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"mb-10 pb-20 bg-white md:p-12 p-3 dark:bg-gray-800 shadow-md min-h-full",children:Object.keys(t).map(e=>(0,a.jsx)(N.default,{posts:t[e],archiveTitle:e},e))})})},F=e=>(0,a.jsx)(a.Fragment,{children:"404"}),J=e=>{let{locale:t}=(0,c.O)(),{categoryOptions:r}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"bg-white dark:bg-gray-700 px-10 py-10 shadow",children:[(0,a.jsxs)("div",{className:"dark:text-gray-200 mb-5",children:[(0,a.jsx)("i",{className:"mr-4 fas fa-th"}),t.COMMON.CATEGORY,":"]}),(0,a.jsx)("div",{id:"category-list",className:"duration-200 flex flex-wrap",children:null==r?void 0:r.map(e=>(0,a.jsx)(m(),{href:"/category/".concat(e.name),passHref:!0,legacyBehavior:!0,children:(0,a.jsxs)("div",{className:"hover:text-black dark:hover:text-white dark:text-gray-300 dark:hover:bg-gray-600 px-5 cursor-pointer py-2 hover:bg-gray-100",children:[(0,a.jsx)("i",{className:"mr-4 fas fa-folder"}),e.name,"(",e.count,")"]})},e.name))})]})})},U=e=>{let{locale:t}=(0,c.O)(),{tagOptions:r}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"bg-white dark:bg-gray-700 px-10 py-10 shadow",children:[(0,a.jsxs)("div",{className:"dark:text-gray-200 mb-5",children:[(0,a.jsx)("i",{className:"mr-4 fas fa-tag"}),t.COMMON.TAGS,":"]}),(0,a.jsx)("div",{id:"tags-list",className:"duration-200 flex flex-wrap ml-8",children:r.map(e=>(0,a.jsx)("div",{className:"p-2",children:(0,a.jsx)(A.default,{tag:e},e.name)},e.name))})]})})}},93036:function(e,t,r){r.r(t),r.d(t,{Style:function(){return s}});var a=r(85893),n=r(1822),l=r.n(n);let s=()=>(0,a.jsx)(l(),{id:"8f3c9b9905b50ea8",children:"body{background-color:#eeedee}.dark body{background-color:black}#theme-fukasawa .grid-item{height:auto;break-inside:avoid-column;margin-bottom:.5rem}@media(min-width:1024px){#theme-fukasawa .grid-container{-webkit-column-count:3;-moz-column-count:3;column-count:3;-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem}}@media(min-width:640px)and (max-width:1023px){#theme-fukasawa .grid-container{-webkit-column-count:2;-moz-column-count:2;column-count:2;-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem}}@media(max-width:639px){#theme-fukasawa .grid-container{-webkit-column-count:1;-moz-column-count:1;column-count:1;-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem}}.container{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:10px;padding:10px}"})},46977:function(e,t,r){r.d(t,{y1:function(){return j}});var a=r(67294);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(null,arguments)}r(85893);var l=["shift","alt","meta","mod","ctrl"],s={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OS
1Right:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function i(e){return(e&&s[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function o(e,t){return void 0===t&&(t=","),e.split(t)}function c(e,t,r){void 0===t&&(t="+");var a=e.toLocaleLowerCase().split(t).map(function(e){return i(e)}),s={alt:a.includes("alt"),ctrl:a.includes("ctrl")||a.includes("control"),shift:a.includes("shift"),meta:a.includes("meta"),mod:a.includes("mod")},o=a.filter(function(e){return!l.includes(e)});return n({},s,{keys:o,description:r,hotkey:e})}"undefined"!=typeof document&&(document.addEventListener("keydown",function(e){void 0!==e.key&&x([i(e.key),i(e.code)])}),document.addEventListener("keyup",function(e){void 0!==e.key&&f([i(e.key),i(e.code)])})),"undefined"!=typeof window&&window.addEventListener("blur",function(){d.clear()});var d=new Set;function u(e){return Array.isArray(e)}function x(e){var t=Array.isArray(e)?e:[e];d.has("meta")&&d.forEach(function(e){return!l.includes(e)&&d.delete(e.toLowerCase())}),t.forEach(function(e){return d.add(e.toLowerCase())})}function f(e){var t=Array.isArray(e)?e:[e];"meta"===e?d.clear():t.forEach(function(e){return d.delete(e.toLowerCase())})}function h(e,t){void 0===t&&(t=!1);var r=e.target,a=e.composed,n=null;return(n=r.tagName&&!r.tagName.startsWith("-")&&r.tagName.includes("-")&&a?e.composedPath()[0]&&e.composedPath()[0].tagName:r&&r.tagName,u(t))?!!(n&&t&&t.some(function(e){var t;return e.toLowerCase()===(null==(t=n)?void 0:t.toLowerCase())})):!!(n&&t&&t)}var m=function(e,t,r){void 0===r&&(r=!1);var a,n=t.alt,l=t.meta,s=t.mod,o=t.shift,c=t.ctrl,x=t.keys,f=e.key,h=e.code,m=e.ctrlKey,v=e.metaKey,g=e.shiftKey,p=e.altKey,y=i(h),j=f.toLowerCase();if(!(null!=x&&x.includes(y))&&!(null!=x&&x.includes(j))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(y))return!1;if(!r){if(!p===n&&"alt"!==j||!g===o&&"shift"!==j)return!1;if(s){if(!v&&!m)return!1}else if(!v===l&&"meta"!==j&&"os"!==j||!m===c&&"ctrl"!==j&&"control"!==j)return!1}return!!(x&&1===x.length&&(x.includes(j)||x.includes(y)))||(x?(void 0===a&&(a=","),(u(x)?x:x.split(a)).every(function(e){return d.has(e.trim().toLowerCase())})):!x)},v=(0,a.createContext)(void 0),g=(0,a.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),p=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},y="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;function j(e,t,r,n){var l,s=(0,a.useState)(null),d=s[0],j=s[1],b=(0,a.useRef)(!1),w=r instanceof Array?n instanceof Array?void 0:n:r,N=u(e)?e.
1join(null==w?void 0:w.splitKey):e,k=r instanceof Array?r:n instanceof Array?n:void 0,A=(0,a.useCallback)(t,null!=k?k:[]),_=(0,a.useRef)(A);k?_.current=A:_.current=t;var E=(!function e(t,r){return t&&r&&"object"==typeof t&&"object"==typeof r?Object.keys(t).length===Object.keys(r).length&&Object.keys(t).reduce(function(a,n){return a&&e(t[n],r[n])},!0):t===r}((l=(0,a.useRef)(void 0)).current,w)&&(l.current=w),l.current),S=(0,a.useContext)(g).enabledScopes,O=(0,a.useContext)(v);return y(function(){if((null==E?void 0:E.enabled)!==!1&&(e=null==E?void 0:E.scopes,0===S.length&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!!(!e||S.some(function(t){return e.includes(t)})||S.includes("*")))){var e,t=function(e,t){var r;if(void 0===t&&(t=!1),!h(e,["input","textarea","select"])||h(e,null==E?void 0:E.enableOnFormTags)){if(null!==d){var a=d.getRootNode();if((a instanceof Document||a instanceof ShadowRoot)&&a.activeElement!==d&&!d.contains(a.activeElement)){p(e);return}}(null==(r=e.target)||!r.isContentEditable||null!=E&&E.enableOnContentEditable)&&o(N,null==E?void 0:E.splitKey).forEach(function(r){var a,n,l,s=c(r,null==E?void 0:E.combinationKey);if(m(e,s,null==E?void 0:E.ignoreModifiers)||null!=(l=s.keys)&&l.includes("*")){if(null!=E&&null!=E.ignoreEventWhen&&E.ignoreEventWhen(e)||t&&b.current)return;if(("function"==typeof(a=null==E?void 0:E.preventDefault)&&a(e,s)||!0===a)&&e.preventDefault(),"function"==typeof(n=null==E?void 0:E.enabled)?!n(e,s):!0!==n&&void 0!==n){p(e);return}_.current(e,s),t||(b.current=!0)}})}}
1,r=function(e){void 0!==e.key&&(x(i(e.code)),((null==E?void 0:E.keydown)===void 0&&(null==E?void 0:E.keyup)!==!0||null!=E&&E.keydown)&&t(e))},a=function(e){void 0!==e.key&&(f(i(e.code)),b.current=!1,null!=E&&E.keyup&&t(e,!0))},n=d||(null==w?void 0:w.document)||document;return n.addEventListener("keyup",a),n.addEventListener("keydown",r),O&&o(N,null==E?void 0:E.splitKey).forEach(function(e){return O.addHotkey(c(e,null==E?void 0:E.combinationKey,null==E?void 0:E.description))}),function(){n.removeEventListener("keyup",a),n.removeEventListener("keydown",r),O&&o(N,null==E?void 0:E.splitKey).forEach(function(e){return O.removeHotkey(c(e,null==E?void 0:E.combinationKey,null==E?void 0:E.description))})}}},[d,N,E,S]),j}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.