1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2973,7835,10212,3922,40055],{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:u,...h}=e;return h};t.Z=e=>{let{href:t,children:r,...n}=e,i=(0,l.JA)("LINK"),u="";"string"==typeof t?u=t:"object"==typeof t&&null!==t&&"string"==typeof t.pathname&&(u=t.pathname);let h=u.startsWith("http")&&!u.startsWith(i),f=()=>{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(h){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 d="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://"),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=f();return 0===Object.keys(t).length?e:{...e,query:{...t,...e.query||{}}}})(t);return(0,a.jsx)(s(),{href:d,...c(n),children:r})}},10212:function(e,t,r){r.r(t);var a=r(85893),n=r(11163),s=r(76966),l=r(67294);let o=!1;t.default=e=>{let{currentTag:t,currentSearch:r,cRef:c}=e,{locale:i}=(0,s.Og)(),u=(0,n.useRouter)(),h=(0,l.useRef)(null);(0,l.useImperativeHandle)(c,()=>({focus:()=>{var e;null==h||null===(e=h.current)||void 0===e||e.focus()}}));let f=()=>{let e=h.current.value;e&&""!==e?u.push({pathname:"/search/"+e}).then(e=>{}):u.push({pathname:"/"}).then(e=>{})},d=()=>{h.current.value="",g(!1)};function m(){o=!0}let[p,g]=(0,l.useState)(!1),y=e=>{o||(h.current.value=e,e?g(!0):g(!1))};return(0,a.jsxs)("section",{className:"flex w-full bg-gray-100",children:[(0,a.jsx)("input",{ref:h,type:"text",placeholder:t?"".concat(i.SEARCH.TAGS," #").concat(t):"".concat(i.SEARCH.ARTICLES),className:"outline-none w-full text-sm pl-4 transition focus:shadow-lg font-light leading-10 text-black bg-gray-100 dark:bg-gray-900 dark:text-white",onKeyUp:e=>{13===e.keyCode?f(h.current.value):27===e.keyCode&&d()},onCompositionStart:m,onCompositionUpdate:m,onCompositionEnd:function(){o=!1},onChange:e=>y(e.target.value),defaultValue:r||""}),(0,a.jsx)("div",{className:"-ml-8 cursor-pointer float-right items-center justify-center py-2",onClick:f,children:(0,a.jsx)("i",{className:"hover:text-black transform duration-200 text-gray-500 cursor-pointer fas fa-search"})}),p&&(0,a.jsx)("div",{className:"-ml-12 cursor-pointer dark:bg-gray-600 dark:hover:bg-gray-800 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:d})})]})}},2973:function(e,t,r){r.r(t),r.d(t,{default:function(){return l}});var a=r(85893),n=r(10212),s=r(3922);function l(e){return(0,a.jsxs)("div",{className:"max-w-7xl w-full mx-auto",children:[(0,a.jsx)("div",{className:"py-12",children:(0,a.jsx)(n.default,{...e})}),(0,a.jsx)(s.default,{...e})]})}},3922:function(e,t,r){r.r(t);var a=r(85893),n=r(7835);t.default=e=>{let{tagOptions:t,tag:r}=e;return t?(0,a.jsx)("div",{className:"tag-container",children:(0,a.jsx)("ul",{className:"flex max-w-full mt-4 overflow-x-auto",children:Object.keys(t).map(e=>{let s=t[e],l=s.name===r;return(0,a.jsx)("li",{className:"mr-3 font-medium border whitespace-nowrap dark:text-gray-300 ".concat(l?"text-white bg-black border-black dark:bg-gray-600 dark:border-gray-600":"bg-gray-100 border-gray-100 text-gray-400 dark:bg-night dark:border-gray-800"),children:(0,a.jsx)(n.Z,{href:l?"/search":"/tag/".concat(encodeURIComponent(s.name)),className:"px-4 py-2 block",children:"".concat(s.name," (").concat(s.count,")")},s.id)},s.id)})})}):null}}}]);
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.