import{definePlugin}from"../../core/extension";import Stats from"three/examples/jsm/libs/stats.module";export let StatsMode=function(a){return a[a.fps=0]="fps",a[a.ms=1]="ms",a[a.mb=2]="mb",a}({});export default definePlugin("stats",{setup(a,b){const c=b.container,d=new Stats;return d.showPanel(a.mode||0),d.begin(),c.appendChild(d.dom),{update:()=>{d.update()},remove:()=>{d.end(),c.removeChild(d.dom)}}},render(){this.update()},destroyed(){this.remove()}});