Spaces:
Running
Running
Deploy d82ea5e
Browse files- README.md +1 -1
- assets/{index-DZ3tiW8E.js → index-tYnJVcf3.js} +1 -1
- index.html +1 -1
README.md
CHANGED
|
@@ -7,4 +7,4 @@ sdk: static
|
|
| 7 |
pinned: true
|
| 8 |
short_description: Road-safety auditor for any traffic camera
|
| 9 |
---
|
| 10 |
-
Built from https://github.com/
|
|
|
|
| 7 |
pinned: true
|
| 8 |
short_description: Road-safety auditor for any traffic camera
|
| 9 |
---
|
| 10 |
+
Built from https://github.com/Doppi-X/doppix-safejunction
|
assets/{index-DZ3tiW8E.js → index-tYnJVcf3.js}
RENAMED
|
@@ -281,7 +281,7 @@ Error generating stack: `+a.message+`
|
|
| 281 |
*
|
| 282 |
* This source code is licensed under the ISC license.
|
| 283 |
* See the LICENSE file in the root directory of this source tree.
|
| 284 |
-
*/const tc=re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);let Xr=null;function eo(){return Xr||(Xr=fetch(`./data/api.json?t=${Date.now()}`,{cache:"no-store"}).then(u=>u.ok?u.json():{api:""}).then(u=>(u.api??"").replace(/\/$/,"")).catch(()=>"")),Xr}const Vr=new Map;function tl(u){return Vr.has(u)||Vr.set(u,fetch(u).then(m=>{if(!m.ok)throw new Error(`${m.status} ${u}`);return m.json()})),Vr.get(u)}const Ns={person:"#fbbf24",bicycle:"#38bdf8",car:"#4ade80",motorcycle:"#f472b6",bus:"#a78bfa",truck:"#2dd4bf",light_red:"#ef4444",light_not_red:"#22c55e"},to={red_light:{color:"#ef4444",name:"Red-light running"},stop_line:{color:"#f97316",name:"Stop-line violation"},jaywalking:{color:"#eab308",name:"Jaywalking"},failure_to_yield:{color:"#ec4899",name:"Failure to yield"},stopped_vehicle:{color:"#8b5cf6",name:"Stopped vehicle"},congestion:{color:"#3b82f6",name:"Congestion"},accident:{color:"#dc2626",name:"Accident"},near_miss:{color:"#fb7185",name:"Near miss"},conflict:{color:"#e11d48",name:"Serious conflict (PET < 1.5 s)"},wrong_way:{color:"#14b8a6",name:"Wrong way"},illegal_u_turn:{color:"#06b6d4",name:"Illegal U-turn"},illegal_turn:{color:"#0ea5e9",name:"Illegal turn"},solid_line_crossing:{color:"#84cc16",name:"Solid-line crossing"},road_obstacle:{color:"#a3a3a3",name:"Road obstacle"},fire_smoke:{color:"#f59e0b",name:"Fire / smoke"}},We=u=>{var m;return((m=to[u])==null?void 0:m.color)||"#94a3b8"},et=u=>{var m;return((m=to[u])==null?void 0:m.name)||u};function Al(u){if(!isFinite(u))return"–";const m=Math.floor(u/60),d=u-m*60;return`${m}:${d.toFixed(1).padStart(4,"0")}`}function Jv(u){const m=new Set([...u.events||[],...u.labels||[]].map(d=>d[2]));return Object.keys(to).filter(d=>m.has(d))}function Ss(){const u=k.useRef(null),[m,d]=k.useState(0);return k.useEffect(()=>{if(!u.current)return;const o=new ResizeObserver(([g])=>d(g.contentRect.width));return o.observe(u.current),()=>o.disconnect()},[]),[u,m]}function ll(u,m){const[d,o]=k.useState({data:null,error:null});return k.useEffect(()=>{if(!u)return;let g=!0;return o({data:null,error:null}),m(u).then(O=>g&&o({data:O,error:null}),O=>g&&o({data:null,error:O})),()=>{g=!1}},[u]),d}const Fr="Do'ppiX",Jt="https://github.com/ubaydullayevgiyosiddin7-eng/doppix-safejunction",$v=[{name:"Eldor Musayev",role:"Team captain · ML Engineer",photo:"./data/team/eldor.jpg",about:"YOLO detector: dataset, fine-tuning and evaluation; the perception pipeline.",github:"",linkedin:"",portfolio:""},{name:"Shohruh Gulmirodov",role:"Web Developer",photo:"./data/team/shohruh.jpg",about:"Team website and the live demo.",github:"",linkedin:"",portfolio:""},{name:"Berdimurodov Soibnazar",role:"Cybersecurity Engineer · Cyber University",photo:"./data/team/soibnazar.jpg",about:"",github:"",linkedin:"",portfolio:""}];function Fv({className:u=""}){const[m,d]=k.useState(!1);return k.useEffect(()=>{if(!m)return;const o=g=>g.key==="Escape"&&d(!1);return window.addEventListener("keydown",o),document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",o),document.body.style.overflow=""}},[m]),i.jsxs(i.Fragment,{children:[i.jsxs("button",{onClick:()=>d(!0),className:`group flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 py-1.5 pl-1.5 pr-3 text-left hover:bg-white/10 ${u}`,children:[i.jsxs("span",{className:"relative h-10 w-16 shrink-0 overflow-hidden rounded-md",children:[i.jsx("img",{src:"./data/video/explainer.jpg",alt:"",className:"h-full w-full object-cover"}),i.jsx("span",{className:"absolute inset-0 flex items-center justify-center bg-black/40 text-white group-hover:bg-black/20",children:"▶"})]}),i.jsxs("span",{children:[i.jsxs("span",{className:"flex items-center gap-1 text-sm font-semibold text-white",children:[i.jsx(Mv,{size:14,className:"text-amber-300"})," Watch the 3-min explainer"]}),i.jsx("span",{className:"block text-[11px] text-slate-400",children:"The problem, the scheme, the live system, the numbers"})]})]}),m&&i.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/85 p-3 backdrop-blur-sm",onClick:()=>d(!1),children:i.jsxs("div",{className:"relative w-full max-w-6xl",onClick:o=>o.stopPropagation(),children:[i.jsxs("button",{onClick:()=>d(!1),"aria-label":"Close",className:"absolute -top-10 right-0 flex items-center gap-1 text-sm text-slate-200 hover:text-white",children:[i.jsx(tc,{size:18})," Close"]}),i.jsx("video",{src:"./data/video/explainer.mp4",poster:"./data/video/explainer.jpg",controls:!0,autoPlay:!0,playsInline:!0,className:"w-full rounded-xl shadow-2xl"})]})})]})}const Wv=[["2× real time","on one RTX 3060 next to the video archive; about $13 per camera per month for infrastructure"],["0.83","event score (macro F1, 6 classes) on our own labels of a Tashkent junction"],["9","cameras it had never seen, run live: New York, Tokyo, Tehran, Korea, Ottawa; night, rain, snow, dusk, drone views"],["0.19 �� 0.58","detector mAP50 on 35 REAL night frames from 3 cameras never trained on (our labels): each camera auto-picks the detector that sees it"]],Iv=[[Qv,"Violations + PET conflicts"],[Pr,"Hotspot map + PDF report"],[Im,"City-wide risk ranking"],[Gv,"Faces and plates blurred"]];function Pv(){const[u,m]=k.useState(null);return k.useEffect(()=>{let d=!0;return eo().then(o=>fetch(`${o}/api/health`).then(g=>g.json()).then(g=>d&&m(g)).catch(()=>d&&m(!1))),()=>{d=!1}},[]),u}function ep(){const{data:u}=ll("./data/hero/cameras.json",tl);return u?i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"absolute -inset-3 rounded-3xl bg-gradient-to-tr from-amber-500/20 via-transparent to-red-500/20 blur-2xl"}),i.jsx("div",{className:"relative grid grid-cols-2 gap-2",children:u.map(m=>i.jsxs("div",{className:"relative overflow-hidden rounded-xl border border-slate-700 shadow-xl shadow-black/50",style:{aspectRatio:m.aspect},children:[i.jsx("img",{src:m.frame,alt:m.label,className:"absolute inset-0 h-full w-full object-cover"}),i.jsx("svg",{viewBox:"0 0 1000 1000",preserveAspectRatio:"none",className:"absolute inset-0 h-full w-full",children:m.hotspots.map(([d,o,g],O)=>i.jsx("ellipse",{cx:d*1e3,cy:o*1e3,rx:"9",ry:9*m.aspect,fill:We(g),stroke:"#0f172a",strokeWidth:"2"},O))}),i.jsxs("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-slate-950/95 to-transparent p-2 pt-6",children:[i.jsx("div",{className:"text-xs font-semibold text-white",children:m.label}),i.jsxs("div",{className:"text-[10px] text-slate-300",children:[m.serious," serious conflicts · ",m.events," events · ",m.minutes," min"]})]})]},m.label))}),i.jsx("p",{className:"relative mt-2 text-center text-[11px] text-slate-400",children:"Real output on four cameras: dots = where events and serious conflicts happened. Faces and plates blurred."})]}):i.jsx("div",{className:"aspect-video animate-pulse rounded-2xl bg-slate-800/60"})}function tp(){const u=Pv(),m=()=>{var d;(d=document.getElementById("analyze"))==null||d.scrollIntoView({behavior:"smooth"}),window.dispatchEvent(new CustomEvent("sj:sample",{detail:"korea"}))};return i.jsxs("section",{className:"relative overflow-hidden border-b border-slate-800",children:[i.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top_right,rgba(245,158,11,0.12),transparent_55%),radial-gradient(ellipse_at_bottom_left,rgba(239,68,68,0.08),transparent_50%)]"}),i.jsxs("div",{className:"relative mx-auto grid max-w-7xl items-center gap-10 px-4 pb-10 pt-14 sm:pt-20 lg:grid-cols-[1.05fr_1fr]",children:[i.jsxs("div",{children:[i.jsxs("div",{className:"mb-5 flex flex-wrap items-center gap-2",children:[i.jsx("p",{className:"chip border-amber-500/40 text-amber-300",children:"Startup · WIUT Hackathon 2026 Final · Computer Vision"}),i.jsxs("span",{className:`chip ${u?"border-emerald-500/40 text-emerald-300":"border-white/10 text-slate-400"}`,children:[i.jsx("span",{className:`mr-1.5 inline-block h-2 w-2 rounded-full ${u?"animate-pulse bg-emerald-400":u===!1?"bg-slate-500":"animate-pulse bg-amber-400"}`}),u?`Live · ${u.device} online`:u===!1?"GPU server offline · recorded results below":"Connecting to the GPU server…"]})]}),i.jsxs("h1",{className:"font-display text-3xl font-bold leading-[1.1] tracking-tight text-white sm:text-5xl",children:["Turn any traffic camera into a"," ",i.jsx("span",{className:"bg-gradient-to-r from-amber-300 to-red-400 bg-clip-text text-transparent",children:"road-safety auditor"})]}),i.jsx("p",{className:"mt-5 max-w-xl text-lg leading-relaxed text-slate-300",children:"SafeJunction watches the CCTV a city already has, finds red-light running, drivers not yielding to pedestrians, wrong-way driving and near misses, and tells the traffic engineer what to change, before the crash, with faces and plates blurred."}),i.jsx(Fv,{className:"mt-5"}),i.jsx("ul",{className:"mt-5 grid max-w-xl grid-cols-2 gap-2 text-sm text-slate-200",children:Iv.map(([d,o])=>i.jsxs("li",{className:"flex items-center gap-2",children:[i.jsx(d,{size:16,className:"shrink-0 text-amber-300"}),o]},o))}),i.jsxs("div",{className:"mt-7 flex flex-wrap gap-3",children:[i.jsxs("button",{onClick:m,disabled:!u,className:"btn bg-amber-500 px-4 py-2.5 text-slate-950 hover:bg-amber-400 disabled:opacity-50",children:[i.jsx(t0,{size:18})," Live demo: a camera in Korea"]}),i.jsxs("a",{href:"#analyze",className:"btn border border-amber-500/50 px-4 py-2.5 text-amber-200 hover:bg-amber-500/10",children:[i.jsx($r,{size:16})," Upload your video"]}),i.jsxs("a",{href:"#network",className:"btn border border-slate-600 px-4 py-2.5 text-slate-200 hover:bg-slate-800",children:["City dashboard ",i.jsx(Im,{size:16})]}),i.jsx("a",{href:Jt,target:"_blank",rel:"noreferrer",title:"Code on GitHub",className:"btn border border-slate-600 px-3 py-2.5 text-slate-200 hover:bg-slate-800",children:i.jsx(Ir,{size:18})})]})]}),i.jsx(ep,{})]}),i.jsx("div",{className:"relative mx-auto grid max-w-7xl grid-cols-2 gap-3 px-4 pb-14 sm:grid-cols-4",children:Wv.map(([d,o])=>i.jsxs("div",{className:"card p-4",children:[i.jsx("div",{className:"font-display text-2xl font-bold text-white sm:text-3xl",children:d}),i.jsx("div",{className:"mt-1 text-sm text-slate-400",children:o})]},o))})]})}function Ht({id:u,title:m,kicker:d,children:o,intro:g,alt:O=!1}){return i.jsx("section",{id:u,className:O?"border-y border-white/5 bg-white/[0.015]":"",children:i.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-14 sm:py-20",children:[d&&i.jsx("p",{className:"mb-2 font-display text-sm font-semibold uppercase tracking-[0.18em] text-amber-400",children:d}),i.jsx("h2",{className:"font-display text-2xl font-bold tracking-tight text-white sm:text-4xl",children:m}),g&&i.jsx("p",{className:"mt-3 max-w-3xl leading-relaxed text-slate-400",children:g}),i.jsx("div",{className:"mt-8",children:o})]})})}function lp(u){const m=u.classes;return(u.tracks||[]).map(d=>{const o=new Map;for(let g=1;g+5<d.length+1;g+=6)o.set(d[g],{c:m[d[g+1]],b:[d[g+2],d[g+3],d[g+4],d[g+5]].map(O=>O/1e3)});return{t:d[0],objs:o}})}function ap(u,m){let d=0,o=u.length-1;if(o<0||m<u[0].t)return-1;for(;d<o;){const g=d+o+1>>1;u[g].t<=m?d=g:o=g-1}return d}function np(u,m){let d=-1;for(const[o,g]of u||[])if(o<=m)d=g;else break;return d}function sp(u,m){let d=0,o=((u==null?void 0:u.length)||0)-1;if(o<0||m<u[0][0])return 0;for(;d<o;){const g=d+o+1>>1;u[g][0]<=m?d=g:o=g-1}return u[d][1]}const ip=["accident","near_miss","red_light","wrong_way","failure_to_yield","jaywalking","illegal_u_turn","illegal_turn","solid_line_crossing","stop_line","stopped_vehicle","road_obstacle","fire_smoke","congestion"],cp={carriageway:{stroke:"rgba(148,163,184,.55)",fill:"rgba(148,163,184,.06)"},islands:{stroke:"rgba(251,191,36,.6)",fill:"rgba(251,191,36,.12)"},crosswalks:{stroke:"rgba(255,255,255,.85)",fill:"rgba(255,255,255,.18)"},lights:{stroke:"rgba(34,197,94,.9)",fill:"rgba(34,197,94,.1)"}},up=k.forwardRef(function({src:m,doc:d,frames:o,layers:g,onTime:O,controls:U=!0,offset:_=0},x){const M=k.useRef(null),w=k.useRef(null),f=k.useRef(0);k.useImperativeHandle(x,()=>({seek(C){const E=M.current;E&&(E.currentTime=Math.max(0,C))},play(){var C;(C=M.current)==null||C.play()},get video(){return M.current}}));const N=k.useMemo(()=>d.events||[],[d]),H=k.useRef(-1),K=()=>{const C=M.current,E=w.current;if(!C||!E)return;const X=C.getBoundingClientRect(),$=window.devicePixelRatio||1,pe=Math.round(X.width*$),Ne=Math.round(X.height*$);(E.width!==pe||E.height!==Ne)&&(E.width=pe,E.height=Ne,E.style.width=`${X.width}px`,E.style.height=`${X.height}px`);const z=E.getContext("2d");z.setTransform(1,0,0,1,0,0),z.clearRect(0,0,pe,Ne);const W=C.videoWidth||16,ce=C.videoHeight||9,He=Math.min(pe/W,Ne/ce),_e=W*He,qe=ce*He;z.translate((pe-_e)/2,(Ne-qe)/2);const Ce=C.currentTime+_;Math.abs(Ce-H.current)>.08&&(H.current=Ce,O==null||O(Ce));const Q=$*Math.max(.7,_e/$/900);if(g.zones&&d.zones){z.lineWidth=1.5*Q;for(const[De,Te]of Object.entries(cp))for(const v of d.zones[De]||[])z.beginPath(),v.forEach(([B,V],G)=>G?z.lineTo(B*_e,V*qe):z.moveTo(B*_e,V*qe)),z.closePath(),z.fillStyle=Te.fill,z.fill(),z.strokeStyle=Te.stroke,z.stroke();z.strokeStyle="#f97316",z.lineWidth=3*Q;for(const De of d.zones.stop_lines||[])z.beginPath(),De.forEach(([Te,v],B)=>B?z.lineTo(Te*_e,v*qe):z.moveTo(Te*_e,v*qe)),z.stroke()}if(g.flow&&d.flow){const{gw:De,gh:Te,cell_w:v,cell_h:B,count:V,dir:G}=d.flow;z.lineWidth=1.6*Q;for(let P=0;P<Te;P++)for(let ae=0;ae<De;ae++){const oe=V[P][ae],[Z,ee]=G[P][ae],Ie=Math.hypot(Z,ee);if(oe<8||Ie<.6)continue;const Bt=(ae+.5)*v*_e,qt=(P+.5)*B*qe,Qe=.42*v*_e,Re=Z/Ie,je=ee/Ie,mt=Bt+Re*Qe,al=qt+je*Qe;z.strokeStyle=`rgba(56,189,248,${.35+.6*Ie})`,z.beginPath(),z.moveTo(Bt-Re*Qe,qt-je*Qe),z.lineTo(mt,al),z.lineTo(mt-Re*6*Q-je*4*Q,al-je*6*Q+Re*4*Q),z.moveTo(mt,al),z.lineTo(mt-Re*6*Q+je*4*Q,al-je*6*Q-Re*4*Q),z.stroke()}}const se=new Map;if(g.highlight&&d.involved){const De=Te=>{const v=ip.indexOf(Te);return v<0?99:v};(d.events||[]).forEach(([Te,v,B],V)=>{if(!(Ce<Te||Ce>v))for(const G of d.involved[V]||[])(!se.has(G)||De(B)<De(se.get(G)))&&se.set(G,B)})}const ne=ap(o,Ce);if(ne>=0){const De=o[ne],Te=o[ne+1],v=Te&&Te.t>De.t?Math.min(1,(Ce-De.t)/(Te.t-De.t)):0;if(g.trails){const V=new Map;for(let G=Math.max(0,ne-15);G<=ne;G++)for(const[P,ae]of o[G].objs)ae.c.startsWith("light")||(V.has(P)||V.set(P,{c:ae.c,pts:[]}),V.get(P).pts.push([(ae.b[0]+ae.b[2])/2*_e,ae.b[3]*qe]));z.lineWidth=2*Q;for(const{c:G,pts:P}of V.values())P.length<2||(z.strokeStyle=Ns[G]+"99",z.beginPath(),P.forEach(([ae,oe],Z)=>Z?z.lineTo(ae,oe):z.moveTo(ae,oe)),z.stroke())}const B=[];if(g.boxes||se.size){z.font=`${Math.round(11*Q)}px ui-sans-serif, system-ui`,z.textBaseline="bottom";for(const[V,G]of De.objs){let P=G.b;const ae=Te==null?void 0:Te.objs.get(V);ae&&v>0&&(P=P.map((Qe,Re)=>Qe+(ae.b[Re]-Qe)*v));const oe=Ns[G.c]||"#fff",Z=P[0]*_e,ee=P[1]*qe,Ie=(P[2]-P[0])*_e,Bt=(P[3]-P[1])*qe,qt=se.get(V);if(qt){B.push({x:Z,y:ee,w:Ie,h:Bt,label:qt});continue}if(g.boxes&&(z.globalAlpha=se.size?.35:1,z.strokeStyle=oe,z.lineWidth=1.6*Q,z.strokeRect(Z,ee,Ie,Bt),z.globalAlpha=1,g.ids&&!G.c.startsWith("light"))){const Qe=`${G.c==="person"?"ped":G.c} ${V}`,Re=z.measureText(Qe).width+6*Q;z.fillStyle=oe,z.fillRect(Z,ee-13*Q,Re,13*Q),z.fillStyle="#0f172a",z.fillText(Qe,Z+3*Q,ee-1.5*Q)}}z.font=`600 ${Math.round(12*Q)}px ui-sans-serif, system-ui`;for(const{x:V,y:G,w:P,h:ae,label:oe}of B){const Z=We(oe);z.fillStyle=Z+"33",z.fillRect(V,G,P,ae),z.strokeStyle=Z,z.lineWidth=3.5*Q,z.strokeRect(V-2*Q,G-2*Q,P+4*Q,ae+4*Q);const ee=et(oe),Ie=z.measureText(ee).width+10*Q,Bt=Math.max(0,G-20*Q);z.fillStyle=Z,z.beginPath(),z.roundRect(V-2*Q,Bt,Ie,17*Q,4*Q),z.fill(),z.fillStyle="#fff",z.fillText(ee,V+3*Q,Bt+15*Q)}}}const L=N.filter(([De,Te])=>Ce>=De&&Ce<=Te);z.textBaseline="middle",z.font=`600 ${Math.round(13*Q)}px ui-sans-serif, system-ui`;let I=10*Q;for(const[,,De]of L){const Te=et(De),v=z.measureText(Te).width+20*Q;z.fillStyle=We(De),z.globalAlpha=.92,z.beginPath(),z.roundRect(10*Q,I,v,22*Q,6*Q),z.fill(),z.globalAlpha=1,z.fillStyle="#fff",z.fillText(Te,20*Q,I+11*Q),I+=27*Q}const le=np(d.light,Ce),Se=sp(d.risk,Ce),me=_e-150*Q,tt=10*Q;z.fillStyle="rgba(15,23,42,.8)",z.beginPath(),z.roundRect(me,tt,140*Q,52*Q,8*Q),z.fill(),z.fillStyle=le===1?"#ef4444":le===0?"#22c55e":"#64748b",z.beginPath(),z.arc(me+16*Q,tt+16*Q,7*Q,0,7),z.fill(),z.fillStyle="#e2e8f0",z.font=`${Math.round(11*Q)}px ui-sans-serif, system-ui`,z.fillText(le===1?"light: RED":le===0?"light: not red":"light: unknown",me+30*Q,tt+16*Q),z.fillText(`risk ${Se.toFixed(2)}`,me+10*Q,tt+38*Q),z.fillStyle="#334155",z.fillRect(me+68*Q,tt+34*Q,62*Q,8*Q),z.fillStyle=Se>=.5?"#ef4444":Se>=.3?"#f59e0b":"#22c55e",z.fillRect(me+68*Q,tt+34*Q,62*Q*Math.min(1,Se),8*Q)},q=k.useRef(K);return q.current=K,k.useEffect(()=>{requestAnimationFrame(()=>q.current())}),k.useEffect(()=>{const C=M.current;if(!C)return;const E=()=>{q.current(),!C.paused&&!C.ended&&(f.current=requestAnimationFrame(E))},X=()=>{cancelAnimationFrame(f.current),f.current=requestAnimationFrame(E)},$=()=>requestAnimationFrame(()=>q.current()),pe=()=>C.paused&&$();C.addEventListener("play",X),C.addEventListener("seeked",$),C.addEventListener("loadeddata",$),C.addEventListener("timeupdate",pe);const Ne=new ResizeObserver($);return Ne.observe(C),()=>{cancelAnimationFrame(f.current),C.removeEventListener("play",X),C.removeEventListener("seeked",$),C.removeEventListener("loadeddata",$),C.removeEventListener("timeupdate",pe),Ne.disconnect()}},[m]),i.jsxs("div",{className:"relative overflow-hidden rounded-xl bg-black",children:[i.jsx("video",{ref:M,src:m,controls:U,playsInline:!0,muted:!0,preload:"metadata",className:"block w-full"}),i.jsx("canvas",{ref:w,className:"pointer-events-none absolute left-0 top-0"})]})}),Ma=26,rp=132,Qr=20;function op({doc:u,time:m,onSeek:d}){const[o,g]=Ss(),[O,U]=k.useState(null),_=Jv(u),x=u.duration||1,M=g<520,w=M?92:rp,f=Math.max(10,g-w-8),N=E=>w+E/x*f,H=Math.max(1,_.length)*Ma+Qr,K=[],q=x>240?60:x>90?30:10;for(let E=0;E<=x;E+=q)K.push(E);const C=E=>{const X=E.currentTarget.getBoundingClientRect(),$=(E.clientX-X.left-w)/f*x;$>=0&&$<=x&&(d==null||d($))};return i.jsxs("div",{ref:o,className:"relative w-full select-none",children:[g>0&&i.jsxs("svg",{width:g,height:H,onClick:C,className:"cursor-pointer",children:[_.map((E,X)=>i.jsxs("g",{transform:`translate(0 ${X*Ma})`,children:[i.jsx("rect",{x:w,y:3,width:f,height:Ma-6,rx:4,fill:"#0f172a"}),i.jsx("text",{x:w-8,y:Ma/2,textAnchor:"end",dominantBaseline:"middle",fontSize:M?10:12,fill:"#cbd5e1",children:et(E)}),(u.labels||[]).filter($=>$[2]===E).map(($,pe)=>i.jsx("rect",{x:N($[0]),y:Ma-7,width:Math.max(2,N($[1])-N($[0])),height:3,fill:"#e2e8f0",opacity:.7},`l${pe}`)),(u.events||[]).filter($=>$[2]===E).map(($,pe)=>i.jsx("rect",{x:N($[0]),y:5,width:Math.max(3,N($[1])-N($[0])),height:Ma-14,rx:2,fill:We(E),opacity:m>=$[0]&&m<=$[1]?1:.75,onMouseEnter:()=>U({e:$,i:X}),onMouseLeave:()=>U(null)},pe))]},E)),K.map(E=>i.jsxs("g",{children:[i.jsx("line",{x1:N(E),x2:N(E),y1:0,y2:H-Qr+4,stroke:"#1e293b"}),i.jsx("text",{x:N(E),y:H-6,textAnchor:"middle",fontSize:10,fill:"#64748b",children:Al(E).replace(/\.\d$/,"")})]},E)),i.jsx("line",{x1:N(m),x2:N(m),y1:0,y2:H-Qr+4,stroke:"#fbbf24",strokeWidth:2})]}),!_.length&&i.jsx("p",{className:"py-3 text-sm text-slate-400",children:"No events detected."}),O&&i.jsxs("div",{className:"pointer-events-none absolute z-10 rounded-md bg-slate-800 px-2 py-1 text-xs shadow",style:{left:Math.min(N(O.e[0]),g-180),top:O.i*Ma-26},children:[et(O.e[2]),": ",Al(O.e[0])," – ",Al(O.e[1])]})]})}function fp({risk:u,duration:m,time:d,onSeek:o,height:g=120,theta:O=.5}){const[U,_]=Ss(),[x,M]=k.useState(null),w={l:34,r:8,t:8,b:20},f=_,N=g,H=Math.max(10,f-w.l-w.r),K=N-w.t-w.b,q=m||(u!=null&&u.length?u[u.length-1][0]:1),C=z=>w.l+z/q*H,E=z=>w.t+(1-z)*K;let X="",$="";u!=null&&u.length&&(X=u.map(([z,W],ce)=>`${ce?"L":"M"}${C(z).toFixed(1)},${E(W).toFixed(1)}`).join(""),$=`${X}L${C(u[u.length-1][0]).toFixed(1)},${E(0)}L${C(u[0][0]).toFixed(1)},${E(0)}Z`);const pe=z=>(z.clientX-z.currentTarget.getBoundingClientRect().left-w.l)/H*q,Ne=z=>{if(!(u!=null&&u.length))return 0;let W=0,ce=u.length-1;for(;W<ce;){const He=W+ce+1>>1;u[He][0]<=z?W=He:ce=He-1}return u[W][1]};return i.jsx("div",{ref:U,className:"relative w-full",children:f>0&&i.jsxs("svg",{width:f,height:N,className:"cursor-pointer",onClick:z=>{const W=pe(z);W>=0&&W<=q&&(o==null||o(W))},onMouseMove:z=>M(pe(z)),onMouseLeave:()=>M(null),children:[i.jsx("defs",{children:i.jsxs("linearGradient",{id:"riskfill",x1:"0",x2:"0",y1:"0",y2:"1",children:[i.jsx("stop",{offset:"0%",stopColor:"#ef4444",stopOpacity:"0.55"}),i.jsx("stop",{offset:"50%",stopColor:"#f59e0b",stopOpacity:"0.3"}),i.jsx("stop",{offset:"100%",stopColor:"#22c55e",stopOpacity:"0.08"})]})}),[0,.25,.5,.75,1].map(z=>i.jsxs("g",{children:[i.jsx("line",{x1:w.l,x2:f-w.r,y1:E(z),y2:E(z),stroke:"#1e293b"}),i.jsx("text",{x:w.l-6,y:E(z),textAnchor:"end",dominantBaseline:"middle",fontSize:10,fill:"#64748b",children:z})]},z)),i.jsx("path",{d:$,fill:"url(#riskfill)"}),i.jsx("path",{d:X,fill:"none",stroke:"#f59e0b",strokeWidth:1.5}),i.jsx("line",{x1:w.l,x2:f-w.r,y1:E(O),y2:E(O),stroke:"#ef4444",strokeDasharray:"5 4"}),i.jsxs("text",{x:f-w.r-4,y:E(O)-5,textAnchor:"end",fontSize:10,fill:"#f87171",children:["alarm θ = ",O]}),d!=null&&i.jsx("line",{x1:C(d),x2:C(d),y1:w.t,y2:N-w.b,stroke:"#fbbf24",strokeWidth:2}),x!=null&&x>=0&&x<=q&&i.jsxs("g",{children:[i.jsx("line",{x1:C(x),x2:C(x),y1:w.t,y2:N-w.b,stroke:"#94a3b8",strokeDasharray:"2 3"}),i.jsxs("text",{x:Math.min(C(x)+6,f-90),y:w.t+10,fontSize:11,fill:"#e2e8f0",children:[Al(x)," · ",Ne(x).toFixed(2)]})]}),i.jsx("text",{x:w.l,y:N-4,fontSize:10,fill:"#64748b",children:"0:00"}),i.jsx("text",{x:f-w.r,y:N-4,textAnchor:"end",fontSize:10,fill:"#64748b",children:Al(q)})]})})}const dp=[["highlight","Highlight event objects"],["boxes","All boxes"],["ids","Track IDs"],["trails","Trails"],["zones","Scene zones"],["flow","Learned lane directions"]];function l0({doc:u,videoUrl:m,jump:d}){const o=k.useRef(null),[g,O]=k.useState(0),[U,_]=k.useState({highlight:!0,boxes:!0,ids:!1,trails:!0,zones:!1,flow:!1}),x=k.useMemo(()=>lp(u),[u]),M=q=>{var C;(C=o.current)==null||C.seek(q),O(q)},w=u.events||[],[f,N]=k.useState("best"),H=u.quality||[],K=k.useMemo(()=>{const q=w.map((C,E)=>E);return f==="best"?q.sort((C,E)=>(H[E]??0)-(H[C]??0)||w[C][0]-w[E][0]):q},[u,f]);return k.useEffect(()=>{var E;if(!d)return;const q=(E=o.current)==null?void 0:E.video,C=()=>{var X;M(Math.max(0,d.t-1)),(X=o.current)==null||X.play()};q&&q.readyState>=1?C():q==null||q.addEventListener("loadedmetadata",C,{once:!0})},[d]),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{className:"grid gap-3 lg:grid-cols-[minmax(0,1fr)_320px]",children:[i.jsx("div",{className:"min-w-0",children:i.jsx(up,{ref:o,src:m,doc:u,frames:x,layers:U,onTime:O})}),i.jsx("aside",{className:"card relative flex max-h-80 flex-col lg:max-h-none",children:i.jsxs("div",{className:"flex min-h-0 flex-1 flex-col p-3 lg:absolute lg:inset-0",children:[i.jsxs("div",{className:"mb-2 flex items-center justify-between gap-2",children:[i.jsxs("h4",{className:"text-sm font-semibold text-slate-200",children:["Events ",i.jsx("span",{className:"font-normal text-slate-500",children:w.length})]}),H.length>0&&i.jsx("div",{className:"flex rounded-lg bg-white/5 p-0.5 text-[11px]",children:[["best",vv,"Best"],["time",wv,"Time"]].map(([q,C,E])=>i.jsxs("button",{onClick:()=>N(q),title:q==="best"?"Best examples first":"Chronological",className:`flex items-center gap-1 rounded-md px-2 py-0.5 ${f===q?"bg-white/10 text-white":"text-slate-400 hover:text-white"}`,children:[i.jsx(C,{size:11}),E]},q))})]}),i.jsxs("ul",{className:"-mx-1 min-h-0 flex-1 space-y-0.5 overflow-y-auto px-1 [scrollbar-width:thin]",children:[K.map(q=>{const C=w[q],E=g>=C[0]&&g<=C[1];return i.jsx("li",{children:i.jsxs("button",{onClick:()=>M(Math.max(0,C[0]-1)),className:`flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-left text-[13px] transition-colors hover:bg-white/5 ${E?"bg-white/10 ring-1 ring-amber-400/50":""}`,children:[i.jsx("span",{className:"h-2 w-2 shrink-0 rounded-full",style:{background:We(C[2])}}),i.jsx("span",{className:"flex-1 truncate",children:et(C[2])}),H[q]>=2&&i.jsx(Xv,{size:12,className:"shrink-0 fill-amber-400 text-amber-400"}),H[q]>0&&H[q]<2&&i.jsxs("span",{className:"shrink-0 text-[10px] text-emerald-400",children:["✓",Math.round(H[q]*100),"%"]}),i.jsx("span",{className:"font-mono text-[11px] text-slate-400",children:Al(C[0]).replace(/\.\d$/,"")})]})},q)}),!w.length&&i.jsx("li",{className:"px-2 text-sm text-slate-500",children:"No events."})]}),H.length>0&&i.jsx("p",{className:"mt-2 border-t border-white/5 pt-2 text-[11px] text-slate-500",children:"⭐ best example · ✓ overlap with our label"})]})})]}),i.jsx("div",{className:"flex flex-wrap gap-1.5",children:dp.map(([q,C])=>i.jsxs("button",{onClick:()=>_(E=>({...E,[q]:!E[q]})),className:`btn px-2.5 py-1 text-xs ${U[q]?"bg-white/10 text-white":"border border-white/10 text-slate-400"}`,children:[U[q]?i.jsx(zv,{size:13}):i.jsx(Ev,{size:13})," ",C]},q))}),i.jsxs("div",{className:"card p-3",children:[i.jsxs("div",{className:"mb-1 flex items-baseline justify-between gap-2",children:[i.jsx("h4",{className:"text-sm font-semibold text-slate-200",children:"Event timeline"}),u.labels&&i.jsx("span",{className:"text-[11px] text-slate-500",children:"white line = our manual label"})]}),i.jsx(op,{doc:u,time:g,onSeek:M})]}),i.jsxs("div",{className:"card p-3",children:[i.jsx("h4",{className:"mb-1 text-sm font-semibold text-slate-200",children:"Accident risk, next 5 s"}),i.jsx(fp,{risk:u.risk,duration:u.duration,time:g,onSeek:M,height:110})]})]})}const ia=u=>String(u??"").replace(/[&<>"]/g,m=>({"&":"&","<":"<",">":">",'"':"""})[m]),hp={drawn:"Zones drawn by the engineer",reference:"Known camera (calibrated zones)",learned:"Zero-config (road learned from traffic)"};function mp({doc:u,name:m,frameUrl:d}){const o=u.report||{},g=Object.entries(o.per_class||{}).sort((f,N)=>N[1].count-f[1].count),O=Math.max(u.duration/60,1e-6),U=u.width/u.height,_=(o.hotspots||[]).map(([f,N,H])=>`<circle cx="${f*1e3}" cy="${N*1e3/U}" r="9" fill="${We(H)}" stroke="#000" stroke-width="2"/>`).join(""),x=[...new Set((o.hotspots||[]).map(f=>f[2]))].map(f=>`<span><i style="background:${We(f)}"></i>${ia(et(f))}</span>`).join(""),M=`<!doctype html><html><head><meta charset="utf-8"><title>SafeJunction report – ${ia(m)}</title>
|
| 285 |
<style>
|
| 286 |
body{font:13px/1.45 system-ui,Segoe UI,Arial,sans-serif;color:#111;margin:28px;max-width:900px}
|
| 287 |
h1{font-size:22px;margin:0}h2{font-size:15px;margin:18px 0 6px;border-bottom:1px solid #ddd;padding-bottom:3px}
|
|
|
|
| 281 |
*
|
| 282 |
* This source code is licensed under the ISC license.
|
| 283 |
* See the LICENSE file in the root directory of this source tree.
|
| 284 |
+
*/const tc=re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);let Xr=null;function eo(){return Xr||(Xr=fetch(`./data/api.json?t=${Date.now()}`,{cache:"no-store"}).then(u=>u.ok?u.json():{api:""}).then(u=>(u.api??"").replace(/\/$/,"")).catch(()=>"")),Xr}const Vr=new Map;function tl(u){return Vr.has(u)||Vr.set(u,fetch(u).then(m=>{if(!m.ok)throw new Error(`${m.status} ${u}`);return m.json()})),Vr.get(u)}const Ns={person:"#fbbf24",bicycle:"#38bdf8",car:"#4ade80",motorcycle:"#f472b6",bus:"#a78bfa",truck:"#2dd4bf",light_red:"#ef4444",light_not_red:"#22c55e"},to={red_light:{color:"#ef4444",name:"Red-light running"},stop_line:{color:"#f97316",name:"Stop-line violation"},jaywalking:{color:"#eab308",name:"Jaywalking"},failure_to_yield:{color:"#ec4899",name:"Failure to yield"},stopped_vehicle:{color:"#8b5cf6",name:"Stopped vehicle"},congestion:{color:"#3b82f6",name:"Congestion"},accident:{color:"#dc2626",name:"Accident"},near_miss:{color:"#fb7185",name:"Near miss"},conflict:{color:"#e11d48",name:"Serious conflict (PET < 1.5 s)"},wrong_way:{color:"#14b8a6",name:"Wrong way"},illegal_u_turn:{color:"#06b6d4",name:"Illegal U-turn"},illegal_turn:{color:"#0ea5e9",name:"Illegal turn"},solid_line_crossing:{color:"#84cc16",name:"Solid-line crossing"},road_obstacle:{color:"#a3a3a3",name:"Road obstacle"},fire_smoke:{color:"#f59e0b",name:"Fire / smoke"}},We=u=>{var m;return((m=to[u])==null?void 0:m.color)||"#94a3b8"},et=u=>{var m;return((m=to[u])==null?void 0:m.name)||u};function Al(u){if(!isFinite(u))return"–";const m=Math.floor(u/60),d=u-m*60;return`${m}:${d.toFixed(1).padStart(4,"0")}`}function Jv(u){const m=new Set([...u.events||[],...u.labels||[]].map(d=>d[2]));return Object.keys(to).filter(d=>m.has(d))}function Ss(){const u=k.useRef(null),[m,d]=k.useState(0);return k.useEffect(()=>{if(!u.current)return;const o=new ResizeObserver(([g])=>d(g.contentRect.width));return o.observe(u.current),()=>o.disconnect()},[]),[u,m]}function ll(u,m){const[d,o]=k.useState({data:null,error:null});return k.useEffect(()=>{if(!u)return;let g=!0;return o({data:null,error:null}),m(u).then(O=>g&&o({data:O,error:null}),O=>g&&o({data:null,error:O})),()=>{g=!1}},[u]),d}const Fr="Do'ppiX",Jt="https://github.com/Doppi-X/doppix-safejunction",$v=[{name:"Eldor Musayev",role:"Team captain · ML Engineer",photo:"./data/team/eldor.jpg",about:"YOLO detector: dataset, fine-tuning and evaluation; the perception pipeline.",github:"",linkedin:"",portfolio:""},{name:"Shohruh Gulmirodov",role:"Web Developer",photo:"./data/team/shohruh.jpg",about:"Team website and the live demo.",github:"",linkedin:"",portfolio:""},{name:"Berdimurodov Soibnazar",role:"Cybersecurity Engineer · Cyber University",photo:"./data/team/soibnazar.jpg",about:"",github:"",linkedin:"",portfolio:""}];function Fv({className:u=""}){const[m,d]=k.useState(!1);return k.useEffect(()=>{if(!m)return;const o=g=>g.key==="Escape"&&d(!1);return window.addEventListener("keydown",o),document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",o),document.body.style.overflow=""}},[m]),i.jsxs(i.Fragment,{children:[i.jsxs("button",{onClick:()=>d(!0),className:`group flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 py-1.5 pl-1.5 pr-3 text-left hover:bg-white/10 ${u}`,children:[i.jsxs("span",{className:"relative h-10 w-16 shrink-0 overflow-hidden rounded-md",children:[i.jsx("img",{src:"./data/video/explainer.jpg",alt:"",className:"h-full w-full object-cover"}),i.jsx("span",{className:"absolute inset-0 flex items-center justify-center bg-black/40 text-white group-hover:bg-black/20",children:"▶"})]}),i.jsxs("span",{children:[i.jsxs("span",{className:"flex items-center gap-1 text-sm font-semibold text-white",children:[i.jsx(Mv,{size:14,className:"text-amber-300"})," Watch the 3-min explainer"]}),i.jsx("span",{className:"block text-[11px] text-slate-400",children:"The problem, the scheme, the live system, the numbers"})]})]}),m&&i.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/85 p-3 backdrop-blur-sm",onClick:()=>d(!1),children:i.jsxs("div",{className:"relative w-full max-w-6xl",onClick:o=>o.stopPropagation(),children:[i.jsxs("button",{onClick:()=>d(!1),"aria-label":"Close",className:"absolute -top-10 right-0 flex items-center gap-1 text-sm text-slate-200 hover:text-white",children:[i.jsx(tc,{size:18})," Close"]}),i.jsx("video",{src:"./data/video/explainer.mp4",poster:"./data/video/explainer.jpg",controls:!0,autoPlay:!0,playsInline:!0,className:"w-full rounded-xl shadow-2xl"})]})})]})}const Wv=[["2× real time","on one RTX 3060 next to the video archive; about $13 per camera per month for infrastructure"],["0.83","event score (macro F1, 6 classes) on our own labels of a Tashkent junction"],["9","cameras it had never seen, run live: New York, Tokyo, Tehran, Korea, Ottawa; night, rain, snow, dusk, drone views"],["0.19 → 0.58","detector mAP50 on 35 REAL night frames from 3 cameras never trained on (our labels): each camera auto-picks the detector that sees it"]],Iv=[[Qv,"Violations + PET conflicts"],[Pr,"Hotspot map + PDF report"],[Im,"City-wide risk ranking"],[Gv,"Faces and plates blurred"]];function Pv(){const[u,m]=k.useState(null);return k.useEffect(()=>{let d=!0;return eo().then(o=>fetch(`${o}/api/health`).then(g=>g.json()).then(g=>d&&m(g)).catch(()=>d&&m(!1))),()=>{d=!1}},[]),u}function ep(){const{data:u}=ll("./data/hero/cameras.json",tl);return u?i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"absolute -inset-3 rounded-3xl bg-gradient-to-tr from-amber-500/20 via-transparent to-red-500/20 blur-2xl"}),i.jsx("div",{className:"relative grid grid-cols-2 gap-2",children:u.map(m=>i.jsxs("div",{className:"relative overflow-hidden rounded-xl border border-slate-700 shadow-xl shadow-black/50",style:{aspectRatio:m.aspect},children:[i.jsx("img",{src:m.frame,alt:m.label,className:"absolute inset-0 h-full w-full object-cover"}),i.jsx("svg",{viewBox:"0 0 1000 1000",preserveAspectRatio:"none",className:"absolute inset-0 h-full w-full",children:m.hotspots.map(([d,o,g],O)=>i.jsx("ellipse",{cx:d*1e3,cy:o*1e3,rx:"9",ry:9*m.aspect,fill:We(g),stroke:"#0f172a",strokeWidth:"2"},O))}),i.jsxs("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-slate-950/95 to-transparent p-2 pt-6",children:[i.jsx("div",{className:"text-xs font-semibold text-white",children:m.label}),i.jsxs("div",{className:"text-[10px] text-slate-300",children:[m.serious," serious conflicts · ",m.events," events · ",m.minutes," min"]})]})]},m.label))}),i.jsx("p",{className:"relative mt-2 text-center text-[11px] text-slate-400",children:"Real output on four cameras: dots = where events and serious conflicts happened. Faces and plates blurred."})]}):i.jsx("div",{className:"aspect-video animate-pulse rounded-2xl bg-slate-800/60"})}function tp(){const u=Pv(),m=()=>{var d;(d=document.getElementById("analyze"))==null||d.scrollIntoView({behavior:"smooth"}),window.dispatchEvent(new CustomEvent("sj:sample",{detail:"korea"}))};return i.jsxs("section",{className:"relative overflow-hidden border-b border-slate-800",children:[i.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top_right,rgba(245,158,11,0.12),transparent_55%),radial-gradient(ellipse_at_bottom_left,rgba(239,68,68,0.08),transparent_50%)]"}),i.jsxs("div",{className:"relative mx-auto grid max-w-7xl items-center gap-10 px-4 pb-10 pt-14 sm:pt-20 lg:grid-cols-[1.05fr_1fr]",children:[i.jsxs("div",{children:[i.jsxs("div",{className:"mb-5 flex flex-wrap items-center gap-2",children:[i.jsx("p",{className:"chip border-amber-500/40 text-amber-300",children:"Startup · WIUT Hackathon 2026 Final · Computer Vision"}),i.jsxs("span",{className:`chip ${u?"border-emerald-500/40 text-emerald-300":"border-white/10 text-slate-400"}`,children:[i.jsx("span",{className:`mr-1.5 inline-block h-2 w-2 rounded-full ${u?"animate-pulse bg-emerald-400":u===!1?"bg-slate-500":"animate-pulse bg-amber-400"}`}),u?`Live · ${u.device} online`:u===!1?"GPU server offline · recorded results below":"Connecting to the GPU server…"]})]}),i.jsxs("h1",{className:"font-display text-3xl font-bold leading-[1.1] tracking-tight text-white sm:text-5xl",children:["Turn any traffic camera into a"," ",i.jsx("span",{className:"bg-gradient-to-r from-amber-300 to-red-400 bg-clip-text text-transparent",children:"road-safety auditor"})]}),i.jsx("p",{className:"mt-5 max-w-xl text-lg leading-relaxed text-slate-300",children:"SafeJunction watches the CCTV a city already has, finds red-light running, drivers not yielding to pedestrians, wrong-way driving and near misses, and tells the traffic engineer what to change, before the crash, with faces and plates blurred."}),i.jsx(Fv,{className:"mt-5"}),i.jsx("ul",{className:"mt-5 grid max-w-xl grid-cols-2 gap-2 text-sm text-slate-200",children:Iv.map(([d,o])=>i.jsxs("li",{className:"flex items-center gap-2",children:[i.jsx(d,{size:16,className:"shrink-0 text-amber-300"}),o]},o))}),i.jsxs("div",{className:"mt-7 flex flex-wrap gap-3",children:[i.jsxs("button",{onClick:m,disabled:!u,className:"btn bg-amber-500 px-4 py-2.5 text-slate-950 hover:bg-amber-400 disabled:opacity-50",children:[i.jsx(t0,{size:18})," Live demo: a camera in Korea"]}),i.jsxs("a",{href:"#analyze",className:"btn border border-amber-500/50 px-4 py-2.5 text-amber-200 hover:bg-amber-500/10",children:[i.jsx($r,{size:16})," Upload your video"]}),i.jsxs("a",{href:"#network",className:"btn border border-slate-600 px-4 py-2.5 text-slate-200 hover:bg-slate-800",children:["City dashboard ",i.jsx(Im,{size:16})]}),i.jsx("a",{href:Jt,target:"_blank",rel:"noreferrer",title:"Code on GitHub",className:"btn border border-slate-600 px-3 py-2.5 text-slate-200 hover:bg-slate-800",children:i.jsx(Ir,{size:18})})]})]}),i.jsx(ep,{})]}),i.jsx("div",{className:"relative mx-auto grid max-w-7xl grid-cols-2 gap-3 px-4 pb-14 sm:grid-cols-4",children:Wv.map(([d,o])=>i.jsxs("div",{className:"card p-4",children:[i.jsx("div",{className:"font-display text-2xl font-bold text-white sm:text-3xl",children:d}),i.jsx("div",{className:"mt-1 text-sm text-slate-400",children:o})]},o))})]})}function Ht({id:u,title:m,kicker:d,children:o,intro:g,alt:O=!1}){return i.jsx("section",{id:u,className:O?"border-y border-white/5 bg-white/[0.015]":"",children:i.jsxs("div",{className:"mx-auto max-w-7xl px-4 py-14 sm:py-20",children:[d&&i.jsx("p",{className:"mb-2 font-display text-sm font-semibold uppercase tracking-[0.18em] text-amber-400",children:d}),i.jsx("h2",{className:"font-display text-2xl font-bold tracking-tight text-white sm:text-4xl",children:m}),g&&i.jsx("p",{className:"mt-3 max-w-3xl leading-relaxed text-slate-400",children:g}),i.jsx("div",{className:"mt-8",children:o})]})})}function lp(u){const m=u.classes;return(u.tracks||[]).map(d=>{const o=new Map;for(let g=1;g+5<d.length+1;g+=6)o.set(d[g],{c:m[d[g+1]],b:[d[g+2],d[g+3],d[g+4],d[g+5]].map(O=>O/1e3)});return{t:d[0],objs:o}})}function ap(u,m){let d=0,o=u.length-1;if(o<0||m<u[0].t)return-1;for(;d<o;){const g=d+o+1>>1;u[g].t<=m?d=g:o=g-1}return d}function np(u,m){let d=-1;for(const[o,g]of u||[])if(o<=m)d=g;else break;return d}function sp(u,m){let d=0,o=((u==null?void 0:u.length)||0)-1;if(o<0||m<u[0][0])return 0;for(;d<o;){const g=d+o+1>>1;u[g][0]<=m?d=g:o=g-1}return u[d][1]}const ip=["accident","near_miss","red_light","wrong_way","failure_to_yield","jaywalking","illegal_u_turn","illegal_turn","solid_line_crossing","stop_line","stopped_vehicle","road_obstacle","fire_smoke","congestion"],cp={carriageway:{stroke:"rgba(148,163,184,.55)",fill:"rgba(148,163,184,.06)"},islands:{stroke:"rgba(251,191,36,.6)",fill:"rgba(251,191,36,.12)"},crosswalks:{stroke:"rgba(255,255,255,.85)",fill:"rgba(255,255,255,.18)"},lights:{stroke:"rgba(34,197,94,.9)",fill:"rgba(34,197,94,.1)"}},up=k.forwardRef(function({src:m,doc:d,frames:o,layers:g,onTime:O,controls:U=!0,offset:_=0},x){const M=k.useRef(null),w=k.useRef(null),f=k.useRef(0);k.useImperativeHandle(x,()=>({seek(C){const E=M.current;E&&(E.currentTime=Math.max(0,C))},play(){var C;(C=M.current)==null||C.play()},get video(){return M.current}}));const N=k.useMemo(()=>d.events||[],[d]),H=k.useRef(-1),K=()=>{const C=M.current,E=w.current;if(!C||!E)return;const X=C.getBoundingClientRect(),$=window.devicePixelRatio||1,pe=Math.round(X.width*$),Ne=Math.round(X.height*$);(E.width!==pe||E.height!==Ne)&&(E.width=pe,E.height=Ne,E.style.width=`${X.width}px`,E.style.height=`${X.height}px`);const z=E.getContext("2d");z.setTransform(1,0,0,1,0,0),z.clearRect(0,0,pe,Ne);const W=C.videoWidth||16,ce=C.videoHeight||9,He=Math.min(pe/W,Ne/ce),_e=W*He,qe=ce*He;z.translate((pe-_e)/2,(Ne-qe)/2);const Ce=C.currentTime+_;Math.abs(Ce-H.current)>.08&&(H.current=Ce,O==null||O(Ce));const Q=$*Math.max(.7,_e/$/900);if(g.zones&&d.zones){z.lineWidth=1.5*Q;for(const[De,Te]of Object.entries(cp))for(const v of d.zones[De]||[])z.beginPath(),v.forEach(([B,V],G)=>G?z.lineTo(B*_e,V*qe):z.moveTo(B*_e,V*qe)),z.closePath(),z.fillStyle=Te.fill,z.fill(),z.strokeStyle=Te.stroke,z.stroke();z.strokeStyle="#f97316",z.lineWidth=3*Q;for(const De of d.zones.stop_lines||[])z.beginPath(),De.forEach(([Te,v],B)=>B?z.lineTo(Te*_e,v*qe):z.moveTo(Te*_e,v*qe)),z.stroke()}if(g.flow&&d.flow){const{gw:De,gh:Te,cell_w:v,cell_h:B,count:V,dir:G}=d.flow;z.lineWidth=1.6*Q;for(let P=0;P<Te;P++)for(let ae=0;ae<De;ae++){const oe=V[P][ae],[Z,ee]=G[P][ae],Ie=Math.hypot(Z,ee);if(oe<8||Ie<.6)continue;const Bt=(ae+.5)*v*_e,qt=(P+.5)*B*qe,Qe=.42*v*_e,Re=Z/Ie,je=ee/Ie,mt=Bt+Re*Qe,al=qt+je*Qe;z.strokeStyle=`rgba(56,189,248,${.35+.6*Ie})`,z.beginPath(),z.moveTo(Bt-Re*Qe,qt-je*Qe),z.lineTo(mt,al),z.lineTo(mt-Re*6*Q-je*4*Q,al-je*6*Q+Re*4*Q),z.moveTo(mt,al),z.lineTo(mt-Re*6*Q+je*4*Q,al-je*6*Q-Re*4*Q),z.stroke()}}const se=new Map;if(g.highlight&&d.involved){const De=Te=>{const v=ip.indexOf(Te);return v<0?99:v};(d.events||[]).forEach(([Te,v,B],V)=>{if(!(Ce<Te||Ce>v))for(const G of d.involved[V]||[])(!se.has(G)||De(B)<De(se.get(G)))&&se.set(G,B)})}const ne=ap(o,Ce);if(ne>=0){const De=o[ne],Te=o[ne+1],v=Te&&Te.t>De.t?Math.min(1,(Ce-De.t)/(Te.t-De.t)):0;if(g.trails){const V=new Map;for(let G=Math.max(0,ne-15);G<=ne;G++)for(const[P,ae]of o[G].objs)ae.c.startsWith("light")||(V.has(P)||V.set(P,{c:ae.c,pts:[]}),V.get(P).pts.push([(ae.b[0]+ae.b[2])/2*_e,ae.b[3]*qe]));z.lineWidth=2*Q;for(const{c:G,pts:P}of V.values())P.length<2||(z.strokeStyle=Ns[G]+"99",z.beginPath(),P.forEach(([ae,oe],Z)=>Z?z.lineTo(ae,oe):z.moveTo(ae,oe)),z.stroke())}const B=[];if(g.boxes||se.size){z.font=`${Math.round(11*Q)}px ui-sans-serif, system-ui`,z.textBaseline="bottom";for(const[V,G]of De.objs){let P=G.b;const ae=Te==null?void 0:Te.objs.get(V);ae&&v>0&&(P=P.map((Qe,Re)=>Qe+(ae.b[Re]-Qe)*v));const oe=Ns[G.c]||"#fff",Z=P[0]*_e,ee=P[1]*qe,Ie=(P[2]-P[0])*_e,Bt=(P[3]-P[1])*qe,qt=se.get(V);if(qt){B.push({x:Z,y:ee,w:Ie,h:Bt,label:qt});continue}if(g.boxes&&(z.globalAlpha=se.size?.35:1,z.strokeStyle=oe,z.lineWidth=1.6*Q,z.strokeRect(Z,ee,Ie,Bt),z.globalAlpha=1,g.ids&&!G.c.startsWith("light"))){const Qe=`${G.c==="person"?"ped":G.c} ${V}`,Re=z.measureText(Qe).width+6*Q;z.fillStyle=oe,z.fillRect(Z,ee-13*Q,Re,13*Q),z.fillStyle="#0f172a",z.fillText(Qe,Z+3*Q,ee-1.5*Q)}}z.font=`600 ${Math.round(12*Q)}px ui-sans-serif, system-ui`;for(const{x:V,y:G,w:P,h:ae,label:oe}of B){const Z=We(oe);z.fillStyle=Z+"33",z.fillRect(V,G,P,ae),z.strokeStyle=Z,z.lineWidth=3.5*Q,z.strokeRect(V-2*Q,G-2*Q,P+4*Q,ae+4*Q);const ee=et(oe),Ie=z.measureText(ee).width+10*Q,Bt=Math.max(0,G-20*Q);z.fillStyle=Z,z.beginPath(),z.roundRect(V-2*Q,Bt,Ie,17*Q,4*Q),z.fill(),z.fillStyle="#fff",z.fillText(ee,V+3*Q,Bt+15*Q)}}}const L=N.filter(([De,Te])=>Ce>=De&&Ce<=Te);z.textBaseline="middle",z.font=`600 ${Math.round(13*Q)}px ui-sans-serif, system-ui`;let I=10*Q;for(const[,,De]of L){const Te=et(De),v=z.measureText(Te).width+20*Q;z.fillStyle=We(De),z.globalAlpha=.92,z.beginPath(),z.roundRect(10*Q,I,v,22*Q,6*Q),z.fill(),z.globalAlpha=1,z.fillStyle="#fff",z.fillText(Te,20*Q,I+11*Q),I+=27*Q}const le=np(d.light,Ce),Se=sp(d.risk,Ce),me=_e-150*Q,tt=10*Q;z.fillStyle="rgba(15,23,42,.8)",z.beginPath(),z.roundRect(me,tt,140*Q,52*Q,8*Q),z.fill(),z.fillStyle=le===1?"#ef4444":le===0?"#22c55e":"#64748b",z.beginPath(),z.arc(me+16*Q,tt+16*Q,7*Q,0,7),z.fill(),z.fillStyle="#e2e8f0",z.font=`${Math.round(11*Q)}px ui-sans-serif, system-ui`,z.fillText(le===1?"light: RED":le===0?"light: not red":"light: unknown",me+30*Q,tt+16*Q),z.fillText(`risk ${Se.toFixed(2)}`,me+10*Q,tt+38*Q),z.fillStyle="#334155",z.fillRect(me+68*Q,tt+34*Q,62*Q,8*Q),z.fillStyle=Se>=.5?"#ef4444":Se>=.3?"#f59e0b":"#22c55e",z.fillRect(me+68*Q,tt+34*Q,62*Q*Math.min(1,Se),8*Q)},q=k.useRef(K);return q.current=K,k.useEffect(()=>{requestAnimationFrame(()=>q.current())}),k.useEffect(()=>{const C=M.current;if(!C)return;const E=()=>{q.current(),!C.paused&&!C.ended&&(f.current=requestAnimationFrame(E))},X=()=>{cancelAnimationFrame(f.current),f.current=requestAnimationFrame(E)},$=()=>requestAnimationFrame(()=>q.current()),pe=()=>C.paused&&$();C.addEventListener("play",X),C.addEventListener("seeked",$),C.addEventListener("loadeddata",$),C.addEventListener("timeupdate",pe);const Ne=new ResizeObserver($);return Ne.observe(C),()=>{cancelAnimationFrame(f.current),C.removeEventListener("play",X),C.removeEventListener("seeked",$),C.removeEventListener("loadeddata",$),C.removeEventListener("timeupdate",pe),Ne.disconnect()}},[m]),i.jsxs("div",{className:"relative overflow-hidden rounded-xl bg-black",children:[i.jsx("video",{ref:M,src:m,controls:U,playsInline:!0,muted:!0,preload:"metadata",className:"block w-full"}),i.jsx("canvas",{ref:w,className:"pointer-events-none absolute left-0 top-0"})]})}),Ma=26,rp=132,Qr=20;function op({doc:u,time:m,onSeek:d}){const[o,g]=Ss(),[O,U]=k.useState(null),_=Jv(u),x=u.duration||1,M=g<520,w=M?92:rp,f=Math.max(10,g-w-8),N=E=>w+E/x*f,H=Math.max(1,_.length)*Ma+Qr,K=[],q=x>240?60:x>90?30:10;for(let E=0;E<=x;E+=q)K.push(E);const C=E=>{const X=E.currentTarget.getBoundingClientRect(),$=(E.clientX-X.left-w)/f*x;$>=0&&$<=x&&(d==null||d($))};return i.jsxs("div",{ref:o,className:"relative w-full select-none",children:[g>0&&i.jsxs("svg",{width:g,height:H,onClick:C,className:"cursor-pointer",children:[_.map((E,X)=>i.jsxs("g",{transform:`translate(0 ${X*Ma})`,children:[i.jsx("rect",{x:w,y:3,width:f,height:Ma-6,rx:4,fill:"#0f172a"}),i.jsx("text",{x:w-8,y:Ma/2,textAnchor:"end",dominantBaseline:"middle",fontSize:M?10:12,fill:"#cbd5e1",children:et(E)}),(u.labels||[]).filter($=>$[2]===E).map(($,pe)=>i.jsx("rect",{x:N($[0]),y:Ma-7,width:Math.max(2,N($[1])-N($[0])),height:3,fill:"#e2e8f0",opacity:.7},`l${pe}`)),(u.events||[]).filter($=>$[2]===E).map(($,pe)=>i.jsx("rect",{x:N($[0]),y:5,width:Math.max(3,N($[1])-N($[0])),height:Ma-14,rx:2,fill:We(E),opacity:m>=$[0]&&m<=$[1]?1:.75,onMouseEnter:()=>U({e:$,i:X}),onMouseLeave:()=>U(null)},pe))]},E)),K.map(E=>i.jsxs("g",{children:[i.jsx("line",{x1:N(E),x2:N(E),y1:0,y2:H-Qr+4,stroke:"#1e293b"}),i.jsx("text",{x:N(E),y:H-6,textAnchor:"middle",fontSize:10,fill:"#64748b",children:Al(E).replace(/\.\d$/,"")})]},E)),i.jsx("line",{x1:N(m),x2:N(m),y1:0,y2:H-Qr+4,stroke:"#fbbf24",strokeWidth:2})]}),!_.length&&i.jsx("p",{className:"py-3 text-sm text-slate-400",children:"No events detected."}),O&&i.jsxs("div",{className:"pointer-events-none absolute z-10 rounded-md bg-slate-800 px-2 py-1 text-xs shadow",style:{left:Math.min(N(O.e[0]),g-180),top:O.i*Ma-26},children:[et(O.e[2]),": ",Al(O.e[0])," – ",Al(O.e[1])]})]})}function fp({risk:u,duration:m,time:d,onSeek:o,height:g=120,theta:O=.5}){const[U,_]=Ss(),[x,M]=k.useState(null),w={l:34,r:8,t:8,b:20},f=_,N=g,H=Math.max(10,f-w.l-w.r),K=N-w.t-w.b,q=m||(u!=null&&u.length?u[u.length-1][0]:1),C=z=>w.l+z/q*H,E=z=>w.t+(1-z)*K;let X="",$="";u!=null&&u.length&&(X=u.map(([z,W],ce)=>`${ce?"L":"M"}${C(z).toFixed(1)},${E(W).toFixed(1)}`).join(""),$=`${X}L${C(u[u.length-1][0]).toFixed(1)},${E(0)}L${C(u[0][0]).toFixed(1)},${E(0)}Z`);const pe=z=>(z.clientX-z.currentTarget.getBoundingClientRect().left-w.l)/H*q,Ne=z=>{if(!(u!=null&&u.length))return 0;let W=0,ce=u.length-1;for(;W<ce;){const He=W+ce+1>>1;u[He][0]<=z?W=He:ce=He-1}return u[W][1]};return i.jsx("div",{ref:U,className:"relative w-full",children:f>0&&i.jsxs("svg",{width:f,height:N,className:"cursor-pointer",onClick:z=>{const W=pe(z);W>=0&&W<=q&&(o==null||o(W))},onMouseMove:z=>M(pe(z)),onMouseLeave:()=>M(null),children:[i.jsx("defs",{children:i.jsxs("linearGradient",{id:"riskfill",x1:"0",x2:"0",y1:"0",y2:"1",children:[i.jsx("stop",{offset:"0%",stopColor:"#ef4444",stopOpacity:"0.55"}),i.jsx("stop",{offset:"50%",stopColor:"#f59e0b",stopOpacity:"0.3"}),i.jsx("stop",{offset:"100%",stopColor:"#22c55e",stopOpacity:"0.08"})]})}),[0,.25,.5,.75,1].map(z=>i.jsxs("g",{children:[i.jsx("line",{x1:w.l,x2:f-w.r,y1:E(z),y2:E(z),stroke:"#1e293b"}),i.jsx("text",{x:w.l-6,y:E(z),textAnchor:"end",dominantBaseline:"middle",fontSize:10,fill:"#64748b",children:z})]},z)),i.jsx("path",{d:$,fill:"url(#riskfill)"}),i.jsx("path",{d:X,fill:"none",stroke:"#f59e0b",strokeWidth:1.5}),i.jsx("line",{x1:w.l,x2:f-w.r,y1:E(O),y2:E(O),stroke:"#ef4444",strokeDasharray:"5 4"}),i.jsxs("text",{x:f-w.r-4,y:E(O)-5,textAnchor:"end",fontSize:10,fill:"#f87171",children:["alarm θ = ",O]}),d!=null&&i.jsx("line",{x1:C(d),x2:C(d),y1:w.t,y2:N-w.b,stroke:"#fbbf24",strokeWidth:2}),x!=null&&x>=0&&x<=q&&i.jsxs("g",{children:[i.jsx("line",{x1:C(x),x2:C(x),y1:w.t,y2:N-w.b,stroke:"#94a3b8",strokeDasharray:"2 3"}),i.jsxs("text",{x:Math.min(C(x)+6,f-90),y:w.t+10,fontSize:11,fill:"#e2e8f0",children:[Al(x)," · ",Ne(x).toFixed(2)]})]}),i.jsx("text",{x:w.l,y:N-4,fontSize:10,fill:"#64748b",children:"0:00"}),i.jsx("text",{x:f-w.r,y:N-4,textAnchor:"end",fontSize:10,fill:"#64748b",children:Al(q)})]})})}const dp=[["highlight","Highlight event objects"],["boxes","All boxes"],["ids","Track IDs"],["trails","Trails"],["zones","Scene zones"],["flow","Learned lane directions"]];function l0({doc:u,videoUrl:m,jump:d}){const o=k.useRef(null),[g,O]=k.useState(0),[U,_]=k.useState({highlight:!0,boxes:!0,ids:!1,trails:!0,zones:!1,flow:!1}),x=k.useMemo(()=>lp(u),[u]),M=q=>{var C;(C=o.current)==null||C.seek(q),O(q)},w=u.events||[],[f,N]=k.useState("best"),H=u.quality||[],K=k.useMemo(()=>{const q=w.map((C,E)=>E);return f==="best"?q.sort((C,E)=>(H[E]??0)-(H[C]??0)||w[C][0]-w[E][0]):q},[u,f]);return k.useEffect(()=>{var E;if(!d)return;const q=(E=o.current)==null?void 0:E.video,C=()=>{var X;M(Math.max(0,d.t-1)),(X=o.current)==null||X.play()};q&&q.readyState>=1?C():q==null||q.addEventListener("loadedmetadata",C,{once:!0})},[d]),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{className:"grid gap-3 lg:grid-cols-[minmax(0,1fr)_320px]",children:[i.jsx("div",{className:"min-w-0",children:i.jsx(up,{ref:o,src:m,doc:u,frames:x,layers:U,onTime:O})}),i.jsx("aside",{className:"card relative flex max-h-80 flex-col lg:max-h-none",children:i.jsxs("div",{className:"flex min-h-0 flex-1 flex-col p-3 lg:absolute lg:inset-0",children:[i.jsxs("div",{className:"mb-2 flex items-center justify-between gap-2",children:[i.jsxs("h4",{className:"text-sm font-semibold text-slate-200",children:["Events ",i.jsx("span",{className:"font-normal text-slate-500",children:w.length})]}),H.length>0&&i.jsx("div",{className:"flex rounded-lg bg-white/5 p-0.5 text-[11px]",children:[["best",vv,"Best"],["time",wv,"Time"]].map(([q,C,E])=>i.jsxs("button",{onClick:()=>N(q),title:q==="best"?"Best examples first":"Chronological",className:`flex items-center gap-1 rounded-md px-2 py-0.5 ${f===q?"bg-white/10 text-white":"text-slate-400 hover:text-white"}`,children:[i.jsx(C,{size:11}),E]},q))})]}),i.jsxs("ul",{className:"-mx-1 min-h-0 flex-1 space-y-0.5 overflow-y-auto px-1 [scrollbar-width:thin]",children:[K.map(q=>{const C=w[q],E=g>=C[0]&&g<=C[1];return i.jsx("li",{children:i.jsxs("button",{onClick:()=>M(Math.max(0,C[0]-1)),className:`flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-left text-[13px] transition-colors hover:bg-white/5 ${E?"bg-white/10 ring-1 ring-amber-400/50":""}`,children:[i.jsx("span",{className:"h-2 w-2 shrink-0 rounded-full",style:{background:We(C[2])}}),i.jsx("span",{className:"flex-1 truncate",children:et(C[2])}),H[q]>=2&&i.jsx(Xv,{size:12,className:"shrink-0 fill-amber-400 text-amber-400"}),H[q]>0&&H[q]<2&&i.jsxs("span",{className:"shrink-0 text-[10px] text-emerald-400",children:["✓",Math.round(H[q]*100),"%"]}),i.jsx("span",{className:"font-mono text-[11px] text-slate-400",children:Al(C[0]).replace(/\.\d$/,"")})]})},q)}),!w.length&&i.jsx("li",{className:"px-2 text-sm text-slate-500",children:"No events."})]}),H.length>0&&i.jsx("p",{className:"mt-2 border-t border-white/5 pt-2 text-[11px] text-slate-500",children:"⭐ best example · ✓ overlap with our label"})]})})]}),i.jsx("div",{className:"flex flex-wrap gap-1.5",children:dp.map(([q,C])=>i.jsxs("button",{onClick:()=>_(E=>({...E,[q]:!E[q]})),className:`btn px-2.5 py-1 text-xs ${U[q]?"bg-white/10 text-white":"border border-white/10 text-slate-400"}`,children:[U[q]?i.jsx(zv,{size:13}):i.jsx(Ev,{size:13})," ",C]},q))}),i.jsxs("div",{className:"card p-3",children:[i.jsxs("div",{className:"mb-1 flex items-baseline justify-between gap-2",children:[i.jsx("h4",{className:"text-sm font-semibold text-slate-200",children:"Event timeline"}),u.labels&&i.jsx("span",{className:"text-[11px] text-slate-500",children:"white line = our manual label"})]}),i.jsx(op,{doc:u,time:g,onSeek:M})]}),i.jsxs("div",{className:"card p-3",children:[i.jsx("h4",{className:"mb-1 text-sm font-semibold text-slate-200",children:"Accident risk, next 5 s"}),i.jsx(fp,{risk:u.risk,duration:u.duration,time:g,onSeek:M,height:110})]})]})}const ia=u=>String(u??"").replace(/[&<>"]/g,m=>({"&":"&","<":"<",">":">",'"':"""})[m]),hp={drawn:"Zones drawn by the engineer",reference:"Known camera (calibrated zones)",learned:"Zero-config (road learned from traffic)"};function mp({doc:u,name:m,frameUrl:d}){const o=u.report||{},g=Object.entries(o.per_class||{}).sort((f,N)=>N[1].count-f[1].count),O=Math.max(u.duration/60,1e-6),U=u.width/u.height,_=(o.hotspots||[]).map(([f,N,H])=>`<circle cx="${f*1e3}" cy="${N*1e3/U}" r="9" fill="${We(H)}" stroke="#000" stroke-width="2"/>`).join(""),x=[...new Set((o.hotspots||[]).map(f=>f[2]))].map(f=>`<span><i style="background:${We(f)}"></i>${ia(et(f))}</span>`).join(""),M=`<!doctype html><html><head><meta charset="utf-8"><title>SafeJunction report – ${ia(m)}</title>
|
| 285 |
<style>
|
| 286 |
body{font:13px/1.45 system-ui,Segoe UI,Arial,sans-serif;color:#111;margin:28px;max-width:900px}
|
| 287 |
h1{font-size:22px;margin:0}h2{font-size:15px;margin:18px 0 6px;border-bottom:1px solid #ddd;padding-bottom:3px}
|
index.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap" rel="stylesheet" />
|
| 10 |
<title>SafeJunction · Do'ppiX</title>
|
| 11 |
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='8' fill='%230f172a'/><circle cx='16' cy='9' r='4' fill='%23ef4444'/><circle cx='16' cy='16' r='4' fill='%23f59e0b'/><circle cx='16' cy='23' r='4' fill='%2322c55e'/></svg>" />
|
| 12 |
-
<script type="module" crossorigin src="./assets/index-
|
| 13 |
<link rel="stylesheet" crossorigin href="./assets/index-CJUDcY_g.css">
|
| 14 |
</head>
|
| 15 |
<body class="text-slate-200 antialiased">
|
|
|
|
| 9 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap" rel="stylesheet" />
|
| 10 |
<title>SafeJunction · Do'ppiX</title>
|
| 11 |
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='8' fill='%230f172a'/><circle cx='16' cy='9' r='4' fill='%23ef4444'/><circle cx='16' cy='16' r='4' fill='%23f59e0b'/><circle cx='16' cy='23' r='4' fill='%2322c55e'/></svg>" />
|
| 12 |
+
<script type="module" crossorigin src="./assets/index-tYnJVcf3.js"></script>
|
| 13 |
<link rel="stylesheet" crossorigin href="./assets/index-CJUDcY_g.css">
|
| 14 |
</head>
|
| 15 |
<body class="text-slate-200 antialiased">
|