1import{a as e,i as t,t as n}from"./emotion-styled.browser.esm.Dj5rZcu_.js";import{f as r}from"./getColors.CymiOtHO.js";var i=`-2.65rem`,a=n(`div`,{target:`e1plw2qp0`})(({theme:e,locked:t,target:n})=>({padding:`${e.spacing.sm} 0 ${e.spacing.sm} ${e.spacing.sm}`,position:`absolute`,top:t?i:`-1rem`,right:e.spacing.none,transition:`none`,...!t&&{opacity:0,"&:active, &:focus-visible, &:hover":{transition:`opacity 150ms 100ms, top 100ms 100ms`,opacity:1,top:`-2.65rem`},...n&&{[`${n}:hover &, ${n}:active &, ${n}:focus-visible &`]:{transition:`opacity 150ms 100ms, top 100ms 100ms`,opacity:1,top:`-2.65rem`}}}})),o=n(`div`,{target:`e1plw2qp1`})(({theme:e})=>({color:r(e)?e.colors.fadedText60:e.colors.bodyText,display:`flex`,flexDirection:`row`,alignItems:`center`,justifyContent:`flex-end`,boxShadow:e.shadows.toolbar,borderRadius:e.radii.default,backgroundColor:e.colors.lightenedBg05,width:`fit-content`,zIndex:e.zIndices.sidebar+1,padding:e.spacing.twoXS})),s=n(`div`,{target:`e1plw2qp2`})(({height:e,useContainerWidth:t,topCentered:n,useContainerHeight:r})=>({position:`relative`,height:t&&e?e:r?e||`100%`:`fit-content`,maxWidth:`100%`,width:t?`100%`:`fit-content`,...n?{display:`flex`,justifyContent:`center`}:{}})),c={"a > &":{color:`inherit`}},l=n(`code`,{target:`e1bckg3e0`})(({theme:e})=>({padding:`0.2em 0.4em`,overflowWrap:`break-word`,whiteSpace:`pre-wrap`,margin:0,borderRadius:e.radii.sm,background:e.colors.codeBackgroundColor,color:e.colors.codeTextColor,fontFamily:e.genericFonts.codeFont,fontSize:e.fontSizes.inlineCodeFontSize,fontWeight:e.fontWeights.code,...c})),u=(e,t)=>({background:`transparent`,border:0,color:`inherit`,fontFamily:e.genericFonts.codeFont,fontSize:e.fontSizes.codeFontSize,fontWeight:e.fontWeights.code,lineHeight:`inherit`,margin:0,padding:0,...t?{display:`inline`}:{display:`inline-block`,verticalAlign:`top`,paddingRight:e.spacing.lg},whiteSpace:t?`pre-wrap`:`pre`,overflowWrap:t?`break-word`:`normal`,...c}),d=n(`code`,{target:`e1bckg3e1`})(({theme:e,wrapLines:t})=>({...u(e,t)})),f=n(`pre`,{target:`e1bckg3e2`})(({theme:e,wrapLines:t})=>({height:`100%`,background:e.colors.codeBackgroundColor,borderRadius:e.radii.default,color:e.colors.bodyText,fontSize:e.fontSizes.twoSm,fontFamily:e.genericFonts.codeFont,display:`block`,margin:0,msOverflowStyle:`scrollbar`,overflow:`auto`,padding:e.spacing.lg,...t?{}:{paddingRight:0},code:{...u(e,t)},".comment.linenumber":{color:e.colors.fadedText40,fontSize:e.fontSizes.twoSm,alignSelf:`center`,minWidth:`${e.spacing.threeXL} !important`},".token.comment, .token.prolog, .token.doctype, .token.cdata":{color:e.colors.gray70},".token.punctuation":{color:e.colors.gray70},".namespace":{opacity:.7},".token.attr-name, .token.property, .token.variable":{color:e.colors.lightBlue80},".token.boolean, .token.constant, .token.symbol":{color:e.colors.green70},".token.number, .token.regex":{color:e.colors.blueGreen80},".token.string, .token.char, .token.attr-value":{color:e.colors.green80},".token.operator, .token.entity":{color:e.colors.orange90},".token.url":{color:e.colors.purple80},".token.decorator, .token.atrule":{color:e.colors.orange90},".token.keyword, .token.tag":{color:e.colors.blue70},".token.function, .token.class-name, .token.selector":{color:e.colors.blue70,fontWeight:e.fontWeights.codeExtraBold},".token.important":{color:e.colors.red70,fontWeight:e.fontWeights.codeExtraBold},".token.comment":{color:e.colors.gray70,fontStyle:`italic`},".token.italic":{fontStyle:`italic`},".token.entity":{cursor:`help`},".token.deleted.line, .token.deleted.prefix":{color:e.colors.red70},".token.inserted.line, .token.inserted.prefix":{color:e.colors.green70},".token.unchanged.line":{color:e.colors.gray70}})),p=`opacity 300ms 150ms`,m=`${p}, visibility 0ms linear 450ms`,h=`${p}, visibility 0ms linear 150ms`,g=n(`div`,{target:`e1bckg3e3`})(({theme:e})=>({opacity:0,visibility:`hidden`,padding:`${e.spacing.sm} ${e.spacing.sm} 0 0`,top:0,right:0,position:`absolute`,zIndex:e.zIndices.sidebar+1,pointerEvents:`none`,transition:m})),_=n(`div`,{target:`e1bckg3e4`})(({theme:e})=>({height:`100%`,position:`relative`,borderRadius:e.radii.default,marginLeft:e.spacing.none,marginRight:e.spacing.none,marginTop:e.spacing.none,marginBottom:void 0,"&:focus":{outline:`none`},"&:focus-visible":{boxShadow:e.shadows.focusRing},"&:hover, &:focus-visible, &:focus-within:has(:focus-visible)":{[`${g}`]:{opacity:1,visibility:`visible`,pointerEvents:`auto`,transition:h}}})),v=n(o,{target:`e1bckg3e5`})({pointerEvents:`auto`}),y=function(e){return e.ERROR=`error`,e.INFO=`info`,e.SUCCESS=`success`,e.WARNING=`w
1arning`,e}({}),b={[y.ERROR]:{bg:`redBackgroundColor`,text:`redTextColor`},[y.WARNING]:{bg:`yellowBackgroundColor`,text:`yellowTextColor`},[y.INFO]:{bg:`blueBackgroundColor`,text:`blueTextColor`},[y.SUCCESS]:{bg:`greenBackgroundColor`,text:`greenTextColor`}},x=n(`div`,{target:`ep9twe70`})(({theme:e,$kind:t,$width:n})=>({fontWeight:e.fontWeights.normal,marginTop:e.spacing.none,marginBottom:e.spacing.none,marginLeft:e.spacing.none,marginRight:e.spacing.none,...n?{width:`${n}px`}:{},borderRadius:e.radii.default,paddingTop:e.spacing.lg,paddingBottom:e.spacing.lg,paddingRight:e.spacing.lg,paddingLeft:e.spacing.lg,lineHeight:e.lineHeights.small,backgroundColor:e.colors[b[t].bg],color:e.colors[b[t].text]})),S=n(`div`,{target:`ep9twe71`})(({theme:e})=>({pre:{backgroundColor:e.colors.transparent,paddingTop:e.spacing.lg,paddingBottom:e.spacing.lg,paddingRight:e.spacing.lg,paddingLeft:e.spacing.lg,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,"pre, code":{backgroundColor:e.colors.transparent,color:`inherit`}},code:{backgroundColor:e.colors.transparent,padding:e.spacing.none},"pre, code":{color:`inherit`},a:{color:`inherit`,textDecoration:`underline`}}));function C({kind:e,width:n,children:r}){let i=e.charAt(0).toUpperCase()+e.slice(1);return t(x,{$kind:e,$width:n,"data-testid":`stAlertContainer`,className:`stAlertContainer`,role:e===y.ERROR||e===y.WARNING?`alert`:`status`,children:t(S,{"data-testid":`stAlertContent${i}`,children:r})})}var w=n(`pre`,{target:`e5uos1f0`})(({theme:e})=>({whiteSpace:`pre-wrap`,wordWrap:`break-word`,color:`inherit`,fontSize:e.fontSizes.codeFontSize,fontFamily:e.genericFonts.codeFont,fontWeight:e.fontWeights.code,backgroundColor:e.colors.transparent,overflowX:`auto`,margin:0,borderRadius:e.radii.default,padding:e.spacing.lg,paddingRight:0,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`})),T=n(`strong`,{target:`e5uos1f1`})(({theme:e})=>({fontWeight:e.fontWeights.codeBold}));function E(n){let{name:r,message:i,stack:a,width:o}=n,s=a?a.split(` 2`):[];s.shift();let c=s.map(e=>e.trim()).join(` 3`);return e(C,{kind:y.ERROR,width:o,children:[e(T,{children:[r,`: `]}),i,a?t(w,{"data-testid":`stErrorElementStack`,children:t(d,{wrapLines:!1,children:c})}):null]})}export{y as a,v as c,f as d,o as f,x as i,g as l,a as m,w as n,d as o,s as p,C as r,_ as s,E as t,l as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.