1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5327],{95327:function(e,t,i){i.r(t),i.d(t,{default:function(){return N},pickDateTicks:function(){return D}});var s=i(46793),r=i(64187),a=i(18250),n=i(19584),l=i(1190),d=i(40813),c=i(20499),o=i(8124),u=i(27124),h=i(77543),x=i(4400),f=i(66803),m=i(86210);let k=m.H.line,v=m.H.lineFill,p=m.H.axis,y=m.H.grid,j=e=>(0,a.Z)(new Date(e),"d MMM"),g=e=>(0,a.Z)(new Date(e),"d MMM yyyy");function w(e){let{active:t,payload:i,label:a}=e;if(!t||!i||0===i.length)return null;let n=i.find(e=>"views"===e.dataKey),l=i.find(e=>"uniqueViews"===e.dataKey);return(0,s.jsxs)("div",{className:"rounded-md border border-slate-200 bg-white px-3 py-2 shadow-e3 text-ui",children:[(0,s.jsx)("p",{className:"font-medium text-slate-900",children:a?g(a):""}),n&&(0,s.jsxs)("p",{className:"mt-1 tabular-nums text-slate-700",children:["Views: ",(0,r.uf)(Number(n.value||0))]}),l&&(0,s.jsxs)("p",{className:"tabular-nums text-slate-500",children:["Distinct visitors that day: about ",(0,r.uf)(Number(l.value||0))]})]})}function b(){return(0,s.jsxs)("div",{className:"flex items-center gap-4 text-micro normal-case tracking-normal text-slate-500",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("svg",{width:"20",height:"6","aria-hidden":"true",children:(0,s.jsx)("line",{x1:"0",y1:"3",x2:"20",y2:"3",stroke:k,strokeWidth:"2"})}),"Views"]}),(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("svg",{width:"20",height:"6","aria-hidden":"true",children:(0,s.jsx)("line",{x1:"0",y1:"3",x2:"20",y2:"3",stroke:p,strokeWidth:"2",strokeDasharray:"4 3"})}),"â distinct visitors/day"]})]})}function D(e,t){if(0===e.length)return[];let i=Math.max(2,Math.floor(t/72));if(e.length<=i)return[...e];let s=(e.length-1)/(i-1),r=[];for(let t=0;t<i;t++){let i=e[Math.round(t*s)];void 0===i||r.includes(i)||r.push(i)}return r}function N(e){let{data:t,height:i=240}
1=e,r=(0,n.useRef)(null),[a,m]=(0,n.useState)(0);(0,n.useEffect)(()=>{let e=r.current;if(!e||"undefined"==typeof ResizeObserver)return;let t=()=>m(e.clientWidth);t();let i=new ResizeObserver(t);return i.observe(e),()=>i.disconnect()},[]);let g=a>0?D(t.map(e=>e.date),Math.max(0,a-56)):void 0;return(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"mb-2 flex justify-end px-1",children:(0,s.jsx)(b,{})}),(0,s.jsx)("div",{ref:r,role:"img","aria-label":"Daily views for the last ".concat(t.length," days: solid line total views, dashed line approximate distinct visitors per day."),children:(0,s.jsx)(l.h,{width:"100%",height:i,children:(0,s.jsxs)(d.c,{data:t,margin:{top:8,right:16,left:8,bottom:0},children:[(0,s.jsx)(c.q,{strokeDasharray:"3 3",stroke:y,vertical:!1}),(0,s.jsx)(o.K,{dataKey:"date",tickFormatter:j,tick:{fontSize:12,fill:p},tickLine:!1,axisLine:{stroke:y},minTickGap:24,ticks:g,padding:{left:20,right:12}}),(0,s.jsx)(u.B,{allowDecimals:!1,width:36,tick:{fontSize:12,fill:p},tickLine:!1,axisLine:!1}),(0,s.jsx)(h.u,{cursor:{stroke:y},content:(0,s.jsx)(w,{})}),(0,s.jsx)(x.u,{type:"linear",dataKey:"views",stroke:k,strokeWidth:2,fill:v,dot:!1,activeDot:{r:3,fill:k,strokeWidth:0},isAnimationActive:!1}),(0,s.jsx)(f.x,{type:"linear",dataKey:"uniqueViews",stroke:p,strokeWidth:2,strokeDasharray:"5 4",dot:!1,activeDot:{r:3,fill:p,strokeWidth:0},isAnimationActive:!1})]})})})]})}},86210:function(e,t,i){i.d(t,{H:function(){return s}});let s={bar:"#6A90B5",barActive:"#2B4869",line:"#2B4869",lineFill:"rgba(43, 72, 105, 0.15)",compare:"#64748B",attention:"#D97706",attentionText:"#B45309",grid:"#E2E8F0",ghost:"#CBD5E1",axis:"#64748B"}}}]);
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.