@techdocs/cli 1.10.4-next.1 → 1.10.4

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.
Files changed (28) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/embedded-app/.config-schema.json +68 -0
  3. package/dist/embedded-app/index.html +1 -1
  4. package/dist/embedded-app/index.html.tmpl +1 -1
  5. package/dist/embedded-app/static/7226.c23c4816.chunk.js +2 -0
  6. package/dist/embedded-app/static/7226.c23c4816.chunk.js.map +1 -0
  7. package/dist/embedded-app/static/main.0c6dd09c.css +2 -0
  8. package/dist/embedded-app/static/main.0c6dd09c.css.map +1 -0
  9. package/dist/embedded-app/static/{main.c03cc860.js → main.bd200dfa.js} +9 -9
  10. package/dist/embedded-app/static/main.bd200dfa.js.map +1 -0
  11. package/dist/embedded-app/static/module-parse5.94980036.js +2 -0
  12. package/dist/embedded-app/static/module-parse5.94980036.js.map +1 -0
  13. package/dist/embedded-app/static/{module-remix-run.f9e8eadd.js → module-remix-run.8b5ff4b7.js} +2 -2
  14. package/dist/embedded-app/static/module-remix-run.8b5ff4b7.js.map +1 -0
  15. package/dist/embedded-app/static/{runtime.47f251b0.js → runtime.f12aa553.js} +2 -2
  16. package/dist/embedded-app/static/{runtime.47f251b0.js.map → runtime.f12aa553.js.map} +1 -1
  17. package/dist/embedded-app/static/vendor.c30d98c8.js +2 -0
  18. package/dist/embedded-app/static/vendor.c30d98c8.js.map +1 -0
  19. package/dist/package.json.cjs.js +1 -1
  20. package/package.json +7 -7
  21. package/dist/embedded-app/static/7226.0eec4e47.chunk.js +0 -2
  22. package/dist/embedded-app/static/7226.0eec4e47.chunk.js.map +0 -1
  23. package/dist/embedded-app/static/main.c03cc860.js.map +0 -1
  24. package/dist/embedded-app/static/main.e1e2baaa.css +0 -2
  25. package/dist/embedded-app/static/main.e1e2baaa.css.map +0 -1
  26. package/dist/embedded-app/static/module-remix-run.f9e8eadd.js.map +0 -1
  27. package/dist/embedded-app/static/vendor.a4b20610.js +0 -2
  28. package/dist/embedded-app/static/vendor.a4b20610.js.map +0 -1
@@ -1,4 +1,4 @@
1
- (self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["1889"],{74854(e,t,r){"use strict";r.d(t,{c:()=>i});let i=Symbol.for("CATALOG_FILTER_EXISTS_0e15b590c0b343a2bae3e787e84c2111")},11773(e,t,r){"use strict";r.d(t,{P:()=>a,_P:()=>n,oQ:()=>i});let i="default",n="backstage.io/view-url",a="backstage.io/edit-url"},58077(e,t,r){"use strict";r.d(t,{KU:()=>a,U2:()=>o,sM:()=>n});var i=r(11773);function n(e){return{kind:e.kind,namespace:e.metadata.namespace||i.oQ,name:e.metadata.name}}function a(e,t){let r,n,a;if(!e)throw Error("Entity reference must not be empty");let o=t?.defaultKind,s=t?.defaultNamespace||i.oQ;if("string"==typeof e){let t=function(e){let t=e.indexOf(":"),r=e.indexOf("/");-1!==r&&r<t&&(t=-1);let i=-1===t?void 0:e.slice(0,t),n=-1===r?void 0:e.slice(t+1,r),a=e.slice(Math.max(t+1,r+1));if(""===i||""===n||""===a)throw TypeError(`Entity reference "${e}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:i,namespace:n,name:a}}(e);r=t.kind??o,n=t.namespace??s,a=t.name}else r=e.kind??o,n=e.namespace??s,a=e.name;if(r)if(n){if(!a){let t=JSON.stringify(e);throw Error(`Entity reference ${t} had missing or empty name`)}}else{let t=JSON.stringify(e);throw Error(`Entity reference ${t} had missing or empty namespace`)}else{let t=JSON.stringify(e);throw Error(`Entity reference ${t} had missing or empty kind (e.g. did not start with "component:" or similar)`)}return{kind:r,namespace:n,name:a}}function o(e){let t,r,n;return"metadata"in e?(t=e.kind,r=e.metadata.namespace??i.oQ,n=e.metadata.name):(t=e.kind,r=e.namespace??i.oQ,n=e.name),`${t.toLocaleLowerCase("en-US")}:${r.toLocaleLowerCase("en-US")}/${n.toLocaleLowerCase("en-US")}`}},96403(e,t,r){"use strict";r.d(t,{fT:()=>a,jn:()=>o,nC:()=>n,sA:()=>s,vv:()=>i});let i="ownedBy",n="dependsOn",a="dependencyOf",o="partOf",s="hasPart"},16263(e,t,r){"use strict";r.d(t,{Eo:()=>i,I4:()=>n});let i="backstage.io/managed-by-location",n="backstage.io/source-location"},37121(e,t,r){"use strict";r.d(t,{Cr:()=>l,KL:()=>s,aY:()=>o});var i=r(58077),n=r(16263);let a=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;function o(e){if("string"!=typeof e)throw TypeError(`Unable to parse location ref '${e}', unexpected argument ${typeof e}`);let t=e.indexOf(":");if(t<0)throw TypeError(`Unable to parse location ref '${e}', expected '<type>:<target>', e.g. 'url:https://host/path'`);let r=e.substring(0,t).trim(),i=e.substring(t+1).trim();if(!r||!i)throw TypeError(`Unable to parse location ref '${e}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if("http"===r||"https"===r)throw TypeError(`Invalid location ref '${e}', please prefix it with 'url:', e.g. 'url:${e}'`);if(a.test(i))throw TypeError(`Invalid location ref '${e}', target is a javascript: URL`);return{type:r,target:i}}function s(e){let{type:t,target:r}=e;if(t){if(!r)throw TypeError("Unable to stringify location ref, empty target")}else throw TypeError("Unable to stringify location ref, empty type");if(a.test(r))throw TypeError(`Invalid location ref '${t}:${r}', target is a javascript: URL`);return`${t}:${r}`}function l(e){let t=e.metadata?.annotations?.[n.I4]??e.metadata?.annotations?.[n.Eo];if(!t)throw Error(`Entity '${(0,i.U2)(e)}' is missing location`);return o(t)}},4809(e,t,r){"use strict";r.d(t,{z:()=>d});var i=r(31085),n=r(9720),a=r(54917),o=r(82291),s=r(40697),l=r(25577),c=r(55555);function d(e){let{text:t,language:r,showLineNumbers:d=!1,highlightedNumbers:u,wrapLongLines:p,customStyle:h,showCopyCodeButton:g=!1}=e,f=(0,a.A)(),m="dark"===f.palette.type?s.A:l.A,y="dark"===f.palette.type?"#256bf3":"#e6ffed";return(0,i.jsxs)(n.A,{position:"relative",children:[(0,i.jsx)(o.A,{customStyle:h,language:r,style:m,showLineNumbers:d,wrapLines:!0,wrapLongLines:p,lineNumberStyle:{color:f.palette.textVerySubtle},lineProps:e=>u?.includes(e)?{style:{backgroundColor:y}}:{},children:t}),g&&(0,i.jsx)(n.A,{position:"absolute",top:0,right:0,children:(0,i.jsx)(c.l,{text:t})})]})}},55555(e,t,r){"use strict";r.d(t,{l:()=>h});var i=r(31085),n=r(50509),a=r(151),o=r(29365),s=r(71677),l=r(99594),c=r(14041),d=r(11688),u=r(89332),p=r(89595);function h(e){let{t}=(0,p.i)(u.O),{text:r,tooltipDelay:h=1e3,tooltipText:g=t("copyTextButton.tooltipText"),"aria-label":f="Copy text"}=e,m=(0,n.gf)(a.m),[y,v]=(0,c.useState)(!1),[{error:b},w]=(0,d.A)();return(0,c.useEffect)(()=>{b&&m.post(b)},[b,m]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(s.Ay,{id:"copy-test-tooltip",title:g,placement:"top",leaveDelay:h,onClose:()=>v(!1),open:y,children:(0,i.jsx)(o.A,{onClick:e=>{e.stopPropagation(),v(!0),w(r)},"aria-label":f,children:(0,i.jsx)(l.default,{})})})})}},35571(e,t,r){"use strict";r.d(t,{p:()=>g});var i=r(31085),n=r(42899),a=r(58837),o=r(72501);let s=r.p+"static/missingAnnotation.5df688e7.svg",l=r.p+"static/noInformation.acf1ccf4.svg",c=r.p+"static/createComponent.7c188d7f.svg",d=r.p+"static/noBuild.169833d0.svg",u=(0,a.A)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),p=({missing:e})=>{let t=u();switch(e){case"field":return(0,i.jsx)("img",{src:s,className:t.generalImg,alt:"annotation is missing"});case"info":return(0,i.jsx)("img",{src:l,alt:"no Information",className:t.generalImg});case"content":return(0,i.jsx)("img",{src:c,alt:"create Component",className:t.generalImg});case"data":return(0,i.jsx)("img",{src:d,alt:"no Build",className:t.generalImg});default:return null}},h=(0,a.A)(e=>({root:{backgroundColor:e.palette.background.default,padding:e.spacing(2,0,0,0)},action:{marginTop:e.spacing(2)},imageContainer:{position:"relative"}}),{name:"BackstageEmptyState"});function g(e){let{title:t,description:r,missing:a,action:s}=e,l=h();return(0,i.jsxs)(n.A,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:l.root,spacing:2,children:[(0,i.jsx)(n.A,{item:!0,xs:12,md:6,children:(0,i.jsxs)(n.A,{container:!0,direction:"column",children:[(0,i.jsx)(n.A,{item:!0,xs:!0,children:(0,i.jsx)(o.A,{variant:"h5",children:t})}),(0,i.jsx)(n.A,{item:!0,xs:!0,children:(0,i.jsx)(o.A,{variant:"body1",children:r})}),(0,i.jsx)(n.A,{item:!0,xs:!0,className:l.action,children:s})]})}),(0,i.jsx)(n.A,{item:!0,xs:12,md:6,className:l.imageContainer,children:"string"==typeof a?(0,i.jsx)(p,{missing:a}):a.customImage})]})}},60691(e,t,r){"use strict";r.d(t,{b:()=>p});var i=r(31085),n=r(58837),a=r(58007),o=r(8109),s=r(5951),l=r(55555),c=r(87187);let d=(0,n.A)(e=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:e.spacing(2)},divider:{margin:e.spacing(2)}}),{name:"BackstageErrorPanel"}),u=({error:e,message:t,stack:r,children:n})=>{let c=d();return(0,i.jsxs)(a.A,{dense:!0,children:[(0,i.jsxs)(o.A,{alignItems:"flex-start",children:[(0,i.jsx)(s.A,{classes:{secondary:c.text},primary:"Error",secondary:e}),(0,i.jsx)(l.l,{text:e})]}),(0,i.jsxs)(o.A,{alignItems:"flex-start",children:[(0,i.jsx)(s.A,{classes:{secondary:c.text},primary:"Message",secondary:t}),(0,i.jsx)(l.l,{text:t})]}),r&&(0,i.jsxs)(o.A,{alignItems:"flex-start",children:[(0,i.jsx)(s.A,{classes:{secondary:c.text},primary:"Stack Trace",secondary:r}),(0,i.jsx)(l.l,{text:r})]}),n]})};function p(e){let{title:t,error:r,defaultExpanded:n,titleFormat:a,children:o}=e;return(0,i.jsx)(c.B,{severity:"error",title:t??r.message,defaultExpanded:n,titleFormat:a,children:(0,i.jsx)(u,{error:r.name,message:r.message,stack:r.stack,children:o})})}},280(e,t,r){"use strict";r.d(t,{m:()=>l});var i=r(31085),n=r(72501),a=r(58837),o=r(55940);let s=(0,a.A)(()=>({icon:{color:"#f3ba37",cursor:"pointer",display:"inline-flex"},iconBorder:{color:"inherit",cursor:"pointer",display:"inline-flex"}}),{name:"BackstageFavoriteToggleIcon"});function l(e){let{isFavorite:t}=e,r=s();return(0,i.jsx)(n.A,{component:"span",className:t?r.icon:r.iconBorder,children:t?(0,i.jsx)(o.Gg,{}):(0,i.jsx)(o.KG,{})})}},60603(e,t,r){"use strict";r.d(t,{N_:()=>S});var i=r(31085),n=r(77091),a=r(50509),o=r(19735),s=r(17323),l=r(49203),c=r(58837),d=r(72501),u=r(53373),p=r.n(u),h=r(45250),g=r(14041),f=r(18690),m=r(73657),y=r(39330);let v=(0,c.A)(e=>({visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",overflow:"hidden",position:"absolute",userSelect:"none",whiteSpace:"nowrap",height:1,width:1},externalLink:{position:"relative"},externalLinkIcon:{verticalAlign:"bottom",marginLeft:e.spacing(.5)}}),{name:"Link"}),b=()=>{let e=(0,n.n)().getSystemIcon("externalLink")||y.default,t=v();return(0,i.jsx)(e,{className:t.externalLinkIcon})},w=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,x=window.open;if(x&&!x.__backstage){let e=function(...e){let t=String(e[0]);if(w.test(t))throw Error("Rejected window.open() with a javascript: URL as a security precaution");return x.apply(this,e)};e.__backstage=!0,window.open=e}let A=e=>e instanceof Array?e.map(A).join(" ").trim():"object"==typeof e&&e?A(e?.props?.children):["string","number"].includes(typeof e)?String(e):"",S=(0,g.forwardRef)(({onClick:e,noTrack:t,externalLinkIcon:r,...n},c)=>{let u,g,y,x,S,k=v(),E=(0,s.s)(),C=!function(){let[e]=(0,f.AV)((0,i.jsx)(f.qh,{index:!0,element:(0,i.jsx)("div",{})}));return!e.index}()?n.to:(u=String(n.to),g=(()=>{let{pathname:e}=new URL((()=>{try{return(0,a.gf)(o.U).getOptionalString("app.baseUrl")}catch{return}})()??"/","http://sample.dev");return(0,h.trimEnd)(e,"/")})(),y=u,x=/^([a-z+.-]+):/.test(y),S=u.startsWith(g),x||S||(u=g.concat(u)),u),j=A(n.children)||C,$=/^([a-z+.-]+):/.test(C),I=$&&!!/^https?:/.exec(C);if(w.test(C))throw Error("Link component rejected javascript: URL as a security precaution");let R=r=>{e?.(r),t||E.captureEvent("click",j,{attributes:{to:C}})};return $?(0,i.jsxs)(l.A,{...I?{target:"_blank",rel:"noopener"}:{},...n,...n["aria-label"]?{"aria-label":`${n["aria-label"]}, Opens in a new window`}:{},ref:c,href:C,onClick:R,className:p()(k.externalLink,n.className),children:[n.children,r&&(0,i.jsx)(b,{}),(0,i.jsx)(d.A,{component:"span",className:k.visuallyHidden,children:", Opens in a new window"})]}):(0,i.jsx)(l.A,{...n,ref:c,component:m.N_,to:C,onClick:R})})},45463(e,t,r){"use strict";r.d(t,{z:()=>l});var i=r(31085),n=r(64947),a=r(14041),o=r(60603);let s=(0,a.forwardRef)((e,t)=>(0,i.jsx)(o.N_,{ref:t,...e,color:"initial"})),l=(0,a.forwardRef)((e,t)=>(0,i.jsx)(n.A,{ref:t,component:s,...e}))},11629(e,t,r){"use strict";r.d(t,{h:()=>h});var i=r(31085),n=r(58837),a=r(21997),o=r(81411),s=r(14041),l=r(4809);let c=(0,n.A)(e=>({markdown:{"& table":{borderCollapse:"collapse",border:`1px solid ${e.palette.border}`},"& th, & td":{border:`1px solid ${e.palette.border}`,padding:e.spacing(1)},"& td":{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:e.spacing(3,2,3,2.5),borderBottom:0},"& th":{backgroundColor:e.palette.background.paper},"& tr":{backgroundColor:e.palette.background.paper},"& tr:nth-child(odd)":{backgroundColor:e.palette.background.default},"& a":{color:e.palette.link},"& img":{maxWidth:"100%"}}}),{name:"BackstageMarkdownContent"}),d=(e,t)=>t?"string"==typeof t?e+t:s.Children.toArray(t.props.children).reduce(d,e):e,u=({level:e,children:t})=>{let r=s.Children.toArray(t).reduce(d,"").toLocaleLowerCase("en-US").replace(/\W/g,"-");return(0,s.createElement)(`h${e}`,{id:r},t)},p={code:({inline:e,className:t,children:r,...n})=>{let a=String(r).replace(/\n+$/,""),o=/language-(\w+)/.exec(t||"");return!e&&o?(0,i.jsx)(l.z,{language:o[1],text:a}):(0,i.jsx)("code",{className:t,...n,children:r})},h1:u,h2:u,h3:u,h4:u,h5:u,h6:u};function h(e){let{content:t,dialect:r="gfm",linkTarget:n,transformLinkUri:s,transformImageUri:l,className:d}=e,u=c();return(0,i.jsx)(a.$,{remarkPlugins:"gfm"===r?[o.A]:[],className:`${u.markdown} ${d??""}`.trim(),children:t,components:p,linkTarget:n,transformLinkUri:s,transformImageUri:l})}},55489(e,t,r){"use strict";r.d(t,{k:()=>l});var i=r(31085),n=r(9720),a=r(88951),o=r(54917),s=r(14041);function l(e){let t=(0,o.A)(),[r,l]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=setTimeout(()=>l(!0),t.transitions.duration.short);return()=>clearTimeout(e)},[t.transitions.duration.short]),r?(0,i.jsx)(a.A,{...e,"data-testid":"progress"}):(0,i.jsx)(n.A,{display:"none","data-testid":"progress"})}},48266(e,t,r){"use strict";r.d(t,{w:()=>E});var i=r(31085),n=r(9720),a=r(98552),o=r(94390),s=r(95061),l=r(41857),c=r(48543),d=r(26343),u=r(99489),p=r(24568),h=r(30455),g=r(58837),f=r(72501),m=r(92399),y=r(14041),v=r(10437);let b=(0,g.A)(e=>(0,h.A)({icon:{position:"absolute",right:e.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageClosedDropdown"}),w=()=>{let e=b();return(0,i.jsx)(v.A,{className:e.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M7.5 8L6 9.5L12.0703 15.5703L18.1406 9.5L16.6406 8L12.0703 12.5703L7.5 8Z",fill:"currentColor"})})},x=(0,g.A)(e=>(0,h.A)({icon:{position:"absolute",right:e.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageOpenedDropdown"}),A=()=>{let e=x();return(0,i.jsx)(v.A,{className:e.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M16.5 16L18 14.5L11.9297 8.42969L5.85938 14.5L7.35938 16L11.9297 11.4297L16.5 16Z",fill:"currentColor"})})},S=(0,p.A)(e=>(0,h.A)({root:{"label + &":{marginTop:e.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:e.palette.primary.main}},input:{borderRadius:e.shape.borderRadius,position:"relative",backgroundColor:e.palette.background.paper,border:"1px solid #ced4da",fontSize:e.typography.body1.fontSize,padding:e.spacing(1.25,3.25,1.25,1.5),transition:e.transitions.create(["border-color","box-shadow"]),"&:focus":{background:e.palette.background.paper,borderRadius:e.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(l.A),k=(0,g.A)(e=>(0,h.A)({formControl:{margin:e.spacing(1,0)},label:{transform:"initial",fontWeight:"bold",fontSize:e.typography.body2.fontSize,fontFamily:e.typography.fontFamily,color:e.palette.text.primary,"&.Mui-focused":{color:e.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:e.typography.body2.fontSize,fontFamily:e.typography.fontFamily,color:e.palette.text.primary,"&.Mui-focused":{color:e.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function E(e){let{multiple:t,items:r,label:l,placeholder:p,selected:h,onChange:g,triggerReset:v,native:b=!1,disabled:x=!1,margin:E,"data-testid":C="select"}=e,j=k(),[$,I]=(0,y.useState)(h||(t?[]:"")),[R,T]=(0,y.useState)(!1);return(0,y.useEffect)(()=>{I(t?[]:"")},[v,t]),(0,y.useEffect)(()=>{I(h||(t?[]:""))},[h,t]),(0,i.jsx)(n.A,{className:j.root,children:(0,i.jsxs)(s.A,{className:j.formControl,children:[(0,i.jsx)(c.A,{className:j.formLabel,children:l}),(0,i.jsxs)(u.A,{"aria-label":l,value:$,native:b,disabled:x,"data-testid":C,displayEmpty:!0,multiple:t,margin:E,onChange:e=>{I(e.target.value),g(e.target.value)},open:R,onOpen:e=>{x?e.preventDefault():T(r=>!(!t||e.target instanceof HTMLElement)||!r)},onClose:()=>{T(!1)},input:(0,i.jsx)(S,{}),label:l,renderValue:e=>t&&0!==$.length?(0,i.jsx)(n.A,{className:j.chips,children:e.map(e=>{let t=r.find(t=>t.value===e);return!!t&&(0,i.jsx)(o.A,{"data-testid":"chip",label:t?.label,clickable:!0,deleteIcon:(0,i.jsx)(m.default,{"data-testid":"cancel-icon",onMouseDown:e=>e.stopPropagation()}),onDelete:()=>{let t=$.filter(t=>t!==e);I(t),g(t)},className:j.chip},t?.value)})}):(0,i.jsx)(f.A,{children:0===$.length?p||"":r.find(t=>t.value===e)?.label}),IconComponent:()=>R?(0,i.jsx)(A,{}):(0,i.jsx)(w,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[!!p&&!t&&(0,i.jsx)(d.A,{value:[],children:p}),b?r&&r.map(e=>(0,i.jsx)("option",{value:e.value,children:e.label},e.value)):r&&r.map(e=>(0,i.jsxs)(d.A,{value:e.value,children:[t&&(0,i.jsx)(a.A,{color:"primary",checked:$.includes(e.value)||!1,className:j.checkbox}),e.label]},e.value))]})]})})}},23413(e,t,r){"use strict";r.d(t,{Y:()=>I});var i=r(31085),n=r(77091),a=r(50509),o=r(19735),s=r(9720),l=r(64947),c=r(93453),d=r(29365),u=r(46423),p=r(5951),h=r(26343),g=r(28233),f=r(55197),m=r(58837),y=r(72501),v=r(5893),b=r(14041),w=r(23838),x=r(55940),A=r(60603),S=r(89332),k=r(89595);let E=(0,m.A)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),C=({icon:e})=>{let t=(0,n.n)(),r=e?t.getSystemIcon(e)??x.NT:x.NT;return(0,i.jsx)(r,{})},j=({link:e})=>(0,i.jsx)(A.N_,{to:e.url,children:e.title??e.url}),$=({item:e})=>(0,i.jsxs)(h.A,{button:!1,children:[(0,i.jsx)(u.A,{children:(0,i.jsx)(C,{icon:e.icon})}),(0,i.jsx)(p.A,{primary:e.title,secondary:e.links?.reduce((e,t,r)=>[...e,r>0&&(0,i.jsx)("br",{},r),(0,i.jsx)(j,{link:t},t.url)],[])})]});function I(e){let{t}=(0,k.i)(S.O),{title:r,items:n,children:u}=e,{items:p}=(0,w.l)(),[m,A]=(0,b.useState)(!1),[C,j]=(0,b.useState)(null),I=E(),R=(0,a.gf)(o.U).getOptionalConfig("app.support"),T=(0,v.A)(e=>e.breakpoints.down("sm")),O=e=>{j(e.currentTarget),A(!0)},L=()=>{A(!1)};return R?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{display:"flex",ml:1,children:T?(0,i.jsx)(d.A,{color:"primary",size:"small",onClick:O,"data-testid":"support-button","aria-label":"Support",children:(0,i.jsx)(x.NT,{})}):(0,i.jsx)(l.A,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:O,startIcon:(0,i.jsx)(x.NT,{}),children:t("supportButton.title")})}),(0,i.jsxs)(f.Ay,{"data-testid":"support-button-popover",open:m,anchorEl:C,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:L,children:[(0,i.jsxs)(g.A,{className:I.popoverList,autoFocusItem:!!C,children:[r&&(0,i.jsx)(h.A,{button:!1,alignItems:"flex-start",className:I.menuItem,children:(0,i.jsx)(y.A,{variant:"subtitle1",children:r})}),b.Children.map(u,(e,t)=>(0,i.jsx)(h.A,{button:!1,alignItems:"flex-start",className:I.menuItem,children:e},`child-${t}`)),(n??p).map((e,t)=>(0,i.jsx)($,{item:e},`item-${t}`))]}),(0,i.jsx)(c.A,{children:(0,i.jsx)(l.A,{color:"primary",onClick:L,"aria-label":"Close",children:t("supportButton.close")})})]})]}):null}},28499(e,t,r){"use strict";r.d(t,{X:()=>H});var i=r(31085),n=r(89595),a=r(25301),o=r(9720),s=r(29365),l=r(24568),c=r(58837),d=r(54917),u=r(72501),p=r(83313),h=r(89019),g=r(62461),f=r(68887),m=r(63798),y=r(64704),v=r(6774),b=r(75625),w=r(65859),x=r(45917),A=r(5416),S=r(33494),k=r(80113),E=r(26229),C=r(46802),j=r(45250),$=r(14041),I=r(89332),R=r(64947),T=r(48266);let O=(0,c.A)(e=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:e.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:e.spacing(7.5),justifyContent:"space-between",borderBottom:`1px solid ${e.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:e.spacing(2)}}}),{name:"BackstageTableFilters"}),L=e=>{let t=O(),{onChangeFilters:r}=e,{t:a}=(0,n.i)(I.O),[s,l]=(0,$.useState)({...e.selectedFilters}),[c,d]=(0,$.useState)(!1);return(0,$.useEffect)(()=>{r(s)},[s,r]),(0,i.jsxs)(o.A,{className:t.root,children:[(0,i.jsxs)(o.A,{className:t.header,children:[(0,i.jsx)(o.A,{className:t.value,children:a("table.filter.title")}),(0,i.jsx)(R.A,{color:"primary",onClick:()=>{l({}),d(e=>!e)},children:a("table.filter.clearAll")})]}),(0,i.jsx)(o.A,{className:t.filters,children:e.filters?.length&&e.filters.map(e=>(0,i.jsx)(T.w,{triggerReset:c,...e.element,selected:s[e.element.label],onChange:t=>l({...s,[e.element.label]:t})},e.element.label))})]})};var B=r(78467);function U(e){return(0,i.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:e.colSpan,children:(0,i.jsx)(o.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"15rem"},children:(0,i.jsx)(B.A,{size:"5rem"})})})})})}let N={Add:(0,$.forwardRef)((e,t)=>(0,i.jsx)(p.default,{...e,ref:t})),Check:(0,$.forwardRef)((e,t)=>(0,i.jsx)(g.default,{...e,ref:t})),Clear:(0,$.forwardRef)((e,t)=>(0,i.jsx)(y.default,{...e,ref:t})),Delete:(0,$.forwardRef)((e,t)=>(0,i.jsx)(v.default,{...e,ref:t})),DetailPanel:(0,$.forwardRef)((e,t)=>(0,i.jsx)(m.default,{...e,ref:t})),Edit:(0,$.forwardRef)((e,t)=>(0,i.jsx)(b.default,{...e,ref:t})),Export:(0,$.forwardRef)((e,t)=>(0,i.jsx)(E.default,{...e,ref:t})),Filter:(0,$.forwardRef)((e,t)=>(0,i.jsx)(w.default,{...e,ref:t})),FirstPage:(0,$.forwardRef)((e,t)=>(0,i.jsx)(A.default,{...e,ref:t})),LastPage:(0,$.forwardRef)((e,t)=>(0,i.jsx)(S.default,{...e,ref:t})),NextPage:(0,$.forwardRef)((e,t)=>(0,i.jsx)(m.default,{...e,ref:t})),PreviousPage:(0,$.forwardRef)((e,t)=>(0,i.jsx)(f.default,{...e,ref:t})),ResetSearch:(0,$.forwardRef)((e,t)=>(0,i.jsx)(y.default,{...e,ref:t})),Search:(0,$.forwardRef)((e,t)=>(0,i.jsx)(x.default,{...e,ref:t})),SortArrow:(0,$.forwardRef)((e,t)=>(0,i.jsx)(h.default,{...e,ref:t})),ThirdStateCheck:(0,$.forwardRef)((e,t)=>(0,i.jsx)(k.default,{...e,ref:t})),ViewColumn:(0,$.forwardRef)((e,t)=>(0,i.jsx)(C.default,{...e,ref:t}))};function P(e,t){let r=t.split("."),i=e[r[0]];for(let e=1;e<r.length&&void 0!==i;++e)i=i[r[e]];return i}let F=(0,l.A)(e=>({header:{padding:e.spacing(1,2,1,2.5),borderTop:`1px solid ${e.palette.grey.A100}`,borderBottom:`1px solid ${e.palette.grey.A100}`,fontWeight:e.typography.fontWeightBold,position:"static",wordBreak:"normal",textTransform:"uppercase"}}),{name:"BackstageTableHeader"})(a.MTableHeader),z=(0,l.A)(e=>({root:{padding:e.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:e.typography.fontWeightBold}},searchField:{paddingRight:e.spacing(2)}}),{name:"BackstageTableToolbar"})(a.MTableToolbar),M=(0,c.A)(e=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:e.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),D=(0,c.A)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"}),_={search:"",filtersOpen:!1,filters:{}};function q(e){let{toolbarRef:t,setSearch:r,hasFilters:a,selectedFiltersLength:l,toggleFilters:c}=e,{t:d}=(0,n.i)(I.O),p=M(),h=(0,$.useCallback)(t=>{e.onSearchChanged(t),r(t)},[e,r]);return a?(0,i.jsxs)(o.A,{className:p.root,children:[(0,i.jsxs)(o.A,{className:p.root,children:[(0,i.jsx)(s.A,{onClick:c,"aria-label":"filter list",children:(0,i.jsx)(w.default,{})}),(0,i.jsxs)(u.A,{className:p.title,children:[d("table.filter.title")," (",l,")"]})]}),(0,i.jsx)(z,{...e,ref:t,onSearchChanged:h})]}):(0,i.jsx)(z,{...e,ref:t,onSearchChanged:h})}function H(e){var t,r,s,l;let{data:c,columns:p,emptyContent:h,options:g,title:f,subtitle:m,localization:y,filters:v,initialState:b,onStateChange:w,components:x,isLoading:A,style:S,...k}=e,{t:E}=(0,n.i)(I.O),C=D(),R=(0,d.A)(),T={..._,...b},[O,B]=(0,$.useState)(T.filtersOpen),z=(0,$.useCallback)(()=>B(e=>!e),[B]),[M,H]=(0,$.useState)(T.filters),[V,W]=(0,$.useState)(T.search);(0,$.useEffect)(()=>{if(w){var e;w((e={search:V,filtersOpen:O,filters:M},(0,j.transform)(e,(e,t,r)=>{(0,j.isEqual)(t,_[r])||(e[r]=t)})))}},[V,O,M,w]);let K=(0,$.useCallback)(e=>p.find(t=>t.title===e)?.field,[p]),G=(0,$.useMemo)(()=>{if("function"==typeof c||!M)return c;let e=Object.values(M);return c&&e.flat().length?c.filter(e=>!!Object.entries(M).filter(([,e])=>!!e.length).every(([t,r])=>{let i=P(e,K(t));return Array.isArray(i)&&Array.isArray(r)?i.some(e=>r.includes(e)):Array.isArray(i)?i.includes(r):Array.isArray(r)?r.includes(i):i===r})):c},[c,M,K]),Y=Object.values(M).flat().length,Z=!!v?.length,Q=(0,$.useCallback)(e=>(0,i.jsx)(q,{setSearch:W,hasFilters:Z,selectedFiltersLength:Y,toggleFilters:z,...e}),[z,Z,Y,W]),J="function"!=typeof c&&0===c.length,X=p.length,ee=(0,$.useMemo)(()=>(function({columnCount:e,emptyContent:t,hasNoRows:r,loading:n}){return o=>n?(0,i.jsx)(U,{colSpan:e}):t&&r?(0,i.jsx)("tbody",{children:(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:e,children:t})})}):(0,i.jsx)(a.MTableBody,{...o})})({hasNoRows:J,emptyContent:h,columnCount:X,loading:A}),[J,h,X,A]);return(0,i.jsxs)(o.A,{className:C.root,children:[O&&c&&"function"!=typeof c&&v?.length&&(0,i.jsx)(L,{filters:(t=v,r=c,s=p,l=E,t.map(e=>{var t;let i,n;return{type:e.type,element:{placeholder:l("table.filter.placeholder"),label:e.column,multiple:"multiple-select"===e.type,items:[...(t=e.column,i=new Set,n=e=>{null!=e&&i.add(e)},r&&r.forEach(e=>{let r=P(e,s.find(e=>e.title===t)?.field);Array.isArray(r)?r.forEach(n):n(r)}),i)].sort().map(e=>({label:e,value:e}))}}})),selectedFilters:M,onChangeFilters:H}),(0,i.jsx)(a.default,{components:{Header:F,Body:ee,Toolbar:Q,...x},options:g,columns:p.map(e=>{let t=e.headerStyle??{},r=e.cellStyle||{};if(e.highlight)if(t.color=R.palette.textContrast,"object"==typeof r)r.fontWeight=R.typography.fontWeightBold;else{let e=r;r=(t,r,i)=>({...e(t,r,i),fontWeight:R.typography.fontWeightBold})}return{...e,headerStyle:t,cellStyle:r}}),icons:N,title:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.A,{variant:"h5",component:"h2",children:f}),m&&(0,i.jsx)(u.A,{color:"textSecondary",variant:"body1",children:m})]}),data:G,style:{width:"100%",...S},localization:{...y,body:{emptyDataSourceMessage:E("table.body.emptyDataSourceMessage"),...y?.body},pagination:{firstTooltip:E("table.pagination.firstTooltip"),labelDisplayedRows:E("table.pagination.labelDisplayedRows"),labelRowsSelect:E("table.pagination.labelRowsSelect"),lastTooltip:E("table.pagination.lastTooltip"),nextTooltip:E("table.pagination.nextTooltip"),previousTooltip:E("table.pagination.previousTooltip"),...y?.pagination},header:{actions:E("table.header.actions"),...y?.header},toolbar:{searchPlaceholder:E("table.toolbar.search"),searchTooltip:E("table.toolbar.search"),...y?.toolbar}},...k})]})}H.icons=Object.freeze(N)},87187(e,t,r){"use strict";r.d(t,{B:()=>w});var i=r(31085),n=r(268),a=r(58837),o=r(8973),s=r(29655),l=r(91567),c=r(42899),d=r(72501),u=r(9181),p=r(6924),h=r(11629);let g=(e,t)=>("light"===t.palette.type?n.e$:n.a)(t.palette[e].light,.6),f=(e,t)=>("light"===t.palette.type?n.a:n.e$)(t.palette[e].light,.9),m=(0,a.A)(e=>({root:{marginRight:e.spacing(1),fill:({severity:t})=>g(t,e)}})),y=({severity:e})=>{let t=m({severity:e});return(0,i.jsx)(u.default,{classes:t})},v=({severity:e})=>{let t=m({severity:e});return(0,i.jsx)(p.default,{classes:t})},b=(0,a.A)(e=>({panel:{backgroundColor:({severity:t})=>f(t,e),color:({severity:t})=>g(t,e),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:t})=>g(t,e),fontWeight:e.typography.fontWeightBold},markdownContent:{wordBreak:"break-word","& p":{display:"inline"}},message:{width:"100%",display:"block",color:({severity:t})=>g(t,e),backgroundColor:({severity:t})=>f(t,e)},details:{width:"100%",display:"block",color:e.palette.textContrast,backgroundColor:e.palette.background.default,border:`1px solid ${e.palette.border}`,padding:e.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"});function w(e){let{severity:t="warning",title:r,titleFormat:n,message:a,children:u,defaultExpanded:p}=e,g=b({severity:t}),f=t.charAt(0).toLocaleUpperCase("en-US")+t.slice(1)+(r?`: ${r}`:"");return(0,i.jsxs)(o.A,{defaultExpanded:p??!1,className:g.panel,role:"alert",children:[(0,i.jsxs)(s.A,{expandIcon:(0,i.jsx)(v,{severity:t}),className:g.summary,children:[(0,i.jsx)(y,{severity:t}),(0,i.jsx)(d.A,{className:g.summaryText,variant:"subtitle1",children:"markdown"===n?(0,i.jsx)(h.h,{content:f,className:g.markdownContent}):f})]}),(a||u)&&(0,i.jsx)(l.A,{children:(0,i.jsxs)(c.A,{container:!0,children:[a&&(0,i.jsx)(c.A,{item:!0,xs:12,children:(0,i.jsx)(d.A,{className:g.message,variant:"body1",children:a})}),u&&(0,i.jsx)(c.A,{item:!0,xs:12,className:g.details,children:u})]})})]})}},23838(e,t,r){"use strict";r.d(t,{l:()=>s});var i=r(50509),n=r(19735),a=r(89332),o=r(89595);function s(){let e=(0,i.Q2)().get(n.U),t=e?.getOptionalConfig("app.support"),r=(()=>{let{t:e}=(0,o.i)(a.O);return{url:"https://github.com/backstage/backstage/issues",items:[{title:e("supportConfig.default.title"),icon:"warning",links:[{title:e("supportConfig.default.linkTitle"),url:"https://github.com/backstage/backstage/blob/master/app-config.yaml"}]}]}})();return t?{url:t.getString("url"),items:t.getConfigArray("items").flatMap(e=>({title:e.getString("title"),icon:e.getOptionalString("icon"),links:(e.getOptionalConfigArray("links")??[]).flatMap(e=>({url:e.getString("url"),title:e.getOptionalString("title")??""}))}))}:r}},55940(e,t,r){"use strict";r.d(t,{Gg:()=>l,KG:()=>c,NT:()=>s,z9:()=>o});var i=r(31085),n=r(77091),a=r(27799);function o(e){let{id:t,Fallback:r=a.default,...o}=e,s=(0,n.n)().getSystemIcon(t)??r;return(0,i.jsx)(s,{...o})}function s(e){return(0,i.jsx)(o,{id:"help",...e})}function l(e){return(0,i.jsx)(o,{id:"star",...e})}function c(e){return(0,i.jsx)(o,{id:"unstarred",...e})}},84391(e,t,r){"use strict";r.d(t,{U:()=>l});var i=r(31085),n=r(58837),a=r(53373),o=r.n(a);let s=(0,n.A)(e=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:e.spacing(3),paddingBottom:e.spacing(3),paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function l(e){let{className:t,stretch:r,noPadding:n,children:a,...l}=e,c=s();return(0,i.jsx)("article",{...l,className:o()(c.root,t,{[c.stretch]:r,[c.noPadding]:n}),children:a})}},15179(e,t,r){"use strict";r.d(t,{d:()=>d});var i=r(31085),n=r(9720),a=r(58837),o=r(72501),s=r(93285);let l=({title:e,className:t})=>(0,i.jsx)(o.A,{variant:"h4",component:"h2",className:t,"data-testid":"header-title",children:e}),c=({description:e,className:t})=>e?(0,i.jsx)(o.A,{variant:"body2",className:t,"data-testid":"header-description",children:e}):null;function d(e){let t,{description:r,title:o,titleComponent:d,children:u,descriptionComponent:p,textAlign:h="left"}=e,g=(t={textAlign:h},(0,a.A)(e=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:e.spacing(2),textAlign:t.textAlign},leftItemsBox:{flex:"1 1 auto",minWidth:0,overflow:"visible"},rightItemsBox:{flex:"0 1 auto",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginLeft:e.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}))(),f=d||(0,i.jsx)(l,{title:o,className:g.title}),m=p||(0,i.jsx)(c,{description:r,className:g.description});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.m,{title:o}),(0,i.jsxs)(n.A,{className:g.container,children:[(0,i.jsxs)(n.A,{className:g.leftItemsBox,children:[f,m]}),(0,i.jsx)(n.A,{className:g.rightItemsBox,children:u})]})]})}},73462(e,t,r){"use strict";r.d(t,{M:()=>w});var i=r(31085),n=r(42899),a=r(58837),o=r(72501),s=r(18690),l=r(60603),c=r(23838);let d=r.p+"static/mic-drop.f832115f.svg",u=(0,a.A)(e=>({micDrop:{maxWidth:"60%",bottom:e.spacing(2),right:e.spacing(2),[e.breakpoints.down("xs")]:{maxWidth:"96%",bottom:"unset",right:"unset",margin:e.spacing(10,"auto",4)}}}),{name:"BackstageErrorPageMicDrop"}),p=()=>{let e=u();return(0,i.jsx)("img",{src:d,className:e.micDrop,alt:"Girl dropping mic from her hands"})};var h=r(14041),g=r(4809),f=r(89595),m=r(89332);let y=(0,a.A)(e=>({title:{paddingBottom:e.spacing(5),[e.breakpoints.down("xs")]:{paddingBottom:e.spacing(4),fontSize:e.typography.h3.fontSize}}}),{name:"BackstageErrorPageStackDetails"});function v(e){let{stack:t}=e,r=y(),{t:n}=(0,f.i)(m.O),[a,s]=(0,h.useState)(!1);return a?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{variant:"h6",className:r.title,children:(0,i.jsx)(l.N_,{to:"#",onClick:()=>s(!1),children:n("errorPage.showLessDetails")})}),(0,i.jsx)(g.z,{text:t,language:"text",showCopyCodeButton:!0,showLineNumbers:!0})]}):(0,i.jsx)(o.A,{variant:"h6",className:r.title,children:(0,i.jsx)(l.N_,{to:"#",onClick:()=>s(!0),children:n("errorPage.showMoreDetails")})})}let b=(0,a.A)(e=>({container:{padding:e.spacing(8),[e.breakpoints.down("xs")]:{padding:e.spacing(2)}},title:{paddingBottom:e.spacing(5),[e.breakpoints.down("xs")]:{paddingBottom:e.spacing(4),fontSize:e.typography.h3.fontSize}},subtitle:{color:e.palette.textSubtle}}),{name:"BackstageErrorPage"});function w(e){let{status:t="",statusMessage:r,additionalInfo:a,supportUrl:d,stack:u}=e,h=b(),g=(0,s.Zp)(),y=(0,c.l)(),{t:w}=(0,f.i)(m.O);return(0,i.jsxs)(n.A,{container:!0,className:h.container,children:[(0,i.jsxs)(n.A,{item:!0,xs:12,sm:8,md:4,children:[(0,i.jsx)(o.A,{"data-testid":"error",variant:"body1",className:h.subtitle,children:w("errorPage.subtitle",{status:t,statusMessage:r})}),(0,i.jsx)(o.A,{variant:"body1",className:h.subtitle,children:a}),(0,i.jsx)(o.A,{variant:"h2",className:h.title,children:w("errorPage.title")}),(0,i.jsxs)(o.A,{variant:"h6",className:h.title,children:[(0,i.jsx)(l.N_,{to:"#","data-testid":"go-back-link",onClick:()=>g(-1),children:w("errorPage.goBack")}),"... or please"," ",(0,i.jsx)(l.N_,{to:d||y.url,children:"contact support"})," if you think this is a bug."]}),u&&(0,i.jsx)(v,{stack:u})]}),(0,i.jsx)(p,{})]})}},66990(e,t,r){"use strict";r.d(t,{Y:()=>$});var i=r(31085),n=r(50509),a=r(19735),o=r(9720),s=r(42899),l=r(58837),c=r(71677),d=r(72501),u=r(93285),p=r(60603),h=r(38311),g=r(58007),f=r(8109),m=r(55197),y=r(24568),v=r(14041);let b=(0,y.A)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(d.A),w=(0,y.A)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(o.A),x=(0,y.A)({root:{fontStyle:"italic"}},{name:"BreadcrumbsCurrentPage"})(o.A);function A(e){let{children:t,...r}=e,[n,a]=(0,v.useState)(null),o=v.Children.toArray(t),[s,l,...c]=o,d=c.length?c.pop():o[o.length-1],u=o.length>3;return(0,i.jsxs)(v.Fragment,{children:[(0,i.jsxs)(h.A,{"aria-label":"breadcrumb",...r,children:[o.length>1&&(0,i.jsx)(w,{clone:!0,children:s}),o.length>2&&(0,i.jsx)(w,{clone:!0,children:l}),u&&(0,i.jsx)(b,{onClick:e=>{a(e.currentTarget)},children:"..."}),(0,i.jsx)(x,{children:d})]}),(0,i.jsx)(m.Ay,{open:!!n,anchorEl:n,onClose:()=>{a(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,i.jsx)(g.A,{children:c.map((e,t)=>(0,i.jsx)(f.A,{button:!0,children:(0,i.jsx)(w,{clone:!0,children:e})},t))})})]})}var S=r(96919);let k=(0,l.A)(e=>({header:{gridArea:"pageHeader",padding:e.spacing(3),width:"100%",boxShadow:e.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:e.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[e.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:e.page.fontColor,wordBreak:"break-word",fontSize:e.typography.h3.fontSize,marginBottom:0},subtitle:{color:e.page.fontColor,opacity:.8,display:"inline-block",marginTop:e.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:e.spacing(1),color:e.page.fontColor},breadcrumb:{color:e.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-e.spacing(.3),marginBottom:e.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-e.spacing(.3),marginBottom:e.spacing(.3)}}),{name:"BackstageHeader"}),E=({type:e,typeLink:t,classes:r,pageTitle:n})=>e?t?(0,i.jsxs)(A,{className:r.breadcrumb,children:[(0,i.jsx)(p.N_,{to:t,children:e}),(0,i.jsx)(d.A,{children:n})]}):(0,i.jsx)(d.A,{className:r.type,children:e}):null,C=({pageTitle:e,classes:t,tooltip:r})=>{let{contentRef:n}=(0,S.H)(),a=(0,i.jsx)(d.A,{ref:n,tabIndex:-1,className:t.title,variant:"h1",children:e});return r?(0,i.jsx)(c.Ay,{title:r,placement:"top-start",children:a}):a},j=({classes:e,subtitle:t})=>t?"string"!=typeof t?(0,i.jsx)(i.Fragment,{children:t}):(0,i.jsx)(d.A,{className:e.subtitle,variant:"subtitle2",component:"span",children:t}):null;function $(e){let{children:t,pageTitleOverride:r,style:l,subtitle:c,title:d,tooltip:p,type:h,typeLink:g}=e,f=k(),m=(0,n.gf)(a.U).getOptionalString("app.title")||"Backstage",y=r||d,v=d||r,b=`${y} | %s | ${m}`,w=`${y} | ${m}`;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.m,{titleTemplate:b,defaultTitle:w}),(0,i.jsxs)("header",{style:l,className:f.header,children:[(0,i.jsxs)(o.A,{className:f.leftItemsBox,children:[(0,i.jsx)(E,{classes:f,type:h,typeLink:g,pageTitle:v}),(0,i.jsx)(C,{classes:f,pageTitle:v,tooltip:p}),(0,i.jsx)(j,{classes:f,subtitle:c})]}),(0,i.jsx)(s.A,{container:!0,className:f.rightItemsBox,spacing:4,children:t})]})]})}},12439(e,t,r){"use strict";r.d(t,{Y:()=>c});var i=r(31085),n=r(58837),a=r(50868),o=r(53373),s=r.n(o);let l=(0,n.A)(e=>({root:{display:"grid",gridTemplateAreas:"'pageHeader pageHeader pageHeader' 'pageSubheader pageSubheader pageSubheader' 'pageNav pageContent pageSidebar'",gridTemplateRows:"max-content auto 1fr",gridTemplateColumns:"auto 1fr auto",overflowY:"auto",height:"100vh",[e.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function c(e){let{themeId:t,className:r,children:n}=e,o=l();return(0,i.jsx)(a.A,{theme:e=>({...e,page:e.getPageTheme({themeId:t})}),children:(0,i.jsx)("main",{className:s()(o.root,r),children:n})})}},17944(e,t,r){"use strict";r.d(t,{d:()=>o});var i=r(31085),n=r(66990),a=r(12439);function o(e){let{themeId:t,children:r,...o}=e;return(0,i.jsxs)(a.Y,{themeId:t,children:[(0,i.jsx)(n.Y,{...o}),r]})}},96919(e,t,r){"use strict";r.d(t,{G:()=>g,H:()=>f});var i=r(31085),n=r(9720),a=r(58837),o=r(5893),s=r(14041),l=r(28987);let c="sidebarPinState",d={getSidebarPinState(){let e;try{e=JSON.parse(window.localStorage.getItem(c)||"true")}catch{return!0}return!!e},setSidebarPinState:e=>window.localStorage.setItem(c,JSON.stringify(e))};var u=r(72214);let p=(0,a.A)(e=>({root:{width:"100%",transition:"padding-left 0.1s ease-out",isolation:"isolate",[e.breakpoints.up("sm")]:{paddingLeft:e=>e.isPinned?e.sidebarConfig.drawerWidthOpen:e.sidebarConfig.drawerWidthClosed},[e.breakpoints.down("xs")]:{paddingBottom:e=>e.sidebarConfig.mobileSidebarHeight},"@media print":{padding:"0px !important"}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),h=(0,s.createContext)({content:{contentRef:void 0}});function g(e){let[t,r]=(0,s.useState)(()=>d.getSidebarPinState()),{sidebarConfig:a}=(0,s.useContext)(l.yY),c=(0,s.useRef)(null),g=(0,s.useMemo)(()=>({content:{contentRef:c}}),[c]);(0,s.useEffect)(()=>{d.setSidebarPinState(t)},[t]);let f=(0,o.A)(e=>e.breakpoints.down("xs"),{noSsr:!0}),m=p({isPinned:t,sidebarConfig:a});return(0,i.jsx)(u.qj,{value:{isPinned:t,toggleSidebarPinState:()=>r(!t),isMobile:f},children:(0,i.jsx)(h.Provider,{value:g,children:(0,i.jsx)(n.A,{className:m.root,children:e.children})})})}function f(){let{content:e}=(0,s.useContext)(h);return{focusContent:(0,s.useCallback)(()=>{e?.contentRef?.current?.focus()},[e]),contentRef:e?.contentRef}}},72214(e,t,r){"use strict";r.d(t,{Ut:()=>u,qj:()=>d});var i=r(31085),n=r(9135),a=r(20549),o=r(14041);let s={isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1},l=(0,o.createContext)(s),c=(0,n.tK)("sidebar-pin-state-context");function d(e){let{children:t,value:r}=e;return(0,i.jsx)(l.Provider,{value:r,children:(0,i.jsx)(c.Provider,{value:(0,a.B)({1:r}),children:t})})}let u=()=>{let e=(0,o.useContext)(c),t=(0,o.useContext)(l);if(void 0===e)return t||s;let r=e.atVersion(1);if(void 0===r)throw Error("No context found for version 1.");return r}},28987(e,t,r){"use strict";r.d(t,{Rv:()=>a,U1:()=>c,hC:()=>n,i8:()=>s,yY:()=>l});var i=r(14041);let n={drawerWidthClosed:72,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:72,iconSize:24,iconPadding:24,selectedIndicatorWidth:3,userBadgePadding:18,userBadgeDiameter:36,mobileSidebarHeight:56},a=e=>({...n,...e,iconContainerWidth:n.drawerWidthClosed,iconSize:n.drawerWidthClosed-2*n.iconPadding,userBadgeDiameter:n.drawerWidthClosed-2*n.userBadgePadding}),o={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:n.defaultOpenDelayMs+200},s=e=>({...o,...e}),l=(0,i.createContext)({sidebarConfig:n,submenuConfig:o}),c=(0,i.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}})},89332(e,t,r){"use strict";r.d(t,{O:()=>i});let i=(0,r(97386).h)({id:"core-components",messages:{signIn:{title:"Sign In",loginFailed:"Login failed",customProvider:{title:"Custom User",subtitle:"Enter your own User ID and credentials.\n This selection will not be stored.",userId:"User ID",tokenInvalid:"Token is not a valid OpenID Connect JWT Token",continue:"Continue",idToken:"ID Token (optional)"},guestProvider:{title:"Guest",subtitle:"Enter as a Guest User.\n You will not have a verified identity, meaning some features might be unavailable.",enter:"Enter"}},skipToContent:"Skip to content",copyTextButton:{tooltipText:"Text copied to clipboard"},simpleStepper:{reset:"Reset",finish:"Finish",next:"Next",skip:"Skip",back:"Back"},errorPage:{subtitle:"ERROR {{status}}: {{statusMessage}}",title:"Looks like someone dropped the mic!",goBack:"Go back",showMoreDetails:"Show more details",showLessDetails:"Show less details"},emptyState:{missingAnnotation:{title:"Missing Annotation",actionTitle:"Add the annotation to your component YAML as shown in the highlighted example below:",readMore:"Read more"}},supportConfig:{default:{title:"Support Not Configured",linkTitle:"Add `app.support` config key"}},errorBoundary:{title:"Please contact {{slackChannel}} for help."},oauthRequestDialog:{title:"Login Required",authRedirectTitle:"This will trigger a http redirect to OAuth Login.",login:"Log in",rejectAll:"Reject All",message:"Sign-in to allow {{appTitle}} access to {{provider}} APIs and identities."},supportButton:{title:"Support",close:"Close"},table:{filter:{title:"Filters",clearAll:"Clear all",placeholder:"All results"},body:{emptyDataSourceMessage:"No records to display"},pagination:{firstTooltip:"First Page",labelDisplayedRows:"{from}-{to} of {count}",labelRowsSelect:"rows",lastTooltip:"Last Page",nextTooltip:"Next Page",previousTooltip:"Previous Page"},toolbar:{search:"Filter"},header:{actions:"Actions"}},alertDisplay:{message_one:"({{ count }} newer message)",message_other:"({{ count }} newer messages)"},autoLogout:{stillTherePrompt:{title:"Logging out due to inactivity",buttonText:"Yes! Don't log me out"}},dependencyGraph:{fullscreenTooltip:"Toggle fullscreen"},proxiedSignInPage:{title:"You do not appear to be signed in. Please try reloading the browser page."},logViewer:{searchField:{placeholder:"Search"}}}})},92829(e,t,r){"use strict";r.d(t,{Ig:()=>c,pn:()=>l});var i=r(31085),n=r(9135),a=r(20549),o=r(14041);let s=(0,n.tK)("analytics-context"),l=()=>{let e=(0,o.useContext)(s);if(void 0===e)return{routeRef:"unknown",pluginId:"root",extension:"App"};let t=e.atVersion(1);if(void 0===t)throw Error("No context found for version 1.");return t},c=e=>{let{attributes:t,children:r}=e,n={...l(),...t},o=(0,a.B)({1:n});return(0,i.jsx)(s.Provider,{value:o,children:r})}},62934(e,t,r){"use strict";r.d(t,{J:()=>a,t:()=>n});let i=(0,r(93147).Q)("core-plugin-api:analytics-tracker-events",()=>({mostRecentGatheredNavigation:void 0,mostRecentRoutableExtensionRender:void 0,beforeUnloadRegistered:!1})),n="_ROUTABLE-EXTENSION-RENDERED";class a{analyticsApi;context;constructor(e,t={routeRef:"unknown",pluginId:"root",extension:"App"}){this.analyticsApi=e,this.context=t,i.beforeUnloadRegistered||(addEventListener("beforeunload",()=>{i.mostRecentGatheredNavigation&&(this.analyticsApi.captureEvent({...i.mostRecentGatheredNavigation,...i.mostRecentRoutableExtensionRender}),i.mostRecentGatheredNavigation=void 0,i.mostRecentRoutableExtensionRender=void 0)},{once:!0,passive:!0}),i.beforeUnloadRegistered=!0)}setContext(e){this.context=e}captureEvent(e,t,{value:r,attributes:a}={}){let{_routeNodeType:o,...s}=this.context;if(e===n){i.mostRecentGatheredNavigation&&(i.mostRecentRoutableExtensionRender={context:{...s,extension:"App"}});return}if(i.mostRecentGatheredNavigation){try{this.analyticsApi.captureEvent({...i.mostRecentGatheredNavigation,...i.mostRecentRoutableExtensionRender})}catch(e){console.warn("Error during analytics event capture. %o",e)}i.mostRecentGatheredNavigation=void 0,i.mostRecentRoutableExtensionRender=void 0}if("navigate"===e&&"gathered"===o&&"root"===s.pluginId){i.mostRecentGatheredNavigation={action:e,subject:t,value:r,attributes:a,context:s};return}try{this.analyticsApi.captureEvent({action:e,subject:t,value:r,attributes:a,context:s})}catch(e){console.warn("Error during analytics event capture. %o",e)}}}},17323(e,t,r){"use strict";r.d(t,{s:()=>l});var i=r(92829),n=r(96876),a=r(50509),o=r(14041),s=r(62934);function l(){let e=(0,o.useRef)(null),t=(0,i.pn)(),r=function(){try{return(0,a.gf)(n.c)}catch{return{captureEvent:()=>{}}}}(),l=(null===e.current&&(e.current=new s.J(r)),e.current);return l.setContext(t),l}},96876(e,t,r){"use strict";r.d(t,{c:()=>i});let i=(0,r(44007).y)({id:"core.analytics"})},77091(e,t,r){"use strict";r.d(t,{n:()=>S});var i=r(31085),n=r(14041),a=r(9135);class o{static create(e){return new o(e.type,new Set(e.versions))}#e;#t;constructor(e,t){this.#e=e,this.#t=t}TPublic=void 0;TInternal=void 0;isType=e=>this.#r(e);toInternal=e=>{if(!this.#r(e))throw TypeError(`Invalid opaque type, expected '${this.#e}', but got '${this.#i(e)}'`);if(!this.#t.has(e.version)){let t=Array.from(this.#t).map(this.#n);t.length>1&&(t[t.length-1]=`or ${t[t.length-1]}`);let r=t.length>2?t.join(", "):t.join(" ");throw TypeError(`Invalid opaque type instance, got version ${this.#n(e.version)}, expected ${r}`)}return e};createInstance(e,t){return Object.assign(t,{$$type:this.#e,...e&&{version:e}})}#r(e){return null!==e&&"object"==typeof e&&e.$$type===this.#e}#i(e){return"object"!=typeof e?`<${typeof e}>`:null===e?"<null>":"$$type"in e?String(e.$$type):String(e)}#n=e=>e?`'${e}'`:"undefined"}let s=o.create({type:"@backstage/ExtensionDefinition",versions:["v1","v2"]}),l=o.create({type:"@backstage/FrontendPlugin",versions:["v1"]}),c=o.create({type:"@backstage/ExtensionInput",versions:[void 0]});function d(e,t,r){let i=r&&t?`${t}/${r}`:t||r;if(!i)throw Error(`Extension must declare an explicit namespace or name as it could not be resolved from context, kind=${e} namespace=${t} name=${r}`);return e?`${e}:${i}`:i}function u(e,t){let r,i=s.toInternal(e),{name:n,kind:a,namespace:o,override:l,attachTo:u,...p}=i,h=o??t?.namespace,g=d(a,h,n);return{...p,attachTo:(r=e=>{if(c.isType(e)){let{context:t}=c.toInternal(e);if(!t)throw Error("Invalid input object without a parent extension used as attachment point");return{id:d(t.kind,h,t.name),input:t.input}}if("relative"in e&&e.relative)return{id:d(e.relative.kind,h,e.relative.name),input:e.input};if("id"in e)return{id:e.id,input:e.input};throw Error("Invalid attachment point specification")},Array.isArray(u)?u.map(r):r(u)),$$type:"@backstage/Extension",version:i.version,id:g,toString:()=>`Extension{id=${g}}`}}var p=r(50509),h=r(44007);let g=(0,h.y)({id:"core.app-tree"}),f=(0,h.y)({id:"core.icons"}),m=o.create({versions:["v1"],type:"@backstage/SwappableComponentRef"}),y=(0,h.y)({id:"core.swappable-components"});function v(e){let t=t=>(0,i.jsx)("div",{"data-testid":e.id,...t}),r=m.createInstance("v1",{id:e.id,TProps:null,TExternalProps:null,toString:()=>`SwappableComponentRef{id=${e.id}}`,defaultComponent:(0,n.lazy)(async()=>({default:await e.loader?.()??t})),transformProps:e.transformProps}),a=e=>{let t=(()=>{try{return(0,p.gf)(y)}catch(e){return}})();if(!t){let t=m.toInternal(r),n=t.defaultComponent,a=t.transformProps?.(e)??e;return(0,i.jsx)(n,{...a})}let n=t.getComponent(r);return(0,i.jsx)(n,{...e})};return Object.assign(a,{ref:r}),a}let b=v({id:"core-progress"}),w=v({id:"core-not-found-error-page"}),x=v({id:"core-error-display",loader:()=>e=>(0,i.jsx)("div",{"data-testid":"core-error-display",children:e.error.message})}),A=(0,r(93147).Q)("legacy-plugin-compatibility-store",()=>new WeakMap),S=()=>{let e=function(){try{return(0,p.Q2)()}catch{return}}(),t=e?.get(g),r=e?.get(f),o=(0,a.qO)("app-context"),c=(0,n.useMemo)(()=>{let e;if(!t||!r)return;let{tree:n}=t.getTree(),a=({plugin:e,...t})=>(0,i.jsx)(x,{...t,plugin:e&&function e(t){let r=t.pluginId,i=[],n=new Map;for(let e of t.extensions??[]){let t=s.toInternal(e),a=u(e,{namespace:r});i.push(a),n.set(a.id,{...t,namespace:r})}if(i.length!==n.size){let e=i.map(e=>e.id),t=Array.from(new Set(e.filter((t,r)=>e.indexOf(t)!==r)));throw Error(`Plugin '${r}' provided duplicate extensions: ${t.join(", ")}`)}return l.createInstance("v1",{id:r,routes:t.routes??{},externalRoutes:t.externalRoutes??{},featureFlags:t.featureFlags??[],extensions:i,infoOptions:t.info,async info(){throw Error(`Attempted to load plugin info for plugin '${r}', but the plugin instance is not installed in an app`)},getExtension(e){let t=n.get(e);if(!t)throw Error(`Attempted to get non-existent extension '${e}' from plugin '${r}'`);return t},toString:()=>`Plugin{id=${r}}`,withOverrides(i){let n=new Set(i.extensions.map(e=>u(e,{namespace:r}).id)),a=(t.extensions??[]).filter(e=>!n.has(u(e,{namespace:r}).id));return e({...t,pluginId:r,extensions:[...a,...i.extensions],info:{...t.info,...i.info}})}})}({pluginId:e.getId()})});return{getPlugins(){if(e)return e;let t=new Set;for(let e of n.nodes.values()){let r=e.spec.plugin;r&&t.add(function(e){let t=A.get(e);if(t)return t;let r=()=>{throw Error("Not implemented in legacy plugin compatibility layer")};return t={getId:()=>e.id,get routes(){return{}},get externalRoutes(){return{}},getApis:r,getFeatureFlags:r,provide:r},A.set(e,t),t}(r))}return e=Array.from(t)},getSystemIcon:e=>r.getIcon(e),getSystemIcons:()=>Object.fromEntries(r.listIconKeys().map(e=>[e,r.getIcon(e)])),getComponents:()=>({NotFoundErrorPage:w,BootErrorPage(){throw Error("The BootErrorPage app component should not be accessed by plugins")},Progress:b,Router(){throw Error("The Router app component should not be accessed by plugins")},ErrorBoundaryFallback:a})}},[t,r]);if(c)return c;if(!o)throw Error("App context is not available");let d=o.atVersion(1);if(!d)throw Error("AppContext v1 not available");return d}},65605(e,t,r){"use strict";r.d(t,{E:()=>o,h:()=>a});let i=(0,r(93147).Q)("component-data-store",()=>new WeakMap),n="__backstage_data";function a(e,t,r){let a=e[n]??i.get(e);if(a||(Object.defineProperty(e,n,{enumerable:!1,configurable:!0,writable:!1,value:a={map:new Map}}),i.set(e,a)),a.map.has(t)){let r=e.displayName||e.name;throw Error(`Attempted to attach duplicate data "${t}" to component "${r}"`)}a.map.set(t,r)}function o(e,t){if(!e)return;let r=e.type;if(!r)return;let a=r[n]??i.get(r);if(a)return a.map.get(t)}},18275(e,t,r){"use strict";r.d(t,{NC:()=>g,QJ:()=>h,zZ:()=>f});var i=r(31085),n=r(14041),a=r(17323),o=r(92829),s=r(77091),l=r(16647),c=r(65605);class d extends n.Component{static getDerivedStateFromError(e){return{error:e}}state={error:void 0};handleErrorReset=()=>{this.setState({error:void 0})};render(){let{error:e}=this.state,{app:t,plugin:r}=this.props,{ErrorBoundaryFallback:n}=t.getComponents();return e?(0,i.jsx)(n,{error:e,resetError:this.handleErrorReset,plugin:r}):this.props.children}}var u=r(62934),p=r(55963);function h(e){let{component:t,mountPoint:r,name:o}=e;return f({component:{lazy:()=>t().then(e=>{let t=t=>{let o=(0,a.s)();try{(0,l.S)(r)}catch(e){if("object"==typeof e&&null!==e){let{message:t}=e;if("string"==typeof t&&t.startsWith("No path for "))throw Error(`Routable extension component with mount point ${r} was not discovered in the app element tree. Routable extension components may not be rendered by other components and must be directly available as an element within the App provider component.`)}throw e}return(0,n.useEffect)(()=>{o.captureEvent(u.t,"")},[o]),(0,i.jsx)(e,{...t})},s=o||e.displayName||e.name||"LazyComponent";return t.displayName=`RoutableExtension(${s})`,t})},data:{"core.mountPoint":r},name:o})}function g(e){let{component:t,name:r}=e;return f({component:t,name:r})}function f(e){let t,{data:r={},name:a}=e;if(a||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name."),"lazy"in e.component){let r=e.component.lazy;t=(0,n.lazy)(()=>r().then(e=>({default:e}),e=>{let t=a?` of the ${a} extension`:"";throw new p.HK(`Failed lazy loading${t}, try to reload the page`,e)}))}else t=e.component.sync;let l=a||t.displayName||t.name||"Component";return{expose(e){let u=l=>{let c=(0,s.n)(),{Progress:u}=c.getComponents(),p=r?.["core.mountPoint"];return(0,i.jsx)(n.Suspense,{fallback:(0,i.jsx)(u,{}),children:(0,i.jsx)(d,{app:c,plugin:e,children:(0,i.jsx)(o.Ig,{attributes:{pluginId:e.getId(),...a&&{extension:a},...p&&{routeRef:p.id}},children:(0,i.jsx)(t,{...l})})})})};for(let[t,i]of((0,c.h)(u,"core.plugin",e),(0,c.h)(u,"core.extensionName",a),Object.entries(r)))(0,c.h)(u,t,i);return u.displayName=`Extension(${l})`,u}}}},62335(e,t,r){"use strict";r.d(t,{O:()=>c});var i=r(14041),n=r(65605),a=r(50509),o=r(70334);function s(e,t,r,a){return i.Children.toArray(e).flatMap(e=>{if(!(0,i.isValidElement)(e))return[];if(e.type===i.Fragment)return s(e.props.children,t,r,a);if((0,n.E)(e,"core.featureFlagged")){let i=e.props;return("with"in i?t.isActive(i.with):!t.isActive(i.without))?s(e.props.children,t,r,a):[]}if(void 0===r||r(e))return[e];if(a)throw Error(a);return s(e.props.children,t,r,a)})}class l{node;featureFlagsApi;constructor(e,t){this.node=e,this.featureFlagsApi=t}selectByComponentData(e){return new l(s(this.node,this.featureFlagsApi,t=>void 0!==(0,n.E)(t,e.key),e.withStrictError),this.featureFlagsApi)}findComponentData(e){return s(this.node,this.featureFlagsApi,t=>void 0!==(0,n.E)(t,e.key)).map(t=>(0,n.E)(t,e.key)).filter(e=>void 0!==e)}getElements(){return s(this.node,this.featureFlagsApi)}}function c(e,t,r=[]){let n=new l(e,(0,a.gf)(o.B));return(0,i.useMemo)(()=>t(n),[e,...r])}},29894(e,t,r){"use strict";r.d(t,{i:()=>n});class i{config;constructor(e){this.config=e}getId(){return this.config.id}getApis(){return this.config.apis??[]}getFeatureFlags(){return this.config.featureFlags?.slice()??[]}get routes(){return this.config.routes??{}}get externalRoutes(){return this.config.externalRoutes??{}}provide(e){return e.expose(this)}toString(){return`plugin{${this.config.id}}`}}function n(e){return new i(e)}},96296(e,t,r){"use strict";r.d(t,{H:()=>a});var i=r(47253);class n{[i.b]="absolute";id;params;constructor(e,t){this.id=e,this.params=t}get title(){return this.id}toString(){return this.#a?`routeRef{id=${this.#a},legacyId=${this.id}}`:`routeRef{type=absolute,id=${this.id}}`}$$type="@backstage/RouteRef";version="v1";T=void 0;alias=void 0;#a=void 0;getParams(){return this.params}getDescription(){return this.#a?this.#a:this.id}setId(e){if(!e)throw Error("RouteRef id must be a non-empty string");if(this.#a&&this.#a!==e)throw Error(`RouteRef was referenced twice as both '${this.#a}' and '${e}'`);this.#a=e}}function a(e){return new n(e.id,e.params??[])}},47253(e,t,r){"use strict";r.d(t,{b:()=>i});let i=(0,r(93147).Q)("route-ref-type",()=>Symbol("route-ref-type"))},16647(e,t,r){"use strict";r.d(t,{S:()=>l});var i=r(14041),n=r(18690),a=r(9135),o=r(50509);let s=(0,r(44007).y)({id:"core.route-resolution"});function l(e){let{pathname:t}=(0,n.zy)(),r=function(){try{return(0,o.gf)(s)}catch{return}}(),l=(0,a.qO)("routing-context"),c=l?.atVersion(1),d=(0,i.useMemo)(()=>{if(!r)return null;try{return r?.resolve(e,{sourcePath:t})}catch{return null}},[r,e,t]),u=(0,i.useMemo)(()=>c&&c.resolve(e,{pathname:t}),[c,e,t]);if(null!==d){let t="optional"in e&&e.optional;if(!d&&!t)throw Error(`No path for ${e}`);return d}if(!l)throw Error("Routing context is not available");if(!c)throw Error("RoutingContext v1 not available");let p="optional"in e&&e.optional;if(!u&&!p)throw Error(`No path for ${e}`);return u}},33947(e,t,r){"use strict";r.d(t,{o:()=>a});var i=r(63719);async function n(e){try{let t=await e.text();if(t){if(e.headers.get("content-type")?.startsWith("application/json"))try{let e=JSON.parse(t);if(e.error&&e.response)return e}catch{}return{error:{name:"Error",message:`Request failed with status ${e.status} ${e.statusText}, ${t}`},response:{statusCode:e.status}}}}catch{}return{error:{name:"Error",message:`Request failed with status ${e.status} ${e.statusText}`},response:{statusCode:e.status}}}class a extends Error{response;body;cause;statusCode;statusText;static async fromResponse(e){let t=await n(e),r=t.response.statusCode||e.status,o=e.statusText,s=`Request failed with ${r} ${o}`,l=(0,i.cy)(t.error);return new a({message:s,response:e,data:t,cause:l,statusCode:r,statusText:o})}constructor(e){super(e.message),this.name="ResponseError",this.response=e.response,this.body=e.data,this.cause=e.cause,this.statusCode=e.statusCode,this.statusText=e.statusText}}},51700(e,t,r){"use strict";function i(e){return!("object"!=typeof e||null===e||Array.isArray(e))&&"string"==typeof e.name&&""!==e.name&&"string"==typeof e.message}r.d(t,{b:()=>i})},55963(e,t,r){"use strict";r.d(t,{HK:()=>l,EH:()=>s,m_:()=>o});var i=r(51700),n=r(63719);class a extends Error{cause;constructor(e,t){let r=e;if(void 0!==t){const e=(0,n.M5)(t);r?r+=`; caused by ${e}`:r=`caused by ${e}`}super(r),Error.captureStackTrace?.(this,this.constructor),this.name&&"Error"!==this.name||"Error"!==this.constructor.name&&(this.name=this.constructor.name),this.cause=(0,i.b)(t)?t:void 0}}class o extends a{name="NotFoundError"}class s extends a{name="NotImplementedError"}class l extends a{constructor(e,t){super(e,t),this.name=(0,i.b)(t)?t.name:"Error"}}},63719(e,t,r){"use strict";r.d(t,{M5:()=>o,cy:()=>a});var i=r(69655),n=r(51700);function a(e){let t=(0,i.deserializeError)(e);return e.stack||(t.stack=void 0),t}function o(e){if((0,n.b)(e)){let t=String(e);return"[object Object]"!==t?t:`${e.name}: ${e.message}`}return`unknown error '${e}'`}},50375(e,t,r){"use strict";r.d(t,{k:()=>i});let i=(0,r(44007).y)({id:"core.alert"})},19735(e,t,r){"use strict";r.d(t,{U:()=>i});let i=(0,r(44007).y)({id:"core.config"})},71531(e,t,r){"use strict";r.d(t,{I:()=>i});let i=(0,r(44007).y)({id:"core.discovery"})},151(e,t,r){"use strict";r.d(t,{m:()=>i});let i=(0,r(44007).y)({id:"core.error"})},70334(e,t,r){"use strict";r.d(t,{B:()=>a,S:()=>n});var i=r(44007);let n={None:0,Active:1},a=(0,i.y)({id:"core.featureflags"})},76637(e,t,r){"use strict";r.d(t,{a:()=>i});let i=(0,r(44007).y)({id:"core.fetch"})},48203(e,t,r){"use strict";r.d(t,{K:()=>i});let i=(0,r(44007).y)({id:"core.identity"})},37860(e,t,r){"use strict";r.d(t,{J:()=>i});let i=(0,r(44007).y)({id:"core.translation"})},44007(e,t,r){"use strict";r.d(t,{y:()=>n});class i{config;constructor(e){if(this.config=e,!e.id.split(".").flatMap(e=>e.split("-")).every(e=>e.match(/^[a-z][a-z0-9]*$/)))throw Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${e.id}'`)}get id(){return this.config.id}get T(){throw Error(`tried to read ApiRef.T of ${this}`)}toString(){return`apiRef{${this.config.id}}`}}function n(e){return new i(e)}},33141(e,t,r){"use strict";function i(e,t){return"id"in e?{api:e,deps:{},factory:()=>t}:e}r.d(t,{b:()=>i})},50509(e,t,r){"use strict";r.d(t,{Q2:()=>a,gf:()=>o}),r(31085);var i=r(9135),n=r(55963);function a(){let e=(0,i.qO)("api-context");if(!e)throw new n.EH("API context is not available");let t=e.atVersion(1);if(!t)throw new n.EH("ApiContext v1 not available");return t}function o(e){let t=a().get(e);if(!t)throw new n.EH(`No implementation available for ${e}`);return t}},97386(e,t,r){"use strict";r.d(t,{h:()=>a,v:()=>o});var i=r(78859);class n{#o;#s;#l;constructor(e){this.#o=e.id,this.#s=function(e){let t=[];return!function e(r,i){for(let[n,a]of Object.entries(r))"string"==typeof a?t.push([i+n,a]):e(a,`${i}${n}.`)}(e,""),Object.fromEntries(t)}(e.messages)}$$type="@backstage/TranslationRef";version="v1";get id(){return this.#o}get T(){throw Error("Not implemented")}getDefaultMessages(){return this.#s}setDefaultResource(e){this.#l=e}getDefaultResource(){return this.#l}toString(){return`TranslationRef{id=${this.id}}`}}function a(e){let t=new n(e);return e.translations&&t.setDefaultResource((0,i.o)({ref:t,translations:e.translations})),t}function o(e){if("@backstage/TranslationRef"!==e.$$type)throw Error(`Invalid translation ref, bad type '${e.$$type}'`);if("v1"!==e.version)throw Error(`Invalid translation ref, bad version '${e.version}'`);return e}},78859(e,t,r){"use strict";function i(e){if("@backstage/TranslationResource"!==e.$$type)throw Error(`Invalid translation resource, bad type '${e.$$type}'`);if("v1"!==e.version)throw Error(`Invalid translation resource, bad version '${e.version}'`);return e}function n(e){return{$$type:"@backstage/TranslationResource",version:"v1",id:e.ref.id,resources:Object.entries(e.translations).map(([e,t])=>({language:e,loader:()=>t().then(e=>{let t=e.default;return{messages:t?.$$type==="@backstage/TranslationMessages"?t.messages:t}})}))}}r.d(t,{Y:()=>i,o:()=>n})},89595(e,t,r){"use strict";r.d(t,{i:()=>l});var i=r(14041),n=r(50509),a=r(151),o=r(37860);let s=new WeakSet,l=e=>{let t=(0,n.gf)(a.m),r=(0,n.gf)(o.J),[l,c]=(0,i.useState)(()=>r.getTranslation(e)),d=(0,i.useMemo)(()=>r.translation$(e),[r,e]),u=(0,i.useCallback)(r=>{if(!s.has(e)){let i=`Failed to load translation resource '${e.id}'; caused by ${r}`;console.error(i),t.post(Error(i)),s.add(e)}},[t,e]);(0,i.useEffect)(()=>{let e=d.subscribe({next(e){e.ready&&c(e)},error(e){u(e)}});return()=>{e.unsubscribe()}},[d,u]);let p=(0,i.useRef)(!0);if((0,i.useEffect)(()=>{p.current?p.current=!1:c(r.getTranslation(e))},[r,e]),!l.ready)throw new Promise(e=>{let t=d.subscribe({next(r){r.ready&&(t.unsubscribe(),e())},error(r){t.unsubscribe(),u(r),e()}})});return{t:l.t}}},57891(e,t,r){"use strict";r.d(t,{L:()=>W,Y:()=>K});var i=r(85942);let n="amazonaws.com";function a(e){let t,r,i=e.getOptionalString("endpoint"),a=e.getOptionalBoolean("s3ForcePathStyle")??!1;if(i){try{let e=new URL(i);t=e.host,r=e.pathname}catch{throw Error(`invalid awsS3 integration config, endpoint '${i}' is not a valid URL`)}if("/"!==r)throw Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${i}'`)}else t=n;let o=e.getOptionalString("accessKeyId"),s=e.getOptionalString("secretAccessKey")?.trim();return{host:t,endpoint:i,s3ForcePathStyle:a,accessKeyId:o,secretAccessKey:s,roleArn:e.getOptionalString("roleArn"),externalId:e.getOptionalString("externalId")}}class o{integrationConfig;static factory=({config:e})=>{let t,r=((t=(e.getOptionalConfigArray("integrations.awsS3")??[]).map(a)).some(e=>e.host===n)||t.push({host:n}),t);return(0,i.oS)(r.map(e=>new o(e)),e=>e.config.host)};get type(){return"awsS3"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}constructor(e){this.integrationConfig=e}resolveUrl(e){return(0,i.ku)(e)}resolveEditUrl(e){return e}}function s(e){let t=e.getOptionalString("accessKeyId"),r=e.getOptionalString("secretAccessKey")?.trim(),i=e.getOptionalString("roleArn"),n=e.getOptionalString("externalId"),a=e.getString("region");return{host:e.getOptionalString("host")||`${a}.console.aws.amazon.com`,accessKeyId:t,secretAccessKey:r,roleArn:i,externalId:n,region:a}}class l{integrationConfig;static factory=({config:e})=>{let t=(e.getOptionalConfigArray("integrations.awsCodeCommit")??[]).map(s);return(0,i.oS)(t.map(e=>new l(e)),e=>e.config.host)};get type(){return"awsCodeCommit"}get config(){return this.integrationConfig}get title(){return this.integrationConfig.host}constructor(e){this.integrationConfig=e}resolveUrl(e){return(0,i.ku)(e)}resolveEditUrl(e){var t,r,i;let n=new URL(e).pathname.match(/^\/codesuite\/codecommit\/repositories\/([^\/]+)\//);if(!n)throw Error("");let[,a]=n;return t=e,r=a,i="edit",t.replace(RegExp(`/codesuite/codecommit/repositories/${r}/(browse|files/edit)/`),`/codesuite/codecommit/repositories/${r}/${"edit"===i?"files/edit":i}/`)}}class c{static fromRepoUrl(e){let t,r,i,n,a=new URL(e),o=a.pathname.split("/").map(e=>decodeURIComponent(e));if("_git"===o[2]?(t=o[1],r=i=o[3]):"_git"===o[3]?(t=o[1],r=o[2],i=o[4]):"_git"===o[4]&&(t=`${o[1]}/${o[2]}`,r=o[3],i=o[5]),!t||!r||!i)throw Error("Azure URL must point to a git repository");let s=a.searchParams.get("path")??void 0,l=a.searchParams.get("version");if(l){if("GB"!==l.slice(0,2))throw Error("Azure URL version must point to a git branch");n=l.slice(2)}return new c(a.origin,t,r,i,s,n)}#c;#d;#u;#p;#h;#g;constructor(e,t,r,i,n,a){this.#c=e,this.#d=t,this.#u=r,this.#p=i,this.#h=n,this.#g=a}#f=(...e)=>{let t=new URL(this.#c);return t.pathname=e.map(e=>encodeURIComponent(e)).join("/"),t};toRepoUrl(){let e;return e=this.#u===this.#p?this.#f(this.#d,"_git",this.#p):this.#f(this.#d,this.#u,"_git",this.#p),this.#h&&e.searchParams.set("path",this.#h),this.#g&&e.searchParams.set("version","GB"+this.#g),e.toString()}toFileUrl(){if(!this.#h)throw Error("Azure URL must point to a specific path to be able to download a file");let e=this.#f(this.#d,this.#u,"_apis","git","repositories",this.#p,"items");return e.searchParams.set("api-version","6.0"),e.searchParams.set("path",this.#h),this.#g&&e.searchParams.set("version",this.#g),e.toString()}toArchiveUrl(){let e=this.#f(this.#d,this.#u,"_apis","git","repositories",this.#p,"items");return e.searchParams.set("recursionLevel","full"),e.searchParams.set("download","true"),e.searchParams.set("api-version","6.0"),this.#h&&e.searchParams.set("scopePath",this.#h),this.#g&&e.searchParams.set("version",this.#g),e.toString()}toCommitsUrl(){let e=this.#f(this.#d,this.#u,"_apis","git","repositories",this.#p,"commits");return e.searchParams.set("api-version","6.0"),this.#g&&e.searchParams.set("searchCriteria.itemVersion.version",this.#g),e.toString()}getOwner(){return this.#d}getProject(){return this.#u}getRepo(){return this.#p}getPath(){return this.#h}getRef(){return this.#g}}let d="dev.azure.com",u=["clientId","clientSecret","managedIdentityClientId","tenantId","personalAccessToken"],p=new Map([["ClientSecret",["clientId","clientSecret","tenantId"]],["ManagedIdentity",["clientId"]],["ManagedIdentityClientAssertion",["clientId","managedIdentityClientId","tenantId"]],["PersonalAccessToken",["personalAccessToken"]]]);function h(e){for(let t of p.entries()){let[r,i]=t,n=u.filter(e=>!i.includes(e));if(i.every(t=>void 0!==e[t])&&n.every(t=>void 0===e[t]))return{kind:r,organizations:e.organizations,...i.reduce((t,r)=>(t[r]=e[r],t),{})}}throw Error("is not a valid credential")}function g(e){let t,r=e.getOptionalString("host")??d,n=e.getOptionalConfigArray("credentials")?.map(e=>({organizations:e.getOptionalStringArray("organizations"),personalAccessToken:e.getOptionalString("personalAccessToken")?.trim(),tenantId:e.getOptionalString("tenantId")?.trim(),clientId:e.getOptionalString("clientId")?.trim(),clientSecret:e.getOptionalString("clientSecret")?.trim(),managedIdentityClientId:e.getOptionalString("managedIdentityClientId")?.trim()})),a=e.getOptionalString("token")?.trim();if(void 0!==e.getOptional("credential")&&void 0!==e.getOptional("credentials"))throw Error("Invalid Azure integration config, 'credential' and 'credentials' cannot be used together. Use 'credentials' instead.");if(void 0!==e.getOptional("token")&&void 0!==e.getOptional("credentials"))throw Error("Invalid Azure integration config, 'token' and 'credentials' cannot be used together. Use 'credentials' instead.");if(void 0!==a){let e=[{personalAccessToken:a}];n=n?.concat(e)??e}if(void 0!==e.getOptional("credential")){let t=[{organizations:e.getOptionalStringArray("credential.organizations"),token:e.getOptionalString("credential.token")?.trim(),tenantId:e.getOptionalString("credential.tenantId"),clientId:e.getOptionalString("credential.clientId"),clientSecret:e.getOptionalString("credential.clientSecret")?.trim()}];n=n?.concat(t)??t}if(!(0,i.HO)(r))throw Error(`Invalid Azure integration config, '${r}' is not a valid host`);if(void 0!==n){let e=n?.reduce((e,t,r)=>{let i;try{h(t)}catch(e){i=e.message}return void 0!==i&&e.push(`credential at position ${r+1} ${i}`),e},Array.of()).concat(Object.entries(n.filter(e=>void 0!==e.organizations&&e.organizations.length>0).reduce((e,t,r)=>(t.organizations?.forEach(t=>{e[t]||(e[t]=[]),e[t].push(r+1)}),e),{})).filter(([e,t])=>t.length>1).reduce((e,[t,r])=>(e.push(`organization ${t} is specified multiple times in credentials at positions ${r.slice(0,r.length-1).join(", ")} and ${r[r.length-1]}`),e),Array.of()));if(e?.length>0)throw Error(`Invalid Azure integration config for ${r}: ${e.join("; ")}`);if((t=n.map(e=>h(e))).some(e=>"PersonalAccessToken"!==e.kind)&&r!==d)throw Error(`Invalid Azure integration config for ${r}, only personal access tokens can be used with hosts other than ${d}`);if(t.filter(e=>void 0===e.organizations||0===e.organizations.length).length>1)throw Error(`Invalid Azure integration config for ${r}, you cannot specify multiple credentials without organizations`)}return{host:r,credentials:t,commitSigningKey:e.getOptionalString("commitSigningKey")}}class f{integrationConfig;static factory=({config:e})=>{let t,r=((t=(e.getOptionalConfigArray("integrations.azure")??[]).map(g)).some(e=>e.host===d)||t.push({host:d}),t);return(0,i.oS)(r.map(e=>new f(e)),e=>e.config.host)};constructor(e){this.integrationConfig=e}get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){let{url:t,base:r}=e;if((0,i.AY)(t))return t;try{let i=c.fromRepoUrl(r),n=new URL(r),a=new URL(`https://a.com${i.getPath()??""}`),o=new URL(t,a).pathname;return n.searchParams.set("path",o),e.lineNumber&&(n.searchParams.set("line",String(e.lineNumber)),n.searchParams.set("lineEnd",String(e.lineNumber+1)),n.searchParams.set("lineStartColumn","1"),n.searchParams.set("lineEndColumn","1")),n.toString()}catch{return new URL(t,r).toString()}}resolveEditUrl(e){return e}}var m=r(52536),y=r.n(m);let v="bitbucket.org",b="https://api.bitbucket.org/2.0";function w(e){let t=e.getOptionalString("username"),r=e.getOptionalString("appPassword")?.trim(),i=e.getOptionalString("token"),n=e.getOptionalString("clientId")?.trim(),a=e.getOptionalString("clientSecret")?.trim();if(t&&!i&&!r)throw Error("Bitbucket Cloud integration must be configured with as username and either a token or an appPassword.");if(n&&!a||a&&!n)throw Error("Bitbucket Cloud integration has incomplete OAuth configuration. Both clientId and clientSecret are required.");return{host:v,apiBaseUrl:b,username:t,appPassword:r,token:i,clientId:n,clientSecret:a,commitSigningKey:e.getOptionalString("commitSigningKey")}}class x{integrationConfig;static factory=({config:e})=>{let t,r=(0===(t=(e.getOptionalConfigArray("integrations.bitbucketCloud")??[]).map(w)).length&&t.push({host:v,apiBaseUrl:b}),t);return(0,i.oS)(r.map(e=>new x(e)),e=>e.config.host)};constructor(e){this.integrationConfig=e}get type(){return"bitbucketCloud"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){let t=(0,i.ku)(e);if(e.lineNumber){let r=new URL(t);return r.hash=`lines-${e.lineNumber}`,r.toString()}return t}resolveEditUrl(e){let t=y()(e),r=new URL(e);return r.searchParams.set("mode","edit"),r.searchParams.set("at",t.ref),r.toString()}}var A=r(45250);let S="bitbucket.org",k="https://api.bitbucket.org/2.0";function E(e){let t=e.getOptionalString("host")??S,r=e.getOptionalString("apiBaseUrl"),n=e.getOptionalString("token")?.trim(),a=e.getOptionalString("username"),o=e.getOptionalString("appPassword")?.trim();if(!(0,i.HO)(t))throw Error(`Invalid Bitbucket integration config, '${t}' is not a valid host`);return r=r?(0,A.trimEnd)(r,"/"):t===S?k:`https://${t}/rest/api/1.0`,{host:t,apiBaseUrl:r,token:n,username:a,appPassword:o,commitSigningKey:e.getOptionalString("commitSigningKey")}}class C{integrationConfig;static factory=({config:e})=>{let t,r=((t=(e.getOptionalConfigArray("integrations.bitbucket")??[...e.getOptionalConfigArray("integrations.bitbucketCloud")??[],...e.getOptionalConfigArray("integrations.bitbucketServer")??[]]).map(E)).some(e=>e.host===S)||t.push({host:S,apiBaseUrl:k}),t);return(0,i.oS)(r.map(e=>new C(e)),e=>e.config.host)};constructor(e){this.integrationConfig=e}get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){let t=(0,i.ku)(e);if(!e.lineNumber)return t;let r=new URL(t);return"bitbucket.org"===this.integrationConfig.host?r.hash=`lines-${e.lineNumber}`:r.hash=`${e.lineNumber}`,r.toString()}resolveEditUrl(e){let t=y()(e),r=new URL(e);return r.searchParams.set("mode","edit"),r.searchParams.set("spa","0"),r.searchParams.set("at",t.ref),r.toString()}}function j(e){let t=e.getString("host"),r=e.getOptionalString("apiBaseUrl"),n=e.getOptionalString("token")?.trim(),a=e.getOptionalString("username"),o=e.getOptionalString("password");if(!(0,i.HO)(t))throw Error(`Invalid Bitbucket Server integration config, '${t}' is not a valid host`);return r=r?(0,A.trimEnd)(r,"/"):`https://${t}/rest/api/1.0`,{host:t,apiBaseUrl:r,token:n,username:a,password:o,commitSigningKey:e.getOptionalString("commitSigningKey")}}class ${integrationConfig;static factory=({config:e})=>{let t=(e.getOptionalConfigArray("integrations.bitbucketServer")??[]).map(j);return(0,i.oS)(t.map(e=>new $(e)),e=>e.config.host)};constructor(e){this.integrationConfig=e}get type(){return"bitbucketServer"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){let t=(0,i.ku)(e);if(e.lineNumber){let r=new URL(t);return r.hash=e.lineNumber.toString(),r.toString()}return t}resolveEditUrl(e){return e.includes("?")?e.substring(0,e.indexOf("?")):e}}function I(e){let t=e.getString("host"),r=e.getOptionalString("baseUrl"),n=e.getOptionalString("cloneUrl"),a=e.getOptionalBoolean("disableEditUrl"),o=e.getString("gitilesBaseUrl"),s=e.getOptionalString("username"),l=e.getOptionalString("password")?.trim();if((0,i.HO)(t)){if(r&&!(0,i.AY)(r))throw Error(`Invalid Gerrit integration config, '${r}' is not a valid baseUrl`);else if(n&&!(0,i.AY)(n))throw Error(`Invalid Gerrit integration config, '${n}' is not a valid cloneUrl`);else if(!(0,i.AY)(o))throw Error(`Invalid Gerrit integration config, '${o}' is not a valid gitilesBaseUrl`)}else throw Error(`Invalid Gerrit integration config, '${t}' is not a valid host`);return r=r?(0,A.trimEnd)(r,"/"):`https://${t}`,n=n?(0,A.trimEnd)(n,"/"):r,{host:t,baseUrl:r,cloneUrl:n,disableEditUrl:a,gitilesBaseUrl:o=(0,A.trimEnd)(o,"/"),username:s,password:l,commitSigningKey:e.getOptionalString("commitSigningKey")}}function R(e,t){let r=new URL(e.gitilesBaseUrl),i=new URL(t),n=(0,A.trimStart)(i.pathname.substring(2*!!i.pathname.startsWith("/a/")).replace(r.pathname,""),"/").split("/").filter(e=>!!e),a=(0,A.takeWhile)(n,e=>"+"!==e);if(0===a.length)throw Error(`Unable to parse gitiles url: ${t}`);let o=n.slice(a.length+1),s=(0,A.join)(a,"/");if(o.length>0&&"HEAD"===o[0]){let e=o.shift(),r=(0,A.join)(o,"/");return{project:s,ref:e,refType:"head",path:r||"/",basePath:(0,A.trimEnd)(t.replace(r,""),"/")}}if(o.length>0&&40===o[0].length){let e=o.shift(),r=(0,A.join)(o,"/");return{project:s,ref:e,refType:"sha",path:r||"/",basePath:(0,A.trimEnd)(t.replace(r,""),"/")}}let l=(0,A.join)(o,"/"),c=/^refs\/(?<refsReference>heads|tags)\/(?<ref>.*?)(\/|$)/.exec(l);if(c){let e,r=c[0],{refsReference:i,ref:n}=c.groups||{},a=l.replace(r,"");switch(i){case"heads":e="branch";break;case"tags":e="tag";break;default:throw Error(`Unable to parse gitiles url: ${t}`)}return{project:s,ref:n,refType:e,path:a||"/",basePath:(0,A.trimEnd)(t.replace(a,""),"/")}}throw Error(`Unable to parse gitiles : ${t}`)}r(1048).Buffer;class T{integrationConfig;static factory=({config:e})=>{let t=(e.getOptionalConfigArray("integrations.gerrit")??[]).map(I);return(0,i.oS)(t.map(e=>new T(e)),e=>e.config.host)};constructor(e){this.integrationConfig=e}get type(){return"gerrit"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){let t,{url:r,base:i,lineNumber:n}=e;if(r.startsWith("/")){let{basePath:e}=R(this.config,i);return e+r}return t=r?new URL(r,i):new URL(i),n&&(t.hash=n.toString()),t.toString()}resolveEditUrl(e){var t,r,i,n;if(this.config.disableEditUrl)return e;let a=R(this.config,e);return t=this.config,r=a.project,i=a.ref,n=a.path,`${t.baseUrl}/admin/repos/edit/repo/${r}/branch/refs/heads/${i}/file/${(0,A.trimStart)(n,"/")}`}}var O=r(87393);let L="gitlab.com",B="https://gitlab.com/api/v4";function U(e){let t=e.getString("host"),r=e.getOptionalString("apiBaseUrl"),n=e.getOptionalString("token")?.trim(),a=e.getOptionalString("baseUrl");if(r?r=(0,A.trimEnd)(r,"/"):t===L&&(r=B),a=a?(0,A.trimEnd)(a,"/"):`https://${t}`,(0,i.HO)(t))if(r&&(0,i.AY)(r)){if(!(0,i.AY)(a))throw Error(`Invalid GitLab integration config, '${a}' is not a valid baseUrl`)}else throw Error(`Invalid GitLab integration config, '${r}' is not a valid apiBaseUrl`);else throw Error(`Invalid GitLab integration config, '${t}' is not a valid host`);return{host:t,token:n,apiBaseUrl:r,baseUrl:a,commitSigningKey:e.getOptionalString("commitSigningKey")}}class N{integrationConfig;static factory=({config:e})=>{let t,r=((t=(e.getOptionalConfigArray("integrations.gitlab")??[]).map(U)).some(e=>e.host===L)||t.push({host:L,apiBaseUrl:B,baseUrl:`https://${L}`}),t);return(0,i.oS)(r.map(e=>new N(e)),e=>e.config.host)};constructor(e){this.integrationConfig=e}get type(){return"gitlab"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){return(0,i.ku)(e)}resolveEditUrl(e){return e.replace(/\/\-\/(blob|tree|edit)\//,"/-/edit/")}}r(1048).Buffer;class P{config;static factory=({config:e})=>{let t=(e.getOptionalConfigArray("integrations.gitea")??[]).map(e=>(function(e){let t=e.getString("host"),r=e.getOptionalString("baseUrl"),n=e.getOptionalString("username"),a=e.getOptionalString("password")?.trim();if((0,i.HO)(t)){if(r&&!(0,i.AY)(r))throw Error(`Invalid Gitea integration config, '${r}' is not a valid baseUrl`)}else throw Error(`Invalid Gitea integration config, '${t}' is not a valid host`);return r=r?(0,A.trimEnd)(r,"/"):`https://${t}`,{host:t,baseUrl:r,username:n,password:a,commitSigningKey:e.getOptionalString("commitSigningKey")}})(e));return(0,i.oS)(t.map(e=>new P(e)),e=>e.config.host)};constructor(e){this.config=e}get type(){return"gitea"}get title(){return this.config.host}resolveUrl(e){return(0,i.ku)(e)}resolveEditUrl(e){let t;return t=function(e,t){let r=e.baseUrl??`https://${e.host}`;try{let[e,i,n,a,o,s,...l]=t.replace(r,"").split("/"),c=l.join("/").replace(/^\//,"");return{url:r,owner:i,name:n,ref:s,path:c}}catch(e){throw Error(`Incorrect URL: ${t}, ${e}`)}}(this.config,e),`${t.url}/${t.owner}/${t.name}/_edit/${t.ref}/${t.path}`}}class F{config;static factory=({config:e})=>{let t=(e.getOptionalConfigArray("integrations.harness")??[]).map(e=>(function(e){let t=e.getString("host"),r=e.getOptionalString("token"),n=e.getOptionalString("apiKey");if(!(0,i.HO)(t))throw Error(`Invalid Harness Code integration config, '${t}' is not a valid host`);return{host:t,apiKey:n,token:r}})(e));return(0,i.oS)(t.map(e=>new F(e)),e=>e.config.host)};constructor(e){this.config=e}get type(){return"harness"}get title(){return this.config.host}resolveUrl(e){return(0,i.ku)(e)}resolveEditUrl(e){let t;return t=function(e,t){let r=`https://${e.host}`;try{let e=new URL(t),i=e.pathname.split("/").filter(e=>""!==e),n=e.pathname.split("/"),a=i.findIndex(e=>"account"===e)+1,o=i[a],s=i.findIndex(e=>"orgs"===e),l=-1!==s?i[s+1]:"",c=i.findIndex(e=>"projects"===e),d=-1!==c?i[c+1]:"",u=i.findIndex((e,t)=>"repos"===e&&t>Math.max(a,s,c))+1,p=i[u],h=n.slice(n.findIndex(e=>"files"===e||"edit"===e)+1),g=h.findIndex(e=>"~"===e),f=h.slice(0,g).join("/"),m=-1!==g?h.slice(g+1).join("/").replace(/^\//,""):"";return{baseUrl:r,accountId:o,orgName:l,projectName:d,refString:f,path:m,repoName:p,refDashStr:h.slice(0,g).join("-"),branch:-1!==g?h.slice(0,g).join("/"):h.join("/")}}catch(e){throw Error(`Incorrect URL: ${t}, ${e}`)}}(this.config,e),`${t.baseUrl}/ng/account/${t.accountId}/module/code${""!==t.orgName?`/orgs/${t.orgName}`:""}${""!==t.projectName?`/projects/${t.projectName}`:""}/repos/${t.repoName}/files/${t.branch}/~/${t.path}`}}let z="blob.core.windows.net";function M(e){let t,r,i=e.getOptionalString("endpoint"),n=e.getString("accountName"),a=e.getOptionalString("accountKey")?.trim(),o=e.getOptionalString("sasToken")?.trim(),s=e.getOptionalString("connectionString")?.trim(),l=e.getOptionalString("endpointSuffix")?.trim();if(i){try{let e=new URL(i);t=e.host,r=e.pathname}catch{throw Error(`invalid azureBlobStorage integration config, endpoint '${i}' is not a valid URL`)}if("/"!==r)throw Error(`invalid azureBlobStorage integration config, endpoints cannot contain path, got '${i}'`)}else t=z;let c=e.has("aadCredential")?{clientId:e.getString("aadCredential.clientId"),tenantId:e.getString("aadCredential.tenantId"),clientSecret:e.getString("aadCredential.clientSecret")?.trim()}:void 0;if(a&&o)throw Error(`Invalid Azure Blob Storage config for ${n}: Both account key and SAS token cannot be used simultaneously.`);if(c&&(a||o))throw Error(`Invalid Azure Blob Storage config for ${n}: Cannot use both Azure AD credentials and account keys/SAS tokens for the same account.`);return{host:t,endpoint:i,accountName:n,accountKey:a,sasToken:o,connectionString:s,endpointSuffix:l,aadCredential:c}}class D{integrationConfig;static factory=({config:e})=>{let t,r=((t=(e.getOptionalConfigArray("integrations.azureBlobStorage")??[]).map(M)).some(e=>e.host===z)||t.push({host:z}),t);return(0,i.oS)(r.map(e=>new D(e)),e=>e.config.host)};get type(){return"azureBlobStorage"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}constructor(e){this.integrationConfig=e}resolveUrl(e){return(0,i.ku)(e)}resolveEditUrl(e){return e}}let _="storage.cloud.google.com";class q{integrationConfig;static factory=({config:e})=>{let t=e.has("integrations.googleGcs")?function(e){if(!e||!e.has("clientEmail")&&!e.has("privateKey"))return{host:_};let t=e.getString("privateKey").split("\\n").join("\n");return{host:_,clientEmail:e.getString("clientEmail"),privateKey:t}}(e.getConfig("integrations.googleGcs")):{host:_};return(0,i.oS)([new q(t)],e=>e.config.host)};get type(){return"googleGcs"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}constructor(e){this.integrationConfig=e}resolveUrl(e){return(0,i.ku)(e)}resolveEditUrl(e){return e}}class H{byType;static fromConfig(e){return new H({awsS3:o.factory({config:e}),awsCodeCommit:l.factory({config:e}),azureBlobStorage:D.factory({config:e}),azure:f.factory({config:e}),bitbucket:C.factory({config:e}),bitbucketCloud:x.factory({config:e}),bitbucketServer:$.factory({config:e}),gerrit:T.factory({config:e}),github:O.U.factory({config:e}),gitlab:N.factory({config:e}),gitea:P.factory({config:e}),googleGcs:q.factory({config:e}),harness:F.factory({config:e})})}constructor(e){this.byType=e}get awsS3(){return this.byType.awsS3}get awsCodeCommit(){return this.byType.awsCodeCommit}get azureBlobStorage(){return this.byType.azureBlobStorage}get azure(){return this.byType.azure}get bitbucket(){return this.byType.bitbucket}get bitbucketCloud(){return this.byType.bitbucketCloud}get bitbucketServer(){return this.byType.bitbucketServer}get gerrit(){return this.byType.gerrit}get github(){return this.byType.github}get gitlab(){return this.byType.gitlab}get gitea(){return this.byType.gitea}get googleGcs(){return this.byType.googleGcs}get harness(){return this.byType.harness}list(){return Object.values(this.byType).flatMap(e=>e.list())}byUrl(e){let t=Object.values(this.byType).map(t=>t.byUrl(e)).filter(Boolean);if(t.length>1){let e=t.filter(e=>!(e instanceof C));0!==e.length&&(t=e)}return t[0]}byHost(e){return Object.values(this.byType).map(t=>t.byHost(e)).find(Boolean)}resolveUrl(e){let t=this.byUrl(e.base);return t?t.resolveUrl(e):(0,i.ku)(e)}resolveEditUrl(e){let t=this.byUrl(e);return t?t.resolveEditUrl(e):e}}var V=r(44007);class W{static fromConfig(e){return H.fromConfig(e)}}let K=(0,V.y)({id:"integration.scmintegrations"})},87393(e,t,r){"use strict";r.d(t,{F:()=>d,U:()=>c});var i=r(85942),n=r(45250);let a="github.com",o="https://api.github.com",s="https://raw.githubusercontent.com";function l(e){let t=e.getOptionalString("host")??a,r=e.getOptionalString("apiBaseUrl"),l=e.getOptionalString("rawBaseUrl"),c=e.getOptionalString("token")?.trim(),d=e.getOptionalConfigArray("apps")?.map(e=>({appId:e.getNumber("appId"),clientId:e.getString("clientId"),clientSecret:e.getString("clientSecret"),webhookSecret:e.getOptionalString("webhookSecret"),privateKey:e.getString("privateKey"),allowedInstallationOwners:e.getOptionalStringArray("allowedInstallationOwners"),publicAccess:e.getOptionalBoolean("publicAccess")}));if(!(0,i.HO)(t))throw Error(`Invalid GitHub integration config, '${t}' is not a valid host`);return r?r=(0,n.trimEnd)(r,"/"):t===a&&(r=o),l?l=(0,n.trimEnd)(l,"/"):t===a&&(l=s),{host:t,apiBaseUrl:r,rawBaseUrl:l,token:c,apps:d}}class c{integrationConfig;static factory=({config:e})=>{let t,r=((t=(e.getOptionalConfigArray("integrations.github")??[]).map(l)).some(e=>e.host===a)||t.push({host:a,apiBaseUrl:o,rawBaseUrl:s}),t);return(0,i.oS)(r.map(e=>new c(e)),e=>e.config.host)};constructor(e){this.integrationConfig=e}get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){return d((0,i.ku)(e),"tree")}resolveEditUrl(e){return d(e,"edit")}parseRateLimitInfo(e){return{isRateLimited:429===e.status||403===e.status&&"0"===e.headers.get("x-ratelimit-remaining")}}}function d(e,t){return e.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,(e,r,i,n)=>`//${r}/${i}/${n}/${t}/`)}},85942(e,t,r){"use strict";r.d(t,{AY:()=>s,HO:()=>o,ku:()=>c,oS:()=>l});var i=r(52536),n=r.n(i),a=r(45250);function o(e){let t=new URL("http://example.com");return t.host=e,t.host===e}function s(e){try{return new URL(e),!0}catch{return!1}}function l(e,t){return{list:()=>e,byUrl(r){try{let i="string"==typeof r?new URL(r):r;return e.find(e=>t(e)===i.host)}catch{return}},byHost:r=>e.find(e=>t(e)===r)}}function c(e){let t,{url:r,base:i,lineNumber:o}=e;try{return new URL(r),r}catch{}if(r.startsWith("/")){let{href:e,filepath:o}=n()(i);t=new URL(e);let s=(0,a.trimEnd)(t.pathname.substring(0,t.pathname.length-o.length),"/");t.pathname=`${s}${r}`}else t=new URL(r,i);return t.search=new URL(i).search,o&&(t.hash=`L${o}`),t.toString()}},8220(e,t,r){"use strict";var i,n={};r.r(n),r.d(n,{TechDocsPlugin:()=>l.Ju});var a=r(31085),o=r(25873),s=r(18690),l=r(50875),c=r(70335),d=r(90479),u=r(10337),p=r(64947),h=r(73462),g=r(60691),f=r(55489),m=r(73657);function y({children:e}){return(0,s.Ri)()?(0,a.jsx)(a.Fragment,{children:e}):(0,a.jsx)(s.fS,{children:e})}let v={Progress:f.k,Router:m.Kd,NotFoundErrorPage:()=>(0,a.jsx)(h.M,{status:"404",statusMessage:"PAGE NOT FOUND"}),BootErrorPage:({step:e,error:t})=>{let r="";return"load-config"===e?r=`The configuration failed to load, someone should have a look at this error: ${t.message}`:"load-chunk"===e&&(r=`Lazy loaded chunk failed to load, try to reload the page: ${t.message}`),(0,a.jsx)(y,{children:(0,a.jsx)(h.M,{statusMessage:r,stack:t.stack})})},ErrorBoundaryFallback:({error:e,resetError:t,plugin:r})=>(0,a.jsx)(g.b,{title:`Error in ${r?.getId()}`,defaultExpanded:!0,error:e,children:(0,a.jsx)(p.A,{variant:"outlined",onClick:t,children:"Retry"})})},b="Invalid discovery URL pattern,";class w{parts;static compile(e){let t,r=e.split(/\{\{\s*pluginId\s*\}\}/),i=r.join("pluginId");try{t=new URL(i)}catch{throw Error(`${b} URL '${i}' is invalid`)}if(t.hash)throw Error(`${b} URL must not have a hash`);if(t.search)throw Error(`${b} URL must not have a query`);if(i.endsWith("/"))throw Error(`${b} URL must not end with a slash`);return new w(r)}constructor(e){this.parts=e}async getBaseUrl(e){return this.parts.join(encodeURIComponent(e))}}class x{static fromConfig(e,t){let r=t?.pathPattern??"/api/{{ pluginId }}",i=e.getString("backend.baseUrl");return new x(new Map(e.getOptionalConfigArray("discovery.endpoints")?.flatMap(e=>{let t="object"==typeof e.get("target")?e.getOptionalString("target.external"):e.getString("target");if(!t)return[];let r=w.compile(t);return e.getStringArray("plugins").map(e=>[e,r])})),w.compile(`${i}${r}`))}endpoints;defaultEndpoint;constructor(e,t){this.endpoints=e,this.defaultEndpoint=t}async getBaseUrl(e){let t=this.endpoints.get(e);return t?t.getBaseUrl(e):this.defaultEndpoint.getBaseUrl(e)}}var A=r(18784),S=r.n(A);class k{isClosed=!1;terminatingError;observable=new(S())(e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(this.subscribers.add(e),()=>{this.subscribers.delete(e)}));subscribers=new Set;[Symbol.observable](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw Error("PublishSubject is closed");this.subscribers.forEach(t=>t.next(e))}error(e){if(this.isClosed)throw Error("PublishSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(t=>t.error(e))}complete(){if(this.isClosed)throw Error("PublishSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,t,r){return this.observable.subscribe("function"==typeof e?{next:e,error:t,complete:r}:e)}}class E{isClosed;currentValue;terminatingError;observable;constructor(e){this.isClosed=!1,this.currentValue=e,this.terminatingError=void 0,this.observable=new(S())(e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(e.next(this.currentValue),this.subscribers.add(e),()=>{this.subscribers.delete(e)}))}subscribers=new Set;[Symbol.observable](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw Error("BehaviorSubject is closed");this.currentValue=e,this.subscribers.forEach(t=>t.next(e))}error(e){if(this.isClosed)throw Error("BehaviorSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(t=>t.error(e))}complete(){if(this.isClosed)throw Error("BehaviorSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,t,r){return this.observable.subscribe("function"==typeof e?{next:e,error:t,complete:r}:e)}}class C{subject=new k;recentAlerts=[];maxBufferSize=10;post(e){this.recentAlerts.push(e),this.recentAlerts.length>this.maxBufferSize&&this.recentAlerts.shift(),this.subject.next(e)}alert$(){return new(S())(e=>{for(let t of this.recentAlerts)e.next(t);return this.subject.subscribe(e)})}}class j{captureEvent(e){}}class ${alertApi;errorApi;constructor(e,t){this.alertApi=e,this.errorApi=t}post(e,t){return t?.hidden||this.alertApi.post({message:e.message,severity:"error"}),this.errorApi.post(e,t)}error$(){return this.errorApi.error$()}}class I{subject=new k;post(e,t){this.subject.next({error:e,context:t})}error$(){return this.subject}}class R{static forward(e,t){window.addEventListener("unhandledrejection",r=>{e.post(r.reason,t)})}}let T=new Map;class O{namespace;errorApi;constructor(e,t){this.namespace=e,this.errorApi=t}static hasSubscribed=!1;static create(e){return new O(e.namespace??"",e.errorApi)}static addStorageEventListener(){window.addEventListener("storage",e=>{for(let[t,r]of T.entries())e.key?.startsWith(t)&&r.handleStorageChange(e.key)})}get(e){return this.snapshot(e).value}snapshot(e){let t,r="absent";try{let i=localStorage.getItem(this.getKeyName(e));i&&(t=JSON.parse(i,(e,t)=>("object"==typeof t&&null!==t&&Object.freeze(t),t)),r="present")}catch(t){this.errorApi.post(Error(`Error when parsing JSON config from storage for: ${e}`))}return{key:e,value:t,presence:r}}forBucket(e){let t=`${this.namespace}/${e}`;return T.has(t)||T.set(t,new O(t,this.errorApi)),T.get(t)}async set(e,t){localStorage.setItem(this.getKeyName(e),JSON.stringify(t)),this.notifyChanges(e)}async remove(e){localStorage.removeItem(this.getKeyName(e)),this.notifyChanges(e)}observe$(e){return O.hasSubscribed||(O.addStorageEventListener(),O.hasSubscribed=!0),this.observable.filter(({key:t})=>t===e)}handleStorageChange(e){if(!e?.startsWith(this.namespace))return;let t=e?.slice(`${this.namespace}/`.length);t.includes("/")||this.notifyChanges(decodeURIComponent(t))}getKeyName(e){return`${this.namespace}/${encodeURIComponent(e)}`}notifyChanges(e){let t=this.snapshot(e);for(let e of this.subscribers)e.next(t)}subscribers=new Set;observable=new(S())(e=>(this.subscribers.add(e),()=>{this.subscribers.delete(e)}))}class L{static create(e){var t;let r=(t=e).allowUrl?t.allowUrl:t.urlPrefixAllowlist?B(t.urlPrefixAllowlist):t.config?B([t.config.getString("backend.baseUrl"),...L.getDiscoveryUrlPrefixes(t.config)]):()=>!1,i=e.header?.name||"authorization",n=e.header?.value||(e=>`Bearer ${e}`);return new L(e.identityApi,r,i,n)}static getDiscoveryUrlPrefixes(e){return(e.getOptionalConfigArray("discovery.endpoints")||[]).flatMap(e=>{let t="object"==typeof e.get("target")?e.getString("target.external"):e.getString("target");return e.getStringArray("plugins").map(e=>t.replace(/\{\{\s*pluginId\s*\}\}/g,e))})}identityApi;allowUrl;headerName;headerValue;constructor(e,t,r,i){this.identityApi=e,this.allowUrl=t,this.headerName=r,this.headerValue=i}apply(e){return async(t,r)=>{let i=new Request(t,r),{token:n}=await this.identityApi.getCredentials();return!i.headers.get(this.headerName)&&"string"==typeof n&&n&&this.allowUrl(i.url)?(i.headers.set(this.headerName,this.headerValue(n)),e(i)):e(t,r)}}}function B(e){let t=e.map(e=>e.replace(/\/$/,""));return e=>t.some(t=>e===t||e.startsWith(`${t}/`))}class U{discoveryApi;constructor(e){this.discoveryApi=e}apply(e){return async(t,r)=>{var i,n;let a=new Request(t,r),o="plugin://";if(!a.url.startsWith(o))return e(t,r);let{hostname:s,pathname:l,search:c,hash:d,username:u,password:p}=new URL(`http://${a.url.substring(o.length)}`),h=await this.discoveryApi.getBaseUrl(s);if(u||p){let e=new URL(h),t=`${u}${p?`:${p}`:""}@`;h=`${e.protocol}//${t}${e.host}${e.pathname}`}return e(`${(i=h,!l||"/"===l?i:`${i.replace(/\/$/,"")}/${l.replace(/^\//,"")}`)}${c}${d}`,"string"==typeof t||"object"==typeof(n=t)&&n?.constructor===URL?r:t)}}}class N{static resolvePluginProtocol(e){return new U(e.discoveryApi)}static injectIdentityAuth(e){return L.create(e)}constructor(){}}class P{requests=[];subject=new E(this.getCurrentPending());request(e){return new Promise((t,r)=>{this.requests.push({scopes:e,resolve:t,reject:r}),this.subject.next(this.getCurrentPending())})}resolve(e,t){this.requests=this.requests.filter(r=>!function(e,t){for(let r of t)if(!e.has(r))return!1;return!0}(e,r.scopes)||(r.resolve(t),!1)),this.subject.next(this.getCurrentPending())}reject(e){this.requests.forEach(t=>t.reject(e)),this.requests=[],this.subject.next(this.getCurrentPending())}pending(){return this.subject}getCurrentPending(){let e=0===this.requests.length?void 0:this.requests.slice(1).reduce((e,t)=>(function(e,...t){let r=new Set(e);for(let e of t)for(let t of e)r.add(t);return r})(e,t.scopes),this.requests[0].scopes);return{scopes:e,resolve:t=>{e&&this.resolve(e,t)},reject:t=>{e&&this.reject(t)}}}}class F{subject=new k;currentRequests=[];handlerCount=0;createAuthRequester(e){let t=new P,r=this.handlerCount;return this.handlerCount++,t.pending().subscribe({next:t=>{let i=this.currentRequests.slice(),n=this.makeAuthRequest(t,e);n?i[r]=n:delete i[r],this.currentRequests=i,this.subject.next(i.filter(Boolean))}}),e=>t.request(e)}makeAuthRequest(e,t){let{scopes:r}=e;if(r)return{provider:t.provider,trigger:async()=>{let i=await t.onAuthRequest(r);e.resolve(i)},reject:()=>{let t=Error("Login failed, rejected by user");t.name="RejectedError",e.reject(t)}}}authRequest$(){return this.subject}}let z=!1;function M(e){return[...e].join(" ")}class D{discoveryApi;environment;provider;joinScopesFunc;authRequester;sessionTransform;enableExperimentalRedirectFlow;popupOptions;constructor(e){const{configApi:t,discoveryApi:r,environment:i,provider:n,joinScopes:a=M,oauthRequestApi:o,sessionTransform:s=e=>e,popupOptions:l}=e;z||t||(console.warn("DEPRECATION WARNING: Authentication providers require a configApi instance to configure the authentication flow. Please provide one to the authentication provider constructor."),z=!0),this.enableExperimentalRedirectFlow=!!t&&(t.getOptionalBoolean("enableExperimentalRedirectFlow")??!1),this.authRequester=o.createAuthRequester({provider:n,onAuthRequest:async e=>this.enableExperimentalRedirectFlow?this.executeRedirect(e):this.showPopup(e)}),this.discoveryApi=r,this.environment=i,this.provider=n,this.joinScopesFunc=a,this.sessionTransform=s,this.popupOptions=l}async createSession(e){return e.instantPopup?this.enableExperimentalRedirectFlow?this.executeRedirect(e.scopes):this.showPopup(e.scopes):this.authRequester(e.scopes)}async refreshSession(e){let t=await fetch(await this.buildUrl("/refresh",{optional:!0,...e&&{scope:this.joinScopesFunc(e.scopes)}}),{headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(e=>{throw Error(`Auth refresh request failed, ${e}`)});if(!t.ok){let e=Error(`Auth refresh request failed, ${t.statusText}`);throw e.status=t.status,e}let r=await t.json();if(r.error){let e=Error(r.error.message);throw r.error.name&&(e.name=r.error.name),e}return await this.sessionTransform(r)}async removeSession(){let e=await fetch(await this.buildUrl("/logout"),{method:"POST",headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(e=>{throw Error(`Logout request failed, ${e}`)});if(!e.ok){let t=Error(`Logout request failed, ${e.statusText}`);throw t.status=e.status,t}}async showPopup(e){var t;let r=this.joinScopesFunc(e),i=await this.buildUrl("/start",{scope:r,origin:window.location.origin,flow:"popup"}),n=this.popupOptions?.size?.fullscreen?window.screen.width:this.popupOptions?.size?.width||450,a=this.popupOptions?.size?.fullscreen?window.screen.height:this.popupOptions?.size?.height||730,o=await (t={url:i,name:`${this.provider.title} Login`,width:n,height:a},new Promise((e,r)=>{let i=t.width||500,n=t.height||700,a=window.screen.width/2-i/2,o=window.screen.height/2-n/2,s=new URL(t.url).origin,l=window.open(t.url,t.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${i},height=${n},top=${o},left=${a}`),c="";if(!l||void 0===l.closed||l.closed){let e=Error("Failed to open auth popup.");e.name="PopupRejectedError",r(e);return}let d=t=>{if(t.source!==l||t.origin!==s)return;let{data:i}=t;if("config_info"===i.type){c=i.targetOrigin;return}if("authorization_response"===i.type){if("error"in i){let e=Error(i.error.message);e.name=i.error.name,r(e)}else e(i.response);p()}},u=setInterval(()=>{if(l.closed){let e=Error(`Login failed, ${c&&c!==window.location.origin?`Incorrect app origin, expected ${c}`:"popup was closed"}`);e.name="PopupClosedError",r(e),p()}},100);function p(){window.removeEventListener("message",d),clearInterval(u)}window.addEventListener("message",d)}));return await this.sessionTransform(o)}async executeRedirect(e){let t=this.joinScopesFunc(e);return window.location.href=await this.buildUrl("/start",{scope:t,origin:window.location.origin,redirectUrl:window.location.href,flow:"redirect"}),new Promise(()=>{})}async buildUrl(e,t){let r=await this.discoveryApi.getBaseUrl("auth"),i=this.buildQueryString({...t,env:this.environment});return`${r}/${this.provider.id}${e}${i}`}buildQueryString(e){if(!e)return"";let t=Object.entries(e).map(([e,t])=>"string"==typeof t?`${encodeURIComponent(e)}=${encodeURIComponent(t)}`:t?encodeURIComponent(e):void 0).filter(Boolean).join("&");return t?`?${t}`:""}}function _(e,t){for(let r of t)if(!e.has(r))return!1;return!0}class q{options;constructor(e){this.options=e}sessionExistsAndHasScope(e,t){return!!e&&(!t||void 0===this.options.sessionScopes||_(this.options.sessionScopes(e),t))}getExtendedScope(e,t){let r=new Set(this.options.defaultScopes);if(e&&void 0!==this.options.sessionScopes)for(let t of this.options.sessionScopes(e))r.add(t);if(t)for(let e of t)r.add(e);return r}}var H=r(44007);let V="SignedOut",W=(0,H.y)({id:"core.auth.google"}),K=(0,H.y)({id:"core.auth.github"}),G=(0,H.y)({id:"core.auth.okta"}),Y=(0,H.y)({id:"core.auth.gitlab"}),Z=(0,H.y)({id:"core.auth.microsoft"}),Q=(0,H.y)({id:"core.auth.onelogin"}),J=(0,H.y)({id:"core.auth.bitbucket"}),X=(0,H.y)({id:"core.auth.bitbucket-server"}),ee=(0,H.y)({id:"core.auth.atlassian"}),et=(0,H.y)({id:"core.auth.vmware-cloud"}),er=(0,H.y)({id:"core.auth.openshift"});class ei{subject=new E(V);signedIn=!1;setIsSignedIn(e){this.signedIn!==e&&(this.signedIn=e,this.subject.next(this.signedIn?"SignedIn":V))}sessionState$(){return this.subject}}class en{connector;helper;sessionScopesFunc;sessionShouldRefreshFunc;stateTracker=new ei;refreshPromise;currentSession;constructor(e){const{connector:t,defaultScopes:r=new Set,sessionScopes:i,sessionShouldRefresh:n}=e;this.connector=t,this.sessionScopesFunc=i,this.sessionShouldRefreshFunc=n,this.helper=new q({sessionScopes:i,defaultScopes:r})}async getSession(e){let t=!1;if(this.helper.sessionExistsAndHasScope(this.currentSession,e.scopes)){if(!this.sessionShouldRefreshFunc(this.currentSession))return this.currentSession;t=!0;try{let t=await this.collapsedSessionRefresh(e.scopes),r=this.sessionScopesFunc(this.currentSession),i=this.sessionScopesFunc(t);return _(i,r)&&(this.currentSession=t),t}catch(t){if(this.removeLocalSession(),e.optional)return}}if(!t)try{let t=await this.collapsedSessionRefresh(e.scopes);return this.currentSession=t,this.getSession(e)}catch{this.removeLocalSession()}if(!e.optional)return this.currentSession=await this.connector.createSession({...e,scopes:this.helper.getExtendedScope(this.currentSession,e.scopes)}),this.stateTracker.setIsSignedIn(!0),this.currentSession}removeLocalSession(){this.currentSession=void 0,this.stateTracker.setIsSignedIn(!1)}async removeSession(){this.currentSession=void 0,await this.connector.removeSession(),this.stateTracker.setIsSignedIn(!1)}sessionState$(){return this.stateTracker.sessionState$()}async collapsedSessionRefresh(e){if(this.refreshPromise)return this.refreshPromise;this.refreshPromise=this.connector.refreshSession({scopes:this.helper.getExtendedScope(this.currentSession,e)});try{let t=await this.refreshPromise;if(!this.helper.sessionExistsAndHasScope(t,e))throw Error("Refreshed session did not receive the required scopes");return this.stateTracker.setIsSignedIn(!0),t}finally{delete this.refreshPromise}}}let ea={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class eo{static createAuthConnector(e){if("authConnector"in e)return e.authConnector;let{scopeTransform:t=e=>e,configApi:r,discoveryApi:i,environment:n="development",provider:a=ea,oauthRequestApi:o,popupOptions:s}=e;return new D({configApi:r,discoveryApi:i,environment:n,provider:a,oauthRequestApi:o,sessionTransform({backstageIdentity:e,...r}){let i={...r,providerInfo:{idToken:r.providerInfo.idToken,accessToken:r.providerInfo.accessToken,scopes:eo.normalizeScopes(r.providerInfo.scope,{scopeTransform:t}),expiresAt:r.providerInfo.expiresInSeconds?new Date(Date.now()+1e3*r.providerInfo.expiresInSeconds):void 0}};return e&&(i.backstageIdentity={token:e.token,identity:e.identity,expiresAt:e.expiresInSeconds?new Date(Date.now()+1e3*e.expiresInSeconds):void 0}),i},popupOptions:s})}static create(e){let{defaultScopes:t=[],scopeTransform:r=e=>e}=e,i=new en({connector:eo.createAuthConnector(e),defaultScopes:new Set(t),sessionScopes:e=>e.providerInfo.scopes,sessionShouldRefresh:e=>{let t=1/0;return e.providerInfo?.expiresAt&&(t=Math.min(t,(e.providerInfo.expiresAt.getTime()-Date.now())/1e3)),e.backstageIdentity?.expiresAt&&(t=Math.min(t,(e.backstageIdentity.expiresAt.getTime()-Date.now())/1e3)),t<180}});return new eo({sessionManager:i,scopeTransform:r})}sessionManager;scopeTransform;constructor(e){this.sessionManager=e.sessionManager,this.scopeTransform=e.scopeTransform}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(e,t){let r=eo.normalizeScopes(e,{scopeTransform:this.scopeTransform}),i=await this.sessionManager.getSession({...t,scopes:r});return i?.providerInfo.accessToken??""}async getIdToken(e={}){let t=await this.sessionManager.getSession({...e,scopes:new Set(["openid"])});return t?.providerInfo.idToken??""}async getBackstageIdentity(e={}){let t=await this.sessionManager.getSession(e);return t?.backstageIdentity}async getProfile(e={}){let t=await this.sessionManager.getSession(e);return t?.profile}static normalizeScopes(e,t){if(!e)return new Set;let r=Array.isArray(e)?e:e.split(/[\s|,]/).filter(Boolean);return new Set(t?t.scopeTransform(r):r)}}let es={id:"google",title:"Google",icon:()=>null},el="https://www.googleapis.com/auth/";class ec{static create(e){let{configApi:t,discoveryApi:r,oauthRequestApi:i,environment:n="development",provider:a=es,defaultScopes:o=["openid",`${el}userinfo.email`,`${el}userinfo.profile`]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:i,provider:a,environment:n,defaultScopes:o,scopeTransform:e=>e.map(e=>"openid"===e?e:"profile"===e||"email"===e?`${el}userinfo.${e}`:e.startsWith(el)?e:`${el}${e}`)})}}let ed={id:"microsoft",title:"Microsoft",icon:()=>null};class eu{oauth2;configApi;environment;provider;oauthRequestApi;discoveryApi;scopeTransform;static MicrosoftGraphID="00000003-0000-0000-c000-000000000000";static create(e){return new eu(e)}constructor(e){const{configApi:t,environment:r="development",provider:i=ed,oauthRequestApi:n,discoveryApi:a,defaultScopes:o=["openid","offline_access","profile","email","User.Read"],scopeTransform:s=e=>e.concat("offline_access")}=e;this.configApi=t,this.environment=r,this.provider=i,this.oauthRequestApi=n,this.discoveryApi=a,this.scopeTransform=s,this.oauth2={[eu.MicrosoftGraphID]:eo.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform,defaultScopes:o})}}microsoftGraph(){return this.oauth2[eu.MicrosoftGraphID]}static resourceForScopes(e){let t=[...new Set(e.split(" ").map(eu.resourceForScope).filter(e=>"openid"!==e))];return t.length>1?Promise.reject(Error(`Requested access token with scopes from multiple Azure resources: ${t.join(", ")}. Access tokens can only have a single audience.`)):Promise.resolve(t[0]??eu.MicrosoftGraphID)}static resourceForScope(e){let t=e.match(/^(?<resourceURI>.*)\/(?<scp>[^\/]*)$/)?.groups;if(t){let{resourceURI:e}=t;return e.replace(/^api:\/\//,"")}switch(e){case"email":case"openid":case"offline_access":case"profile":return"openid";default:return eu.MicrosoftGraphID}}async getAccessToken(e,t){let r=void 0===e?eu.MicrosoftGraphID:await eu.resourceForScopes(Array.isArray(e)?e.join(" "):e);return r in this.oauth2||(this.oauth2[r]=eo.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform})),this.oauth2[r].getAccessToken(e,t)}getIdToken(e){return this.microsoftGraph().getIdToken(e)}getProfile(e){return this.microsoftGraph().getProfile(e)}getBackstageIdentity(e){return this.microsoftGraph().getBackstageIdentity(e)}signIn(){return this.microsoftGraph().signIn()}signOut(){return this.microsoftGraph().signOut()}sessionState$(){return this.microsoftGraph().sessionState$()}}let ep={id:"github",title:"GitHub",icon:()=>null};class eh{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=ep,oauthRequestApi:a,defaultScopes:o=["read:user"]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i,defaultScopes:o})}}let eg={id:"okta",title:"Okta",icon:()=>null},ef=new Set(["openid","profile","email","phone","address","groups","offline_access"]),em="okta.";class ey{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=eg,oauthRequestApi:a,defaultScopes:o=["openid","email","profile","offline_access"]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i,defaultScopes:o,scopeTransform:e=>e.map(e=>ef.has(e)||e.startsWith(em)?e:`${em}${e}`)})}}let ev={id:"gitlab",title:"GitLab",icon:()=>null};class eb{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=ev,oauthRequestApi:a,defaultScopes:o=["read_user"]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i,defaultScopes:o})}}let ew={id:"onelogin",title:"onelogin",icon:()=>null},ex=new Set(["openid","profile","email","phone","address","groups","offline_access"]),eA="onelogin.";class eS{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=ew,oauthRequestApi:a}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i,defaultScopes:["openid","email","profile","offline_access"],scopeTransform:e=>e.map(e=>ex.has(e)||e.startsWith(eA)?e:`${eA}${e}`)})}}let ek={id:"bitbucket",title:"Bitbucket",icon:()=>null};class eE{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=ek,oauthRequestApi:a,defaultScopes:o=["account"]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i,defaultScopes:o})}}let eC={id:"bitbucketServer",title:"Bitbucket Server",icon:()=>null};class ej{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=eC,oauthRequestApi:a,defaultScopes:o=["PROJECT_ADMIN"]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i,defaultScopes:o})}}let e$={id:"atlassian",title:"Atlassian",icon:()=>null};class eI{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=e$,oauthRequestApi:a}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i})}}let eR={id:"vmwareCloudServices",title:"VMware Cloud",icon:()=>null};class eT{static create(e){let{configApi:t,discoveryApi:r,oauthRequestApi:i,environment:n="development",provider:a=eR,defaultScopes:o=["openid"]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:i,provider:a,environment:n,defaultScopes:o})}}let eO={id:"openshift",title:"OpenShift",icon:()=>null};class eL{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=eO,oauthRequestApi:a,defaultScopes:o=["user:info"]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i,defaultScopes:o})}}var eB=r(33141),eU=r(71531),eN=r(19735),eP=r(50375),eF=r(96876),ez=r(151);let eM=(0,H.y)({id:"core.storage"});var eD=r(76637),e_=r(48203);let eq=(0,H.y)({id:"core.oauthrequest"});var eH=r(31057),eV=r(33947),eW=r(10288),eK=r.n(eW),eG=r(8297),eY=r(31533),eZ=r(71696),eQ=r(98109);let eJ=eY.RZ(()=>eY.Ik({rule:eY.Yj(),resourceType:eY.Yj(),params:eY.g1(eY.bz()).optional()}).or(eY.Ik({anyOf:eY.YO(eJ).nonempty()})).or(eY.Ik({allOf:eY.YO(eJ).nonempty()})).or(eY.Ik({not:eJ}))),eX=eY.Ik({result:eY.eu(eZ.b.ALLOW).or(eY.eu(eZ.b.DENY))}),e0=eY.Ik({result:eY.YO(eY.KC([eY.eu(eZ.b.ALLOW),eY.eu(eZ.b.DENY)]))}).or(eX),e1=eY.KC([eY.Ik({result:eY.eu(eZ.b.ALLOW).or(eY.eu(eZ.b.DENY))}),eY.Ik({result:eY.eu(eZ.b.CONDITIONAL),pluginId:eY.Yj(),resourceType:eY.Yj(),conditions:eJ})]);class e2{enabled;discovery;enableBatchedRequests;constructor(e){this.discovery=e.discovery,this.enabled=e.config.getOptionalBoolean("permission.enabled")??!1,this.enableBatchedRequests=e.config.getOptionalBoolean("permission.EXPERIMENTAL_enableBatchedRequests")??!1}async authorize(e,t){return this.enabled?this.enableBatchedRequests?this.makeBatchedRequest(e,t):this.makeRequest(e,eX,t):e.map(e=>({result:eZ.b.ALLOW}))}async authorizeConditional(e,t){return this.enabled?this.makeRequest(e,e1,t):e.map(e=>({result:eZ.b.ALLOW}))}async makeRequest(e,t,r){let i={items:e.map(e=>({id:eG.A(),...e}))},n=(await this.makeRawRequest(i,t,r)).items.reduce((e,t)=>(e[t.id]=t,e),{});return i.items.map(e=>n[e.id])}async makeBatchedRequest(e,t){let r={};for(let t of e){let{permission:e,resourceRef:i}=t;(0,eQ.OL)(e)?(r[e.name]||={permission:e,resourceRef:[],id:eG.A()},i&&r[e.name].resourceRef?.push(i)):r[e.name]||={permission:e,id:eG.A()}}let i=(await this.makeRawRequest({items:Object.values(r)},e0,t)).items.reduce((e,t)=>(e[t.id]=t,e),{});return e.map(e=>{let{id:t}=r[e.permission.name],n=i[t];return Array.isArray(n.result)?{result:e.resourceRef?n.result.shift():n.result[0]}:{result:n.result}})}async makeRawRequest(e,t,r){let i,n=await this.discovery.getBaseUrl("permission"),a=await eK()(`${n}/authorize`,{method:"POST",body:JSON.stringify(e),headers:{...this.getAuthorizationHeader(r?.token),"content-type":"application/json"}});if(!a.ok)throw await eV.o.fromResponse(a);let o=await a.json();return(i=new Set(e.items.map(({id:e})=>e)),eY.Ik({items:eY.YO(eY.E$(eY.Ik({id:eY.Yj()}),t)).refine(e=>e.length===i.size&&e.every(({id:e})=>i.has(e)),{message:"Items in response do not match request"})})).parse(o)}getAuthorizationHeader(e){return e?{Authorization:`Bearer ${e}`}:{}}}class e5{permissionClient;identityApi;constructor(e,t){this.permissionClient=e,this.identityApi=t}static create(e){let{config:t,discovery:r,identity:i}=e;return new e5(new e2({discovery:r,config:t}),i)}async authorize(e){return(await this.permissionClient.authorize([e],await this.identityApi.getCredentials()))[0]}}let e3=[(0,eB.b)({api:eU.I,deps:{configApi:eN.U},factory:({configApi:e})=>x.fromConfig(e)}),(0,eB.b)({api:eP.k,deps:{},factory:()=>new C}),(0,eB.b)({api:eF.c,deps:{},factory:()=>new j}),(0,eB.b)({api:ez.m,deps:{alertApi:eP.k},factory:({alertApi:e})=>{let t=new $(e,new I);return R.forward(t,{hidden:!1}),t}}),(0,eB.b)({api:eM,deps:{errorApi:ez.m},factory:({errorApi:e})=>O.create({errorApi:e})}),(0,eB.b)({api:eD.a,deps:{configApi:eN.U,identityApi:e_.K,discoveryApi:eU.I},factory:({configApi:e,identityApi:t,discoveryApi:i})=>(function(e){let t=e.baseImplementation||r.g.fetch;for(let r of[e.middleware??[]].flat().reverse())t=r.apply(t);return{fetch:t}})({middleware:[N.resolvePluginProtocol({discoveryApi:i}),N.injectIdentityAuth({identityApi:t,config:e})]})}),(0,eB.b)({api:eq,deps:{},factory:()=>new F}),(0,eB.b)({api:W,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>ec.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:Z,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eu.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:K,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eh.create({configApi:r,discoveryApi:e,oauthRequestApi:t,defaultScopes:["read:user"],environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:G,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>ey.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:Y,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eb.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:Q,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eS.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:J,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eE.create({configApi:r,discoveryApi:e,oauthRequestApi:t,defaultScopes:["account"],environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:X,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>ej.create({configApi:r,discoveryApi:e,oauthRequestApi:t,defaultScopes:["REPO_READ"],environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:ee,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eI.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:et,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eT.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:er,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eL.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:eH.x,deps:{discovery:eU.I,identity:e_.K,config:eN.U},factory:({config:e,discovery:t,identity:r})=>e5.create({config:e,discovery:t,identity:r})})];var e4=r(14451),e8=r(27799),e7=r(94389),e6=r(20947),e9=r(20473),te=r(45917),tt=r(39347),tr=r(63309),ti=r(82451),tn=r(85121),ta=r(17400),to=r(42226),ts=r(69550),tl=r(52755),tc=r(89350),td=r(8911),tu=r(33602),tp=r(48108),th=r(77225),tg=r(55700),tf=r(71865),tm=r(80109),ty=r(15303),tv=r(39330);let tb={brokenImage:e8.default,catalog:td.default,scaffolder:e6.default,techdocs:e9.default,search:te.default,chat:tt.default,dashboard:tr.default,docs:ti.default,email:tn.default,github:to.default,group:tu.default,help:ts.default,"kind:api":ta.default,"kind:component":tc.default,"kind:domain":e4.default,"kind:group":tu.default,"kind:location":tl.default,"kind:system":e7.default,"kind:user":tp.default,"kind:resource":tg.default,"kind:template":tf.default,user:tp.default,warning:th.default,star:tm.default,unstarred:ty.default,externalLink:tv.default};var tw=r(55288),tx=r(91360),tA=r(50868),tS=r(12285),tk=r(19233),tE=r(64636),tC=r(14041);let tj="data-unified-theme-stack",t$="data-theme-mode",tI="data-theme-name";function tR(e){let t=(()=>{let e=document.body.getAttribute(tj);if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}})();e(t),0===t.length?document.body.removeAttribute(tj):document.body.setAttribute(tj,JSON.stringify(t));let r=t[t.length-1];r?.mode?document.body.setAttribute(t$,String(r.mode)):document.body.removeAttribute(t$),r?.name?document.body.setAttribute(tI,String(r.name)):document.body.removeAttribute(tI)}tE.A.configure(e=>`v5-${e}`);let tT=(0,tw.A)({productionPrefix:"jss4-"});function tO(e){var t,r;let{children:i,theme:n,themeName:o}=e,s=n.getTheme("v4"),l=n.getTheme("v5");t=s?s.palette.type:l?.palette.mode,r=o??"backstage",(0,tC.useEffect)(()=>(tR(e=>{e.push({mode:t,name:r})}),()=>{tR(e=>{e.pop()})}),[t,r]);let c=i;return s&&(c=(0,a.jsx)(tx.Ay,{generateClassName:tT,children:(0,a.jsx)(tA.A,{theme:s,children:c})})),l&&(c=(0,a.jsx)(tS.A,{injectFirst:!0,children:(0,a.jsx)(tk.A,{theme:l,children:c})})),c}var tL=r(41329),tB=r(53528);let tU="url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1368' height='401' x='0' y='0' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M437 116C223 116 112 0 112 0h1256v400c-82 0-225-21-282-109-112-175-436-175-649-175z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1368 400V282C891-29 788 40 711 161 608 324 121 372 0 361v39h1368z'/%3e%3cpath fill='url(%23paint2_linear)' d='M1368 244v156H0V94c92-24 198-46 375 0l135 41c176 51 195 109 858 109z'/%3e%3cpath fill='url(%23paint3_linear)' d='M1252 400h116c-14-7-35-14-116-16-663-14-837-128-1013-258l-85-61C98 28 46 8 0 0v400h1252z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M-172-98h1671v601H-172z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='602' x2='1093.5' y1='-960.5' y2='272' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='482' x2='480' y1='1058.5' y2='70.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='424' x2='446.1' y1='-587.5' y2='274.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='587' x2='349' y1='-1120.5' y2='341' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\")",tN="url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1764' height='479' x='-229' y='-6' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M0 400h1350C1321 336 525 33 179-2c-345-34-395 236-408 402H0z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1378 177v223H0V217s219 75 327 52C436 246 717-35 965 45s254 144 413 132z'/%3e%3cpath fill='url(%23paint2_linear)' d='M26 400l-78-16c-170 205-44-6-137-30l-4-1 4 1 137 30c37-45 89-110 159-201 399-514-45 238 1176-50 275-65 354-39 91 267H26z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='431' x2='397.3' y1='-599' y2='372.8' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='236.5' x2='446.6' y1='-586' y2='381.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='851.8' x2='640.4' y1='-867.2' y2='363.7' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\")",tP=["#005B4B"];function tF(e){let{colors:t,shape:r,options:i}=e,n=1===t.length?[t[0],t[0]]:t,a=`linear-gradient(90deg, ${n.join(", ")})`,o=`${r}, ${a}`;return{colors:t,shape:r,backgroundImage:o,fontColor:i?.fontColor??"#FFFFFF"}}let tz={home:tF({colors:tP,shape:tU}),documentation:tF({colors:["#C8077A","#C2297D"],shape:tN}),tool:tF({colors:["#8912CA","#3E00EA"],shape:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='2269' height='1408' x='-610' y='-509' maskUnits='userSpaceOnUse'%3e%3ccircle cx='1212.8' cy='74.8' r='317.5' fill='url(%23paint0_linear)' transform='rotate(-52 1213 75)'/%3e%3ccircle cx='737.8' cy='445.8' r='317.5' fill='url(%23paint1_linear)' transform='rotate(-116 738 446)'/%3e%3ccircle cx='601.8' cy='52.8' r='418.6' fill='url(%23paint2_linear)' transform='rotate(-117 602 53)'/%3e%3ccircle cx='999.8' cy='364' r='389.1' fill='url(%23paint3_linear)' transform='rotate(31 1000 364)'/%3e%3cellipse cx='-109.2' cy='263.5' fill='url(%23paint4_linear)' rx='429.2' ry='465.8' transform='rotate(-85 -109 264)'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='1301.2' x2='161.4' y1='-1879.7' y2='-969.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='826.2' x2='-313.6' y1='-1508.7' y2='-598.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='718.4' x2='-784.3' y1='-2524' y2='-1324.2' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='1108.2' x2='-288.6' y1='-2031.1' y2='-915.9' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint4_linear' x1='10.4' x2='-1626.5' y1='-2603.8' y2='-1399.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\")"}),service:tF({colors:["#006D8F","#0049A1"],shape:tU}),website:tF({colors:["#0027AF","#270094"],shape:tU}),library:tF({colors:["#98002B","#8D1134"],shape:tU}),other:tF({colors:["#171717","#383838"],shape:tU}),app:tF({colors:["#BE2200","#A41D00"],shape:tU}),apis:tF({colors:tP,shape:tN}),card:tF({colors:["#4BB8A5","#187656"],shape:tU})},tM='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif',tD={htmlFontSize:16,fontFamily:tM,h1:{fontSize:54,fontWeight:700,marginBottom:10},h2:{fontSize:40,fontWeight:700,marginBottom:8},h3:{fontSize:32,fontWeight:700,marginBottom:6},h4:{fontWeight:700,fontSize:28,marginBottom:6},h5:{fontWeight:700,fontSize:24,marginBottom:4},h6:{fontWeight:700,fontSize:20,marginBottom:2}};var t_=r(80012);let tq={MuiCssBaseline:{styleOverrides:e=>({html:{height:"100%",fontFamily:e.typography.fontFamily},body:{height:"100%",fontFamily:e.typography.fontFamily,overscrollBehaviorY:"none",fontSize:"0.875rem",lineHeight:1.43,"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:e.palette.background.paper,width:"1em"},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:e.palette.textVerySubtle,border:`3px solid ${e.palette.background.paper}`},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:"dark"===e.palette.mode?(0,t_.a)(e.palette.textVerySubtle,.2):(0,t_.e$)(e.palette.textVerySubtle,.2)},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:"dark"===e.palette.mode?(0,t_.a)(e.palette.textVerySubtle,.2):(0,t_.e$)(e.palette.textVerySubtle,.2)}},a:{color:"inherit",textDecoration:"none"}})},MuiGrid:{defaultProps:{spacing:2}},MuiSwitch:{defaultProps:{color:"primary"}},MuiTableRow:{styleOverrides:{root:({theme:e})=>({"&:nth-of-type(odd)":{backgroundColor:e.palette.background.default}}),hover:{"&:hover":{cursor:"pointer"}},head:({theme:e})=>({"&:nth-of-type(odd)":{backgroundColor:e.palette.background.paper}})}},MuiTableCell:{styleOverrides:{root:({theme:e})=>({wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:e.spacing(3,2,3,2.5),borderBottom:0}),sizeSmall:({theme:e})=>({padding:e.spacing(1.5,2,1.5,2.5)}),head:({theme:e})=>({wordBreak:"break-word",overflow:"hidden",color:e.palette.textSubtle,fontWeight:"normal",lineHeight:"1"})}},MuiTabs:{styleOverrides:{root:{minHeight:24}}},MuiTab:{styleOverrides:{root:({theme:e})=>({color:e.palette.link,minHeight:24,textTransform:"initial",letterSpacing:"0.07em","&:hover":{color:(0,t_.e$)(e.palette.link,.3),background:(0,t_.a)(e.palette.link,.95)},[e.breakpoints.up("md")]:{minWidth:120,fontSize:e.typography.pxToRem(14),fontWeight:500}}),textColorPrimary:({theme:e})=>({color:e.palette.link})}},MuiTableSortLabel:{styleOverrides:{root:{color:"inherit","&:hover":{color:"inherit"},"&:focus":{color:"inherit"},"&:focus svg":{opacity:.5},"&.Mui-active":{fontWeight:"bold",color:"inherit"}}}},MuiListItemText:{styleOverrides:{dense:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}},MuiButton:{styleOverrides:{text:{padding:void 0}}},MuiChip:{styleOverrides:{root:({theme:e})=>({marginRight:e.spacing(1),marginBottom:e.spacing(1)}),label:({theme:e})=>({lineHeight:e.spacing(2.5),fontWeight:e.typography.fontWeightMedium,fontSize:e.spacing(1.75)}),labelSmall:({theme:e})=>({fontSize:e.spacing(1.5)}),deleteIcon:({theme:e})=>({width:e.spacing(3),height:e.spacing(3),margin:e.spacing(0,.75,0,-.75)}),deleteIconSmall:({theme:e})=>({width:e.spacing(2),height:e.spacing(2),margin:e.spacing(0,.5,0,-.5)})}},MuiCard:{styleOverrides:{root:{display:"flex",flexDirection:"column"}}},MuiCardHeader:{styleOverrides:{root:{paddingBottom:0}}},MuiCardContent:{styleOverrides:{root:{flexGrow:1,"&:last-child":{paddingBottom:void 0}}}},MuiCardActions:{styleOverrides:{root:{justifyContent:"flex-end"}}},MuiLink:{defaultProps:{underline:"hover"}},MuiPaper:{styleOverrides:{root:{backgroundImage:"unset"}}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({"&:focus":{backgroundColor:e.palette.action.focus}})}}},tH=/^&.Mui-([\w-]+)$/;class tV{#m=new Map;constructor(e,t){this.#m=new Map,e&&this.#m.set("v4",e),t&&this.#m.set("v5",t)}getTheme(e){return this.#m.get(e)}}function tW(e){let t=function(e){let{palette:t,htmlFontSize:r=16,fontFamily:i=tM,defaultPageTheme:n="home",pageTheme:a=tz,typography:o}=e;if(!a[n])throw Error(`${n} is not defined in pageTheme.`);return tD.htmlFontSize=r,tD.fontFamily=i,{palette:t,typography:o??tD,page:a[n],getPageTheme:({themeId:e})=>a[e]??a[n]}}(e),r={...tq,...e.components},i=(0,tB.A)({...t,components:r}),n=function(e,t={}){let r={},i={};for(let n of Object.keys(t)){let a=t[n];a&&("styleOverrides"in a&&("MuiCssBaseline"===n?r[n]=function(e,t){if(!t||"string"==typeof t)return;let r="function"==typeof t?t(e):t;if(r)return{"@global":r}}(e,a.styleOverrides):r[n]=function(e){let t=e;if(!e||"object"!=typeof e)return t;for(let r of Object.keys(e)){let i=e[r];if(i&&"object"==typeof i)for(let e of Object.keys(i)){let n=e.match(tH);if(n){let[,a]=n,{[e]:o,...s}=i;o&&(t={...t,[r]:s,[a]:o})}}}return t}(function(e,t){if(t&&"string"!=typeof t){if("object"==typeof t){let r={...e},i=e.spacing(1);return"number"==typeof i&&(r.spacing=(...e)=>(0===e.length?[1]:e).map(e=>{let t="string"==typeof e?e:i*e;return"number"==typeof t?`${t}px`:t}).join(" ")),Object.fromEntries(Object.entries(t).map(([e,t])=>"function"==typeof t?[e,t({theme:r})]:[e,t]))}return t}}(e,a.styleOverrides))),"defaultProps"in a&&(i[n]=a.defaultProps))}return{overrides:r,props:i}}(i,r);return new tV({...(0,tL.A)(t),...n},i)}let tK={light:tW({palette:{type:"light",mode:"light",background:{default:"#F8F8F8",paper:"#FFFFFF"},status:{ok:"#1DB954",warning:"#FF9800",error:"#E22134",running:"#1F5493",pending:"#FFED51",aborted:"#757575"},bursts:{fontColor:"#FEFEFE",slackChannelText:"#ddd",backgroundColor:{default:"#7C3699"},gradient:{linear:"linear-gradient(-137deg, #4BB8A5 0%, #187656 100%)"}},primary:{main:"#1F5493"},banner:{info:"#2E77D0",error:"#E22134",text:"#FFFFFF",link:"#000000",closeButtonColor:"#FFFFFF",warning:"#FF9800"},border:"#E6E6E6",textContrast:"#000000",textVerySubtle:"#DDD",textSubtle:"#6E6E6E",highlight:"#FFFBCC",errorBackground:"#FFEBEE",warningBackground:"#F59B23",infoBackground:"#ebf5ff",errorText:"#CA001B",infoText:"#004e8a",warningText:"#000000",linkHover:"#2196F3",link:"#0A6EBE",gold:"#FFD600",navigation:{background:"#171717",indicator:"#9BF0E1",color:"#b5b5b5",selectedColor:"#FFF",navItem:{hoverBackground:"#404040"},submenu:{background:"#404040"}},pinSidebarButton:{icon:"#181818",background:"#BDBDBD"},tabbar:{indicator:"#9BF0E1"}}}),dark:tW({palette:{type:"dark",mode:"dark",background:{default:"#333333",paper:"#424242"},status:{ok:"#71CF88",warning:"#FFB84D",error:"#F84C55",running:"#3488E3",pending:"#FEF071",aborted:"#9E9E9E"},bursts:{fontColor:"#FEFEFE",slackChannelText:"#ddd",backgroundColor:{default:"#7C3699"},gradient:{linear:"linear-gradient(-137deg, #4BB8A5 0%, #187656 100%)"}},primary:{main:"#9CC9FF",dark:"#82BAFD"},secondary:{main:"#FF88B2"},banner:{info:"#2E77D0",error:"#E22134",text:"#FFFFFF",link:"#000000",closeButtonColor:"#FFFFFF",warning:"#FF9800"},border:"#E6E6E6",textContrast:"#FFFFFF",textVerySubtle:"#727272",textSubtle:"#CCCCCC",highlight:"#FFFBCC",errorBackground:"#FFEBEE",warningBackground:"#F59B23",infoBackground:"#ebf5ff",errorText:"#CA001B",infoText:"#004e8a",warningText:"#000000",linkHover:"#82BAFD",link:"#9CC9FF",gold:"#FFD600",navigation:{background:"#424242",indicator:"#9BF0E1",color:"#b5b5b5",selectedColor:"#FFF",navItem:{hoverBackground:"#404040"},submenu:{background:"#404040"}},pinSidebarButton:{icon:"#404040",background:"#BDBDBD"},tabbar:{indicator:"#9BF0E1"}}})};var tG=r(75962),tY=r(87145);let tZ=[{id:"light",title:"Light Theme",variant:"light",icon:(0,a.jsx)(tY.default,{}),Provider:({children:e})=>(0,a.jsx)(tO,{theme:tK.light,children:e})},{id:"dark",title:"Dark Theme",variant:"dark",icon:(0,a.jsx)(tG.default,{}),Provider:({children:e})=>(0,a.jsx)(tO,{theme:tK.dark,children:e})}];var tQ=r(73466),tJ=r(39067),tX=r.n(tJ);class t0{holders;constructor(...e){this.holders=e}get(e){for(let t of this.holders){let r=t.get(e);if(r)return r}}}var t1=r(9135),t2=r(20549);let t5=(0,t1.tK)("api-context"),t3=e=>{let{apis:t,children:r}=e,i=(0,tC.useContext)(t5)?.atVersion(1),n=i?new t0(t,i):t;return(0,a.jsx)(t5.Provider,{value:(0,t2.B)({1:n}),children:r})};t3.propTypes={apis:tX().shape({get:tX().func.isRequired}).isRequired,children:tX().node};let t4=/^[a-z][a-z0-9]*(?:[-_:][a-z0-9]+)*$/i;function t8(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function t7(e,t){if(null===e)return;if(void 0===e)return void 0===t?void 0:t7(t);if("object"!=typeof e||Array.isArray(e))return e;let r=t8(t)?t:{},i={};for(let t of new Set([...Object.keys(e),...Object.keys(r)])){let n=t7(e[t],r[t]);void 0!==n&&(i[t]=n)}return i}function t6(e){if(null===e)return"null";if(Array.isArray(e))return"array";let t=typeof e;return"number"===t&&isNaN(e)?"nan":"string"===t&&""===e?"empty-string":t}let t9=(e,t,r,i)=>`Invalid type in config for key '${e}' in '${t}', got ${r}, wanted ${i}`,re=(e,t)=>`Missing required config value at '${e}' in '${t}'`,rt=(e,t,r)=>`Unable to convert config value for key '${e}' in '${t}' to a ${r}`;class rr{filteredKeys;notifiedFilteredKeys=new Set;static fromConfigs(e){return 0===e.length?new rr(void 0):e.reduce((e,{data:t,context:r,filteredKeys:i,deprecatedKeys:n})=>{let a=new rr(t,r,e);if(a.filteredKeys=i,n)for(let{key:e,description:t}of n)console.warn(`The configuration key '${e}' of ${r} is deprecated and may be removed soon. ${t||""}`);return a},void 0)}data;context;fallback;prefix;constructor(e,t="mock-config",r,i=""){this.data=e,this.context=t,this.fallback=r,this.prefix=i}has(e){let t=this.readValue(e);return null!==t&&(void 0!==t||(this.fallback?.has(e)??!1))}keys(){return[...new Set([...this.data?Object.keys(this.data):[],...this.fallback?.keys()??[]])].filter(e=>this.data?.[e]!==null)}get(e){let t=this.getOptional(e);if(void 0===t)throw Error(re(this.fullKey(e??""),this.context));return t}getOptional(e){let t=function e(t){return"object"!=typeof t||null===t?t:Array.isArray(t)?t.map(e):Object.fromEntries(Object.entries(t).map(([t,r])=>[t,e(r)]))}(this.readValue(e)),r=this.fallback?.getOptional(e);if(null!==t)return void 0===t?t7(r):void 0===r?t7(t):t7(t,r)}getConfig(e){let t=this.getOptionalConfig(e);if(void 0===t)throw Error(re(this.fullKey(e),this.context));return t}getOptionalConfig(e){let t=this.readValue(e),r=this.fallback?.getOptionalConfig(e);if(t8(t))return this.copy(t,e,r);if(null!==t){if(void 0!==t)throw TypeError(t9(this.fullKey(e),this.context,t6(t),"object"));return r}}getConfigArray(e){let t=this.getOptionalConfigArray(e);if(void 0===t)throw Error(re(this.fullKey(e),this.context));return t}getOptionalConfigArray(e){let t=this.readConfigValue(e,t=>{if(!Array.isArray(t))return{expected:"object-array"};for(let[r,i]of t.entries())if(!t8(i))return{expected:"object-array",value:i,key:`${e}[${r}]`};return!0});return t?t.map((t,r)=>this.copy(t,`${e}[${r}]`)):void 0}getNumber(e){let t=this.getOptionalNumber(e);if(void 0===t)throw Error(re(this.fullKey(e),this.context));return t}getOptionalNumber(e){let t=this.readConfigValue(e,e=>"number"==typeof e||"string"==typeof e||{expected:"number"});if("number"==typeof t||void 0===t)return t;let r=Number(t);if(!Number.isFinite(r))throw Error(rt(this.fullKey(e),this.context,"number"));return r}getBoolean(e){let t=this.getOptionalBoolean(e);if(void 0===t)throw Error(re(this.fullKey(e),this.context));return t}getOptionalBoolean(e){let t=this.readConfigValue(e,e=>"boolean"==typeof e||"number"==typeof e||"string"==typeof e||{expected:"boolean"});if("boolean"==typeof t||void 0===t)return t;let r=String(t).trim();if(/^(?:y|yes|true|1|on)$/i.test(r))return!0;if(/^(?:n|no|false|0|off)$/i.test(r))return!1;throw Error(rt(this.fullKey(e),this.context,"boolean"))}getString(e){let t=this.getOptionalString(e);if(void 0===t)throw Error(re(this.fullKey(e),this.context));return t}getOptionalString(e){return this.readConfigValue(e,e=>"string"==typeof e&&""!==e||{expected:"string"})}getStringArray(e){let t=this.getOptionalStringArray(e);if(void 0===t)throw Error(re(this.fullKey(e),this.context));return t}getOptionalStringArray(e){return this.readConfigValue(e,t=>{if(!Array.isArray(t))return{expected:"string-array"};for(let[r,i]of t.entries())if("string"!=typeof i||""===i)return{expected:"string-array",value:i,key:`${e}[${r}]`};return!0})}fullKey(e){return`${this.prefix}${this.prefix?".":""}${e}`}copy(e,t,r){let i=new rr(e,this.context,r,this.fullKey(t));return i.filteredKeys=this.filteredKeys,i}readConfigValue(e,t){let r=this.readValue(e);if(void 0===r)return this.fallback?.readConfigValue(e,t);if(null===r)return;let i=t(r);if(!0!==i){let{key:t=e,value:n=r,expected:a}=i;throw TypeError(t9(this.fullKey(t),this.context,t6(n),a))}return r}readValue(e){let t=e?e.split("."):[];for(let r of t)if(!t4.test(r))throw TypeError(`Invalid config key '${e}'`);if(void 0===this.data)return;let r=this.data;for(let[e,i]of t.entries())if(t8(r))r=r[i];else if(null!=r)throw TypeError(t9(this.fullKey(t.slice(0,e).join(".")),this.context,t6(r),"object"));return r}}let ri="theme";class rn{themes;static createWithStorage(e){let t=new rn(e);if(!window.localStorage)return t;let r=window.localStorage.getItem(ri)??void 0;return t.setActiveThemeId(r),t.activeThemeId$().subscribe(e=>{e?window.localStorage.setItem(ri,e):window.localStorage.removeItem(ri)}),window.addEventListener("storage",e=>{if(e.key===ri){let e=localStorage.getItem(ri)??void 0;t.setActiveThemeId(e)}}),t}activeThemeId;subject=new E(void 0);constructor(e){this.themes=e}getInstalledThemes(){return this.themes.slice()}activeThemeId$(){return this.subject}getActiveThemeId(){return this.activeThemeId}setActiveThemeId(e){this.activeThemeId=e,this.subject.next(e)}}var ra=r(70334);function ro(e){if(e.length<3)throw Error(`The '${e}' feature flag must have a minimum length of three characters.`);if(e.length>150)throw Error(`The '${e}' feature flag must not exceed 150 characters.`);if(!e.match(/^[a-z]+[a-z0-9-]+$/))throw Error(`The '${e}' feature flag must start with a lowercase letter and only contain lowercase letters, numbers and hyphens. Examples: feature-flag-one, alpha, release-2020`)}class rs{registeredFeatureFlags=[];flags;registerFlag(e){ro(e.name),this.registeredFeatureFlags.push(e)}getRegisteredFlags(){return this.registeredFeatureFlags.slice()}isActive(e){return this.flags||(this.flags=this.load()),this.flags.get(e)===ra.S.Active}save(e){for(let[t,r]of(this.flags||(this.flags=this.load()),e.merge||this.flags.clear(),Object.entries(e.states)))this.flags.set(t,r);let t=Array.from(this.flags.entries()).filter(([,e])=>e===ra.S.Active);window.localStorage.setItem("featureFlags",JSON.stringify(Object.fromEntries(t)))}load(){try{let e=window.localStorage.getItem("featureFlags");if(!e)return new Map;let t=JSON.parse(e);if("object"!=typeof t||null===t||Array.isArray(t))return new Map;let r=Object.entries(t).filter(([e,t])=>(ro(e),t===ra.S.Active));return new Map(r)}catch{return new Map}}}let rl=(0,H.y)({id:"core.apptheme"}),rc=(0,H.y)({id:"core.applanguage"});var rd=r(37860);let ru={default:10,app:50,static:100};class rp{factories=new Map;register(e,t){let r=ru[e],i=this.factories.get(t.api.id);return(!i||!(i.priority>=r))&&(this.factories.set(t.api.id,{priority:r,factory:t}),!0)}get(e){let t=this.factories.get(e.id);if(t)return t.factory}getAllApis(){let e=new Set;for(let{factory:t}of this.factories.values())e.add(t.api);return e}}class rh{factories;static validateFactories(e,t){for(let r of t){let t=[r],i=new Set;for(;t.length;){let n=t.shift(),a=e.get(n);if(a)for(let e of Object.values(a.deps)){if(e.id===r.id)throw Error(`Circular dependency of api factory for ${r}`);i.has(e)||(i.add(e),t.push(e))}}}}apis=new Map;constructor(e){this.factories=e}get(e){return this.load(e)}load(e,t=[]){let r=this.apis.get(e.id);if(r)return r;let i=this.factories.get(e);if(!i)return;if(t.includes(i.api))throw Error(`Circular dependency of api factory for ${i.api}`);let n=this.loadDeps(e,i.deps,[...t,i.api]),a=i.factory(n);return this.apis.set(e.id,a),a}loadDeps(e,t,r){let i={};for(let n in t)if(t.hasOwnProperty(n)){let a=t[n],o=this.load(a,r);if(!o)throw Error(`No API factory available for dependency ${a} of dependent ${e}`);i[n]=o}return i}}function rg(e,t){return()=>({accumulator:e(),visit:t})}function rf(e){return e.props?.children}function rm(e){if(e.props?.path&&e.props?.element)return e.props?.element}var ry=r(65605);let rv=rg(()=>new Set,(e,t)=>{let r=(0,ry.E)(t,"core.plugin");r&&e.add(r)});var rb=r(50509);let rw=e=>{let{children:t}=e,r=(0,rb.gf)(ra.B),i="with"in e?r.isActive(e.with):!r.isActive(e.without);return(0,a.jsx)(a.Fragment,{children:i?t:null})};(0,ry.h)(rw,"core.featureFlagged",!0);let rx={caseSensitive:!1,path:"*",element:"match-all",routeRefs:new Set,plugins:new Set};function rA(e){return e?.type?e.type.displayName??e.type.name??String(e.type):String(e)}let rS=e=>{let t=new Set;return e&&t.add(e),t},rk=rg(()=>({paths:new Map,parents:new Map,objects:[]}),(e,t,r,i)=>{if(i?.isElementAncestor)return i;if(r?.props.element===t)return{...i,isElementAncestor:!0};let n=t.props?.path,a=(0,ry.E)(t,"core.mountPoint");if(a&&n)throw Error(`Path property may not be set directly on a routable extension "${rA(t)}"`);let o=i?.obj?.children??e.objects;if(void 0!==n){if("string"!=typeof n)throw Error(`Element path must be a string at "${rA(t)}"`);let r=n.startsWith("/")?n.slice(1):n,a=t.props.element;if((0,ry.E)(t,"core.gatherMountPoints")){if(a)throw Error(`Mount point gatherers may not have an element prop "${rA(t)}"`);let e={path:r,element:"gathered",routeRefs:new Set,caseSensitive:!!t.props?.caseSensitive,children:[rx],plugins:new Set};return o.push(e),{obj:e,gatherPath:r,routeRef:i?.routeRef,gatherRouteRef:i?.routeRef}}if(a){let[s,...l]=function e(t,r=[]){return tC.Children.forEach(t,t=>{if(!(0,tC.isValidElement)(t))return;let i=(0,ry.E)(t,"core.mountPoint");if(i){let e=(0,ry.E)(t,"core.plugin");r.push({routeRef:i,plugin:e})}e(t.props.children,r)}),r}(a);if(l.length>0)throw Error(`Route element with path "${n}" may not contain multiple routable extensions`);if(!s)return i;let{routeRef:c,plugin:d}=s,u={path:r,element:"mounted",routeRefs:new Set([c]),caseSensitive:!!t.props?.caseSensitive,children:[rx],plugins:rS(d)};return o.push(u),e.paths.set(c,r),e.parents.set(c,i?.routeRef),{obj:u,routeRef:c??i?.routeRef,gatherPath:r,gatherRouteRef:i?.gatherRouteRef}}}if(a){if(i?.gatherPath===void 0)throw Error(`Routable extension "${rA(t)}" with mount point "${a}" must be assigned a path`);i?.obj?.routeRefs.add(a);let r=(0,ry.E)(t,"core.plugin");return r&&i?.obj?.plugins.add(r),e.paths.set(a,i.gatherPath),e.parents.set(a,i?.gatherRouteRef),{...i,routeRef:a}}return i}),rE=rg(()=>({paths:new Map,parents:new Map,objects:[]}),(e,t,r,i)=>{if(r?.props.element===t)return i;let n=i?.obj,a=i?.routeRef,o=i?.sticky,s=t.props?.path,l=n?.children??e.objects,c=!!t.props?.caseSensitive,d=i?.path;if((0,ry.E)(t,"core.gatherMountPoints")){if(!s)throw Error("Mount point gatherer must have a path");d=s}let u=t.props?.element,p=(0,ry.E)(t,"core.mountPoint");if(!p&&(0,tC.isValidElement)(u)&&(p=(0,ry.E)(u,"core.mountPoint")),p){let r=s;if(d&&(r?d=void 0:r=d),!r)throw Error("Mounted routable extension must have a path");e.paths.set(p,r),a&&o?(e.parents.set(p,a),s&&(a=p,o=!1)):(e.parents.set(p,a),a=p),s?(n={caseSensitive:c,path:s,element:"mounted",routeRefs:new Set([p]),children:[rx],plugins:rS((0,ry.E)(t.props.element,"core.plugin"))},l.push(n)):n?.routeRefs.add(p)}if((0,ry.E)(t,"core.gatherMountPoints")&&(o=!0),(0,ry.E)(t,"core.gatherMountPoints")){if(!s)throw Error("Mount point gatherer must have a path");p||(n={caseSensitive:c,path:s,element:"gathered",routeRefs:new Set,children:[rx],plugins:i?.obj?.plugins||new Set},l.push(n))}return{obj:n,path:d,routeRef:a,sticky:o}}),rC=rg(()=>new Set,(e,t)=>{if(t.type===rw){let r=t.props;e.add("with"in r?r.with:r.without)}});var rj=r(21613);let r$=(0,r(93147).Q)("route-ref-type",()=>Symbol("route-ref-type"));function rI(e){return"absolute"===e[r$]}function rR(e){return"sub"===e[r$]}function rT(...e){let t=e.join("/").replace(/\/\/+/g,"/");return"/"!==t&&t.endsWith("/")?t.slice(0,-1):t}var rO=r(46155),rL=r.n(rO);class rB{routePaths;routeParents;routeObjects;routeBindings;appBasePath;constructor(e,t,r,i,n){this.routePaths=e,this.routeParents=t,this.routeObjects=r,this.routeBindings=i,this.appBasePath=n}resolve(e,t){let r,[i,n]=function(e,t,r){let i,n="";if(rI(e))i=e;else if(rR(e))i=e.parent,n=e.path;else if("external"===e[r$]){let t=r.get(e);if(!t)return[void 0,""];if(rI(t))i=t;else if(rR(t))i=t.parent,n=t.path;else throw Error(`ExternalRouteRef was bound to invalid target, ${t}`)}else if(e[r$])throw Error(`Unknown or invalid route ref type, ${e[r$]}`);else throw Error(`Unknown object passed to useRouteRef, got ${e}`);if(!i)return[void 0,""];let a=t.get(i);return void 0===a?[void 0,""]:[i,rT(a,n)]}(e,this.routePaths,this.routeBindings);if(!i)return;r="string"==typeof t?this.trimPath(t):t.pathname?{...t,pathname:this.trimPath(t.pathname)}:t;let a=this.appBasePath+function(e,t,r,i,n){let a=(0,rj.ue)(n,t)??[],o=[],s=-1;for(let t=e;t&&-1===(s=a.findIndex(e=>e.route.routeRefs.has(t)));t=i.get(t))o.unshift(t);0===o.length&&(s-=1);let l=-1===s?"":a[s].pathname,c=o.slice(0,-1).map(t=>{let i=r.get(t);if(void 0===i)throw Error(`No path for ${t}`);if(i.includes(":"))throw Error(`Cannot route to ${e} with parent ${t} as it has parameters`);return i});return`${rT(l,...c)}/`}(i,r,this.routePaths,this.routeParents,this.routeObjects);return(...[e])=>{let t=e&&rL()(e,e=>"string"==typeof e?e.replaceAll(/[&?#;\/]/g,e=>encodeURIComponent(e)):e);return rT(a,(0,rj.tW)(n,t))}}trimPath(e){return e&&e.startsWith(this.appBasePath)?e.slice(this.appBasePath.length):e}}let rU=(0,t1.tK)("routing-context"),rN=({routePaths:e,routeParents:t,routeObjects:r,routeBindings:i,basePath:n="",children:o})=>{let s=new rB(e,t,r,i,n),l=(0,t2.B)({1:s});return(0,a.jsx)(rU.Provider,{value:l,children:o})},rP=(0,t1.tK)("app-context"),rF=({appContext:e,children:t})=>{let r=(0,t2.B)({1:e});return(0,a.jsx)(rP.Provider,{value:r,children:t})};function rz(e){return Error(`Tried to access IdentityApi ${e} before app was loaded`)}function rM(e){console.warn(`WARNING: Call to ${e} is deprecated and will break in the future`)}class rD{target;waitForTarget;resolveTarget=()=>{};signOutTargetUrl="/";#y;constructor(){this.waitForTarget=new Promise(e=>{this.resolveTarget=e})}setTarget(e,t){this.target=e,this.signOutTargetUrl=t.signOutTargetUrl,this.resolveTarget(e)}getUserId(){if(!this.target)throw rz("getUserId");if(!this.target.getUserId)throw Error("IdentityApi does not implement getUserId");return rM("getUserId"),this.target.getUserId()}getProfile(){if(!this.target)throw rz("getProfile");if(!this.target.getProfile)throw Error("IdentityApi does not implement getProfile");return rM("getProfile"),this.target.getProfile()}async getProfileInfo(){return this.waitForTarget.then(e=>e.getProfileInfo())}async getBackstageIdentity(){let e=await this.waitForTarget.then(e=>e.getBackstageIdentity());return e.userEntityRef.match(/^.*:.*\/.*$/)||console.warn(`WARNING: The App IdentityApi provided an invalid userEntityRef, '${e.userEntityRef}'. It must be a full Entity Reference of the form '<kind>:<namespace>/<name>'.`),e}async getCredentials(){return this.waitForTarget.then(e=>e.getCredentials())}async getIdToken(){return this.waitForTarget.then(e=>{if(!e.getIdToken)throw Error("IdentityApi does not implement getIdToken");return rM("getIdToken"),e.getIdToken()})}async signOut(){await this.waitForTarget.then(e=>e.signOut()),await this.#y?.(),this.navigateToUrl(this.signOutTargetUrl)}navigateToUrl(e){window.location.href=e}enableCookieAuth(e){if(this.#y)return;let t=function({discoveryApi:e,fetchApi:t,errorApi:r}){let i,n=!1,a=!0,o=5e3,s="BroadcastChannel"in window?new BroadcastChannel("app-auth-cookie-expires-at"):void 0,l=e=>{let t=(1+3*Math.random())*6e4;return Math.max(e-Date.now(),3e5)-t},c=async()=>{try{let r=await e.getBaseUrl("app"),i=`${r}/.backstage/auth/v1/cookie`,n=await t.fetch(i,{credentials:"include"});if(!n.ok)throw Error(`Request failed with status ${n.status} ${n.statusText}, see request towards ${i} for more details`);let o=await n.json();if(!o.expiresAt)throw Error("No expiration date in response");let c=Date.parse(o.expiresAt);if(Number.isNaN(c))throw Error("Invalid expiration date in response");a=!0,s?.postMessage({action:"COOKIE_REFRESH_SUCCESS",payload:{expiresAt:new Date(c).toISOString()}}),u(l(c))}catch(e){a?(a=!1,o=5e3):(o=Math.min(3e5,2*o),console.error("Session cookie refresh failed",e),r.post(Error("Session refresh failed, see developer console for details"))),u(o)}},d=e=>{let{data:t}=e;if(null!==t&&"object"==typeof t&&"action"in t&&"COOKIE_REFRESH_SUCCESS"===t.action){let e=Date.parse(t.payload.expiresAt);if(Number.isNaN(e))return void console.warn("Received invalid expiration from session refresh channel");u(l(e))}};function u(e){n||(i&&clearTimeout(i),i=setTimeout(c,e))}return s?.addEventListener("message",d),c(),()=>{n=!0,i&&clearTimeout(i),s?.removeEventListener("message",d),s?.close()}}(e);this.#y=async()=>{t();let r=await e.discoveryApi.getBaseUrl("app");try{await fetch(`${r}/.backstage/auth/v1/cookie`,{method:"DELETE",credentials:"include"})}catch{}}}}var r_=r(87354);function rq({children:e}){let t=(0,rb.gf)(rl),r=function(e,t,r){if(void 0!==e){let t=r.find(t=>t.id===e);if(t)return t}if(t){let e=r.find(e=>"dark"===e.variant);if(e)return e}let i=r.find(e=>"light"===e.variant);return i||r[0]}((0,r_.A)(t.activeThemeId$(),t.getActiveThemeId()),!!window.matchMedia&&(()=>{let e=(0,tC.useMemo)(()=>window.matchMedia("(prefers-color-scheme: dark)"),[]),[t,r]=(0,tC.useState)(e.matches);return(0,tC.useEffect)(()=>{let t=e=>{r(e.matches)};return e.addListener(t),()=>{e.removeListener(t)}},[e]),t})(),t.getInstalledThemes());if(!r)throw Error("App has no themes");return(0,a.jsx)(r.Provider,{children:e})}let rH=async()=>(function(e="__APP_INJECTED_RUNTIME_CONFIG__"){let t=[],r=[];if(r){if(!Array.isArray(r))throw Error("Static configuration has invalid format");t.push(...r)}let i=document.querySelectorAll('script[type="backstage.io/config"]');if(i.length>0)for(let e of i)try{let r,i=e.textContent;if(!i)throw Error("tag is empty");try{r=JSON.parse(i)}catch(e){throw Error(`failed to parse config; ${e}`)}if(!Array.isArray(r))throw Error("data is not an array");t.push(...r)}catch(e){throw Error(`Failed to load config from script tag, ${e.message}`)}else if(e!=="__app_injected_runtime_config__".toLocaleUpperCase("en-US"))try{let r=JSON.parse(e);Array.isArray(r)?t.push(...r):t.push({data:r,context:"env"})}catch(e){throw Error(`Failed to load runtime configuration, ${e}`)}let n=window.__APP_CONFIG__;return n&&t.push({context:"window",data:n}),t})();class rV{apis=[];add(e,t){return this.apis.push([e.id,t]),t}build(){return new rW(new Map(this.apis))}}class rW{apis;static builder(){return new rV}static from(e){return new rW(new Map(e.map(([e,t])=>[e.id,t])))}static with(e,t){return new rW(new Map([[e.id,t]]))}constructor(e){this.apis=e}with(e,t){return new rW(new Map([...this.apis,[e.id,t]]))}get(e){return this.apis.get(e.id)}}function rK(){let[e]=(0,s.AV)((0,a.jsx)(s.qh,{index:!0,element:(0,a.jsx)("div",{})}));return!e.index}let rG=(0,tC.createContext)(void 0);var rY=r(77091),rZ=r(17323),rQ=r(92829);let rJ=({pathname:e,search:t,hash:r,attributes:i})=>{let n=(0,rZ.s)();return(0,tC.useEffect)(()=>{n.captureEvent("navigate",`${e}${t}${r}`,{attributes:i})},[n,e,t,r,i]),null},rX=({routeObjects:e})=>{let{pathname:t,search:r,hash:i}=(0,s.zy)(),{params:n,...o}=((e,t)=>{try{let r,i,n=(0,rj.ue)(t,{pathname:e}),a=n?.filter(e=>e?.route.routeRefs?.size>0).pop(),o=a?.route;if(!o||""===o.path&&"/"!==e)return;1===o.routeRefs.size&&(r=o.routeRefs.values().next().value),1===o.plugins.size&&(i=o.plugins.values().next().value);let s=Object.entries(a?.params||{}).reduce((e,[t,r])=>(void 0!==r&&"*"!==t&&(e[t]=r),e),{});return{extension:"App",pluginId:i?.getId()||"root",...r?{routeRef:r.id}:{},_routeNodeType:o.element,params:s}}catch{return}})(t,e)||{params:{}};return(0,a.jsx)(rQ.Ig,{attributes:o,children:(0,a.jsx)(rJ,{pathname:t,search:r,hash:i,attributes:n})})};function r0(e){let{pathname:t}=new URL(e.getOptionalString("app.baseUrl")??"/","http://sample.dev");return t.replace(/\/*$/,"")}function r1({component:e,appIdentityProxy:t,children:r}){let[i,n]=(0,tC.useState)(),o=r0((0,rb.gf)(eN.U));return i?(t.setTarget(i,{signOutTargetUrl:o||"/"}),(0,a.jsx)(a.Fragment,{children:r})):(0,a.jsx)(e,{onSignInSuccess:n})}function r2(e){let{Router:t,SignInPage:r}=(0,rY.n)().getComponents(),i=r0((0,rb.gf)(eN.U)),n=`${i}/*`,o=(0,tC.useContext)(rG);if(!o)throw Error("AppRouter must be rendered within the AppProvider");let{routeObjects:l,appIdentityProxy:c}=o;return r?rK()?(0,a.jsxs)(t,{children:[(0,a.jsx)(rX,{routeObjects:l}),(0,a.jsx)(r1,{component:r,appIdentityProxy:c,children:(0,a.jsx)(s.BV,{children:(0,a.jsx)(s.qh,{path:n,element:(0,a.jsx)(a.Fragment,{children:e.children})})})})]}):(0,a.jsxs)(t,{basename:i,children:[(0,a.jsx)(rX,{routeObjects:l}),(0,a.jsx)(r1,{component:r,appIdentityProxy:c,children:e.children})]}):(c.setTarget({getUserId:()=>"guest",getIdToken:async()=>void 0,getProfile:()=>({email:"guest@example.com",displayName:"Guest"}),getProfileInfo:async()=>({email:"guest@example.com",displayName:"Guest"}),getBackstageIdentity:async()=>({type:"user",userEntityRef:"user:default/guest",ownershipEntityRefs:["user:default/guest"]}),getCredentials:async()=>({}),signOut:async()=>{}},{signOutTargetUrl:i||"/"}),rK())?(0,a.jsxs)(t,{children:[(0,a.jsx)(rX,{routeObjects:l}),(0,a.jsx)(s.BV,{children:(0,a.jsx)(s.qh,{path:n,element:(0,a.jsx)(a.Fragment,{children:e.children})})})]}):(0,a.jsxs)(t,{basename:i,children:[(0,a.jsx)(rX,{routeObjects:l}),e.children]})}(0,ry.h)(r2,"core.type","AppRouter");let r5="language";class r3{static create(e){let t=e?.availableLanguages??["en"];if(t.length!==new Set(t).size)throw Error(`Supported languages may not contain duplicates, got '${t.join("', '")}'`);let r=e?.defaultLanguage??"en";if(!t.includes(r))throw Error(`Initial language must be one of the supported languages, got '${r}'`);return new r3(t,r)}static createWithStorage(e){let t=r3.create(e);if(!window.localStorage)return t;let r=window.localStorage.getItem(r5),{languages:i}=t.getAvailableLanguages();return r&&i.includes(r)&&t.setLanguage(r),t.language$().subscribe(({language:e})=>{e!==window.localStorage.getItem(r5)&&window.localStorage.setItem(r5,e)}),window.addEventListener("storage",e=>{if(e.key===r5){let e=localStorage.getItem(r5)??void 0;e&&t.setLanguage(e)}}),t}#v;#b;#w;constructor(e,t){this.#v=e,this.#b=t,this.#w=new E({language:this.#b})}getAvailableLanguages(){return{languages:this.#v.slice()}}setLanguage(e){let t=e??"en";if(t!==this.#b){if(t&&!this.#v.includes(t))throw Error(`Failed to change language to '${t}', available languages are '${this.#v.join("', '")}'`);this.#b=t,this.#w.next({language:t})}}getLanguage(){return{language:this.#b}}language$(){return this.#w}}var r4=r(47304),r8=r(78859),r7=r(97386);function r6(e){return Object.fromEntries(Object.entries(e).filter(e=>null!==e[1]))}class r9{onLoad;#x=new Set;#A=new Map;#S=new Map;constructor(e){this.onLoad=e}addTranslationResource(e){let t=(0,r8.Y)(e);for(let e of t.resources){let r=this.#k(e.language,t.id);this.#S.has(r)||this.#S.set(r,e.loader)}}#k(e,t){return`${e}/${t}`}needsLoading(e,t){let r=this.#k(e,t);return!!this.#S.get(r)&&!this.#x.has(r)}async load(e,t){let r=this.#k(e,t),i=this.#S.get(r);if(!i||this.#x.has(r))return;let n=this.#A.get(r);if(n)return void await n;let a=i().then(i=>{this.onLoad({language:e,namespace:t,messages:i.messages}),this.#x.add(r)},e=>{throw this.#x.add(r),e});this.#A.set(r,a),await a}}class ie{#E;#C;#j;static fromI18n(e){let t,r=e.services.interpolator,i=r.format;return r.format=(e,r,n,a)=>r?i(e,r,n,a):t?.(e,r,n,a)??e,new ie(Math.random().toString(36).substring(2,8),e=>{t=e})}constructor(e,t){this.#E=t,this.#C=e,this.#j=RegExp(`\\$${e}\\(([^)]+)\\)`)}wrapT(e){return(t,r)=>{let i;this.#E(e=>{if((0,tC.isValidElement)(e)){i||(i=new Map);let t=i.size.toString();return i.set(t,e),`$${this.#C}(${t})`}return e});let n=e(t,r);if(!i)return n;let a=n.split(this.#j);return(0,tC.createElement)(tC.Fragment,null,...a.map((e,t)=>t%2==0?e:i?.get(e)).filter(Boolean))}}}class it{static create(e){let{languages:t}=e.languageApi.getAvailableLanguages(),r=(0,r4.Q_)({fallbackLng:"en",supportedLngs:t,interpolation:{escapeValue:!1,alwaysFormat:!0},ns:[],defaultNS:!1,fallbackNS:!1,initImmediate:!1});if(r.init(),!r.isInitialized)throw Error("i18next was unexpectedly not initialized");let i=ie.fromI18n(r),{language:n}=e.languageApi.getLanguage();"en"!==n&&r.changeLanguage(n);let a=new r9(e=>{r.addResourceBundle(e.language,e.namespace,r6(e.messages),!1,!0)}),o=e?.resources||[];for(let e=o.length-1;e>=0;e--){let t=o[e];"@backstage/TranslationResource"===t.$$type?a.addTranslationResource(t):"@backstage/TranslationMessages"===t.$$type&&r.addResourceBundle("en",t.id,r6(t.messages),!0,!1)}let s=new it(r,a,e.languageApi.getLanguage().language,i);return e.languageApi.language$().subscribe(({language:e})=>{s.#$(e)}),s}#I;#R;#b;#T;#O=new Set;#L=new Set;constructor(e,t,r,i){this.#I=e,this.#R=t,this.#b=r,this.#T=i}getTranslation(e){let t=(0,r7.v)(e);return this.#B(t),this.#U(t)}translation$(e){let t=(0,r7.v)(e);return this.#B(t),new(S())(e=>{let r={},i=()=>{let i=r={};this.#R.load(this.#b,t.id).then(()=>{if(i===r){let r=this.#U(t);r.ready&&e.next(r)}},t=>{i===r&&e.error(Array.isArray(t)?t[0]:t)})},n=()=>{let r=this.#U(t);r.ready?e.next(r):i()};return this.#R.needsLoading(this.#b,t.id)&&i(),this.#L.add(n),()=>{this.#L.delete(n)}})}#$(e){this.#b!==e&&(this.#b=e,this.#I.changeLanguage(e),this.#L.forEach(e=>e()))}#U(e){if(this.#R.needsLoading(this.#b,e.id))return{ready:!1};let t=this.#I.getFixedT(null,e.id);return{ready:!0,t:this.#T.wrapT(t)}}#B(e){if(this.#O.has(e.id))return;this.#O.add(e.id);let t=e.getDefaultMessages();this.#I.addResourceBundle("en",e.id,t,!0,!1);let r=e.getDefaultResource();r&&this.#R.addTranslationResource(r)}}function ir(e){let t=new URL(e);return t.protocol=document.location.protocol,t.hostname=document.location.hostname,t.port=document.location.port,t.toString().replace(/\/$/,"")}class ii{app;constructor(e){this.app=e}getPlugins(){return this.app.getPlugins()}getSystemIcon(e){return this.app.getSystemIcon(e)}getSystemIcons(){return this.app.getSystemIcons()}getComponents(){return this.app.getComponents()}}class ia{apiHolder;configApi;apis;icons;plugins;featureFlags;components;themes;configLoader;defaultApis;bindRoutes;appLanguageApi;translationResources;appIdentityProxy=new rD;apiFactoryRegistry;constructor(e){this.apis=e.apis??[],this.icons=e.icons,this.plugins=new Set(e.plugins??[]),this.featureFlags=e.featureFlags??[],this.components=e.components,this.themes=e.themes,this.configLoader=e.configLoader??rH,this.defaultApis=e.defaultApis??[],this.bindRoutes=e.bindRoutes,this.apiFactoryRegistry=new rp,this.appLanguageApi=r3.createWithStorage({defaultLanguage:e.__experimentalTranslations?.defaultLanguage,availableLanguages:e.__experimentalTranslations?.availableLanguages}),this.translationResources=e.__experimentalTranslations?.resources??[]}getPlugins(){return Array.from(this.plugins)}getSystemIcon(e){return this.icons[e]}getSystemIcons(){return this.icons}getComponents(){return this.components}createRoot(e){let t=this.getProvider();return()=>(0,a.jsx)(t,{children:e})}#N=!1;getProvider(){let e,t;if(this.#N)throw Error("app.getProvider() or app.createRoot() has already been called, and can only be called once");this.#N=!0;let r=new ii(this);return({children:i})=>{let n,o=(0,tC.useRef)(!0),s=(0,tC.useMemo)(()=>rn.createWithStorage(this.themes),[]),{routing:l,featureFlags:c}=(0,tC.useMemo)(()=>{let e=rK();e&&console.warn(`
1
+ (self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["1889"],{74854(e,t,r){"use strict";r.d(t,{c:()=>i});let i=Symbol.for("CATALOG_FILTER_EXISTS_0e15b590c0b343a2bae3e787e84c2111")},11773(e,t,r){"use strict";r.d(t,{P:()=>a,_P:()=>n,oQ:()=>i});let i="default",n="backstage.io/view-url",a="backstage.io/edit-url"},58077(e,t,r){"use strict";r.d(t,{KU:()=>a,U2:()=>o,sM:()=>n});var i=r(11773);function n(e){return{kind:e.kind,namespace:e.metadata.namespace||i.oQ,name:e.metadata.name}}function a(e,t){let r,n,a;if(!e)throw Error("Entity reference must not be empty");let o=t?.defaultKind,s=t?.defaultNamespace||i.oQ;if("string"==typeof e){let t=function(e){let t=e.indexOf(":"),r=e.indexOf("/");-1!==r&&r<t&&(t=-1);let i=-1===t?void 0:e.slice(0,t),n=-1===r?void 0:e.slice(t+1,r),a=e.slice(Math.max(t+1,r+1));if(""===i||""===n||""===a)throw TypeError(`Entity reference "${e}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:i,namespace:n,name:a}}(e);r=t.kind??o,n=t.namespace??s,a=t.name}else r=e.kind??o,n=e.namespace??s,a=e.name;if(r)if(n){if(!a){let t=JSON.stringify(e);throw Error(`Entity reference ${t} had missing or empty name`)}}else{let t=JSON.stringify(e);throw Error(`Entity reference ${t} had missing or empty namespace`)}else{let t=JSON.stringify(e);throw Error(`Entity reference ${t} had missing or empty kind (e.g. did not start with "component:" or similar)`)}return{kind:r,namespace:n,name:a}}function o(e){let t,r,n;return"metadata"in e?(t=e.kind,r=e.metadata.namespace??i.oQ,n=e.metadata.name):(t=e.kind,r=e.namespace??i.oQ,n=e.name),`${t.toLocaleLowerCase("en-US")}:${r.toLocaleLowerCase("en-US")}/${n.toLocaleLowerCase("en-US")}`}},96403(e,t,r){"use strict";r.d(t,{fT:()=>a,jn:()=>o,nC:()=>n,sA:()=>s,vv:()=>i});let i="ownedBy",n="dependsOn",a="dependencyOf",o="partOf",s="hasPart"},16263(e,t,r){"use strict";r.d(t,{Eo:()=>i,I4:()=>n});let i="backstage.io/managed-by-location",n="backstage.io/source-location"},37121(e,t,r){"use strict";r.d(t,{Cr:()=>l,KL:()=>s,aY:()=>o});var i=r(58077),n=r(16263);let a=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;function o(e){if("string"!=typeof e)throw TypeError(`Unable to parse location ref '${e}', unexpected argument ${typeof e}`);let t=e.indexOf(":");if(t<0)throw TypeError(`Unable to parse location ref '${e}', expected '<type>:<target>', e.g. 'url:https://host/path'`);let r=e.substring(0,t).trim(),i=e.substring(t+1).trim();if(!r||!i)throw TypeError(`Unable to parse location ref '${e}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if("http"===r||"https"===r)throw TypeError(`Invalid location ref '${e}', please prefix it with 'url:', e.g. 'url:${e}'`);if(a.test(i))throw TypeError(`Invalid location ref '${e}', target is a javascript: URL`);return{type:r,target:i}}function s(e){let{type:t,target:r}=e;if(t){if(!r)throw TypeError("Unable to stringify location ref, empty target")}else throw TypeError("Unable to stringify location ref, empty type");if(a.test(r))throw TypeError(`Invalid location ref '${t}:${r}', target is a javascript: URL`);return`${t}:${r}`}function l(e){let t=e.metadata?.annotations?.[n.I4]??e.metadata?.annotations?.[n.Eo];if(!t)throw Error(`Entity '${(0,i.U2)(e)}' is missing location`);return o(t)}},4809(e,t,r){"use strict";r.d(t,{z:()=>d});var i=r(31085),n=r(9720),a=r(54917),o=r(82291),s=r(40697),l=r(25577),c=r(55555);function d(e){let{text:t,language:r,showLineNumbers:d=!1,highlightedNumbers:u,wrapLongLines:p,customStyle:h,showCopyCodeButton:g=!1}=e,f=(0,a.A)(),m="dark"===f.palette.type?s.A:l.A,y="dark"===f.palette.type?"#256bf3":"#e6ffed";return(0,i.jsxs)(n.A,{position:"relative",children:[(0,i.jsx)(o.A,{customStyle:h,language:r,style:m,showLineNumbers:d,wrapLines:!0,wrapLongLines:p,lineNumberStyle:{color:f.palette.textVerySubtle},lineProps:e=>u?.includes(e)?{style:{backgroundColor:y}}:{},children:t}),g&&(0,i.jsx)(n.A,{position:"absolute",top:0,right:0,children:(0,i.jsx)(c.l,{text:t})})]})}},55555(e,t,r){"use strict";r.d(t,{l:()=>h});var i=r(31085),n=r(50509),a=r(151),o=r(29365),s=r(71677),l=r(99594),c=r(14041),d=r(11688),u=r(89332),p=r(89595);function h(e){let{t}=(0,p.i)(u.O),{text:r,tooltipDelay:h=1e3,tooltipText:g=t("copyTextButton.tooltipText"),"aria-label":f="Copy text"}=e,m=(0,n.gf)(a.m),[y,v]=(0,c.useState)(!1),[{error:b},w]=(0,d.A)();return(0,c.useEffect)(()=>{b&&m.post(b)},[b,m]),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(s.Ay,{id:"copy-test-tooltip",title:g,placement:"top",leaveDelay:h,onClose:()=>v(!1),open:y,children:(0,i.jsx)(o.A,{onClick:e=>{e.stopPropagation(),v(!0),w(r)},"aria-label":f,children:(0,i.jsx)(l.default,{})})})})}},35571(e,t,r){"use strict";r.d(t,{p:()=>g});var i=r(31085),n=r(42899),a=r(58837),o=r(72501);let s=r.p+"static/missingAnnotation.5df688e7.svg",l=r.p+"static/noInformation.acf1ccf4.svg",c=r.p+"static/createComponent.7c188d7f.svg",d=r.p+"static/noBuild.169833d0.svg",u=(0,a.A)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),p=({missing:e})=>{let t=u();switch(e){case"field":return(0,i.jsx)("img",{src:s,className:t.generalImg,alt:"annotation is missing"});case"info":return(0,i.jsx)("img",{src:l,alt:"no Information",className:t.generalImg});case"content":return(0,i.jsx)("img",{src:c,alt:"create Component",className:t.generalImg});case"data":return(0,i.jsx)("img",{src:d,alt:"no Build",className:t.generalImg});default:return null}},h=(0,a.A)(e=>({root:{backgroundColor:e.palette.background.default,padding:e.spacing(2,0,0,0)},action:{marginTop:e.spacing(2)},imageContainer:{position:"relative"}}),{name:"BackstageEmptyState"});function g(e){let{title:t,description:r,missing:a,action:s}=e,l=h();return(0,i.jsxs)(n.A,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:l.root,spacing:2,children:[(0,i.jsx)(n.A,{item:!0,xs:12,md:6,children:(0,i.jsxs)(n.A,{container:!0,direction:"column",children:[(0,i.jsx)(n.A,{item:!0,xs:!0,children:(0,i.jsx)(o.A,{variant:"h5",children:t})}),(0,i.jsx)(n.A,{item:!0,xs:!0,children:(0,i.jsx)(o.A,{variant:"body1",children:r})}),(0,i.jsx)(n.A,{item:!0,xs:!0,className:l.action,children:s})]})}),(0,i.jsx)(n.A,{item:!0,xs:12,md:6,className:l.imageContainer,children:"string"==typeof a?(0,i.jsx)(p,{missing:a}):a.customImage})]})}},60691(e,t,r){"use strict";r.d(t,{b:()=>p});var i=r(31085),n=r(58837),a=r(58007),o=r(8109),s=r(5951),l=r(55555),c=r(87187);let d=(0,n.A)(e=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:e.spacing(2)},divider:{margin:e.spacing(2)}}),{name:"BackstageErrorPanel"}),u=({error:e,message:t,stack:r,children:n})=>{let c=d();return(0,i.jsxs)(a.A,{dense:!0,children:[(0,i.jsxs)(o.A,{alignItems:"flex-start",children:[(0,i.jsx)(s.A,{classes:{secondary:c.text},primary:"Error",secondary:e}),(0,i.jsx)(l.l,{text:e})]}),(0,i.jsxs)(o.A,{alignItems:"flex-start",children:[(0,i.jsx)(s.A,{classes:{secondary:c.text},primary:"Message",secondary:t}),(0,i.jsx)(l.l,{text:t})]}),r&&(0,i.jsxs)(o.A,{alignItems:"flex-start",children:[(0,i.jsx)(s.A,{classes:{secondary:c.text},primary:"Stack Trace",secondary:r}),(0,i.jsx)(l.l,{text:r})]}),n]})};function p(e){let{title:t,error:r,defaultExpanded:n,titleFormat:a,children:o}=e;return(0,i.jsx)(c.B,{severity:"error",title:t??r.message,defaultExpanded:n,titleFormat:a,children:(0,i.jsx)(u,{error:r.name,message:r.message,stack:r.stack,children:o})})}},280(e,t,r){"use strict";r.d(t,{m:()=>l});var i=r(31085),n=r(72501),a=r(58837),o=r(55940);let s=(0,a.A)(()=>({icon:{color:"#f3ba37",cursor:"pointer",display:"inline-flex"},iconBorder:{color:"inherit",cursor:"pointer",display:"inline-flex"}}),{name:"BackstageFavoriteToggleIcon"});function l(e){let{isFavorite:t}=e,r=s();return(0,i.jsx)(n.A,{component:"span",className:t?r.icon:r.iconBorder,children:t?(0,i.jsx)(o.Gg,{}):(0,i.jsx)(o.KG,{})})}},60603(e,t,r){"use strict";r.d(t,{N_:()=>S});var i=r(31085),n=r(77091),a=r(50509),o=r(19735),s=r(17323),l=r(49203),c=r(58837),d=r(72501),u=r(53373),p=r.n(u),h=r(45250),g=r(14041),f=r(18690),m=r(73657),y=r(39330);let v=(0,c.A)(e=>({visuallyHidden:{clip:"rect(0 0 0 0)",clipPath:"inset(50%)",overflow:"hidden",position:"absolute",userSelect:"none",whiteSpace:"nowrap",height:1,width:1},externalLink:{position:"relative"},externalLinkIcon:{verticalAlign:"bottom",marginLeft:e.spacing(.5)}}),{name:"Link"}),b=()=>{let e=(0,n.n)().getSystemIcon("externalLink")||y.default,t=v();return(0,i.jsx)(e,{className:t.externalLinkIcon})},w=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,x=window.open;if(x&&!x.__backstage){let e=function(...e){let t=String(e[0]);if(w.test(t))throw Error("Rejected window.open() with a javascript: URL as a security precaution");return x.apply(this,e)};e.__backstage=!0,window.open=e}let A=e=>e instanceof Array?e.map(A).join(" ").trim():"object"==typeof e&&e?A(e?.props?.children):["string","number"].includes(typeof e)?String(e):"",S=(0,g.forwardRef)(({onClick:e,noTrack:t,externalLinkIcon:r,...n},c)=>{let u,g,y,x,S,k=v(),E=(0,s.s)(),C=!function(){let[e]=(0,f.AV)((0,i.jsx)(f.qh,{index:!0,element:(0,i.jsx)("div",{})}));return!e.index}()?n.to:(u=String(n.to),g=(()=>{let{pathname:e}=new URL((()=>{try{return(0,a.gf)(o.U).getOptionalString("app.baseUrl")}catch{return}})()??"/","http://sample.dev");return(0,h.trimEnd)(e,"/")})(),y=u,x=/^([a-z+.-]+):/.test(y),S=u.startsWith(g),x||S||(u=g.concat(u)),u),j=A(n.children)||C,$=/^([a-z+.-]+):/.test(C),I=$&&!!/^https?:/.exec(C);if(w.test(C))throw Error("Link component rejected javascript: URL as a security precaution");let R=r=>{e?.(r),t||E.captureEvent("click",j,{attributes:{to:C}})};return $?(0,i.jsxs)(l.A,{...I?{target:"_blank",rel:"noopener"}:{},...n,...n["aria-label"]?{"aria-label":`${n["aria-label"]}, Opens in a new window`}:{},ref:c,href:C,onClick:R,className:p()(k.externalLink,n.className),children:[n.children,r&&(0,i.jsx)(b,{}),(0,i.jsx)(d.A,{component:"span",className:k.visuallyHidden,children:", Opens in a new window"})]}):(0,i.jsx)(l.A,{...n,ref:c,component:m.N_,to:C,onClick:R})})},45463(e,t,r){"use strict";r.d(t,{z:()=>l});var i=r(31085),n=r(64947),a=r(14041),o=r(60603);let s=(0,a.forwardRef)((e,t)=>(0,i.jsx)(o.N_,{ref:t,...e,color:"initial"})),l=(0,a.forwardRef)((e,t)=>(0,i.jsx)(n.A,{ref:t,component:s,...e}))},11629(e,t,r){"use strict";r.d(t,{h:()=>y});var i=r(31085),n=r(58837),a=r(71373),o=r(81411),s=r(14041),l=r(4809),c=r(72482),d=r(1074),u=r(4812);let p=(0,n.A)(e=>({markdown:{"& table":{borderCollapse:"collapse",border:`1px solid ${e.palette.border}`},"& th, & td":{border:`1px solid ${e.palette.border}`,padding:e.spacing(1)},"& td":{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:e.spacing(3,2,3,2.5),borderBottom:0},"& th":{backgroundColor:e.palette.background.paper},"& tr":{backgroundColor:e.palette.background.paper},"& tr:nth-child(odd)":{backgroundColor:e.palette.background.default},"& a":{color:e.palette.link},"& img":{maxWidth:"100%"}}}),{name:"BackstageMarkdownContent"}),h=(e,t)=>t?"string"==typeof t?e+t:s.Children.toArray(t.props.children).reduce(h,e):e,g=({level:e,children:t})=>{let r=s.Children.toArray(t).reduce(h,"").toLocaleLowerCase("en-US").replace(/\W/g,"-");return(0,s.createElement)(`h${e}`,{id:r},t)},f={code:({inline:e,className:t,children:r,...n})=>{let a=String(r).replace(/\n+$/,""),o=/language-(\w+)/.exec(t||"");return!e&&o?(0,i.jsx)(l.z,{language:o[1],text:a}):(0,i.jsx)("code",{className:t,...n,children:r})},h1:g,h2:g,h3:g,h4:g,h5:g,h6:g},m=[[c.A,{tagFiter:!0}],[d.A,{...u.j,attributes:{...u.j.attributes,code:[...u.j.attributes?.code??[],["className"]]}}]];function y(e){let{content:t,dialect:r="gfm",linkTarget:n,transformLinkUri:s,transformImageUri:l,className:c}=e,d=p();return(0,i.jsx)(a.$,{remarkPlugins:"gfm"===r?[o.A]:[],rehypePlugins:"gfm"===r?m:[],className:`${d.markdown} ${c??""}`.trim(),children:t,components:f,linkTarget:n,transformLinkUri:s,transformImageUri:l})}},55489(e,t,r){"use strict";r.d(t,{k:()=>l});var i=r(31085),n=r(9720),a=r(88951),o=r(54917),s=r(14041);function l(e){let t=(0,o.A)(),[r,l]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=setTimeout(()=>l(!0),t.transitions.duration.short);return()=>clearTimeout(e)},[t.transitions.duration.short]),r?(0,i.jsx)(a.A,{...e,"data-testid":"progress"}):(0,i.jsx)(n.A,{display:"none","data-testid":"progress"})}},48266(e,t,r){"use strict";r.d(t,{w:()=>E});var i=r(31085),n=r(9720),a=r(98552),o=r(94390),s=r(95061),l=r(41857),c=r(48543),d=r(26343),u=r(99489),p=r(24568),h=r(30455),g=r(58837),f=r(72501),m=r(92399),y=r(14041),v=r(10437);let b=(0,g.A)(e=>(0,h.A)({icon:{position:"absolute",right:e.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageClosedDropdown"}),w=()=>{let e=b();return(0,i.jsx)(v.A,{className:e.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M7.5 8L6 9.5L12.0703 15.5703L18.1406 9.5L16.6406 8L12.0703 12.5703L7.5 8Z",fill:"currentColor"})})},x=(0,g.A)(e=>(0,h.A)({icon:{position:"absolute",right:e.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageOpenedDropdown"}),A=()=>{let e=x();return(0,i.jsx)(v.A,{className:e.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M16.5 16L18 14.5L11.9297 8.42969L5.85938 14.5L7.35938 16L11.9297 11.4297L16.5 16Z",fill:"currentColor"})})},S=(0,p.A)(e=>(0,h.A)({root:{"label + &":{marginTop:e.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:e.palette.primary.main}},input:{borderRadius:e.shape.borderRadius,position:"relative",backgroundColor:e.palette.background.paper,border:"1px solid #ced4da",fontSize:e.typography.body1.fontSize,padding:e.spacing(1.25,3.25,1.25,1.5),transition:e.transitions.create(["border-color","box-shadow"]),"&:focus":{background:e.palette.background.paper,borderRadius:e.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(l.A),k=(0,g.A)(e=>(0,h.A)({formControl:{margin:e.spacing(1,0)},label:{transform:"initial",fontWeight:"bold",fontSize:e.typography.body2.fontSize,fontFamily:e.typography.fontFamily,color:e.palette.text.primary,"&.Mui-focused":{color:e.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:e.typography.body2.fontSize,fontFamily:e.typography.fontFamily,color:e.palette.text.primary,"&.Mui-focused":{color:e.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function E(e){let{multiple:t,items:r,label:l,placeholder:p,selected:h,onChange:g,triggerReset:v,native:b=!1,disabled:x=!1,margin:E,"data-testid":C="select"}=e,j=k(),[$,I]=(0,y.useState)(h||(t?[]:"")),[R,T]=(0,y.useState)(!1);return(0,y.useEffect)(()=>{I(t?[]:"")},[v,t]),(0,y.useEffect)(()=>{I(h||(t?[]:""))},[h,t]),(0,i.jsx)(n.A,{className:j.root,children:(0,i.jsxs)(s.A,{className:j.formControl,children:[(0,i.jsx)(c.A,{className:j.formLabel,children:l}),(0,i.jsxs)(u.A,{"aria-label":l,value:$,native:b,disabled:x,"data-testid":C,displayEmpty:!0,multiple:t,margin:E,onChange:e=>{I(e.target.value),g(e.target.value)},open:R,onOpen:e=>{x?e.preventDefault():T(r=>!(!t||e.target instanceof HTMLElement)||!r)},onClose:()=>{T(!1)},input:(0,i.jsx)(S,{}),label:l,renderValue:e=>t&&0!==$.length?(0,i.jsx)(n.A,{className:j.chips,children:e.map(e=>{let t=r.find(t=>t.value===e);return!!t&&(0,i.jsx)(o.A,{"data-testid":"chip",label:t?.label,clickable:!0,deleteIcon:(0,i.jsx)(m.default,{"data-testid":"cancel-icon",onMouseDown:e=>e.stopPropagation()}),onDelete:()=>{let t=$.filter(t=>t!==e);I(t),g(t)},className:j.chip},t?.value)})}):(0,i.jsx)(f.A,{children:0===$.length?p||"":r.find(t=>t.value===e)?.label}),IconComponent:()=>R?(0,i.jsx)(A,{}):(0,i.jsx)(w,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[!!p&&!t&&(0,i.jsx)(d.A,{value:[],children:p}),b?r&&r.map(e=>(0,i.jsx)("option",{value:e.value,children:e.label},e.value)):r&&r.map(e=>(0,i.jsxs)(d.A,{value:e.value,children:[t&&(0,i.jsx)(a.A,{color:"primary",checked:$.includes(e.value)||!1,className:j.checkbox}),e.label]},e.value))]})]})})}},23413(e,t,r){"use strict";r.d(t,{Y:()=>I});var i=r(31085),n=r(77091),a=r(50509),o=r(19735),s=r(9720),l=r(64947),c=r(93453),d=r(29365),u=r(46423),p=r(5951),h=r(26343),g=r(28233),f=r(55197),m=r(58837),y=r(72501),v=r(5893),b=r(14041),w=r(23838),x=r(55940),A=r(60603),S=r(89332),k=r(89595);let E=(0,m.A)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),C=({icon:e})=>{let t=(0,n.n)(),r=e?t.getSystemIcon(e)??x.NT:x.NT;return(0,i.jsx)(r,{})},j=({link:e})=>(0,i.jsx)(A.N_,{to:e.url,children:e.title??e.url}),$=({item:e})=>(0,i.jsxs)(h.A,{button:!1,children:[(0,i.jsx)(u.A,{children:(0,i.jsx)(C,{icon:e.icon})}),(0,i.jsx)(p.A,{primary:e.title,secondary:e.links?.reduce((e,t,r)=>[...e,r>0&&(0,i.jsx)("br",{},r),(0,i.jsx)(j,{link:t},t.url)],[])})]});function I(e){let{t}=(0,k.i)(S.O),{title:r,items:n,children:u}=e,{items:p}=(0,w.l)(),[m,A]=(0,b.useState)(!1),[C,j]=(0,b.useState)(null),I=E(),R=(0,a.gf)(o.U).getOptionalConfig("app.support"),T=(0,v.A)(e=>e.breakpoints.down("sm")),O=e=>{j(e.currentTarget),A(!0)},L=()=>{A(!1)};return R?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{display:"flex",ml:1,children:T?(0,i.jsx)(d.A,{color:"primary",size:"small",onClick:O,"data-testid":"support-button","aria-label":"Support",children:(0,i.jsx)(x.NT,{})}):(0,i.jsx)(l.A,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:O,startIcon:(0,i.jsx)(x.NT,{}),children:t("supportButton.title")})}),(0,i.jsxs)(f.Ay,{"data-testid":"support-button-popover",open:m,anchorEl:C,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:L,children:[(0,i.jsxs)(g.A,{className:I.popoverList,autoFocusItem:!!C,children:[r&&(0,i.jsx)(h.A,{button:!1,alignItems:"flex-start",className:I.menuItem,children:(0,i.jsx)(y.A,{variant:"subtitle1",children:r})}),b.Children.map(u,(e,t)=>(0,i.jsx)(h.A,{button:!1,alignItems:"flex-start",className:I.menuItem,children:e},`child-${t}`)),(n??p).map((e,t)=>(0,i.jsx)($,{item:e},`item-${t}`))]}),(0,i.jsx)(c.A,{children:(0,i.jsx)(l.A,{color:"primary",onClick:L,"aria-label":"Close",children:t("supportButton.close")})})]})]}):null}},28499(e,t,r){"use strict";r.d(t,{X:()=>H});var i=r(31085),n=r(89595),a=r(25301),o=r(9720),s=r(29365),l=r(24568),c=r(58837),d=r(54917),u=r(72501),p=r(83313),h=r(89019),g=r(62461),f=r(68887),m=r(63798),y=r(64704),v=r(6774),b=r(75625),w=r(65859),x=r(45917),A=r(5416),S=r(33494),k=r(80113),E=r(26229),C=r(46802),j=r(45250),$=r(14041),I=r(89332),R=r(64947),T=r(48266);let O=(0,c.A)(e=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:e.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:e.spacing(7.5),justifyContent:"space-between",borderBottom:`1px solid ${e.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:e.spacing(2)}}}),{name:"BackstageTableFilters"}),L=e=>{let t=O(),{onChangeFilters:r}=e,{t:a}=(0,n.i)(I.O),[s,l]=(0,$.useState)({...e.selectedFilters}),[c,d]=(0,$.useState)(!1);return(0,$.useEffect)(()=>{r(s)},[s,r]),(0,i.jsxs)(o.A,{className:t.root,children:[(0,i.jsxs)(o.A,{className:t.header,children:[(0,i.jsx)(o.A,{className:t.value,children:a("table.filter.title")}),(0,i.jsx)(R.A,{color:"primary",onClick:()=>{l({}),d(e=>!e)},children:a("table.filter.clearAll")})]}),(0,i.jsx)(o.A,{className:t.filters,children:e.filters?.length&&e.filters.map(e=>(0,i.jsx)(T.w,{triggerReset:c,...e.element,selected:s[e.element.label],onChange:t=>l({...s,[e.element.label]:t})},e.element.label))})]})};var B=r(78467);function U(e){return(0,i.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:e.colSpan,children:(0,i.jsx)(o.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"15rem"},children:(0,i.jsx)(B.A,{size:"5rem"})})})})})}let N={Add:(0,$.forwardRef)((e,t)=>(0,i.jsx)(p.default,{...e,ref:t})),Check:(0,$.forwardRef)((e,t)=>(0,i.jsx)(g.default,{...e,ref:t})),Clear:(0,$.forwardRef)((e,t)=>(0,i.jsx)(y.default,{...e,ref:t})),Delete:(0,$.forwardRef)((e,t)=>(0,i.jsx)(v.default,{...e,ref:t})),DetailPanel:(0,$.forwardRef)((e,t)=>(0,i.jsx)(m.default,{...e,ref:t})),Edit:(0,$.forwardRef)((e,t)=>(0,i.jsx)(b.default,{...e,ref:t})),Export:(0,$.forwardRef)((e,t)=>(0,i.jsx)(E.default,{...e,ref:t})),Filter:(0,$.forwardRef)((e,t)=>(0,i.jsx)(w.default,{...e,ref:t})),FirstPage:(0,$.forwardRef)((e,t)=>(0,i.jsx)(A.default,{...e,ref:t})),LastPage:(0,$.forwardRef)((e,t)=>(0,i.jsx)(S.default,{...e,ref:t})),NextPage:(0,$.forwardRef)((e,t)=>(0,i.jsx)(m.default,{...e,ref:t})),PreviousPage:(0,$.forwardRef)((e,t)=>(0,i.jsx)(f.default,{...e,ref:t})),ResetSearch:(0,$.forwardRef)((e,t)=>(0,i.jsx)(y.default,{...e,ref:t})),Search:(0,$.forwardRef)((e,t)=>(0,i.jsx)(x.default,{...e,ref:t})),SortArrow:(0,$.forwardRef)((e,t)=>(0,i.jsx)(h.default,{...e,ref:t})),ThirdStateCheck:(0,$.forwardRef)((e,t)=>(0,i.jsx)(k.default,{...e,ref:t})),ViewColumn:(0,$.forwardRef)((e,t)=>(0,i.jsx)(C.default,{...e,ref:t}))};function P(e,t){let r=t.split("."),i=e[r[0]];for(let e=1;e<r.length&&void 0!==i;++e)i=i[r[e]];return i}let F=(0,l.A)(e=>({header:{padding:e.spacing(1,2,1,2.5),borderTop:`1px solid ${e.palette.grey.A100}`,borderBottom:`1px solid ${e.palette.grey.A100}`,fontWeight:e.typography.fontWeightBold,position:"static",wordBreak:"normal",textTransform:"uppercase"}}),{name:"BackstageTableHeader"})(a.MTableHeader),z=(0,l.A)(e=>({root:{padding:e.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:e.typography.fontWeightBold}},searchField:{paddingRight:e.spacing(2)}}),{name:"BackstageTableToolbar"})(a.MTableToolbar),M=(0,c.A)(e=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap"},title:{fontWeight:e.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),D=(0,c.A)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"}),_={search:"",filtersOpen:!1,filters:{}};function q(e){let{toolbarRef:t,setSearch:r,hasFilters:a,selectedFiltersLength:l,toggleFilters:c}=e,{t:d}=(0,n.i)(I.O),p=M(),h=(0,$.useCallback)(t=>{e.onSearchChanged(t),r(t)},[e,r]);return a?(0,i.jsxs)(o.A,{className:p.root,children:[(0,i.jsxs)(o.A,{className:p.root,children:[(0,i.jsx)(s.A,{onClick:c,"aria-label":"filter list",children:(0,i.jsx)(w.default,{})}),(0,i.jsxs)(u.A,{className:p.title,children:[d("table.filter.title")," (",l,")"]})]}),(0,i.jsx)(z,{...e,ref:t,onSearchChanged:h})]}):(0,i.jsx)(z,{...e,ref:t,onSearchChanged:h})}function H(e){var t,r,s,l;let{data:c,columns:p,emptyContent:h,options:g,title:f,subtitle:m,localization:y,filters:v,initialState:b,onStateChange:w,components:x,isLoading:A,style:S,...k}=e,{t:E}=(0,n.i)(I.O),C=D(),R=(0,d.A)(),T={..._,...b},[O,B]=(0,$.useState)(T.filtersOpen),z=(0,$.useCallback)(()=>B(e=>!e),[B]),[M,H]=(0,$.useState)(T.filters),[V,W]=(0,$.useState)(T.search);(0,$.useEffect)(()=>{if(w){var e;w((e={search:V,filtersOpen:O,filters:M},(0,j.transform)(e,(e,t,r)=>{(0,j.isEqual)(t,_[r])||(e[r]=t)})))}},[V,O,M,w]);let K=(0,$.useCallback)(e=>p.find(t=>t.title===e)?.field,[p]),G=(0,$.useMemo)(()=>{if("function"==typeof c||!M)return c;let e=Object.values(M);return c&&e.flat().length?c.filter(e=>!!Object.entries(M).filter(([,e])=>!!e.length).every(([t,r])=>{let i=P(e,K(t));return Array.isArray(i)&&Array.isArray(r)?i.some(e=>r.includes(e)):Array.isArray(i)?i.includes(r):Array.isArray(r)?r.includes(i):i===r})):c},[c,M,K]),Y=Object.values(M).flat().length,Z=!!v?.length,Q=(0,$.useCallback)(e=>(0,i.jsx)(q,{setSearch:W,hasFilters:Z,selectedFiltersLength:Y,toggleFilters:z,...e}),[z,Z,Y,W]),J="function"!=typeof c&&0===c.length,X=p.length,ee=(0,$.useMemo)(()=>(function({columnCount:e,emptyContent:t,hasNoRows:r,loading:n}){return o=>n?(0,i.jsx)(U,{colSpan:e}):t&&r?(0,i.jsx)("tbody",{children:(0,i.jsx)("tr",{children:(0,i.jsx)("td",{colSpan:e,children:t})})}):(0,i.jsx)(a.MTableBody,{...o})})({hasNoRows:J,emptyContent:h,columnCount:X,loading:A}),[J,h,X,A]);return(0,i.jsxs)(o.A,{className:C.root,children:[O&&c&&"function"!=typeof c&&v?.length&&(0,i.jsx)(L,{filters:(t=v,r=c,s=p,l=E,t.map(e=>{var t;let i,n;return{type:e.type,element:{placeholder:l("table.filter.placeholder"),label:e.column,multiple:"multiple-select"===e.type,items:[...(t=e.column,i=new Set,n=e=>{null!=e&&i.add(e)},r&&r.forEach(e=>{let r=P(e,s.find(e=>e.title===t)?.field);Array.isArray(r)?r.forEach(n):n(r)}),i)].sort().map(e=>({label:e,value:e}))}}})),selectedFilters:M,onChangeFilters:H}),(0,i.jsx)(a.default,{components:{Header:F,Body:ee,Toolbar:Q,...x},options:g,columns:p.map(e=>{let t=e.headerStyle??{},r=e.cellStyle||{};if(e.highlight)if(t.color=R.palette.textContrast,"object"==typeof r)r.fontWeight=R.typography.fontWeightBold;else{let e=r;r=(t,r,i)=>({...e(t,r,i),fontWeight:R.typography.fontWeightBold})}return{...e,headerStyle:t,cellStyle:r}}),icons:N,title:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.A,{variant:"h5",component:"h2",children:f}),m&&(0,i.jsx)(u.A,{color:"textSecondary",variant:"body1",children:m})]}),data:G,style:{width:"100%",...S},localization:{...y,body:{emptyDataSourceMessage:E("table.body.emptyDataSourceMessage"),...y?.body},pagination:{firstTooltip:E("table.pagination.firstTooltip"),labelDisplayedRows:E("table.pagination.labelDisplayedRows"),labelRowsSelect:E("table.pagination.labelRowsSelect"),lastTooltip:E("table.pagination.lastTooltip"),nextTooltip:E("table.pagination.nextTooltip"),previousTooltip:E("table.pagination.previousTooltip"),...y?.pagination},header:{actions:E("table.header.actions"),...y?.header},toolbar:{searchPlaceholder:E("table.toolbar.search"),searchTooltip:E("table.toolbar.search"),...y?.toolbar}},...k})]})}H.icons=Object.freeze(N)},87187(e,t,r){"use strict";r.d(t,{B:()=>w});var i=r(31085),n=r(268),a=r(58837),o=r(8973),s=r(29655),l=r(91567),c=r(42899),d=r(72501),u=r(9181),p=r(6924),h=r(11629);let g=(e,t)=>("light"===t.palette.type?n.e$:n.a)(t.palette[e].light,.6),f=(e,t)=>("light"===t.palette.type?n.a:n.e$)(t.palette[e].light,.9),m=(0,a.A)(e=>({root:{marginRight:e.spacing(1),fill:({severity:t})=>g(t,e)}})),y=({severity:e})=>{let t=m({severity:e});return(0,i.jsx)(u.default,{classes:t})},v=({severity:e})=>{let t=m({severity:e});return(0,i.jsx)(p.default,{classes:t})},b=(0,a.A)(e=>({panel:{backgroundColor:({severity:t})=>f(t,e),color:({severity:t})=>g(t,e),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:t})=>g(t,e),fontWeight:e.typography.fontWeightBold},markdownContent:{wordBreak:"break-word","& p":{display:"inline"}},message:{width:"100%",display:"block",color:({severity:t})=>g(t,e),backgroundColor:({severity:t})=>f(t,e)},details:{width:"100%",display:"block",color:e.palette.textContrast,backgroundColor:e.palette.background.default,border:`1px solid ${e.palette.border}`,padding:e.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"});function w(e){let{severity:t="warning",title:r,titleFormat:n,message:a,children:u,defaultExpanded:p}=e,g=b({severity:t}),f=t.charAt(0).toLocaleUpperCase("en-US")+t.slice(1)+(r?`: ${r}`:"");return(0,i.jsxs)(o.A,{defaultExpanded:p??!1,className:g.panel,role:"alert",children:[(0,i.jsxs)(s.A,{expandIcon:(0,i.jsx)(v,{severity:t}),className:g.summary,children:[(0,i.jsx)(y,{severity:t}),(0,i.jsx)(d.A,{className:g.summaryText,variant:"subtitle1",children:"markdown"===n?(0,i.jsx)(h.h,{content:f,className:g.markdownContent}):f})]}),(a||u)&&(0,i.jsx)(l.A,{children:(0,i.jsxs)(c.A,{container:!0,children:[a&&(0,i.jsx)(c.A,{item:!0,xs:12,children:(0,i.jsx)(d.A,{className:g.message,variant:"body1",children:a})}),u&&(0,i.jsx)(c.A,{item:!0,xs:12,className:g.details,children:u})]})})]})}},23838(e,t,r){"use strict";r.d(t,{l:()=>s});var i=r(50509),n=r(19735),a=r(89332),o=r(89595);function s(){let e=(0,i.Q2)().get(n.U),t=e?.getOptionalConfig("app.support"),r=(()=>{let{t:e}=(0,o.i)(a.O);return{url:"https://github.com/backstage/backstage/issues",items:[{title:e("supportConfig.default.title"),icon:"warning",links:[{title:e("supportConfig.default.linkTitle"),url:"https://github.com/backstage/backstage/blob/master/app-config.yaml"}]}]}})();return t?{url:t.getString("url"),items:t.getConfigArray("items").flatMap(e=>({title:e.getString("title"),icon:e.getOptionalString("icon"),links:(e.getOptionalConfigArray("links")??[]).flatMap(e=>({url:e.getString("url"),title:e.getOptionalString("title")??""}))}))}:r}},55940(e,t,r){"use strict";r.d(t,{Gg:()=>l,KG:()=>c,NT:()=>s,z9:()=>o});var i=r(31085),n=r(77091),a=r(27799);function o(e){let{id:t,Fallback:r=a.default,...o}=e,s=(0,n.n)().getSystemIcon(t)??r;return(0,i.jsx)(s,{...o})}function s(e){return(0,i.jsx)(o,{id:"help",...e})}function l(e){return(0,i.jsx)(o,{id:"star",...e})}function c(e){return(0,i.jsx)(o,{id:"unstarred",...e})}},84391(e,t,r){"use strict";r.d(t,{U:()=>l});var i=r(31085),n=r(58837),a=r(53373),o=r.n(a);let s=(0,n.A)(e=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:e.spacing(3),paddingBottom:e.spacing(3),paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function l(e){let{className:t,stretch:r,noPadding:n,children:a,...l}=e,c=s();return(0,i.jsx)("article",{...l,className:o()(c.root,t,{[c.stretch]:r,[c.noPadding]:n}),children:a})}},15179(e,t,r){"use strict";r.d(t,{d:()=>d});var i=r(31085),n=r(9720),a=r(58837),o=r(72501),s=r(93285);let l=({title:e,className:t})=>(0,i.jsx)(o.A,{variant:"h4",component:"h2",className:t,"data-testid":"header-title",children:e}),c=({description:e,className:t})=>e?(0,i.jsx)(o.A,{variant:"body2",className:t,"data-testid":"header-description",children:e}):null;function d(e){let t,{description:r,title:o,titleComponent:d,children:u,descriptionComponent:p,textAlign:h="left"}=e,g=(t={textAlign:h},(0,a.A)(e=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:e.spacing(2),textAlign:t.textAlign},leftItemsBox:{flex:"1 1 auto",minWidth:0,overflow:"visible"},rightItemsBox:{flex:"0 1 auto",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginLeft:e.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}))(),f=d||(0,i.jsx)(l,{title:o,className:g.title}),m=p||(0,i.jsx)(c,{description:r,className:g.description});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.m,{title:o}),(0,i.jsxs)(n.A,{className:g.container,children:[(0,i.jsxs)(n.A,{className:g.leftItemsBox,children:[f,m]}),(0,i.jsx)(n.A,{className:g.rightItemsBox,children:u})]})]})}},73462(e,t,r){"use strict";r.d(t,{M:()=>w});var i=r(31085),n=r(42899),a=r(58837),o=r(72501),s=r(18690),l=r(60603),c=r(23838);let d=r.p+"static/mic-drop.f832115f.svg",u=(0,a.A)(e=>({micDrop:{maxWidth:"60%",bottom:e.spacing(2),right:e.spacing(2),[e.breakpoints.down("xs")]:{maxWidth:"96%",bottom:"unset",right:"unset",margin:e.spacing(10,"auto",4)}}}),{name:"BackstageErrorPageMicDrop"}),p=()=>{let e=u();return(0,i.jsx)("img",{src:d,className:e.micDrop,alt:"Girl dropping mic from her hands"})};var h=r(14041),g=r(4809),f=r(89595),m=r(89332);let y=(0,a.A)(e=>({title:{paddingBottom:e.spacing(5),[e.breakpoints.down("xs")]:{paddingBottom:e.spacing(4),fontSize:e.typography.h3.fontSize}}}),{name:"BackstageErrorPageStackDetails"});function v(e){let{stack:t}=e,r=y(),{t:n}=(0,f.i)(m.O),[a,s]=(0,h.useState)(!1);return a?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{variant:"h6",className:r.title,children:(0,i.jsx)(l.N_,{to:"#",onClick:()=>s(!1),children:n("errorPage.showLessDetails")})}),(0,i.jsx)(g.z,{text:t,language:"text",showCopyCodeButton:!0,showLineNumbers:!0})]}):(0,i.jsx)(o.A,{variant:"h6",className:r.title,children:(0,i.jsx)(l.N_,{to:"#",onClick:()=>s(!0),children:n("errorPage.showMoreDetails")})})}let b=(0,a.A)(e=>({container:{padding:e.spacing(8),[e.breakpoints.down("xs")]:{padding:e.spacing(2)}},title:{paddingBottom:e.spacing(5),[e.breakpoints.down("xs")]:{paddingBottom:e.spacing(4),fontSize:e.typography.h3.fontSize}},subtitle:{color:e.palette.textSubtle}}),{name:"BackstageErrorPage"});function w(e){let{status:t="",statusMessage:r,additionalInfo:a,supportUrl:d,stack:u}=e,h=b(),g=(0,s.Zp)(),y=(0,c.l)(),{t:w}=(0,f.i)(m.O);return(0,i.jsxs)(n.A,{container:!0,className:h.container,children:[(0,i.jsxs)(n.A,{item:!0,xs:12,sm:8,md:4,children:[(0,i.jsx)(o.A,{"data-testid":"error",variant:"body1",className:h.subtitle,children:w("errorPage.subtitle",{status:t,statusMessage:r})}),(0,i.jsx)(o.A,{variant:"body1",className:h.subtitle,children:a}),(0,i.jsx)(o.A,{variant:"h2",className:h.title,children:w("errorPage.title")}),(0,i.jsxs)(o.A,{variant:"h6",className:h.title,children:[(0,i.jsx)(l.N_,{to:"#","data-testid":"go-back-link",onClick:()=>g(-1),children:w("errorPage.goBack")}),"... or please"," ",(0,i.jsx)(l.N_,{to:d||y.url,children:"contact support"})," if you think this is a bug."]}),u&&(0,i.jsx)(v,{stack:u})]}),(0,i.jsx)(p,{})]})}},66990(e,t,r){"use strict";r.d(t,{Y:()=>$});var i=r(31085),n=r(50509),a=r(19735),o=r(9720),s=r(42899),l=r(58837),c=r(71677),d=r(72501),u=r(93285),p=r(60603),h=r(38311),g=r(58007),f=r(8109),m=r(55197),y=r(24568),v=r(14041);let b=(0,y.A)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(d.A),w=(0,y.A)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(o.A),x=(0,y.A)({root:{fontStyle:"italic"}},{name:"BreadcrumbsCurrentPage"})(o.A);function A(e){let{children:t,...r}=e,[n,a]=(0,v.useState)(null),o=v.Children.toArray(t),[s,l,...c]=o,d=c.length?c.pop():o[o.length-1],u=o.length>3;return(0,i.jsxs)(v.Fragment,{children:[(0,i.jsxs)(h.A,{"aria-label":"breadcrumb",...r,children:[o.length>1&&(0,i.jsx)(w,{clone:!0,children:s}),o.length>2&&(0,i.jsx)(w,{clone:!0,children:l}),u&&(0,i.jsx)(b,{onClick:e=>{a(e.currentTarget)},children:"..."}),(0,i.jsx)(x,{children:d})]}),(0,i.jsx)(m.Ay,{open:!!n,anchorEl:n,onClose:()=>{a(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,i.jsx)(g.A,{children:c.map((e,t)=>(0,i.jsx)(f.A,{button:!0,children:(0,i.jsx)(w,{clone:!0,children:e})},t))})})]})}var S=r(96919);let k=(0,l.A)(e=>({header:{gridArea:"pageHeader",padding:e.spacing(3),width:"100%",boxShadow:e.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:e.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[e.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:e.page.fontColor,wordBreak:"break-word",fontSize:e.typography.h3.fontSize,marginBottom:0},subtitle:{color:e.page.fontColor,opacity:.8,display:"inline-block",marginTop:e.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:e.spacing(1),color:e.page.fontColor},breadcrumb:{color:e.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-e.spacing(.3),marginBottom:e.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-e.spacing(.3),marginBottom:e.spacing(.3)}}),{name:"BackstageHeader"}),E=({type:e,typeLink:t,classes:r,pageTitle:n})=>e?t?(0,i.jsxs)(A,{className:r.breadcrumb,children:[(0,i.jsx)(p.N_,{to:t,children:e}),(0,i.jsx)(d.A,{children:n})]}):(0,i.jsx)(d.A,{className:r.type,children:e}):null,C=({pageTitle:e,classes:t,tooltip:r})=>{let{contentRef:n}=(0,S.H)(),a=(0,i.jsx)(d.A,{ref:n,tabIndex:-1,className:t.title,variant:"h1",children:e});return r?(0,i.jsx)(c.Ay,{title:r,placement:"top-start",children:a}):a},j=({classes:e,subtitle:t})=>t?"string"!=typeof t?(0,i.jsx)(i.Fragment,{children:t}):(0,i.jsx)(d.A,{className:e.subtitle,variant:"subtitle2",component:"span",children:t}):null;function $(e){let{children:t,pageTitleOverride:r,style:l,subtitle:c,title:d,tooltip:p,type:h,typeLink:g}=e,f=k(),m=(0,n.gf)(a.U).getOptionalString("app.title")||"Backstage",y=r||d,v=d||r,b=`${y} | %s | ${m}`,w=`${y} | ${m}`;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.m,{titleTemplate:b,defaultTitle:w}),(0,i.jsxs)("header",{style:l,className:f.header,children:[(0,i.jsxs)(o.A,{className:f.leftItemsBox,children:[(0,i.jsx)(E,{classes:f,type:h,typeLink:g,pageTitle:v}),(0,i.jsx)(C,{classes:f,pageTitle:v,tooltip:p}),(0,i.jsx)(j,{classes:f,subtitle:c})]}),(0,i.jsx)(s.A,{container:!0,className:f.rightItemsBox,spacing:4,children:t})]})]})}},12439(e,t,r){"use strict";r.d(t,{Y:()=>c});var i=r(31085),n=r(58837),a=r(50868),o=r(53373),s=r.n(o);let l=(0,n.A)(e=>({root:{display:"grid",gridTemplateAreas:"'pageHeader pageHeader pageHeader' 'pageSubheader pageSubheader pageSubheader' 'pageNav pageContent pageSidebar'",gridTemplateRows:"max-content auto 1fr",gridTemplateColumns:"auto 1fr auto",overflowY:"auto",height:"100vh",[e.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function c(e){let{themeId:t,className:r,children:n}=e,o=l();return(0,i.jsx)(a.A,{theme:e=>({...e,page:e.getPageTheme({themeId:t})}),children:(0,i.jsx)("main",{className:s()(o.root,r),children:n})})}},17944(e,t,r){"use strict";r.d(t,{d:()=>o});var i=r(31085),n=r(66990),a=r(12439);function o(e){let{themeId:t,children:r,...o}=e;return(0,i.jsxs)(a.Y,{themeId:t,children:[(0,i.jsx)(n.Y,{...o}),r]})}},96919(e,t,r){"use strict";r.d(t,{G:()=>g,H:()=>f});var i=r(31085),n=r(9720),a=r(58837),o=r(5893),s=r(14041),l=r(28987);let c="sidebarPinState",d={getSidebarPinState(){let e;try{e=JSON.parse(window.localStorage.getItem(c)||"true")}catch{return!0}return!!e},setSidebarPinState:e=>window.localStorage.setItem(c,JSON.stringify(e))};var u=r(72214);let p=(0,a.A)(e=>({root:{width:"100%",transition:"padding-left 0.1s ease-out",isolation:"isolate",[e.breakpoints.up("sm")]:{paddingLeft:e=>e.isPinned?e.sidebarConfig.drawerWidthOpen:e.sidebarConfig.drawerWidthClosed},[e.breakpoints.down("xs")]:{paddingBottom:e=>e.sidebarConfig.mobileSidebarHeight},"@media print":{padding:"0px !important"}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),h=(0,s.createContext)({content:{contentRef:void 0}});function g(e){let[t,r]=(0,s.useState)(()=>d.getSidebarPinState()),{sidebarConfig:a}=(0,s.useContext)(l.yY),c=(0,s.useRef)(null),g=(0,s.useMemo)(()=>({content:{contentRef:c}}),[c]);(0,s.useEffect)(()=>{d.setSidebarPinState(t)},[t]);let f=(0,o.A)(e=>e.breakpoints.down("xs"),{noSsr:!0}),m=p({isPinned:t,sidebarConfig:a});return(0,i.jsx)(u.qj,{value:{isPinned:t,toggleSidebarPinState:()=>r(!t),isMobile:f},children:(0,i.jsx)(h.Provider,{value:g,children:(0,i.jsx)(n.A,{className:m.root,children:e.children})})})}function f(){let{content:e}=(0,s.useContext)(h);return{focusContent:(0,s.useCallback)(()=>{e?.contentRef?.current?.focus()},[e]),contentRef:e?.contentRef}}},72214(e,t,r){"use strict";r.d(t,{Ut:()=>u,qj:()=>d});var i=r(31085),n=r(9135),a=r(20549),o=r(14041);let s={isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1},l=(0,o.createContext)(s),c=(0,n.tK)("sidebar-pin-state-context");function d(e){let{children:t,value:r}=e;return(0,i.jsx)(l.Provider,{value:r,children:(0,i.jsx)(c.Provider,{value:(0,a.B)({1:r}),children:t})})}let u=()=>{let e=(0,o.useContext)(c),t=(0,o.useContext)(l);if(void 0===e)return t||s;let r=e.atVersion(1);if(void 0===r)throw Error("No context found for version 1.");return r}},28987(e,t,r){"use strict";r.d(t,{Rv:()=>a,U1:()=>c,hC:()=>n,i8:()=>s,yY:()=>l});var i=r(14041);let n={drawerWidthClosed:72,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:72,iconSize:24,iconPadding:24,selectedIndicatorWidth:3,userBadgePadding:18,userBadgeDiameter:36,mobileSidebarHeight:56},a=e=>({...n,...e,iconContainerWidth:n.drawerWidthClosed,iconSize:n.drawerWidthClosed-2*n.iconPadding,userBadgeDiameter:n.drawerWidthClosed-2*n.userBadgePadding}),o={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:n.defaultOpenDelayMs+200},s=e=>({...o,...e}),l=(0,i.createContext)({sidebarConfig:n,submenuConfig:o}),c=(0,i.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}})},89332(e,t,r){"use strict";r.d(t,{O:()=>i});let i=(0,r(97386).h)({id:"core-components",messages:{signIn:{title:"Sign In",loginFailed:"Login failed",customProvider:{title:"Custom User",subtitle:"Enter your own User ID and credentials.\n This selection will not be stored.",userId:"User ID",tokenInvalid:"Token is not a valid OpenID Connect JWT Token",continue:"Continue",idToken:"ID Token (optional)"},guestProvider:{title:"Guest",subtitle:"Enter as a Guest User.\n You will not have a verified identity, meaning some features might be unavailable.",enter:"Enter"}},skipToContent:"Skip to content",copyTextButton:{tooltipText:"Text copied to clipboard"},simpleStepper:{reset:"Reset",finish:"Finish",next:"Next",skip:"Skip",back:"Back"},errorPage:{subtitle:"ERROR {{status}}: {{statusMessage}}",title:"Looks like someone dropped the mic!",goBack:"Go back",showMoreDetails:"Show more details",showLessDetails:"Show less details"},emptyState:{missingAnnotation:{title:"Missing Annotation",actionTitle:"Add the annotation to your component YAML as shown in the highlighted example below:",readMore:"Read more"}},supportConfig:{default:{title:"Support Not Configured",linkTitle:"Add `app.support` config key"}},errorBoundary:{title:"Please contact {{slackChannel}} for help."},oauthRequestDialog:{title:"Login Required",authRedirectTitle:"This will trigger a http redirect to OAuth Login.",login:"Log in",rejectAll:"Reject All",message:"Sign-in to allow {{appTitle}} access to {{provider}} APIs and identities."},supportButton:{title:"Support",close:"Close"},table:{filter:{title:"Filters",clearAll:"Clear all",placeholder:"All results"},body:{emptyDataSourceMessage:"No records to display"},pagination:{firstTooltip:"First Page",labelDisplayedRows:"{from}-{to} of {count}",labelRowsSelect:"rows",lastTooltip:"Last Page",nextTooltip:"Next Page",previousTooltip:"Previous Page"},toolbar:{search:"Filter"},header:{actions:"Actions"}},alertDisplay:{message_one:"({{ count }} newer message)",message_other:"({{ count }} newer messages)"},autoLogout:{stillTherePrompt:{title:"Logging out due to inactivity",buttonText:"Yes! Don't log me out"}},dependencyGraph:{fullscreenTooltip:"Toggle fullscreen"},proxiedSignInPage:{title:"You do not appear to be signed in. Please try reloading the browser page."},logViewer:{searchField:{placeholder:"Search"}}}})},92829(e,t,r){"use strict";r.d(t,{Ig:()=>c,pn:()=>l});var i=r(31085),n=r(9135),a=r(20549),o=r(14041);let s=(0,n.tK)("analytics-context"),l=()=>{let e=(0,o.useContext)(s);if(void 0===e)return{routeRef:"unknown",pluginId:"root",extension:"App"};let t=e.atVersion(1);if(void 0===t)throw Error("No context found for version 1.");return t},c=e=>{let{attributes:t,children:r}=e,n={...l(),...t},o=(0,a.B)({1:n});return(0,i.jsx)(s.Provider,{value:o,children:r})}},62934(e,t,r){"use strict";r.d(t,{J:()=>a,t:()=>n});let i=(0,r(93147).Q)("core-plugin-api:analytics-tracker-events",()=>({mostRecentGatheredNavigation:void 0,mostRecentRoutableExtensionRender:void 0,beforeUnloadRegistered:!1})),n="_ROUTABLE-EXTENSION-RENDERED";class a{analyticsApi;context;constructor(e,t={routeRef:"unknown",pluginId:"root",extension:"App"}){this.analyticsApi=e,this.context=t,i.beforeUnloadRegistered||(addEventListener("beforeunload",()=>{i.mostRecentGatheredNavigation&&(this.analyticsApi.captureEvent({...i.mostRecentGatheredNavigation,...i.mostRecentRoutableExtensionRender}),i.mostRecentGatheredNavigation=void 0,i.mostRecentRoutableExtensionRender=void 0)},{once:!0,passive:!0}),i.beforeUnloadRegistered=!0)}setContext(e){this.context=e}captureEvent(e,t,{value:r,attributes:a}={}){let{_routeNodeType:o,...s}=this.context;if(e===n){i.mostRecentGatheredNavigation&&(i.mostRecentRoutableExtensionRender={context:{...s,extension:"App"}});return}if(i.mostRecentGatheredNavigation){try{this.analyticsApi.captureEvent({...i.mostRecentGatheredNavigation,...i.mostRecentRoutableExtensionRender})}catch(e){console.warn("Error during analytics event capture. %o",e)}i.mostRecentGatheredNavigation=void 0,i.mostRecentRoutableExtensionRender=void 0}if("navigate"===e&&"gathered"===o&&"root"===s.pluginId){i.mostRecentGatheredNavigation={action:e,subject:t,value:r,attributes:a,context:s};return}try{this.analyticsApi.captureEvent({action:e,subject:t,value:r,attributes:a,context:s})}catch(e){console.warn("Error during analytics event capture. %o",e)}}}},17323(e,t,r){"use strict";r.d(t,{s:()=>l});var i=r(92829),n=r(96876),a=r(50509),o=r(14041),s=r(62934);function l(){let e=(0,o.useRef)(null),t=(0,i.pn)(),r=function(){try{return(0,a.gf)(n.c)}catch{return{captureEvent:()=>{}}}}(),l=(null===e.current&&(e.current=new s.J(r)),e.current);return l.setContext(t),l}},96876(e,t,r){"use strict";r.d(t,{c:()=>i});let i=(0,r(44007).y)({id:"core.analytics"})},77091(e,t,r){"use strict";r.d(t,{n:()=>S});var i=r(31085),n=r(14041),a=r(9135);class o{static create(e){return new o(e.type,new Set(e.versions))}#e;#t;constructor(e,t){this.#e=e,this.#t=t}TPublic=void 0;TInternal=void 0;isType=e=>this.#r(e);toInternal=e=>{if(!this.#r(e))throw TypeError(`Invalid opaque type, expected '${this.#e}', but got '${this.#i(e)}'`);if(!this.#t.has(e.version)){let t=Array.from(this.#t).map(this.#n);t.length>1&&(t[t.length-1]=`or ${t[t.length-1]}`);let r=t.length>2?t.join(", "):t.join(" ");throw TypeError(`Invalid opaque type instance, got version ${this.#n(e.version)}, expected ${r}`)}return e};createInstance(e,t){return Object.assign(t,{$$type:this.#e,...e&&{version:e}})}#r(e){return null!==e&&"object"==typeof e&&e.$$type===this.#e}#i(e){return"object"!=typeof e?`<${typeof e}>`:null===e?"<null>":"$$type"in e?String(e.$$type):String(e)}#n=e=>e?`'${e}'`:"undefined"}let s=o.create({type:"@backstage/ExtensionDefinition",versions:["v1","v2"]}),l=o.create({type:"@backstage/FrontendPlugin",versions:["v1"]}),c=o.create({type:"@backstage/ExtensionInput",versions:[void 0]});function d(e,t,r){let i=r&&t?`${t}/${r}`:t||r;if(!i)throw Error(`Extension must declare an explicit namespace or name as it could not be resolved from context, kind=${e} namespace=${t} name=${r}`);return e?`${e}:${i}`:i}function u(e,t){let r,i=s.toInternal(e),{name:n,kind:a,namespace:o,override:l,attachTo:u,...p}=i,h=o??t?.namespace,g=d(a,h,n);return{...p,attachTo:(r=e=>{if(c.isType(e)){let{context:t}=c.toInternal(e);if(!t)throw Error("Invalid input object without a parent extension used as attachment point");return{id:d(t.kind,h,t.name),input:t.input}}if("relative"in e&&e.relative)return{id:d(e.relative.kind,h,e.relative.name),input:e.input};if("id"in e)return{id:e.id,input:e.input};throw Error("Invalid attachment point specification")},Array.isArray(u)?u.map(r):r(u)),$$type:"@backstage/Extension",version:i.version,id:g,toString:()=>`Extension{id=${g}}`}}var p=r(50509),h=r(44007);let g=(0,h.y)({id:"core.app-tree"}),f=(0,h.y)({id:"core.icons"}),m=o.create({versions:["v1"],type:"@backstage/SwappableComponentRef"}),y=(0,h.y)({id:"core.swappable-components"});function v(e){let t=t=>(0,i.jsx)("div",{"data-testid":e.id,...t}),r=m.createInstance("v1",{id:e.id,TProps:null,TExternalProps:null,toString:()=>`SwappableComponentRef{id=${e.id}}`,defaultComponent:(0,n.lazy)(async()=>({default:await e.loader?.()??t})),transformProps:e.transformProps}),a=e=>{let t=(()=>{try{return(0,p.gf)(y)}catch(e){return}})();if(!t){let t=m.toInternal(r),n=t.defaultComponent,a=t.transformProps?.(e)??e;return(0,i.jsx)(n,{...a})}let n=t.getComponent(r);return(0,i.jsx)(n,{...e})};return Object.assign(a,{ref:r}),a}let b=v({id:"core-progress"}),w=v({id:"core-not-found-error-page"}),x=v({id:"core-error-display",loader:()=>e=>(0,i.jsx)("div",{"data-testid":"core-error-display",children:e.error.message})}),A=(0,r(93147).Q)("legacy-plugin-compatibility-store",()=>new WeakMap),S=()=>{let e=function(){try{return(0,p.Q2)()}catch{return}}(),t=e?.get(g),r=e?.get(f),o=(0,a.qO)("app-context"),c=(0,n.useMemo)(()=>{let e;if(!t||!r)return;let{tree:n}=t.getTree(),a=({plugin:e,...t})=>(0,i.jsx)(x,{...t,plugin:e&&function e(t){let r=t.pluginId,i=[],n=new Map;for(let e of t.extensions??[]){let t=s.toInternal(e),a=u(e,{namespace:r});i.push(a),n.set(a.id,{...t,namespace:r})}if(i.length!==n.size){let e=i.map(e=>e.id),t=Array.from(new Set(e.filter((t,r)=>e.indexOf(t)!==r)));throw Error(`Plugin '${r}' provided duplicate extensions: ${t.join(", ")}`)}return l.createInstance("v1",{id:r,routes:t.routes??{},externalRoutes:t.externalRoutes??{},featureFlags:t.featureFlags??[],extensions:i,infoOptions:t.info,async info(){throw Error(`Attempted to load plugin info for plugin '${r}', but the plugin instance is not installed in an app`)},getExtension(e){let t=n.get(e);if(!t)throw Error(`Attempted to get non-existent extension '${e}' from plugin '${r}'`);return t},toString:()=>`Plugin{id=${r}}`,withOverrides(i){let n=new Set(i.extensions.map(e=>u(e,{namespace:r}).id)),a=(t.extensions??[]).filter(e=>!n.has(u(e,{namespace:r}).id));return e({...t,pluginId:r,extensions:[...a,...i.extensions],info:{...t.info,...i.info}})}})}({pluginId:e.getId()})});return{getPlugins(){if(e)return e;let t=new Set;for(let e of n.nodes.values()){let r=e.spec.plugin;r&&t.add(function(e){let t=A.get(e);if(t)return t;let r=()=>{throw Error("Not implemented in legacy plugin compatibility layer")};return t={getId:()=>e.id,get routes(){return{}},get externalRoutes(){return{}},getApis:r,getFeatureFlags:r,provide:r},A.set(e,t),t}(r))}return e=Array.from(t)},getSystemIcon:e=>r.getIcon(e),getSystemIcons:()=>Object.fromEntries(r.listIconKeys().map(e=>[e,r.getIcon(e)])),getComponents:()=>({NotFoundErrorPage:w,BootErrorPage(){throw Error("The BootErrorPage app component should not be accessed by plugins")},Progress:b,Router(){throw Error("The Router app component should not be accessed by plugins")},ErrorBoundaryFallback:a})}},[t,r]);if(c)return c;if(!o)throw Error("App context is not available");let d=o.atVersion(1);if(!d)throw Error("AppContext v1 not available");return d}},65605(e,t,r){"use strict";r.d(t,{E:()=>o,h:()=>a});let i=(0,r(93147).Q)("component-data-store",()=>new WeakMap),n="__backstage_data";function a(e,t,r){let a=e[n]??i.get(e);if(a||(Object.defineProperty(e,n,{enumerable:!1,configurable:!0,writable:!1,value:a={map:new Map}}),i.set(e,a)),a.map.has(t)){let r=e.displayName||e.name;throw Error(`Attempted to attach duplicate data "${t}" to component "${r}"`)}a.map.set(t,r)}function o(e,t){if(!e)return;let r=e.type;if(!r)return;let a=r[n]??i.get(r);if(a)return a.map.get(t)}},18275(e,t,r){"use strict";r.d(t,{NC:()=>g,QJ:()=>h,zZ:()=>f});var i=r(31085),n=r(14041),a=r(17323),o=r(92829),s=r(77091),l=r(16647),c=r(65605);class d extends n.Component{static getDerivedStateFromError(e){return{error:e}}state={error:void 0};handleErrorReset=()=>{this.setState({error:void 0})};render(){let{error:e}=this.state,{app:t,plugin:r}=this.props,{ErrorBoundaryFallback:n}=t.getComponents();return e?(0,i.jsx)(n,{error:e,resetError:this.handleErrorReset,plugin:r}):this.props.children}}var u=r(62934),p=r(55963);function h(e){let{component:t,mountPoint:r,name:o}=e;return f({component:{lazy:()=>t().then(e=>{let t=t=>{let o=(0,a.s)();try{(0,l.S)(r)}catch(e){if("object"==typeof e&&null!==e){let{message:t}=e;if("string"==typeof t&&t.startsWith("No path for "))throw Error(`Routable extension component with mount point ${r} was not discovered in the app element tree. Routable extension components may not be rendered by other components and must be directly available as an element within the App provider component.`)}throw e}return(0,n.useEffect)(()=>{o.captureEvent(u.t,"")},[o]),(0,i.jsx)(e,{...t})},s=o||e.displayName||e.name||"LazyComponent";return t.displayName=`RoutableExtension(${s})`,t})},data:{"core.mountPoint":r},name:o})}function g(e){let{component:t,name:r}=e;return f({component:t,name:r})}function f(e){let t,{data:r={},name:a}=e;if(a||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name."),"lazy"in e.component){let r=e.component.lazy;t=(0,n.lazy)(()=>r().then(e=>({default:e}),e=>{let t=a?` of the ${a} extension`:"";throw new p.HK(`Failed lazy loading${t}, try to reload the page`,e)}))}else t=e.component.sync;let l=a||t.displayName||t.name||"Component";return{expose(e){let u=l=>{let c=(0,s.n)(),{Progress:u}=c.getComponents(),p=r?.["core.mountPoint"];return(0,i.jsx)(n.Suspense,{fallback:(0,i.jsx)(u,{}),children:(0,i.jsx)(d,{app:c,plugin:e,children:(0,i.jsx)(o.Ig,{attributes:{pluginId:e.getId(),...a&&{extension:a},...p&&{routeRef:p.id}},children:(0,i.jsx)(t,{...l})})})})};for(let[t,i]of((0,c.h)(u,"core.plugin",e),(0,c.h)(u,"core.extensionName",a),Object.entries(r)))(0,c.h)(u,t,i);return u.displayName=`Extension(${l})`,u}}}},62335(e,t,r){"use strict";r.d(t,{O:()=>c});var i=r(14041),n=r(65605),a=r(50509),o=r(70334);function s(e,t,r,a){return i.Children.toArray(e).flatMap(e=>{if(!(0,i.isValidElement)(e))return[];if(e.type===i.Fragment)return s(e.props.children,t,r,a);if((0,n.E)(e,"core.featureFlagged")){let i=e.props;return("with"in i?t.isActive(i.with):!t.isActive(i.without))?s(e.props.children,t,r,a):[]}if(void 0===r||r(e))return[e];if(a)throw Error(a);return s(e.props.children,t,r,a)})}class l{node;featureFlagsApi;constructor(e,t){this.node=e,this.featureFlagsApi=t}selectByComponentData(e){return new l(s(this.node,this.featureFlagsApi,t=>void 0!==(0,n.E)(t,e.key),e.withStrictError),this.featureFlagsApi)}findComponentData(e){return s(this.node,this.featureFlagsApi,t=>void 0!==(0,n.E)(t,e.key)).map(t=>(0,n.E)(t,e.key)).filter(e=>void 0!==e)}getElements(){return s(this.node,this.featureFlagsApi)}}function c(e,t,r=[]){let n=new l(e,(0,a.gf)(o.B));return(0,i.useMemo)(()=>t(n),[e,...r])}},29894(e,t,r){"use strict";r.d(t,{i:()=>n});class i{config;constructor(e){this.config=e}getId(){return this.config.id}getApis(){return this.config.apis??[]}getFeatureFlags(){return this.config.featureFlags?.slice()??[]}get routes(){return this.config.routes??{}}get externalRoutes(){return this.config.externalRoutes??{}}provide(e){return e.expose(this)}toString(){return`plugin{${this.config.id}}`}}function n(e){return new i(e)}},96296(e,t,r){"use strict";r.d(t,{H:()=>a});var i=r(47253);class n{[i.b]="absolute";id;params;constructor(e,t){this.id=e,this.params=t}get title(){return this.id}toString(){return this.#a?`routeRef{id=${this.#a},legacyId=${this.id}}`:`routeRef{type=absolute,id=${this.id}}`}$$type="@backstage/RouteRef";version="v1";T=void 0;alias=void 0;#a=void 0;getParams(){return this.params}getDescription(){return this.#a?this.#a:this.id}setId(e){if(!e)throw Error("RouteRef id must be a non-empty string");if(this.#a&&this.#a!==e)throw Error(`RouteRef was referenced twice as both '${this.#a}' and '${e}'`);this.#a=e}}function a(e){return new n(e.id,e.params??[])}},47253(e,t,r){"use strict";r.d(t,{b:()=>i});let i=(0,r(93147).Q)("route-ref-type",()=>Symbol("route-ref-type"))},16647(e,t,r){"use strict";r.d(t,{S:()=>l});var i=r(14041),n=r(18690),a=r(9135),o=r(50509);let s=(0,r(44007).y)({id:"core.route-resolution"});function l(e){let{pathname:t}=(0,n.zy)(),r=function(){try{return(0,o.gf)(s)}catch{return}}(),l=(0,a.qO)("routing-context"),c=l?.atVersion(1),d=(0,i.useMemo)(()=>{if(!r)return null;try{return r?.resolve(e,{sourcePath:t})}catch{return null}},[r,e,t]),u=(0,i.useMemo)(()=>c&&c.resolve(e,{pathname:t}),[c,e,t]);if(null!==d){let t="optional"in e&&e.optional;if(!d&&!t)throw Error(`No path for ${e}`);return d}if(!l)throw Error("Routing context is not available");if(!c)throw Error("RoutingContext v1 not available");let p="optional"in e&&e.optional;if(!u&&!p)throw Error(`No path for ${e}`);return u}},33947(e,t,r){"use strict";r.d(t,{o:()=>a});var i=r(63719);async function n(e){try{let t=await e.text();if(t){if(e.headers.get("content-type")?.startsWith("application/json"))try{let e=JSON.parse(t);if(e.error&&e.response)return e}catch{}return{error:{name:"Error",message:`Request failed with status ${e.status} ${e.statusText}, ${t}`},response:{statusCode:e.status}}}}catch{}return{error:{name:"Error",message:`Request failed with status ${e.status} ${e.statusText}`},response:{statusCode:e.status}}}class a extends Error{response;body;cause;statusCode;statusText;static async fromResponse(e){let t=await n(e),r=t.response.statusCode||e.status,o=e.statusText,s=`Request failed with ${r} ${o}`,l=(0,i.cy)(t.error);return new a({message:s,response:e,data:t,cause:l,statusCode:r,statusText:o})}constructor(e){super(e.message),this.name="ResponseError",this.response=e.response,this.body=e.data,this.cause=e.cause,this.statusCode=e.statusCode,this.statusText=e.statusText}}},51700(e,t,r){"use strict";function i(e){return!("object"!=typeof e||null===e||Array.isArray(e))&&"string"==typeof e.name&&""!==e.name&&"string"==typeof e.message}r.d(t,{b:()=>i})},55963(e,t,r){"use strict";r.d(t,{HK:()=>l,EH:()=>s,m_:()=>o});var i=r(51700),n=r(63719);class a extends Error{cause;constructor(e,t){let r=e;if(void 0!==t){const e=(0,n.M5)(t);r?r+=`; caused by ${e}`:r=`caused by ${e}`}super(r),Error.captureStackTrace?.(this,this.constructor),this.name&&"Error"!==this.name||"Error"!==this.constructor.name&&(this.name=this.constructor.name),this.cause=(0,i.b)(t)?t:void 0}}class o extends a{name="NotFoundError"}class s extends a{name="NotImplementedError"}class l extends a{constructor(e,t){super(e,t),this.name=(0,i.b)(t)?t.name:"Error"}}},63719(e,t,r){"use strict";r.d(t,{M5:()=>o,cy:()=>a});var i=r(69655),n=r(51700);function a(e){let t=(0,i.deserializeError)(e);return e.stack||(t.stack=void 0),t}function o(e){if((0,n.b)(e)){let t=String(e);return"[object Object]"!==t?t:`${e.name}: ${e.message}`}return`unknown error '${e}'`}},50375(e,t,r){"use strict";r.d(t,{k:()=>i});let i=(0,r(44007).y)({id:"core.alert"})},19735(e,t,r){"use strict";r.d(t,{U:()=>i});let i=(0,r(44007).y)({id:"core.config"})},71531(e,t,r){"use strict";r.d(t,{I:()=>i});let i=(0,r(44007).y)({id:"core.discovery"})},151(e,t,r){"use strict";r.d(t,{m:()=>i});let i=(0,r(44007).y)({id:"core.error"})},70334(e,t,r){"use strict";r.d(t,{B:()=>a,S:()=>n});var i=r(44007);let n={None:0,Active:1},a=(0,i.y)({id:"core.featureflags"})},76637(e,t,r){"use strict";r.d(t,{a:()=>i});let i=(0,r(44007).y)({id:"core.fetch"})},48203(e,t,r){"use strict";r.d(t,{K:()=>i});let i=(0,r(44007).y)({id:"core.identity"})},37860(e,t,r){"use strict";r.d(t,{J:()=>i});let i=(0,r(44007).y)({id:"core.translation"})},44007(e,t,r){"use strict";r.d(t,{y:()=>n});class i{config;constructor(e){if(this.config=e,!e.id.split(".").flatMap(e=>e.split("-")).every(e=>e.match(/^[a-z][a-z0-9]*$/)))throw Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${e.id}'`)}get id(){return this.config.id}get T(){throw Error(`tried to read ApiRef.T of ${this}`)}toString(){return`apiRef{${this.config.id}}`}}function n(e){return new i(e)}},33141(e,t,r){"use strict";function i(e,t){return"id"in e?{api:e,deps:{},factory:()=>t}:e}r.d(t,{b:()=>i})},50509(e,t,r){"use strict";r.d(t,{Q2:()=>a,gf:()=>o}),r(31085);var i=r(9135),n=r(55963);function a(){let e=(0,i.qO)("api-context");if(!e)throw new n.EH("API context is not available");let t=e.atVersion(1);if(!t)throw new n.EH("ApiContext v1 not available");return t}function o(e){let t=a().get(e);if(!t)throw new n.EH(`No implementation available for ${e}`);return t}},97386(e,t,r){"use strict";r.d(t,{h:()=>a,v:()=>o});var i=r(78859);class n{#o;#s;#l;constructor(e){this.#o=e.id,this.#s=function(e){let t=[];return!function e(r,i){for(let[n,a]of Object.entries(r))"string"==typeof a?t.push([i+n,a]):e(a,`${i}${n}.`)}(e,""),Object.fromEntries(t)}(e.messages)}$$type="@backstage/TranslationRef";version="v1";get id(){return this.#o}get T(){throw Error("Not implemented")}getDefaultMessages(){return this.#s}setDefaultResource(e){this.#l=e}getDefaultResource(){return this.#l}toString(){return`TranslationRef{id=${this.id}}`}}function a(e){let t=new n(e);return e.translations&&t.setDefaultResource((0,i.o)({ref:t,translations:e.translations})),t}function o(e){if("@backstage/TranslationRef"!==e.$$type)throw Error(`Invalid translation ref, bad type '${e.$$type}'`);if("v1"!==e.version)throw Error(`Invalid translation ref, bad version '${e.version}'`);return e}},78859(e,t,r){"use strict";function i(e){if("@backstage/TranslationResource"!==e.$$type)throw Error(`Invalid translation resource, bad type '${e.$$type}'`);if("v1"!==e.version)throw Error(`Invalid translation resource, bad version '${e.version}'`);return e}function n(e){return{$$type:"@backstage/TranslationResource",version:"v1",id:e.ref.id,resources:Object.entries(e.translations).map(([e,t])=>({language:e,loader:()=>t().then(e=>{let t=e.default;return{messages:t?.$$type==="@backstage/TranslationMessages"?t.messages:t}})}))}}r.d(t,{Y:()=>i,o:()=>n})},89595(e,t,r){"use strict";r.d(t,{i:()=>l});var i=r(14041),n=r(50509),a=r(151),o=r(37860);let s=new WeakSet,l=e=>{let t=(0,n.gf)(a.m),r=(0,n.gf)(o.J),[l,c]=(0,i.useState)(()=>r.getTranslation(e)),d=(0,i.useMemo)(()=>r.translation$(e),[r,e]),u=(0,i.useCallback)(r=>{if(!s.has(e)){let i=`Failed to load translation resource '${e.id}'; caused by ${r}`;console.error(i),t.post(Error(i)),s.add(e)}},[t,e]);(0,i.useEffect)(()=>{let e=d.subscribe({next(e){e.ready&&c(e)},error(e){u(e)}});return()=>{e.unsubscribe()}},[d,u]);let p=(0,i.useRef)(!0);if((0,i.useEffect)(()=>{p.current?p.current=!1:c(r.getTranslation(e))},[r,e]),!l.ready)throw new Promise(e=>{let t=d.subscribe({next(r){r.ready&&(t.unsubscribe(),e())},error(r){t.unsubscribe(),u(r),e()}})});return{t:l.t}}},57891(e,t,r){"use strict";r.d(t,{L:()=>W,Y:()=>K});var i=r(85942);let n="amazonaws.com";function a(e){let t,r,i=e.getOptionalString("endpoint"),a=e.getOptionalBoolean("s3ForcePathStyle")??!1;if(i){try{let e=new URL(i);t=e.host,r=e.pathname}catch{throw Error(`invalid awsS3 integration config, endpoint '${i}' is not a valid URL`)}if("/"!==r)throw Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${i}'`)}else t=n;let o=e.getOptionalString("accessKeyId"),s=e.getOptionalString("secretAccessKey")?.trim();return{host:t,endpoint:i,s3ForcePathStyle:a,accessKeyId:o,secretAccessKey:s,roleArn:e.getOptionalString("roleArn"),externalId:e.getOptionalString("externalId")}}class o{integrationConfig;static factory=({config:e})=>{let t,r=((t=(e.getOptionalConfigArray("integrations.awsS3")??[]).map(a)).some(e=>e.host===n)||t.push({host:n}),t);return(0,i.oS)(r.map(e=>new o(e)),e=>e.config.host)};get type(){return"awsS3"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}constructor(e){this.integrationConfig=e}resolveUrl(e){return(0,i.ku)(e)}resolveEditUrl(e){return e}}function s(e){let t=e.getOptionalString("accessKeyId"),r=e.getOptionalString("secretAccessKey")?.trim(),i=e.getOptionalString("roleArn"),n=e.getOptionalString("externalId"),a=e.getString("region");return{host:e.getOptionalString("host")||`${a}.console.aws.amazon.com`,accessKeyId:t,secretAccessKey:r,roleArn:i,externalId:n,region:a}}class l{integrationConfig;static factory=({config:e})=>{let t=(e.getOptionalConfigArray("integrations.awsCodeCommit")??[]).map(s);return(0,i.oS)(t.map(e=>new l(e)),e=>e.config.host)};get type(){return"awsCodeCommit"}get config(){return this.integrationConfig}get title(){return this.integrationConfig.host}constructor(e){this.integrationConfig=e}resolveUrl(e){return(0,i.ku)(e)}resolveEditUrl(e){var t,r,i;let n=new URL(e).pathname.match(/^\/codesuite\/codecommit\/repositories\/([^\/]+)\//);if(!n)throw Error("");let[,a]=n;return t=e,r=a,i="edit",t.replace(RegExp(`/codesuite/codecommit/repositories/${r}/(browse|files/edit)/`),`/codesuite/codecommit/repositories/${r}/${"edit"===i?"files/edit":i}/`)}}class c{static fromRepoUrl(e){let t,r,i,n,a=new URL(e),o=a.pathname.split("/").map(e=>decodeURIComponent(e));if("_git"===o[2]?(t=o[1],r=i=o[3]):"_git"===o[3]?(t=o[1],r=o[2],i=o[4]):"_git"===o[4]&&(t=`${o[1]}/${o[2]}`,r=o[3],i=o[5]),!t||!r||!i)throw Error("Azure URL must point to a git repository");let s=a.searchParams.get("path")??void 0,l=a.searchParams.get("version");if(l){if("GB"!==l.slice(0,2))throw Error("Azure URL version must point to a git branch");n=l.slice(2)}return new c(a.origin,t,r,i,s,n)}#c;#d;#u;#p;#h;#g;constructor(e,t,r,i,n,a){this.#c=e,this.#d=t,this.#u=r,this.#p=i,this.#h=n,this.#g=a}#f=(...e)=>{let t=new URL(this.#c);return t.pathname=e.map(e=>encodeURIComponent(e)).join("/"),t};toRepoUrl(){let e;return e=this.#u===this.#p?this.#f(this.#d,"_git",this.#p):this.#f(this.#d,this.#u,"_git",this.#p),this.#h&&e.searchParams.set("path",this.#h),this.#g&&e.searchParams.set("version","GB"+this.#g),e.toString()}toFileUrl(){if(!this.#h)throw Error("Azure URL must point to a specific path to be able to download a file");let e=this.#f(this.#d,this.#u,"_apis","git","repositories",this.#p,"items");return e.searchParams.set("api-version","6.0"),e.searchParams.set("path",this.#h),this.#g&&e.searchParams.set("version",this.#g),e.toString()}toArchiveUrl(){let e=this.#f(this.#d,this.#u,"_apis","git","repositories",this.#p,"items");return e.searchParams.set("recursionLevel","full"),e.searchParams.set("download","true"),e.searchParams.set("api-version","6.0"),this.#h&&e.searchParams.set("scopePath",this.#h),this.#g&&e.searchParams.set("version",this.#g),e.toString()}toCommitsUrl(){let e=this.#f(this.#d,this.#u,"_apis","git","repositories",this.#p,"commits");return e.searchParams.set("api-version","6.0"),this.#g&&e.searchParams.set("searchCriteria.itemVersion.version",this.#g),e.toString()}getOwner(){return this.#d}getProject(){return this.#u}getRepo(){return this.#p}getPath(){return this.#h}getRef(){return this.#g}}let d="dev.azure.com",u=["clientId","clientSecret","managedIdentityClientId","tenantId","personalAccessToken"],p=new Map([["ClientSecret",["clientId","clientSecret","tenantId"]],["ManagedIdentity",["clientId"]],["ManagedIdentityClientAssertion",["clientId","managedIdentityClientId","tenantId"]],["PersonalAccessToken",["personalAccessToken"]]]);function h(e){for(let t of p.entries()){let[r,i]=t,n=u.filter(e=>!i.includes(e));if(i.every(t=>void 0!==e[t])&&n.every(t=>void 0===e[t]))return{kind:r,organizations:e.organizations,...i.reduce((t,r)=>(t[r]=e[r],t),{})}}throw Error("is not a valid credential")}function g(e){let t,r=e.getOptionalString("host")??d,n=e.getOptionalConfigArray("credentials")?.map(e=>({organizations:e.getOptionalStringArray("organizations"),personalAccessToken:e.getOptionalString("personalAccessToken")?.trim(),tenantId:e.getOptionalString("tenantId")?.trim(),clientId:e.getOptionalString("clientId")?.trim(),clientSecret:e.getOptionalString("clientSecret")?.trim(),managedIdentityClientId:e.getOptionalString("managedIdentityClientId")?.trim()})),a=e.getOptionalString("token")?.trim();if(void 0!==e.getOptional("credential")&&void 0!==e.getOptional("credentials"))throw Error("Invalid Azure integration config, 'credential' and 'credentials' cannot be used together. Use 'credentials' instead.");if(void 0!==e.getOptional("token")&&void 0!==e.getOptional("credentials"))throw Error("Invalid Azure integration config, 'token' and 'credentials' cannot be used together. Use 'credentials' instead.");if(void 0!==a){let e=[{personalAccessToken:a}];n=n?.concat(e)??e}if(void 0!==e.getOptional("credential")){let t=[{organizations:e.getOptionalStringArray("credential.organizations"),token:e.getOptionalString("credential.token")?.trim(),tenantId:e.getOptionalString("credential.tenantId"),clientId:e.getOptionalString("credential.clientId"),clientSecret:e.getOptionalString("credential.clientSecret")?.trim()}];n=n?.concat(t)??t}if(!(0,i.HO)(r))throw Error(`Invalid Azure integration config, '${r}' is not a valid host`);if(void 0!==n){let e=n?.reduce((e,t,r)=>{let i;try{h(t)}catch(e){i=e.message}return void 0!==i&&e.push(`credential at position ${r+1} ${i}`),e},Array.of()).concat(Object.entries(n.filter(e=>void 0!==e.organizations&&e.organizations.length>0).reduce((e,t,r)=>(t.organizations?.forEach(t=>{e[t]||(e[t]=[]),e[t].push(r+1)}),e),{})).filter(([e,t])=>t.length>1).reduce((e,[t,r])=>(e.push(`organization ${t} is specified multiple times in credentials at positions ${r.slice(0,r.length-1).join(", ")} and ${r[r.length-1]}`),e),Array.of()));if(e?.length>0)throw Error(`Invalid Azure integration config for ${r}: ${e.join("; ")}`);if((t=n.map(e=>h(e))).some(e=>"PersonalAccessToken"!==e.kind)&&r!==d)throw Error(`Invalid Azure integration config for ${r}, only personal access tokens can be used with hosts other than ${d}`);if(t.filter(e=>void 0===e.organizations||0===e.organizations.length).length>1)throw Error(`Invalid Azure integration config for ${r}, you cannot specify multiple credentials without organizations`)}return{host:r,credentials:t,commitSigningKey:e.getOptionalString("commitSigningKey")}}class f{integrationConfig;static factory=({config:e})=>{let t,r=((t=(e.getOptionalConfigArray("integrations.azure")??[]).map(g)).some(e=>e.host===d)||t.push({host:d}),t);return(0,i.oS)(r.map(e=>new f(e)),e=>e.config.host)};constructor(e){this.integrationConfig=e}get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){let{url:t,base:r}=e;if((0,i.AY)(t))return t;try{let i=c.fromRepoUrl(r),n=new URL(r),a=new URL(`https://a.com${i.getPath()??""}`),o=new URL(t,a).pathname;return n.searchParams.set("path",o),e.lineNumber&&(n.searchParams.set("line",String(e.lineNumber)),n.searchParams.set("lineEnd",String(e.lineNumber+1)),n.searchParams.set("lineStartColumn","1"),n.searchParams.set("lineEndColumn","1")),n.toString()}catch{return new URL(t,r).toString()}}resolveEditUrl(e){return e}}var m=r(52536),y=r.n(m);let v="bitbucket.org",b="https://api.bitbucket.org/2.0";function w(e){let t=e.getOptionalString("username"),r=e.getOptionalString("appPassword")?.trim(),i=e.getOptionalString("token"),n=e.getOptionalString("clientId")?.trim(),a=e.getOptionalString("clientSecret")?.trim();if(t&&!i&&!r)throw Error("Bitbucket Cloud integration must be configured with as username and either a token or an appPassword.");if(n&&!a||a&&!n)throw Error("Bitbucket Cloud integration has incomplete OAuth configuration. Both clientId and clientSecret are required.");return{host:v,apiBaseUrl:b,username:t,appPassword:r,token:i,clientId:n,clientSecret:a,commitSigningKey:e.getOptionalString("commitSigningKey")}}class x{integrationConfig;static factory=({config:e})=>{let t,r=(0===(t=(e.getOptionalConfigArray("integrations.bitbucketCloud")??[]).map(w)).length&&t.push({host:v,apiBaseUrl:b}),t);return(0,i.oS)(r.map(e=>new x(e)),e=>e.config.host)};constructor(e){this.integrationConfig=e}get type(){return"bitbucketCloud"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){let t=(0,i.ku)(e);if(e.lineNumber){let r=new URL(t);return r.hash=`lines-${e.lineNumber}`,r.toString()}return t}resolveEditUrl(e){let t=y()(e),r=new URL(e);return r.searchParams.set("mode","edit"),r.searchParams.set("at",t.ref),r.toString()}}var A=r(45250);let S="bitbucket.org",k="https://api.bitbucket.org/2.0";function E(e){let t=e.getOptionalString("host")??S,r=e.getOptionalString("apiBaseUrl"),n=e.getOptionalString("token")?.trim(),a=e.getOptionalString("username"),o=e.getOptionalString("appPassword")?.trim();if(!(0,i.HO)(t))throw Error(`Invalid Bitbucket integration config, '${t}' is not a valid host`);return r=r?(0,A.trimEnd)(r,"/"):t===S?k:`https://${t}/rest/api/1.0`,{host:t,apiBaseUrl:r,token:n,username:a,appPassword:o,commitSigningKey:e.getOptionalString("commitSigningKey")}}class C{integrationConfig;static factory=({config:e})=>{let t,r=((t=(e.getOptionalConfigArray("integrations.bitbucket")??[...e.getOptionalConfigArray("integrations.bitbucketCloud")??[],...e.getOptionalConfigArray("integrations.bitbucketServer")??[]]).map(E)).some(e=>e.host===S)||t.push({host:S,apiBaseUrl:k}),t);return(0,i.oS)(r.map(e=>new C(e)),e=>e.config.host)};constructor(e){this.integrationConfig=e}get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){let t=(0,i.ku)(e);if(!e.lineNumber)return t;let r=new URL(t);return"bitbucket.org"===this.integrationConfig.host?r.hash=`lines-${e.lineNumber}`:r.hash=`${e.lineNumber}`,r.toString()}resolveEditUrl(e){let t=y()(e),r=new URL(e);return r.searchParams.set("mode","edit"),r.searchParams.set("spa","0"),r.searchParams.set("at",t.ref),r.toString()}}function j(e){let t=e.getString("host"),r=e.getOptionalString("apiBaseUrl"),n=e.getOptionalString("token")?.trim(),a=e.getOptionalString("username"),o=e.getOptionalString("password");if(!(0,i.HO)(t))throw Error(`Invalid Bitbucket Server integration config, '${t}' is not a valid host`);return r=r?(0,A.trimEnd)(r,"/"):`https://${t}/rest/api/1.0`,{host:t,apiBaseUrl:r,token:n,username:a,password:o,commitSigningKey:e.getOptionalString("commitSigningKey")}}class ${integrationConfig;static factory=({config:e})=>{let t=(e.getOptionalConfigArray("integrations.bitbucketServer")??[]).map(j);return(0,i.oS)(t.map(e=>new $(e)),e=>e.config.host)};constructor(e){this.integrationConfig=e}get type(){return"bitbucketServer"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){let t=(0,i.ku)(e);if(e.lineNumber){let r=new URL(t);return r.hash=e.lineNumber.toString(),r.toString()}return t}resolveEditUrl(e){return e.includes("?")?e.substring(0,e.indexOf("?")):e}}function I(e){let t=e.getString("host"),r=e.getOptionalString("baseUrl"),n=e.getOptionalString("cloneUrl"),a=e.getOptionalBoolean("disableEditUrl"),o=e.getString("gitilesBaseUrl"),s=e.getOptionalString("username"),l=e.getOptionalString("password")?.trim();if((0,i.HO)(t)){if(r&&!(0,i.AY)(r))throw Error(`Invalid Gerrit integration config, '${r}' is not a valid baseUrl`);else if(n&&!(0,i.AY)(n))throw Error(`Invalid Gerrit integration config, '${n}' is not a valid cloneUrl`);else if(!(0,i.AY)(o))throw Error(`Invalid Gerrit integration config, '${o}' is not a valid gitilesBaseUrl`)}else throw Error(`Invalid Gerrit integration config, '${t}' is not a valid host`);return r=r?(0,A.trimEnd)(r,"/"):`https://${t}`,n=n?(0,A.trimEnd)(n,"/"):r,{host:t,baseUrl:r,cloneUrl:n,disableEditUrl:a,gitilesBaseUrl:o=(0,A.trimEnd)(o,"/"),username:s,password:l,commitSigningKey:e.getOptionalString("commitSigningKey")}}function R(e,t){let r=new URL(e.gitilesBaseUrl),i=new URL(t),n=(0,A.trimStart)(i.pathname.substring(2*!!i.pathname.startsWith("/a/")).replace(r.pathname,""),"/").split("/").filter(e=>!!e),a=(0,A.takeWhile)(n,e=>"+"!==e);if(0===a.length)throw Error(`Unable to parse gitiles url: ${t}`);let o=n.slice(a.length+1),s=(0,A.join)(a,"/");if(o.length>0&&"HEAD"===o[0]){let e=o.shift(),r=(0,A.join)(o,"/");return{project:s,ref:e,refType:"head",path:r||"/",basePath:(0,A.trimEnd)(t.replace(r,""),"/")}}if(o.length>0&&40===o[0].length){let e=o.shift(),r=(0,A.join)(o,"/");return{project:s,ref:e,refType:"sha",path:r||"/",basePath:(0,A.trimEnd)(t.replace(r,""),"/")}}let l=(0,A.join)(o,"/"),c=/^refs\/(?<refsReference>heads|tags)\/(?<ref>.*?)(\/|$)/.exec(l);if(c){let e,r=c[0],{refsReference:i,ref:n}=c.groups||{},a=l.replace(r,"");switch(i){case"heads":e="branch";break;case"tags":e="tag";break;default:throw Error(`Unable to parse gitiles url: ${t}`)}return{project:s,ref:n,refType:e,path:a||"/",basePath:(0,A.trimEnd)(t.replace(a,""),"/")}}throw Error(`Unable to parse gitiles : ${t}`)}r(1048).Buffer;class T{integrationConfig;static factory=({config:e})=>{let t=(e.getOptionalConfigArray("integrations.gerrit")??[]).map(I);return(0,i.oS)(t.map(e=>new T(e)),e=>e.config.host)};constructor(e){this.integrationConfig=e}get type(){return"gerrit"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){let t,{url:r,base:i,lineNumber:n}=e;if(r.startsWith("/")){let{basePath:e}=R(this.config,i);return e+r}return t=r?new URL(r,i):new URL(i),n&&(t.hash=n.toString()),t.toString()}resolveEditUrl(e){var t,r,i,n;if(this.config.disableEditUrl)return e;let a=R(this.config,e);return t=this.config,r=a.project,i=a.ref,n=a.path,`${t.baseUrl}/admin/repos/edit/repo/${r}/branch/refs/heads/${i}/file/${(0,A.trimStart)(n,"/")}`}}var O=r(87393);let L="gitlab.com",B="https://gitlab.com/api/v4";function U(e){let t=e.getString("host"),r=e.getOptionalString("apiBaseUrl"),n=e.getOptionalString("token")?.trim(),a=e.getOptionalString("baseUrl");if(r?r=(0,A.trimEnd)(r,"/"):t===L&&(r=B),a=a?(0,A.trimEnd)(a,"/"):`https://${t}`,(0,i.HO)(t))if(r&&(0,i.AY)(r)){if(!(0,i.AY)(a))throw Error(`Invalid GitLab integration config, '${a}' is not a valid baseUrl`)}else throw Error(`Invalid GitLab integration config, '${r}' is not a valid apiBaseUrl`);else throw Error(`Invalid GitLab integration config, '${t}' is not a valid host`);return{host:t,token:n,apiBaseUrl:r,baseUrl:a,commitSigningKey:e.getOptionalString("commitSigningKey")}}class N{integrationConfig;static factory=({config:e})=>{let t,r=((t=(e.getOptionalConfigArray("integrations.gitlab")??[]).map(U)).some(e=>e.host===L)||t.push({host:L,apiBaseUrl:B,baseUrl:`https://${L}`}),t);return(0,i.oS)(r.map(e=>new N(e)),e=>e.config.host)};constructor(e){this.integrationConfig=e}get type(){return"gitlab"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){return(0,i.ku)(e)}resolveEditUrl(e){return e.replace(/\/\-\/(blob|tree|edit)\//,"/-/edit/")}}r(1048).Buffer;class P{config;static factory=({config:e})=>{let t=(e.getOptionalConfigArray("integrations.gitea")??[]).map(e=>(function(e){let t=e.getString("host"),r=e.getOptionalString("baseUrl"),n=e.getOptionalString("username"),a=e.getOptionalString("password")?.trim();if((0,i.HO)(t)){if(r&&!(0,i.AY)(r))throw Error(`Invalid Gitea integration config, '${r}' is not a valid baseUrl`)}else throw Error(`Invalid Gitea integration config, '${t}' is not a valid host`);return r=r?(0,A.trimEnd)(r,"/"):`https://${t}`,{host:t,baseUrl:r,username:n,password:a,commitSigningKey:e.getOptionalString("commitSigningKey")}})(e));return(0,i.oS)(t.map(e=>new P(e)),e=>e.config.host)};constructor(e){this.config=e}get type(){return"gitea"}get title(){return this.config.host}resolveUrl(e){return(0,i.ku)(e)}resolveEditUrl(e){let t;return t=function(e,t){let r=e.baseUrl??`https://${e.host}`;try{let[e,i,n,a,o,s,...l]=t.replace(r,"").split("/"),c=l.join("/").replace(/^\//,"");return{url:r,owner:i,name:n,ref:s,path:c}}catch(e){throw Error(`Incorrect URL: ${t}, ${e}`)}}(this.config,e),`${t.url}/${t.owner}/${t.name}/_edit/${t.ref}/${t.path}`}}class F{config;static factory=({config:e})=>{let t=(e.getOptionalConfigArray("integrations.harness")??[]).map(e=>(function(e){let t=e.getString("host"),r=e.getOptionalString("token"),n=e.getOptionalString("apiKey");if(!(0,i.HO)(t))throw Error(`Invalid Harness Code integration config, '${t}' is not a valid host`);return{host:t,apiKey:n,token:r}})(e));return(0,i.oS)(t.map(e=>new F(e)),e=>e.config.host)};constructor(e){this.config=e}get type(){return"harness"}get title(){return this.config.host}resolveUrl(e){return(0,i.ku)(e)}resolveEditUrl(e){let t;return t=function(e,t){let r=`https://${e.host}`;try{let e=new URL(t),i=e.pathname.split("/").filter(e=>""!==e),n=e.pathname.split("/"),a=i.findIndex(e=>"account"===e)+1,o=i[a],s=i.findIndex(e=>"orgs"===e),l=-1!==s?i[s+1]:"",c=i.findIndex(e=>"projects"===e),d=-1!==c?i[c+1]:"",u=i.findIndex((e,t)=>"repos"===e&&t>Math.max(a,s,c))+1,p=i[u],h=n.slice(n.findIndex(e=>"files"===e||"edit"===e)+1),g=h.findIndex(e=>"~"===e),f=h.slice(0,g).join("/"),m=-1!==g?h.slice(g+1).join("/").replace(/^\//,""):"";return{baseUrl:r,accountId:o,orgName:l,projectName:d,refString:f,path:m,repoName:p,refDashStr:h.slice(0,g).join("-"),branch:-1!==g?h.slice(0,g).join("/"):h.join("/")}}catch(e){throw Error(`Incorrect URL: ${t}, ${e}`)}}(this.config,e),`${t.baseUrl}/ng/account/${t.accountId}/module/code${""!==t.orgName?`/orgs/${t.orgName}`:""}${""!==t.projectName?`/projects/${t.projectName}`:""}/repos/${t.repoName}/files/${t.branch}/~/${t.path}`}}let z="blob.core.windows.net";function M(e){let t,r,i=e.getOptionalString("endpoint"),n=e.getString("accountName"),a=e.getOptionalString("accountKey")?.trim(),o=e.getOptionalString("sasToken")?.trim(),s=e.getOptionalString("connectionString")?.trim(),l=e.getOptionalString("endpointSuffix")?.trim();if(i){try{let e=new URL(i);t=e.host,r=e.pathname}catch{throw Error(`invalid azureBlobStorage integration config, endpoint '${i}' is not a valid URL`)}if("/"!==r)throw Error(`invalid azureBlobStorage integration config, endpoints cannot contain path, got '${i}'`)}else t=z;let c=e.has("aadCredential")?{clientId:e.getString("aadCredential.clientId"),tenantId:e.getString("aadCredential.tenantId"),clientSecret:e.getString("aadCredential.clientSecret")?.trim()}:void 0;if(a&&o)throw Error(`Invalid Azure Blob Storage config for ${n}: Both account key and SAS token cannot be used simultaneously.`);if(c&&(a||o))throw Error(`Invalid Azure Blob Storage config for ${n}: Cannot use both Azure AD credentials and account keys/SAS tokens for the same account.`);return{host:t,endpoint:i,accountName:n,accountKey:a,sasToken:o,connectionString:s,endpointSuffix:l,aadCredential:c}}class D{integrationConfig;static factory=({config:e})=>{let t,r=((t=(e.getOptionalConfigArray("integrations.azureBlobStorage")??[]).map(M)).some(e=>e.host===z)||t.push({host:z}),t);return(0,i.oS)(r.map(e=>new D(e)),e=>e.config.host)};get type(){return"azureBlobStorage"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}constructor(e){this.integrationConfig=e}resolveUrl(e){return(0,i.ku)(e)}resolveEditUrl(e){return e}}let _="storage.cloud.google.com";class q{integrationConfig;static factory=({config:e})=>{let t=e.has("integrations.googleGcs")?function(e){if(!e||!e.has("clientEmail")&&!e.has("privateKey"))return{host:_};let t=e.getString("privateKey").split("\\n").join("\n");return{host:_,clientEmail:e.getString("clientEmail"),privateKey:t}}(e.getConfig("integrations.googleGcs")):{host:_};return(0,i.oS)([new q(t)],e=>e.config.host)};get type(){return"googleGcs"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}constructor(e){this.integrationConfig=e}resolveUrl(e){return(0,i.ku)(e)}resolveEditUrl(e){return e}}class H{byType;static fromConfig(e){return new H({awsS3:o.factory({config:e}),awsCodeCommit:l.factory({config:e}),azureBlobStorage:D.factory({config:e}),azure:f.factory({config:e}),bitbucket:C.factory({config:e}),bitbucketCloud:x.factory({config:e}),bitbucketServer:$.factory({config:e}),gerrit:T.factory({config:e}),github:O.U.factory({config:e}),gitlab:N.factory({config:e}),gitea:P.factory({config:e}),googleGcs:q.factory({config:e}),harness:F.factory({config:e})})}constructor(e){this.byType=e}get awsS3(){return this.byType.awsS3}get awsCodeCommit(){return this.byType.awsCodeCommit}get azureBlobStorage(){return this.byType.azureBlobStorage}get azure(){return this.byType.azure}get bitbucket(){return this.byType.bitbucket}get bitbucketCloud(){return this.byType.bitbucketCloud}get bitbucketServer(){return this.byType.bitbucketServer}get gerrit(){return this.byType.gerrit}get github(){return this.byType.github}get gitlab(){return this.byType.gitlab}get gitea(){return this.byType.gitea}get googleGcs(){return this.byType.googleGcs}get harness(){return this.byType.harness}list(){return Object.values(this.byType).flatMap(e=>e.list())}byUrl(e){let t=Object.values(this.byType).map(t=>t.byUrl(e)).filter(Boolean);if(t.length>1){let e=t.filter(e=>!(e instanceof C));0!==e.length&&(t=e)}return t[0]}byHost(e){return Object.values(this.byType).map(t=>t.byHost(e)).find(Boolean)}resolveUrl(e){let t=this.byUrl(e.base);return t?t.resolveUrl(e):(0,i.ku)(e)}resolveEditUrl(e){let t=this.byUrl(e);return t?t.resolveEditUrl(e):e}}var V=r(44007);class W{static fromConfig(e){return H.fromConfig(e)}}let K=(0,V.y)({id:"integration.scmintegrations"})},87393(e,t,r){"use strict";r.d(t,{F:()=>d,U:()=>c});var i=r(85942),n=r(45250);let a="github.com",o="https://api.github.com",s="https://raw.githubusercontent.com";function l(e){let t=e.getOptionalString("host")??a,r=e.getOptionalString("apiBaseUrl"),l=e.getOptionalString("rawBaseUrl"),c=e.getOptionalString("token")?.trim(),d=e.getOptionalConfigArray("apps")?.map(e=>({appId:e.getNumber("appId"),clientId:e.getString("clientId"),clientSecret:e.getString("clientSecret"),webhookSecret:e.getOptionalString("webhookSecret"),privateKey:e.getString("privateKey"),allowedInstallationOwners:e.getOptionalStringArray("allowedInstallationOwners"),publicAccess:e.getOptionalBoolean("publicAccess")}));if(!(0,i.HO)(t))throw Error(`Invalid GitHub integration config, '${t}' is not a valid host`);return r?r=(0,n.trimEnd)(r,"/"):t===a&&(r=o),l?l=(0,n.trimEnd)(l,"/"):t===a&&(l=s),{host:t,apiBaseUrl:r,rawBaseUrl:l,token:c,apps:d}}class c{integrationConfig;static factory=({config:e})=>{let t,r=((t=(e.getOptionalConfigArray("integrations.github")??[]).map(l)).some(e=>e.host===a)||t.push({host:a,apiBaseUrl:o,rawBaseUrl:s}),t);return(0,i.oS)(r.map(e=>new c(e)),e=>e.config.host)};constructor(e){this.integrationConfig=e}get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(e){return d((0,i.ku)(e),"tree")}resolveEditUrl(e){return d(e,"edit")}parseRateLimitInfo(e){return{isRateLimited:429===e.status||403===e.status&&"0"===e.headers.get("x-ratelimit-remaining")}}}function d(e,t){return e.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,(e,r,i,n)=>`//${r}/${i}/${n}/${t}/`)}},85942(e,t,r){"use strict";r.d(t,{AY:()=>s,HO:()=>o,ku:()=>c,oS:()=>l});var i=r(52536),n=r.n(i),a=r(45250);function o(e){let t=new URL("http://example.com");return t.host=e,t.host===e}function s(e){try{return new URL(e),!0}catch{return!1}}function l(e,t){return{list:()=>e,byUrl(r){try{let i="string"==typeof r?new URL(r):r;return e.find(e=>t(e)===i.host)}catch{return}},byHost:r=>e.find(e=>t(e)===r)}}function c(e){let t,{url:r,base:i,lineNumber:o}=e;try{return new URL(r),r}catch{}if(r.startsWith("/")){let{href:e,filepath:o}=n()(i);t=new URL(e);let s=(0,a.trimEnd)(t.pathname.substring(0,t.pathname.length-o.length),"/");t.pathname=`${s}${r}`}else t=new URL(r,i);return t.search=new URL(i).search,o&&(t.hash=`L${o}`),t.toString()}},8220(e,t,r){"use strict";var i,n={};r.r(n),r.d(n,{TechDocsPlugin:()=>l.Ju});var a=r(31085),o=r(25873),s=r(18690),l=r(50875),c=r(70335),d=r(90479),u=r(10337),p=r(64947),h=r(73462),g=r(60691),f=r(55489),m=r(73657);function y({children:e}){return(0,s.Ri)()?(0,a.jsx)(a.Fragment,{children:e}):(0,a.jsx)(s.fS,{children:e})}let v={Progress:f.k,Router:m.Kd,NotFoundErrorPage:()=>(0,a.jsx)(h.M,{status:"404",statusMessage:"PAGE NOT FOUND"}),BootErrorPage:({step:e,error:t})=>{let r="";return"load-config"===e?r=`The configuration failed to load, someone should have a look at this error: ${t.message}`:"load-chunk"===e&&(r=`Lazy loaded chunk failed to load, try to reload the page: ${t.message}`),(0,a.jsx)(y,{children:(0,a.jsx)(h.M,{statusMessage:r,stack:t.stack})})},ErrorBoundaryFallback:({error:e,resetError:t,plugin:r})=>(0,a.jsx)(g.b,{title:`Error in ${r?.getId()}`,defaultExpanded:!0,error:e,children:(0,a.jsx)(p.A,{variant:"outlined",onClick:t,children:"Retry"})})},b="Invalid discovery URL pattern,";class w{parts;static compile(e){let t,r=e.split(/\{\{\s*pluginId\s*\}\}/),i=r.join("pluginId");try{t=new URL(i)}catch{throw Error(`${b} URL '${i}' is invalid`)}if(t.hash)throw Error(`${b} URL must not have a hash`);if(t.search)throw Error(`${b} URL must not have a query`);if(i.endsWith("/"))throw Error(`${b} URL must not end with a slash`);return new w(r)}constructor(e){this.parts=e}async getBaseUrl(e){return this.parts.join(encodeURIComponent(e))}}class x{static fromConfig(e,t){let r=t?.pathPattern??"/api/{{ pluginId }}",i=e.getString("backend.baseUrl");return new x(new Map(e.getOptionalConfigArray("discovery.endpoints")?.flatMap(e=>{let t="object"==typeof e.get("target")?e.getOptionalString("target.external"):e.getString("target");if(!t)return[];let r=w.compile(t);return e.getStringArray("plugins").map(e=>[e,r])})),w.compile(`${i}${r}`))}endpoints;defaultEndpoint;constructor(e,t){this.endpoints=e,this.defaultEndpoint=t}async getBaseUrl(e){let t=this.endpoints.get(e);return t?t.getBaseUrl(e):this.defaultEndpoint.getBaseUrl(e)}}var A=r(18784),S=r.n(A);class k{isClosed=!1;terminatingError;observable=new(S())(e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(this.subscribers.add(e),()=>{this.subscribers.delete(e)}));subscribers=new Set;[Symbol.observable](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw Error("PublishSubject is closed");this.subscribers.forEach(t=>t.next(e))}error(e){if(this.isClosed)throw Error("PublishSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(t=>t.error(e))}complete(){if(this.isClosed)throw Error("PublishSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,t,r){return this.observable.subscribe("function"==typeof e?{next:e,error:t,complete:r}:e)}}class E{isClosed;currentValue;terminatingError;observable;constructor(e){this.isClosed=!1,this.currentValue=e,this.terminatingError=void 0,this.observable=new(S())(e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(e.next(this.currentValue),this.subscribers.add(e),()=>{this.subscribers.delete(e)}))}subscribers=new Set;[Symbol.observable](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw Error("BehaviorSubject is closed");this.currentValue=e,this.subscribers.forEach(t=>t.next(e))}error(e){if(this.isClosed)throw Error("BehaviorSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(t=>t.error(e))}complete(){if(this.isClosed)throw Error("BehaviorSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,t,r){return this.observable.subscribe("function"==typeof e?{next:e,error:t,complete:r}:e)}}class C{subject=new k;recentAlerts=[];maxBufferSize=10;post(e){this.recentAlerts.push(e),this.recentAlerts.length>this.maxBufferSize&&this.recentAlerts.shift(),this.subject.next(e)}alert$(){return new(S())(e=>{for(let t of this.recentAlerts)e.next(t);return this.subject.subscribe(e)})}}class j{captureEvent(e){}}class ${alertApi;errorApi;constructor(e,t){this.alertApi=e,this.errorApi=t}post(e,t){return t?.hidden||this.alertApi.post({message:e.message,severity:"error"}),this.errorApi.post(e,t)}error$(){return this.errorApi.error$()}}class I{subject=new k;post(e,t){this.subject.next({error:e,context:t})}error$(){return this.subject}}class R{static forward(e,t){window.addEventListener("unhandledrejection",r=>{e.post(r.reason,t)})}}let T=new Map;class O{namespace;errorApi;constructor(e,t){this.namespace=e,this.errorApi=t}static hasSubscribed=!1;static create(e){return new O(e.namespace??"",e.errorApi)}static addStorageEventListener(){window.addEventListener("storage",e=>{for(let[t,r]of T.entries())e.key?.startsWith(t)&&r.handleStorageChange(e.key)})}get(e){return this.snapshot(e).value}snapshot(e){let t,r="absent";try{let i=localStorage.getItem(this.getKeyName(e));i&&(t=JSON.parse(i,(e,t)=>("object"==typeof t&&null!==t&&Object.freeze(t),t)),r="present")}catch(t){this.errorApi.post(Error(`Error when parsing JSON config from storage for: ${e}`))}return{key:e,value:t,presence:r}}forBucket(e){let t=`${this.namespace}/${e}`;return T.has(t)||T.set(t,new O(t,this.errorApi)),T.get(t)}async set(e,t){localStorage.setItem(this.getKeyName(e),JSON.stringify(t)),this.notifyChanges(e)}async remove(e){localStorage.removeItem(this.getKeyName(e)),this.notifyChanges(e)}observe$(e){return O.hasSubscribed||(O.addStorageEventListener(),O.hasSubscribed=!0),this.observable.filter(({key:t})=>t===e)}handleStorageChange(e){if(!e?.startsWith(this.namespace))return;let t=e?.slice(`${this.namespace}/`.length);t.includes("/")||this.notifyChanges(decodeURIComponent(t))}getKeyName(e){return`${this.namespace}/${encodeURIComponent(e)}`}notifyChanges(e){let t=this.snapshot(e);for(let e of this.subscribers)e.next(t)}subscribers=new Set;observable=new(S())(e=>(this.subscribers.add(e),()=>{this.subscribers.delete(e)}))}class L{static create(e){var t;let r=(t=e).allowUrl?t.allowUrl:t.urlPrefixAllowlist?B(t.urlPrefixAllowlist):t.config?B([t.config.getString("backend.baseUrl"),...L.getDiscoveryUrlPrefixes(t.config)]):()=>!1,i=e.header?.name||"authorization",n=e.header?.value||(e=>`Bearer ${e}`);return new L(e.identityApi,r,i,n)}static getDiscoveryUrlPrefixes(e){return(e.getOptionalConfigArray("discovery.endpoints")||[]).flatMap(e=>{let t="object"==typeof e.get("target")?e.getString("target.external"):e.getString("target");return e.getStringArray("plugins").map(e=>t.replace(/\{\{\s*pluginId\s*\}\}/g,e))})}identityApi;allowUrl;headerName;headerValue;constructor(e,t,r,i){this.identityApi=e,this.allowUrl=t,this.headerName=r,this.headerValue=i}apply(e){return async(t,r)=>{let i=new Request(t,r),{token:n}=await this.identityApi.getCredentials();return!i.headers.get(this.headerName)&&"string"==typeof n&&n&&this.allowUrl(i.url)?(i.headers.set(this.headerName,this.headerValue(n)),e(i)):e(t,r)}}}function B(e){let t=e.map(e=>e.replace(/\/$/,""));return e=>t.some(t=>e===t||e.startsWith(`${t}/`))}class U{discoveryApi;constructor(e){this.discoveryApi=e}apply(e){return async(t,r)=>{var i,n;let a=new Request(t,r),o="plugin://";if(!a.url.startsWith(o))return e(t,r);let{hostname:s,pathname:l,search:c,hash:d,username:u,password:p}=new URL(`http://${a.url.substring(o.length)}`),h=await this.discoveryApi.getBaseUrl(s);if(u||p){let e=new URL(h),t=`${u}${p?`:${p}`:""}@`;h=`${e.protocol}//${t}${e.host}${e.pathname}`}return e(`${(i=h,!l||"/"===l?i:`${i.replace(/\/$/,"")}/${l.replace(/^\//,"")}`)}${c}${d}`,"string"==typeof t||"object"==typeof(n=t)&&n?.constructor===URL?r:t)}}}class N{static resolvePluginProtocol(e){return new U(e.discoveryApi)}static injectIdentityAuth(e){return L.create(e)}constructor(){}}class P{requests=[];subject=new E(this.getCurrentPending());request(e){return new Promise((t,r)=>{this.requests.push({scopes:e,resolve:t,reject:r}),this.subject.next(this.getCurrentPending())})}resolve(e,t){this.requests=this.requests.filter(r=>!function(e,t){for(let r of t)if(!e.has(r))return!1;return!0}(e,r.scopes)||(r.resolve(t),!1)),this.subject.next(this.getCurrentPending())}reject(e){this.requests.forEach(t=>t.reject(e)),this.requests=[],this.subject.next(this.getCurrentPending())}pending(){return this.subject}getCurrentPending(){let e=0===this.requests.length?void 0:this.requests.slice(1).reduce((e,t)=>(function(e,...t){let r=new Set(e);for(let e of t)for(let t of e)r.add(t);return r})(e,t.scopes),this.requests[0].scopes);return{scopes:e,resolve:t=>{e&&this.resolve(e,t)},reject:t=>{e&&this.reject(t)}}}}class F{subject=new k;currentRequests=[];handlerCount=0;createAuthRequester(e){let t=new P,r=this.handlerCount;return this.handlerCount++,t.pending().subscribe({next:t=>{let i=this.currentRequests.slice(),n=this.makeAuthRequest(t,e);n?i[r]=n:delete i[r],this.currentRequests=i,this.subject.next(i.filter(Boolean))}}),e=>t.request(e)}makeAuthRequest(e,t){let{scopes:r}=e;if(r)return{provider:t.provider,trigger:async()=>{let i=await t.onAuthRequest(r);e.resolve(i)},reject:()=>{let t=Error("Login failed, rejected by user");t.name="RejectedError",e.reject(t)}}}authRequest$(){return this.subject}}let z=!1;function M(e){return[...e].join(" ")}class D{discoveryApi;environment;provider;joinScopesFunc;authRequester;sessionTransform;enableExperimentalRedirectFlow;popupOptions;constructor(e){const{configApi:t,discoveryApi:r,environment:i,provider:n,joinScopes:a=M,oauthRequestApi:o,sessionTransform:s=e=>e,popupOptions:l}=e;z||t||(console.warn("DEPRECATION WARNING: Authentication providers require a configApi instance to configure the authentication flow. Please provide one to the authentication provider constructor."),z=!0),this.enableExperimentalRedirectFlow=!!t&&(t.getOptionalBoolean("enableExperimentalRedirectFlow")??!1),this.authRequester=o.createAuthRequester({provider:n,onAuthRequest:async e=>this.enableExperimentalRedirectFlow?this.executeRedirect(e):this.showPopup(e)}),this.discoveryApi=r,this.environment=i,this.provider=n,this.joinScopesFunc=a,this.sessionTransform=s,this.popupOptions=l}async createSession(e){return e.instantPopup?this.enableExperimentalRedirectFlow?this.executeRedirect(e.scopes):this.showPopup(e.scopes):this.authRequester(e.scopes)}async refreshSession(e){let t=await fetch(await this.buildUrl("/refresh",{optional:!0,...e&&{scope:this.joinScopesFunc(e.scopes)}}),{headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(e=>{throw Error(`Auth refresh request failed, ${e}`)});if(!t.ok){let e=Error(`Auth refresh request failed, ${t.statusText}`);throw e.status=t.status,e}let r=await t.json();if(r.error){let e=Error(r.error.message);throw r.error.name&&(e.name=r.error.name),e}return await this.sessionTransform(r)}async removeSession(){let e=await fetch(await this.buildUrl("/logout"),{method:"POST",headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(e=>{throw Error(`Logout request failed, ${e}`)});if(!e.ok){let t=Error(`Logout request failed, ${e.statusText}`);throw t.status=e.status,t}}async showPopup(e){var t;let r=this.joinScopesFunc(e),i=await this.buildUrl("/start",{scope:r,origin:window.location.origin,flow:"popup"}),n=this.popupOptions?.size?.fullscreen?window.screen.width:this.popupOptions?.size?.width||450,a=this.popupOptions?.size?.fullscreen?window.screen.height:this.popupOptions?.size?.height||730,o=await (t={url:i,name:`${this.provider.title} Login`,width:n,height:a},new Promise((e,r)=>{let i=t.width||500,n=t.height||700,a=window.screen.width/2-i/2,o=window.screen.height/2-n/2,s=new URL(t.url).origin,l=window.open(t.url,t.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${i},height=${n},top=${o},left=${a}`),c="";if(!l||void 0===l.closed||l.closed){let e=Error("Failed to open auth popup.");e.name="PopupRejectedError",r(e);return}let d=t=>{if(t.source!==l||t.origin!==s)return;let{data:i}=t;if("config_info"===i.type){c=i.targetOrigin;return}if("authorization_response"===i.type){if("error"in i){let e=Error(i.error.message);e.name=i.error.name,r(e)}else e(i.response);p()}},u=setInterval(()=>{if(l.closed){let e=Error(`Login failed, ${c&&c!==window.location.origin?`Incorrect app origin, expected ${c}`:"popup was closed"}`);e.name="PopupClosedError",r(e),p()}},100);function p(){window.removeEventListener("message",d),clearInterval(u)}window.addEventListener("message",d)}));return await this.sessionTransform(o)}async executeRedirect(e){let t=this.joinScopesFunc(e);return window.location.href=await this.buildUrl("/start",{scope:t,origin:window.location.origin,redirectUrl:window.location.href,flow:"redirect"}),new Promise(()=>{})}async buildUrl(e,t){let r=await this.discoveryApi.getBaseUrl("auth"),i=this.buildQueryString({...t,env:this.environment});return`${r}/${this.provider.id}${e}${i}`}buildQueryString(e){if(!e)return"";let t=Object.entries(e).map(([e,t])=>"string"==typeof t?`${encodeURIComponent(e)}=${encodeURIComponent(t)}`:t?encodeURIComponent(e):void 0).filter(Boolean).join("&");return t?`?${t}`:""}}function _(e,t){for(let r of t)if(!e.has(r))return!1;return!0}class q{options;constructor(e){this.options=e}sessionExistsAndHasScope(e,t){return!!e&&(!t||void 0===this.options.sessionScopes||_(this.options.sessionScopes(e),t))}getExtendedScope(e,t){let r=new Set(this.options.defaultScopes);if(e&&void 0!==this.options.sessionScopes)for(let t of this.options.sessionScopes(e))r.add(t);if(t)for(let e of t)r.add(e);return r}}var H=r(44007);let V="SignedOut",W=(0,H.y)({id:"core.auth.google"}),K=(0,H.y)({id:"core.auth.github"}),G=(0,H.y)({id:"core.auth.okta"}),Y=(0,H.y)({id:"core.auth.gitlab"}),Z=(0,H.y)({id:"core.auth.microsoft"}),Q=(0,H.y)({id:"core.auth.onelogin"}),J=(0,H.y)({id:"core.auth.bitbucket"}),X=(0,H.y)({id:"core.auth.bitbucket-server"}),ee=(0,H.y)({id:"core.auth.atlassian"}),et=(0,H.y)({id:"core.auth.vmware-cloud"}),er=(0,H.y)({id:"core.auth.openshift"});class ei{subject=new E(V);signedIn=!1;setIsSignedIn(e){this.signedIn!==e&&(this.signedIn=e,this.subject.next(this.signedIn?"SignedIn":V))}sessionState$(){return this.subject}}class en{connector;helper;sessionScopesFunc;sessionShouldRefreshFunc;stateTracker=new ei;refreshPromise;currentSession;constructor(e){const{connector:t,defaultScopes:r=new Set,sessionScopes:i,sessionShouldRefresh:n}=e;this.connector=t,this.sessionScopesFunc=i,this.sessionShouldRefreshFunc=n,this.helper=new q({sessionScopes:i,defaultScopes:r})}async getSession(e){let t=!1;if(this.helper.sessionExistsAndHasScope(this.currentSession,e.scopes)){if(!this.sessionShouldRefreshFunc(this.currentSession))return this.currentSession;t=!0;try{let t=await this.collapsedSessionRefresh(e.scopes),r=this.sessionScopesFunc(this.currentSession),i=this.sessionScopesFunc(t);return _(i,r)&&(this.currentSession=t),t}catch(t){if(this.removeLocalSession(),e.optional)return}}if(!t)try{let t=await this.collapsedSessionRefresh(e.scopes);return this.currentSession=t,this.getSession(e)}catch{this.removeLocalSession()}if(!e.optional)return this.currentSession=await this.connector.createSession({...e,scopes:this.helper.getExtendedScope(this.currentSession,e.scopes)}),this.stateTracker.setIsSignedIn(!0),this.currentSession}removeLocalSession(){this.currentSession=void 0,this.stateTracker.setIsSignedIn(!1)}async removeSession(){this.currentSession=void 0,await this.connector.removeSession(),this.stateTracker.setIsSignedIn(!1)}sessionState$(){return this.stateTracker.sessionState$()}async collapsedSessionRefresh(e){if(this.refreshPromise)return this.refreshPromise;this.refreshPromise=this.connector.refreshSession({scopes:this.helper.getExtendedScope(this.currentSession,e)});try{let t=await this.refreshPromise;if(!this.helper.sessionExistsAndHasScope(t,e))throw Error("Refreshed session did not receive the required scopes");return this.stateTracker.setIsSignedIn(!0),t}finally{delete this.refreshPromise}}}let ea={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class eo{static createAuthConnector(e){if("authConnector"in e)return e.authConnector;let{scopeTransform:t=e=>e,configApi:r,discoveryApi:i,environment:n="development",provider:a=ea,oauthRequestApi:o,popupOptions:s}=e;return new D({configApi:r,discoveryApi:i,environment:n,provider:a,oauthRequestApi:o,sessionTransform({backstageIdentity:e,...r}){let i={...r,providerInfo:{idToken:r.providerInfo.idToken,accessToken:r.providerInfo.accessToken,scopes:eo.normalizeScopes(r.providerInfo.scope,{scopeTransform:t}),expiresAt:r.providerInfo.expiresInSeconds?new Date(Date.now()+1e3*r.providerInfo.expiresInSeconds):void 0}};return e&&(i.backstageIdentity={token:e.token,identity:e.identity,expiresAt:e.expiresInSeconds?new Date(Date.now()+1e3*e.expiresInSeconds):void 0}),i},popupOptions:s})}static create(e){let{defaultScopes:t=[],scopeTransform:r=e=>e}=e,i=new en({connector:eo.createAuthConnector(e),defaultScopes:new Set(t),sessionScopes:e=>e.providerInfo.scopes,sessionShouldRefresh:e=>{let t=1/0;return e.providerInfo?.expiresAt&&(t=Math.min(t,(e.providerInfo.expiresAt.getTime()-Date.now())/1e3)),e.backstageIdentity?.expiresAt&&(t=Math.min(t,(e.backstageIdentity.expiresAt.getTime()-Date.now())/1e3)),t<180}});return new eo({sessionManager:i,scopeTransform:r})}sessionManager;scopeTransform;constructor(e){this.sessionManager=e.sessionManager,this.scopeTransform=e.scopeTransform}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(e,t){let r=eo.normalizeScopes(e,{scopeTransform:this.scopeTransform}),i=await this.sessionManager.getSession({...t,scopes:r});return i?.providerInfo.accessToken??""}async getIdToken(e={}){let t=await this.sessionManager.getSession({...e,scopes:new Set(["openid"])});return t?.providerInfo.idToken??""}async getBackstageIdentity(e={}){let t=await this.sessionManager.getSession(e);return t?.backstageIdentity}async getProfile(e={}){let t=await this.sessionManager.getSession(e);return t?.profile}static normalizeScopes(e,t){if(!e)return new Set;let r=Array.isArray(e)?e:e.split(/[\s|,]/).filter(Boolean);return new Set(t?t.scopeTransform(r):r)}}let es={id:"google",title:"Google",icon:()=>null},el="https://www.googleapis.com/auth/";class ec{static create(e){let{configApi:t,discoveryApi:r,oauthRequestApi:i,environment:n="development",provider:a=es,defaultScopes:o=["openid",`${el}userinfo.email`,`${el}userinfo.profile`]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:i,provider:a,environment:n,defaultScopes:o,scopeTransform:e=>e.map(e=>"openid"===e?e:"profile"===e||"email"===e?`${el}userinfo.${e}`:e.startsWith(el)?e:`${el}${e}`)})}}let ed={id:"microsoft",title:"Microsoft",icon:()=>null};class eu{oauth2;configApi;environment;provider;oauthRequestApi;discoveryApi;scopeTransform;static MicrosoftGraphID="00000003-0000-0000-c000-000000000000";static create(e){return new eu(e)}constructor(e){const{configApi:t,environment:r="development",provider:i=ed,oauthRequestApi:n,discoveryApi:a,defaultScopes:o=["openid","offline_access","profile","email","User.Read"],scopeTransform:s=e=>e.concat("offline_access")}=e;this.configApi=t,this.environment=r,this.provider=i,this.oauthRequestApi=n,this.discoveryApi=a,this.scopeTransform=s,this.oauth2={[eu.MicrosoftGraphID]:eo.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform,defaultScopes:o})}}microsoftGraph(){return this.oauth2[eu.MicrosoftGraphID]}static resourceForScopes(e){let t=[...new Set(e.split(" ").map(eu.resourceForScope).filter(e=>"openid"!==e))];return t.length>1?Promise.reject(Error(`Requested access token with scopes from multiple Azure resources: ${t.join(", ")}. Access tokens can only have a single audience.`)):Promise.resolve(t[0]??eu.MicrosoftGraphID)}static resourceForScope(e){let t=e.match(/^(?<resourceURI>.*)\/(?<scp>[^\/]*)$/)?.groups;if(t){let{resourceURI:e}=t;return e.replace(/^api:\/\//,"")}switch(e){case"email":case"openid":case"offline_access":case"profile":return"openid";default:return eu.MicrosoftGraphID}}async getAccessToken(e,t){let r=void 0===e?eu.MicrosoftGraphID:await eu.resourceForScopes(Array.isArray(e)?e.join(" "):e);return r in this.oauth2||(this.oauth2[r]=eo.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform})),this.oauth2[r].getAccessToken(e,t)}getIdToken(e){return this.microsoftGraph().getIdToken(e)}getProfile(e){return this.microsoftGraph().getProfile(e)}getBackstageIdentity(e){return this.microsoftGraph().getBackstageIdentity(e)}signIn(){return this.microsoftGraph().signIn()}signOut(){return this.microsoftGraph().signOut()}sessionState$(){return this.microsoftGraph().sessionState$()}}let ep={id:"github",title:"GitHub",icon:()=>null};class eh{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=ep,oauthRequestApi:a,defaultScopes:o=["read:user"]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i,defaultScopes:o})}}let eg={id:"okta",title:"Okta",icon:()=>null},ef=new Set(["openid","profile","email","phone","address","groups","offline_access"]),em="okta.";class ey{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=eg,oauthRequestApi:a,defaultScopes:o=["openid","email","profile","offline_access"]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i,defaultScopes:o,scopeTransform:e=>e.map(e=>ef.has(e)||e.startsWith(em)?e:`${em}${e}`)})}}let ev={id:"gitlab",title:"GitLab",icon:()=>null};class eb{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=ev,oauthRequestApi:a,defaultScopes:o=["read_user"]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i,defaultScopes:o})}}let ew={id:"onelogin",title:"onelogin",icon:()=>null},ex=new Set(["openid","profile","email","phone","address","groups","offline_access"]),eA="onelogin.";class eS{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=ew,oauthRequestApi:a}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i,defaultScopes:["openid","email","profile","offline_access"],scopeTransform:e=>e.map(e=>ex.has(e)||e.startsWith(eA)?e:`${eA}${e}`)})}}let ek={id:"bitbucket",title:"Bitbucket",icon:()=>null};class eE{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=ek,oauthRequestApi:a,defaultScopes:o=["account"]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i,defaultScopes:o})}}let eC={id:"bitbucketServer",title:"Bitbucket Server",icon:()=>null};class ej{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=eC,oauthRequestApi:a,defaultScopes:o=["PROJECT_ADMIN"]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i,defaultScopes:o})}}let e$={id:"atlassian",title:"Atlassian",icon:()=>null};class eI{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=e$,oauthRequestApi:a}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i})}}let eR={id:"vmwareCloudServices",title:"VMware Cloud",icon:()=>null};class eT{static create(e){let{configApi:t,discoveryApi:r,oauthRequestApi:i,environment:n="development",provider:a=eR,defaultScopes:o=["openid"]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:i,provider:a,environment:n,defaultScopes:o})}}let eO={id:"openshift",title:"OpenShift",icon:()=>null};class eL{static create(e){let{configApi:t,discoveryApi:r,environment:i="development",provider:n=eO,oauthRequestApi:a,defaultScopes:o=["user:info"]}=e;return eo.create({configApi:t,discoveryApi:r,oauthRequestApi:a,provider:n,environment:i,defaultScopes:o})}}var eB=r(33141),eU=r(71531),eN=r(19735),eP=r(50375),eF=r(96876),ez=r(151);let eM=(0,H.y)({id:"core.storage"});var eD=r(76637),e_=r(48203);let eq=(0,H.y)({id:"core.oauthrequest"});var eH=r(31057),eV=r(33947),eW=r(10288),eK=r.n(eW),eG=r(8297),eY=r(31533),eZ=r(71696),eQ=r(98109);let eJ=eY.RZ(()=>eY.Ik({rule:eY.Yj(),resourceType:eY.Yj(),params:eY.g1(eY.bz()).optional()}).or(eY.Ik({anyOf:eY.YO(eJ).nonempty()})).or(eY.Ik({allOf:eY.YO(eJ).nonempty()})).or(eY.Ik({not:eJ}))),eX=eY.Ik({result:eY.eu(eZ.b.ALLOW).or(eY.eu(eZ.b.DENY))}),e0=eY.Ik({result:eY.YO(eY.KC([eY.eu(eZ.b.ALLOW),eY.eu(eZ.b.DENY)]))}).or(eX),e1=eY.KC([eY.Ik({result:eY.eu(eZ.b.ALLOW).or(eY.eu(eZ.b.DENY))}),eY.Ik({result:eY.eu(eZ.b.CONDITIONAL),pluginId:eY.Yj(),resourceType:eY.Yj(),conditions:eJ})]);class e2{enabled;discovery;enableBatchedRequests;constructor(e){this.discovery=e.discovery,this.enabled=e.config.getOptionalBoolean("permission.enabled")??!1,this.enableBatchedRequests=e.config.getOptionalBoolean("permission.EXPERIMENTAL_enableBatchedRequests")??!1}async authorize(e,t){return this.enabled?this.enableBatchedRequests?this.makeBatchedRequest(e,t):this.makeRequest(e,eX,t):e.map(e=>({result:eZ.b.ALLOW}))}async authorizeConditional(e,t){return this.enabled?this.makeRequest(e,e1,t):e.map(e=>({result:eZ.b.ALLOW}))}async makeRequest(e,t,r){let i={items:e.map(e=>({id:eG.A(),...e}))},n=(await this.makeRawRequest(i,t,r)).items.reduce((e,t)=>(e[t.id]=t,e),{});return i.items.map(e=>n[e.id])}async makeBatchedRequest(e,t){let r={};for(let t of e){let{permission:e,resourceRef:i}=t;(0,eQ.OL)(e)?(r[e.name]||={permission:e,resourceRef:[],id:eG.A()},i&&r[e.name].resourceRef?.push(i)):r[e.name]||={permission:e,id:eG.A()}}let i=(await this.makeRawRequest({items:Object.values(r)},e0,t)).items.reduce((e,t)=>(e[t.id]=t,e),{});return e.map(e=>{let{id:t}=r[e.permission.name],n=i[t];return Array.isArray(n.result)?{result:e.resourceRef?n.result.shift():n.result[0]}:{result:n.result}})}async makeRawRequest(e,t,r){let i,n=await this.discovery.getBaseUrl("permission"),a=await eK()(`${n}/authorize`,{method:"POST",body:JSON.stringify(e),headers:{...this.getAuthorizationHeader(r?.token),"content-type":"application/json"}});if(!a.ok)throw await eV.o.fromResponse(a);let o=await a.json();return(i=new Set(e.items.map(({id:e})=>e)),eY.Ik({items:eY.YO(eY.E$(eY.Ik({id:eY.Yj()}),t)).refine(e=>e.length===i.size&&e.every(({id:e})=>i.has(e)),{message:"Items in response do not match request"})})).parse(o)}getAuthorizationHeader(e){return e?{Authorization:`Bearer ${e}`}:{}}}class e5{permissionClient;identityApi;constructor(e,t){this.permissionClient=e,this.identityApi=t}static create(e){let{config:t,discovery:r,identity:i}=e;return new e5(new e2({discovery:r,config:t}),i)}async authorize(e){return(await this.permissionClient.authorize([e],await this.identityApi.getCredentials()))[0]}}let e3=[(0,eB.b)({api:eU.I,deps:{configApi:eN.U},factory:({configApi:e})=>x.fromConfig(e)}),(0,eB.b)({api:eP.k,deps:{},factory:()=>new C}),(0,eB.b)({api:eF.c,deps:{},factory:()=>new j}),(0,eB.b)({api:ez.m,deps:{alertApi:eP.k},factory:({alertApi:e})=>{let t=new $(e,new I);return R.forward(t,{hidden:!1}),t}}),(0,eB.b)({api:eM,deps:{errorApi:ez.m},factory:({errorApi:e})=>O.create({errorApi:e})}),(0,eB.b)({api:eD.a,deps:{configApi:eN.U,identityApi:e_.K,discoveryApi:eU.I},factory:({configApi:e,identityApi:t,discoveryApi:i})=>(function(e){let t=e.baseImplementation||r.g.fetch;for(let r of[e.middleware??[]].flat().reverse())t=r.apply(t);return{fetch:t}})({middleware:[N.resolvePluginProtocol({discoveryApi:i}),N.injectIdentityAuth({identityApi:t,config:e})]})}),(0,eB.b)({api:eq,deps:{},factory:()=>new F}),(0,eB.b)({api:W,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>ec.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:Z,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eu.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:K,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eh.create({configApi:r,discoveryApi:e,oauthRequestApi:t,defaultScopes:["read:user"],environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:G,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>ey.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:Y,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eb.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:Q,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eS.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:J,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eE.create({configApi:r,discoveryApi:e,oauthRequestApi:t,defaultScopes:["account"],environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:X,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>ej.create({configApi:r,discoveryApi:e,oauthRequestApi:t,defaultScopes:["REPO_READ"],environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:ee,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eI.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:et,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eT.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:er,deps:{discoveryApi:eU.I,oauthRequestApi:eq,configApi:eN.U},factory:({discoveryApi:e,oauthRequestApi:t,configApi:r})=>eL.create({configApi:r,discoveryApi:e,oauthRequestApi:t,environment:r.getOptionalString("auth.environment")})}),(0,eB.b)({api:eH.x,deps:{discovery:eU.I,identity:e_.K,config:eN.U},factory:({config:e,discovery:t,identity:r})=>e5.create({config:e,discovery:t,identity:r})})];var e4=r(14451),e8=r(27799),e7=r(94389),e6=r(20947),e9=r(20473),te=r(45917),tt=r(39347),tr=r(63309),ti=r(82451),tn=r(85121),ta=r(17400),to=r(42226),ts=r(69550),tl=r(52755),tc=r(89350),td=r(8911),tu=r(33602),tp=r(48108),th=r(77225),tg=r(55700),tf=r(71865),tm=r(80109),ty=r(15303),tv=r(39330);let tb={brokenImage:e8.default,catalog:td.default,scaffolder:e6.default,techdocs:e9.default,search:te.default,chat:tt.default,dashboard:tr.default,docs:ti.default,email:tn.default,github:to.default,group:tu.default,help:ts.default,"kind:api":ta.default,"kind:component":tc.default,"kind:domain":e4.default,"kind:group":tu.default,"kind:location":tl.default,"kind:system":e7.default,"kind:user":tp.default,"kind:resource":tg.default,"kind:template":tf.default,user:tp.default,warning:th.default,star:tm.default,unstarred:ty.default,externalLink:tv.default};var tw=r(55288),tx=r(91360),tA=r(50868),tS=r(12285),tk=r(19233),tE=r(64636),tC=r(14041);let tj="data-unified-theme-stack",t$="data-theme-mode",tI="data-theme-name";function tR(e){let t=(()=>{let e=document.body.getAttribute(tj);if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}})();e(t),0===t.length?document.body.removeAttribute(tj):document.body.setAttribute(tj,JSON.stringify(t));let r=t[t.length-1];r?.mode?document.body.setAttribute(t$,String(r.mode)):document.body.removeAttribute(t$),r?.name?document.body.setAttribute(tI,String(r.name)):document.body.removeAttribute(tI)}tE.A.configure(e=>`v5-${e}`);let tT=(0,tw.A)({productionPrefix:"jss4-"});function tO(e){var t,r;let{children:i,theme:n,themeName:o}=e,s=n.getTheme("v4"),l=n.getTheme("v5");t=s?s.palette.type:l?.palette.mode,r=o??"backstage",(0,tC.useEffect)(()=>(tR(e=>{e.push({mode:t,name:r})}),()=>{tR(e=>{e.pop()})}),[t,r]);let c=i;return s&&(c=(0,a.jsx)(tx.Ay,{generateClassName:tT,children:(0,a.jsx)(tA.A,{theme:s,children:c})})),l&&(c=(0,a.jsx)(tS.A,{injectFirst:!0,children:(0,a.jsx)(tk.A,{theme:l,children:c})})),c}var tL=r(41329),tB=r(53528);let tU="url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1368' height='401' x='0' y='0' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M437 116C223 116 112 0 112 0h1256v400c-82 0-225-21-282-109-112-175-436-175-649-175z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1368 400V282C891-29 788 40 711 161 608 324 121 372 0 361v39h1368z'/%3e%3cpath fill='url(%23paint2_linear)' d='M1368 244v156H0V94c92-24 198-46 375 0l135 41c176 51 195 109 858 109z'/%3e%3cpath fill='url(%23paint3_linear)' d='M1252 400h116c-14-7-35-14-116-16-663-14-837-128-1013-258l-85-61C98 28 46 8 0 0v400h1252z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M-172-98h1671v601H-172z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='602' x2='1093.5' y1='-960.5' y2='272' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='482' x2='480' y1='1058.5' y2='70.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='424' x2='446.1' y1='-587.5' y2='274.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='587' x2='349' y1='-1120.5' y2='341' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\")",tN="url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='1764' height='479' x='-229' y='-6' maskUnits='userSpaceOnUse'%3e%3cpath fill='url(%23paint0_linear)' d='M0 400h1350C1321 336 525 33 179-2c-345-34-395 236-408 402H0z'/%3e%3cpath fill='url(%23paint1_linear)' d='M1378 177v223H0V217s219 75 327 52C436 246 717-35 965 45s254 144 413 132z'/%3e%3cpath fill='url(%23paint2_linear)' d='M26 400l-78-16c-170 205-44-6-137-30l-4-1 4 1 137 30c37-45 89-110 159-201 399-514-45 238 1176-50 275-65 354-39 91 267H26z'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='431' x2='397.3' y1='-599' y2='372.8' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='236.5' x2='446.6' y1='-586' y2='381.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='851.8' x2='640.4' y1='-867.2' y2='363.7' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\")",tP=["#005B4B"];function tF(e){let{colors:t,shape:r,options:i}=e,n=1===t.length?[t[0],t[0]]:t,a=`linear-gradient(90deg, ${n.join(", ")})`,o=`${r}, ${a}`;return{colors:t,shape:r,backgroundImage:o,fontColor:i?.fontColor??"#FFFFFF"}}let tz={home:tF({colors:tP,shape:tU}),documentation:tF({colors:["#C8077A","#C2297D"],shape:tN}),tool:tF({colors:["#8912CA","#3E00EA"],shape:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='1368' height='400' fill='none'%3e%3cmask id='a' width='2269' height='1408' x='-610' y='-509' maskUnits='userSpaceOnUse'%3e%3ccircle cx='1212.8' cy='74.8' r='317.5' fill='url(%23paint0_linear)' transform='rotate(-52 1213 75)'/%3e%3ccircle cx='737.8' cy='445.8' r='317.5' fill='url(%23paint1_linear)' transform='rotate(-116 738 446)'/%3e%3ccircle cx='601.8' cy='52.8' r='418.6' fill='url(%23paint2_linear)' transform='rotate(-117 602 53)'/%3e%3ccircle cx='999.8' cy='364' r='389.1' fill='url(%23paint3_linear)' transform='rotate(31 1000 364)'/%3e%3cellipse cx='-109.2' cy='263.5' fill='url(%23paint4_linear)' rx='429.2' ry='465.8' transform='rotate(-85 -109 264)'/%3e%3c/mask%3e%3cg mask='url(%23a)'%3e%3cpath fill='white' d='M0 0h1368v400H0z'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient id='paint0_linear' x1='1301.2' x2='161.4' y1='-1879.7' y2='-969.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint1_linear' x1='826.2' x2='-313.6' y1='-1508.7' y2='-598.6' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint2_linear' x1='718.4' x2='-784.3' y1='-2524' y2='-1324.2' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint3_linear' x1='1108.2' x2='-288.6' y1='-2031.1' y2='-915.9' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient id='paint4_linear' x1='10.4' x2='-1626.5' y1='-2603.8' y2='-1399.5' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='white'/%3e%3cstop offset='1' stop-color='white' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e\")"}),service:tF({colors:["#006D8F","#0049A1"],shape:tU}),website:tF({colors:["#0027AF","#270094"],shape:tU}),library:tF({colors:["#98002B","#8D1134"],shape:tU}),other:tF({colors:["#171717","#383838"],shape:tU}),app:tF({colors:["#BE2200","#A41D00"],shape:tU}),apis:tF({colors:tP,shape:tN}),card:tF({colors:["#4BB8A5","#187656"],shape:tU})},tM='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif',tD={htmlFontSize:16,fontFamily:tM,h1:{fontSize:54,fontWeight:700,marginBottom:10},h2:{fontSize:40,fontWeight:700,marginBottom:8},h3:{fontSize:32,fontWeight:700,marginBottom:6},h4:{fontWeight:700,fontSize:28,marginBottom:6},h5:{fontWeight:700,fontSize:24,marginBottom:4},h6:{fontWeight:700,fontSize:20,marginBottom:2}};var t_=r(80012);let tq={MuiCssBaseline:{styleOverrides:e=>({html:{height:"100%",fontFamily:e.typography.fontFamily},body:{height:"100%",fontFamily:e.typography.fontFamily,overscrollBehaviorY:"none",fontSize:"0.875rem",lineHeight:1.43,"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:e.palette.background.paper,width:"1em"},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:e.palette.textVerySubtle,border:`3px solid ${e.palette.background.paper}`},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:"dark"===e.palette.mode?(0,t_.a)(e.palette.textVerySubtle,.2):(0,t_.e$)(e.palette.textVerySubtle,.2)},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:"dark"===e.palette.mode?(0,t_.a)(e.palette.textVerySubtle,.2):(0,t_.e$)(e.palette.textVerySubtle,.2)}},a:{color:"inherit",textDecoration:"none"}})},MuiGrid:{defaultProps:{spacing:2}},MuiSwitch:{defaultProps:{color:"primary"}},MuiTableRow:{styleOverrides:{root:({theme:e})=>({"&:nth-of-type(odd)":{backgroundColor:e.palette.background.default}}),hover:{"&:hover":{cursor:"pointer"}},head:({theme:e})=>({"&:nth-of-type(odd)":{backgroundColor:e.palette.background.paper}})}},MuiTableCell:{styleOverrides:{root:({theme:e})=>({wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:e.spacing(3,2,3,2.5),borderBottom:0}),sizeSmall:({theme:e})=>({padding:e.spacing(1.5,2,1.5,2.5)}),head:({theme:e})=>({wordBreak:"break-word",overflow:"hidden",color:e.palette.textSubtle,fontWeight:"normal",lineHeight:"1"})}},MuiTabs:{styleOverrides:{root:{minHeight:24}}},MuiTab:{styleOverrides:{root:({theme:e})=>({color:e.palette.link,minHeight:24,textTransform:"initial",letterSpacing:"0.07em","&:hover":{color:(0,t_.e$)(e.palette.link,.3),background:(0,t_.a)(e.palette.link,.95)},[e.breakpoints.up("md")]:{minWidth:120,fontSize:e.typography.pxToRem(14),fontWeight:500}}),textColorPrimary:({theme:e})=>({color:e.palette.link})}},MuiTableSortLabel:{styleOverrides:{root:{color:"inherit","&:hover":{color:"inherit"},"&:focus":{color:"inherit"},"&:focus svg":{opacity:.5},"&.Mui-active":{fontWeight:"bold",color:"inherit"}}}},MuiListItemText:{styleOverrides:{dense:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}},MuiButton:{styleOverrides:{text:{padding:void 0}}},MuiChip:{styleOverrides:{root:({theme:e})=>({marginRight:e.spacing(1),marginBottom:e.spacing(1)}),label:({theme:e})=>({lineHeight:e.spacing(2.5),fontWeight:e.typography.fontWeightMedium,fontSize:e.spacing(1.75)}),labelSmall:({theme:e})=>({fontSize:e.spacing(1.5)}),deleteIcon:({theme:e})=>({width:e.spacing(3),height:e.spacing(3),margin:e.spacing(0,.75,0,-.75)}),deleteIconSmall:({theme:e})=>({width:e.spacing(2),height:e.spacing(2),margin:e.spacing(0,.5,0,-.5)})}},MuiCard:{styleOverrides:{root:{display:"flex",flexDirection:"column"}}},MuiCardHeader:{styleOverrides:{root:{paddingBottom:0}}},MuiCardContent:{styleOverrides:{root:{flexGrow:1,"&:last-child":{paddingBottom:void 0}}}},MuiCardActions:{styleOverrides:{root:{justifyContent:"flex-end"}}},MuiLink:{defaultProps:{underline:"hover"}},MuiPaper:{styleOverrides:{root:{backgroundImage:"unset"}}},MuiMenuItem:{styleOverrides:{root:({theme:e})=>({"&:focus":{backgroundColor:e.palette.action.focus}})}}},tH=/^&.Mui-([\w-]+)$/;class tV{#m=new Map;constructor(e,t){this.#m=new Map,e&&this.#m.set("v4",e),t&&this.#m.set("v5",t)}getTheme(e){return this.#m.get(e)}}function tW(e){let t=function(e){let{palette:t,htmlFontSize:r=16,fontFamily:i=tM,defaultPageTheme:n="home",pageTheme:a=tz,typography:o}=e;if(!a[n])throw Error(`${n} is not defined in pageTheme.`);return tD.htmlFontSize=r,tD.fontFamily=i,{palette:t,typography:o??tD,page:a[n],getPageTheme:({themeId:e})=>a[e]??a[n]}}(e),r={...tq,...e.components},i=(0,tB.A)({...t,components:r}),n=function(e,t={}){let r={},i={};for(let n of Object.keys(t)){let a=t[n];a&&("styleOverrides"in a&&("MuiCssBaseline"===n?r[n]=function(e,t){if(!t||"string"==typeof t)return;let r="function"==typeof t?t(e):t;if(r)return{"@global":r}}(e,a.styleOverrides):r[n]=function(e){let t=e;if(!e||"object"!=typeof e)return t;for(let r of Object.keys(e)){let i=e[r];if(i&&"object"==typeof i)for(let e of Object.keys(i)){let n=e.match(tH);if(n){let[,a]=n,{[e]:o,...s}=i;o&&(t={...t,[r]:s,[a]:o})}}}return t}(function(e,t){if(t&&"string"!=typeof t){if("object"==typeof t){let r={...e},i=e.spacing(1);return"number"==typeof i&&(r.spacing=(...e)=>(0===e.length?[1]:e).map(e=>{let t="string"==typeof e?e:i*e;return"number"==typeof t?`${t}px`:t}).join(" ")),Object.fromEntries(Object.entries(t).map(([e,t])=>"function"==typeof t?[e,t({theme:r})]:[e,t]))}return t}}(e,a.styleOverrides))),"defaultProps"in a&&(i[n]=a.defaultProps))}return{overrides:r,props:i}}(i,r);return new tV({...(0,tL.A)(t),...n},i)}let tK={light:tW({palette:{type:"light",mode:"light",background:{default:"#F8F8F8",paper:"#FFFFFF"},status:{ok:"#1DB954",warning:"#FF9800",error:"#E22134",running:"#1F5493",pending:"#FFED51",aborted:"#757575"},bursts:{fontColor:"#FEFEFE",slackChannelText:"#ddd",backgroundColor:{default:"#7C3699"},gradient:{linear:"linear-gradient(-137deg, #4BB8A5 0%, #187656 100%)"}},primary:{main:"#1F5493"},banner:{info:"#2E77D0",error:"#E22134",text:"#FFFFFF",link:"#000000",closeButtonColor:"#FFFFFF",warning:"#FF9800"},border:"#E6E6E6",textContrast:"#000000",textVerySubtle:"#DDD",textSubtle:"#6E6E6E",highlight:"#FFFBCC",errorBackground:"#FFEBEE",warningBackground:"#F59B23",infoBackground:"#ebf5ff",errorText:"#CA001B",infoText:"#004e8a",warningText:"#000000",linkHover:"#2196F3",link:"#0A6EBE",gold:"#FFD600",navigation:{background:"#171717",indicator:"#9BF0E1",color:"#b5b5b5",selectedColor:"#FFF",navItem:{hoverBackground:"#404040"},submenu:{background:"#404040"}},pinSidebarButton:{icon:"#181818",background:"#BDBDBD"},tabbar:{indicator:"#9BF0E1"}}}),dark:tW({palette:{type:"dark",mode:"dark",background:{default:"#333333",paper:"#424242"},status:{ok:"#71CF88",warning:"#FFB84D",error:"#F84C55",running:"#3488E3",pending:"#FEF071",aborted:"#9E9E9E"},bursts:{fontColor:"#FEFEFE",slackChannelText:"#ddd",backgroundColor:{default:"#7C3699"},gradient:{linear:"linear-gradient(-137deg, #4BB8A5 0%, #187656 100%)"}},primary:{main:"#9CC9FF",dark:"#82BAFD"},secondary:{main:"#FF88B2"},banner:{info:"#2E77D0",error:"#E22134",text:"#FFFFFF",link:"#000000",closeButtonColor:"#FFFFFF",warning:"#FF9800"},border:"#E6E6E6",textContrast:"#FFFFFF",textVerySubtle:"#727272",textSubtle:"#CCCCCC",highlight:"#FFFBCC",errorBackground:"#FFEBEE",warningBackground:"#F59B23",infoBackground:"#ebf5ff",errorText:"#CA001B",infoText:"#004e8a",warningText:"#000000",linkHover:"#82BAFD",link:"#9CC9FF",gold:"#FFD600",navigation:{background:"#424242",indicator:"#9BF0E1",color:"#b5b5b5",selectedColor:"#FFF",navItem:{hoverBackground:"#404040"},submenu:{background:"#404040"}},pinSidebarButton:{icon:"#404040",background:"#BDBDBD"},tabbar:{indicator:"#9BF0E1"}}})};var tG=r(75962),tY=r(87145);let tZ=[{id:"light",title:"Light Theme",variant:"light",icon:(0,a.jsx)(tY.default,{}),Provider:({children:e})=>(0,a.jsx)(tO,{theme:tK.light,children:e})},{id:"dark",title:"Dark Theme",variant:"dark",icon:(0,a.jsx)(tG.default,{}),Provider:({children:e})=>(0,a.jsx)(tO,{theme:tK.dark,children:e})}];var tQ=r(73466),tJ=r(39067),tX=r.n(tJ);class t0{holders;constructor(...e){this.holders=e}get(e){for(let t of this.holders){let r=t.get(e);if(r)return r}}}var t1=r(9135),t2=r(20549);let t5=(0,t1.tK)("api-context"),t3=e=>{let{apis:t,children:r}=e,i=(0,tC.useContext)(t5)?.atVersion(1),n=i?new t0(t,i):t;return(0,a.jsx)(t5.Provider,{value:(0,t2.B)({1:n}),children:r})};t3.propTypes={apis:tX().shape({get:tX().func.isRequired}).isRequired,children:tX().node};let t4=/^[a-z][a-z0-9]*(?:[-_:][a-z0-9]+)*$/i;function t8(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function t7(e,t){if(null===e)return;if(void 0===e)return void 0===t?void 0:t7(t);if("object"!=typeof e||Array.isArray(e))return e;let r=t8(t)?t:{},i={};for(let t of new Set([...Object.keys(e),...Object.keys(r)])){let n=t7(e[t],r[t]);void 0!==n&&(i[t]=n)}return i}function t6(e){if(null===e)return"null";if(Array.isArray(e))return"array";let t=typeof e;return"number"===t&&isNaN(e)?"nan":"string"===t&&""===e?"empty-string":t}let t9=(e,t,r,i)=>`Invalid type in config for key '${e}' in '${t}', got ${r}, wanted ${i}`,re=(e,t)=>`Missing required config value at '${e}' in '${t}'`,rt=(e,t,r)=>`Unable to convert config value for key '${e}' in '${t}' to a ${r}`;class rr{filteredKeys;notifiedFilteredKeys=new Set;static fromConfigs(e){return 0===e.length?new rr(void 0):e.reduce((e,{data:t,context:r,filteredKeys:i,deprecatedKeys:n})=>{let a=new rr(t,r,e);if(a.filteredKeys=i,n)for(let{key:e,description:t}of n)console.warn(`The configuration key '${e}' of ${r} is deprecated and may be removed soon. ${t||""}`);return a},void 0)}data;context;fallback;prefix;constructor(e,t="mock-config",r,i=""){this.data=e,this.context=t,this.fallback=r,this.prefix=i}has(e){let t=this.readValue(e);return null!==t&&(void 0!==t||(this.fallback?.has(e)??!1))}keys(){return[...new Set([...this.data?Object.keys(this.data):[],...this.fallback?.keys()??[]])].filter(e=>this.data?.[e]!==null)}get(e){let t=this.getOptional(e);if(void 0===t)throw Error(re(this.fullKey(e??""),this.context));return t}getOptional(e){let t=function e(t){return"object"!=typeof t||null===t?t:Array.isArray(t)?t.map(e):Object.fromEntries(Object.entries(t).map(([t,r])=>[t,e(r)]))}(this.readValue(e)),r=this.fallback?.getOptional(e);if(null!==t)return void 0===t?t7(r):void 0===r?t7(t):t7(t,r)}getConfig(e){let t=this.getOptionalConfig(e);if(void 0===t)throw Error(re(this.fullKey(e),this.context));return t}getOptionalConfig(e){let t=this.readValue(e),r=this.fallback?.getOptionalConfig(e);if(t8(t))return this.copy(t,e,r);if(null!==t){if(void 0!==t)throw TypeError(t9(this.fullKey(e),this.context,t6(t),"object"));return r}}getConfigArray(e){let t=this.getOptionalConfigArray(e);if(void 0===t)throw Error(re(this.fullKey(e),this.context));return t}getOptionalConfigArray(e){let t=this.readConfigValue(e,t=>{if(!Array.isArray(t))return{expected:"object-array"};for(let[r,i]of t.entries())if(!t8(i))return{expected:"object-array",value:i,key:`${e}[${r}]`};return!0});return t?t.map((t,r)=>this.copy(t,`${e}[${r}]`)):void 0}getNumber(e){let t=this.getOptionalNumber(e);if(void 0===t)throw Error(re(this.fullKey(e),this.context));return t}getOptionalNumber(e){let t=this.readConfigValue(e,e=>"number"==typeof e||"string"==typeof e||{expected:"number"});if("number"==typeof t||void 0===t)return t;let r=Number(t);if(!Number.isFinite(r))throw Error(rt(this.fullKey(e),this.context,"number"));return r}getBoolean(e){let t=this.getOptionalBoolean(e);if(void 0===t)throw Error(re(this.fullKey(e),this.context));return t}getOptionalBoolean(e){let t=this.readConfigValue(e,e=>"boolean"==typeof e||"number"==typeof e||"string"==typeof e||{expected:"boolean"});if("boolean"==typeof t||void 0===t)return t;let r=String(t).trim();if(/^(?:y|yes|true|1|on)$/i.test(r))return!0;if(/^(?:n|no|false|0|off)$/i.test(r))return!1;throw Error(rt(this.fullKey(e),this.context,"boolean"))}getString(e){let t=this.getOptionalString(e);if(void 0===t)throw Error(re(this.fullKey(e),this.context));return t}getOptionalString(e){return this.readConfigValue(e,e=>"string"==typeof e&&""!==e||{expected:"string"})}getStringArray(e){let t=this.getOptionalStringArray(e);if(void 0===t)throw Error(re(this.fullKey(e),this.context));return t}getOptionalStringArray(e){return this.readConfigValue(e,t=>{if(!Array.isArray(t))return{expected:"string-array"};for(let[r,i]of t.entries())if("string"!=typeof i||""===i)return{expected:"string-array",value:i,key:`${e}[${r}]`};return!0})}fullKey(e){return`${this.prefix}${this.prefix?".":""}${e}`}copy(e,t,r){let i=new rr(e,this.context,r,this.fullKey(t));return i.filteredKeys=this.filteredKeys,i}readConfigValue(e,t){let r=this.readValue(e);if(void 0===r)return this.fallback?.readConfigValue(e,t);if(null===r)return;let i=t(r);if(!0!==i){let{key:t=e,value:n=r,expected:a}=i;throw TypeError(t9(this.fullKey(t),this.context,t6(n),a))}return r}readValue(e){let t=e?e.split("."):[];for(let r of t)if(!t4.test(r))throw TypeError(`Invalid config key '${e}'`);if(void 0===this.data)return;let r=this.data;for(let[e,i]of t.entries())if(t8(r))r=r[i];else if(null!=r)throw TypeError(t9(this.fullKey(t.slice(0,e).join(".")),this.context,t6(r),"object"));return r}}let ri="theme";class rn{themes;static createWithStorage(e){let t=new rn(e);if(!window.localStorage)return t;let r=window.localStorage.getItem(ri)??void 0;return t.setActiveThemeId(r),t.activeThemeId$().subscribe(e=>{e?window.localStorage.setItem(ri,e):window.localStorage.removeItem(ri)}),window.addEventListener("storage",e=>{if(e.key===ri){let e=localStorage.getItem(ri)??void 0;t.setActiveThemeId(e)}}),t}activeThemeId;subject=new E(void 0);constructor(e){this.themes=e}getInstalledThemes(){return this.themes.slice()}activeThemeId$(){return this.subject}getActiveThemeId(){return this.activeThemeId}setActiveThemeId(e){this.activeThemeId=e,this.subject.next(e)}}var ra=r(70334);function ro(e){if(e.length<3)throw Error(`The '${e}' feature flag must have a minimum length of three characters.`);if(e.length>150)throw Error(`The '${e}' feature flag must not exceed 150 characters.`);if(!e.match(/^[a-z]+[a-z0-9-]+$/))throw Error(`The '${e}' feature flag must start with a lowercase letter and only contain lowercase letters, numbers and hyphens. Examples: feature-flag-one, alpha, release-2020`)}class rs{registeredFeatureFlags=[];flags;registerFlag(e){ro(e.name),this.registeredFeatureFlags.push(e)}getRegisteredFlags(){return this.registeredFeatureFlags.slice()}isActive(e){return this.flags||(this.flags=this.load()),this.flags.get(e)===ra.S.Active}save(e){for(let[t,r]of(this.flags||(this.flags=this.load()),e.merge||this.flags.clear(),Object.entries(e.states)))this.flags.set(t,r);let t=Array.from(this.flags.entries()).filter(([,e])=>e===ra.S.Active);window.localStorage.setItem("featureFlags",JSON.stringify(Object.fromEntries(t)))}load(){try{let e=window.localStorage.getItem("featureFlags");if(!e)return new Map;let t=JSON.parse(e);if("object"!=typeof t||null===t||Array.isArray(t))return new Map;let r=Object.entries(t).filter(([e,t])=>(ro(e),t===ra.S.Active));return new Map(r)}catch{return new Map}}}let rl=(0,H.y)({id:"core.apptheme"}),rc=(0,H.y)({id:"core.applanguage"});var rd=r(37860);let ru={default:10,app:50,static:100};class rp{factories=new Map;register(e,t){let r=ru[e],i=this.factories.get(t.api.id);return(!i||!(i.priority>=r))&&(this.factories.set(t.api.id,{priority:r,factory:t}),!0)}get(e){let t=this.factories.get(e.id);if(t)return t.factory}getAllApis(){let e=new Set;for(let{factory:t}of this.factories.values())e.add(t.api);return e}}class rh{factories;static validateFactories(e,t){for(let r of t){let t=[r],i=new Set;for(;t.length;){let n=t.shift(),a=e.get(n);if(a)for(let e of Object.values(a.deps)){if(e.id===r.id)throw Error(`Circular dependency of api factory for ${r}`);i.has(e)||(i.add(e),t.push(e))}}}}apis=new Map;constructor(e){this.factories=e}get(e){return this.load(e)}load(e,t=[]){let r=this.apis.get(e.id);if(r)return r;let i=this.factories.get(e);if(!i)return;if(t.includes(i.api))throw Error(`Circular dependency of api factory for ${i.api}`);let n=this.loadDeps(e,i.deps,[...t,i.api]),a=i.factory(n);return this.apis.set(e.id,a),a}loadDeps(e,t,r){let i={};for(let n in t)if(t.hasOwnProperty(n)){let a=t[n],o=this.load(a,r);if(!o)throw Error(`No API factory available for dependency ${a} of dependent ${e}`);i[n]=o}return i}}function rg(e,t){return()=>({accumulator:e(),visit:t})}function rf(e){return e.props?.children}function rm(e){if(e.props?.path&&e.props?.element)return e.props?.element}var ry=r(65605);let rv=rg(()=>new Set,(e,t)=>{let r=(0,ry.E)(t,"core.plugin");r&&e.add(r)});var rb=r(50509);let rw=e=>{let{children:t}=e,r=(0,rb.gf)(ra.B),i="with"in e?r.isActive(e.with):!r.isActive(e.without);return(0,a.jsx)(a.Fragment,{children:i?t:null})};(0,ry.h)(rw,"core.featureFlagged",!0);let rx={caseSensitive:!1,path:"*",element:"match-all",routeRefs:new Set,plugins:new Set};function rA(e){return e?.type?e.type.displayName??e.type.name??String(e.type):String(e)}let rS=e=>{let t=new Set;return e&&t.add(e),t},rk=rg(()=>({paths:new Map,parents:new Map,objects:[]}),(e,t,r,i)=>{if(i?.isElementAncestor)return i;if(r?.props.element===t)return{...i,isElementAncestor:!0};let n=t.props?.path,a=(0,ry.E)(t,"core.mountPoint");if(a&&n)throw Error(`Path property may not be set directly on a routable extension "${rA(t)}"`);let o=i?.obj?.children??e.objects;if(void 0!==n){if("string"!=typeof n)throw Error(`Element path must be a string at "${rA(t)}"`);let r=n.startsWith("/")?n.slice(1):n,a=t.props.element;if((0,ry.E)(t,"core.gatherMountPoints")){if(a)throw Error(`Mount point gatherers may not have an element prop "${rA(t)}"`);let e={path:r,element:"gathered",routeRefs:new Set,caseSensitive:!!t.props?.caseSensitive,children:[rx],plugins:new Set};return o.push(e),{obj:e,gatherPath:r,routeRef:i?.routeRef,gatherRouteRef:i?.routeRef}}if(a){let[s,...l]=function e(t,r=[]){return tC.Children.forEach(t,t=>{if(!(0,tC.isValidElement)(t))return;let i=(0,ry.E)(t,"core.mountPoint");if(i){let e=(0,ry.E)(t,"core.plugin");r.push({routeRef:i,plugin:e})}e(t.props.children,r)}),r}(a);if(l.length>0)throw Error(`Route element with path "${n}" may not contain multiple routable extensions`);if(!s)return i;let{routeRef:c,plugin:d}=s,u={path:r,element:"mounted",routeRefs:new Set([c]),caseSensitive:!!t.props?.caseSensitive,children:[rx],plugins:rS(d)};return o.push(u),e.paths.set(c,r),e.parents.set(c,i?.routeRef),{obj:u,routeRef:c??i?.routeRef,gatherPath:r,gatherRouteRef:i?.gatherRouteRef}}}if(a){if(i?.gatherPath===void 0)throw Error(`Routable extension "${rA(t)}" with mount point "${a}" must be assigned a path`);i?.obj?.routeRefs.add(a);let r=(0,ry.E)(t,"core.plugin");return r&&i?.obj?.plugins.add(r),e.paths.set(a,i.gatherPath),e.parents.set(a,i?.gatherRouteRef),{...i,routeRef:a}}return i}),rE=rg(()=>({paths:new Map,parents:new Map,objects:[]}),(e,t,r,i)=>{if(r?.props.element===t)return i;let n=i?.obj,a=i?.routeRef,o=i?.sticky,s=t.props?.path,l=n?.children??e.objects,c=!!t.props?.caseSensitive,d=i?.path;if((0,ry.E)(t,"core.gatherMountPoints")){if(!s)throw Error("Mount point gatherer must have a path");d=s}let u=t.props?.element,p=(0,ry.E)(t,"core.mountPoint");if(!p&&(0,tC.isValidElement)(u)&&(p=(0,ry.E)(u,"core.mountPoint")),p){let r=s;if(d&&(r?d=void 0:r=d),!r)throw Error("Mounted routable extension must have a path");e.paths.set(p,r),a&&o?(e.parents.set(p,a),s&&(a=p,o=!1)):(e.parents.set(p,a),a=p),s?(n={caseSensitive:c,path:s,element:"mounted",routeRefs:new Set([p]),children:[rx],plugins:rS((0,ry.E)(t.props.element,"core.plugin"))},l.push(n)):n?.routeRefs.add(p)}if((0,ry.E)(t,"core.gatherMountPoints")&&(o=!0),(0,ry.E)(t,"core.gatherMountPoints")){if(!s)throw Error("Mount point gatherer must have a path");p||(n={caseSensitive:c,path:s,element:"gathered",routeRefs:new Set,children:[rx],plugins:i?.obj?.plugins||new Set},l.push(n))}return{obj:n,path:d,routeRef:a,sticky:o}}),rC=rg(()=>new Set,(e,t)=>{if(t.type===rw){let r=t.props;e.add("with"in r?r.with:r.without)}});var rj=r(21613);let r$=(0,r(93147).Q)("route-ref-type",()=>Symbol("route-ref-type"));function rI(e){return"absolute"===e[r$]}function rR(e){return"sub"===e[r$]}function rT(...e){let t=e.join("/").replace(/\/\/+/g,"/");return"/"!==t&&t.endsWith("/")?t.slice(0,-1):t}var rO=r(46155),rL=r.n(rO);class rB{routePaths;routeParents;routeObjects;routeBindings;appBasePath;constructor(e,t,r,i,n){this.routePaths=e,this.routeParents=t,this.routeObjects=r,this.routeBindings=i,this.appBasePath=n}resolve(e,t){let r,[i,n]=function(e,t,r){let i,n="";if(rI(e))i=e;else if(rR(e))i=e.parent,n=e.path;else if("external"===e[r$]){let t=r.get(e);if(!t)return[void 0,""];if(rI(t))i=t;else if(rR(t))i=t.parent,n=t.path;else throw Error(`ExternalRouteRef was bound to invalid target, ${t}`)}else if(e[r$])throw Error(`Unknown or invalid route ref type, ${e[r$]}`);else throw Error(`Unknown object passed to useRouteRef, got ${e}`);if(!i)return[void 0,""];let a=t.get(i);return void 0===a?[void 0,""]:[i,rT(a,n)]}(e,this.routePaths,this.routeBindings);if(!i)return;r="string"==typeof t?this.trimPath(t):t.pathname?{...t,pathname:this.trimPath(t.pathname)}:t;let a=this.appBasePath+function(e,t,r,i,n){let a=(0,rj.ue)(n,t)??[],o=[],s=-1;for(let t=e;t&&-1===(s=a.findIndex(e=>e.route.routeRefs.has(t)));t=i.get(t))o.unshift(t);0===o.length&&(s-=1);let l=-1===s?"":a[s].pathname,c=o.slice(0,-1).map(t=>{let i=r.get(t);if(void 0===i)throw Error(`No path for ${t}`);if(i.includes(":"))throw Error(`Cannot route to ${e} with parent ${t} as it has parameters`);return i});return`${rT(l,...c)}/`}(i,r,this.routePaths,this.routeParents,this.routeObjects);return(...[e])=>{let t=e&&rL()(e,e=>"string"==typeof e?e.replaceAll(/[&?#;\/]/g,e=>encodeURIComponent(e)):e);return rT(a,(0,rj.tW)(n,t))}}trimPath(e){return e&&e.startsWith(this.appBasePath)?e.slice(this.appBasePath.length):e}}let rU=(0,t1.tK)("routing-context"),rN=({routePaths:e,routeParents:t,routeObjects:r,routeBindings:i,basePath:n="",children:o})=>{let s=new rB(e,t,r,i,n),l=(0,t2.B)({1:s});return(0,a.jsx)(rU.Provider,{value:l,children:o})},rP=(0,t1.tK)("app-context"),rF=({appContext:e,children:t})=>{let r=(0,t2.B)({1:e});return(0,a.jsx)(rP.Provider,{value:r,children:t})};function rz(e){return Error(`Tried to access IdentityApi ${e} before app was loaded`)}function rM(e){console.warn(`WARNING: Call to ${e} is deprecated and will break in the future`)}class rD{target;waitForTarget;resolveTarget=()=>{};signOutTargetUrl="/";#y;constructor(){this.waitForTarget=new Promise(e=>{this.resolveTarget=e})}setTarget(e,t){this.target=e,this.signOutTargetUrl=t.signOutTargetUrl,this.resolveTarget(e)}getUserId(){if(!this.target)throw rz("getUserId");if(!this.target.getUserId)throw Error("IdentityApi does not implement getUserId");return rM("getUserId"),this.target.getUserId()}getProfile(){if(!this.target)throw rz("getProfile");if(!this.target.getProfile)throw Error("IdentityApi does not implement getProfile");return rM("getProfile"),this.target.getProfile()}async getProfileInfo(){return this.waitForTarget.then(e=>e.getProfileInfo())}async getBackstageIdentity(){let e=await this.waitForTarget.then(e=>e.getBackstageIdentity());return e.userEntityRef.match(/^.*:.*\/.*$/)||console.warn(`WARNING: The App IdentityApi provided an invalid userEntityRef, '${e.userEntityRef}'. It must be a full Entity Reference of the form '<kind>:<namespace>/<name>'.`),e}async getCredentials(){return this.waitForTarget.then(e=>e.getCredentials())}async getIdToken(){return this.waitForTarget.then(e=>{if(!e.getIdToken)throw Error("IdentityApi does not implement getIdToken");return rM("getIdToken"),e.getIdToken()})}async signOut(){await this.waitForTarget.then(e=>e.signOut()),await this.#y?.(),this.navigateToUrl(this.signOutTargetUrl)}navigateToUrl(e){window.location.href=e}enableCookieAuth(e){if(this.#y)return;let t=function({discoveryApi:e,fetchApi:t,errorApi:r}){let i,n=!1,a=!0,o=5e3,s="BroadcastChannel"in window?new BroadcastChannel("app-auth-cookie-expires-at"):void 0,l=e=>{let t=(1+3*Math.random())*6e4;return Math.max(e-Date.now(),3e5)-t},c=async()=>{try{let r=await e.getBaseUrl("app"),i=`${r}/.backstage/auth/v1/cookie`,n=await t.fetch(i,{credentials:"include"});if(!n.ok)throw Error(`Request failed with status ${n.status} ${n.statusText}, see request towards ${i} for more details`);let o=await n.json();if(!o.expiresAt)throw Error("No expiration date in response");let c=Date.parse(o.expiresAt);if(Number.isNaN(c))throw Error("Invalid expiration date in response");a=!0,s?.postMessage({action:"COOKIE_REFRESH_SUCCESS",payload:{expiresAt:new Date(c).toISOString()}}),u(l(c))}catch(e){a?(a=!1,o=5e3):(o=Math.min(3e5,2*o),console.error("Session cookie refresh failed",e),r.post(Error("Session refresh failed, see developer console for details"))),u(o)}},d=e=>{let{data:t}=e;if(null!==t&&"object"==typeof t&&"action"in t&&"COOKIE_REFRESH_SUCCESS"===t.action){let e=Date.parse(t.payload.expiresAt);if(Number.isNaN(e))return void console.warn("Received invalid expiration from session refresh channel");u(l(e))}};function u(e){n||(i&&clearTimeout(i),i=setTimeout(c,e))}return s?.addEventListener("message",d),c(),()=>{n=!0,i&&clearTimeout(i),s?.removeEventListener("message",d),s?.close()}}(e);this.#y=async()=>{t();let r=await e.discoveryApi.getBaseUrl("app");try{await fetch(`${r}/.backstage/auth/v1/cookie`,{method:"DELETE",credentials:"include"})}catch{}}}}var r_=r(87354);function rq({children:e}){let t=(0,rb.gf)(rl),r=function(e,t,r){if(void 0!==e){let t=r.find(t=>t.id===e);if(t)return t}if(t){let e=r.find(e=>"dark"===e.variant);if(e)return e}let i=r.find(e=>"light"===e.variant);return i||r[0]}((0,r_.A)(t.activeThemeId$(),t.getActiveThemeId()),!!window.matchMedia&&(()=>{let e=(0,tC.useMemo)(()=>window.matchMedia("(prefers-color-scheme: dark)"),[]),[t,r]=(0,tC.useState)(e.matches);return(0,tC.useEffect)(()=>{let t=e=>{r(e.matches)};return e.addListener(t),()=>{e.removeListener(t)}},[e]),t})(),t.getInstalledThemes());if(!r)throw Error("App has no themes");return(0,a.jsx)(r.Provider,{children:e})}let rH=async()=>(function(e="__APP_INJECTED_RUNTIME_CONFIG__"){let t=[],r=[];if(r){if(!Array.isArray(r))throw Error("Static configuration has invalid format");t.push(...r)}let i=document.querySelectorAll('script[type="backstage.io/config"]');if(i.length>0)for(let e of i)try{let r,i=e.textContent;if(!i)throw Error("tag is empty");try{r=JSON.parse(i)}catch(e){throw Error(`failed to parse config; ${e}`)}if(!Array.isArray(r))throw Error("data is not an array");t.push(...r)}catch(e){throw Error(`Failed to load config from script tag, ${e.message}`)}else if(e!=="__app_injected_runtime_config__".toLocaleUpperCase("en-US"))try{let r=JSON.parse(e);Array.isArray(r)?t.push(...r):t.push({data:r,context:"env"})}catch(e){throw Error(`Failed to load runtime configuration, ${e}`)}let n=window.__APP_CONFIG__;return n&&t.push({context:"window",data:n}),t})();class rV{apis=[];add(e,t){return this.apis.push([e.id,t]),t}build(){return new rW(new Map(this.apis))}}class rW{apis;static builder(){return new rV}static from(e){return new rW(new Map(e.map(([e,t])=>[e.id,t])))}static with(e,t){return new rW(new Map([[e.id,t]]))}constructor(e){this.apis=e}with(e,t){return new rW(new Map([...this.apis,[e.id,t]]))}get(e){return this.apis.get(e.id)}}function rK(){let[e]=(0,s.AV)((0,a.jsx)(s.qh,{index:!0,element:(0,a.jsx)("div",{})}));return!e.index}let rG=(0,tC.createContext)(void 0);var rY=r(77091),rZ=r(17323),rQ=r(92829);let rJ=({pathname:e,search:t,hash:r,attributes:i})=>{let n=(0,rZ.s)();return(0,tC.useEffect)(()=>{n.captureEvent("navigate",`${e}${t}${r}`,{attributes:i})},[n,e,t,r,i]),null},rX=({routeObjects:e})=>{let{pathname:t,search:r,hash:i}=(0,s.zy)(),{params:n,...o}=((e,t)=>{try{let r,i,n=(0,rj.ue)(t,{pathname:e}),a=n?.filter(e=>e?.route.routeRefs?.size>0).pop(),o=a?.route;if(!o||""===o.path&&"/"!==e)return;1===o.routeRefs.size&&(r=o.routeRefs.values().next().value),1===o.plugins.size&&(i=o.plugins.values().next().value);let s=Object.entries(a?.params||{}).reduce((e,[t,r])=>(void 0!==r&&"*"!==t&&(e[t]=r),e),{});return{extension:"App",pluginId:i?.getId()||"root",...r?{routeRef:r.id}:{},_routeNodeType:o.element,params:s}}catch{return}})(t,e)||{params:{}};return(0,a.jsx)(rQ.Ig,{attributes:o,children:(0,a.jsx)(rJ,{pathname:t,search:r,hash:i,attributes:n})})};function r0(e){let{pathname:t}=new URL(e.getOptionalString("app.baseUrl")??"/","http://sample.dev");return t.replace(/\/*$/,"")}function r1({component:e,appIdentityProxy:t,children:r}){let[i,n]=(0,tC.useState)(),o=r0((0,rb.gf)(eN.U));return i?(t.setTarget(i,{signOutTargetUrl:o||"/"}),(0,a.jsx)(a.Fragment,{children:r})):(0,a.jsx)(e,{onSignInSuccess:n})}function r2(e){let{Router:t,SignInPage:r}=(0,rY.n)().getComponents(),i=r0((0,rb.gf)(eN.U)),n=`${i}/*`,o=(0,tC.useContext)(rG);if(!o)throw Error("AppRouter must be rendered within the AppProvider");let{routeObjects:l,appIdentityProxy:c}=o;return r?rK()?(0,a.jsxs)(t,{children:[(0,a.jsx)(rX,{routeObjects:l}),(0,a.jsx)(r1,{component:r,appIdentityProxy:c,children:(0,a.jsx)(s.BV,{children:(0,a.jsx)(s.qh,{path:n,element:(0,a.jsx)(a.Fragment,{children:e.children})})})})]}):(0,a.jsxs)(t,{basename:i,children:[(0,a.jsx)(rX,{routeObjects:l}),(0,a.jsx)(r1,{component:r,appIdentityProxy:c,children:e.children})]}):(c.setTarget({getUserId:()=>"guest",getIdToken:async()=>void 0,getProfile:()=>({email:"guest@example.com",displayName:"Guest"}),getProfileInfo:async()=>({email:"guest@example.com",displayName:"Guest"}),getBackstageIdentity:async()=>({type:"user",userEntityRef:"user:default/guest",ownershipEntityRefs:["user:default/guest"]}),getCredentials:async()=>({}),signOut:async()=>{}},{signOutTargetUrl:i||"/"}),rK())?(0,a.jsxs)(t,{children:[(0,a.jsx)(rX,{routeObjects:l}),(0,a.jsx)(s.BV,{children:(0,a.jsx)(s.qh,{path:n,element:(0,a.jsx)(a.Fragment,{children:e.children})})})]}):(0,a.jsxs)(t,{basename:i,children:[(0,a.jsx)(rX,{routeObjects:l}),e.children]})}(0,ry.h)(r2,"core.type","AppRouter");let r5="language";class r3{static create(e){let t=e?.availableLanguages??["en"];if(t.length!==new Set(t).size)throw Error(`Supported languages may not contain duplicates, got '${t.join("', '")}'`);let r=e?.defaultLanguage??"en";if(!t.includes(r))throw Error(`Initial language must be one of the supported languages, got '${r}'`);return new r3(t,r)}static createWithStorage(e){let t=r3.create(e);if(!window.localStorage)return t;let r=window.localStorage.getItem(r5),{languages:i}=t.getAvailableLanguages();return r&&i.includes(r)&&t.setLanguage(r),t.language$().subscribe(({language:e})=>{e!==window.localStorage.getItem(r5)&&window.localStorage.setItem(r5,e)}),window.addEventListener("storage",e=>{if(e.key===r5){let e=localStorage.getItem(r5)??void 0;e&&t.setLanguage(e)}}),t}#v;#b;#w;constructor(e,t){this.#v=e,this.#b=t,this.#w=new E({language:this.#b})}getAvailableLanguages(){return{languages:this.#v.slice()}}setLanguage(e){let t=e??"en";if(t!==this.#b){if(t&&!this.#v.includes(t))throw Error(`Failed to change language to '${t}', available languages are '${this.#v.join("', '")}'`);this.#b=t,this.#w.next({language:t})}}getLanguage(){return{language:this.#b}}language$(){return this.#w}}var r4=r(47304),r8=r(78859),r7=r(97386);function r6(e){return Object.fromEntries(Object.entries(e).filter(e=>null!==e[1]))}class r9{onLoad;#x=new Set;#A=new Map;#S=new Map;constructor(e){this.onLoad=e}addTranslationResource(e){let t=(0,r8.Y)(e);for(let e of t.resources){let r=this.#k(e.language,t.id);this.#S.has(r)||this.#S.set(r,e.loader)}}#k(e,t){return`${e}/${t}`}needsLoading(e,t){let r=this.#k(e,t);return!!this.#S.get(r)&&!this.#x.has(r)}async load(e,t){let r=this.#k(e,t),i=this.#S.get(r);if(!i||this.#x.has(r))return;let n=this.#A.get(r);if(n)return void await n;let a=i().then(i=>{this.onLoad({language:e,namespace:t,messages:i.messages}),this.#x.add(r)},e=>{throw this.#x.add(r),e});this.#A.set(r,a),await a}}class ie{#E;#C;#j;static fromI18n(e){let t,r=e.services.interpolator,i=r.format;return r.format=(e,r,n,a)=>r?i(e,r,n,a):t?.(e,r,n,a)??e,new ie(Math.random().toString(36).substring(2,8),e=>{t=e})}constructor(e,t){this.#E=t,this.#C=e,this.#j=RegExp(`\\$${e}\\(([^)]+)\\)`)}wrapT(e){return(t,r)=>{let i;this.#E(e=>{if((0,tC.isValidElement)(e)){i||(i=new Map);let t=i.size.toString();return i.set(t,e),`$${this.#C}(${t})`}return e});let n=e(t,r);if(!i)return n;let a=n.split(this.#j);return(0,tC.createElement)(tC.Fragment,null,...a.map((e,t)=>t%2==0?e:i?.get(e)).filter(Boolean))}}}class it{static create(e){let{languages:t}=e.languageApi.getAvailableLanguages(),r=(0,r4.Q_)({fallbackLng:"en",supportedLngs:t,interpolation:{escapeValue:!1,alwaysFormat:!0},ns:[],defaultNS:!1,fallbackNS:!1,initImmediate:!1});if(r.init(),!r.isInitialized)throw Error("i18next was unexpectedly not initialized");let i=ie.fromI18n(r),{language:n}=e.languageApi.getLanguage();"en"!==n&&r.changeLanguage(n);let a=new r9(e=>{r.addResourceBundle(e.language,e.namespace,r6(e.messages),!1,!0)}),o=e?.resources||[];for(let e=o.length-1;e>=0;e--){let t=o[e];"@backstage/TranslationResource"===t.$$type?a.addTranslationResource(t):"@backstage/TranslationMessages"===t.$$type&&r.addResourceBundle("en",t.id,r6(t.messages),!0,!1)}let s=new it(r,a,e.languageApi.getLanguage().language,i);return e.languageApi.language$().subscribe(({language:e})=>{s.#$(e)}),s}#I;#R;#b;#T;#O=new Set;#L=new Set;constructor(e,t,r,i){this.#I=e,this.#R=t,this.#b=r,this.#T=i}getTranslation(e){let t=(0,r7.v)(e);return this.#B(t),this.#U(t)}translation$(e){let t=(0,r7.v)(e);return this.#B(t),new(S())(e=>{let r={},i=()=>{let i=r={};this.#R.load(this.#b,t.id).then(()=>{if(i===r){let r=this.#U(t);r.ready&&e.next(r)}},t=>{i===r&&e.error(Array.isArray(t)?t[0]:t)})},n=()=>{let r=this.#U(t);r.ready?e.next(r):i()};return this.#R.needsLoading(this.#b,t.id)&&i(),this.#L.add(n),()=>{this.#L.delete(n)}})}#$(e){this.#b!==e&&(this.#b=e,this.#I.changeLanguage(e),this.#L.forEach(e=>e()))}#U(e){if(this.#R.needsLoading(this.#b,e.id))return{ready:!1};let t=this.#I.getFixedT(null,e.id);return{ready:!0,t:this.#T.wrapT(t)}}#B(e){if(this.#O.has(e.id))return;this.#O.add(e.id);let t=e.getDefaultMessages();this.#I.addResourceBundle("en",e.id,t,!0,!1);let r=e.getDefaultResource();r&&this.#R.addTranslationResource(r)}}function ir(e){let t=new URL(e);return t.protocol=document.location.protocol,t.hostname=document.location.hostname,t.port=document.location.port,t.toString().replace(/\/$/,"")}class ii{app;constructor(e){this.app=e}getPlugins(){return this.app.getPlugins()}getSystemIcon(e){return this.app.getSystemIcon(e)}getSystemIcons(){return this.app.getSystemIcons()}getComponents(){return this.app.getComponents()}}class ia{apiHolder;configApi;apis;icons;plugins;featureFlags;components;themes;configLoader;defaultApis;bindRoutes;appLanguageApi;translationResources;appIdentityProxy=new rD;apiFactoryRegistry;constructor(e){this.apis=e.apis??[],this.icons=e.icons,this.plugins=new Set(e.plugins??[]),this.featureFlags=e.featureFlags??[],this.components=e.components,this.themes=e.themes,this.configLoader=e.configLoader??rH,this.defaultApis=e.defaultApis??[],this.bindRoutes=e.bindRoutes,this.apiFactoryRegistry=new rp,this.appLanguageApi=r3.createWithStorage({defaultLanguage:e.__experimentalTranslations?.defaultLanguage,availableLanguages:e.__experimentalTranslations?.availableLanguages}),this.translationResources=e.__experimentalTranslations?.resources??[]}getPlugins(){return Array.from(this.plugins)}getSystemIcon(e){return this.icons[e]}getSystemIcons(){return this.icons}getComponents(){return this.components}createRoot(e){let t=this.getProvider();return()=>(0,a.jsx)(t,{children:e})}#N=!1;getProvider(){let e,t;if(this.#N)throw Error("app.getProvider() or app.createRoot() has already been called, and can only be called once");this.#N=!0;let r=new ii(this);return({children:i})=>{let n,o=(0,tC.useRef)(!0),s=(0,tC.useMemo)(()=>rn.createWithStorage(this.themes),[]),{routing:l,featureFlags:c}=(0,tC.useMemo)(()=>{let e=rK();e&&console.warn(`
2
2
  DEPRECATION WARNING: React Router Beta is deprecated and support for it will be removed in a future release.
3
3
  Please migrate to use React Router v6 stable.
4
4
  See https://backstage.io/docs/tutorials/react-router-stable-migration
@@ -13,8 +13,8 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
13
13
  /* FONT */
14
14
  --md-default-fg-color: ${e.palette.text.primary};
15
15
  --md-default-fg-color--light: ${e.palette.text.secondary};
16
- --md-default-fg-color--lighter: ${(0,eO.a)(e.palette.text.secondary,.7)};
17
- --md-default-fg-color--lightest: ${(0,eO.a)(e.palette.text.secondary,.3)};
16
+ --md-default-fg-color--lighter: ${(0,eO.X4)(e.palette.text.secondary,.3)};
17
+ --md-default-fg-color--lightest: ${(0,eO.X4)(e.palette.text.secondary,.15)};
18
18
 
19
19
  /* BACKGROUND */
20
20
  --md-default-bg-color:${e.palette.background.default};
@@ -101,7 +101,7 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
101
101
  --md-typeset-font-size: 1rem;
102
102
  --md-typeset-color: var(--md-default-fg-color);
103
103
  --md-typeset-a-color: ${e.palette.link};
104
- --md-typeset-table-color: ${e.palette.text.primary};
104
+ --md-typeset-table-color: ${(0,eO.X4)(e.palette.text.primary,.15)};
105
105
  --md-typeset-table-color--light: ${(0,eO.X4)(e.palette.text.primary,.05)};
106
106
  --md-typeset-del-color: ${"dark"===e.palette.type?(0,eO.X4)(e.palette.error.dark,.5):(0,eO.X4)(e.palette.error.light,.5)};
107
107
  --md-typeset-ins-color: ${"dark"===e.palette.type?(0,eO.X4)(e.palette.success.dark,.5):(0,eO.X4)(e.palette.success.light,.5)};
@@ -433,7 +433,7 @@ ${eL.reduce((t,r)=>{let i=e.typography.htmlFontSize??16,{lineHeight:n,fontFamily
433
433
 
434
434
  .md-typeset table:not([class]) {
435
435
  font-size: var(--md-typeset-font-size);
436
- border: 1px solid var(--md-default-fg-color);
436
+ border: 1px solid var(--md-typeset-table-color);
437
437
  border-bottom: none;
438
438
  border-collapse: collapse;
439
439
  border-radius: ${e.shape.borderRadius}px;
@@ -442,7 +442,7 @@ ${eL.reduce((t,r)=>{let i=e.typography.htmlFontSize??16,{lineHeight:n,fontFamily
442
442
  font-weight: bold;
443
443
  }
444
444
  .md-typeset table:not([class]) td, .md-typeset table:not([class]) th {
445
- border-bottom: 1px solid var(--md-default-fg-color);
445
+ border-bottom: 1px solid var(--md-typeset-table-color);
446
446
  }
447
447
 
448
448
  .md-typeset pre > code::-webkit-scrollbar-thumb {
@@ -543,8 +543,8 @@ ${eL.reduce((t,r)=>{let i=e.typography.htmlFontSize??16,{lineHeight:n,fontFamily
543
543
  ${eN[e.palette.type].map(e=>`img[src$="${e}"]`).join(", ")} {
544
544
  display: none;
545
545
  }
546
- `],eF=async(e,t)=>{let r;if("string"==typeof e)r=new DOMParser().parseFromString(e,"text/html").documentElement;else if(e instanceof Element)r=e;else throw Error("dom is not a recognized type");for(let e of t)r=await e(r);return r},ez=(e,t,r)=>{let i=new URL(t,"https://ignored.com").pathname,n="src"===e&&i.endsWith(".svg"),a=!t.match(/^([a-z]*:)?\/\//i),o=t.startsWith(r);return n&&(a||o)};function eM(e){let t=new URL(e);return t.pathname.endsWith("/")||t.pathname.endsWith(".html")||(t.pathname+="/"),t.toString()}var eD=r(27326);function e_(e,t){i.then(r=>{"createRoot"in r?r.createRoot(t).render(e):r.render(e,t)})}i=Promise.resolve().then(r.t.bind(r,25873,19));var eq=r(87393),eH=r(90292),eV=r(52536),eW=r.n(eV),eK=r(38097);let eG=(0,c.A)(e=>({button:{color:e.palette.primary.light,textDecoration:"underline"}})),eY=({message:e,handleButtonClick:t,autoHideDuration:r})=>{let i=eG(),[n,a]=(0,s.useState)(!0),l=()=>a(!1);return(0,o.jsx)(eK.A,{open:n,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:r,color:"primary",onClose:l,message:e,action:(0,o.jsx)(D.A,{classes:{root:i.button},size:"small",onClick:()=>{l(),t()},children:"Redirect now"})})};var eZ=r(50868),eQ=r(10437),eJ=r(71677),eX=r(24568),e0=r(11688);let e1=(0,eX.A)(e=>({tooltip:{fontSize:"inherit",color:e.palette.text.primary,margin:0,padding:e.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(eJ.Ay),e2=()=>(0,o.jsx)(eQ.A,{children:(0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})}),e5=({text:e})=>{let[t,r]=(0,s.useState)(!1),[,i]=(0,e0.A)(),n=(0,s.useCallback)(()=>{i(e),r(!0)},[e,i]),a=(0,s.useCallback)(()=>{r(!1)},[r]);return(0,o.jsx)(e1,{title:"Copied to clipboard",placement:"left",open:t,onClose:a,leaveDelay:1e3,children:(0,o.jsx)(F.A,{style:{position:"absolute"},className:"md-clipboard md-icon",onClick:n,"aria-label":"Copy to clipboard",children:(0,o.jsx)(e2,{})})})},e3=({onLoading:e,onLoaded:t})=>r=>(e(),r.addEventListener(g,function e(){t(),r.removeEventListener(g,e)}),r);var e4=r(41883),e8=r(90479),e7=r(10337);let e6=()=>{let e=(0,e8.YR)(),{shadowRoot:t}=(0,d.V)(),r=t?.querySelector('[data-md-component="content"]'),i=t?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]'),n=i?.querySelector('[data-techdocs-addons-location="primary sidebar"]');n||((n=document.createElement("div")).setAttribute("data-techdocs-addons-location","primary sidebar"),i?.prepend(n));let a=t?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]'),s=a?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return s||((s=document.createElement("div")).setAttribute("data-techdocs-addons-location","secondary sidebar"),a?.prepend(s)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e4.A,{container:n,children:e.renderComponentsByLocation(e7.e.PrimarySidebar)}),(0,o.jsx)(e4.A,{container:r,children:e.renderComponentsByLocation(e7.e.Content)}),(0,o.jsx)(e4.A,{container:s,children:e.renderComponentsByLocation(e7.e.SecondarySidebar)})]})},e9=(0,c.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),te=(a=e=>{let{withSearch:t=!0,searchResultUrlMapper:r,onReady:i}=e,n=e9(),{entityMetadata:{value:a,loading:c},entityRef:u,setShadowRoot:p}=(0,d.V)(),{state:h}=ey(),g=((e,t)=>{let r,i,n,a,l,c,d,u=(r=(0,s.useRef)((0,Q.Zp)()),i=(0,E.gf)($.U).getOptionalString("app.baseUrl"),(0,s.useCallback)(e=>{let t=e;if(i)try{let r,n,a,o;r=new URL(i),n=`${r.origin}${r.pathname.replace(/\/$/,"")}`,a=e.replace(n,"").replace(/^\/+/,""),o=new URL(`http://localhost/${a}`),t=`${o.pathname}${o.search}${o.hash}`}catch(e){}r.current(t)},[i])),p=(0,eA.A)(),h=(0,ex.A)("screen and (max-width: 76.1875em)"),g=(n=(0,E.gf)($.U),a=(0,s.useMemo)(()=>n.getOptionalConfig("techdocs.sanitizer"),[n]),(0,s.useCallback)(async e=>{let t=a?.getOptionalStringArray("allowedIframeHosts");ek.A.addHook("beforeSanitizeElements",e$);let r=["link","meta"];t&&(r.push("iframe"),ek.A.addHook("beforeSanitizeElements",e=>{e.nodeType!==Node.ELEMENT_NODE||"IFRAME"!==e.nodeName||((e,t)=>{let r=e.getAttribute("src")||"";try{let{host:e}=new URL(r);return t.includes(e)}catch{return!1}})(e,t)||e.remove()}));ek.A.addHook("uponSanitizeElement",eI),ek.A.addHook("uponSanitizeAttribute",eR);let i=a?.getOptionalString("allowedCustomElementTagNameRegExp"),n=a?.getOptionalString("allowedCustomElementAttributeNameRegExp"),o=["callto","cid","ftp","ftps","http","https","mailto","matrix","sms","tel","xmpp",...a?.getOptionalStringArray("additionalAllowedURIProtocols")||[]].filter(Boolean),s=RegExp(`^(?:${o.join("|")}:|[^a-z]|[a-z+.-]+(?:[^a-z+.\\-:]|$))`,"i");return ek.A.sanitize(e.outerHTML,{ADD_TAGS:r,FORBID_TAGS:["style"],ADD_ATTR:["http-equiv","content","dominant-baseline"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0,ALLOWED_URI_REGEXP:s,CUSTOM_ELEMENT_HANDLING:{tagNameCheck:i?new RegExp(i):void 0,attributeNameCheck:n?new RegExp(n):void 0}})},[a])),m=(l=(0,eT.Ut)(),c=(0,eA.A)(),d=(0,s.useMemo)(()=>{let e={theme:c,sidebar:l};return eP.reduce((t,r)=>t+r(e),"")},[c,l]),(0,s.useCallback)(e=>(e.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${d}</style>`),e),[d])),y=(0,C.s)(),v=(0,E.gf)(eg.s),b=(0,E.gf)(eS.Y),w=(0,E.gf)($.U),{state:x,path:A,content:S}=ey(),{"*":k=""}=(0,Q.g)(),[j,I]=(0,s.useState)(null),R=f(j);(e=>{let t=(0,Q.zy)(),r=(0,Q.Zp)(),{"*":i=""}=(0,Q.g)();(0,s.useLayoutEffect)(()=>{""===i&&e&&r(`${t.pathname}${e}`,{replace:!0})},[])})(t);let T=(0,s.useCallback)(()=>{j&&j.querySelectorAll(".md-sidebar").forEach(e=>{if(h)e.style.top="0px";else{let t=document?.querySelector(".techdocs-reader-page"),r=t?.getBoundingClientRect().top??0,i=j.getBoundingClientRect().top??0,n=j.querySelector(".md-container > .md-tabs"),a=n?.getBoundingClientRect().height??0;i<r&&(i=r);let o=Math.max(i,0)+a;e.style.top=`${o}px`;let s=j.querySelector(".md-container > .md-footer"),l=s?.getBoundingClientRect().top??window.innerHeight;e.style.height=`${l-o}px`}e.style.setProperty("opacity","1")})},[j,h]);(0,s.useEffect)(()=>(window.addEventListener("resize",T),window.addEventListener("scroll",T,!0),()=>{window.removeEventListener("resize",T),window.removeEventListener("scroll",T,!0)}),[j,T]);let O=(0,s.useCallback)(()=>{if(!j)return;let e=j.querySelector(".md-footer");e&&(e.style.width=`${j.getBoundingClientRect().width}px`)},[j]);(0,s.useEffect)(()=>(window.addEventListener("resize",O),()=>{window.removeEventListener("resize",O)}),[j,O]),(0,s.useEffect)(()=>{R||(O(),T())},[x,R,O,T]);let L=(0,s.useCallback)((t,r)=>eF(t,[g,(({techdocsStorageApi:e,entityId:t,path:r})=>async i=>{let n=await e.getApiOrigin(),a=async(i,a)=>{for(let o of i)if(o.hasAttribute(a)){let i=o.getAttribute(a);if(!i)return;let s=await e.getBaseUrl(i,t,r);if(ez(a,i,n))try{let e=await fetch(s,{credentials:"include"}),t=await e.text();o.setAttribute(a,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(t)))}`)}catch(e){o.setAttribute("alt",`Error: ${i}`)}else o.setAttribute(a,s)}};return await Promise.all([a(i.querySelectorAll("img"),"src"),a(i.querySelectorAll("script"),"src"),a(i.querySelectorAll("source"),"src"),a(i.querySelectorAll("link"),"href"),a(i.querySelectorAll("a[download]"),"href")]),i})({techdocsStorageApi:v,entityId:e,path:r}),e=>{var t,r;return t=Array.from(e.getElementsByTagName("a")),r="href",Array.from(t).filter(e=>e.hasAttribute(r)).forEach(e=>{let t=e.getAttribute(r);if(t){t.match(/^https?:\/\//i)&&e.setAttribute("target","_blank");try{let i=eM(window.location.href);e.setAttribute(r,new URL(t,i).toString())}catch(r){e.replaceWith(e.textContent||t)}}}),e},e=>{let t=e.querySelector('.md-header label[for="__drawer"]'),r=e.querySelector("article");if(!t||!r)return e;let i=t.cloneNode();return e_((0,s.createElement)(eD.default),i),i.id="toggle-sidebar",i.title="Toggle Sidebar",i.classList.add("md-content__button"),i.style.setProperty("padding","0 0 0 5px"),i.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),r?.prepend(i),e},e=>(e.querySelector(".md-header")?.remove(),e),e=>(e.querySelector(".md-footer .md-copyright")?.remove(),e.querySelector(".md-footer-copyright")?.remove(),e),e=>{let t=e.querySelector('[title="Edit this page"]');if(!t||!t.href)return e;let r=new URL(t.href),i=b.byUrl(r);if(i?.type!=="github"&&i?.type!=="gitlab")return e;let n=e.querySelector("article>h1")?.childNodes[0].textContent||"",a=encodeURIComponent(`Documentation Feedback: ${n}`),o=encodeURIComponent(`Page source:
546
+ `],eF=async(e,t)=>{let r;if("string"==typeof e)r=new DOMParser().parseFromString(e,"text/html").documentElement;else if(e instanceof Element)r=e;else throw Error("dom is not a recognized type");for(let e of t)r=await e(r);return r},ez=(e,t,r)=>{let i=new URL(t,"https://ignored.com").pathname,n="src"===e&&i.endsWith(".svg"),a=!t.match(/^([a-z]*:)?\/\//i),o=t.startsWith(r);return n&&(a||o)};function eM(e){let t=new URL(e);return t.pathname.endsWith("/")||t.pathname.endsWith(".html")||(t.pathname+="/"),t.toString()}var eD=r(27326);function e_(e,t){i.then(r=>{"createRoot"in r?r.createRoot(t).render(e):r.render(e,t)})}i=Promise.resolve().then(r.t.bind(r,25873,19));var eq=r(87393),eH=r(90292),eV=r(52536),eW=r.n(eV),eK=r(38097);let eG=(0,c.A)(e=>({button:{color:e.palette.primary.light,textDecoration:"underline"}})),eY=({message:e,handleButtonClick:t,autoHideDuration:r})=>{let i=eG(),[n,a]=(0,s.useState)(!0),l=()=>a(!1);return(0,o.jsx)(eK.A,{open:n,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:r,color:"primary",onClose:l,message:e,action:(0,o.jsx)(D.A,{classes:{root:i.button},size:"small",onClick:()=>{l(),t()},children:"Redirect now"})})};var eZ=r(50868),eQ=r(10437),eJ=r(71677),eX=r(24568),e0=r(11688);let e1=(0,eX.A)(e=>({tooltip:{fontSize:"inherit",color:e.palette.text.primary,margin:0,padding:e.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(eJ.Ay),e2=()=>(0,o.jsx)(eQ.A,{children:(0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})}),e5=({text:e})=>{let[t,r]=(0,s.useState)(!1),[,i]=(0,e0.A)(),n=(0,s.useCallback)(()=>{i(e),r(!0)},[e,i]),a=(0,s.useCallback)(()=>{r(!1)},[r]);return(0,o.jsx)(e1,{title:"Copied to clipboard",placement:"left",open:t,onClose:a,leaveDelay:1e3,children:(0,o.jsx)(F.A,{style:{position:"absolute",top:"0.5rem",right:"0.5rem"},className:"md-clipboard md-icon",onClick:n,"aria-label":"Copy to clipboard",children:(0,o.jsx)(e2,{})})})},e3=({onLoading:e,onLoaded:t})=>r=>(e(),r.addEventListener(g,function e(){t(),r.removeEventListener(g,e)}),r);var e4=r(41883),e8=r(90479),e7=r(10337);let e6=()=>{let e=(0,e8.YR)(),{shadowRoot:t}=(0,d.V)(),r=t?.querySelector('[data-md-component="content"]'),i=t?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]'),n=i?.querySelector('[data-techdocs-addons-location="primary sidebar"]');n||((n=document.createElement("div")).setAttribute("data-techdocs-addons-location","primary sidebar"),i?.prepend(n));let a=t?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]'),s=a?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return s||((s=document.createElement("div")).setAttribute("data-techdocs-addons-location","secondary sidebar"),a?.prepend(s)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e4.A,{container:n,children:e.renderComponentsByLocation(e7.e.PrimarySidebar)}),(0,o.jsx)(e4.A,{container:r,children:e.renderComponentsByLocation(e7.e.Content)}),(0,o.jsx)(e4.A,{container:s,children:e.renderComponentsByLocation(e7.e.SecondarySidebar)})]})},e9=(0,c.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),te=(a=e=>{let{withSearch:t=!0,searchResultUrlMapper:r,onReady:i}=e,n=e9(),{entityMetadata:{value:a,loading:c},entityRef:u,setShadowRoot:p}=(0,d.V)(),{state:h}=ey(),g=((e,t)=>{let r,i,n,a,l,c,d,u=(r=(0,s.useRef)((0,Q.Zp)()),i=(0,E.gf)($.U).getOptionalString("app.baseUrl"),(0,s.useCallback)(e=>{let t=e;if(i)try{let r,n,a,o;r=new URL(i),n=`${r.origin}${r.pathname.replace(/\/$/,"")}`,a=e.replace(n,"").replace(/^\/+/,""),o=new URL(`http://localhost/${a}`),t=`${o.pathname}${o.search}${o.hash}`}catch(e){}r.current(t)},[i])),p=(0,eA.A)(),h=(0,ex.A)("screen and (max-width: 76.1875em)"),g=(n=(0,E.gf)($.U),a=(0,s.useMemo)(()=>n.getOptionalConfig("techdocs.sanitizer"),[n]),(0,s.useCallback)(async e=>{let t=a?.getOptionalStringArray("allowedIframeHosts");ek.A.addHook("beforeSanitizeElements",e$);let r=["link","meta"];t&&(r.push("iframe"),ek.A.addHook("beforeSanitizeElements",e=>{e.nodeType!==Node.ELEMENT_NODE||"IFRAME"!==e.nodeName||((e,t)=>{let r=e.getAttribute("src")||"";try{let{host:e}=new URL(r);return t.includes(e)}catch{return!1}})(e,t)||e.remove()}));ek.A.addHook("uponSanitizeElement",eI),ek.A.addHook("uponSanitizeAttribute",eR);let i=a?.getOptionalString("allowedCustomElementTagNameRegExp"),n=a?.getOptionalString("allowedCustomElementAttributeNameRegExp"),o=["callto","cid","ftp","ftps","http","https","mailto","matrix","sms","tel","xmpp",...a?.getOptionalStringArray("additionalAllowedURIProtocols")||[]].filter(Boolean),s=RegExp(`^(?:${o.join("|")}:|[^a-z]|[a-z+.-]+(?:[^a-z+.\\-:]|$))`,"i");return ek.A.sanitize(e.outerHTML,{ADD_TAGS:r,FORBID_TAGS:["style"],ADD_ATTR:["http-equiv","content","dominant-baseline"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0,ALLOWED_URI_REGEXP:s,CUSTOM_ELEMENT_HANDLING:{tagNameCheck:i?new RegExp(i):void 0,attributeNameCheck:n?new RegExp(n):void 0}})},[a])),m=(l=(0,eT.Ut)(),c=(0,eA.A)(),d=(0,s.useMemo)(()=>{let e={theme:c,sidebar:l};return eP.reduce((t,r)=>t+r(e),"")},[c,l]),(0,s.useCallback)(e=>(e.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${d}</style>`),e),[d])),y=(0,C.s)(),v=(0,E.gf)(eg.s),b=(0,E.gf)(eS.Y),w=(0,E.gf)($.U),{state:x,path:A,content:S}=ey(),{"*":k=""}=(0,Q.g)(),[j,I]=(0,s.useState)(null),R=f(j);(e=>{let t=(0,Q.zy)(),r=(0,Q.Zp)(),{"*":i=""}=(0,Q.g)();(0,s.useLayoutEffect)(()=>{""===i&&e&&r(`${t.pathname}${e}`,{replace:!0})},[])})(t);let T=(0,s.useCallback)(()=>{j&&j.querySelectorAll(".md-sidebar").forEach(e=>{if(h)e.style.top="0px";else{let t=document?.querySelector(".techdocs-reader-page"),r=t?.getBoundingClientRect().top??0,i=j.getBoundingClientRect().top??0,n=j.querySelector(".md-container > .md-tabs"),a=n?.getBoundingClientRect().height??0;i<r&&(i=r);let o=Math.max(i,0)+a;e.style.top=`${o}px`;let s=j.querySelector(".md-container > .md-footer"),l=s?.getBoundingClientRect().top??window.innerHeight;e.style.height=`${l-o}px`}e.style.setProperty("opacity","1")})},[j,h]);(0,s.useEffect)(()=>(window.addEventListener("resize",T),window.addEventListener("scroll",T,!0),()=>{window.removeEventListener("resize",T),window.removeEventListener("scroll",T,!0)}),[j,T]);let O=(0,s.useCallback)(()=>{if(!j)return;let e=j.querySelector(".md-footer");e&&(e.style.width=`${j.getBoundingClientRect().width}px`)},[j]);(0,s.useEffect)(()=>(window.addEventListener("resize",O),()=>{window.removeEventListener("resize",O)}),[j,O]),(0,s.useEffect)(()=>{R||(O(),T())},[x,R,O,T]);let L=(0,s.useCallback)((t,r)=>eF(t,[g,(({techdocsStorageApi:e,entityId:t,path:r})=>async i=>{let n=await e.getApiOrigin(),a=async(i,a)=>{for(let o of i)if(o.hasAttribute(a)){let i=o.getAttribute(a);if(!i)return;let s=await e.getBaseUrl(i,t,r);if(ez(a,i,n))try{let e=await fetch(s,{credentials:"include"}),t=await e.text();o.setAttribute(a,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(t)))}`)}catch(e){o.setAttribute("alt",`Error: ${i}`)}else o.setAttribute(a,s)}};return await Promise.all([a(i.querySelectorAll("img"),"src"),a(i.querySelectorAll("script"),"src"),a(i.querySelectorAll("source"),"src"),a(i.querySelectorAll("link"),"href"),a(i.querySelectorAll("a[download]"),"href")]),i})({techdocsStorageApi:v,entityId:e,path:r}),e=>{var t,r;return t=Array.from(e.getElementsByTagName("a")),r="href",Array.from(t).filter(e=>e.hasAttribute(r)).forEach(e=>{let t=e.getAttribute(r);if(t){t.match(/^https?:\/\//i)&&e.setAttribute("target","_blank");try{let i=eM(window.location.href);e.setAttribute(r,new URL(t,i).toString())}catch(r){e.replaceWith(e.textContent||t)}}}),e},e=>{let t=e.querySelector('.md-header label[for="__drawer"]'),r=e.querySelector("article");if(!t||!r)return e;let i=t.cloneNode();return e_((0,s.createElement)(eD.default),i),i.id="toggle-sidebar",i.title="Toggle Sidebar",i.classList.add("md-content__button"),i.style.setProperty("padding","0 0 0 5px"),i.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),r?.prepend(i),e},e=>(e.querySelector(".md-header")?.remove(),e),e=>(e.querySelector(".md-footer .md-copyright")?.remove(),e.querySelector(".md-footer-copyright")?.remove(),e),e=>{let t=e.querySelector('[title="Edit this page"]');if(!t||!t.href)return e;let r=new URL(t.href),i=b.byUrl(r);if(i?.type!=="github"&&i?.type!=="gitlab")return e;let n=e.querySelector("article>h1")?.childNodes[0].textContent||"",a=encodeURIComponent(`Documentation Feedback: ${n}`),o=encodeURIComponent(`Page source:
547
547
  ${t.href}
548
548
 
549
- Feedback:`),l=i?.type==="github"?(0,eq.F)(r.href,"blob"):r.href,c=eW()(l),d=`/${c.organization}/${c.name}`,u=t.cloneNode();switch(i?.type){case"gitlab":u.href=`${r.origin}${d}/issues/new?issue[title]=${a}&issue[description]=${o}`;break;case"github":u.href=`${r.origin}${d}/issues/new?title=${a}&body=${o}`;break;default:return e}return e_((0,s.createElement)(eH.default),u),u.style.paddingLeft="5px",u.title="Leave feedback for this page",u.id="git-feedback-link",t?.insertAdjacentElement("beforebegin",u),e},m]),[e,b,v,g,m]),B=(0,s.useCallback)(async t=>{var r;let i;return eF(t,[(r=e.name,i=e=>{let t=eM(window.location.href),i=new URL(e,t);if(i.hostname!==window.location.hostname){let e=window.location.pathname,i=e.indexOf(r);return new URL(e.slice(0,i+r.length),t).href}return i.href},e=>{for(let t of Array.from(e.querySelectorAll("meta")))if("refresh"===t.getAttribute("http-equiv")){let r=t.getAttribute("content")?.split("url=");if(!r||r.length<2)return e;let n=i(r[1]);if(window.location.href===n)return e;let a=document.createElement("div");e_((0,o.jsx)(eY,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>u(n),autoHideDuration:3e3}),a),document.body.appendChild(a),setTimeout(()=>{u(n)},3e3);break}return e}),e=>(setTimeout(()=>{let t=e?.querySelectorAll("li.md-nav__item--active");0!==t.length&&(t.forEach(e=>{let t=e?.querySelector("input");t?.checked||t?.click()}),t[t.length-1].scrollIntoView())},200),e),e=>{for(let t of e.querySelectorAll("pre > code")){let e=t.textContent||"",r=document.createElement("div");t?.parentElement?.prepend(r),e_((0,o.jsx)(eZ.A,{theme:p,children:(0,o.jsx)(e5,{text:e})}),r)}return e},(({baseUrl:e,onClick:t})=>r=>(Array.from(r.getElementsByTagName("a")).forEach(r=>{r.addEventListener("click",i=>{let n=r.getAttribute("href");n&&n.startsWith(e)&&!r.hasAttribute("download")&&(i.preventDefault(),t(i,n))})}),r))({baseUrl:w.getOptionalString("app.baseUrl")||window.location.origin,onClick:(e,r)=>{let i=e.ctrlKey||e.metaKey,n=new URL(r),a=e.target?.innerText||r,o=r.replace(window.location.origin,"");y.captureEvent("click",a,{attributes:{to:o}}),n.hash?i?window.open(r,"_blank"):(window.location.pathname!==n.pathname?u(r):window.history.pushState(null,document.title,n.hash),t?.querySelector(`[id="${n.hash.slice(1)}"]`)?.scrollIntoView(),t?.querySelector(`[id="${n.hash.slice(1)}"]`)?.querySelector("a, button, [tabindex]")?.focus()):i?window.open(r,"_blank"):u(r)}}),e3({onLoading:()=>{},onLoaded:()=>{t.querySelector(".md-nav__title")?.removeAttribute("for")}}),e3({onLoading:()=>{Array.from(t.querySelectorAll(".md-sidebar")).forEach(e=>{e.style.setProperty("opacity","0")})},onLoaded:()=>{}}),e=>(e.querySelectorAll("label.md-nav__link[for]").forEach(t=>{t.setAttribute("tabIndex","0"),t.addEventListener("keydown",r=>{if("Enter"===r.key||" "===r.key){let i=t.getAttribute("for");if(!i)return;let n=e.querySelector(`#${i}`);n&&"checkbox"===n.type&&(n.checked=!n.checked,n.dispatchEvent(new Event("change",{bubbles:!0})),r.preventDefault(),r.stopPropagation())}})}),e)])},[p,u,y,e.name,w]);return(0,s.useEffect)(()=>{if(!S)return()=>{};let e=!0;return L(S,A).then(async t=>{t?.innerHTML&&e&&k===A&&(window.scroll({top:0}),I(await B(t)))}),()=>{e=!1}},[S,k,A,L,B]),j})(u,e.defaultPath),w=window.location.pathname,x=window.location.hash,A=f(g),[S]=(0,y.$r)([`[id="${x.slice(1)}"]`]),{NotFoundErrorPage:k}=(0,P.n)().getComponents();(0,s.useEffect)(()=>{!A&&(x?S&&S.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[w,x,S,A]);let j=(0,s.useCallback)(e=>{p(e),i instanceof Function&&i()},[p,i]);return!1!==c||a?g?(0,o.jsx)(v.U,{children:(0,o.jsxs)(l.A,{container:!0,children:[(0,o.jsx)(l.A,{xs:12,item:!0,children:(0,o.jsx)(ew,{})}),t&&(0,o.jsx)(l.A,{className:n.search,xs:"auto",item:!0,children:(0,o.jsx)(ee,{entityId:u,entityTitle:a?.metadata?.title,searchResultUrlMapper:r})}),(0,o.jsxs)(l.A,{xs:12,item:!0,children:[("CHECKING"===h||A)&&(0,o.jsx)(b.k,{}),(0,o.jsx)(m,{element:g,onAppend:j,children:(0,o.jsx)(e6,{})})]})]})}):(0,o.jsx)(v.U,{children:(0,o.jsx)(l.A,{container:!0,children:(0,o.jsx)(l.A,{xs:12,item:!0,children:(0,o.jsx)(ew,{})})})}):(0,o.jsx)(k,{})},e=>(0,o.jsx)(ev,{children:(0,o.jsx)(a,{...e})}))},68999(e,t,r){"use strict";r.d(t,{T:()=>B});var i=r(31085),n=r(14041),a=r(93285),o=r(42899),s=r(4387),l=r(13660),c=r(90479),d=r(63401),u=r(10337),p=r(87623),h=r(53320),g=r(76025),f=r(53987),m=r(96403),y=r(58077),v=r(58837),b=r(268),w=r(72501),x=r(60603);let A=(0,v.A)(e=>({root:{textAlign:"left"},label:{color:e.page.fontColor,fontWeight:e.typography.fontWeightBold,letterSpacing:0,fontSize:e.typography.fontSize,marginBottom:e.spacing(1)/2,lineHeight:1},value:{color:(0,b.X4)(e.page.fontColor,.8),fontSize:e.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),S=({value:e,className:t,typographyRootComponent:r})=>(0,i.jsx)(w.A,{component:r??("string"==typeof e?"p":"span"),className:t,children:e});function k(e){let{label:t,value:r,url:n,contentTypograpyRootComponent:a}=e,s=A(),l=(0,i.jsx)(S,{className:s.value,value:r||"<Unknown>",typographyRootComponent:a});return(0,i.jsx)(o.A,{item:!0,children:(0,i.jsxs)(w.A,{component:"span",className:s.root,children:[(0,i.jsx)(w.A,{className:s.label,children:t}),n?(0,i.jsx)(x.N_,{to:n,children:l}):l]})})}var E=r(66990),C=r(50509),j=r(19735),$=r(16647),I=r(56005),R=r.n(I),T=r(90898),O=r(18690);let L=(0,i.jsx)(s.A,{animation:"wave",variant:"text",height:40}),B=e=>{let{children:t}=e,r=(0,c.YR)(),s=(0,C.gf)(j.U),v=(0,C.gf)(p.n),{"*":b=""}=(0,O.g)(),{title:w,setTitle:x,subtitle:A,setSubtitle:S,entityRef:I,metadata:{value:B,loading:U},entityMetadata:{value:N,loading:P}}=(0,d.V)();(0,n.useEffect)(()=>{B&&(x(B.site_name),S(()=>{let{site_description:e}=B;return e&&"None"!==e||(e=""),e}))},[B,x,S]);let F=s.getOptional("app.title")||"Backstage",{locationMetadata:z,spec:M}=N||{},D=M?.lifecycle,_=N?(0,h.t)(N,m.vv):[],q=(0,$.S)(T.rQ)(),H=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k,{label:R()(N?.kind||"entity"),value:(0,i.jsx)(g.z,{color:"inherit",entityRef:I,title:N?.metadata.title,defaultKind:"Component"})}),_.length>0&&(0,i.jsx)(k,{label:"Owner",value:(0,i.jsx)(f.i,{color:"inherit",entityRefs:_,defaultKind:"group"})}),D?(0,i.jsx)(k,{label:"Lifecycle",value:String(D)}):null,z&&"dir"!==z.type&&"file"!==z.type?(0,i.jsx)(k,{label:"",value:(0,i.jsxs)(o.A,{container:!0,direction:"column",alignItems:"center",children:[(0,i.jsx)(o.A,{style:{padding:0},item:!0,children:(0,i.jsx)(l.default,{style:{marginTop:"-25px"}})}),(0,i.jsx)(o.A,{style:{padding:0},item:!0,children:"Source"})]}),url:z.target}):null]}),V=!U&&void 0===B;if(!P&&void 0===N||V)return null;let W=(0,y.U2)(I),K=v.forEntity(W).snapshot.primaryTitle,G=[];""!==b&&(G=b.replace(/\/$/,"").split("/").map(e=>e.replace(/[-_]/g," ").split(" ").map(R()).join(" ")));let Y=[K,...G,F].join(" | ");return(0,i.jsxs)(E.Y,{type:"Documentation",typeLink:q,title:w||L,subtitle:""===A?void 0:A||L,children:[(0,i.jsx)(a.A,{titleTemplate:"%s",children:(0,i.jsx)("title",{children:Y})}),H,t,r.renderComponentsByLocation(u.e.Header)]})}},90898(e,t,r){"use strict";r.d(t,{Oc:()=>a,Ri:()=>o,rQ:()=>n});var i=r(96296);let n=(0,i.H)({id:"techdocs:index-page"}),a=(0,i.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),o=(0,i.H)({id:"techdocs:catalog-reader-view"})},26761(e,t,r){"use strict";r.d(t,{TechDocsSearchResultListItem:()=>u});var i=r(31085),n=r(46423),a=r(5951),o=r(58837),s=r(72501),l=r(60603),c=r(7613);let d=(0,o.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),u=e=>{let{result:t,highlight:r,lineClamp:o=5,asListItem:u=!0,asLink:p=!0,title:h,icon:g}=e,f=d(),m=({children:e})=>p?(0,i.jsx)(l.N_,{noTrack:!0,to:t.location,children:e}):(0,i.jsx)(i.Fragment,{children:e});return(0,i.jsx)(({children:e})=>u?(0,i.jsxs)(i.Fragment,{children:[g&&(0,i.jsx)(n.A,{children:"function"==typeof g?g(t):g}),(0,i.jsx)("div",{className:f.flexContainer,children:e})]}):(0,i.jsx)(i.Fragment,{children:e}),{children:(0,i.jsx)(()=>{let e=r?.fields.title?(0,i.jsx)(c.e,{text:r.fields.title,preTag:r.preTag,postTag:r.postTag}):t.title,n=r?.fields.entityTitle?(0,i.jsx)(c.e,{text:r.fields.entityTitle,preTag:r.preTag,postTag:r.postTag}):t.entityTitle,l=r?.fields.name?(0,i.jsx)(c.e,{text:r.fields.name,preTag:r.preTag,postTag:r.postTag}):t.name;return t?(0,i.jsx)(a.A,{className:f.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,i.jsx)(m,{children:h||(0,i.jsxs)(i.Fragment,{children:[e," | ",n??l," docs"]})}),secondary:(0,i.jsx)(s.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o,overflow:"hidden"},color:"textSecondary",variant:"body2",children:r?.fields.text?(0,i.jsx)(c.e,{text:r.fields.text,preTag:r.preTag,postTag:r.postTag}):t.text})}):null},{})})}},20621(e,t,r){let i=document.querySelector('meta[name="backstage-public-path"]'),n=i?.getAttribute("content");n&&(r.p=n)},33783(){}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["131","183","2284","2328","6417","7192","7364","7740","7769","9343","9400","9474"],function(){return t(20621),t(8220)}),e.O()}]);
550
- //# sourceMappingURL=main.c03cc860.js.map
549
+ Feedback:`),l=i?.type==="github"?(0,eq.F)(r.href,"blob"):r.href,c=eW()(l),d=`/${c.organization}/${c.name}`,u=t.cloneNode();switch(i?.type){case"gitlab":u.href=`${r.origin}${d}/issues/new?issue[title]=${a}&issue[description]=${o}`;break;case"github":u.href=`${r.origin}${d}/issues/new?title=${a}&body=${o}`;break;default:return e}return e_((0,s.createElement)(eH.default),u),u.style.paddingLeft="5px",u.title="Leave feedback for this page",u.id="git-feedback-link",t?.insertAdjacentElement("beforebegin",u),e},m]),[e,b,v,g,m]),B=(0,s.useCallback)(async t=>{var r;let i;return eF(t,[(r=e.name,i=e=>{let t=eM(window.location.href),i=new URL(e,t);if(i.hostname!==window.location.hostname){let e=window.location.pathname,i=e.indexOf(r);return new URL(e.slice(0,i+r.length),t).href}return i.href},e=>{for(let t of Array.from(e.querySelectorAll("meta")))if("refresh"===t.getAttribute("http-equiv")){let r=t.getAttribute("content")?.split("url=");if(!r||r.length<2)return e;let n=i(r[1]);if(window.location.href===n)return e;let a=document.createElement("div");e_((0,o.jsx)(eY,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>u(n),autoHideDuration:3e3}),a),document.body.appendChild(a),setTimeout(()=>{u(n)},3e3);break}return e}),e=>(setTimeout(()=>{let t=e?.querySelectorAll("li.md-nav__item--active");0!==t.length&&(t.forEach(e=>{let t=e?.querySelector("input");t?.checked||t?.click()}),t[t.length-1].scrollIntoView())},200),e),e=>{for(let t of e.querySelectorAll("pre > code")){let e=t.textContent||"",r=document.createElement("div");t?.parentElement?.prepend(r),e_((0,o.jsx)(eZ.A,{theme:p,children:(0,o.jsx)(e5,{text:e})}),r)}return e},(({baseUrl:e,onClick:t})=>r=>(Array.from(r.getElementsByTagName("a")).forEach(r=>{r.addEventListener("click",i=>{let n=r.getAttribute("href");n&&n.startsWith(e)&&!r.hasAttribute("download")&&(i.preventDefault(),t(i,n))})}),r))({baseUrl:w.getOptionalString("app.baseUrl")||window.location.origin,onClick:(e,r)=>{let i=e.ctrlKey||e.metaKey,n=new URL(r),a=e.target?.innerText||r,o=r.replace(window.location.origin,"");y.captureEvent("click",a,{attributes:{to:o}}),n.hash?i?window.open(r,"_blank"):(window.location.pathname!==n.pathname?u(r):window.history.pushState(null,document.title,n.hash),t?.querySelector(`[id="${n.hash.slice(1)}"]`)?.scrollIntoView(),t?.querySelector(`[id="${n.hash.slice(1)}"]`)?.querySelector("a, button, [tabindex]")?.focus()):i?window.open(r,"_blank"):u(r)}}),e3({onLoading:()=>{},onLoaded:()=>{t.querySelector(".md-nav__title")?.removeAttribute("for")}}),e3({onLoading:()=>{Array.from(t.querySelectorAll(".md-sidebar")).forEach(e=>{e.style.setProperty("opacity","0")})},onLoaded:()=>{}}),e=>(e.querySelectorAll("label.md-nav__link[for]").forEach(t=>{t.setAttribute("tabIndex","0"),t.addEventListener("keydown",r=>{if("Enter"===r.key||" "===r.key){let i=t.getAttribute("for");if(!i)return;let n=e.querySelector(`#${i}`);n&&"checkbox"===n.type&&(n.checked=!n.checked,n.dispatchEvent(new Event("change",{bubbles:!0})),r.preventDefault(),r.stopPropagation())}})}),e)])},[p,u,y,e.name,w]);return(0,s.useEffect)(()=>{if(!S)return()=>{};let e=!0;return L(S,A).then(async t=>{t?.innerHTML&&e&&k===A&&(window.scroll({top:0}),I(await B(t)))}),()=>{e=!1}},[S,k,A,L,B]),j})(u,e.defaultPath),w=window.location.pathname,x=window.location.hash,A=f(g),[S]=(0,y.$r)([`[id="${x.slice(1)}"]`]),{NotFoundErrorPage:k}=(0,P.n)().getComponents();(0,s.useEffect)(()=>{!A&&(x?S&&S.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[w,x,S,A]);let j=(0,s.useCallback)(e=>{p(e),i instanceof Function&&i()},[p,i]);return!1!==c||a?g?(0,o.jsx)(v.U,{children:(0,o.jsxs)(l.A,{container:!0,children:[(0,o.jsx)(l.A,{xs:12,item:!0,children:(0,o.jsx)(ew,{})}),t&&(0,o.jsx)(l.A,{className:n.search,xs:"auto",item:!0,children:(0,o.jsx)(ee,{entityId:u,entityTitle:a?.metadata?.title,searchResultUrlMapper:r})}),(0,o.jsxs)(l.A,{xs:12,item:!0,children:[("CHECKING"===h||A)&&(0,o.jsx)(b.k,{}),(0,o.jsx)(m,{element:g,onAppend:j,children:(0,o.jsx)(e6,{})})]})]})}):(0,o.jsx)(v.U,{children:(0,o.jsx)(l.A,{container:!0,children:(0,o.jsx)(l.A,{xs:12,item:!0,children:(0,o.jsx)(ew,{})})})}):(0,o.jsx)(k,{})},e=>(0,o.jsx)(ev,{children:(0,o.jsx)(a,{...e})}))},68999(e,t,r){"use strict";r.d(t,{T:()=>B});var i=r(31085),n=r(14041),a=r(93285),o=r(42899),s=r(4387),l=r(13660),c=r(90479),d=r(63401),u=r(10337),p=r(87623),h=r(53320),g=r(76025),f=r(53987),m=r(96403),y=r(58077),v=r(58837),b=r(268),w=r(72501),x=r(60603);let A=(0,v.A)(e=>({root:{textAlign:"left"},label:{color:e.page.fontColor,fontWeight:e.typography.fontWeightBold,letterSpacing:0,fontSize:e.typography.fontSize,marginBottom:e.spacing(1)/2,lineHeight:1},value:{color:(0,b.X4)(e.page.fontColor,.8),fontSize:e.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),S=({value:e,className:t,typographyRootComponent:r})=>(0,i.jsx)(w.A,{component:r??("string"==typeof e?"p":"span"),className:t,children:e});function k(e){let{label:t,value:r,url:n,contentTypograpyRootComponent:a}=e,s=A(),l=(0,i.jsx)(S,{className:s.value,value:r||"<Unknown>",typographyRootComponent:a});return(0,i.jsx)(o.A,{item:!0,children:(0,i.jsxs)(w.A,{component:"span",className:s.root,children:[(0,i.jsx)(w.A,{className:s.label,children:t}),n?(0,i.jsx)(x.N_,{to:n,children:l}):l]})})}var E=r(66990),C=r(50509),j=r(19735),$=r(16647),I=r(56005),R=r.n(I),T=r(90898),O=r(18690);let L=(0,i.jsx)(s.A,{animation:"wave",variant:"text",height:40}),B=e=>{let{children:t}=e,r=(0,c.YR)(),s=(0,C.gf)(j.U),v=(0,C.gf)(p.n),{"*":b=""}=(0,O.g)(),{title:w,setTitle:x,subtitle:A,setSubtitle:S,entityRef:I,metadata:{value:B,loading:U},entityMetadata:{value:N,loading:P}}=(0,d.V)();(0,n.useEffect)(()=>{B&&(x(B.site_name),S(()=>{let{site_description:e}=B;return e&&"None"!==e||(e=""),e}))},[B,x,S]);let F=s.getOptional("app.title")||"Backstage",{locationMetadata:z,spec:M}=N||{},D=M?.lifecycle,_=N?(0,h.t)(N,m.vv):[],q=(0,$.S)(T.rQ)(),H=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k,{label:R()(N?.kind||"entity"),value:(0,i.jsx)(g.z,{color:"inherit",entityRef:I,title:N?.metadata.title,defaultKind:"Component"})}),_.length>0&&(0,i.jsx)(k,{label:"Owner",value:(0,i.jsx)(f.i,{color:"inherit",entityRefs:_,defaultKind:"group"})}),D?(0,i.jsx)(k,{label:"Lifecycle",value:String(D)}):null,z&&"dir"!==z.type&&"file"!==z.type?(0,i.jsx)(k,{label:"",value:(0,i.jsxs)(o.A,{container:!0,direction:"column",alignItems:"center",children:[(0,i.jsx)(o.A,{style:{padding:0},item:!0,children:(0,i.jsx)(l.default,{style:{marginTop:"-25px"}})}),(0,i.jsx)(o.A,{style:{padding:0},item:!0,children:"Source"})]}),url:z.target}):null]}),V=!U&&void 0===B;if(!P&&void 0===N||V)return null;let W=(0,y.U2)(I),K=v.forEntity(W).snapshot.primaryTitle,G=[];""!==b&&(G=b.replace(/\/$/,"").split("/").map(e=>e.replace(/[-_]/g," ").split(" ").map(R()).join(" ")));let Y=[K,...G,F].join(" | ");return(0,i.jsxs)(E.Y,{type:"Documentation",typeLink:q,title:w||L,subtitle:""===A?void 0:A||L,children:[(0,i.jsx)(a.A,{titleTemplate:"%s",children:(0,i.jsx)("title",{children:Y})}),H,t,r.renderComponentsByLocation(u.e.Header)]})}},90898(e,t,r){"use strict";r.d(t,{Oc:()=>a,Ri:()=>o,rQ:()=>n});var i=r(96296);let n=(0,i.H)({id:"techdocs:index-page"}),a=(0,i.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),o=(0,i.H)({id:"techdocs:catalog-reader-view"})},26761(e,t,r){"use strict";r.d(t,{TechDocsSearchResultListItem:()=>u});var i=r(31085),n=r(46423),a=r(5951),o=r(58837),s=r(72501),l=r(60603),c=r(7613);let d=(0,o.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),u=e=>{let{result:t,highlight:r,lineClamp:o=5,asListItem:u=!0,asLink:p=!0,title:h,icon:g}=e,f=d(),m=({children:e})=>p?(0,i.jsx)(l.N_,{noTrack:!0,to:t.location,children:e}):(0,i.jsx)(i.Fragment,{children:e});return(0,i.jsx)(({children:e})=>u?(0,i.jsxs)(i.Fragment,{children:[g&&(0,i.jsx)(n.A,{children:"function"==typeof g?g(t):g}),(0,i.jsx)("div",{className:f.flexContainer,children:e})]}):(0,i.jsx)(i.Fragment,{children:e}),{children:(0,i.jsx)(()=>{let e=r?.fields.title?(0,i.jsx)(c.e,{text:r.fields.title,preTag:r.preTag,postTag:r.postTag}):t.title,n=r?.fields.entityTitle?(0,i.jsx)(c.e,{text:r.fields.entityTitle,preTag:r.preTag,postTag:r.postTag}):t.entityTitle,l=r?.fields.name?(0,i.jsx)(c.e,{text:r.fields.name,preTag:r.preTag,postTag:r.postTag}):t.name;return t?(0,i.jsx)(a.A,{className:f.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,i.jsx)(m,{children:h||(0,i.jsxs)(i.Fragment,{children:[e," | ",n??l," docs"]})}),secondary:(0,i.jsx)(s.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o,overflow:"hidden"},color:"textSecondary",variant:"body2",children:r?.fields.text?(0,i.jsx)(c.e,{text:r.fields.text,preTag:r.preTag,postTag:r.postTag}):t.text})}):null},{})})}},20621(e,t,r){let i=document.querySelector('meta[name="backstage-public-path"]'),n=i?.getAttribute("content");n&&(r.p=n)},33783(){}},function(e){var t=function(t){return e(e.s=t)};e.O(0,["131","183","2284","2328","6417","7192","7364","7740","7769","9178","9343","9400","9474"],function(){return t(20621),t(8220)}),e.O()}]);
550
+ //# sourceMappingURL=main.bd200dfa.js.map