`);
}
}
if (t >= T.boxStart) {
const p = committed ? 1 : clamp((t - T.boxStart) / T.boxDur, 0, 1);
const e = committed ? 1 : 1 - Math.pow(1 - p, 3);
L.push(`
${c.legend}
${c.welcome}
${c.mascot ? ROBOT : ''}
${c.meta}
Tips for getting started
${c.tip}
Recent activity
No recent activity
`);
}
if (t >= T.hrStart) L.push('
');
if (t >= T.fpStart) {
const n = committed ? c.fp.length : Math.min(c.fp.length, Math.floor((t - T.fpStart) / T.fpCharDur + 1e-6));
const typing = committed ? false : t
❯ ${c.fp.slice(0, n)}${cursor(committed ? false : (typing ? true : blink(t)))}
`);
}
return L.join('');
}
function currentSeg(t) {
let seg = 0;
while (seg {
const vis = entries.some((e) => (e.isIntersecting ? e.intersectionRatio > 0 : false));
paused = !vis;
if (vis) lastNow = performance.now();
},
{ root: null, threshold: [0, 0.05, 0.1] }
);
io.observe(root);
requestAnimationFrame(frame);
}
document.querySelectorAll('[data-sbx-terminal]').forEach(boot);
})();