1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12174,7835,190,90905,14202],{7835:function(e,t,r){var n=r(85893),a=r(41664),l=r.n(a),i=r(21384);let s=e=>{let{passHref:t,legacyBehavior:r,placeholderSrc:n,fallbackSrc:a,...l}=e;return l},o=e=>{let{placeholderSrc:t,fallbackSrc:r,src:n,alt:a,width:l,height:i,loading:s,decoding:o,onLoad:c,onError:d,...u}=e;return u};t.Z=e=>{let{href:t,children:r,...a}=e,c=(0,i.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(c),f=()=>{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(u){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 h="string"==typeof t?(e=>{if("string"!=typeof e||!e||e.startsWith("#"))return e;let t=f();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=f();return 0===Object.keys(t).length?e:{...e,query:{...t,...e.query||{}}}})(t);return(0,n.jsx)(l(),{href:h,...o(a),children:r})}},12174:function(e,t,r){r.r(t),r.d(t,{Header:function(){return c}});var n=r(85893),a=r(7835),l=r(21384),i=r(76966),s=r(14202),o=r(90905);let c=e=>{let{isDarkMode:t,toggleDarkMode:r}=(0,i.Og)();return(0,n.jsx)("header",{className:"tl-header sticky top-0 z-40 w-full",children:(0,n.jsxs)("div",{className:"mx-auto flex max-w-3xl items-center gap-2 px-4 py-3 md:gap-4 overflow-visible",children:[(0,n.jsx)(a.Z,{href:"/",className:"tl-brand flex-shrink-0 text-lg font-semibold text-[var(--tl-text)] no-underline hover:opacity-80",children:(0,l.JA)("TITLE")}),(0,n.jsx)(o.MenuList,{...e,variant:"header"}),(0,n.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-1",children:[(0,l.JA)("THOUGHTLITE_MENU_SEARCH",null,s.default)&&(0,n.jsx)("button",{type:"button",className:"tl-icon-btn",onClick:()=>{window.location.href="/search"},"aria-label":"Search",children:(0,n.jsx)("i",{className:"fas fa-search text-sm"})}),(0,n.jsx)("button",{type:"button",className:"tl-icon-btn",onClick:r,"aria-label":t?"Light mode":"Dark mode",children:(0,n.jsx)("span",{className:"text-base leading-none",children:t?"â":"â¾"})})]})]})})}},190:function(e,t,r){r.r(t),r.d(t,{MenuItemDrop:function(){return s}});var n=r(85893),a=r(7835),l=r(67294),i=r(73935);let s=e=>{var t;let{link:r,variant:s="default"}=e,[o,c]=(0,l.useState)(!1),[d,u]=(0,l.useState)({top:0,left:0}),f=(0,l.useRef)(null),h=(0,l.useRef)(null),m=(null==r?void 0:null===(t=r.subMenus)||void 0===t?void 0:t.length)>0,T="inline"===s,x=(0,l.useCallback)(()=>{h.current&&(clearTimeout(h.current),h.current=null)},[]),p=(0,l.useCallback)(()=>{x(),c(!0)},[x]),v=(0,l.useCallback)(()=>{x(),h.current=setTimeout(()=>c(!1),120)},[x]);if((0,l.useEffect)(()=>()=>x(),[x]),(0,l.useEffect)(()=>{if(!o||!T||!m||!f.current)return;let e=()=>{let e=f.current.getBoundingClientRect();u({top:e.bottom+4,left:e.left})};return e(),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,{passive:!0}),window.removeEventListener("resize",e)}},[o,T,m]),(null==r?void 0:r.show)===!1)return null;let b=T?"relative flex-shrink-0":"cursor-pointer",E=T?"rounded-md px-2 py-1.5 tl-nav-link no-underline flex items-center gap-1.5 whitespace-nowrap":"rounded px-2 md:pl-0 md:mr-3 my-4 md:pr-3 text-gray-700 dark:text-gray-200 no-underline md:border-r border-gray-light",g=m?(0,n.jsx)("ul",{className:T?"tl-card min-w-[10rem] py-1 shadow-lg border border-gray-200 bg-white dark:border-gray-700 dark:bg-gray-900 transition-all duration-200 ".concat(o?"visible opacity-100":"hidden pointer-events-none opacity-0"):"".concat(o?"visible opacity-100":"hidden pointer-events-none opacity-0"," absolute z-30 transition-all duration-200 left-0 top-12 block border border-gray-100 bg-white drop-shadow-lg dark:border-gray-800 dark:bg-black"),style:T&&o?{position:"fixed",top:d.top,left
1:d.left,zIndex:50}:void 0,onMouseEnter:T?p:void 0,onMouseLeave:T?v:void 0,children:r.subMenus.map((e,t)=>(0,n.jsx)("li",{className:"not:last-child:border-b-0 border-b text-gray-700 dark:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-900 tracking-widest transition-all duration-200 dark:border-gray-800 py-3 pr-6 pl-3 ".concat(T?"border-0 hover:bg-[var(--tl-accent-soft)]":""),children:(0,n.jsx)(a.Z,{href:e.href,target:null==r?void 0:r.target,children:(0,n.jsxs)("span",{className:"text-sm text-nowrap font-extralight",children:[(null==e?void 0:e.icon)&&(0,n.jsx)("i",{className:e.icon,children:" \xa0 "}),e.title]})})},t))}):null;return(0,n.jsxs)("li",{ref:T?f:void 0,className:b,onMouseEnter:p,onMouseLeave:v,children:[!m&&(0,n.jsx)("div",{className:E,children:(0,n.jsxs)(a.Z,{href:null==r?void 0:r.href,target:null==r?void 0:r.target,children:[(null==r?void 0:r.icon)&&(0,n.jsx)("i",{className:null==r?void 0:r.icon})," ",null==r?void 0:r.name]})}),m&&(0,n.jsxs)("div",{className:E,children:[(null==r?void 0:r.icon)&&(0,n.jsx)("i",{className:null==r?void 0:r.icon})," ",null==r?void 0:r.name,(0,n.jsx)("i",{className:"px-2 fas fa-chevron-down duration-500 transition-all ".concat(o?" rotate-180":"")})]}),g&&(T&&"undefined"!=typeof document?(0,i.createPortal)(g,document.body):g)]})}},90905:function(e,t,r){r.r(t),r.d(t,{MenuList:function(){return o}});var n=r(85893),a=r(21384),l=r(76966),i=r(14202),s=r(190);let o=e=>{let{customNav:t,customMenu:r,variant:o="stack"}=e,{locale:c}=(0,l.Og)(),d=[{id:1,icon:"fas fa-search",name:c.NAV.SEARCH,href:"/search",show:(0,a.JA)("THOUGHTLITE_MENU_SEARCH",null,i.default)},{id:2,icon:"fas fa-archive",name:c.NAV.ARCHIVE,href:"/archive",show:(0,a.JA)("THOUGHTLITE_MENU_ARCHIVE",null,i.default)},{id:3,icon:"fas fa-folder",name:c.COMMON.CATEGORY,href:"/category",show:(0,a.JA)("THOUGHTLITE_MENU_CATEGORY",null,i.default)},{id:4,icon:"fas fa-tag",name:c.COMMON.TAGS,href:"/tag",show:(0,a.JA)("THOUGHTLITE_MENU_TAG",null,i.default)}];
1return(t&&(d=d.concat(t)),(0,a.JA)("CUSTOM_MENU")&&(d=r),d&&0!==d.length)?"header"===o?(0,n.jsx)("nav",{"aria-label":"Main",className:"flex-1 min-w-0 flex justify-center overflow-visible",children:(0,n.jsx)("ul",{className:"flex items-center gap-0.5 sm:gap-1 overflow-x-auto max-w-full py-1 no-scrollbar overflow-y-visible",children:d.filter(e=>(null==e?void 0:e.show)!==!1).map((e,t)=>{var r;return(0,n.jsx)(s.MenuItemDrop,{link:e,variant:"inline"},null!==(r=e.id)&&void 0!==r?r:t)})})}):(0,n.jsx)("nav",{className:"w-full bg-white md:pt-0 px-6 relative z-20 border-t border-b border-gray-light dark:border-hexo-black-gray dark:bg-black",children:(0,n.jsx)("div",{className:"mx-auto max-w-4xl md:flex justify-between items-center text-sm md:text-md md:justify-start",children:(0,n.jsx)("ul",{className:"w-full text-center md:text-left flex flex-wrap justify-center items-stretch md:justify-start md:items-start",children:d.map((e,t)=>(0,n.jsx)(s.MenuItemDrop,{link:e},t))})})}):null}},14202:function(e,t,r){r.r(t),t.default={THOUGHTLITE_MENU_CATEGORY:!0,THOUGHTLITE_MENU_TAG:!0,THOUGHTLITE_MENU_ARCHIVE:!0,THOUGHTLITE_MENU_SEARCH:!0,THOUGHTLITE_HOME_TIMELINE:!0,THOUGHTLITE_HOME_LATEST_CARD:!0,THOUGHTLITE_SIDEBAR_ONLY_ON_POST:!0,THOUGHTLITE_POST_LIST_COVER:!1,THOUGHTLITE_TITLE_IMAGE:!1,THOUGHTLITE_HOME_MINIMAL_HEADER:!0,THOUGHTLITE_ARTICLE_LAYOUT_VERTICAL:!1,THOUGHTLITE_ARTICLE_HIDDEN_NOTIFICATION:!1}}}]);
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.