@uptimizr/dashboard 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/404.html +1 -1
- package/out/__next.__PAGE__.txt +2 -2
- package/out/__next._full.txt +3 -3
- package/out/__next._head.txt +1 -1
- package/out/__next._index.txt +2 -2
- package/out/__next._tree.txt +2 -2
- package/out/_next/static/chunks/06m_64ysu9kn0.js +1 -0
- package/out/_next/static/chunks/1fruncg3k-3pu.js +3 -0
- package/out/_next/static/chunks/224_scesvd739.js +1 -0
- package/out/_next/static/chunks/2_hgfg-cjqw1-.js +1 -0
- package/out/_next/static/chunks/2ktxjmx03u9l3.js +1 -0
- package/out/_next/static/chunks/2kw33jl_i9o5j.css +3 -0
- package/out/_next/static/chunks/30363ptka3vzy.js +1 -0
- package/out/_next/static/chunks/39ojyykom0z2r.js +1 -0
- package/out/_next/static/chunks/3jha6wlqw8459.js +1 -0
- package/out/_not-found/__next._full.txt +2 -2
- package/out/_not-found/__next._head.txt +1 -1
- package/out/_not-found/__next._index.txt +2 -2
- package/out/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/out/_not-found/__next._not-found.txt +1 -1
- package/out/_not-found/__next._tree.txt +2 -2
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +2 -2
- package/out/index.html +1 -1
- package/out/index.txt +3 -3
- package/package.json +2 -2
- package/out/_next/static/chunks/0g_v2zswo4l6f.js +0 -1
- package/out/_next/static/chunks/1my2rhysaxjw4.js +0 -3
- package/out/_next/static/chunks/1vuq3dos1406d.css +0 -3
- package/out/_next/static/chunks/31nbg0n1q43p2.js +0 -1
- package/out/_next/static/chunks/3qw6q7d74g5wp.js +0 -1
- package/out/_next/static/chunks/3s2d9ymcd0l4e.js +0 -1
- /package/out/_next/static/{-UlF345C3V4TG3ZtvR-5_ → 2AsIePMYsPfJoAl46w-g4}/_buildManifest.js +0 -0
- /package/out/_next/static/{-UlF345C3V4TG3ZtvR-5_ → 2AsIePMYsPfJoAl46w-g4}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{-UlF345C3V4TG3ZtvR-5_ → 2AsIePMYsPfJoAl46w-g4}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,28538,e=>{"use strict";var t=e.i(28100),n=e.i(11623);e.i(82665);var i=e.i(20880),r=e.i(89339),s=e.i(88725),l=e.i(62238),a=e.i(93425),o=e.i(42279);let c=new Set,u=[{key:"interaction",label:"Clicks & picks",color:"#fb923c",types:new Set(["pointer_click","mesh_interaction"])},{key:"actors",label:"Scene actors",color:"#e879f9",types:new Set(["node_transform"])},{key:"custom",label:"Custom",color:"#34d399",types:new Set(["custom"])},{key:"camera",label:"Camera",color:"#38bdf8",types:new Set(["camera_sample"])},{key:"pointer",label:"Pointer",color:"#94a3b8",types:new Set(["pointer_move","pointer_down","pointer_up"])},{key:"perf",label:"Perf",color:"#a78bfa",types:new Set(["frame_perf"])},{key:"lifecycle",label:"Lifecycle",color:"#f472b6",types:new Set(["session_start","session_end","scene_change","focus_change","visibility_change","viewport_resize","context_lost","context_restored","runtime_error","capability_change","input_action","resource_sample","compile_stall","mesh_visibility","hover_dwell"])}];function h(e,t,n){let i=Math.max(1,n),r=new Map;u.forEach((e,t)=>{for(let n of e.types)r.set(n,t)});let s=u.map(()=>new Set);for(let n of e){let e=r.get(n.type);if(void 0===e)continue;let l=Math.min(1,Math.max(0,(n.ts-t)/i));s[e].add(Math.round(600*l))}return u.map((e,t)=>({key:e.key,label:e.label,color:e.color,marks:[...s[t]].sort((e,t)=>e-t).map(e=>e/600)})).filter(e=>e.marks.length>0)}function d(e){let t=Math.max(0,Math.round(e/1e3)),n=Math.floor(t/60);return`${n}:${(t%60).toString().padStart(2,"0")}`}function p(e){let t=e.slice(e.lastIndexOf("/")+1);return t.length>20?`${t.slice(0,19)}\u2026`:t}function m({lanes:e,duration:n,progress:i,onSeek:r,hiddenTypes:s}){let l=e.filter(e=>{let t=u.find(t=>t.key===e.key);if(!t)return!0;for(let e of t.types)if(!s.has(e))return!0;return!1});if(0===l.length)return null;let a=`${Math.min(100,Math.max(0,i/Math.max(1,n)*100))}%`;return(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsx)("div",{className:"mb-1.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-[10px] text-fg-muted",children:l.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"inline-block h-2 w-2 rounded-sm",style:{backgroundColor:e.color}}),e.label,(0,t.jsxs)("span",{className:"tabular-nums text-fg-muted",children:["(",e.marks.length,")"]})]},e.key))}),(0,t.jsxs)("button",{type:"button","aria-label":"Event timeline — click to seek",className:"relative block w-full cursor-pointer select-none rounded-md border border-edge bg-ink/60 p-1.5 text-left",onClick:e=>{var t;let i;return t=e.clientX,void r(Math.min(1,Math.max(0,(t-(i=e.currentTarget.getBoundingClientRect()).left)/(i.width||1)))*n)},children:[(0,t.jsx)("div",{className:"flex flex-col gap-1",children:l.map(e=>(0,t.jsx)("div",{className:"relative h-2.5 rounded-sm bg-white/5",children:e.marks.map((n,i)=>(0,t.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute top-0 h-full w-px",style:{left:`${100*n}%`,backgroundColor:e.color,opacity:.85}},i))},e.key))}),(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-y-1 w-px bg-saffron",style:{left:a}})]})]})}e.s(["SessionReplay",0,function({baseUrl:u,apiKey:f,sessionId:g,hiddenTypes:b,isLive:y=!1}){let x=(0,n.useRef)(null),w=(0,n.useRef)(null),v=(0,n.useRef)(0),k=(0,n.useRef)(b??c),j=(0,n.useRef)(!1),M=(0,n.useRef)(null),C=(0,n.useRef)(!1),_=(0,n.useRef)(!1),S=(0,n.useRef)(null),N=(0,n.useRef)(0),P=(0,n.useRef)([]),R=(0,n.useRef)([]),$=(0,n.useRef)([]),z=(0,n.useRef)(!0),I=(0,n.useRef)("birdview"),L=(0,n.useRef)(null),V=(0,n.useRef)(null),A=(0,n.useRef)([]),q=(0,n.useRef)(null),E=(0,n.useRef)(null),[T,F]=(0,n.useState)("idle"),[W,B]=(0,n.useState)(null),[Z,O]=(0,n.useState)(0),[K,H]=(0,n.useState)(0),[G,U]=(0,n.useState)(!1),[X,D]=(0,n.useState)([]),[J,Q]=(0,n.useState)([]),[Y,ee]=(0,n.useState)([]),[et,en]=(0,n.useState)(!0),[ei,er]=(0,n.useState)(!1),[es,el]=(0,n.useState)("birdview"),[ea,eo]=(0,n.useState)(null),[ec,eu]=(0,n.useState)(!1),[eh,ed]=(0,n.useState)(!1),[ep,em]=(0,n.useState)(null);(0,n.useEffect)(()=>{z.current=et},[et]),(0,n.useEffect)(()=>{_.current=G},[G]),(0,n.useEffect)(()=>{C.current=ei},[ei]),(0,n.useEffect)(()=>{I.current=es,j.current=!0},[es]),(0,n.useEffect)(()=>{k.current=b??c,j.current=!0},[b]),(0,n.useEffect)(()=>{let t=x.current;if(!t)return;let n=!1,s=null;return F("loading"),B(null),U(!1),O(0),H(0),D([]),Q([]),ee([]),eo(null),L.current=null,P.current=[],R.current=[],$.current=[],v.current=0,q.current=null,A.current=[],V.current=null,eu(!1),ed(!1),em(null),(async()=>{try{let[{Engine:a},{Scene:o},{ArcRotateCamera:c},{UniversalCamera:d},{HemisphericLight:p},{Vector3:m,Color3:b,Color4:x,Matrix:E},{MeshBuilder:T},{StandardMaterial:W},{fetchSessionEvents:B,ReplayPlayer:Z}]=await Promise.all([e.A(3905),e.A(94432),e.A(59694),e.A(68480),e.A(88004),e.A(27940),e.A(27124),e.A(14074),e.A(85461),e.A(18561)]),K=await B({endpoint:u,apiKey:f,sessionId:g});if(n)return;if(0===K.length)return void F("empty");let G=K[0].ts,X=K[0].ts;for(let e of K)e.ts<G&&(G=e.ts),e.ts>X&&(X=e.ts);let J=new i.CollectorApi(u,f),Y=await (0,r.mergeSceneProxies)(J,{since:G-1,until:X+1});if(n)return;let et=[...K].sort((e,t)=>e.ts-t.ts),en=et[0].ts,ei=[],es=[],el=new Map,ea=null;for(let e of et){let t=e.ts-en;if("camera_sample"===e.type){ea=[e.position[0],e.position[1],e.position[2]],ei.push({at:t,position:ea,direction:[e.direction[0],e.direction[1],e.direction[2]],..."number"==typeof e.fov?{fov:e.fov}:{}});continue}if("node_transform"===e.type){if(e.boneId)continue;let n=e.childPath?`${e.nodeId}/${e.childPath}`:e.nodeId,i=el.get(n);i||(i=[],el.set(n,i)),i.push({at:t,position:[e.position[0],e.position[1],e.position[2]]});continue}if("pointer_click"===e.type&&e.hitPoint){let n=e.ray?.origin??ea;if(!n)continue;es.push({at:t,type:"pointer_click",origin:[n[0],n[1],n[2]],hit:[e.hitPoint[0],e.hitPoint[1],e.hitPoint[2]],...e.hitMesh?{mesh:e.hitMesh}:{}});continue}if("mesh_interaction"===e.type&&e.point){if(!ea)continue;es.push({at:t,type:"mesh_interaction",origin:[ea[0],ea[1],ea[2]],hit:[e.point[0],e.point[1],e.point[2]],...e.mesh?{mesh:e.mesh}:{}})}}if(0===ei.length&&0===es.length&&0===el.size)return void F("empty");let ec=new a(t,!0,{preserveDrawingBuffer:!1}),eu=new o(ec);eu.clearColor=new x(.04,.05,.07,1),V.current=eu;let eh=new c("birdview-cam",-Math.PI/2,.22,12,m.Zero(),eu);eh.attachControl(t,!0),(0,l.disableWheelZoom)(eh),w.current=eh,new p("replay-light",new m(0,1,0),eu);let ed=new d("replay-follow-cam",m.Zero(),eu);ed.minZ=.05,ed.fov=Math.PI/3,eu.activeCamera=eh;let ep="birdview",em=T.CreateGround("replay-ground",{width:20,height:20,subdivisions:20},eu),ef=new W("replay-ground-mat",eu);ef.diffuseColor=new b(.12,.14,.18),ef.wireframe=!0,em.material=ef;let eg=new Set(el.keys()),eb=new Set(Array.from(eg,e=>e.slice(e.lastIndexOf("/")+1))),ey=[],ex=[],ew=new Set,ev=e=>{if(ew.has(e.name)||(e=>{if(e.path){for(let t of eg)if(e.path===t||e.path.endsWith(`/${t}`))return!0}return eb.has(e.name)})(e))return!1;ew.add(e.name);let t=e.aabb,n=Math.max(t[3]-t[0],.001),i=Math.max(t[4]-t[1],.001),r=Math.max(t[5]-t[2],.001),s=T.CreateBox(`replay-proxy-${e.name}`,{width:n,height:i,depth:r},eu);s.position=new m((t[0]+t[3])/2,(t[1]+t[4])/2,(t[2]+t[5])/2);let l=new W(`replay-proxy-mat-${e.name}`,eu);return l.wireframe=!0,l.disableLighting=!0,l.emissiveColor=new b(.32,.4,.52),l.alpha=.35,s.material=l,s.isPickable=!1,q.current&&s.setEnabled(!1),ex.push(s),ey.push({name:e.name,center:new m((t[0]+t[3])/2,t[4],(t[2]+t[5])/2)}),!0};for(let e of Y)ev(e);P.current=ey,R.current=ey.map(()=>null),Q(ey.map(e=>e.name)),A.current=ex;let ek=async()=>{let e=await (0,r.mergeSceneProxies)(J,{since:G-1}).catch(()=>null);if(n||!e)return;let t=!1;for(let n of e)ev(n)&&(t=!0);t&&(P.current=ey,R.current=ey.map((e,t)=>R.current[t]??null),Q(ey.map(e=>e.name)),j.current=!0)},ej=[[.91,.47,.98],[.4,.95,.6],[.98,.8,.3],[.45,.85,1]],eM=e=>{let t=e.indexOf("/");return -1===t?e:e.slice(0,t)},eC=[],e_=new Map,eS=0,eN=(e,t,n)=>{let i=T.CreateSphere(`replay-actor-${e}`,{diameter:.5,segments:12},eu),r=new W(`replay-actor-mat-${e}`,eu);r.disableLighting=!0;let s=ej[eS%ej.length];r.emissiveColor=new b(s[0],s[1],s[2]),i.material=r,i.isPickable=!1,i.isVisible=!1,eS++;let l={key:e,mesh:i,samples:n,driveKey:t};return eC.push(l),e_.set(e,l),l},eP=new Map,eR=new Map;for(let[e,t]of el){if(0===t.length)continue;let n=eM(e);if(e===n)eP.set(n,t);else{let i=eR.get(n);(!i||t.length>i.samples.length)&&eR.set(n,{key:e,samples:t})}}for(let e of new Set([...eP.keys(),...eR.keys()])){let t=eP.get(e);if(t)eN(e,e,t);else{let t=eR.get(e);eN(e,t.key,t.samples)}}$.current=eC.map(()=>null),ee(eC.map(e=>e.key));let e$=(e,t)=>{if(0===e.length||t<e[0].at)return null;let n=0,i=e.length-1,r=-1;for(;n<=i;){let s=n+i>>1;e[s].at<=t?(r=s,n=s+1):i=s-1}if(r<0)return null;let s=e[r],l=e[r+1];if(!l)return s.position;let a=l.at-s.at;if(a<=0)return s.position;let o=Math.max(0,Math.min(1,(t-s.at)/a));return[s.position[0]+(l.position[0]-s.position[0])*o,s.position[1]+(l.position[1]-s.position[1])*o,s.position[2]+(l.position[2]-s.position[2])*o]},ez=1,eI=1.4,eL=T.CreateSphere("replay-camera-origin",{diameter:.35,segments:12},eu),eV=new W("replay-camera-origin-mat",eu);eV.disableLighting=!0,eV.emissiveColor=new b(.6,.9,1),eL.material=eV;let eA=T.CreateLines("replay-camera-frustum",{points:[m.Zero(),new m(0,0,1)]},eu);eA.color=new b(.7,.95,1),eA.isPickable=!1;let eq=T.CreateCylinder("replay-camera-cone",{height:1,diameterTop:0,diameterBottom:1,tessellation:24},eu);eq.bakeTransformIntoVertices(E.RotationX(-Math.PI/2).multiply(E.Translation(0,0,.5)));let eE=new W("replay-camera-cone-mat",eu);eE.disableLighting=!0,eE.emissiveColor=new b(.4,.78,1),eE.alpha=.16,eE.backFaceCulling=!1,eq.material=eE,eq.isPickable=!1,eq.isVisible=!1;let eT=(e,t,n,i)=>{if(e?.dispose(),0===n.length)return null;let r=T.CreateLineSystem(t,{lines:n,...i?{colors:i,useVertexAlpha:!0}:{}},eu);return r.isPickable=!1,r},eF=null,eW=null,eB=null,eZ=()=>{let e=k.current,t=[],n=[];for(let i of es){if(e.has(i.type))continue;let[r,s,l]=i.hit,a="mesh_interaction"===i.type?new x(.45,.85,1,.32):new x(1,.7,.35,.32);t.push([new m(r-.1,s,l),new m(r+.1,s,l)]),t.push([new m(r,s-.1,l),new m(r,s+.1,l)]),t.push([new m(r,s,l-.1),new m(r,s,l+.1)]),n.push([a,a],[a,a],[a,a])}eB=eT(eB,"replay-persistent-marks",t,n)};eZ();let eO=T.CreateSphere("replay-glow",{diameter:1,segments:12},eu),eK=new W("replay-glow-mat",eu);eK.disableLighting=!0,eK.emissiveColor=new b(1,.62,.2),eK.alpha=0,eO.material=eK,eO.isPickable=!1,eO.isVisible=!1;let eH=1/0,eG=1/0,eU=1/0,eX=-1/0,eD=-1/0,eJ=-1/0,eQ=!1,eY=e=>{eH=Math.min(eH,e[0]),eG=Math.min(eG,e[1]),eU=Math.min(eU,e[2]),eX=Math.max(eX,e[0]),eD=Math.max(eD,e[1]),eJ=Math.max(eJ,e[2])},e0=()=>{let e;if(eQ||!Number.isFinite(eH))return;let t=(eH+eX)/2,n=(eG+eD)/2,i=(eU+eJ)/2,r=eX-eH,s=eD-eG,l=eJ-eU,a=Math.sqrt(r*r+s*s+l*l);eh.setTarget(new m(t,n,i)),e=1.3*a,eh.radius=Number.isFinite(e)?Math.max(8,e):12,eQ=!0};for(let e of ei)eY(e.position);for(let e of es)eY(e.origin),eY(e.hit);for(let e of el.values())for(let t of e)eY(t.position);for(let e of Y)eY(e.aabb.slice(0,3)),eY(e.aabb.slice(3,6));e0();{let e=eX-eH,t=eD-eG,n=eJ-eU,i=Number.isFinite(e)?Math.sqrt(e*e+t*t+n*n):0,r=Math.min(Math.max(.035*i,.45),Math.max(.45,.18*i));ez=r/.35,eI=Math.max(.16*i,3.2*r,1.4),eL.scaling.setAll(ez)}let e1=-1,e2=e=>{var i;let r=j.current;if(!r&&e===e1)return;j.current=!1,e1=e,r&&eZ();let s=k.current;(i=I.current)!==ep&&(ep=i,"follow"===i?(eh.detachControl(),eu.activeCamera=ed):(eu.activeCamera=eh,eh.attachControl(t,!0)));let l="follow"===I.current,a=s.has("camera_sample")?null:(e=>{if(0===ei.length)return null;let t=0,n=ei.length-1,i=-1;for(;t<=n;){let r=t+n>>1;ei[r].at<=e?(i=r,t=r+1):n=r-1}return i>=0?ei[i]:null})(e);if(a){eL.position.set(a.position[0],a.position[1],a.position[2]);let e=a.direction,t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])||1,n=eI,i=new m(a.position[0]+e[0]/t*n,a.position[1]+e[1]/t*n,a.position[2]+e[2]/t*n);if(l)eL.isVisible=!1,eA.isVisible=!1,eq.isVisible=!1,ed.position.set(a.position[0],a.position[1],a.position[2]),ed.setTarget(i),a.fov&&a.fov>0&&(ed.fov=a.fov);else{eL.isVisible=!0,eA.isVisible=!0,eA=T.CreateLines("replay-camera-frustum",{points:[eL.position.clone(),i],instance:eA},eu);let e=(a.fov&&a.fov>0?a.fov:Math.PI/3)/2,t=n*Math.tan(e);eq.isVisible=!0,eq.position.copyFrom(eL.position),eq.lookAt(i),eq.scaling.set(2*t,2*t,n)}}else eL.isVisible=!1,eA.isVisible=!1,eq.isVisible=!1;let o=s.has("node_transform");for(let t of eC){let n=o?null:e$(t.samples,e);if(!n){t.mesh.isVisible=!1;continue}t.mesh.isVisible=!0,t.mesh.position.set(n[0],n[1],n[2])}let c=es.filter(t=>!s.has(t.type)&&t.at<=e&&t.at>=e-2200),u=[],h=[],d=[],p=[],f=null;for(let t of c){let n=e-t.at,i=Math.max(0,Math.min(1,1-n/2200)),r=new x(1,.62,.2,.18+.72*i),s=new m(t.origin[0],t.origin[1],t.origin[2]),l=new m(t.hit[0],t.hit[1],t.hit[2]);u.push([s,l]),h.push([r,r]);let a=.12+.08*i;d.push([new m(l.x-a,l.y,l.z),new m(l.x+a,l.y,l.z)]),d.push([new m(l.x,l.y-a,l.z),new m(l.x,l.y+a,l.z)]),d.push([new m(l.x,l.y,l.z-a),new m(l.x,l.y,l.z+a)]);let o=new x(1,.78,.42,.22+.72*i);if(p.push([o,o],[o,o],[o,o]),n<=900){let e=1-n/900;(!f||e>f.t)&&(f={hit:t.hit,t:e})}}if(f){let e=.25+.9*f.t;eO.isVisible=!0,eO.scaling.set(e,e,e),eO.position.set(f.hit[0],f.hit[1],f.hit[2]),eK.alpha=.12+.5*f.t}else eO.isVisible=!1;let g=null,b=-1/0;for(let e of c)e.mesh&&e.at>b&&(b=e.at,g=e.mesh);g!==L.current&&(L.current=g,n||eo(g)),eF=eT(eF,"replay-trail-lines",u,h),eW=eT(eW,"replay-trail-hits",d,p)},e3=et.length>0?et[et.length-1].ts-en:0,e5=e3,e4=et.length>0?et[et.length-1].ts:-1/0,e8=et.map(e=>({type:e.type,ts:e.ts})),e9=0,e6=null;if(y)M.current=null,S.current=e=>{if(n)return;let t="number"==typeof e.ts?e.ts:NaN;if(!Number.isFinite(t)||t<=e4)return;e4=t;let i=t-en;if(i>e5&&(e5=i),i>e3&&(e3=i),e8.push({type:e.type,ts:t}),"camera_sample"===e.type){let t=e.position,n=e.direction;if(t&&n){let r=[t[0],t[1],t[2]];ea=r;let s="number"==typeof e.fov?e.fov:void 0;ei.push({at:i,position:r,direction:[n[0],n[1],n[2]],...void 0!==s?{fov:s}:{}}),eY(r),e0()}}else if("pointer_click"===e.type){let t=e.hitPoint,n=e.ray,r=n?.origin??ea;if(t&&r){let n="string"==typeof e.hitMesh?e.hitMesh:void 0;es.push({at:i,type:"pointer_click",origin:[r[0],r[1],r[2]],hit:[t[0],t[1],t[2]],...n?{mesh:n}:{}}),eY(t),j.current=!0}}else if("mesh_interaction"===e.type){let t=e.point;if(t&&ea){let n="string"==typeof e.mesh?e.mesh:void 0;es.push({at:i,type:"mesh_interaction",origin:[ea[0],ea[1],ea[2]],hit:[t[0],t[1],t[2]],...n?{mesh:n}:{}}),eY(t),j.current=!0}}else if("node_transform"===e.type){let t=e.position;if(e.boneId||"string"!=typeof e.nodeId||!t)return;let n="string"==typeof e.childPath?e.childPath:void 0,r=n?`${e.nodeId}/${n}`:e.nodeId;((e,t)=>{let n=eM(e),i=e_.get(n);if(!i){i=eN(n,e,[]);let t=$.current;$.current=eC.map((e,n)=>t[n]??null),ee(eC.map(e=>e.key))}e===i.driveKey?i.samples.push(t):e===n&&i.driveKey!==n&&(i.driveKey=n,i.samples.length=0,i.samples.push(t))})(r,{at:i,position:[t[0],t[1],t[2]]}),eY(t)}let r=performance.now();r-e9>250&&(e9=r,D(h(e8,en,Math.max(1,e3)))),C.current&&i>v.current&&(v.current=i)},N.current=e3,v.current=e3,C.current=!0,er(!0),U(!1),O(e3),H(e3),D(h(e8,en,Math.max(1,e3))),e2(e3),e6=setInterval(()=>void ek(),4e3);else{let e=new Z(K,{reset(){},apply(){}},{onProgress:e=>{n||(v.current=e,H(e))},onComplete:()=>{n||U(!1)}});M.current=e,O(e.durationMs),D(h(et,en,e.durationMs)),e.update(0),e2(0)}let e7=E.Identity(),te=new Map,tt=e=>{let t=te.get(e);if(t)return t;let n={w:e.offsetWidth||60,h:e.offsetHeight||16};return e.offsetWidth>0&&te.set(e,n),n},tn=performance.now(),ti=0;ec.runRenderLoop(()=>{if(y){let e=performance.now(),t=e-tn;if(tn=e,C.current)v.current+=t,v.current>e3&&(e3=v.current),N.current=e3,H(v.current),e-ti>250&&(ti=e,O(e3));else if(_.current){let e=v.current+t;e>=e3&&(e=e3),v.current=e,H(e)}}e2(v.current),eu.render(),(()=>{if(!z.current)return;let e=t.clientWidth||ec.getRenderWidth(),n=t.clientHeight||ec.getRenderHeight(),i=eh.viewport.toGlobal(e,n),r=eu.getTransformMatrix(),s=L.current,l=e=>e.slice(e.lastIndexOf("/")+1),a=e=>!!s&&(s===e||l(s)===l(e)||e.endsWith(`/${s}`)||s.endsWith(`/${e}`)),o=[],c=P.current,u=R.current;for(let e=0;e<c.length;e++){let t=u[e];if(!t)continue;let n=m.Project(c[e].center,e7,r,i);if(n.z<0||n.z>1){t.style.opacity="0";continue}o.push({el:t,x:n.x,y:n.y,liftPct:140,highlighted:a(c[e].name)})}let h=$.current;for(let e=0;e<eC.length;e++){let t=h[e];if(!t)continue;let n=eC[e].mesh;if(!n.isVisible){t.style.opacity="0";continue}let s=m.Project(n.position,e7,r,i);if(s.z<0||s.z>1){t.style.opacity="0";continue}o.push({el:t,x:s.x,y:s.y,liftPct:180,highlighted:a(eC[e].key)})}o.sort((e,t)=>e.highlighted!==t.highlighted?e.highlighted?-1:1:e.y-t.y||e.x-t.x);let d=[];for(let e of o){let{w:t,h:n}=tt(e.el),i=e.x-t/2,r=e.x+t/2,s=e.y-e.liftPct/100*n,l=s,a=!0,o=0;for(;a&&o++<256;)for(let e of(a=!1,d))i<e.right&&r>e.left&&l<e.bottom&&l+n>e.top&&(l=e.bottom+1,a=!0);d.push({left:i,right:r,top:l,bottom:l+n});let c=l-s;e.el.style.opacity="1",e.el.style.zIndex=e.highlighted?"10":"",e.el.style.transform=`translate(${e.x}px, ${e.y+c}px) translate(-50%, -${e.liftPct}%)`}})()});let tr=()=>ec.resize();window.addEventListener("resize",tr),F("ready"),s=()=>{window.removeEventListener("resize",tr),e6&&clearInterval(e6),S.current=null,M.current?.pause(),eA.dispose(),eq.dispose(),eF?.dispose(),eW?.dispose(),eB?.dispose(),eO.dispose(),q.current?.dispose(),q.current=null,A.current=[],V.current=null,eu.dispose(),ec.dispose(),w.current=null,M.current=null}}catch(e){if(n)return;F("error"),B(e instanceof Error?e.message:"Failed to load replay.")}})(),()=>{n=!0,s?.()}},[u,f,g,y]);let ef=(0,n.useCallback)(()=>{if(y){er(!1),C.current=!1,U(e=>{let t=!e;return _.current=t,t});return}let e=M.current;e&&U(t=>(t?e.pause():e.play(),!t))},[y]),eg=(0,n.useCallback)(e=>{if(y){er(!1),C.current=!1,U(!1),_.current=!1,v.current=e,H(e);return}let t=M.current;t&&(t.pause(),t.seek(e),U(!1),v.current=e,H(e))},[y]),eb=(0,n.useCallback)(()=>{er(!0),C.current=!0,U(!1),_.current=!1,v.current=N.current,H(N.current)},[]),{gated:ey}=(0,s.useLiveSession)(u,f,g,y&&"ready"===T,e=>S.current?.(e),()=>{}),ex=(0,n.useCallback)(e=>{if(!ea)return!1;if(ea===e)return!0;let t=e=>e.slice(e.lastIndexOf("/")+1);return t(ea)===t(e)||e.endsWith(`/${ea}`)||ea.endsWith(`/${e}`)},[ea]),ew=(0,n.useCallback)(async t=>{let n=V.current;if(n){ed(!0),em(`Loading ${t.name}…`);try{let[{loadSceneBackdrop:i}]=await Promise.all([e.A(3633),e.A(91064)]);if(V.current!==n)return;q.current?.dispose();let r=await i(n,t);if(V.current!==n)return void r.dispose();for(let e of(q.current=r,A.current))e.setEnabled(!1);j.current=!0,eu(!0),em(`Loaded ${t.name} (${r.meshes.length} meshes).`)}catch(e){em(e instanceof Error?e.message:"Could not load model.")}finally{ed(!1)}}},[]),ev=(0,n.useCallback)(e=>{let t=e.target.files?.[0];e.target.value="",t&&ew(t)},[ew]),ek=(0,n.useCallback)(()=>{for(let e of(q.current?.dispose(),q.current=null,A.current))e.setEnabled(!0);j.current=!0,eu(!1),em(null)},[]);return(0,t.jsxs)(a.Panel,{title:y?"Session replay · live":"Session replay (birdview timeline)",subtitle:y?"Following this session live — new camera moves and interactions stream in and the timeline grows. Scrub back to review, then press ● LIVE to return to the edge.":"Scrub the camera path and interaction rays; every click stays marked and glows as the playhead passes it. The color-coded strip marks when each event fired (click to seek).",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("canvas",{ref:x,className:"aspect-video w-full rounded-lg border border-edge bg-ink"}),(0,t.jsxs)("div",{className:`pointer-events-none absolute inset-0 overflow-hidden ${et?"":"hidden"}`,children:[J.map((e,n)=>(0,t.jsx)("div",{title:e,ref:e=>{e&&(R.current[n]=e)},className:`absolute left-0 top-0 whitespace-nowrap rounded px-1.5 py-0.5 text-[10px] font-medium opacity-0 transition-colors ${ex(e)?"bg-amber/30 text-white ring-2 ring-amber shadow-lg shadow-amber/30":"bg-ink/80 text-saffron ring-1 ring-amber/30"}`,children:p(e)},e)),Y.map((e,n)=>(0,t.jsx)("div",{title:e,ref:e=>{e&&($.current[n]=e)},className:`absolute left-0 top-0 whitespace-nowrap rounded px-1.5 py-0.5 text-[10px] font-medium opacity-0 transition-colors ${ex(e)?"bg-fuchsia-400/30 text-white ring-2 ring-fuchsia-300 shadow-lg shadow-fuchsia-500/30":"bg-ink/80 text-fuchsia-300 ring-1 ring-fuchsia-400/30"}`,children:p(e)},`actor-${e}`))]}),"ready"===T&&(J.length>0||Y.length>0)?(0,t.jsx)("button",{type:"button",onClick:()=>en(e=>!e),className:"absolute left-3 top-3 rounded-md border border-edge bg-ink/80 px-2 py-1 text-xs font-medium text-fg transition hover:bg-ink hover:text-white","aria-pressed":et?"true":"false",children:et?"Hide labels":"Show labels"}):null,"ready"===T&&"birdview"===es?(0,t.jsx)(o.ZoomButtons,{onZoom:e=>w.current&&(0,l.stepZoom)(w.current,e)}):null,"ready"!==T?(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 grid place-items-center text-sm text-fg-muted",children:"loading"===T?"Loading replay…":"empty"===T?"No replayable events (raw retention may be disabled).":"error"===T?W??"Replay unavailable.":null}):null]}),(0,t.jsxs)("div",{className:"mt-3 flex items-center gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:ef,disabled:"ready"!==T,className:"rounded-md bg-amber px-3 py-1.5 text-sm font-medium text-ink transition hover:bg-ember disabled:opacity-40",children:G?"Pause":"Play"}),y?(0,t.jsxs)("button",{type:"button",onClick:eb,disabled:"ready"!==T,"aria-pressed":ei?"true":"false",className:`flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-sm font-medium transition disabled:opacity-40 ${ei?"bg-rose-500/20 text-rose-300 ring-1 ring-rose-400/40":"border border-edge text-fg hover:bg-ink hover:text-white"}`,children:[(0,t.jsx)("span",{className:`inline-block h-2 w-2 rounded-full ${ei?"animate-pulse bg-rose-400":"bg-fg-muted"}`}),ei?"LIVE":"Resume live"]}):null,(0,t.jsxs)("div",{role:"group","aria-label":"Camera view",className:"flex items-center rounded-md border border-edge p-0.5 text-xs font-medium",children:[(0,t.jsx)("button",{type:"button",onClick:()=>el("birdview"),disabled:"ready"!==T,"aria-pressed":"birdview"===es?"true":"false",className:`rounded px-2 py-1 transition disabled:opacity-40 ${"birdview"===es?"bg-amber text-ink":"text-fg hover:text-white"}`,children:"Birdview"}),(0,t.jsx)("button",{type:"button",onClick:()=>el("follow"),disabled:"ready"!==T,"aria-pressed":"follow"===es?"true":"false",className:`rounded px-2 py-1 transition disabled:opacity-40 ${"follow"===es?"bg-amber text-ink":"text-fg hover:text-white"}`,children:"Follow camera"})]}),(0,t.jsx)("span",{className:"w-12 text-right font-mono text-xs tabular-nums text-fg-muted",children:d(K)}),(0,t.jsx)("input",{type:"range",min:0,max:Math.max(1,Z),step:50,value:Math.min(K,Z),onChange:e=>eg(Number(e.target.value)),disabled:"ready"!==T,className:"flex-1 accent-amber"}),(0,t.jsx)("span",{className:"w-12 font-mono text-xs tabular-nums text-fg-muted",children:d(Z)})]}),"ready"===T?(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-3",children:[(0,t.jsx)("input",{ref:E,type:"file",accept:".glb,.gltf,model/gltf-binary,model/gltf+json",onChange:ev,className:"hidden"}),(0,t.jsx)("button",{type:"button",onClick:()=>E.current?.click(),disabled:eh,className:"rounded-md border border-edge bg-ink/80 px-2.5 py-1.5 text-xs font-medium text-fg transition hover:bg-ink hover:text-white disabled:opacity-40",children:eh?"Loading model…":ec?"Replace model (.glb)":"Load model (.glb)"}),ec?(0,t.jsx)("button",{type:"button",onClick:ek,disabled:eh,className:"rounded-md border border-edge px-2.5 py-1.5 text-xs font-medium text-fg transition hover:bg-ink hover:text-white disabled:opacity-40",children:"Remove model"}):null,ep?(0,t.jsx)("span",{className:"text-xs text-fg-muted",role:"status",children:ep}):(0,t.jsx)("span",{className:"text-xs text-fg-muted",children:"Load a glTF model to replace the wireframe boxes with your real scene."})]}):null,"ready"===T?(0,t.jsx)(m,{lanes:X,duration:Z,progress:K,onSeek:eg,hiddenTypes:b??c}):null,y&&ey&&"ready"===T?(0,t.jsx)("p",{className:"mt-2 text-xs text-fg-muted",children:"Live follow is unavailable — raw session retention is disabled on the collector."}):null]})}])},12449,e=>{e.n(e.i(28538))},68480,e=>{e.v(t=>Promise.all(["static/chunks/1--kelnig7pxx.js","static/chunks/1j--a56ji33_x.js","static/chunks/1vkww9l6lgqag.js","static/chunks/3pdpaqzwhhijn.js","static/chunks/2vaoftqgc44cg.js","static/chunks/3vaho-xrtuchd.js","static/chunks/3rl45k759wfi1.js","static/chunks/25ctnyh7njp-d.js"].map(t=>e.l(t))).then(()=>t(25062)))},85461,e=>{e.v(t=>Promise.all(["static/chunks/0n8n481szj90g.js"].map(t=>e.l(t))).then(()=>t(57092)))},3633,e=>{e.v(t=>Promise.all(["static/chunks/2l_oqx9idxcs8.js","static/chunks/25ctnyh7njp-d.js"].map(t=>e.l(t))).then(()=>t(97900)))},91064,e=>{e.v(t=>Promise.all(["static/chunks/17v12p4sfraa0.js","static/chunks/1j--a56ji33_x.js","static/chunks/340pg0qkv5tqq.js","static/chunks/0oap0o8a8a_cl.js","static/chunks/17dmbt396_tyq.js","static/chunks/0vddljjnmozzx.js","static/chunks/17d1isrw8gtnb.js","static/chunks/0gwa154w_0wuh.js","static/chunks/3g4e2txsrb2p2.js","static/chunks/3urd7r018nel4.js","static/chunks/2zljunurdji0q.js","static/chunks/3pdpaqzwhhijn.js","static/chunks/2h1uw3cluvmmo.js","static/chunks/3vaho-xrtuchd.js","static/chunks/2npk7tr63h7rl.js","static/chunks/3g_h_00xs9u59.js","static/chunks/0f_nv15a8q415.js","static/chunks/1vpcaaf-0dn7q.js","static/chunks/40acif2eh_unv.js","static/chunks/3bsvp8qhjqdu0.js","static/chunks/25ctnyh7njp-d.js","static/chunks/3pyggl13glbdc.js","static/chunks/3rl45k759wfi1.js","static/chunks/0fxfsshoxnnh6.js"].map(t=>e.l(t))).then(()=>t(83572)))}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|