PageSourceSearch

https://analytics.ghostid.ai/_next/static/chunks/9764.ce582c34e464bd46.js

js ghostid.ai collected 2026-10-05 13:44:54 UTC 21,082 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9764],{49764:(e,t,r)=>{r.r(t),r.d(t,{default:()=>M});var a=r(54568),l=r(7620),o=r(12160),n=r(30344),s=r(2955),i=r(75451),c=r(97296),d=r(60786),h=r(84790),u=r(39109),x=r(48065),g=r(9854),b=r(18080),m=r(85973),f=r(87551),p=r(51166),v=r(70419),N=r(28239),y=r(13119),w=r(38391),S=r(74624),j=r(25703);let A={"01":"AL","02":"AK","04":"AZ","05":"AR","06":"CA","08":"CO","09":"CT",10:"DE",11:"DC",12:"FL",13:"GA",15:"HI",16:"ID",17:"IL",18:"IN",19:"IA",20:"KS",21:"KY",22:"LA",23:"ME",24:"MD",25:"MA",26:"MI",27:"MN",28:"MS",29:"MO",30:"MT",31:"NE",32:"NV",33:"NH",34:"NJ",35:"NM",36:"NY",37:"NC",38:"ND",39:"OH",40:"OK",41:"OR",42:"PA",44:"RI",45:"SC",46:"SD",47:"TN",48:"TX",49:"UT",50:"VT",51:"VA",53:"WA",54:"WV",55:"WI",56:"WY",72:"PR"},k={AL:"Alabama",AK:"Alaska",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District of Columbia",FL:"Florida",GA:"Georgia",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PA:"Pennsylvania",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming",PR:"Puerto Rico"},T=e=>A[String(e).padStart(2,"0")],C=e=>{let{type:t,className:r}=e,l=(t||"").toLowerCase();return l.includes("mobile")||l.includes("phone")?(0,a.jsx)(x.A,{className:r}):l.includes("tablet")?(0,a.jsx)(g.A,{className:r}):(0,a.jsx)(b.A,{className:r})};function M(e){let{visitors:t,isDark:r,onVisitorClick:x,mode:g="dashboard",dotColorFn:b,siteId:A,defaultView:M,highlightVid:I}=e,P=(0,l.useRef)(null),[E,z]=(0,l.useState)(null),[R,_]=(0,l.useState)(null),[D,W]=(0,l.useState)([]),[L,F]=(0,l.useState)(null),[O,V]=(0,l.useState)(null),[U,K]=(0,l.useState)(null),H=(0,l.useRef)(U),[G,Y]=(0,l.useState)({x:0,y:0}),B=(0,l.useRef)(),J=(0,l.useRef)(0),[X,q]=(0,l.useState)(()=>M||localStorage.getItem("ghost_map_view")||"world"),Z="visitor-profile"===g,Q=(0,l.useRef)(!1),$=(0,l.useMemo)(()=>R?d.A(R,R.objects.states):null,[R]),ee=(0,l.useRef)(1),et=(0,l.useRef)(0),er=(0,l.useRef)(0),ea=(0,l.useRef)(1),el=(0,l.useRef)(0),eo=(0,l.useRef)(0),en=(e,t)=>o.A().scale(Math.min(1.1*e,1.8*t)*ee.current).translate([e/2+et.current,t/2+er.current]),es=(0,l.useCallback)(()=>{ea.current=1,el.current=0,eo.current=0,K(null)},[]);(0,l.useEffect)(()=>{if(H.current=U,!U)return;let e=e=>{"Escape"===e.key&&es()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[U,es]),(0,l.useEffect)(()=>{fetch("/world.json").then(e=>e.json()).then(e=>z(e)).catch(e=>console.error("Failed to load world map:",e))},[]),(0,l.useEffect)(()=>{fetch("/us-states.json").then(e=>e.json()).then(e=>_(e)).catch(e=>console.error("Failed to load US states:",e))},[]),(0,l.useEffect)(()=>{"usa"===X&&A&&fetch("/api/stats/us-states?siteId=".concat(A)).then(e=>e.json()).then(e=>W(e.states||[])).catch(e=>console.error("Failed to load state stats:",e))},[X,A]),(0,l.useEffect)(()=>{E&&R&&!Q.current&&(Q.current=!0,"usa"===(M||localStorage.getItem("ghost_map_view"))&&ec("usa"))},[E,R]);let ei=(e,t,r)=>e+(t-e)*r;(0,l.useEffect)(()=>{let e=P.current;if(!e||!E)return;let a=e.getContext("2d");if(!a)return;let l=window.devicePixelRatio||1,o=e.getBoundingClientRect();e.width=o.width*l,e.height=o.height*l,a.scale(l,l);let h=o.width,u=o.height,x=h/5.5,g=d.A(E,E.objects.land||E.objects.countries),m=E.objects.countries?d.A(E,E.objects.countries):null,f=()=>{let e;J.current+=.015,ee.current=ei(ee.current,ea.current,.1),et.current=ei(et.current,el.current,.1),er.current=ei(er.current,eo.current,.1),e="usa"===X&&R?en(h,u):n.A().scale(x*ee.current).translate([h/2+et.current,u/2+er.current]);let l=s.A(e,a);a.fillStyle=r?"#0a0a0a":"#f8fafc",a.fillRect(0,0,h,u);let o=i.A().step([20,20]);"world"!==X&&R||(a.beginPath(),l(o()),a.strokeStyle=r?"rgba(255,255,255,0.03)":"rgba(0,0,0,0.04)",a.lineWidth=.5,a.stroke()),"world"!==X&&R||(a.beginPath(),l({type:"Sphere"}),a.strokeStyle=r?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.1)",a.lineWidth=1,a.stroke()),"world"!==X&&R||(m?m.features.forEac
1h(e=>{a.beginPath(),l(e),a.fillStyle=r?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.06)",a.fill(),a.strokeStyle=r?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.1)",a.lineWidth=.5,a.stroke()}):(a.beginPath(),l(g),a.fillStyle=r?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.07)",a.fill(),a.strokeStyle=r?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.12)",a.lineWidth=.5,a.stroke()));let d="usa"===X?H.current:null,p=d?null==$?void 0:$.features.find(e=>String(e.id)===d.code):null;if("usa"===X&&$){let e=new Map(D.map(e=>[e.stateCode,e])),t=Math.max(...D.map(e=>e.visitors),1);$.features.forEach(o=>{a.beginPath(),l(o);let n=T(o.id),s=n?e.get(n):void 0;if(d&&String(o.id)!==d.code)a.fillStyle=r?"rgba(255,255,255,0.02)":"rgba(0,0,0,0.03)";else if(s){let e=Math.pow(s.visitors/t,.4);r?a.fillStyle="rgba(255, 0, 40, ".concat(.08+.35*e,")"):a.fillStyle="rgba(255, 0, 40, ".concat(.05+.3*e,")")}else a.fillStyle=r?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.06)";if(a.fill(),a.strokeStyle=r?"rgba(255,255,255,0.15)":"rgba(0,0,0,0.15)",a.lineWidth=.5,d){let e=String(o.id)===d.code;a.strokeStyle=e?"rgba(255,0,40,0.6)":r?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.08)",a.lineWidth=e?1:.5}a.stroke()})}let v="usa"===X&&R?h/2:h/2+et.current,N="usa"===X&&R?u/2:u/2+er.current;if(!Z){a.strokeStyle=r?"rgba(255,0,40,0.15)":"rgba(255,0,40,0.1)",a.lineWidth=1,a.setLineDash([5,5]),a.beginPath(),a.moveTo(v-50,N),a.lineTo(v+50,N),a.moveTo(v,N-50),a.lineTo(v,N+50),a.stroke(),a.setLineDash([]);let e=.5*J.current%(2*Math.PI),t=a.createConicGradient(e,v,N);t.addColorStop(0,"rgba(255,0,40,0.08)"),t.addColorStop(.1,"rgba(255,0,40,0)"),t.addColorStop(1,"rgba(255,0,40,0)"),a.fillStyle=t,a.beginPath(),a.arc(v,N,.4*Math.min(h,u)*("usa"===X&&R?1:ee.current),0,2*Math.PI),a.fill()}t.forEach(t=>{if(!Number.isFinite(t.lat)||!Number.isFinite(t.lon)||!t.is_live||Z)return;let r=e([t.lon,t.lat]);r&&(a.beginPath(),a.moveTo(v,N),a.lineTo(r[0],r[1]),a.strokeStyle="rgba(16, 185, 129, 0.15)",a.lineWidth=1,a.stroke())});let y=t.filter(e=>Number.isFinite(e.lat)&&Number.isFinite(e.lon)).map(t=>({visitor:t,pos:e([t.lon,t.lat])})).filter(e=>!!e.pos);if(Z){let e=y.filter((e,t,r)=>{if(0===t)return!0;let a=r[t-1];return a.pos[0]!==e.pos[0]||a.pos[1]!==e.pos[1]}),t=e.length<=1;!t&&e.length>1&&(a.beginPath(),e.forEach((e,t)=>{0===t?a.moveTo(e.pos[0],e.pos[1]):a.lineTo(e.pos[0],e.pos[1])}),a.strokeStyle="rgba(255,0,40,0.4)",a.lineWidth=1.5,a.stroke()),e.forEach((e,r)=>{let[l,o]=e.pos,n=.5*Math.sin(2.5*J.current+.3*r)+.5,s=t?5+1.5*n:4+ +n;for(let e=2;e>=1;e--)a.beginPath(),a.arc(l,o,s+8*e,0,2*Math.PI),a.fillStyle="rgba(255,0,40,".concat(.04*(3-e)*n,")"),a.fill();a.beginPath(),a.arc(l,o,s,0,2*Math.PI),a.fillStyle="#FF0028",a.fill(),a.beginPath(),a.arc(l,o,2,0,2*Math.PI),a.fillStyle="rgba(255,255,255,0.9)",a.fill()})}else{t.forEach((t,l)=>{if(!Number.isFinite(t.lat)||!Number.isFinite(t.lon))return;let o=e([t.lon,t.lat]);if(!o)return;let[n,s]=o;if(t.is_live){let e=.5*Math.sin(3*J.current+.5*l)+.5,r=5+3*e,o=b?b(t):"#10b981";for(let t=3;t>=1;t--)a.beginPath(),a.arc(n,s,r+8*t,0,2*Math.PI),b?a.fillStyle="".concat(o).concat(Math.round(.03*(4-t)*e*255).toString(16).padStart(2,"0")):a.fillStyle="rgba(16, 185, 129, ".concat(.03*(4-t)*e,")"),a.fill();let i=a.createRadialGradient(n,s,0,n,s,r);b?(i.addColorStop(0,o),i.addColorStop(.5,o),i.addColorStop(1,o)):(i.addColorStop(0,"#34d399"),i.addColorStop(.5,"#10b981"),i.addColorStop(1,"#059669")),a.beginPath(),a.arc(n,s,r,0,2*Math.PI),a.fillStyle=i,a.fill(),a.beginPath(),a.arc(n,s,2,0,2*Math.PI),a.fillStyle="white",a.fill();let c=(30*J.current+20*l)%40+r,d=Math.max(0,1-(c-r)/40);a.beginPath(),a.arc(n,s,c,0,2*Math.PI),b?a.strokeStyle="".concat(o).concat(Math.round(.5*d*255).toString(16).padStart(2,"0")):a.strokeStyle="rgba(16, 185, 129, ".concat(.5*d,")"),a.lineWidth=2,a.stroke()}else a.beginPath(),a.arc(n,s,4,0,2*Math.PI),b?a.fillStyle="".concat(b(t),"99"):a.fillStyle=r?"rgba(113,113,122,0.6)":"rgba(161,161,170,0.6)",a.fill(),a.beginPath(),a.arc(n,s,2,0,2*Math.PI),b?a.fillStyle="".concat(b(t),"cc"):a.fillStyle=r?"rgba(161,161,170,0.8)":"rgba(113,113,122,0.8)",a.fill()});let l=y.find(e=>{let{visitor:t}=e;return t.ghost_vid===I});if(l){let[e,t]=l.pos;if(e>=0&&e<=h&&t>=0&&t<=u)for(let r=0;r<2;r++){let l=(J.current/1.2+.5*r)%1;a.beginPath(),a.arc(e,t,6+22*l,0,2*Math.PI),a.strokeStyle="rgba(255,255,255,".concat(.35*(1-l),")"),a.lineWidth=1,a.stroke()}}a.strokeStyle=r?"rgba(255,0,40,0.3)":"rgba(255,0,40,0.2)",a.lineWidth=2,a.beginPath(),a.moveTo(15,35),a.lineTo(15,15),a.lineTo(35,15),a.stroke(),a.beginPath(),a.moveTo(h-15-20,15),a.lineTo(h-15,15),a.lineTo(h-15,35),a.stroke(),a.beginPath(),a.moveTo(15,u-15-20),a.lineTo(15,u-15),a.lineTo(35,u-15),a.stroke(),a.beginPath(),a.moveTo(h-15-20,u-15),a.lineTo(h-15,u-15),a.lineTo(h-15,u-15-20),a.stroke();let o=t.filter(e=>e.is_live).length;if(a.font="bold 11px ui-monospace, monospace",a.fillStyle="#10b981",a.fillText("● ".concat(o," LIVE"),20,55),a.fillStyle=r?"rgba(255,255,255,0.4)":"rgba(0,0,0,0.4)",a.fillText("TOTAL: ".concat(t.length),20,70),d&&p){let e=t.filter(e=>Number.isFinite(e.lat)&&Number.isFinite(e.lon)&&c.A(p,[e.lon,e.lat])).length;a.fillStyle="#FF0028",a.fillText("".concat(d.name.toUpperCase()," \xb7 ").concat(e," IN STATE"),20,85)}let n=new Date;a.fillStyle=r?"rgba(255,255,255,0.3)":"rgba(0,0,0,0.3)",a.font="10px ui-monospace, monospace",a.fillText(n.toISOString().replace("T"," ").slice(0,19)+" UTC",h-15-150,u-15-5)}B.current=requestAnimationFrame(f)};return f(),()=>
1{B.current&&cancelAnimationFrame(B.current)}},[X,r,Z,D,R,$,t,E,I]);let ec=e=>{es(),q(e),localStorage.setItem("ghost_map_view",e)};return(0,a.jsxs)("div",{className:"relative w-full h-full",children:[(0,a.jsx)("canvas",{ref:P,className:"w-full h-full ".concat(Z?"cursor-default":L?"cursor-pointer":O?"usa"===X?"cursor-pointer":"cursor-default":"cursor-crosshair"),onMouseMove:e=>{let r;if(Z||!P.current||!E)return;let a=P.current.getBoundingClientRect(),l=e.clientX-a.left,o=e.clientY-a.top;Y({x:e.clientX,y:e.clientY});let s=a.width,i=a.height;if(r="usa"===X&&R?en(s,i):n.A().scale(s/5.5*ee.current).translate([s/2+et.current,i/2+er.current]),"usa"===X&&R&&$){var d,h;let e=null==(d=r.invert)?void 0:d.call(r,[l,o]);if(e){let t=new Map(D.map(e=>[e.stateCode,e])),r=$.features.find(t=>c.A(t,e));if(r){let e=T(r.id),a=e?t.get(e):void 0;V({code:String(r.id),name:k[e]||(null==(h=r.properties)?void 0:h.name)||"Unknown",visitors:(null==a?void 0:a.visitors)||0,pageviews:(null==a?void 0:a.pageviews)||0,topCities:(null==a?void 0:a.topCities)||[]})}else V(null)}else V(null)}else V(null);let u=null,x=20;t.forEach(e=>{if(!Number.isFinite(e.lat)||!Number.isFinite(e.lon))return;let t=r([e.lon,e.lat]);if(!t)return;let a=Math.sqrt((l-t[0])**2+(o-t[1])**2);a<x&&(x=a,u=e)}),F(u)},onMouseLeave:()=>{F(null),V(null)},onClick:()=>{if(Z)return;if(L){null==x||x(L);return}if("usa"!==X||!O||!P.current||!$)return;if((null==U?void 0:U.code)===O.code)return void es();let e=$.features.find(e=>String(e.id)===O.code);if(!e)return;let{width:t,height:r}=P.current.getBoundingClientRect(),a=o.A().scale(Math.min(1.1*t,1.8*r)).translate([t/2,r/2]),{scale:l,tx:n,ty:i}=function(e,t,r){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.8,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:6,[[o,n],[s,i]]=e,c=s-o,d=i-n;if(0===c||0===d)return{scale:1,tx:0,ty:0};let h=Math.min(l,Math.max(1.2,Math.min(a*t/c,a*r/d)));return{scale:h,tx:(t/2-(o+s)/2)*h,ty:(r/2-(n+i)/2)*h}}(s.A(a).bounds(e),t,r);ea.current=l,el.current=n,eo.current=i,K({code:O.code,name:O.name})}}),!Z&&(0,a.jsxs)("div",{className:"absolute top-4 right-4 flex",children:[U&&(0,a.jsxs)(h.P.button,{whileTap:{scale:.95},onClick:es,"aria-label":"Back to all states",className:"mr-2 flex items-center gap-1.5 rounded border px-3 py-1.5 text-[11px] font-mono font-medium backdrop-blur-sm transition-all ".concat(r?"bg-ghost-void/60 border-ghost-border text-ghost-muted hover:text-white":"bg-white/60 border-zinc-200 text-ghost-muted hover:text-zinc-900"),children:[(0,a.jsx)(m.A,{className:"w-3 h-3"}),"USA"]}),(0,a.jsxs)(h.P.button,{whileTap:{scale:.95},onClick:()=>ec("world"),className:"flex items-center gap-1.5 px-3 py-1.5 text-[11px] font-mono font-medium backdrop-blur-sm border-y border-l rounded-l transition-all ".concat("world"===X?r?"bg-red-500/20 border-red-500/50 text-red-400":"bg-red-50 border-red-300 text-red-600":r?"bg-ghost-void/60 border-ghost-border text-ghost-muted hover:text-white":"bg-white/60 border-zinc-200 text-ghost-muted hover:text-zinc-900"),children:[(0,a.jsx)(f.A,{className:"w-3 h-3"}),"World"]}),(0,a.jsxs)(h.P.button,{whileTap:{scale:.95},onClick:()=>ec("usa"),className:"flex items-center gap-1.5 px-3 py-1.5 text-[11px] font-mono font-medium backdrop-blur-sm border-y border-r rounded-r transition-all ".concat("usa"===X?r?"bg-red-500/20 border-red-500/50 text-red-400":"bg-red-50 border-red-300 text-red-600":r?"bg-ghost-void/60 border-ghost-border text-ghost-muted hover:text-white":"bg-white/60 border-zinc-200 text-ghost-muted hover:text-zinc-900"),children:[(0,a.jsx)(p.A,{className:"w-3 h-3"}),"USA"]})]}),(0,a.jsx)(u.N,{children:!Z&&L&&(0,a.jsx)(h.P.div,{initial:{opacity:0,scale:.9,y:8},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:8},transition:{duration:.12,ease:"easeOut"},className:"fixed z-50 pointer-events-none",style:{left:G.x+20,top:G.y-20},children:(0,a.jsxs)("div",{className:"w-[280px] overflow-hidden ".concat(r?"bg-ghost-void/95 border border-ghost-border/80":"bg-white/98 border border-zinc-300"," backdrop-blur-xl shadow-2xl"),children:[(0,a.jsx)("div",{className:"h-1 w-full ".concat(L.is_live?"bg-gradient-to-r from-emerald-500 via-emerald-400 to-emerald-500":L.hot?"bg-gradient-to-r from-orange-500 via-orange-400 to-orange-500":"bg-gradient-to-r from-red-500/60 via-red-400/60 to-red-500/60")}),(0,a.jsxs)("div",{className:"px-3 py-1.5 flex items-center justify-between border-b ".concat(r?"border-ghost-border bg-ghost-panel/50":"border-zinc-200 bg-zinc-50"),children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(v.A,{className:"w-3 h-3 ".concat(r?"text-red-500/70":"text-red-500/50")}),(0,a.jsx)("span",{className:"text-[9px] font-mono font-bold tracking-[0.2em] ".concat("text-ghost-muted"),children:"GHOST INTELLIGENCE"})]}),(()=>{let e=L.identified_user_id?{label:"IDENTIFIED",color:"text-emerald-400",bg:"bg-emerald-500/20",border:"border-emerald-500/40"}:L.hot?{label:"HIGH VALUE",color:"text-orange-400",bg:"bg-orange-500/20",border:"border-orange-500/40"}:L.is_live?{label:"ACTIVE",color:"text-cyan-400",bg:"bg-cyan-500/20",border:"border-cyan-500/40"}:{label:"TRACKED",color:"text-ghost-muted",bg:"bg-zinc-500/20",border:"border-zinc-500/40"};return(0,a.jsx)("span",{className:"".concat(e.color," ").concat(e.bg," ").concat(e.border," border px-1.5 py-0.5 rounded-sm text-[8px] font-bold tracking-wider"),children:e.label})})()]}),(0,a.jsx)("div",{className:"px-3 py-2.5",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsxs)("div",{className:"relative flex-shrink-0",children:[(0,a.jsx)("div",{className:"w-12 h-12 rounded flex items-center justify-center border-2 ".concat(L.is_live?"border-emerald-500/60":L.hot?"border-orange-500/60":r?"border-ghost-border":"border-zinc-300"),children:(0,a.jsx)(v.A,{role:"img","aria-label":"Anonymous visitor",className:"w-6 h-6 ".concat(r?"text-ghost-muted":"text-zinc-500")})}),L.is_live&&(0,a.jsxs)("div",{className:"absolute -bottom-0.5 -right-0.5 flex items-center gap-0.5 bg-emerald-500 text-white text-[7px] font-bold px-1 py-0.5 rounded-sm",children:[(0,a.jsx)(N.A,{className:"w-2 h-2"}),"LIVE"]})]}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("div",{className:"font-mono text-[10px] ".concat("text-ghost-muted"),children:"SUBJECT ID"}),(0,a.jsx)("div",{className:"font-mono text-xs font-bold tracking-wide ".concat(r?"text-ghost-white":"text-zinc-800"),children:L.ghost_vid.slice(0,16)}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5 mt-1",children:[(0,a.jsx)("span",{className:"text-sm",children:(e=>{let t=(null==e?void 0:e.toUpperCase())||"";return 2!==t.length?"\uD83C\uDF10":String.fromCodePoint(127462+t.charCodeAt(0)-65,127462+t.charCodeAt(1)-65)})(L.country)}),(0,a.jsxs)("span",{className:"text-xs font-medium ".concat(r?"text-ghost-white":"text-zinc-700"),children:[L.city||"Unknown",L.country?", ".concat(L.country):""]})]}),L.channel&&(0,a.jsxs)("div",{className:"mt-1.5 flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:"h-[4px] w-[4px] rounded-full",style:{backgroundColor:b?b(L):"#7171
17a"}}),(0,a.jsx)("span",{className:"text-[10px] uppercase text-ghost-muted",children:L.channel})]})]})]})}),(0,a.jsxs)("div",{className:"flex items-center gap-2 px-3 ".concat(r?"text-zinc-600":"text-ghost-muted"),children:[(0,a.jsx)("div",{className:"flex-1 h-px ".concat(r?"bg-ghost-panel":"bg-zinc-200")}),(0,a.jsx)("span",{className:"text-[8px] font-mono font-bold tracking-[0.15em]",children:"INTEL"}),(0,a.jsx)("div",{className:"flex-1 h-px ".concat(r?"bg-ghost-panel":"bg-zinc-200")})]}),(0,a.jsx)("div",{className:"px-3 py-2 grid grid-cols-4 gap-1.5",children:[{icon:y.A,value:L.sessions||1,label:"SESS"},{icon:w.A,value:L.views||1,label:"VIEWS"},{icon:S.A,value:(0,j.a3)(L.duration_seconds),label:"TIME"},{icon:null,value:(L.device_type||"Desktop").slice(0,6),label:"DEV",deviceType:L.device_type}].map((e,t)=>(0,a.jsxs)("div",{className:"text-center py-1.5 rounded ".concat(r?"bg-ghost-panel/80":"bg-zinc-50"),children:[void 0!==e.deviceType?(0,a.jsx)(C,{type:e.deviceType,className:"w-3 h-3 mx-auto mb-0.5 ".concat("text-ghost-muted")}):e.icon&&(0,a.jsx)(e.icon,{className:"w-3 h-3 mx-auto mb-0.5 ".concat("text-ghost-muted")}),(0,a.jsx)("div",{className:"text-xs font-bold ".concat(r?"text-ghost-white":"text-zinc-800"),children:e.value}),(0,a.jsx)("div",{className:"text-[8px] font-mono ".concat(r?"text-zinc-600":"text-ghost-muted"),children:e.label})]},t))}),(0,a.jsxs)("div",{className:"px-3 pb-2 space-y-1",children:[L.browser&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-[9px] font-mono w-10 ".concat(r?"text-zinc-600":"text-ghost-muted"),children:"AGENT"}),(0,a.jsx)("span",{className:"text-[10px] ".concat(r?"text-ghost-muted":"text-zinc-600"),children:L.browser})]}),L.page&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-[9px] font-mono w-10 ".concat(r?"text-zinc-600":"text-ghost-muted"),children:"PAGE"}),(0,a.jsx)("span",{className:"text-[10px] truncate ".concat(r?"text-ghost-muted":"text-zinc-600"),children:L.page})]})]}),(0,a.jsxs)("div",{className:"px-3 py-1.5 flex items-center justify-between border-t ".concat(r?"border-ghost-border bg-ghost-panel/30":"border-zinc-200 bg-zinc-50/50"),children:[(0,a.jsx)("span",{className:"text-[8px] font-mono ".concat(r?"text-zinc-600":"text-ghost-muted"),children:L.last_seen?new Date(L.last_seen).toLocaleString():"Now"}),x&&L.is_live&&(0,a.jsx)("span",{className:"text-[9px] font-mono font-bold text-emerald-500",children:"▶ CLICK TO CONNECT"})]})]})})}),(0,a.jsx)(u.N,{children:!Z&&"usa"===X&&O&&!L&&(0,a.jsx)(h.P.div,{initial:{opacity:0,scale:.9,y:8},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:8},transition:{duration:.12,ease:"easeOut"},className:"fixed z-50 pointer-events-none",style:{left:G.x+20,top:G.y-20},children:(0,a.jsxs)("div",{className:"min-w-[180px] overflow-hidden ".concat(r?"bg-ghost-void/95 border border-ghost-border/80":"bg-white/98 border border-zinc-300"," backdrop-blur-xl shadow-2xl"),children:[(0,a.jsx)("div",{className:"h-1 w-full bg-gradient-to-r from-red-500/60 via-red-400/60 to-red-500/60"}),(0,a.jsxs)("div",{className:"px-3 py-2",children:[(0,a.jsx)("div",{className:"text-xs font-bold ".concat(r?"text-ghost-white":"text-zinc-800"),children:O.name}),(0,a.jsxs)("div",{className:"text-[10px] font-mono mt-0.5 ".concat("text-ghost-muted"),children:[O.visitors," visitor",1!==O.visitors?"s":""," \xb7 ",O.pageviews," pageview",1!==O.pageviews?"s":""]})]}),O.topCities.length>0&&(0,a.jsxs)("div",{className:"px-3 pb-2 border-t ".concat(r?"border-ghost-border":"border-zinc-200"),children:[(0,a.jsx)("div",{className:"text-[8px] font-mono font-bold tracking-wider mt-1.5 mb-1 ".concat(r?"text-zinc-600":"text-ghost-muted"),children:"TOP CITIES"}),O.topCities.map((e,t)=>(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)("span",{className:"text-[10px] ".concat(r?"text-ghost-muted":"text-zinc-600"),children:e.city}),(0,a.jsx)("span",{className:"text-[10px] font-mono ".concat("text-ghost-muted"),children:e.visitors})]},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.