PageSourceSearch

https://696988.xyz/_next/static/chunks/4224.22abdd60fb17767c.js

js 696988.xyz collected 2026-10-07 19:58:03 UTC 10,772 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4224,7835,70387,6140,27143,12336,45703,68561,32909,24596,70752,78790,6221,29259,74533,94062,37706],{78790:function(e,t,r){r.d(t,{Z:function(){return i}});var a=r(85893),n=r(21384),s=r(9008),l=r.n(s),o=r(67294);let c=(e,t)=>{let r=Number(e),a=Number(t);return Number.isFinite(r)&&r>0?Number.isFinite(a)&&a>0?Math.min(r,a):r:t};function i(e){let{priority:t,id:r,src:s,alt:i,fallbackSrc:u,placeholderSrc:h,className:m,width:f,height:g,title:x,onLoad:_,onClick:p,style:E,loading:N}=e,T=c(f,(0,n.JA)("IMAGE_COMPRESS_WIDTH")),v=(0,n.JA)("IMG_LAZY_LOAD_PLACEHOLDER"),y=(0,o.useRef)(null),[b,j]=(0,o.useState)(t&&s?d(s,T):h||v),[I,O]=(0,o.useState)(!!(t&&s)),w=(0,o.useCallback)(()=>{y.current&&(y.current.src!==u&&u?y.current.src=u:y.current.src!==h&&h?y.current.src=h:y.current.src=v,O(!0),y.current.classList.remove("lazy-image-placeholder"))},[v,u,h]);(0,o.useEffect)(()=>{let e=d(s,T)||v,r=y.current,a=()=>{"function"==typeof _&&_(),O(!0),y.current&&y.current.classList.remove("lazy-image-placeholder")};if(t){let t=new Image;t.src=e,t.onload=()=>{j(e),a(e)},t.onerror=w;return}if(!window.IntersectionObserver){let t=new Image;t.src=e,t.onload=()=>{j(e),a(e)},t.onerror=w;return}let l=new IntersectionObserver(t=>{t.forEach(t=>{if(t.isIntersecting){let r=new Image;"decoding"in r&&(r.decoding="async"),r.src=e,r.onload=()=>{j(e),a(e)},r.onerror=w,l.unobserve(t.target)}})},{rootMargin:(0,n.JA)("LAZY_LOAD_THRESHOLD","200px"),threshold:.1});return r&&l.observe(r),()=>{r&&l.unobserve(r)}},[s,T,t,v,u,w,_,h]);let R={ref:y,src:b,"data-src":s,alt:i||"Lazy loaded image",onLoad:()=>{},onError:w,className:"".concat(m||"").concat(I?"":" lazy-image-placeholder"),style:{aspectRatio:f&&g?"".concat(f," / ").concat(g):void 0,containIntrinsicSize:f||g?void 0:"300px 200px",...E},onClick:p,loading:t?"eager":N||"lazy",decoding:"async",...(0,n.JA)("WEBP_SUPPORT")&&{"data-webp":!0},...(0,n.JA)("AVIF_SUPPORT")&&{"data-avif":!0}};return(r&&(R.id=r),x&&(R.title=x),f&&(R.width=f),g&&(R.height=g),t&&(R.fetchpriority="high"),s)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{alt:R.alt,...R}),t&&(0,a.jsx)(l(),{children:(0,a.jsx)("link",{rel:"preload",as:"image",href:d(s,T),fetchpriority:"high"})})]}):null}let d=(e,t)=>{var r,a;if(!e)return null;let n=(null===(a=window)||void 0===a?void 0:null===(r=a.screen)||void 0===r?void 0:r.width)||t,s=Number(t),l=Number.isFinite(s)&&s>0?Math.min(n,s):n;return l?e.replace(/width=\d+/,"width=".concat(l)).replace(/w=\d+/,"w=".concat(l)):e}},98685:function(e,t,r){var a=r(85893),n=r(78790);t.Z=e=>{let{icon:t}=e;return t?t.startsWith("http")||t.startsWith("data:")?(0,a.jsx)(n.Z,{src:t,width:32,height:32,className:"w-8 h-8 my-auto inline mr-1"}):(0,a.jsx)("span",{className:"mr-1",children:t}):(0,a.jsx)(a.Fragment,{})}},7835:function(e,t,r){var a=r(85893),n=r(41664),s=r.n(n),l=r(21384);let o=e=>{let{passHref:t,legacyBehavior:r,placeholderSrc:a,fallbackSrc:n,...s}=e;return s},c=e=>{let{placeholderSrc:t,fallbackSrc:r,src:a,alt:n,width:s,height:l,loading:o,decoding:c,onLoad:i,onError:d,...u}=e;return u};t.Z=e=>{let{href:t,children:r,...n}=e,i=(0,l.JA)("LINK"),d="";"string"==typeof t?d=t:"object"==typeof t&&null!==t&&"string"==typeof t.pathname&&(d=t.pathname);let u=d.startsWith("http")&&!d.startsWith(i),h=()=>{var e;let t=new URLSearchParams((null===(e=window.location.search)||void 0===e?void 0:e.slice(1))||""),r={};for(let[e,a]of t.entries())""!==a&&(r[e]=a);return r};if(u){let e="string"==typeof t?t:new URL(t.pathname,i).toString();return(0,a.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",...o(n),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://"),a=new URL(e,i);return(Object.entries(t).forEach(e=>{let[t,r]=e;a.searchParams.has(t)||a.searchParams.set(t,r)}),r)?a.toString():"".concat(a.pathname).concat(a.search).concat(a.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,a.jsx)(s(),{href:m,...c(n),children:r})}},55376:function(e,t,r){var a=r(85893),n=r(21384);t.Z=e=>{let{post:t,className:r}=e;return JSON.parse((0,n.JA)("COMMENT_TWIKOO_COUNT_ENABLE"))?(0,a.jsxs)("a",{href:"".concat(t.slug,"?target=comment"),className:"mx-1 hidden comment-count-wrapper-".concat(t.id," ").concat(r||""),children:[(0,a.jsx)("i",{className:"far fa-comment mr-1"}),(0,a.jsx)("span",{className:"comment-count-text-".concat(t.id)})]}):null}},84797:function(e,t,r){r.d(t,{Z:function(){return s},x:function(){return l}});var a=r(57733),n=r.n(a);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n().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 l(e,t){let r=new Date(e),a={"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))),a)RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[e]:("00"+a[e]).substr((""+a[e]).length)));return t.trim()}},4224:function(e,t,r){r.r(t);var a=r(85893),n=r(98685),s=r(87897),l=r(55376),o=r(21384),c=r(76966),i=r(84797),d=r(78790),u=r(7835),h=r(32909),m=r(45703),f=r(68561);t.default=e=>{var t,r;let{post:g,index:x,showSummary:_}=e,{locale:p}=(0,c.Og)(),E=(0,o.JA)("NEXT_POST_LIST_PREVIEW",null,h.default)&&g.blockMap,N=x>2?{"data-aos":"fade-down","data-aos-duration":"400","data-aos-once":"true","data-aos-anchor-placement":"top-bottom"}:{};return(0,a.jsx)(m.default,{className:"w-full",children:(0,a.jsxs)("div",{className:"flex flex-col-reverse justify-between duration-300",children:[(0,a.jsxs)("div",{className:"lg:p-8 p-4 flex flex-col w-full",children:[(0,a.jsxs)(u.Z,{...N,href:null==g?void 0:g.href,passHref:!0,className:"cursor-pointer text-3xl ".concat(E?"text-center":""," leading-tight text-gray-700 dark:text-gray-100 hover:text-blue-500 dark:hover:text-blue-400"),children:[(0,o.JA)("POST_TITLE_ICON")&&(0,a.jsx)(n.Z,{icon:g.pageIcon})," ",(0,a.jsx)("span",{className:"menu-link",children:g.title})]}),(0,a.jsxs)("div",{...N,className:"flex mt-2 items-center ".concat(E?"justify-center":"justify-start"," flex-wrap dark:text-gray-500 text-gray-500 "),children:[(0,a.jsxs)("div",{children:[g.category&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.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,a.jsx)("i",{className:"mr-1 fas fa-folder"}),(0,a.jsx)("span",{className:"menu-link",children:g.category})]}),(0,a.jsx)("span",{className:"mx-2",children:"|"})]}),(0,a.jsx)(u.Z,{href:"/archive#".concat((0,i.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,a.jsx)("span",{className:"menu-link",children:null===(t=g.date)||void 0===t?void 0:t.start_date})})]}),(0,a.jsx)(l.Z,{post:g,className:"hover:text-blue-500 dark:hover:text-blue-400 hover:underline text-sm"}),(0,a.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,a.jsx)(f.default,{tag:e},e.name))})]}),(!E||_)&&!g.results&&(0,a.jsx)("p",{...N,className:"mt-4 mb-12 text-gray-700 dark:text-gray-300 text-sm font-light leading-7",children:g.summary}),g.results&&(0,a.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,a.jsx)("span",{children:e},t))}),E&&(null==g?void 0:g.blockMap)&&(0,a.jsx)("div",{className:"overflow-ellipsis truncate",children:(0,a.jsx)(s.default,{post:g})}),(0,a.jsx)("div",{className:"text-right border-t pt-8 border-dashed",children:(0,a.jsxs)(u.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:[p.COMMON.ARTICLE_DETAIL,(0,a.jsx)("i",{className:"ml-1 fas fa-angle-right"})]})})]}),(0,o.JA)("NEXT_POST_LIST_COVER",null,h.default)&&(null==g?void 0:g.pageCoverThumbnail)&&(0,a.jsx)(u.Z,{href:null==g?void 0:g.href,passHref:!0,legacyBehavior:!0,children:(0,a.jsx)("div",{className:"h-72 w-full relative duration-200 cursor-pointer transform overflow-hidden",children:(0,a.jsx)(d.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 a=r(85893);t.default=e=>{let{children:t,headerSlot:r,className:n}=e;return(0,a.jsxs)("div",{className:n,children:[(0,a.jsx)(a.Fragment,{children:r}),(0,a.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 a=r(85893),n=r(7835);t.default=e=>{let{tag:t,selected:r=!1}=e;return(0,a.jsx)(n.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,a.jsxs)("div",{className:"font-light dark:text-gray-400",children:[r&&(0,a.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.