@uptimizr/dashboard 0.1.1 → 0.1.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 +2 -2
- package/out/__next._head.txt +1 -1
- package/out/__next._index.txt +1 -1
- package/out/__next._tree.txt +1 -1
- package/out/_next/static/chunks/09e4adtr6w0xe.js +1 -0
- package/out/_next/static/chunks/0gg-ii7i6d_p6.js +1 -0
- package/out/_next/static/chunks/0wwkrsvxwi57d.js +1 -0
- package/out/_next/static/chunks/{30yzu213bqtq0.js → 10fnxpln_5xfd.js} +1 -1
- package/out/_next/static/chunks/2clzipqap01hp.js +1 -0
- package/out/_next/static/chunks/2z5eqx5do5std.js +1 -0
- package/out/_next/static/chunks/3aqbf_wkg2sih.js +3 -0
- package/out/_next/static/chunks/{turbopack-2ropzf0axp1x9.js → turbopack-0sgd6pfbe1fy6.js} +1 -1
- package/out/_not-found/__next._full.txt +1 -1
- package/out/_not-found/__next._head.txt +1 -1
- package/out/_not-found/__next._index.txt +1 -1
- 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 +1 -1
- package/out/_not-found.html +1 -1
- package/out/_not-found.txt +1 -1
- package/out/index.html +1 -1
- package/out/index.txt +2 -2
- package/package.json +4 -4
- package/out/_next/static/chunks/00zdau6mcqeae.js +0 -1
- package/out/_next/static/chunks/1lsg-22yob8dx.js +0 -1
- package/out/_next/static/chunks/21o42k82w4llc.js +0 -1
- package/out/_next/static/chunks/2d09v5u7dfq0q.js +0 -1
- package/out/_next/static/chunks/2tws5udjdcmh3.js +0 -1
- package/out/_next/static/chunks/2yiy_l8bwiw2_.js +0 -3
- package/out/_next/static/chunks/30fq_t9e2_fv-.js +0 -1
- /package/out/_next/static/{Hn5EPlVBFzONWfhyS_1fO → vHD3x58R_2B6QWAhZXCg7}/_buildManifest.js +0 -0
- /package/out/_next/static/{Hn5EPlVBFzONWfhyS_1fO → vHD3x58R_2B6QWAhZXCg7}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{Hn5EPlVBFzONWfhyS_1fO → vHD3x58R_2B6QWAhZXCg7}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,62238,42279,e=>{"use strict";let t=1/1.2;e.s(["ZOOM_IN_FACTOR",0,t,"ZOOM_OUT_FACTOR",0,1.2,"disableWheelZoom",0,function(e){e.inputs.removeByType("ArcRotateCameraMouseWheelInput")},"stepZoom",0,function(e,t){let s=e.lowerRadiusLimit??.01,i=e.upperRadiusLimit??1/0;e.radius=Math.min(i,Math.max(s,e.radius*t))}],62238);var s=e.i(29212);e.s(["ZoomButtons",0,function({onZoom:e}){let i="grid h-8 w-8 place-items-center rounded-md border border-edge bg-ink/80 text-lg leading-none text-fg backdrop-blur transition hover:bg-ink hover:text-white";return(0,s.jsxs)("div",{className:"absolute right-3 top-3 flex flex-col gap-1",children:[(0,s.jsx)("button",{type:"button","aria-label":"Zoom in",className:i,onClick:()=>e(t),children:"+"}),(0,s.jsx)("button",{type:"button","aria-label":"Zoom out",className:i,onClick:()=>e(1.2),children:"−"})]})}],42279)},28538,e=>{"use strict";var t=e.i(29212),s=e.i(94179);e.i(82665);var i=e.i(20880),n=e.i(88725),r=e.i(62238),a=e.i(93425),l=e.i(42279);let o=new Set,c=[{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 u(e,t,s){let i=Math.max(1,s),n=new Map;c.forEach((e,t)=>{for(let s of e.types)n.set(s,t)});let r=c.map(()=>new Set);for(let s of e){let e=n.get(s.type);if(void 0===e)continue;let a=Math.min(1,Math.max(0,(s.ts-t)/i));r[e].add(Math.round(600*a))}return c.map((e,t)=>({key:e.key,label:e.label,color:e.color,marks:[...r[t]].sort((e,t)=>e-t).map(e=>e/600)})).filter(e=>e.marks.length>0)}function h(e){let t=Math.max(0,Math.round(e/1e3)),s=Math.floor(t/60);return`${s}:${(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 d({lanes:e,duration:s,progress:i,onSeek:n,hiddenTypes:r}){let a=e.filter(e=>{let t=c.find(t=>t.key===e.key);if(!t)return!0;for(let e of t.types)if(!r.has(e))return!0;return!1});if(0===a.length)return null;let l=`${Math.min(100,Math.max(0,i/Math.max(1,s)*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:a.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 n(Math.min(1,Math.max(0,(t-(i=e.currentTarget.getBoundingClientRect()).left)/(i.width||1)))*s)},children:[(0,t.jsx)("div",{className:"flex flex-col gap-1",children:a.map(e=>(0,t.jsx)("div",{className:"relative h-2.5 rounded-sm bg-white/5",children:e.marks.map((s,i)=>(0,t.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute top-0 h-full w-px",style:{left:`${100*s}%`,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:l}})]})]})}e.s(["SessionReplay",0,function({baseUrl:c,apiKey:m,sessionId:f,hiddenTypes:y,isLive:b=!1}){let g=(0,s.useRef)(null),k=(0,s.useRef)(null),x=(0,s.useRef)(0),w=(0,s.useRef)(y??o),v=(0,s.useRef)(!1),j=(0,s.useRef)(null),M=(0,s.useRef)(!1),_=(0,s.useRef)(!1),C=(0,s.useRef)(null),P=(0,s.useRef)(0),z=(0,s.useRef)([]),N=(0,s.useRef)([]),S=(0,s.useRef)([]),R=(0,s.useRef)(!0),$=(0,s.useRef)("birdview"),q=(0,s.useRef)(null),[I,V]=(0,s.useState)("idle"),[A,L]=(0,s.useState)(null),[T,Z]=(0,s.useState)(0),[O,E]=(0,s.useState)(0),[W,F]=(0,s.useState)(!1),[B,K]=(0,s.useState)([]),[H,U]=(0,s.useState)([]),[G,X]=(0,s.useState)([]),[D,J]=(0,s.useState)(!0),[Q,Y]=(0,s.useState)(!1),[ee,et]=(0,s.useState)("birdview"),[es,ei]=(0,s.useState)(null);(0,s.useEffect)(()=>{R.current=D},[D]),(0,s.useEffect)(()=>{_.current=W},[W]),(0,s.useEffect)(()=>{M.current=Q},[Q]),(0,s.useEffect)(()=>{$.current=ee,v.current=!0},[ee]),(0,s.useEffect)(()=>{w.current=y??o,v.current=!0},[y]),(0,s.useEffect)(()=>{let t=g.current;if(!t)return;let s=!1,n=null;return V("loading"),L(null),F(!1),Z(0),E(0),K([]),U([]),X([]),ei(null),q.current=null,z.current=[],N.current=[],S.current=[],x.current=0,(async()=>{try{let a,[{Engine:l},{Scene:o},{ArcRotateCamera:h},{UniversalCamera:p},{HemisphericLight:d},{Vector3:y,Color3:g,Color4:I,Matrix:A},{MeshBuilder:L},{StandardMaterial:T},{fetchSessionEvents:O,ReplayPlayer:W}]=await Promise.all([e.A(66022),e.A(48505),e.A(53976),e.A(32633),e.A(42436),e.A(89370),e.A(67141),e.A(20693),e.A(85461),e.A(96664)]),B=await O({endpoint:c,apiKey:m,sessionId:f});if(s)return;if(0===B.length)return void V("empty");for(let e of B){let t=e.sceneId;if("string"==typeof t&&t){a=t;break}}let H=a?(await new i.CollectorApi(c,m).sceneRepresentation(a).catch(()=>null))?.proxy?.meshes??[]:[];if(s)return;let G=[...B].sort((e,t)=>e.ts-t.ts),D=G[0].ts,J=[],Q=[],ee=new Map,et=null;for(let e of G){let t=e.ts-D;if("camera_sample"===e.type){et=[e.position[0],e.position[1],e.position[2]],J.push({at:t,position:et,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 s=e.childPath?`${e.nodeId}/${e.childPath}`:e.nodeId,i=ee.get(s);i||(i=[],ee.set(s,i)),i.push({at:t,position:[e.position[0],e.position[1],e.position[2]]});continue}if("pointer_click"===e.type&&e.hitPoint){let s=e.ray?.origin??et;if(!s)continue;Q.push({at:t,type:"pointer_click",origin:[s[0],s[1],s[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(!et)continue;Q.push({at:t,type:"mesh_interaction",origin:[et[0],et[1],et[2]],hit:[e.point[0],e.point[1],e.point[2]],...e.mesh?{mesh:e.mesh}:{}})}}if(0===J.length&&0===Q.length&&0===ee.size)return void V("empty");let es=new l(t,!0,{preserveDrawingBuffer:!1}),en=new o(es);en.clearColor=new I(.04,.05,.07,1);let er=new h("birdview-cam",-Math.PI/2,.22,12,y.Zero(),en);er.attachControl(t,!0),(0,r.disableWheelZoom)(er),k.current=er,new d("replay-light",new y(0,1,0),en);let ea=new p("replay-follow-cam",y.Zero(),en);ea.minZ=.05,ea.fov=Math.PI/3,en.activeCamera=er;let el="birdview",eo=L.CreateGround("replay-ground",{width:20,height:20,subdivisions:20},en),ec=new T("replay-ground-mat",en);ec.diffuseColor=new g(.12,.14,.18),ec.wireframe=!0,eo.material=ec;let eu=new Set(ee.keys()),eh=new Set(Array.from(eu,e=>e.slice(e.lastIndexOf("/")+1))),ep=e=>{if(e.path){for(let t of eu)if(e.path===t||e.path.endsWith(`/${t}`))return!0}return eh.has(e.name)},ed=[];for(let e of H){if(ep(e))continue;let t=e.aabb,s=Math.max(t[3]-t[0],.001),i=Math.max(t[4]-t[1],.001),n=Math.max(t[5]-t[2],.001),r=L.CreateBox(`replay-proxy-${e.name}`,{width:s,height:i,depth:n},en);r.position=new y((t[0]+t[3])/2,(t[1]+t[4])/2,(t[2]+t[5])/2);let a=new T(`replay-proxy-mat-${e.name}`,en);a.wireframe=!0,a.disableLighting=!0,a.emissiveColor=new g(.32,.4,.52),a.alpha=.35,r.material=a,r.isPickable=!1,ed.push({name:e.name,center:new y((t[0]+t[3])/2,t[4],(t[2]+t[5])/2)})}z.current=ed,N.current=ed.map(()=>null),U(ed.map(e=>e.name));let em=[[.91,.47,.98],[.4,.95,.6],[.98,.8,.3],[.45,.85,1]],ef=e=>{let t=e.indexOf("/");return -1===t?e:e.slice(0,t)},ey=[],eb=new Map,eg=0,ek=(e,t,s)=>{let i=L.CreateSphere(`replay-actor-${e}`,{diameter:.5,segments:12},en),n=new T(`replay-actor-mat-${e}`,en);n.disableLighting=!0;let r=em[eg%em.length];n.emissiveColor=new g(r[0],r[1],r[2]),i.material=n,i.isPickable=!1,i.isVisible=!1,eg++;let a={key:e,mesh:i,samples:s,driveKey:t};return ey.push(a),eb.set(e,a),a},ex=new Map,ew=new Map;for(let[e,t]of ee){if(0===t.length)continue;let s=ef(e);if(e===s)ex.set(s,t);else{let i=ew.get(s);(!i||t.length>i.samples.length)&&ew.set(s,{key:e,samples:t})}}for(let e of new Set([...ex.keys(),...ew.keys()])){let t=ex.get(e);if(t)ek(e,e,t);else{let t=ew.get(e);ek(e,t.key,t.samples)}}S.current=ey.map(()=>null),X(ey.map(e=>e.key));let ev=(e,t)=>{if(0===e.length||t<e[0].at)return null;let s=0,i=e.length-1,n=-1;for(;s<=i;){let r=s+i>>1;e[r].at<=t?(n=r,s=r+1):i=r-1}if(n<0)return null;let r=e[n],a=e[n+1];if(!a)return r.position;let l=a.at-r.at;if(l<=0)return r.position;let o=Math.max(0,Math.min(1,(t-r.at)/l));return[r.position[0]+(a.position[0]-r.position[0])*o,r.position[1]+(a.position[1]-r.position[1])*o,r.position[2]+(a.position[2]-r.position[2])*o]},ej=1,eM=1.4,e_=L.CreateSphere("replay-camera-origin",{diameter:.35,segments:12},en),eC=new T("replay-camera-origin-mat",en);eC.disableLighting=!0,eC.emissiveColor=new g(.6,.9,1),e_.material=eC;let eP=L.CreateLines("replay-camera-frustum",{points:[y.Zero(),new y(0,0,1)]},en);eP.color=new g(.7,.95,1),eP.isPickable=!1;let ez=L.CreateCylinder("replay-camera-cone",{height:1,diameterTop:0,diameterBottom:1,tessellation:24},en);ez.bakeTransformIntoVertices(A.RotationX(-Math.PI/2).multiply(A.Translation(0,0,.5)));let eN=new T("replay-camera-cone-mat",en);eN.disableLighting=!0,eN.emissiveColor=new g(.4,.78,1),eN.alpha=.16,eN.backFaceCulling=!1,ez.material=eN,ez.isPickable=!1,ez.isVisible=!1;let eS=(e,t,s,i)=>{if(e?.dispose(),0===s.length)return null;let n=L.CreateLineSystem(t,{lines:s,...i?{colors:i,useVertexAlpha:!0}:{}},en);return n.isPickable=!1,n},eR=null,e$=null,eq=null,eI=()=>{let e=w.current,t=[],s=[];for(let i of Q){if(e.has(i.type))continue;let[n,r,a]=i.hit,l="mesh_interaction"===i.type?new I(.45,.85,1,.32):new I(1,.7,.35,.32);t.push([new y(n-.1,r,a),new y(n+.1,r,a)]),t.push([new y(n,r-.1,a),new y(n,r+.1,a)]),t.push([new y(n,r,a-.1),new y(n,r,a+.1)]),s.push([l,l],[l,l],[l,l])}eq=eS(eq,"replay-persistent-marks",t,s)};eI();let eV=L.CreateSphere("replay-glow",{diameter:1,segments:12},en),eA=new T("replay-glow-mat",en);eA.disableLighting=!0,eA.emissiveColor=new g(1,.62,.2),eA.alpha=0,eV.material=eA,eV.isPickable=!1,eV.isVisible=!1;let eL=1/0,eT=1/0,eZ=1/0,eO=-1/0,eE=-1/0,eW=-1/0,eF=!1,eB=e=>{eL=Math.min(eL,e[0]),eT=Math.min(eT,e[1]),eZ=Math.min(eZ,e[2]),eO=Math.max(eO,e[0]),eE=Math.max(eE,e[1]),eW=Math.max(eW,e[2])},eK=()=>{let e;if(eF||!Number.isFinite(eL))return;let t=(eL+eO)/2,s=(eT+eE)/2,i=(eZ+eW)/2,n=eO-eL,r=eE-eT,a=eW-eZ,l=Math.sqrt(n*n+r*r+a*a);er.setTarget(new y(t,s,i)),e=1.3*l,er.radius=Number.isFinite(e)?Math.max(8,e):12,eF=!0};for(let e of J)eB(e.position);for(let e of Q)eB(e.origin),eB(e.hit);for(let e of ee.values())for(let t of e)eB(t.position);for(let e of H)eB(e.aabb.slice(0,3)),eB(e.aabb.slice(3,6));eK();{let e=eO-eL,t=eE-eT,s=eW-eZ,i=Number.isFinite(e)?Math.sqrt(e*e+t*t+s*s):0,n=Math.min(Math.max(.035*i,.45),Math.max(.45,.18*i));ej=n/.35,eM=Math.max(.16*i,3.2*n,1.4),e_.scaling.setAll(ej)}let eH=-1,eU=e=>{var i;let n=v.current;if(!n&&e===eH)return;v.current=!1,eH=e,n&&eI();let r=w.current;(i=$.current)!==el&&(el=i,"follow"===i?(er.detachControl(),en.activeCamera=ea):(en.activeCamera=er,er.attachControl(t,!0)));let a="follow"===$.current,l=r.has("camera_sample")?null:(e=>{if(0===J.length)return null;let t=0,s=J.length-1,i=-1;for(;t<=s;){let n=t+s>>1;J[n].at<=e?(i=n,t=n+1):s=n-1}return i>=0?J[i]:null})(e);if(l){e_.position.set(l.position[0],l.position[1],l.position[2]);let e=l.direction,t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])||1,s=eM,i=new y(l.position[0]+e[0]/t*s,l.position[1]+e[1]/t*s,l.position[2]+e[2]/t*s);if(a)e_.isVisible=!1,eP.isVisible=!1,ez.isVisible=!1,ea.position.set(l.position[0],l.position[1],l.position[2]),ea.setTarget(i),l.fov&&l.fov>0&&(ea.fov=l.fov);else{e_.isVisible=!0,eP.isVisible=!0,eP=L.CreateLines("replay-camera-frustum",{points:[e_.position.clone(),i],instance:eP},en);let e=(l.fov&&l.fov>0?l.fov:Math.PI/3)/2,t=s*Math.tan(e);ez.isVisible=!0,ez.position.copyFrom(e_.position),ez.lookAt(i),ez.scaling.set(2*t,2*t,s)}}else e_.isVisible=!1,eP.isVisible=!1,ez.isVisible=!1;let o=r.has("node_transform");for(let t of ey){let s=o?null:ev(t.samples,e);if(!s){t.mesh.isVisible=!1;continue}t.mesh.isVisible=!0,t.mesh.position.set(s[0],s[1],s[2])}let c=Q.filter(t=>!r.has(t.type)&&t.at<=e&&t.at>=e-2200),u=[],h=[],p=[],d=[],m=null;for(let t of c){let s=e-t.at,i=Math.max(0,Math.min(1,1-s/2200)),n=new I(1,.62,.2,.18+.72*i),r=new y(t.origin[0],t.origin[1],t.origin[2]),a=new y(t.hit[0],t.hit[1],t.hit[2]);u.push([r,a]),h.push([n,n]);let l=.12+.08*i;p.push([new y(a.x-l,a.y,a.z),new y(a.x+l,a.y,a.z)]),p.push([new y(a.x,a.y-l,a.z),new y(a.x,a.y+l,a.z)]),p.push([new y(a.x,a.y,a.z-l),new y(a.x,a.y,a.z+l)]);let o=new I(1,.78,.42,.22+.72*i);if(d.push([o,o],[o,o],[o,o]),s<=900){let e=1-s/900;(!m||e>m.t)&&(m={hit:t.hit,t:e})}}if(m){let e=.25+.9*m.t;eV.isVisible=!0,eV.scaling.set(e,e,e),eV.position.set(m.hit[0],m.hit[1],m.hit[2]),eA.alpha=.12+.5*m.t}else eV.isVisible=!1;let f=null,b=-1/0;for(let e of c)e.mesh&&e.at>b&&(b=e.at,f=e.mesh);f!==q.current&&(q.current=f,s||ei(f)),eR=eS(eR,"replay-trail-lines",u,h),e$=eS(e$,"replay-trail-hits",p,d)},eG=G.length>0?G[G.length-1].ts-D:0,eX=eG,eD=G.length>0?G[G.length-1].ts:-1/0,eJ=G.map(e=>({type:e.type,ts:e.ts})),eQ=0;if(b)j.current=null,C.current=e=>{if(s)return;let t="number"==typeof e.ts?e.ts:NaN;if(!Number.isFinite(t)||t<=eD)return;eD=t;let i=t-D;if(i>eX&&(eX=i),i>eG&&(eG=i),eJ.push({type:e.type,ts:t}),"camera_sample"===e.type){let t=e.position,s=e.direction;if(t&&s){let n=[t[0],t[1],t[2]];et=n;let r="number"==typeof e.fov?e.fov:void 0;J.push({at:i,position:n,direction:[s[0],s[1],s[2]],...void 0!==r?{fov:r}:{}}),eB(n),eK()}}else if("pointer_click"===e.type){let t=e.hitPoint,s=e.ray,n=s?.origin??et;if(t&&n){let s="string"==typeof e.hitMesh?e.hitMesh:void 0;Q.push({at:i,type:"pointer_click",origin:[n[0],n[1],n[2]],hit:[t[0],t[1],t[2]],...s?{mesh:s}:{}}),eB(t),v.current=!0}}else if("mesh_interaction"===e.type){let t=e.point;if(t&&et){let s="string"==typeof e.mesh?e.mesh:void 0;Q.push({at:i,type:"mesh_interaction",origin:[et[0],et[1],et[2]],hit:[t[0],t[1],t[2]],...s?{mesh:s}:{}}),eB(t),v.current=!0}}else if("node_transform"===e.type){let t=e.position;if(e.boneId||"string"!=typeof e.nodeId||!t)return;let s="string"==typeof e.childPath?e.childPath:void 0,n=s?`${e.nodeId}/${s}`:e.nodeId;((e,t)=>{let s=ef(e),i=eb.get(s);if(!i){i=ek(s,e,[]);let t=S.current;S.current=ey.map((e,s)=>t[s]??null),X(ey.map(e=>e.key))}e===i.driveKey?i.samples.push(t):e===s&&i.driveKey!==s&&(i.driveKey=s,i.samples.length=0,i.samples.push(t))})(n,{at:i,position:[t[0],t[1],t[2]]}),eB(t)}let n=performance.now();n-eQ>250&&(eQ=n,K(u(eJ,D,Math.max(1,eG)))),M.current&&i>x.current&&(x.current=i)},P.current=eG,x.current=eG,M.current=!0,Y(!0),F(!1),Z(eG),E(eG),K(u(eJ,D,Math.max(1,eG))),eU(eG);else{let e=new W(B,{reset(){},apply(){}},{onProgress:e=>{s||(x.current=e,E(e))},onComplete:()=>{s||F(!1)}});j.current=e,Z(e.durationMs),K(u(G,D,e.durationMs)),e.update(0),eU(0)}let eY=A.Identity(),e0=new Map,e1=e=>{let t=e0.get(e);if(t)return t;let s={w:e.offsetWidth||60,h:e.offsetHeight||16};return e.offsetWidth>0&&e0.set(e,s),s},e2=performance.now(),e3=0;es.runRenderLoop(()=>{if(b){let e=performance.now(),t=e-e2;if(e2=e,M.current)x.current+=t,x.current>eG&&(eG=x.current),P.current=eG,E(x.current),e-e3>250&&(e3=e,Z(eG));else if(_.current){let e=x.current+t;e>=eG&&(e=eG),x.current=e,E(e)}}eU(x.current),en.render(),(()=>{if(!R.current)return;let e=t.clientWidth||es.getRenderWidth(),s=t.clientHeight||es.getRenderHeight(),i=er.viewport.toGlobal(e,s),n=en.getTransformMatrix(),r=q.current,a=e=>e.slice(e.lastIndexOf("/")+1),l=e=>!!r&&(r===e||a(r)===a(e)||e.endsWith(`/${r}`)||r.endsWith(`/${e}`)),o=[],c=z.current,u=N.current;for(let e=0;e<c.length;e++){let t=u[e];if(!t)continue;let s=y.Project(c[e].center,eY,n,i);if(s.z<0||s.z>1){t.style.opacity="0";continue}o.push({el:t,x:s.x,y:s.y,liftPct:140,highlighted:l(c[e].name)})}let h=S.current;for(let e=0;e<ey.length;e++){let t=h[e];if(!t)continue;let s=ey[e].mesh;if(!s.isVisible){t.style.opacity="0";continue}let r=y.Project(s.position,eY,n,i);if(r.z<0||r.z>1){t.style.opacity="0";continue}o.push({el:t,x:r.x,y:r.y,liftPct:180,highlighted:l(ey[e].key)})}o.sort((e,t)=>e.highlighted!==t.highlighted?e.highlighted?-1:1:e.y-t.y||e.x-t.x);let p=[];for(let e of o){let{w:t,h:s}=e1(e.el),i=e.x-t/2,n=e.x+t/2,r=e.y-e.liftPct/100*s,a=r,l=!0,o=0;for(;l&&o++<256;)for(let e of(l=!1,p))i<e.right&&n>e.left&&a<e.bottom&&a+s>e.top&&(a=e.bottom+1,l=!0);p.push({left:i,right:n,top:a,bottom:a+s});let c=a-r;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 e8=()=>es.resize();window.addEventListener("resize",e8),V("ready"),n=()=>{window.removeEventListener("resize",e8),C.current=null,j.current?.pause(),eP.dispose(),ez.dispose(),eR?.dispose(),e$?.dispose(),eq?.dispose(),eV.dispose(),en.dispose(),es.dispose(),k.current=null,j.current=null}}catch(e){if(s)return;V("error"),L(e instanceof Error?e.message:"Failed to load replay.")}})(),()=>{s=!0,n?.()}},[c,m,f,b]);let en=(0,s.useCallback)(()=>{if(b){Y(!1),M.current=!1,F(e=>{let t=!e;return _.current=t,t});return}let e=j.current;e&&F(t=>(t?e.pause():e.play(),!t))},[b]),er=(0,s.useCallback)(e=>{if(b){Y(!1),M.current=!1,F(!1),_.current=!1,x.current=e,E(e);return}let t=j.current;t&&(t.pause(),t.seek(e),F(!1),x.current=e,E(e))},[b]),ea=(0,s.useCallback)(()=>{Y(!0),M.current=!0,F(!1),_.current=!1,x.current=P.current,E(P.current)},[]),{gated:el}=(0,n.useLiveSession)(c,m,f,b&&"ready"===I,e=>C.current?.(e),()=>{}),eo=(0,s.useCallback)(e=>{if(!es)return!1;if(es===e)return!0;let t=e=>e.slice(e.lastIndexOf("/")+1);return t(es)===t(e)||e.endsWith(`/${es}`)||es.endsWith(`/${e}`)},[es]);return(0,t.jsxs)(a.Panel,{title:b?"Session replay · live":"Session replay (birdview timeline)",subtitle:b?"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:g,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 ${D?"":"hidden"}`,children:[H.map((e,s)=>(0,t.jsx)("div",{title:e,ref:e=>{e&&(N.current[s]=e)},className:`absolute left-0 top-0 whitespace-nowrap rounded px-1.5 py-0.5 text-[10px] font-medium opacity-0 transition-colors ${eo(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)),G.map((e,s)=>(0,t.jsx)("div",{title:e,ref:e=>{e&&(S.current[s]=e)},className:`absolute left-0 top-0 whitespace-nowrap rounded px-1.5 py-0.5 text-[10px] font-medium opacity-0 transition-colors ${eo(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"===I&&(H.length>0||G.length>0)?(0,t.jsx)("button",{type:"button",onClick:()=>J(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":D?"true":"false",children:D?"Hide labels":"Show labels"}):null,"ready"===I&&"birdview"===ee?(0,t.jsx)(l.ZoomButtons,{onZoom:e=>k.current&&(0,r.stepZoom)(k.current,e)}):null,"ready"!==I?(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 grid place-items-center text-sm text-fg-muted",children:"loading"===I?"Loading replay…":"empty"===I?"No replayable events (raw retention may be disabled).":"error"===I?A??"Replay unavailable.":null}):null]}),(0,t.jsxs)("div",{className:"mt-3 flex items-center gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:en,disabled:"ready"!==I,className:"rounded-md bg-amber px-3 py-1.5 text-sm font-medium text-ink transition hover:bg-ember disabled:opacity-40",children:W?"Pause":"Play"}),b?(0,t.jsxs)("button",{type:"button",onClick:ea,disabled:"ready"!==I,"aria-pressed":Q?"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 ${Q?"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 ${Q?"animate-pulse bg-rose-400":"bg-fg-muted"}`}),Q?"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:()=>et("birdview"),disabled:"ready"!==I,"aria-pressed":"birdview"===ee?"true":"false",className:`rounded px-2 py-1 transition disabled:opacity-40 ${"birdview"===ee?"bg-amber text-ink":"text-fg hover:text-white"}`,children:"Birdview"}),(0,t.jsx)("button",{type:"button",onClick:()=>et("follow"),disabled:"ready"!==I,"aria-pressed":"follow"===ee?"true":"false",className:`rounded px-2 py-1 transition disabled:opacity-40 ${"follow"===ee?"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:h(O)}),(0,t.jsx)("input",{type:"range",min:0,max:Math.max(1,T),step:50,value:Math.min(O,T),onChange:e=>er(Number(e.target.value)),disabled:"ready"!==I,className:"flex-1 accent-amber"}),(0,t.jsx)("span",{className:"w-12 font-mono text-xs tabular-nums text-fg-muted",children:h(T)})]}),"ready"===I?(0,t.jsx)(d,{lanes:B,duration:T,progress:O,onSeek:er,hiddenTypes:y??o}):null,b&&el&&"ready"===I?(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))},66022,e=>{e.v(t=>Promise.all(["static/chunks/0ys9-ozuluawt.js","static/chunks/2ycvtdd68gub7.js","static/chunks/0v82oqyoy9zol.js","static/chunks/18u58lorfahxi.js","static/chunks/1nj82er7msdto.js","static/chunks/0ufbyo1x3qkmo.js","static/chunks/1yehxf-fmeicg.js"].map(t=>e.l(t))).then(()=>t(94080)))},48505,e=>{e.v(t=>Promise.all(["static/chunks/3v5ha25nxo43j.js","static/chunks/3v3-7fio3nw_t.js","static/chunks/0v82oqyoy9zol.js","static/chunks/3t06schbtqonl.js","static/chunks/1nj82er7msdto.js","static/chunks/3nz-dh9d7cehk.js","static/chunks/2-sjjedfr0kfq.js","static/chunks/18u58lorfahxi.js","static/chunks/2u6shh3oeycm-.js"].map(t=>e.l(t))).then(()=>t(73073)))},53976,e=>{e.v(t=>Promise.all(["static/chunks/3v3-7fio3nw_t.js","static/chunks/10r_824wzt8hj.js","static/chunks/2aor7m-wbis85.js","static/chunks/2-sjjedfr0kfq.js","static/chunks/0v82oqyoy9zol.js","static/chunks/25b9x-li-tvk2.js","static/chunks/2aelw3far6rii.js","static/chunks/0aznt7717miff.js","static/chunks/1_aahautsz2v_.js","static/chunks/1nj82er7msdto.js","static/chunks/3t06schbtqonl.js","static/chunks/18u58lorfahxi.js"].map(t=>e.l(t))).then(()=>t(18662)))},32633,e=>{e.v(t=>Promise.all(["static/chunks/3v3-7fio3nw_t.js","static/chunks/0v82oqyoy9zol.js","static/chunks/10r_824wzt8hj.js","static/chunks/18u58lorfahxi.js","static/chunks/2unhhuv0arlcv.js","static/chunks/1nj82er7msdto.js","static/chunks/13isnf0--pmx1.js"].map(t=>e.l(t))).then(()=>t(30118)))},42436,e=>{e.v(t=>Promise.all(["static/chunks/37vzwr3ciejf1.js","static/chunks/157d9euci08yu.js","static/chunks/2-sjjedfr0kfq.js","static/chunks/18u58lorfahxi.js","static/chunks/0v82oqyoy9zol.js"].map(t=>e.l(t))).then(()=>t(12847)))},89370,e=>{e.v(t=>Promise.all(["static/chunks/0dm32-jq30tg8.js","static/chunks/18u58lorfahxi.js","static/chunks/0v82oqyoy9zol.js"].map(t=>e.l(t))).then(()=>t(62566)))},67141,e=>{e.v(t=>Promise.all(["static/chunks/3v3-7fio3nw_t.js","static/chunks/0v82oqyoy9zol.js","static/chunks/3mqy-84_ul3t2.js","static/chunks/1_aahautsz2v_.js","static/chunks/3t06schbtqonl.js","static/chunks/1thjncpj7u6pq.js","static/chunks/10r_824wzt8hj.js","static/chunks/1vdjn0pkoyypn.js","static/chunks/1nj82er7msdto.js","static/chunks/0aznt7717miff.js","static/chunks/2-sjjedfr0kfq.js","static/chunks/18u58lorfahxi.js","static/chunks/2aelw3far6rii.js","static/chunks/3nz-dh9d7cehk.js"].map(t=>e.l(t))).then(()=>t(97998)))},20693,e=>{e.v(t=>Promise.all(["static/chunks/1-61zh4waha61.js","static/chunks/3v3-7fio3nw_t.js","static/chunks/1zx2q-r32thv1.js","static/chunks/2-sjjedfr0kfq.js","static/chunks/0v82oqyoy9zol.js","static/chunks/3nz-dh9d7cehk.js","static/chunks/2u6shh3oeycm-.js","static/chunks/18u58lorfahxi.js","static/chunks/1_aahautsz2v_.js","static/chunks/1nj82er7msdto.js","static/chunks/3t06schbtqonl.js"].map(t=>e.l(t))).then(()=>t(32550)))},85461,e=>{e.v(t=>Promise.all(["static/chunks/0n8n481szj90g.js"].map(t=>e.l(t))).then(()=>t(57092)))},96664,e=>{e.v(t=>Promise.all(["static/chunks/1o1d0p-v1z8ty.js","static/chunks/3v3-7fio3nw_t.js","static/chunks/0v82oqyoy9zol.js","static/chunks/3t06schbtqonl.js","static/chunks/3pufs8g4ui943.js","static/chunks/1nj82er7msdto.js","static/chunks/2-sjjedfr0kfq.js","static/chunks/18u58lorfahxi.js","static/chunks/2u6shh3oeycm-.js","static/chunks/3nz-dh9d7cehk.js"].map(t=>e.l(t))).then(()=>t(44981)))}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|