1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4224,7835,70387,6140,85223,45703,68561,32909,27143,24596,78790,40055,70752,87897],{78790:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(85893),a=r(21384),l=r(9008),o=r.n(l),s=r(67294);function i(e){let{priority:t,id:r,src:l,alt:i,fallbackSrc:u,placeholderSrc:d,className:h,width:m,height:f,title:g,onLoad:p,onClick:v,style:x}=e,_=(0,a.JA)("IMAGE_COMPRESS_WIDTH"),E=(0,a.JA)("IMG_LAZY_LOAD_PLACEHOLDER"),T=(0,s.useRef)(null),[b,N]=(0,s.useState)(d||E),w=(0,s.useCallback)(()=>{T.current&&(T.current.src!==u&&u?T.current.src=u:T.current.src!==d&&d?T.current.src=d:T.current.src=E,T.current.classList.remove("lazy-image-placeholder"))},[E,u,d]);(0,s.useEffect)(()=>{let e=c(l,_)||E,r=T.current,n=()=>{"function"==typeof p&&p(),T.current&&T.current.classList.remove("lazy-image-placeholder")};if(t){let t=new Image;t.src=e,t.onload=()=>{N(e),n(e)},t.onerror=w;return}if(!window.IntersectionObserver){let t=new Image;t.src=e,t.onload=()=>{N(e),n(e)},t.onerror=w;return}let o=new IntersectionObserver(t=>{t.forEach(t=>{if(t.isIntersecting){let r=new Image;"decoding"in r&&(r.decoding="async"),r.src=e,r.onload=()=>{N(e),n(e)},r.onerror=w,o.unobserve(t.target)}})},{rootMargin:(0,a.JA)("LAZY_LOAD_THRESHOLD","200px"),threshold:.1});return r&&o.observe(r),()=>{r&&o.unobserve(r)}},[l,_,t,E,u,w,p,d]);let A={ref:T,src:b,"data-src":l,alt:i||"Lazy loaded image",onLoad:()=>{},onError:w,className:"".concat(h||""," lazy-image-placeholder"),style:x,width:m||"auto",height:f||"auto",onClick:v,loading:t?"eager":"lazy",decoding:"async",...(0,a.JA)("WEBP_SUPPORT")&&{"data-webp":!0},...(0,a.JA)("AVIF_SUPPORT")&&{"data-avif":!0}};return(r&&(A.id=r),g&&(A.title=g),l)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("img",{alt:A.alt,...A}),t&&(0,n.jsx)(o(),{children:(0,n.jsx)("link",{rel:"preload",as:"image",href:c(l,_)})})]}):null}let c=(e,t)=>{var r,n;if(!e)return null;let a=(null===(n=window)||void 0===n?void 0:null===(r=n.screen)||void 0===r?void 0:r.width)||t;return a>t?e:e.replace(/width=\d+/,"width=".concat(a)).replace(/w=\d+/,"w=".concat(a))}},98685:function(e,t,r){var n=r(85893),a=r(78790);t.Z=e=>{let{icon:t}=e;return t?t.startsWith("http")||t.startsWith("data:")?(0,n.jsx)(a.Z,{src:t,className:"w-8 h-8 my-auto inline mr-1"}):(0,n.jsx)("span",{className:"mr-1",children:t}):(0,n.jsx)(n.Fragment,{})}},87897:function(e,t,r){r.r(t),r.d(t,{default:function(){return S}});var n=r(85893),a=r(21384),l=r(91220);let o=/^https?:\/\//i,s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=new Set;return t.filter(Boolean).join(" ").split(/\s+/).filter(Boolean).forEach(e=>n.add(e)),n.size>0?Array.from(n).join(" "):void 0},i=(e,t)=>{if("string"!=typeof e||!o.test(e))return!1;if(!t)return!0;try{return new URL(e).origin!==t}catch(e){return!0}},c=(e,t,r)=>"_blank"===t||i(e,r||(window.location?window.location.origin:null));var u=e=>{let{href:t,target:r,rel:a,...l}=e,o=c(t,r),i=o?"_blank":r,u=o?s(a,"noopener noreferrer"):a;return(0,n.jsx)("a",{...l,href:t,target:i,rel:u})},d=r(47935),h=r(9894);r(31392);var m=r(5152),f=r.n(m),g=r(67294),p=r(18639);let v=e=>{let t=null==e?void 0:e.block;return!!t&&Object.values(t).some(e=>{var t;return(null==e?void 0:null===(t=e.value)||void 0===t?void 0:t.type)==="code"})},x=()=>{if(d.isBrowser)for(let e of document.querySelectorAll(".notion-table a"))e.removeAttribute("href")},_=e=>{setTimeout(()=>{if(d.isBrowser){var t;let r=null===(t=document)||void 0===t?void 0:t.querySelectorAll(".notion-collection-card-cover img");if(r&&e)for(let t=0;t<r.length;t++)e.attach(r[t]);for(let e of document.getElementsByClassName("notion-collection-card"))e.removeAttribute("href")}},800)},E=()=>{setTimeout(()=>{var e,t,r;let n=null===(t=window)||void 0===t?void 0:null===(e=t.location)||void 0===e?void 0:e.hash;if(n&&n.length>0){console.log("jump to hash",n);let e=document.getElementById(n.substring(1));e&&(null==e?void 0:null===(r=e.className)||void 0===r?void 0:r.indexOf("notion"))>-1&&e.scrollIntoView({block:"start",behavior:"smooth"})}},180)},T=e=>"/"+e.replace(/-/g,""),b=f()(()=>Promise.all([r.e(15660),r.e(31794)]).then(r.bind(r,31794)).then(e=>e.Code),{loadableGenerated:{webpack:()=>[31794]},ssr:!1}),N=f()(()=>Promise.all([r.e(21265),r.e(57757)]).then(r.bind(r,57757)).then(async e=>(await Promise.all([r.e(21265),r.e(6448)]).then(r.bind(r,6448)),e.Equation)),{loadableGenerated:{webpack:()=>[6448]},ssr:!0}),w=f()(()=>r.e(26778).then(r.bind(r,26778)).then(e=>
1e.Pdf),{loadableGenerated:{webpack:()=>[26778]},ssr:!1}),A=f()(()=>Promise.all([r.e(95219),r.e(39332),r.e(15660),r.e(82703)]).then(r.bind(r,82703)),{loadableGenerated:{webpack:()=>[82703]},ssr:!1}),O=f()(()=>r.e(88079).then(r.bind(r,88079)),{loadableGenerated:{webpack:()=>[88079]},ssr:!1}),I=f()(()=>Promise.resolve().then(r.bind(r,31)).then(e=>e.AdEmbed),{loadableGenerated:{webpack:()=>[31]},ssr:!0}),y=f()(()=>r.e(1276).then(r.bind(r,10635)).then(e=>e.Collection),{loadableGenerated:{webpack:()=>[10635]},ssr:!0}),j=f()(()=>r.e(6873).then(r.bind(r,6873)).then(e=>e.Modal),{loadableGenerated:{webpack:()=>[6873]},ssr:!1}),R=e=>{let{id:t}=e;return(0,n.jsx)(O,{tweetId:t})};var S=e=>{let{post:t,className:o}=e,s=(0,a.JA)("POST_DISABLE_GALLERY_CLICK"),i=(0,a.JA)("POST_DISABLE_DATABASE_CLICK"),c=(0,a.JA)("SPOILER_TEXT_TAG"),m=(0,g.useRef)(null),f=(0,a.JA)("IMAGE_ZOOM_IN_WIDTH",1200);return(0,g.useEffect)(()=>{E()},[]),(0,g.useEffect)(()=>{s&&(!m.current&&d.isBrowser&&(m.current=(0,h.Z)({background:"rgba(0, 0, 0, 0.2)",margin:function(){let e=window.innerWidth;return e<500?8:e<800?20:e<1280?30:e<1600?40:e<1920?48:72}()})),_(null==m?void 0:m.current)),i&&x();let e=document.getElementById("notion-article")||document.body;if(!e.querySelector("img"))return;let t=new MutationObserver((e,t)=>{e.forEach(e=>{"attributes"===e.type&&"class"===e.attributeName&&e.target.classList.contains("medium-zoom-image--opened")&&setTimeout(()=>{var t,r;let n=null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.getAttribute("src");null==e||null===(r=e.target)||void 0===r||r.setAttribute("src",(0,l.h)(n,f))},800)})});return t.observe(e,{attributes:!0,subtree:!0,attributeFilter:["class"]}),()=>{t.disconnect()}},[t]),(0,g.useEffect)(()=>{c&&r.e(67429).then(r.t.bind(r,67429,23)).then(e=>{Promise.all([(0,d.loadExternalResource)("/js/spoilerText.js","js"),(0,d.loadExternalResource)("/css/spoiler-text.css","css")]).then(()=>{window.textToSpoiler&&window.textToSpoiler(e.default(c))})})},[t]),(0,n.jsxs)("div",{id:"notion-article",className:"mx-auto overflow-hidden ".concat(o||""),children:[(0,n.jsx)(p.cp,{recordMap:null==t?void 0:t.blockMap,mapPageUrl:T,mapImageUrl:l.I,components:{Code:b,Collection:y,Equation:N,Link:u,Modal:j,Pdf:w,Tweet:R}}),(0,n.jsx)(I,{}),v(null==t?void 0:t.blockMap)&&(0,n.jsx)(A,{})]})}},7835:function(e,t,r){var n=r(85893),a=r(41664),l=r.n(a),o=r(21384);let s=e=>{let{passHref:t,legacyBehavior:r,placeholderSrc:n,fallbackSrc:a,...l}=e;return l},i=e=>{let{placeholderSrc:t,fallbackSrc:r,src:n,alt:a,width:l,height:o,loading:s,decoding:i,onLoad:c,onError:u,...d}=e;return d};t.Z=e=>{let{href:t,children:r,...a}=e,c=(0,o.JA)("LINK"),u="";"string"==typeof t?u=t:"object"==typeof t&&null!==t&&"string"==typeof t.pathname&&(u=t.pathname);let d=u.startsWith("http")&&!u.startsWith(c),h=()=>{var e;let t=new URLSearchParams((null===(e=window.location.search)||void 0===e?void 0:e.slice(1))||""),r={};for(let[e,n]of t.entries())""!==n&&(r[e]=n);return r};if(d){let e="string"==typeof t?t:new URL(t.pathname,c).toString();return(0,n.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",...s(a),children:r})}let m="string"==typeof t?(e=>{if("string"!=typeof e||!e||e.startsWith("#"))return e;let t=h();if(0===Object.keys(t).length)return e;let r=e.startsWith("http://")||e.startsWith("https://"),n=new URL(e,c);return(Object.entries(t).forEach(e=>{let[t,r]=e;n.searchParams.has(t)||n.searchParams.set(t,r)}),r)?n.toString():"".concat(n.pathname).concat(n.search).concat(n.hash)})(t):(e=>{if(!e||"object"!=typeof e)return e;let t=h();return 0===Object.keys(t).length?e:{...e,query:{...t,...e.query||{}}}})(t);return(0,n.jsx)(l(),{href:m,...i(a),children:r})}},55376:function(e,t,r){var n=r(85893),a=r(21384);t.Z=e=>{let{post:t,className:r}=e;return JSON.parse((0,a.JA)("COMMENT_TWIKOO_COUNT_ENABLE"))?(0,n.jsxs)("a",{href:"".concat(t.slug,"?target=comment"),className:"mx-1 hidden comment-count-wrapper-".concat(t.id," ").concat(r||""),children:[(0,n.jsx)("i",{className:"far fa-comment mr-1"}),(0,n.jsx)("span",{className:"comment-count-text-".concat(t.id)})]}):null}},91220:function(e,t,r){r.d(t,{I:function(){return o},h:function(){return s}});var n=r(57733),a=r.n(n),l=r(21384);let o=function(e,t){var r,n;let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"block",o=!(arguments.length>3)||void 0===arguments[3]||arguments[3];if(!e)return null;let i=null;if((!(0===(i=e.startsWith("/")?a().NOTION_HOST+e:e).indexOf("https://www.notion.so/image")||i.includes("notion.site/images/page-cover/"))&&("bookmark"===t.type||i.includes("secure.notion-static.com")||i.includes("prod-files-secure"))||0===i.indexOf("attachment"))&&(i=a().NOTION_HOST+"/image/"+encodeURIComponent(i)+"?table="+l+"&id="+t.id),r=i,!/[\u{1F300}-\u{1F6FF}\u{1F1E0}-\u{1F1FF}\u{2600}-\u{26FF}\u{2700}-\u{27BF}\u{1F900}-\u{1F9FF}\u{1F018}-\u{1F270}\u{238C}\u{2B06}\u{2B07}\u{2B05}\u{27A1}\u{2194}-\u{2199}\u{2194}\u{21A9}\u{21AA}\u{2934}\u{2935}\u{25AA}\u{25AB}\u{25FE}\u{25FD}\u{25FB}\u{25FC}\u{25B6}\u{25C0}
1\u{1F200}-\u{1F251}]/u.test(r)&&0>i.indexOf("notion.so/images/page-cover")){if(a().RANDOM_IMAGE_URL){let e=a().RANDOM_IMAGE_REPLACE_TEXT,t=!1;e?e.split(",").forEach(e=>{i.indexOf(e)>-1&&(t=!0)}):t=!0,t&&(i=a().RANDOM_IMAGE_URL)}if(i&&i.length>4&&!i.includes("https://www.notion.so/images/")){let e=i.includes("?")?"&":"?";i="".concat(i.trim()).concat(e,"t=").concat(t.id)}}if(o){let e=null==t?void 0:null===(n=t.format)||void 0===n?void 0:n.block_width;i=s(i,e)}return i},s=function(e,t){let r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"webp";if(!e||0!==e.indexOf("http")||e.includes(".svg"))return e;t&&0!==t||(t=(0,l.JA)("IMAGE_COMPRESS_WIDTH"));try{r=new URL(e),n=new URLSearchParams(r.search)}catch(t){try{let t=decodeURIComponent(e);r=new URL(t),n=new URLSearchParams(r.search)}catch(r){return console.error("compressImage: Invalid URL:",e,t),e}}return 0===e.indexOf(a().NOTION_HOST)&&e.indexOf("amazonaws.com")>0?(n.set("width",t),n.set("cache","v2"),r.search=n.toString(),r.toString()):0===e.indexOf("https://images.unsplash.com/")?(n.set("q",o),n.set("width",t),n.set("fmt",s),n.set("fm",s),r.search=n.toString(),r.toString()):0===e.indexOf("https://your_picture_bed")?"do_somethin_here":e}},84797:function(e,t,r){r.d(t,{Z:function(){return l},x:function(){return o}});var n=r(57733),a=r.n(n);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a().LANG;if(!e||!t)return e||"";let r=new Date(e).toLocaleDateString(t,{year:"numeric",month:"short",day:"numeric"});return"zh"===t.slice(0,2).toLowerCase()?r.replace("å¹´","-").replace("æ","-").replace("æ¥",""):r}function o(e,t){let r=new Date(e),n={"M+":r.getMonth()+1,"d+":r.getDate(),"h+":r.getHours(),"m+":r.getMinutes(),"s+":r.getSeconds(),"q+":Math.floor((r.getMonth()+3)/3),S:r.getMilliseconds()};for(let e in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(r.getFullYear()+"").substr(4-RegExp.$1.length))),n)RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?n[e]:("00"+n[e]).substr((""+n[e]).length)));return t.trim()}},4224:function(e,t,r){r.r(t);var n=r(85893),a=r(98685),l=r(87897),o=r(55376),s=r(21384),i=r(76966),c=r(84797),u=r(78790),d=r(7835),h=r(32909),m=r(45703),f=r(68561);t.default=e=>{var t,r;let{post:g,index:p,showSummary:v}=e,{locale:x}=(0,i.Og)(),_=(0,s.JA)("NEXT_POST_LIST_PREVIEW",null,h.default)&&g.blockMap,E=p>2?{"data-aos":"fade-down","data-aos-duration":"400","data-aos-once":"true","data-aos-anchor-placement":"top-bottom"}:{};return(0,n.jsx)(m.default,{className:"w-full",children:(0,n.jsxs)("div",{className:"flex flex-col-reverse justify-between duration-300",children:[(0,n.jsxs)("div",{className:"lg:p-8 p-4 flex flex-col w-full",children:[(0,n.jsxs)(d.Z,{...E,href:null==g?void 0:g.href,passHref:!0,className:"cursor-pointer text-3xl ".concat(_?"text-center":""," 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,n.jsx)(a.Z,{icon:g.pageIcon})," ",(0,n.jsx)("span",{className:"menu-link",children:g.title})]}),(0,n.jsxs)("div",{...E,className:"flex mt-2 items-center ".concat(_?"justify-center":"justify-start"," flex-wrap dark:text-gray-500 text-gray-500 "),children:[(0,n.jsxs)("div",{children:[g.category&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(d.Z,{href:"/category/".concat(g.category),passHref:!0,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer font-light text-sm transform",children:[(0,n.jsx)("i",{className:"mr-1 fas fa-folder"}),(0,n.jsx)("span",{className:"menu-link",children:g.category})]}),(0,n.jsx)("span",{className:"mx-2",children:"|"})]}),(0,n.jsx)(d.Z,{href:"/archive#".concat((0,c.x)(null==g?void 0:g.publishDate,"yyyy-MM")),passHref:!0,className:"hover:text-blue-500 dark:hover:text-blue-400 font-light cursor-pointer text-sm leading-4 mr-3",children:(0,n.jsx)("span",{className:"menu-link",children:null===(t=g.date)||void 0===t?void 0:t.start_date})})]}),(0,n.jsx)(o.Z,{post:g,className:"hover:text-blue-500 dark:hover:text-blue-400 hover:underline text-sm"}),(0,n.jsx)("div",{className:"hover:text-blue-500 dark:hover:text-blue-400 md:flex-nowrap flex-wrap md:justify-start inl
1ine-block",children:null===(r=g.tagItems)||void 0===r?void 0:r.map(e=>(0,n.jsx)(f.default,{tag:e},e.name))})]}),(!_||v)&&!g.results&&(0,n.jsx)("p",{...E,className:"mt-4 mb-12 text-gray-700 dark:text-gray-300 text-sm font-light leading-7",children:g.summary}),g.results&&(0,n.jsx)("p",{className:"line-clamp-4 mt-4 text-gray-700 dark:text-gray-300 text-sm font-light leading-7",children:g.results.map((e,t)=>(0,n.jsx)("span",{children:e},t))}),_&&(null==g?void 0:g.blockMap)&&(0,n.jsx)("div",{className:"overflow-ellipsis truncate",children:(0,n.jsx)(l.default,{post:g})}),(0,n.jsx)("div",{className:"text-right border-t pt-8 border-dashed",children:(0,n.jsxs)(d.Z,{href:null==g?void 0:g.href,className:"hover:bg-opacity-100 hover:underline transform duration-300 p-3 text-white bg-gray-800 cursor-pointer",children:[x.COMMON.ARTICLE_DETAIL,(0,n.jsx)("i",{className:"ml-1 fas fa-angle-right"})]})})]}),(0,s.JA)("NEXT_POST_LIST_COVER",null,h.default)&&(null==g?void 0:g.pageCoverThumbnail)&&(0,n.jsx)(d.Z,{href:null==g?void 0:g.href,passHref:!0,legacyBehavior:!0,children:(0,n.jsx)("div",{className:"h-72 w-full relative duration-200 cursor-pointer transform overflow-hidden",children:(0,n.jsx)(u.Z,{className:"w-full h-full object-cover hover:scale-105 transform duration-500",src:null==g?void 0:g.pageCoverThumbnail,alt:g.title,loading:"lazy"})})})]},g.id)})}},45703:function(e,t,r){r.r(t);var n=r(85893);t.default=e=>{let{children:t,headerSlot:r,className:a}=e;return(0,n.jsxs)("div",{className:a,children:[(0,n.jsx)(n.Fragment,{children:r}),(0,n.jsx)("section",{className:"shadow px-2 py-4 bg-white dark:bg-hexo-black-gray hover:shadow-xl duration-200",children:t})]})}},68561:function(e,t,r){r.r(t);var n=r(85893),a=r(7835);t.default=e=>{let{tag:t,selected:r=!1}=e;return(0,n.jsx)(a.Z,{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,n.jsxs)("div",{className:"font-light dark:text-gray-400",children:[r&&(0,n.jsx)("i",{className:"fas fa-tag mr-1"})," ",t.name+(t.count?"(".concat(t.count,")"):"")," "]})},t)}},32909:function(e,t,r){r.r(t),t.default={NEXT_HOME_BANNER:!0,NEXT_HOME_BANNER_STRINGS:["Hiï¼ææ¯ä¸ä¸ªç¨åºå","Hiï¼ææ¯ä¸ä¸ªæå·¥äºº","Hiï¼ææ¯ä¸ä¸ªå¹²é¥äºº","æ¬¢è¿æ¥å°æçå客\uD83C\uDF89"],NEXT_NAV_TYPE:"normal",NEXT_POST_LIST_COVER:!1,NEXT_POST_LIST_PREVIEW:!0,NEXT_POST_LIST_SUMMARY:!1,NEXT_PREVIEW_TAG_COUNT:16,NEXT_PREVIEW_CATEGORY_COUNT:16,NEXT_POST_HEADER_IMAGE_VISIBLE:!1,NEXT_RIGHT_BAR:!0,NEXT_RIGHT_LATEST_POSTS:!0,NEXT_RIGHT_CATEGORY_LIST:!0,NEXT_RIGHT_TAG_LIST:!0,NEXT_RIGHT_AD:!1,NEXT_MENU_HOME:!0,NEXT_MENU_CATEGORY:!0,NEXT_MENU_TAG:!0,NEXT_MENU_ARCHIVE:!0,NEXT_MENU_SEARCH:!0,NEXT_WIDGET_TO_TOP:!0,NEXT_WIDGET_TO_BOTTOM:!1,NEXT_WIDGET_DARK_MODE:!1,NEXT_WIDGET_TOC:!0,NEXT_ARTICLE_RELATE_POSTS:!0,NEXT_ARTICLE_COPYRIGHT:!0,NEXT_ARTICLE_NOT_BY_AI:!1,NEXT_ARTICLE_INFO:!0}}}]);
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.