import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,t as i,x as a}from"./src-Di342QoJ.js";import{t as o}from"./jsx-runtime-D-D469L8.js";import{o as s,s as c}from"./log-DSV4Ht5l.js";import{i as l,t as u}from"./sentry-9EbPa1Xu.js";var d,f,p,m=e((()=>{d=t(n(),1),i(),l(),s(),f=o(),p=class extends d.Component{constructor(e){super(e),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.setState({errorInfo:t});let n=this.props.name||`SentryErrorBoundary`,r=[``,`[ErrorBoundary:${n}] React rendering error caught`,`  Message: ${e.message}`];t.componentStack&&r.push(`  Component stack:\n${t.componentStack}`),console.error(r.join(`
`)),c(e),u(e,{componentBoundary:n,componentStack:t.componentStack})}render(){return this.state.hasError?(0,f.jsxs)(a,{flexDirection:`column`,paddingX:1,paddingY:1,children:[(0,f.jsx)(r,{color:`error`,bold:!0,children:`React Rendering Error`}),(0,f.jsx)(r,{color:`error`,children:this.state.error?.message}),this.props.name&&(0,f.jsxs)(r,{dimColor:!0,children:[`Boundary: `,this.props.name]})]}):this.props.children}}}));export{m as n,p as t};