1var e={en:`en-US`,zh:`zh-CN`};function t(e){if(e==null||e===``)return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t}function n(n,a,o=`â`,s){let c=t(n);if(!c)return typeof n==`string`&&n!==``?n:o;let l=r(s)?s:`UTC`,u=c.toLocaleString(e[a],{timeZone:l,year:`numeric`,month:`numeric`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,hour12:!1});return l===`UTC`?`${u} UTC`:`${u} ${i(c,a,l)}`}function r(e){if(!e)return!1;try{return new Intl.DateTimeFormat(`en-US`,{timeZone:e}).format(0),!0}catch{return!1}}function i(t,n,r){return new Intl.DateTimeFormat(e[n],{timeZone:r,timeZoneName:`short`}).formatToParts(t).find(e=>e.type===`timeZoneName`)?.value??r}function a(e,t){if(!e)return``;let n=Date.now()-new Date(e).getTime(),r=new Intl.RelativeTimeFormat(t,{numeric:`auto`}),i=Math.floor(n/1e3);if(i<60)return r.format(-i,`second`);let a=Math.floor(i/60);if(a<60)return r.format(-a,`minute`);let o=Math.floor(a/60);if(o<24)return r.format(-o,`hour`);let s=Math.floor(o/24);if(s<7)return r.format(-s,`day`);let c=Math.floor(s/7);if(c<4)return r.format(-c,`week`);let l=Math.floor(s/30);return r.format(-l,`month`)}function o(e){if(!e||e<1024)return`${e||0} B`;let t=[`KB`,`MB`,`GB`],n=e/1024,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r+=1;return`${n<10?n.toFixed(1):Math.round(n)} ${t[r]}`}export{n,a as r,o as t};
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.