@techdocs/cli 1.8.5-next.0 → 1.8.6-next.1

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 (25) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/embedded-app/.config-schema.json +65 -65
  3. package/dist/embedded-app/index.html +1 -1
  4. package/dist/embedded-app/static/4992.a7e47df4.chunk.js +3 -0
  5. package/dist/embedded-app/static/4992.a7e47df4.chunk.js.map +1 -0
  6. package/dist/embedded-app/static/5011.6e192014.chunk.js +3 -0
  7. package/dist/embedded-app/static/5011.6e192014.chunk.js.map +1 -0
  8. package/dist/embedded-app/static/main.e5b87207.js +497 -0
  9. package/dist/embedded-app/static/main.e5b87207.js.map +1 -0
  10. package/dist/embedded-app/static/module-lodash.11460fc1.js +29 -0
  11. package/dist/embedded-app/static/module-lodash.11460fc1.js.map +1 -0
  12. package/dist/embedded-app/static/{runtime.76ed602b.js → runtime.e5b87207.js} +2 -2
  13. package/dist/embedded-app/static/{runtime.76ed602b.js.map → runtime.e5b87207.js.map} +1 -1
  14. package/dist/embedded-app/static/{vendor.76ed602b.js → vendor.e5b87207.js} +1 -1
  15. package/dist/embedded-app/static/{vendor.76ed602b.js.map → vendor.e5b87207.js.map} +1 -1
  16. package/dist/index.cjs.js +1 -1
  17. package/package.json +5 -5
  18. package/dist/embedded-app/static/1600.9d865b04.chunk.js +0 -3
  19. package/dist/embedded-app/static/1600.9d865b04.chunk.js.map +0 -1
  20. package/dist/embedded-app/static/5011.04a961a3.chunk.js +0 -3
  21. package/dist/embedded-app/static/5011.04a961a3.chunk.js.map +0 -1
  22. package/dist/embedded-app/static/main.76ed602b.js +0 -497
  23. package/dist/embedded-app/static/main.76ed602b.js.map +0 -1
  24. package/dist/embedded-app/static/module-lodash.a94db66d.js +0 -29
  25. package/dist/embedded-app/static/module-lodash.a94db66d.js.map +0 -1
@@ -1,497 +0,0 @@
1
- (()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8792],{86519:function(Y,w,t){"use strict";t.d(w,{c:function(){return o}});const o=Symbol.for("CATALOG_FILTER_EXISTS_0e15b590c0b343a2bae3e787e84c2111")},72348:function(Y,w,t){"use strict";t.d(w,{P:function(){return u},_P:function(){return i},oQ:function(){return o}});const o="default",i="backstage.io/view-url",u="backstage.io/edit-url",x="kubernetes.io/api-server",y="kubernetes.io/api-server-certificate-authority",g="kubernetes.io/auth-provider"},6820:function(Y,w,t){"use strict";t.d(w,{KU:function(){return x},U2:function(){return y},sM:function(){return u}});var o=t(72348);function i(g){let c=g.indexOf(":");const d=g.indexOf("/");d!==-1&&d<c&&(c=-1);const m=c===-1?void 0:g.slice(0,c),E=d===-1?void 0:g.slice(c+1,d),S=g.slice(Math.max(c+1,d+1));if(m===""||E===""||S==="")throw new TypeError(`Entity reference "${g}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:m,namespace:E,name:S}}function u(g){return{kind:g.kind,namespace:g.metadata.namespace||o.oQ,name:g.metadata.name}}function x(g,c){if(!g)throw new Error("Entity reference must not be empty");const d=c==null?void 0:c.defaultKind,m=(c==null?void 0:c.defaultNamespace)||o.oQ;let E,S,p;if(typeof g=="string"){const T=i(g);var C;E=(C=T.kind)!==null&&C!==void 0?C:d;var f;S=(f=T.namespace)!==null&&f!==void 0?f:m,p=T.name}else{var R;E=(R=g.kind)!==null&&R!==void 0?R:d;var P;S=(P=g.namespace)!==null&&P!==void 0?P:m,p=g.name}if(E)if(S){if(!p){const T=JSON.stringify(g);throw new Error(`Entity reference ${T} had missing or empty name`)}}else{const T=JSON.stringify(g);throw new Error(`Entity reference ${T} had missing or empty namespace`)}else{const T=JSON.stringify(g);throw new Error(`Entity reference ${T} had missing or empty kind (e.g. did not start with "component:" or similar)`)}return{kind:E,namespace:S,name:p}}function y(g){let c,d,m;if("metadata"in g){c=g.kind;var E;d=(E=g.metadata.namespace)!==null&&E!==void 0?E:o.oQ,m=g.metadata.name}else{c=g.kind;var S;d=(S=g.namespace)!==null&&S!==void 0?S:o.oQ,m=g.name}return`${c.toLocaleLowerCase("en-US")}:${d.toLocaleLowerCase("en-US")}/${m.toLocaleLowerCase("en-US")}`}},51372:function(Y,w,t){"use strict";t.d(w,{fT:function(){return d},jn:function(){return C},nC:function(){return c},sA:function(){return f},vv:function(){return o}});const o="ownedBy",i="ownerOf",u="consumesApi",x="apiConsumedBy",y="providesApi",g="apiProvidedBy",c="dependsOn",d="dependencyOf",m="parentOf",E="childOf",S="memberOf",p="hasMember",C="partOf",f="hasPart"},17736:function(Y,w,t){"use strict";t.d(w,{Eo:function(){return o},I4:function(){return u}});const o="backstage.io/managed-by-location",i="backstage.io/managed-by-origin-location",u="backstage.io/source-location"},78692:function(Y,w,t){"use strict";t.d(w,{Cr:function(){return g},KL:function(){return y},aY:function(){return x}});var o=t(6820),i=t(17736);const u=/^[\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 x(c){if(typeof c!="string")throw new TypeError(`Unable to parse location ref '${c}', unexpected argument ${typeof c}`);const d=c.indexOf(":");if(d<0)throw new TypeError(`Unable to parse location ref '${c}', expected '<type>:<target>', e.g. 'url:https://host/path'`);const m=c.substring(0,d).trim(),E=c.substring(d+1).trim();if(!m||!E)throw new TypeError(`Unable to parse location ref '${c}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if(m==="http"||m==="https")throw new TypeError(`Invalid location ref '${c}', please prefix it with 'url:', e.g. 'url:${c}'`);if(u.test(E))throw new TypeError(`Invalid location ref '${c}', target is a javascript: URL`);return{type:m,target:E}}function y(c){const{type:d,target:m}=c;if(d){if(!m)throw new TypeError("Unable to stringify location ref, empty target")}else throw new TypeError("Unable to stringify location ref, empty type");if(u.test(m))throw new TypeError(`Invalid location ref '${d}:${m}', target is a javascript: URL`);return`${d}:${m}`}function g(c){var d,m,E,S,p;const C=(p=(m=c.metadata)===null||m===void 0||(d=m.annotations)===null||d===void 0?void 0:d[i.I4])!==null&&p!==void 0?p:(S=c.metadata)===null||S===void 0||(E=S.annotations)===null||E===void 0?void 0:E[i.Eo];if(!C)throw new Error(`Entity '${(0,o.U2)(c)}' is missing location`);return x(C)}},77310:function(Y,w,t){"use strict";t.d(w,{z:function(){return m}});var o=t(31085),i=t(10394),u=t(54917),x=t(14041),y=t(69578),g=t(40697),c=t(25577),d=t(37916);function m(E){const{text:S,language:p,showLineNumbers:C=!1,highlightedNumbers:f,customStyle:R,showCopyCodeButton:P=!1}=E,T=(0,u.A)(),M=T.palette.type==="dark"?g.A:c.A,D=T.palette.type==="dark"?"#256bf3":"#e6ffed";return(0,o.jsxs)(i.A,{position:"relative",children:[(0,o.jsx)(y.A,{customStyle:R,language:p,style:M,showLineNumbers:C,wrapLines:!0,lineNumberStyle:{color:T.palette.textVerySubtle},lineProps:b=>f!=null&&f.includes(b)?{style:{backgroundColor:D}}:{},children:S}),P&&(0,o.jsx)(i.A,{position:"absolute",top:0,right:0,children:(0,o.jsx)(d.l,{text:S})})]})}},37916:function(Y,w,t){"use strict";t.d(w,{l:function(){return S}});var o=t(31085),i=t(72427),u=t(39837),x=t(29365),y=t(71677),g=t(99594),c=t(14041),d=t(51100),m=t(10315),E=t(87849);function S(p){const{t:C}=(0,E.i)(m.O),{text:f,tooltipDelay:R=1e3,tooltipText:P=C("copyTextButton.tooltipText"),"aria-label":T="Copy text"}=p,M=(0,i.gf)(u.m),[D,b]=(0,c.useState)(!1),[{error:K},V]=(0,d.A)();(0,c.useEffect)(()=>{K&&M.post(K)},[K,M]);const tt=k=>{k.stopPropagation(),b(!0),V(f)};return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(y.Ay,{id:"copy-test-tooltip",title:P,placement:"top",leaveDelay:R,onClose:()=>b(!1),open:D,children:(0,o.jsx)(x.A,{onClick:tt,"aria-label":T,children:(0,o.jsx)(g.A,{})})})})}},44186:function(Y,w,t){"use strict";t.d(w,{p:function(){return C}});var o=t(31085),i=t(42899),u=t(58837),x=t(72501),y=t(14041),g=t.p+"static/missingAnnotation.67f79e98..svg",c=t.p+"static/noInformation.4b426325..svg",d=t.p+"static/createComponent.975d1e1e..svg",m=t.p+"static/noBuild.1715fa71..svg";const E=(0,u.A)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),S=({missing:f})=>{const R=E();switch(f){case"field":return(0,o.jsx)("img",{src:g,className:R.generalImg,alt:"annotation is missing"});case"info":return(0,o.jsx)("img",{src:c,alt:"no Information",className:R.generalImg});case"content":return(0,o.jsx)("img",{src:d,alt:"create Component",className:R.generalImg});case"data":return(0,o.jsx)("img",{src:m,alt:"no Build",className:R.generalImg});default:return null}},p=(0,u.A)(f=>({root:{backgroundColor:f.palette.background.default,padding:f.spacing(2,0,0,0)},action:{marginTop:f.spacing(2)},imageContainer:{position:"relative"}}),{name:"BackstageEmptyState"});function C(f){const{title:R,description:P,missing:T,action:M}=f,D=p();return(0,o.jsxs)(i.A,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:D.root,spacing:2,children:[(0,o.jsx)(i.A,{item:!0,xs:12,md:6,children:(0,o.jsxs)(i.A,{container:!0,direction:"column",children:[(0,o.jsx)(i.A,{item:!0,xs:!0,children:(0,o.jsx)(x.A,{variant:"h5",children:R})}),(0,o.jsx)(i.A,{item:!0,xs:!0,children:(0,o.jsx)(x.A,{variant:"body1",children:P})}),(0,o.jsx)(i.A,{item:!0,xs:!0,className:D.action,children:M})]})}),(0,o.jsx)(i.A,{item:!0,xs:12,md:6,className:D.imageContainer,children:typeof T=="string"?(0,o.jsx)(S,{missing:T}):T.customImage})]})}},22020:function(Y,w,t){"use strict";t.d(w,{b:function(){return S}});var o=t(31085),i=t(58837),u=t(58007),x=t(8109),y=t(5951),g=t(14041),c=t(37916),d=t(88640);const m=(0,i.A)(p=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:p.spacing(2)},divider:{margin:p.spacing(2)}}),{name:"BackstageErrorPanel"}),E=({error:p,message:C,stack:f,children:R})=>{const P=m();return(0,o.jsxs)(u.A,{dense:!0,children:[(0,o.jsxs)(x.A,{alignItems:"flex-start",children:[(0,o.jsx)(y.A,{classes:{secondary:P.text},primary:"Error",secondary:p}),(0,o.jsx)(c.l,{text:p})]}),(0,o.jsxs)(x.A,{alignItems:"flex-start",children:[(0,o.jsx)(y.A,{classes:{secondary:P.text},primary:"Message",secondary:C}),(0,o.jsx)(c.l,{text:C})]}),f&&(0,o.jsxs)(x.A,{alignItems:"flex-start",children:[(0,o.jsx)(y.A,{classes:{secondary:P.text},primary:"Stack Trace",secondary:f}),(0,o.jsx)(c.l,{text:f})]}),R]})};function S(p){const{title:C,error:f,defaultExpanded:R,titleFormat:P,children:T}=p;return(0,o.jsx)(d.B,{severity:"error",title:C!=null?C:f.message,defaultExpanded:R,titleFormat:P,children:(0,o.jsx)(E,{error:f.name,message:f.message,stack:f.stack,children:T})})}},72072:function(Y,w,t){"use strict";t.d(w,{N_:function(){return Q}});var o=t(31085),i=t(72427),u=t(65461),x=t(93368),y=t(87849),g=t(49203),c=t(58837),d=t(72501),m=t(53373),E=t.n(m),S=t(45250),p=t.n(S),C=t(14041),f=t(18690),R=t(73970),P=t(10315);function T(){const[H]=(0,f.AV)((0,o.jsx)(f.qh,{index:!0,element:(0,o.jsx)("div",{})}));return!H.index}const M=(0,c.A)({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"}},{name:"Link"}),D=H=>/^([a-z+.-]+):/.test(H),b=/^[\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,K=window.open;if(K&&!K.__backstage){const H=function(...nt){const ct=String(nt[0]);if(b.test(ct))throw new Error("Rejected window.open() with a javascript: URL as a security precaution");return K.apply(this,nt)};H.__backstage=!0,window.open=H}const V=()=>{try{return(0,i.gf)(u.U).getOptionalString("app.baseUrl")}catch{return}},tt=()=>{const H="http://sample.dev";var _;const nt=(_=V())!==null&&_!==void 0?_:"/",{pathname:ct}=new URL(nt,H);return(0,S.trimEnd)(ct,"/")},k=H=>{let _=String(H);const nt=tt(),ct=D(_),pt=_.startsWith(nt);return!ct&&!pt&&(_=nt.concat(_)),_},G=H=>{if(H instanceof Array)return H.map(G).join(" ").trim();if(typeof H=="object"&&H){var _;return G(H==null||(_=H.props)===null||_===void 0?void 0:_.children)}return["string","number"].includes(typeof H)?String(H):""},Q=C.forwardRef(({onClick:H,noTrack:_,...nt},ct)=>{const pt=M(),Pt=(0,x.s)(),{t:it}=(0,y.i)(P.O),vt=T()?k(nt.to):nt.to,at=G(nt.children)||vt,ut=D(vt),ft=ut&&!!/^https?:/.exec(vt);if(b.test(vt))throw new Error("Link component rejected javascript: URL as a security precaution");const q=At=>{H==null||H(At),_||Pt.captureEvent("click",at,{attributes:{to:vt}})};return ut?(0,o.jsxs)(g.A,{...ft?{target:"_blank",rel:"noopener"}:{},...nt,...nt["aria-label"]?{"aria-label":`${nt["aria-label"]}, Opens in a new window`}:{},ref:ct,href:vt,onClick:q,className:E()(pt.externalLink,nt.className),children:[nt.children,(0,o.jsx)(d.A,{component:"span",className:pt.visuallyHidden,children:`, ${it("link.openNewWindow")}`})]}):(0,o.jsx)(g.A,{...nt,ref:ct,component:R.N_,to:vt,onClick:q})})},73896:function(Y,w,t){"use strict";t.d(w,{z:function(){return g}});var o=t(31085),i=t(64947),u=t(14041),x=t(72072);const y=u.forwardRef((d,m)=>(0,o.jsx)(x.N_,{ref:m,...d,color:"initial"})),g=u.forwardRef((d,m)=>(0,o.jsx)(i.A,{ref:m,component:y,...d})),c=null},4650:function(Y,w,t){"use strict";t.d(w,{h:function(){return S}});var o=t(31085),i=t(58837),u=t(45872),x=t(61125),y=t(14041),g=t(77310);const c=(0,i.A)(p=>({markdown:{"& table":{borderCollapse:"collapse",border:`1px solid ${p.palette.border}`},"& th, & td":{border:`1px solid ${p.palette.border}`,padding:p.spacing(1)},"& td":{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:p.spacing(3,2,3,2.5),borderBottom:0},"& th":{backgroundColor:p.palette.background.paper},"& tr":{backgroundColor:p.palette.background.paper},"& tr:nth-child(odd)":{backgroundColor:p.palette.background.default},"& a":{color:p.palette.link},"& img":{maxWidth:"100%"}}}),{name:"BackstageMarkdownContent"}),d=(p,C)=>C?typeof C=="string"?p+C:y.Children.toArray(C.props.children).reduce(d,p):p,m=({level:p,children:C})=>{const P=y.Children.toArray(C).reduce(d,"").toLocaleLowerCase("en-US").replace(/\W/g,"-");return y.createElement(`h${p}`,{id:P},C)},E={code:({inline:p,className:C,children:f,...R})=>{const P=String(f).replace(/\n+$/,""),T=/language-(\w+)/.exec(C||"");return!p&&T?(0,o.jsx)(g.z,{language:T[1],text:P}):(0,o.jsx)("code",{className:C,...R,children:f})},h1:m,h2:m,h3:m,h4:m,h5:m,h6:m};function S(p){const{content:C,dialect:f="gfm",linkTarget:R,transformLinkUri:P,transformImageUri:T,className:M}=p,D=c();return(0,o.jsx)(u.$,{remarkPlugins:f==="gfm"?[x.A]:[],className:`${D.markdown} ${M}`,children:C,components:E,linkTarget:R,transformLinkUri:P,transformImageUri:T})}},68146:function(Y,w,t){"use strict";t.d(w,{k:function(){return g}});var o=t(31085),i=t(10394),u=t(88951),x=t(54917),y=t(14041);function g(c){const d=(0,x.A)(),[m,E]=(0,y.useState)(!1);return(0,y.useEffect)(()=>{const S=setTimeout(()=>E(!0),d.transitions.duration.short);return()=>clearTimeout(S)},[d.transitions.duration.short]),m?(0,o.jsx)(u.A,{...c,"data-testid":"progress"}):(0,o.jsx)(i.A,{display:"none"})}},66917:function(Y,w,t){"use strict";t.d(w,{w:function(){return k}});var o=t(31085),i=t(10394),u=t(69076),x=t(67720),y=t(95061),g=t(41857),c=t(48543),d=t(26343),m=t(81215),E=t(7031),S=t(12398),p=t(58837),C=t(72501),f=t(14041),R=t(10437);const P=(0,p.A)(G=>(0,S.A)({icon:{position:"absolute",right:G.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageClosedDropdown"});var M=()=>{const G=P();return(0,o.jsx)(R.A,{className:G.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M7.5 8L6 9.5L12.0703 15.5703L18.1406 9.5L16.6406 8L12.0703 12.5703L7.5 8Z",fill:"currentColor"})})};const D=(0,p.A)(G=>(0,S.A)({icon:{position:"absolute",right:G.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageOpenedDropdown"});var K=()=>{const G=D();return(0,o.jsx)(R.A,{className:G.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M16.5 16L18 14.5L11.9297 8.42969L5.85938 14.5L7.35938 16L11.9297 11.4297L16.5 16Z",fill:"currentColor"})})};const V=(0,E.A)(G=>(0,S.A)({root:{"label + &":{marginTop:G.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:G.palette.primary.main}},input:{borderRadius:G.shape.borderRadius,position:"relative",backgroundColor:G.palette.background.paper,border:"1px solid #ced4da",fontSize:G.typography.body1.fontSize,padding:G.spacing(1.25,3.25,1.25,1.5),transition:G.transitions.create(["border-color","box-shadow"]),"&:focus":{background:G.palette.background.paper,borderRadius:G.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(g.A),tt=(0,p.A)(G=>(0,S.A)({formControl:{margin:G.spacing(1,0),maxWidth:300},label:{transform:"initial",fontWeight:"bold",fontSize:G.typography.body2.fontSize,fontFamily:G.typography.fontFamily,color:G.palette.text.primary,"&.Mui-focused":{color:G.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:G.typography.body2.fontSize,fontFamily:G.typography.fontFamily,color:G.palette.text.primary,"&.Mui-focused":{color:G.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function k(G){const{multiple:Q,items:H,label:_,placeholder:nt,selected:ct,onChange:pt,triggerReset:Pt,native:it=!1,disabled:vt=!1,margin:at}=G,ut=tt(),[ft,q]=(0,f.useState)(ct||(Q?[]:"")),[At,xt]=(0,f.useState)(!1);(0,f.useEffect)(()=>{q(Q?[]:"")},[Pt,Q]),(0,f.useEffect)(()=>{q(ct||(Q?[]:""))},[ct,Q]);const ot=Ct=>{q(Ct.target.value),pt(Ct.target.value)},rt=Ct=>{if(vt){Ct.preventDefault();return}xt($=>Q&&!(Ct.target instanceof HTMLElement)?!0:!$)},gt=()=>{xt(!1)},Tt=Ct=>()=>{const $=ft.filter(z=>z!==Ct);q($),pt($)};return(0,o.jsx)(i.A,{className:ut.root,children:(0,o.jsxs)(y.A,{className:ut.formControl,children:[(0,o.jsx)(c.A,{className:ut.formLabel,children:_}),(0,o.jsxs)(m.A,{"aria-label":_,value:ft,native:it,disabled:vt,"data-testid":"select",displayEmpty:!0,multiple:Q,margin:at,onChange:ot,open:At,onOpen:rt,onClose:gt,input:(0,o.jsx)(V,{}),label:_,renderValue:Ct=>{var $;return Q&&ft.length!==0?(0,o.jsx)(i.A,{className:ut.chips,children:Ct.map(z=>{const mt=H.find(yt=>yt.value===z);return mt?(0,o.jsx)(x.A,{label:mt==null?void 0:mt.label,clickable:!0,onDelete:Tt(z),className:ut.chip},mt==null?void 0:mt.value):!1})}):(0,o.jsx)(C.A,{children:ft.length===0?nt||"":($=H.find(z=>z.value===Ct))===null||$===void 0?void 0:$.label})},IconComponent:()=>At?(0,o.jsx)(K,{}):(0,o.jsx)(M,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[nt&&!Q&&(0,o.jsx)(d.A,{value:[],children:nt}),it?H&&H.map(Ct=>(0,o.jsx)("option",{value:Ct.value,children:Ct.label},Ct.value)):H&&H.map(Ct=>(0,o.jsxs)(d.A,{value:Ct.value,children:[Q&&(0,o.jsx)(u.A,{color:"primary",checked:ft.includes(Ct.value)||!1,className:ut.checkbox}),Ct.label]},Ct.value))]})]})})}},3851:function(Y,w,t){"use strict";t.d(w,{Y:function(){return ft}});var o=t(31085),i=t(82266),u=t(10394),x=t(64947),y=t(93453),g=t(29365),c=t(46423),d=t(5951),m=t(26343),E=t(28233),S=t(55197),p=t(58837),C=t(72501),f=t(5893),R=t(14041),P=t(10795),T=t(27799);function M(q){const{id:At,Fallback:xt=T.A,...ot}=q,rt=(0,i.n)();var gt;const Tt=(gt=rt.getSystemIcon(At))!==null&&gt!==void 0?gt:xt;return(0,o.jsx)(Tt,{...ot})}function D(q){return _jsx(M,{id:"brokenImage",...q})}function b(q){return _jsx(M,{id:"catalog",...q})}function K(q){return _jsx(M,{id:"chat",...q})}function V(q){return _jsx(M,{id:"dashboard",...q})}function tt(q){return _jsx(M,{id:"docs",...q})}function k(q){return _jsx(M,{id:"email",...q})}function G(q){return _jsx(M,{id:"github",...q})}function Q(q){return _jsx(M,{id:"group",...q})}function H(q){return(0,o.jsx)(M,{id:"help",...q})}function _(q){return _jsx(M,{id:"user",...q})}function nt(q){return _jsx(M,{id:"warning",...q})}var ct=t(72072),pt=t(10315),Pt=t(87849);const it=(0,p.A)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),vt=({icon:q})=>{const At=(0,i.n)();var xt;const ot=q&&(xt=At.getSystemIcon(q))!==null&&xt!==void 0?xt:H;return(0,o.jsx)(ot,{})},at=({link:q})=>{var At;return(0,o.jsx)(ct.N_,{to:q.url,children:(At=q.title)!==null&&At!==void 0?At:q.url})},ut=({item:q})=>{var At;return(0,o.jsxs)(m.A,{children:[(0,o.jsx)(c.A,{children:(0,o.jsx)(vt,{icon:q.icon})}),(0,o.jsx)(d.A,{primary:q.title,secondary:(At=q.links)===null||At===void 0?void 0:At.reduce((xt,ot,rt)=>[...xt,rt>0&&(0,o.jsx)("br",{},rt),(0,o.jsx)(at,{link:ot},ot.url)],[])})]})};function ft(q){const{t:At}=(0,Pt.i)(pt.O),{title:xt,items:ot,children:rt}=q,{items:gt}=(0,P.l)(),[Tt,Ct]=(0,R.useState)(!1),[$,z]=(0,R.useState)(null),mt=it(),yt=(0,f.A)(Bt=>Bt.breakpoints.down("sm")),It=Bt=>{z(Bt.currentTarget),Ct(!0)},wt=()=>{Ct(!1)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.A,{display:"flex",ml:1,children:yt?(0,o.jsx)(g.A,{color:"primary",size:"small",onClick:It,"data-testid":"support-button","aria-label":"Support",children:(0,o.jsx)(H,{})}):(0,o.jsx)(x.A,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:It,startIcon:(0,o.jsx)(H,{}),children:At("supportButton.title")})}),(0,o.jsxs)(S.Ay,{"data-testid":"support-button-popover",open:Tt,anchorEl:$,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:wt,children:[(0,o.jsxs)(E.A,{className:mt.popoverList,autoFocusItem:!!$,children:[xt&&(0,o.jsx)(m.A,{alignItems:"flex-start",className:mt.menuItem,children:(0,o.jsx)(C.A,{variant:"subtitle1",children:xt})}),R.Children.map(rt,(Bt,Ut)=>(0,o.jsx)(m.A,{alignItems:"flex-start",className:mt.menuItem,children:Bt},`child-${Ut}`)),(ot!=null?ot:gt).map((Bt,Ut)=>(0,o.jsx)(ut,{item:Bt},`item-${Ut}`))]}),(0,o.jsx)(y.A,{children:(0,o.jsx)(x.A,{color:"primary",onClick:wt,"aria-label":"Close",children:At("supportButton.close")})})]})]})}},14209:function(Y,w,t){"use strict";t.d(w,{X:function(){return gt}});var o=t(31085),i=t(25301),u=t(10394),x=t(29365),y=t(7031),g=t(58837),c=t(54917),d=t(72501),m=t(83313),E=t(89019),S=t(62461),p=t(68887),C=t(63798),f=t(64704),R=t(6774),P=t(75625),T=t(65859),M=t(5416),D=t(33494),b=t(80113),K=t(26229),V=t(46802),tt=t(45250),k=t(14041),G=t(64947),Q=t(66917),H=t(10315),_=t(87849);const nt=(0,g.A)($=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:$.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:$.spacing(7.5),justifyContent:"space-between",borderBottom:`1px solid ${$.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:$.spacing(2)}}}),{name:"BackstageTableFilters"}),ct=$=>{var z;const mt=nt(),{onChangeFilters:yt}=$,{t:It}=(0,_.i)(H.O),[wt,Bt]=(0,k.useState)({...$.selectedFilters}),[Ut,Ot]=(0,k.useState)(!1),Nt=()=>{Bt({}),Ot(Xt=>!Xt)};return(0,k.useEffect)(()=>{yt(wt)},[wt,yt]),(0,o.jsxs)(u.A,{className:mt.root,children:[(0,o.jsxs)(u.A,{className:mt.header,children:[(0,o.jsx)(u.A,{className:mt.value,children:It("table.filter.title")}),(0,o.jsx)(G.A,{color:"primary",onClick:Nt,children:It("table.filter.clearAll")})]}),(0,o.jsx)(u.A,{className:mt.filters,children:((z=$.filters)===null||z===void 0?void 0:z.length)&&$.filters.map(Xt=>(0,o.jsx)(Q.w,{triggerReset:Ut,...Xt.element,selected:wt[Xt.element.label],onChange:se=>Bt({...wt,[Xt.element.label]:se})},Xt.element.label))})]})};var pt=t(78467);function Pt($){return(0,o.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:$.colSpan,children:(0,o.jsx)(u.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"15rem"},children:(0,o.jsx)(pt.A,{size:"5rem"})})})})})}const it={Add:(0,k.forwardRef)(($,z)=>(0,o.jsx)(m.A,{...$,ref:z})),Check:(0,k.forwardRef)(($,z)=>(0,o.jsx)(S.A,{...$,ref:z})),Clear:(0,k.forwardRef)(($,z)=>(0,o.jsx)(f.A,{...$,ref:z})),Delete:(0,k.forwardRef)(($,z)=>(0,o.jsx)(R.A,{...$,ref:z})),DetailPanel:(0,k.forwardRef)(($,z)=>(0,o.jsx)(C.A,{...$,ref:z})),Edit:(0,k.forwardRef)(($,z)=>(0,o.jsx)(P.A,{...$,ref:z})),Export:(0,k.forwardRef)(($,z)=>(0,o.jsx)(K.A,{...$,ref:z})),Filter:(0,k.forwardRef)(($,z)=>(0,o.jsx)(T.A,{...$,ref:z})),FirstPage:(0,k.forwardRef)(($,z)=>(0,o.jsx)(M.A,{...$,ref:z})),LastPage:(0,k.forwardRef)(($,z)=>(0,o.jsx)(D.A,{...$,ref:z})),NextPage:(0,k.forwardRef)(($,z)=>(0,o.jsx)(C.A,{...$,ref:z})),PreviousPage:(0,k.forwardRef)(($,z)=>(0,o.jsx)(p.A,{...$,ref:z})),ResetSearch:(0,k.forwardRef)(($,z)=>(0,o.jsx)(f.A,{...$,ref:z})),Search:(0,k.forwardRef)(($,z)=>(0,o.jsx)(T.A,{...$,ref:z})),SortArrow:(0,k.forwardRef)(($,z)=>(0,o.jsx)(E.A,{...$,ref:z})),ThirdStateCheck:(0,k.forwardRef)(($,z)=>(0,o.jsx)(b.A,{...$,ref:z})),ViewColumn:(0,k.forwardRef)(($,z)=>(0,o.jsx)(V.A,{...$,ref:z}))};function vt($,z){const mt=z.split(".");let yt=$[mt[0]];for(let It=1;It<mt.length;++It){if(yt===void 0)return yt;const wt=mt[It];yt=yt[wt]}return yt}const at=(0,y.A)($=>({header:{padding:$.spacing(1,2,1,2.5),borderTop:`1px solid ${$.palette.grey.A100}`,borderBottom:`1px solid ${$.palette.grey.A100}`,fontWeight:$.typography.fontWeightBold,position:"static",wordBreak:"normal"}}),{name:"BackstageTableHeader"})(i.rV),ut=(0,y.A)($=>({root:{padding:$.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:$.typography.fontWeightBold}},searchField:{paddingRight:$.spacing(2)}}),{name:"BackstageTableToolbar"})(i.Nb),ft=(0,g.A)($=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:$.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),q=(0,g.A)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"});function At($,z){return $.map(mt=>{var yt;const It=(yt=mt.headerStyle)!==null&&yt!==void 0?yt:{};let wt=mt.cellStyle||{};if(mt.highlight)if(It.color=z.palette.textContrast,typeof wt=="object")wt.fontWeight=z.typography.fontWeightBold;else{const Bt=wt;wt=(Ut,Ot,Nt)=>({...Bt(Ut,Ot,Nt),fontWeight:z.typography.fontWeightBold})}return{...mt,headerStyle:It,cellStyle:wt}})}function xt($,z){return(0,tt.transform)($,(mt,yt,It)=>{(0,tt.isEqual)(yt,z[It])||(mt[It]=yt)})}const ot={search:"",filtersOpen:!1,filters:{}};function rt($){const{toolbarRef:z,setSearch:mt,hasFilters:yt,selectedFiltersLength:It,toggleFilters:wt}=$,Bt=ft(),Ut=(0,k.useCallback)(Ot=>{$.onSearchChanged(Ot),mt(Ot)},[$,mt]);return yt?(0,o.jsxs)(u.A,{className:Bt.root,children:[(0,o.jsxs)(u.A,{className:Bt.root,children:[(0,o.jsx)(x.A,{onClick:wt,"aria-label":"filter list",children:(0,o.jsx)(T.A,{})}),(0,o.jsxs)(d.A,{className:Bt.title,children:["Filters (",It,")"]})]}),(0,o.jsx)(ut,{...$,ref:z,onSearchChanged:Ut})]}):(0,o.jsx)(ut,{...$,ref:z,onSearchChanged:Ut})}function gt($){const{data:z,columns:mt,emptyContent:yt,options:It,title:wt,subtitle:Bt,localization:Ut,filters:Ot,initialState:Nt,onStateChange:Xt,components:se,isLoading:ie,..._t}=$,Ft=q(),Zt=(0,c.A)(),Ce={...ot,...Nt},[ke,Ke]=(0,k.useState)(Ce.filtersOpen),Je=(0,k.useCallback)(()=>Ke(Se=>!Se),[Ke]),[Ie,on]=(0,k.useState)(Ce.filters),[Ge,le]=(0,k.useState)(Ce.search);(0,k.useEffect)(()=>{if(Xt){const Se=xt({search:Ge,filtersOpen:ke,filters:Ie},ot);Xt(Se)}},[Ge,ke,Ie,Xt]);const ze=(0,k.useCallback)(Se=>{var j;return(j=mt.find(v=>v.title===Se))===null||j===void 0?void 0:j.field},[mt]),He=(0,k.useMemo)(()=>{if(typeof z=="function"||!Ie)return z;const Se=Object.values(Ie);return z&&Se.flat().length?z.filter(v=>!!Object.entries(Ie).filter(([,B])=>!!B.length).every(([B,F])=>{const lt=vt(v,ze(B));return Array.isArray(lt)&&Array.isArray(F)?lt.some(et=>F.includes(et)):Array.isArray(lt)?lt.includes(F):Array.isArray(F)?F.includes(lt):lt===F})):z},[z,Ie,ze]),rn=Object.values(Ie).flat().length,Ue=!!(Ot!=null&&Ot.length),he=(0,k.useCallback)(Se=>(0,o.jsx)(rt,{setSearch:le,hasFilters:Ue,selectedFiltersLength:rn,toggleFilters:Je,...Se}),[Je,Ue,rn,le]),Ve=typeof z!="function"&&z.length===0,Xe=mt.length,_e=(0,k.useMemo)(()=>Tt({hasNoRows:Ve,emptyContent:yt,columnCount:Xe,loading:ie}),[Ve,yt,Xe,ie]);return(0,o.jsxs)(u.A,{className:Ft.root,children:[ke&&z&&typeof z!="function"&&(Ot==null?void 0:Ot.length)&&(0,o.jsx)(ct,{filters:Ct(Ot,z,mt),selectedFilters:Ie,onChangeFilters:on}),(0,o.jsx)(i.Ay,{components:{Header:at,Body:_e,Toolbar:he,...se},options:{headerStyle:{textTransform:"uppercase"},...It},columns:At(mt,Zt),icons:it,title:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.A,{variant:"h5",component:"h2",children:wt}),Bt&&(0,o.jsx)(d.A,{color:"textSecondary",variant:"body1",children:Bt})]}),data:He,style:{width:"100%"},localization:{toolbar:{searchPlaceholder:"Filter",searchTooltip:"Filter"},...Ut},..._t})]})}gt.icons=Object.freeze(it);function Tt({columnCount:$,emptyContent:z,hasNoRows:mt,loading:yt}){return It=>yt?(0,o.jsx)(Pt,{colSpan:$}):z&&mt?(0,o.jsx)("tbody",{children:(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:$,children:z})})}):(0,o.jsx)(i.C6,{...It})}function Ct($,z,mt){const yt=wt=>{const Bt=new Set,Ut=Ot=>{Ot!=null&&Bt.add(Ot)};return z&&z.forEach(Ot=>{var Nt;const Xt=vt(Ot,(Nt=mt.find(se=>se.title===wt))===null||Nt===void 0?void 0:Nt.field);Array.isArray(Xt)?Xt.forEach(Ut):Ut(Xt)}),Bt},It=wt=>({placeholder:"All results",label:wt.column,multiple:wt.type==="multiple-select",items:[...yt(wt.column)].sort().map(Bt=>({label:Bt,value:Bt}))});return $.map(wt=>({type:wt.type,element:It(wt)}))}},88640:function(Y,w,t){"use strict";t.d(w,{B:function(){return b}});var o=t(31085),i=t(268),u=t(58837),x=t(8973),y=t(29655),g=t(91567),c=t(42899),d=t(72501),m=t(9181),E=t(6924),S=t(14041),p=t(4650);const C=(K,V)=>(V.palette.type==="light"?i.e$:i.a)(V.palette[K].light,.6),f=(K,V)=>(V.palette.type==="light"?i.a:i.e$)(V.palette[K].light,.9),R=(0,u.A)(K=>({root:{marginRight:K.spacing(1),fill:({severity:V})=>C(V,K)}})),P=({severity:K})=>{const V=R({severity:K});return(0,o.jsx)(m.A,{classes:V})},T=({severity:K})=>{const V=R({severity:K});return(0,o.jsx)(E.A,{classes:V})},M=(0,u.A)(K=>({panel:{backgroundColor:({severity:V})=>f(V,K),color:({severity:V})=>C(V,K),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:V})=>C(V,K),fontWeight:K.typography.fontWeightBold},markdownContent:{"& p":{display:"inline"}},message:{width:"100%",display:"block",color:({severity:V})=>C(V,K),backgroundColor:({severity:V})=>f(V,K)},details:{width:"100%",display:"block",color:K.palette.textContrast,backgroundColor:K.palette.background.default,border:`1px solid ${K.palette.border}`,padding:K.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"}),D=K=>K.charAt(0).toLocaleUpperCase("en-US")+K.slice(1);function b(K){const{severity:V="warning",title:tt,titleFormat:k,message:G,children:Q,defaultExpanded:H}=K,_=M({severity:V}),nt=D(V)+(tt?`: ${tt}`:"");return(0,o.jsxs)(x.A,{defaultExpanded:H!=null?H:!1,className:_.panel,role:"alert",children:[(0,o.jsxs)(y.A,{expandIcon:(0,o.jsx)(T,{severity:V}),className:_.summary,children:[(0,o.jsx)(P,{severity:V}),(0,o.jsx)(d.A,{className:_.summaryText,variant:"subtitle1",children:k==="markdown"?(0,o.jsx)(p.h,{content:nt,className:_.markdownContent}):nt})]}),(G||Q)&&(0,o.jsx)(g.A,{children:(0,o.jsxs)(c.A,{container:!0,children:[G&&(0,o.jsx)(c.A,{item:!0,xs:12,children:(0,o.jsx)(d.A,{className:_.message,variant:"body1",children:G})}),Q&&(0,o.jsx)(c.A,{item:!0,xs:12,className:_.details,children:Q})]})})]})}},10795:function(Y,w,t){"use strict";t.d(w,{l:function(){return g}});var o=t(72427),i=t(65461),u=t(10315),x=t(87849);const y=()=>{const{t:c}=(0,x.i)(u.O);return{url:"https://github.com/backstage/backstage/issues",items:[{title:c("supportConfig.default.title"),icon:"warning",links:[{title:c("supportConfig.default.linkTitle"),url:"https://github.com/backstage/backstage/blob/master/app-config.yaml"}]}]}};function g(){const d=(0,o.Q2)().get(i.U),m=d==null?void 0:d.getOptionalConfig("app.support"),E=y();return m?{url:m.getString("url"),items:m.getConfigArray("items").flatMap(S=>{var p;return{title:S.getString("title"),icon:S.getOptionalString("icon"),links:((p=S.getOptionalConfigArray("links"))!==null&&p!==void 0?p:[]).flatMap(C=>({url:C.getString("url"),title:C.getString("title")}))}})}:E}},26280:function(Y,w,t){"use strict";t.d(w,{U:function(){return c}});var o=t(31085),i=t(58837),u=t(53373),x=t.n(u),y=t(14041);const g=(0,i.A)(d=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:d.spacing(3),paddingBottom:d.spacing(3),paddingLeft:d.spacing(2),paddingRight:d.spacing(2),[d.breakpoints.up("sm")]:{paddingLeft:d.spacing(3),paddingRight:d.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function c(d){const{className:m,stretch:E,noPadding:S,children:p,...C}=d,f=g();return(0,o.jsx)("article",{...C,className:x()(f.root,m,{[f.stretch]:E,[f.noPadding]:S}),children:p})}},59428:function(Y,w,t){"use strict";t.d(w,{d:function(){return m}});var o=t(31085),i=t(10394),u=t(58837),x=t(72501),y=t(14041),g=t(93285);const c=E=>(0,u.A)(S=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:S.spacing(2),textAlign:E.textAlign},leftItemsBox:{flex:"1 1 auto",minWidth:0,overflow:"visible"},rightItemsBox:{flex:"0 1 auto",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginLeft:S.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}),d=({title:E="Unknown page",className:S})=>(0,o.jsx)(x.A,{variant:"h4",component:"h2",className:S,"data-testid":"header-title",children:E});function m(E){const{description:S,title:p,titleComponent:C=void 0,children:f,textAlign:R="left"}=E,P=c({textAlign:R})(),T=C||(0,o.jsx)(d,{title:p,className:P.title});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g.m,{title:p}),(0,o.jsxs)(i.A,{className:P.container,children:[(0,o.jsxs)(i.A,{className:P.leftItemsBox,children:[T,S&&(0,o.jsx)(x.A,{className:P.description,variant:"body2",children:S})]}),(0,o.jsx)(i.A,{className:P.rightItemsBox,children:f})]})]})}},12173:function(Y,w,t){"use strict";t.d(w,{M:function(){return M}});var o=t(31085),i=t(42899),u=t(58837),x=t(72501),y=t(14041),g=t(18690),c=t(72072),d=t(10795),m=t.p+"static/mic-drop.fe3ef4d0..svg";const E=(0,u.A)(D=>({micDrop:{maxWidth:"60%",bottom:D.spacing(2),right:D.spacing(2),[D.breakpoints.down("xs")]:{maxWidth:"96%",bottom:"unset",right:"unset",margin:D.spacing(10,"auto",4)}}}),{name:"BackstageErrorPageMicDrop"}),S=()=>{const D=E();return(0,o.jsx)("img",{src:m,className:D.micDrop,alt:"Girl dropping mic from her hands"})};var p=t(77310),C=t(87849),f=t(10315);const R=(0,u.A)(D=>({title:{paddingBottom:D.spacing(5),[D.breakpoints.down("xs")]:{paddingBottom:D.spacing(4),fontSize:D.typography.h3.fontSize}}}),{name:"BackstageErrorPageStackDetails"});function P(D){const{stack:b}=D,K=R(),{t:V}=(0,C.i)(f.O),[tt,k]=(0,y.useState)(!1);return tt?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x.A,{variant:"h6",className:K.title,children:(0,o.jsx)(c.N_,{to:"#",onClick:()=>k(!1),children:V("errorPage.showLessDetails")})}),(0,o.jsx)(p.z,{text:b,language:"text",showCopyCodeButton:!0,showLineNumbers:!0})]}):(0,o.jsx)(x.A,{variant:"h6",className:K.title,children:(0,o.jsx)(c.N_,{to:"#",onClick:()=>k(!0),children:V("errorPage.showMoreDetails")})})}const T=(0,u.A)(D=>({container:{padding:D.spacing(8),[D.breakpoints.down("xs")]:{padding:D.spacing(2)}},title:{paddingBottom:D.spacing(5),[D.breakpoints.down("xs")]:{paddingBottom:D.spacing(4),fontSize:D.typography.h3.fontSize}},subtitle:{color:D.palette.textSubtle}}),{name:"BackstageErrorPage"});function M(D){const{status:b="",statusMessage:K,additionalInfo:V,supportUrl:tt,stack:k}=D,G=T(),Q=(0,g.Zp)(),H=(0,d.l)(),{t:_}=(0,C.i)(f.O);return(0,o.jsxs)(i.A,{container:!0,className:G.container,children:[(0,o.jsxs)(i.A,{item:!0,xs:12,sm:8,md:4,children:[(0,o.jsx)(x.A,{"data-testid":"error",variant:"body1",className:G.subtitle,children:_("errorPage.subtitle",{status:b,statusMessage:K})}),(0,o.jsx)(x.A,{variant:"body1",className:G.subtitle,children:V}),(0,o.jsx)(x.A,{variant:"h2",className:G.title,children:_("errorPage.title")}),(0,o.jsxs)(x.A,{variant:"h6",className:G.title,children:[(0,o.jsx)(c.N_,{to:"#","data-testid":"go-back-link",onClick:()=>Q(-1),children:_("errorPage.goBack")}),"... or please"," ",(0,o.jsx)(c.N_,{to:tt||H.url,children:"contact support"})," if you think this is a bug."]}),k&&(0,o.jsx)(P,{stack:k})]}),(0,o.jsx)(S,{})]})}},69814:function(Y,w,t){"use strict";t.d(w,{Y:function(){return G}});var o=t(31085),i=t(72427),u=t(65461),x=t(10394),y=t(42899),g=t(58837),c=t(71677),d=t(72501),m=t(14041),E=t(93285),S=t(72072),p=t(45634),C=t(58007),f=t(8109),R=t(55197),P=t(7031);const T=(0,P.A)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(d.A),M=(0,P.A)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(x.A);function D(Q){const{children:H,..._}=Q,[nt,ct]=m.useState(null),pt=m.Children.toArray(H),[Pt,it,...vt]=pt,at=vt.length?vt.pop():pt[pt.length-1],ut=pt.length>3,ft=xt=>{ct(xt.currentTarget)},q=()=>{ct(null)},At=!!nt;return(0,o.jsxs)(m.Fragment,{children:[(0,o.jsxs)(p.A,{"aria-label":"breadcrumb",..._,children:[pt.length>1&&(0,o.jsx)(M,{clone:!0,children:Pt}),pt.length>2&&(0,o.jsx)(M,{clone:!0,children:it}),ut&&(0,o.jsx)(T,{onClick:ft,children:"..."}),(0,o.jsx)(x.A,{style:{fontStyle:"italic"},children:at})]}),(0,o.jsx)(R.Ay,{open:At,anchorEl:nt,onClose:q,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,o.jsx)(C.A,{children:vt.map((xt,ot)=>(0,o.jsx)(f.A,{button:!0,children:(0,o.jsx)(M,{clone:!0,children:xt})},ot))})})]})}var b=t(73524);const K=(0,g.A)(Q=>({header:{gridArea:"pageHeader",padding:Q.spacing(3),width:"100%",boxShadow:Q.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:Q.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[Q.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:Q.page.fontColor,wordBreak:"break-word",fontSize:Q.typography.h3.fontSize,marginBottom:0},subtitle:{color:Q.page.fontColor,opacity:.8,display:"inline-block",marginTop:Q.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:Q.spacing(1),color:Q.page.fontColor},breadcrumb:{color:Q.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-Q.spacing(.3),marginBottom:Q.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-Q.spacing(.3),marginBottom:Q.spacing(.3)}}),{name:"BackstageHeader"}),V=({type:Q,typeLink:H,classes:_,pageTitle:nt})=>Q?H?(0,o.jsxs)(D,{className:_.breadcrumb,children:[(0,o.jsx)(S.N_,{to:H,children:Q}),(0,o.jsx)(d.A,{children:nt})]}):(0,o.jsx)(d.A,{className:_.type,children:Q}):null,tt=({pageTitle:Q,classes:H,tooltip:_})=>{const{contentRef:nt}=(0,b.H)(),ct=(0,o.jsx)(d.A,{ref:nt,tabIndex:-1,className:H.title,variant:"h1",children:Q});return _?(0,o.jsx)(c.Ay,{title:_,placement:"top-start",children:ct}):ct},k=({classes:Q,subtitle:H})=>H?typeof H!="string"?(0,o.jsx)(o.Fragment,{children:H}):(0,o.jsx)(d.A,{className:Q.subtitle,variant:"subtitle2",component:"span",children:H}):null;function G(Q){const{children:H,pageTitleOverride:_,style:nt,subtitle:ct,title:pt,tooltip:Pt,type:it,typeLink:vt}=Q,at=K(),ft=(0,i.gf)(u.U).getOptionalString("app.title")||"Backstage",q=_||pt,At=pt||_,xt=`${q} | %s | ${ft}`,ot=`${q} | ${ft}`;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(E.m,{titleTemplate:xt,defaultTitle:ot}),(0,o.jsxs)("header",{style:nt,className:at.header,children:[(0,o.jsxs)(x.A,{className:at.leftItemsBox,children:[(0,o.jsx)(V,{classes:at,type:it,typeLink:vt,pageTitle:At}),(0,o.jsx)(tt,{classes:at,pageTitle:At,tooltip:Pt}),(0,o.jsx)(k,{classes:at,subtitle:ct})]}),(0,o.jsx)(y.A,{container:!0,className:at.rightItemsBox,spacing:4,children:H})]})]})}},24504:function(Y,w,t){"use strict";t.d(w,{Y:function(){return g}});var o=t(31085),i=t(14041),u=t(58837),x=t(50868);const y=(0,u.A)(c=>({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",[c.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function g(c){const{themeId:d,children:m}=c,E=y();return(0,o.jsx)(x.A,{theme:S=>({...S,page:S.getPageTheme({themeId:d})}),children:(0,o.jsx)("main",{className:E.root,children:m})})}},27155:function(Y,w,t){"use strict";t.d(w,{d:function(){return y}});var o=t(31085),i=t(14041),u=t(69814),x=t(24504);function y(g){const{themeId:c,children:d,...m}=g;return(0,o.jsxs)(x.Y,{themeId:c,children:[(0,o.jsx)(u.Y,{...m}),d]})}},73524:function(Y,w,t){"use strict";t.d(w,{G:function(){return p},H:function(){return C}});var o=t(31085),i=t(10394),u=t(58837),x=t(5893),y=t(14041),g=t(72664),c;(function(f){f.SIDEBAR_PIN_STATE="sidebarPinState"})(c||(c={}));const d={getSidebarPinState(){let f;try{f=JSON.parse(window.localStorage.getItem("sidebarPinState")||"true")}catch{return!0}return!!f},setSidebarPinState(f){return window.localStorage.setItem("sidebarPinState",JSON.stringify(f))}};var m=t(34435);const E=(0,u.A)(f=>({root:{width:"100%",transition:"padding-left 0.1s ease-out",isolation:"isolate",[f.breakpoints.up("sm")]:{paddingLeft:R=>R.isPinned?R.sidebarConfig.drawerWidthOpen:R.sidebarConfig.drawerWidthClosed},[f.breakpoints.down("xs")]:{paddingBottom:R=>R.sidebarConfig.mobileSidebarHeight},"@media print":{padding:"0px !important"}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),S=(0,y.createContext)({content:{contentRef:void 0}});function p(f){const[R,P]=(0,y.useState)(()=>d.getSidebarPinState()),{sidebarConfig:T}=(0,y.useContext)(g.yY),M=(0,y.useRef)(null),D=(0,y.useMemo)(()=>({content:{contentRef:M}}),[M]);(0,y.useEffect)(()=>{d.setSidebarPinState(R)},[R]);const b=(0,x.A)(tt=>tt.breakpoints.down("xs"),{noSsr:!0}),K=()=>P(!R),V=E({isPinned:R,sidebarConfig:T});return(0,o.jsx)(m.qj,{value:{isPinned:R,toggleSidebarPinState:K,isMobile:b},children:(0,o.jsx)(S.Provider,{value:D,children:(0,o.jsx)(i.A,{className:V.root,children:f.children})})})}function C(){const{content:f}=(0,y.useContext)(S);return{focusContent:(0,y.useCallback)(()=>{var P,T;f==null||(T=f.contentRef)===null||T===void 0||(P=T.current)===null||P===void 0||P.focus()},[f]),contentRef:f==null?void 0:f.contentRef}}},34435:function(Y,w,t){"use strict";t.d(w,{Ut:function(){return m},qj:function(){return d}});var o=t(31085),i=t(43836),u=t(10602),x=t(14041);const y={isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1},g=(0,x.createContext)(y),c=(0,i.tK)("sidebar-pin-state-context");function d(E){const{children:S,value:p}=E;return(0,o.jsx)(g.Provider,{value:p,children:(0,o.jsx)(c.Provider,{value:(0,u.B)({1:p}),children:S})})}const m=()=>{const E=(0,x.useContext)(c),S=(0,x.useContext)(g);if(E===void 0)return S||y;const p=E.atVersion(1);if(p===void 0)throw new Error("No context found for version 1.");return p}},72664:function(Y,w,t){"use strict";t.d(w,{Rv:function(){return g},U1:function(){return S},hC:function(){return y},i8:function(){return d},yY:function(){return E}});var o=t(14041);const i=72,u=24,x=18,y={drawerWidthClosed:i,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:i,iconSize:i-u*2,iconPadding:u,selectedIndicatorWidth:3,userBadgePadding:x,userBadgeDiameter:i-x*2,mobileSidebarHeight:56},g=p=>({...y,...p,iconContainerWidth:y.drawerWidthClosed,iconSize:y.drawerWidthClosed-y.iconPadding*2,userBadgeDiameter:y.drawerWidthClosed-y.userBadgePadding*2}),c={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:y.defaultOpenDelayMs+200},d=p=>({...c,...p}),m="@backstage/core/sidebar-intro-dismissed",E=(0,o.createContext)({sidebarConfig:y,submenuConfig:c}),S=(0,o.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}})},10315:function(Y,w,t){"use strict";t.d(w,{O:function(){return i}});var o=t(93184);const i=(0,o.h)({id:"core-components",messages:{signIn:{title:"Sign In",loginFailed:"Login failed",customProvider:{title:"Custom User",subtitle:`Enter your own User ID and credentials.
2
- 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.
3
- 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"},link:{openNewWindow:"Opens in a new window"},supportButton:{title:"Support",close:"Close"},table:{filter:{title:"Filters",clearAll:"Clear all"}},alertDisplay:{message_one:"({{ count }} older message)",message_other:"({{ count }} older messages)"},autoLogout:{stillTherePrompt:{title:"Logging out due to inactivity",buttonText:"Yes! Don't log me out"}},proxiedSignInPage:{title:"You do not appear to be signed in. Please try reloading the browser page."}}})},25862:function(Y,w,t){"use strict";t.d(w,{Ig:function(){return c},pn:function(){return g}});var o=t(31085),i=t(43836),u=t(10602),x=t(14041);const y=(0,i.tK)("analytics-context"),g=()=>{const m=(0,x.useContext)(y);if(m===void 0)return{routeRef:"unknown",pluginId:"root",extension:"App"};const E=m.atVersion(1);if(E===void 0)throw new Error("No context found for version 1.");return E},c=m=>{const{attributes:E,children:S}=m,C={...g(),...E},f=(0,u.B)({1:C});return(0,o.jsx)(y.Provider,{value:f,children:S})};function d(m,E){const S=p=>_jsx(c,{attributes:E,children:_jsx(m,{...p})});return S.displayName=`WithAnalyticsContext(${m.displayName||m.name||"Component"})`,S}},67237:function(Y,w,t){"use strict";t.d(w,{J:function(){return y},t:function(){return x}});var o=t(18990),i=t(63544);const u=(0,i.Q)("core-plugin-api:analytics-tracker-events",()=>({mostRecentGatheredNavigation:void 0,mostRecentRoutableExtensionRender:void 0,beforeUnloadRegistered:!1})),x="_ROUTABLE-EXTENSION-RENDERED";class y{setContext(c){this.context=c}captureEvent(c,d,{value:m,attributes:E}={}){const{_routeNodeType:S,...p}=this.context;if(c===x){u.mostRecentGatheredNavigation&&(u.mostRecentRoutableExtensionRender={context:{...p,extension:"App"}});return}if(u.mostRecentGatheredNavigation){try{this.analyticsApi.captureEvent({...u.mostRecentGatheredNavigation,...u.mostRecentRoutableExtensionRender})}catch(C){console.warn("Error during analytics event capture. %o",C)}u.mostRecentGatheredNavigation=void 0,u.mostRecentRoutableExtensionRender=void 0}if(c==="navigate"&&S==="gathered"&&p.pluginId==="root"){u.mostRecentGatheredNavigation={action:c,subject:d,value:m,attributes:E,context:p};return}try{this.analyticsApi.captureEvent({action:c,subject:d,value:m,attributes:E,context:p})}catch(C){console.warn("Error during analytics event capture. %o",C)}}constructor(c,d={routeRef:"unknown",pluginId:"root",extension:"App"}){(0,o._)(this,"analyticsApi",void 0),(0,o._)(this,"context",void 0),this.analyticsApi=c,this.context=d,u.beforeUnloadRegistered||(addEventListener("beforeunload",()=>{u.mostRecentGatheredNavigation&&(this.analyticsApi.captureEvent({...u.mostRecentGatheredNavigation,...u.mostRecentRoutableExtensionRender}),u.mostRecentGatheredNavigation=void 0,u.mostRecentRoutableExtensionRender=void 0)},{once:!0,passive:!0}),u.beforeUnloadRegistered=!0)}}},93368:function(Y,w,t){"use strict";t.d(w,{s:function(){return c}});var o=t(25862),i=t(72427),u=t(99303),x=t(14041),y=t(67237);function g(){try{return(0,i.gf)(u.c)}catch{return{captureEvent:()=>{}}}}function c(){const d=(0,x.useRef)(null),m=(0,o.pn)(),E=g();function S(){return d.current===null&&(d.current=new y.J(E)),d.current}const p=S();return p.setContext(m),p}},36017:function(Y,w,t){"use strict";t.d(w,{k:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.alert"})},99303:function(Y,w,t){"use strict";t.d(w,{c:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.analytics"})},65461:function(Y,w,t){"use strict";t.d(w,{U:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.config"})},57405:function(Y,w,t){"use strict";t.d(w,{I:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.discovery"})},39837:function(Y,w,t){"use strict";t.d(w,{m:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.error"})},63636:function(Y,w,t){"use strict";t.d(w,{B:function(){return u},S:function(){return i}});var o=t(55309),i;(function(x){x[x.None=0]="None",x[x.Active=1]="Active"})(i||(i={}));const u=(0,o.y)({id:"core.featureflags"})},70795:function(Y,w,t){"use strict";t.d(w,{a:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.fetch"})},16009:function(Y,w,t){"use strict";t.d(w,{K:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.identity"})},56038:function(Y,w,t){"use strict";t.d(w,{J:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"core.translation"})},55309:function(Y,w,t){"use strict";t.d(w,{y:function(){return u}});var o=t(18990);class i{get id(){return this.config.id}get T(){throw new Error(`tried to read ApiRef.T of ${this}`)}toString(){return`apiRef{${this.config.id}}`}constructor(y){if((0,o._)(this,"config",void 0),this.config=y,!y.id.split(".").flatMap(c=>c.split("-")).every(c=>c.match(/^[a-z][a-z0-9]*$/)))throw new Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${y.id}'`)}}function u(x){return new i(x)}},12935:function(Y,w,t){"use strict";t.d(w,{b:function(){return o}});function o(i,u){return"id"in i?{api:i,deps:{},factory:()=>u}:i}},72427:function(Y,w,t){"use strict";t.d(w,{Q2:function(){return y},gf:function(){return g}});var o=t(31085),i=t(14041),u=t(43836),x=t(97142);function y(){const d=(0,u.qO)("api-context");if(!d)throw new x.EH("API context is not available");const m=d.atVersion(1);if(!m)throw new x.EH("ApiContext v1 not available");return m}function g(d){const E=y().get(d);if(!E)throw new x.EH(`No implementation available for ${d}`);return E}function c(d){return function(E){const S=C=>{const f=y(),R={};for(const P in d)if(d.hasOwnProperty(P)){const T=d[P],M=f.get(T);if(!M)throw new NotImplementedError(`No implementation available for ${T}`);R[P]=M}return _jsx(E,{...C,...R})},p=E.displayName||E.name||"Component";return S.displayName=`withApis(${p})`,S}}},82266:function(Y,w,t){"use strict";t.d(w,{n:function(){return i}});var o=t(43836);const i=()=>{const u=(0,o.qO)("app-context");if(!u)throw new Error("App context is not available");const x=u.atVersion(1);if(!x)throw new Error("AppContext v1 not available");return x}},19402:function(Y,w,t){"use strict";t.d(w,{E:function(){return y},h:function(){return x}});var o=t(63544);const i=(0,o.Q)("component-data-store",()=>new WeakMap),u="__backstage_data";function x(g,c,d){const m=g;var E;let S=(E=m[u])!==null&&E!==void 0?E:i.get(g);if(S||(S={map:new Map},Object.defineProperty(m,u,{enumerable:!1,configurable:!0,writable:!1,value:S}),i.set(g,S)),S.map.has(c)){const p=g.displayName||g.name;throw new Error(`Attempted to attach duplicate data "${c}" to component "${p}"`)}S.map.set(c,d)}function y(g,c){if(!g)return;const d=g.type;if(!d)return;var m;const E=(m=d[u])!==null&&m!==void 0?m:i.get(d);if(E)return E.map.get(c)}},88758:function(Y,w,t){"use strict";t.d(w,{NC:function(){return p},zZ:function(){return C},QJ:function(){return S}});var o=t(31085),i=t(14041),u=t(93368),x=t(25862),y=t(82266),g=t(9222),c=t(19402),d=t(18990);class m extends i.Component{static getDerivedStateFromError(R){return{error:R}}render(){const{error:R}=this.state,{app:P,plugin:T}=this.props,{ErrorBoundaryFallback:M}=P.getComponents();return R?(0,o.jsx)(M,{error:R,resetError:this.handleErrorReset,plugin:T}):this.props.children}constructor(...R){super(...R),(0,d._)(this,"state",{error:void 0}),(0,d._)(this,"handleErrorReset",()=>{this.setState({error:void 0})})}}var E=t(67237);function S(f){const{component:R,mountPoint:P,name:T}=f;return C({component:{lazy:()=>R().then(M=>{const D=K=>{const V=(0,u.s)();try{(0,g.S)(P)}catch(tt){if(typeof tt=="object"&&tt!==null){const{message:k}=tt;if(typeof k=="string"&&k.startsWith("No path for "))throw new Error(`Routable extension component with mount point ${P} 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 tt}return(0,i.useEffect)(()=>{V.captureEvent(E.t,"")},[V]),(0,o.jsx)(M,{...K})},b=T||M.displayName||M.name||"LazyComponent";return D.displayName=`RoutableExtension(${b})`,D},M=>b=>{const K=(0,y.n)(),{BootErrorPage:V}=K.getComponents();return(0,o.jsx)(V,{step:"load-chunk",error:M})})},data:{"core.mountPoint":P},name:T})}function p(f){const{component:R,name:P}=f;return C({component:R,name:P})}function C(f){const{data:R={},name:P}=f;P||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name.");let T;if("lazy"in f.component){const D=f.component.lazy;T=(0,i.lazy)(()=>D().then(b=>({default:b})))}else T=f.component.sync;const M=P||T.displayName||T.name||"Component";return{expose(D){const b=K=>{const V=(0,y.n)(),{Progress:tt}=V.getComponents(),k=R==null?void 0:R["core.mountPoint"];return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(tt,{}),children:(0,o.jsx)(m,{app:V,plugin:D,children:(0,o.jsx)(x.Ig,{attributes:{pluginId:D.getId(),...P&&{extension:P},...k&&{routeRef:k.id}},children:(0,o.jsx)(T,{...K})})})})};(0,c.h)(b,"core.plugin",D),(0,c.h)(b,"core.extensionName",P);for(const[K,V]of Object.entries(R))(0,c.h)(b,K,V);return b.displayName=`Extension(${M})`,b}}}},82442:function(Y,w,t){"use strict";t.d(w,{O:function(){return d}});var o=t(18990),i=t(14041),u=t(19402),x=t(72427),y=t(63636);function g(m,E,S,p){return i.Children.toArray(m).flatMap(C=>{if(!(0,i.isValidElement)(C))return[];if(C.type===i.Fragment)return g(C.props.children,E,S,p);if((0,u.E)(C,"core.featureFlagged")){const f=C.props;return("with"in f?E.isActive(f.with):!E.isActive(f.without))?g(C.props.children,E,S,p):[]}if(S===void 0||S(C))return[C];if(p)throw new Error(p);return g(C.props.children,E,S,p)})}class c{selectByComponentData(E){const S=g(this.node,this.featureFlagsApi,p=>(0,u.E)(p,E.key)!==void 0,E.withStrictError);return new c(S,this.featureFlagsApi)}findComponentData(E){return g(this.node,this.featureFlagsApi,p=>(0,u.E)(p,E.key)!==void 0).map(p=>(0,u.E)(p,E.key)).filter(p=>p!==void 0)}getElements(){return g(this.node,this.featureFlagsApi)}constructor(E,S){(0,o._)(this,"node",void 0),(0,o._)(this,"featureFlagsApi",void 0),this.node=E,this.featureFlagsApi=S}}function d(m,E,S=[]){const p=(0,x.gf)(y.B),C=new c(m,p);return(0,i.useMemo)(()=>E(C),[m,...S])}},9803:function(Y,w,t){"use strict";t.d(w,{i:function(){return u}});var o=t(18990);class i{getId(){return this.config.id}getApis(){var y;return(y=this.config.apis)!==null&&y!==void 0?y:[]}getFeatureFlags(){var y,g;return(g=(y=this.config.featureFlags)===null||y===void 0?void 0:y.slice())!==null&&g!==void 0?g:[]}get routes(){var y;return(y=this.config.routes)!==null&&y!==void 0?y:{}}get externalRoutes(){var y;return(y=this.config.externalRoutes)!==null&&y!==void 0?y:{}}provide(y){return y.expose(this)}toString(){return`plugin{${this.config.id}}`}constructor(y){(0,o._)(this,"config",void 0),this.config=y}}function u(x){return new i(x)}},34569:function(Y,w,t){"use strict";t.d(w,{H:function(){return g}});var o=t(18990),i=t(59598);let u=i.b,x=u;class y{get title(){return this.id}toString(){return`routeRef{type=absolute,id=${this.id}}`}constructor(d,m){(0,o._)(this,"id",void 0),(0,o._)(this,"params",void 0),(0,o._)(this,x,void 0),this.id=d,this.params=m,this[u]="absolute"}}function g(c){var d;return new y(c.id,(d=c.params)!==null&&d!==void 0?d:[])}},59598:function(Y,w,t){"use strict";t.d(w,{b:function(){return i}});var o=t(63544);const i=(0,o.Q)("route-ref-type",()=>Symbol("route-ref-type"))},9222:function(Y,w,t){"use strict";t.d(w,{S:function(){return x}});var o=t(14041),i=t(18690),u=t(43836);function x(y){const{pathname:g}=(0,i.zy)(),c=(0,u.qO)("routing-context");if(!c)throw new Error("Routing context is not available");const d=c.atVersion(1),m=(0,o.useMemo)(()=>d&&d.resolve(y,{pathname:g}),[d,y,g]);if(!c)throw new Error("useRouteRef used outside of routing context");if(!d)throw new Error("RoutingContext v1 not available");const E="optional"in y&&y.optional;if(!m&&!E)throw new Error(`No path for ${y}`);return m}},93184:function(Y,w,t){"use strict";t.d(w,{h:function(){return S},v:function(){return p}});var o=t(96324),i=t(87081),u=t(33284),x=t(18990),y=t(99833);function g(C){const f=new Array;function R(P,T){for(const[M,D]of Object.entries(P))typeof D=="string"?f.push([T+M,D]):R(D,`${T}${M}.`)}return R(C,""),Object.fromEntries(f)}var c=new WeakMap,d=new WeakMap,m=new WeakMap;class E{get id(){return(0,o._)(this,c)}get T(){throw new Error("Not implemented")}getDefaultMessages(){return(0,o._)(this,d)}setDefaultResource(f){(0,u._)(this,m,f)}getDefaultResource(){return(0,o._)(this,m)}toString(){return`TranslationRef{id=${this.id}}`}constructor(f){(0,i._)(this,c,{writable:!0,value:void 0}),(0,i._)(this,d,{writable:!0,value:void 0}),(0,i._)(this,m,{writable:!0,value:void 0}),(0,x._)(this,"$$type","@backstage/TranslationRef"),(0,x._)(this,"version","v1"),(0,u._)(this,c,f.id),(0,u._)(this,d,g(f.messages))}}function S(C){const f=new E(C);return C.translations&&f.setDefaultResource((0,y.o)({ref:f,translations:C.translations})),f}function p(C){const f=C;if(f.$$type!=="@backstage/TranslationRef")throw new Error(`Invalid translation ref, bad type '${f.$$type}'`);if(f.version!=="v1")throw new Error(`Invalid translation ref, bad version '${f.version}'`);return f}},99833:function(Y,w,t){"use strict";t.d(w,{Y:function(){return o},o:function(){return i}});function o(u){const x=u;if(x.$$type!=="@backstage/TranslationResource")throw new Error(`Invalid translation resource, bad type '${x.$$type}'`);if(x.version!=="v1")throw new Error(`Invalid translation resource, bad version '${x.version}'`);return x}function i(u){return{$$type:"@backstage/TranslationResource",version:"v1",id:u.ref.id,resources:Object.entries(u.translations).map(([x,y])=>({language:x,loader:()=>y().then(g=>{const c=g.default;return{messages:(c==null?void 0:c.$$type)==="@backstage/TranslationMessages"?c.messages:c}})}))}}},87849:function(Y,w,t){"use strict";t.d(w,{i:function(){return g}});var o=t(14041),i=t(72427),u=t(39837),x=t(56038);const y=new WeakSet,g=c=>{const d=(0,i.gf)(u.m),m=(0,i.gf)(x.J),[E,S]=(0,o.useState)(()=>m.getTranslation(c)),p=(0,o.useMemo)(()=>m.translation$(c),[m,c]),C=(0,o.useCallback)(R=>{if(!y.has(c)){const P=`Failed to load translation resource '${c.id}'; caused by ${R}`;console.error(P),d.post(new Error(P)),y.add(c)}},[d,c]);(0,o.useEffect)(()=>{const R=p.subscribe({next(P){P.ready&&S(P)},error(P){C(P)}});return()=>{R.unsubscribe()}},[p,C]);const f=(0,o.useRef)(!0);if((0,o.useEffect)(()=>{f.current?f.current=!1:S(m.getTranslation(c))},[m,c]),!E.ready)throw new Promise(R=>{const P=p.subscribe({next(T){T.ready&&(P.unsubscribe(),R())},error(T){P.unsubscribe(),C(T),R()}})});return{t:E.t}}},70835:function(Y,w,t){"use strict";t.d(w,{o:function(){return x}});var o=t(18990),i=t(59750);async function u(y){try{const c=await y.text();if(c){var g;if(!((g=y.headers.get("content-type"))===null||g===void 0)&&g.startsWith("application/json"))try{const d=JSON.parse(c);if(d.error&&d.response)return d}catch{}return{error:{name:"Error",message:`Request failed with status ${y.status} ${y.statusText}, ${c}`},response:{statusCode:y.status}}}}catch{}return{error:{name:"Error",message:`Request failed with status ${y.status} ${y.statusText}`},response:{statusCode:y.status}}}class x extends Error{static async fromResponse(g){const c=await u(g),d=c.response.statusCode||g.status,m=g.statusText,E=`Request failed with ${d} ${m}`,S=(0,i.cy)(c.error);return new x({message:E,response:g,data:c,cause:S,statusCode:d,statusText:m})}constructor(g){super(g.message),(0,o._)(this,"response",void 0),(0,o._)(this,"body",void 0),(0,o._)(this,"cause",void 0),(0,o._)(this,"statusCode",void 0),(0,o._)(this,"statusText",void 0),this.name="ResponseError",this.response=g.response,this.body=g.data,this.cause=g.cause,this.statusCode=g.statusCode,this.statusText=g.statusText}}},93007:function(Y,w,t){"use strict";t.d(w,{b:function(){return o}});function o(u){if(typeof u!="object"||u===null||Array.isArray(u))return!1;const x=u;return!(typeof x.name!="string"||x.name===""||typeof x.message!="string")}function i(u){if(typeof u!="object"||u===null||Array.isArray(u))throw new Error(`Encountered invalid error, not an object, got '${u}'`);const x=u;if(typeof x.name!="string"||x.name==="")throw new Error(`Encountered error object without a name, got '${u}'`);if(typeof x.message!="string")throw new Error(`Encountered error object without a message, got '${u}'`)}},97142:function(Y,w,t){"use strict";t.d(w,{m_:function(){return d},EH:function(){return S}});var o=t(18990),i=t(93007),u=t(59750);class x extends Error{constructor(R,P){var T,M;let D=R;if(P!==void 0){const b=(0,u.M5)(P);D?D+=`; caused by ${b}`:D=`caused by ${b}`}super(D),(0,o._)(this,"cause",void 0),(T=(M=Error).captureStackTrace)===null||T===void 0||T.call(M,this,this.constructor),(!this.name||this.name==="Error")&&this.constructor.name!=="Error"&&(this.name=this.constructor.name),this.cause=(0,i.b)(P)?P:void 0}}class y extends x{constructor(...R){super(...R),(0,o._)(this,"name","InputError")}}class g extends x{constructor(...R){super(...R),(0,o._)(this,"name","AuthenticationError")}}class c extends x{constructor(...R){super(...R),(0,o._)(this,"name","NotAllowedError")}}class d extends x{constructor(...R){super(...R),(0,o._)(this,"name","NotFoundError")}}class m extends x{constructor(...R){super(...R),(0,o._)(this,"name","ConflictError")}}class E extends x{constructor(...R){super(...R),(0,o._)(this,"name","NotModifiedError")}}class S extends x{constructor(...R){super(...R),(0,o._)(this,"name","NotImplementedError")}}class p extends null{}class C extends x{constructor(R,P){super(R,P),this.name=(0,i.b)(P)?P.name:"Error"}}},59750:function(Y,w,t){"use strict";t.d(w,{M5:function(){return g},cy:function(){return y}});var o=t(69655),i=t.n(o),u=t(93007);function x(c,d){const E={name:"Unknown",message:"<no reason given>",...serializeErrorInternal(c)};return d!=null&&d.includeStack||delete E.stack,E}function y(c){const d=(0,o.deserializeError)(c);return c.stack||(d.stack=void 0),d}function g(c){if((0,u.b)(c)){const d=String(c);return d!=="[object Object]"?d:`${c.name}: ${c.message}`}return`unknown error '${c}'`}},43320:function(Y,w,t){"use strict";t.d(w,{L:function(){return _e},Y:function(){return Se}});var o=t(18990),i=t(59869);const u="amazonaws.com";function x(j){var v;const B=j.getOptionalString("endpoint");var F;const lt=(F=j.getOptionalBoolean("s3ForcePathStyle"))!==null&&F!==void 0?F:!1;let et,Dt;if(B){try{const me=new URL(B);et=me.host,Dt=me.pathname}catch{throw new Error(`invalid awsS3 integration config, endpoint '${B}' is not a valid URL`)}if(Dt!=="/")throw new Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${B}'`)}else et=u;const qt=j.getOptionalString("accessKeyId"),ee=(v=j.getOptionalString("secretAccessKey"))===null||v===void 0?void 0:v.trim(),pe=j.getOptionalString("roleArn"),ve=j.getOptionalString("externalId");return{host:et,endpoint:B,s3ForcePathStyle:lt,accessKeyId:qt,secretAccessKey:ee,roleArn:pe,externalId:ve}}function y(j){const v=j.map(x);return v.some(B=>B.host===u)||v.push({host:u}),v}class g{get type(){return"awsS3"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(v){return(0,i.ku)(v)}resolveEditUrl(v){return v}constructor(v){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=v}}(0,o._)(g,"factory",({config:j})=>{var v;const B=y((v=j.getOptionalConfigArray("integrations.awsS3"))!==null&&v!==void 0?v:[]);return(0,i.oS)(B.map(F=>new g(F)),F=>F.config.host)});var c=t(96324),d=t(87081),m=t(33284);const E="GB";var S=new WeakMap,p=new WeakMap,C=new WeakMap,f=new WeakMap,R=new WeakMap,P=new WeakMap,T=new WeakMap;class M{static fromRepoUrl(v){const B=new URL(v);let F,lt,et;const Dt=B.pathname.split("/").map(me=>decodeURIComponent(me));if(Dt[2]==="_git"?(F=Dt[1],lt=et=Dt[3]):Dt[3]==="_git"?(F=Dt[1],lt=Dt[2],et=Dt[4]):Dt[4]==="_git"&&(F=`${Dt[1]}/${Dt[2]}`,lt=Dt[3],et=Dt[5]),!F||!lt||!et)throw new Error("Azure URL must point to a git repository");var qt;const ee=(qt=B.searchParams.get("path"))!==null&&qt!==void 0?qt:void 0;let pe;const ve=B.searchParams.get("version");if(ve){if(ve.slice(0,2)!=="GB")throw new Error("Azure URL version must point to a git branch");pe=ve.slice(2)}return new M(B.origin,F,lt,et,ee,pe)}toRepoUrl(){let v;return(0,c._)(this,C)===(0,c._)(this,f)?v=(0,c._)(this,T).call(this,(0,c._)(this,p),"_git",(0,c._)(this,f)):v=(0,c._)(this,T).call(this,(0,c._)(this,p),(0,c._)(this,C),"_git",(0,c._)(this,f)),(0,c._)(this,R)&&v.searchParams.set("path",(0,c._)(this,R)),(0,c._)(this,P)&&v.searchParams.set("version",E+(0,c._)(this,P)),v.toString()}toFileUrl(){if(!(0,c._)(this,R))throw new Error("Azure URL must point to a specific path to be able to download a file");const v=(0,c._)(this,T).call(this,(0,c._)(this,p),(0,c._)(this,C),"_apis","git","repositories",(0,c._)(this,f),"items");return v.searchParams.set("api-version","6.0"),v.searchParams.set("path",(0,c._)(this,R)),(0,c._)(this,P)&&v.searchParams.set("version",(0,c._)(this,P)),v.toString()}toArchiveUrl(){const v=(0,c._)(this,T).call(this,(0,c._)(this,p),(0,c._)(this,C),"_apis","git","repositories",(0,c._)(this,f),"items");return v.searchParams.set("recursionLevel","full"),v.searchParams.set("download","true"),v.searchParams.set("api-version","6.0"),(0,c._)(this,R)&&v.searchParams.set("scopePath",(0,c._)(this,R)),(0,c._)(this,P)&&v.searchParams.set("version",(0,c._)(this,P)),v.toString()}toCommitsUrl(){const v=(0,c._)(this,T).call(this,(0,c._)(this,p),(0,c._)(this,C),"_apis","git","repositories",(0,c._)(this,f),"commits");return v.searchParams.set("api-version","6.0"),(0,c._)(this,P)&&v.searchParams.set("searchCriteria.itemVersion.version",(0,c._)(this,P)),v.toString()}getOwner(){return(0,c._)(this,p)}getProject(){return(0,c._)(this,C)}getRepo(){return(0,c._)(this,f)}getPath(){return(0,c._)(this,R)}getRef(){return(0,c._)(this,P)}constructor(v,B,F,lt,et,Dt){(0,d._)(this,S,{writable:!0,value:void 0}),(0,d._)(this,p,{writable:!0,value:void 0}),(0,d._)(this,C,{writable:!0,value:void 0}),(0,d._)(this,f,{writable:!0,value:void 0}),(0,d._)(this,R,{writable:!0,value:void 0}),(0,d._)(this,P,{writable:!0,value:void 0}),(0,d._)(this,T,{writable:!0,value:(...qt)=>{const ee=new URL((0,c._)(this,S));return ee.pathname=qt.map(pe=>encodeURIComponent(pe)).join("/"),ee}}),(0,m._)(this,S,v),(0,m._)(this,p,B),(0,m._)(this,C,F),(0,m._)(this,f,lt),(0,m._)(this,R,et),(0,m._)(this,P,Dt)}}const D="dev.azure.com",b=["clientId","clientSecret","tenantId","personalAccessToken"],K=new Map([["ClientSecret",["clientId","clientSecret","tenantId"]],["ManagedIdentity",["clientId"]],["PersonalAccessToken",["personalAccessToken"]]]);function V(j){for(const v of K.entries()){const[B,F]=v,lt=b.filter(et=>!F.includes(et));if(F.every(et=>j[et]!==void 0)&&lt.every(et=>j[et]===void 0))return{kind:B,organizations:j.organizations,...F.reduce((et,Dt)=>(et[Dt]=j[Dt],et),{})}}throw new Error("is not a valid credential")}function tt(j){var v,B,F;const lt=(F=j.getOptionalString("host"))!==null&&F!==void 0?F:D;let et=(v=j.getOptionalConfigArray("credentials"))===null||v===void 0?void 0:v.map(ue=>{var Yt,Te;return{organizations:ue.getOptionalStringArray("organizations"),personalAccessToken:(Yt=ue.getOptionalString("personalAccessToken"))===null||Yt===void 0?void 0:Yt.trim(),tenantId:ue.getOptionalString("tenantId"),clientId:ue.getOptionalString("clientId"),clientSecret:(Te=ue.getOptionalString("clientSecret"))===null||Te===void 0?void 0:Te.trim()}});const Dt=(B=j.getOptionalString("token"))===null||B===void 0?void 0:B.trim();if(j.getOptional("credential")!==void 0&&j.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'credential' and 'credentials' cannot be used together. Use 'credentials' instead.");if(j.getOptional("token")!==void 0&&j.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'token' and 'credentials' cannot be used together. Use 'credentials' instead.");if(Dt!==void 0){const ue=[{personalAccessToken:Dt}];var qt;et=(qt=et==null?void 0:et.concat(ue))!==null&&qt!==void 0?qt:ue}if(j.getOptional("credential")!==void 0){var ee,pe;const ue=[{organizations:j.getOptionalStringArray("credential.organizations"),token:(ee=j.getOptionalString("credential.token"))===null||ee===void 0?void 0:ee.trim(),tenantId:j.getOptionalString("credential.tenantId"),clientId:j.getOptionalString("credential.clientId"),clientSecret:(pe=j.getOptionalString("credential.clientSecret"))===null||pe===void 0?void 0:pe.trim()}];var ve;et=(ve=et==null?void 0:et.concat(ue))!==null&&ve!==void 0?ve:ue}if(!(0,i.HO)(lt))throw new Error(`Invalid Azure integration config, '${lt}' is not a valid host`);let me;if(et!==void 0){const ue=et==null?void 0:et.reduce((Yt,Te,Le)=>{let zt;try{V(Te)}catch(oe){zt=oe.message}return zt!==void 0&&Yt.push(`credential at position ${Le+1} ${zt}`),Yt},Array.of()).concat(Object.entries(et.filter(Yt=>Yt.organizations!==void 0&&Yt.organizations.length>0).reduce((Yt,Te,Le)=>{var zt;return(zt=Te.organizations)===null||zt===void 0||zt.forEach(oe=>{Yt[oe]||(Yt[oe]=[]),Yt[oe].push(Le+1)}),Yt},{})).filter(([Yt,Te])=>Te.length>1).reduce((Yt,[Te,Le])=>(Yt.push(`organization ${Te} is specified multiple times in credentials at positions ${Le.slice(0,Le.length-1).join(", ")} and ${Le[Le.length-1]}`),Yt),Array.of()));if((ue==null?void 0:ue.length)>0)throw new Error(`Invalid Azure integration config for ${lt}: ${ue.join("; ")}`);if(me=et.map(Yt=>V(Yt)),me.some(Yt=>Yt.kind!=="PersonalAccessToken")&&lt!==D)throw new Error(`Invalid Azure integration config for ${lt}, only personal access tokens can be used with hosts other than ${D}`);if(me.filter(Yt=>Yt.organizations===void 0||Yt.organizations.length===0).length>1)throw new Error(`Invalid Azure integration config for ${lt}, you cannot specify multiple credentials without organizations`)}return{host:lt,credentials:me}}function k(j){const v=j.map(tt);return v.some(B=>B.host===D)||v.push({host:D}),v}class G{get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(v){const{url:B,base:F}=v;if((0,i.AY)(B))return B;try{const et=M.fromRepoUrl(F),Dt=new URL(F);var lt;const qt=new URL(`https://a.com${(lt=et.getPath())!==null&&lt!==void 0?lt:""}`),ee=new URL(B,qt).pathname;return Dt.searchParams.set("path",ee),v.lineNumber&&(Dt.searchParams.set("line",String(v.lineNumber)),Dt.searchParams.set("lineEnd",String(v.lineNumber+1)),Dt.searchParams.set("lineStartColumn","1"),Dt.searchParams.set("lineEndColumn","1")),Dt.toString()}catch{return new URL(B,F).toString()}}resolveEditUrl(v){return v}constructor(v){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=v}}(0,o._)(G,"factory",({config:j})=>{var v;const B=k((v=j.getOptionalConfigArray("integrations.azure"))!==null&&v!==void 0?v:[]);return(0,i.oS)(B.map(F=>new G(F)),F=>F.config.host)});var Q=t(52536),H=t.n(Q);const _="bitbucket.org",nt="https://api.bitbucket.org/2.0";function ct(j){var v;const B=_,F=nt,lt=j.getString("username"),et=(v=j.getString("appPassword"))===null||v===void 0?void 0:v.trim();return{host:B,apiBaseUrl:F,username:lt,appPassword:et}}function pt(j){const v=j.map(ct);return v.length===0&&v.push({host:_,apiBaseUrl:nt}),v}class Pt{get type(){return"bitbucketCloud"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(v){const B=(0,i.ku)(v);if(v.lineNumber){const F=new URL(B);return F.hash=`lines-${v.lineNumber}`,F.toString()}return B}resolveEditUrl(v){const B=H()(v),F=new URL(v);return F.searchParams.set("mode","edit"),F.searchParams.set("at",B.ref),F.toString()}constructor(v){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=v}}(0,o._)(Pt,"factory",({config:j})=>{var v;const B=pt((v=j.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&v!==void 0?v:[]);return(0,i.oS)(B.map(F=>new Pt(F)),F=>F.config.host)});var it=t(45250);const vt="bitbucket.org",at="https://api.bitbucket.org/2.0";function ut(j){var v,B,F;const lt=(F=j.getOptionalString("host"))!==null&&F!==void 0?F:vt;let et=j.getOptionalString("apiBaseUrl");const Dt=(v=j.getOptionalString("token"))===null||v===void 0?void 0:v.trim(),qt=j.getOptionalString("username"),ee=(B=j.getOptionalString("appPassword"))===null||B===void 0?void 0:B.trim();if(!(0,i.HO)(lt))throw new Error(`Invalid Bitbucket integration config, '${lt}' is not a valid host`);return et?et=(0,it.trimEnd)(et,"/"):lt===vt?et=at:et=`https://${lt}/rest/api/1.0`,{host:lt,apiBaseUrl:et,token:Dt,username:qt,appPassword:ee}}function ft(j){const v=j.map(ut);return v.some(B=>B.host===vt)||v.push({host:vt,apiBaseUrl:at}),v}class q{get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(v){const B=(0,i.ku)(v);if(!v.lineNumber)return B;const F=new URL(B);return this.integrationConfig.host==="bitbucket.org"?F.hash=`lines-${v.lineNumber}`:F.hash=`${v.lineNumber}`,F.toString()}resolveEditUrl(v){const B=H()(v),F=new URL(v);return F.searchParams.set("mode","edit"),F.searchParams.set("spa","0"),F.searchParams.set("at",B.ref),F.toString()}constructor(v){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=v}}(0,o._)(q,"factory",({config:j})=>{var v,B,F;const lt=ft((F=j.getOptionalConfigArray("integrations.bitbucket"))!==null&&F!==void 0?F:[...(v=j.getOptionalConfigArray("integrations.bitbucketCloud"))!==null&&v!==void 0?v:[],...(B=j.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&B!==void 0?B:[]]);return(0,i.oS)(lt.map(et=>new q(et)),et=>et.config.host)});function At(j){var v;const B=j.getString("host");let F=j.getOptionalString("apiBaseUrl");const lt=(v=j.getOptionalString("token"))===null||v===void 0?void 0:v.trim(),et=j.getOptionalString("username"),Dt=j.getOptionalString("password");if(!(0,i.HO)(B))throw new Error(`Invalid Bitbucket Server integration config, '${B}' is not a valid host`);return F?F=(0,it.trimEnd)(F,"/"):F=`https://${B}/rest/api/1.0`,{host:B,apiBaseUrl:F,token:lt,username:et,password:Dt}}function xt(j){return j.map(At)}class ot{get type(){return"bitbucketServer"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(v){const B=(0,i.ku)(v);if(v.lineNumber){const F=new URL(B);return F.hash=v.lineNumber.toString(),F.toString()}return B}resolveEditUrl(v){return v.includes("?")?v.substring(0,v.indexOf("?")):v}constructor(v){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=v}}(0,o._)(ot,"factory",({config:j})=>{var v;const B=xt((v=j.getOptionalConfigArray("integrations.bitbucketServer"))!==null&&v!==void 0?v:[]);return(0,i.oS)(B.map(F=>new ot(F)),F=>F.config.host)});function rt(j){var v;const B=j.getString("host");let F=j.getOptionalString("baseUrl"),lt=j.getOptionalString("cloneUrl"),et=j.getOptionalString("gitilesBaseUrl");const Dt=j.getOptionalString("username"),qt=(v=j.getOptionalString("password"))===null||v===void 0?void 0:v.trim();if((0,i.HO)(B)){if(F&&!(0,i.AY)(F))throw new Error(`Invalid Gerrit integration config, '${F}' is not a valid baseUrl`);if(lt&&!(0,i.AY)(lt))throw new Error(`Invalid Gerrit integration config, '${lt}' is not a valid cloneUrl`);if(et&&!(0,i.AY)(et))throw new Error(`Invalid Gerrit integration config, '${et}' is not a valid gitilesBaseUrl`)}else throw new Error(`Invalid Gerrit integration config, '${B}' is not a valid host`);return F?F=(0,it.trimEnd)(F,"/"):F=`https://${B}`,et?et=(0,it.trimEnd)(et,"/"):et=`https://${B}`,lt?lt=(0,it.trimEnd)(lt,"/"):lt=F,{host:B,baseUrl:F,cloneUrl:lt,gitilesBaseUrl:et,username:Dt,password:qt}}function gt(j){return j.map(rt)}var Tt=t(1048).hp;const Ct=")]}'";function $(j,v){const B=new URL(j.gitilesBaseUrl),F=new URL(v),et=F.pathname.substring(F.pathname.startsWith("/a/")?2:0).replace(B.pathname,"").split("/").filter(me=>!!me),Dt=et.indexOf("+");if(Dt<=0)throw new Error(`Unable to parse project from url: ${v}`);const qt=(0,it.trimStart)(et.slice(0,Dt).join("/"),"/"),ee=et.indexOf("heads");if(ee<=0)throw new Error(`Unable to parse branch from url: ${v}`);const pe=et[ee+1],ve=et.slice(ee+2).join("/");return{branch:pe,filePath:ve===""?"/":ve,project:qt}}function z(j,v,B,F){return`${j.gitilesBaseUrl}/${v}/+/refs/heads/${B}/${(0,it.trimStart)(F,"/")}`}function mt(j,v,B,F){const lt=F==="/"||F===""?".tar.gz":`/${F}.tar.gz`;return`${It(j)}/${v}/+archive/refs/heads/${B}${lt}`}function yt(j){return j.password?"/a/":"/"}function It(j){if(!j.baseUrl||!j.gitilesBaseUrl)throw new Error("Unexpected Gerrit config values. baseUrl or gitilesBaseUrl not set.");if(j.gitilesBaseUrl.startsWith(j.baseUrl))return j.gitilesBaseUrl.replace(j.baseUrl.concat("/"),j.baseUrl.concat(yt(j)));if(j.password)throw new Error("Since the baseUrl (Gerrit) is not part of the gitilesBaseUrl, an authentication URL could not be constructed.");return j.gitilesBaseUrl}function wt(j,v){const{branch:B,project:F}=$(j,v);return`${j.baseUrl}${yt(j)}projects/${encodeURIComponent(F)}/branches/${B}`}function Bt(j,v){const{project:B}=$(j,v);return`${j.cloneUrl}${yt(j)}${B}`}function Ut(j,v){const{branch:B,filePath:F,project:lt}=$(j,v);return`${j.baseUrl}${yt(j)}projects/${encodeURIComponent(lt)}/branches/${B}/files/${encodeURIComponent(F)}/content`}function Ot(j){return`${j.baseUrl}${yt(j)}projects/`}function Nt(j){const v={};if(!j.password)return v;const B=Tt.from(`${j.username}:${j.password}`,"utf8");return v.Authorization=`Basic ${B.toString("base64")}`,{headers:v}}async function Xt(j){const v=await j.text();if(v.startsWith(Ct))try{return JSON.parse(v.slice(Ct.length))}catch(B){throw new Error(`Invalid response from Gerrit: ${v.slice(0,10)} - ${B}`)}throw new Error(`Gerrit JSON body prefix missing. Found: ${v.slice(0,10)}`)}class se{get type(){return"gerrit"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(v){const{url:B,base:F,lineNumber:lt}=v;let et;if(B.startsWith("/")){const{branch:Dt,project:qt}=$(this.config,F);return z(this.config,qt,Dt,B)}return B?et=new URL(B,F):et=new URL(F),lt&&(et.hash=lt.toString()),et.toString()}resolveEditUrl(v){return v}constructor(v){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=v}}(0,o._)(se,"factory",({config:j})=>{var v;const B=gt((v=j.getOptionalConfigArray("integrations.gerrit"))!==null&&v!==void 0?v:[]);return(0,i.oS)(B.map(F=>new se(F)),F=>F.config.host)});var ie=t(36021);const _t="gitlab.com",Ft="https://gitlab.com/api/v4";function Zt(j){var v;const B=j.getString("host");let F=j.getOptionalString("apiBaseUrl");const lt=(v=j.getOptionalString("token"))===null||v===void 0?void 0:v.trim();let et=j.getOptionalString("baseUrl");if(F?F=(0,it.trimEnd)(F,"/"):B===_t&&(F=Ft),et?et=(0,it.trimEnd)(et,"/"):et=`https://${B}`,(0,i.HO)(B)){if(!F||!(0,i.AY)(F))throw new Error(`Invalid GitLab integration config, '${F}' is not a valid apiBaseUrl`);if(!(0,i.AY)(et))throw new Error(`Invalid GitLab integration config, '${et}' is not a valid baseUrl`)}else throw new Error(`Invalid GitLab integration config, '${B}' is not a valid host`);return{host:B,token:lt,apiBaseUrl:F,baseUrl:et}}function Ce(j){const v=j.map(Zt);return v.some(B=>B.host===_t)||v.push({host:_t,apiBaseUrl:Ft,baseUrl:`https://${_t}`}),v}function ke(j){let v="";return j.host!==_t&&(v=new URL(j.baseUrl).pathname),trimEnd(v,"/")}class Ke{get type(){return"gitlab"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(v){return(0,i.ku)(v)}resolveEditUrl(v){return Je(v,"edit")}constructor(v){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=v}}(0,o._)(Ke,"factory",({config:j})=>{var v;const B=Ce((v=j.getOptionalConfigArray("integrations.gitlab"))!==null&&v!==void 0?v:[]);return(0,i.oS)(B.map(F=>new Ke(F)),F=>F.config.host)});function Je(j,v){return j.replace(/\/\-\/(blob|tree|edit)\//,`/-/${v}/`)}function Ie(j){var v;const B=j.getString("host");let F=j.getOptionalString("baseUrl");const lt=j.getOptionalString("username"),et=(v=j.getOptionalString("password"))===null||v===void 0?void 0:v.trim();if((0,i.HO)(B)){if(F&&!(0,i.AY)(F))throw new Error(`Invalid Gitea integration config, '${F}' is not a valid baseUrl`)}else throw new Error(`Invalid Gitea integration config, '${B}' is not a valid host`);return F?F=(0,it.trimEnd)(F,"/"):F=`https://${B}`,{host:B,baseUrl:F,username:lt,password:et}}var on=t(1048).hp;function Ge(j,v){const B=Ue(j,v);return`${B.url}/${B.owner}/${B.name}/_edit/${B.ref}/${B.path}`}function le(j,v){const B=Ue(j,v);return`${B.url}/api/v1/repos/${B.owner}/${B.name}/contents/${B.path}?ref=${B.ref}`}function ze(j,v){const B=Ue(j,v);return`${B.url}/api/v1/repos/${B.owner}/${B.name}/archive/${B.ref}.tar.gz`}function He(j,v){const B=Ue(j,v);return`${B.url}/api/v1/repos/${B.owner}/${B.name}/git/commits/${B.ref}`}function rn(j){const v={},{username:B,password:F}=j;return F?(B?v.Authorization=`basic ${on.from(`${B}:${F}`).toString("base64")}`:v.Authorization=`token ${F}`,{headers:v}):v}function Ue(j,v){var B;const F=(B=j.baseUrl)!==null&&B!==void 0?B:`https://${j.host}`;try{const[lt,et,Dt,qt,ee,pe,...ve]=v.replace(F,"").split("/"),me=ve.join("/").replace(/^\//,"");return{url:F,owner:et,name:Dt,ref:pe,path:me}}catch(lt){throw new Error(`Incorrect URL: ${v}, ${lt}`)}}class he{get type(){return"gitea"}get title(){return this.config.host}resolveUrl(v){return(0,i.ku)(v)}resolveEditUrl(v){return Ge(this.config,v)}constructor(v){(0,o._)(this,"config",void 0),this.config=v}}(0,o._)(he,"factory",({config:j})=>{var v;const F=((v=j.getOptionalConfigArray("integrations.gitea"))!==null&&v!==void 0?v:[]).map(lt=>Ie(lt));return(0,i.oS)(F.map(lt=>new he(lt)),lt=>lt.config.host)});class Ve{static fromConfig(v){return new Ve({awsS3:g.factory({config:v}),azure:G.factory({config:v}),bitbucket:q.factory({config:v}),bitbucketCloud:Pt.factory({config:v}),bitbucketServer:ot.factory({config:v}),gerrit:se.factory({config:v}),github:ie.U.factory({config:v}),gitlab:Ke.factory({config:v}),gitea:he.factory({config:v})})}get awsS3(){return this.byType.awsS3}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}list(){return Object.values(this.byType).flatMap(v=>v.list())}byUrl(v){let B=Object.values(this.byType).map(F=>F.byUrl(v)).filter(Boolean);if(B.length>1){const F=B.filter(lt=>!(lt instanceof q));F.length!==0&&(B=F)}return B[0]}byHost(v){return Object.values(this.byType).map(B=>B.byHost(v)).find(Boolean)}resolveUrl(v){const B=this.byUrl(v.base);return B?B.resolveUrl(v):(0,i.ku)(v)}resolveEditUrl(v){const B=this.byUrl(v);return B?B.resolveEditUrl(v):v}constructor(v){(0,o._)(this,"byType",void 0),this.byType=v}}var Xe=t(55309);class _e{static fromConfig(v){return Ve.fromConfig(v)}}const Se=(0,Xe.y)({id:"integration.scmintegrations"})},36021:function(Y,w,t){"use strict";t.d(w,{U:function(){return m},F:function(){return E}});var o=t(18990),i=t(59869),u=t(45250);const x="github.com",y="https://api.github.com",g="https://raw.githubusercontent.com";function c(S){var p,C,f;const R=(f=S.getOptionalString("host"))!==null&&f!==void 0?f:x;let P=S.getOptionalString("apiBaseUrl"),T=S.getOptionalString("rawBaseUrl");const M=(p=S.getOptionalString("token"))===null||p===void 0?void 0:p.trim(),D=(C=S.getOptionalConfigArray("apps"))===null||C===void 0?void 0:C.map(b=>({appId:b.getNumber("appId"),clientId:b.getString("clientId"),clientSecret:b.getString("clientSecret"),webhookSecret:b.getString("webhookSecret"),privateKey:b.getString("privateKey"),allowedInstallationOwners:b.getOptionalStringArray("allowedInstallationOwners")}));if(!(0,i.HO)(R))throw new Error(`Invalid GitHub integration config, '${R}' is not a valid host`);return P?P=(0,u.trimEnd)(P,"/"):R===x&&(P=y),T?T=(0,u.trimEnd)(T,"/"):R===x&&(T=g),{host:R,apiBaseUrl:P,rawBaseUrl:T,token:M,apps:D}}function d(S){const p=S.map(c);return p.some(C=>C.host===x)||p.push({host:x,apiBaseUrl:y,rawBaseUrl:g}),p}class m{get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(p){return E((0,i.ku)(p),"tree")}resolveEditUrl(p){return E(p,"edit")}parseRateLimitInfo(p){return{isRateLimited:p.status===429||p.status===403&&p.headers.get("x-ratelimit-remaining")==="0"}}constructor(p){(0,o._)(this,"integrationConfig",void 0),this.integrationConfig=p}}(0,o._)(m,"factory",({config:S})=>{var p;const C=d((p=S.getOptionalConfigArray("integrations.github"))!==null&&p!==void 0?p:[]);return(0,i.oS)(C.map(f=>new m(f)),f=>f.config.host)});function E(S,p){return S.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,(C,f,R,P)=>`//${f}/${R}/${P}/${p}/`)}},59869:function(Y,w,t){"use strict";t.d(w,{AY:function(){return g},HO:function(){return y},ku:function(){return d},oS:function(){return c}});var o=t(52536),i=t.n(o),u=t(45250),x=t.n(u);function y(E){const S=new URL("http://example.com");return S.host=E,S.host===E}function g(E){try{return new URL(E),!0}catch{return!1}}function c(E,S){return{list(){return E},byUrl(p){try{const C=typeof p=="string"?new URL(p):p;return E.find(f=>S(f)===C.host)}catch{return}},byHost(p){return E.find(C=>S(C)===p)}}}function d(E){const{url:S,base:p,lineNumber:C}=E;try{return new URL(S),S}catch{}let f;if(S.startsWith("/")){const{filepath:R}=i()(p);f=new URL(p);const P=(0,u.trimEnd)(f.pathname.substring(0,f.pathname.length-R.length),"/");f.pathname=`${P}${S}`}else f=new URL(S,p);return f.search=new URL(p).search,C&&(f.hash=`L${C}`),f.toString()}function m(E){beforeAll(()=>E.listen({onUnhandledRequest:"error"})),afterAll(()=>E.close()),afterEach(()=>E.resetHandlers())}},56041:function(Y,w,t){"use strict";var o={};t.r(o),t.d(o,{TechDocsPlugin:function(){return g.Ju}});var i=t(31085),u=t(14041),x=t(25873),y=t(18690),g=t(39278),c=t(85920),d=t(72020),m=t(99730),E=t(64947),S=t(12173),p=t(22020),C=t(68146),f=t(73970);function R({children:r}){return(0,y.Ri)()?(0,i.jsx)(i.Fragment,{children:r}):(0,i.jsx)(y.fS,{children:r})}const P=()=>(0,i.jsx)(S.M,{status:"404",statusMessage:"PAGE NOT FOUND"}),T=({step:r,error:e})=>{let n="";return r==="load-config"?n=`The configuration failed to load, someone should have a look at this error: ${e.message}`:r==="load-chunk"&&(n=`Lazy loaded chunk failed to load, try to reload the page: ${e.message}`),(0,i.jsx)(R,{children:(0,i.jsx)(S.M,{statusMessage:n,stack:e.stack})})},M=({error:r,resetError:e,plugin:n})=>(0,i.jsx)(p.b,{title:`Error in ${n==null?void 0:n.getId()}`,defaultExpanded:!0,error:r,children:(0,i.jsx)(E.A,{variant:"outlined",onClick:e,children:"Retry"})}),D={Progress:C.k,Router:f.Kd,NotFoundErrorPage:P,BootErrorPage:T,ErrorBoundaryFallback:M};var b=t(18990);const K="Invalid discovery URL pattern,";class V{static compile(e){const n=e.split(/\{\{\s*pluginId\s*\}\}/),s=n.join("pluginId");let a;try{a=new URL(s)}catch{throw new Error(`${K} URL '${s}' is invalid`)}if(a.hash)throw new Error(`${K} URL must not have a hash`);if(a.search)throw new Error(`${K} URL must not have a query`);if(s.endsWith("/"))throw new Error(`${K} URL must not end with a slash`);return new V(n)}async getBaseUrl(e){return this.parts.join(encodeURIComponent(e))}constructor(e){(0,b._)(this,"parts",void 0),this.parts=e}}var tt=t(96403),k=t.n(tt);let G=Symbol.observable;class Q{[G](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.subscribers.forEach(n=>n.next(e))}error(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(n=>n.error(e))}complete(){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,n,s){const a=typeof e=="function"?{next:e,error:n,complete:s}:e;return this.observable.subscribe(a)}constructor(){(0,b._)(this,"isClosed",!1),(0,b._)(this,"terminatingError",void 0),(0,b._)(this,"observable",new(k())(e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(this.subscribers.add(e),()=>{this.subscribers.delete(e)}))),(0,b._)(this,"subscribers",new Set)}}let H=Symbol.observable;class _{[H](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.currentValue=e,this.subscribers.forEach(n=>n.next(e))}error(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(n=>n.error(e))}complete(){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,n,s){const a=typeof e=="function"?{next:e,error:n,complete:s}:e;return this.observable.subscribe(a)}constructor(e){(0,b._)(this,"isClosed",void 0),(0,b._)(this,"currentValue",void 0),(0,b._)(this,"terminatingError",void 0),(0,b._)(this,"observable",void 0),(0,b._)(this,"subscribers",new Set),this.isClosed=!1,this.currentValue=e,this.terminatingError=void 0,this.observable=new(k())(n=>this.isClosed?(this.terminatingError?n.error(this.terminatingError):n.complete(),()=>{}):(n.next(this.currentValue),this.subscribers.add(n),()=>{this.subscribers.delete(n)}))}}class nt{post(e){this.subject.next(e)}alert$(){return this.subject}constructor(){(0,b._)(this,"subject",new Q)}}class ct{captureEvent(e){}}class pt{post(e,n){return n!=null&&n.hidden||this.alertApi.post({message:e.message,severity:"error"}),this.errorApi.post(e,n)}error$(){return this.errorApi.error$()}constructor(e,n){(0,b._)(this,"alertApi",void 0),(0,b._)(this,"errorApi",void 0),this.alertApi=e,this.errorApi=n}}class Pt{post(e,n){this.subject.next({error:e,context:n})}error$(){return this.subject}constructor(){(0,b._)(this,"subject",new Q)}}class it{static forward(e,n){window.addEventListener("unhandledrejection",s=>{e.post(s.reason,n)})}}const vt=new Map;class at{static create(e){var n;return new at((n=e.namespace)!==null&&n!==void 0?n:"",e.errorApi)}static addStorageEventListener(){window.addEventListener("storage",e=>{for(const[s,a]of vt.entries()){var n;!((n=e.key)===null||n===void 0)&&n.startsWith(s)&&a.handleStorageChange(e.key)}})}get(e){return this.snapshot(e).value}snapshot(e){let n,s="absent";try{const a=localStorage.getItem(this.getKeyName(e));a&&(n=JSON.parse(a,(l,O)=>(typeof O=="object"&&O!==null&&Object.freeze(O),O)),s="present")}catch{this.errorApi.post(new Error(`Error when parsing JSON config from storage for: ${e}`))}return{key:e,value:n,presence:s}}forBucket(e){const n=`${this.namespace}/${e}`;return vt.has(n)||vt.set(n,new at(n,this.errorApi)),vt.get(n)}async set(e,n){localStorage.setItem(this.getKeyName(e),JSON.stringify(n)),this.notifyChanges(e)}async remove(e){localStorage.removeItem(this.getKeyName(e)),this.notifyChanges(e)}observe$(e){return at.hasSubscribed||(at.addStorageEventListener(),at.hasSubscribed=!0),this.observable.filter(({key:n})=>n===e)}handleStorageChange(e){if(!(e!=null&&e.startsWith(this.namespace)))return;const n=e==null?void 0:e.slice(`${this.namespace}/`.length);n.includes("/")||this.notifyChanges(decodeURIComponent(n))}getKeyName(e){return`${this.namespace}/${encodeURIComponent(e)}`}notifyChanges(e){const n=this.snapshot(e);for(const s of this.subscribers)s.next(n)}constructor(e,n){(0,b._)(this,"namespace",void 0),(0,b._)(this,"errorApi",void 0),(0,b._)(this,"subscribers",void 0),(0,b._)(this,"observable",void 0),this.namespace=e,this.errorApi=n,this.subscribers=new Set,this.observable=new(k())(s=>(this.subscribers.add(s),()=>{this.subscribers.delete(s)}))}}(0,b._)(at,"hasSubscribed",!1);function ut(r){let e=r.baseImplementation||t.g.fetch;var n;const s=[(n=r.middleware)!==null&&n!==void 0?n:[]].flat().reverse();for(const a of s)e=a.apply(e);return{fetch:e}}class ft{static create(e){var n,s;const a=q(e),l=((n=e.header)===null||n===void 0?void 0:n.name)||"authorization",O=((s=e.header)===null||s===void 0?void 0:s.value)||(A=>`Bearer ${A}`);return new ft(e.identityApi,a,l,O)}apply(e){return async(n,s)=>{const a=new Request(n,s),{token:l}=await this.identityApi.getCredentials();return a.headers.get(this.headerName)||typeof l!="string"||!l||!this.allowUrl(a.url)?e(n,s):(a.headers.set(this.headerName,this.headerValue(l)),e(a))}}constructor(e,n,s,a){(0,b._)(this,"identityApi",void 0),(0,b._)(this,"allowUrl",void 0),(0,b._)(this,"headerName",void 0),(0,b._)(this,"headerValue",void 0),this.identityApi=e,this.allowUrl=n,this.headerName=s,this.headerValue=a}}function q(r){return r.allowUrl?r.allowUrl:r.urlPrefixAllowlist?At(r.urlPrefixAllowlist):r.config?At([r.config.getString("backend.baseUrl")]):()=>!1}function At(r){const e=r.map(n=>n.replace(/\/$/,""));return n=>e.some(s=>n===s||n.startsWith(`${s}/`))}function xt(r,e){return!e||e==="/"?r:`${r.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}class ot{apply(e){return async(n,s)=>{const a=new Request(n,s),l="plugin://";if(!a.url.startsWith(l))return e(n,s);const{hostname:O,pathname:A,search:L,hash:W,username:J,password:st}=new URL(`http://${a.url.substring(l.length)}`);let ht=await this.discoveryApi.getBaseUrl(O);if(J||st){const bt=new URL(ht),Kt=`${J}${st?`:${st}`:""}@`;ht=`${bt.protocol}//${Kt}${bt.host}${bt.pathname}`}const Et=`${xt(ht,A)}${L}${W}`;return e(Et,typeof n=="string"||rt(n)?s:n)}}constructor(e){(0,b._)(this,"discoveryApi",void 0),this.discoveryApi=e}}function rt(r){return typeof r=="object"&&(r==null?void 0:r.constructor)===URL}class gt{static resolvePluginProtocol(e){return new ot(e.discoveryApi)}static injectIdentityAuth(e){return ft.create(e)}constructor(){}}function Tt(r,e){for(const n of e)if(!r.has(n))return!1;return!0}function Ct(r,...e){const n=new Set(r);for(const s of e)for(const a of s)n.add(a);return n}class ${request(e){return new Promise((n,s)=>{this.requests.push({scopes:e,resolve:n,reject:s}),this.subject.next(this.getCurrentPending())})}resolve(e,n){this.requests=this.requests.filter(s=>Tt(e,s.scopes)?(s.resolve(n),!1):!0),this.subject.next(this.getCurrentPending())}reject(e){this.requests.forEach(n=>n.reject(e)),this.requests=[],this.subject.next(this.getCurrentPending())}pending(){return this.subject}getCurrentPending(){const e=this.requests.length===0?void 0:this.requests.slice(1).reduce((n,s)=>Ct(n,s.scopes),this.requests[0].scopes);return{scopes:e,resolve:n=>{e&&this.resolve(e,n)},reject:n=>{e&&this.reject(n)}}}constructor(){(0,b._)(this,"requests",[]),(0,b._)(this,"subject",new _(this.getCurrentPending()))}}class z{createAuthRequester(e){const n=new $,s=this.handlerCount;return this.handlerCount++,n.pending().subscribe({next:a=>{const l=this.currentRequests.slice(),O=this.makeAuthRequest(a,e);O?l[s]=O:delete l[s],this.currentRequests=l,this.subject.next(l.filter(Boolean))}}),a=>n.request(a)}makeAuthRequest(e,n){const{scopes:s}=e;if(s)return{provider:n.provider,trigger:async()=>{const a=await n.onAuthRequest(s);e.resolve(a)},reject:()=>{const a=new Error("Login failed, rejected by user");a.name="RejectedError",e.reject(a)}}}authRequest$(){return this.subject}constructor(){(0,b._)(this,"subject",new _([])),(0,b._)(this,"currentRequests",[]),(0,b._)(this,"handlerCount",0)}}function mt(r){return new Promise((e,n)=>{const s=r.width||500,a=r.height||700,l=window.screen.width/2-s/2,O=window.screen.height/2-a/2,A=window.open(r.url,r.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${s},height=${a},top=${O},left=${l}`);let L="";if(!A||typeof A.closed=="undefined"||A.closed){const ht=new Error("Failed to open auth popup.");ht.name="PopupRejectedError",n(ht);return}const W=ht=>{if(ht.source!==A||ht.origin!==r.origin)return;const{data:Et}=ht;if(Et.type==="config_info"){L=Et.targetOrigin;return}if(Et.type!=="authorization_response")return;const bt=Et;if("error"in bt){const Kt=new Error(bt.error.message);Kt.name=bt.error.name,n(Kt)}else e(bt.response);st()},J=setInterval(()=>{if(A.closed){const ht=`Login failed, ${L&&L!==window.location.origin?`Incorrect app origin, expected ${L}`:"popup was closed"}`,Et=new Error(ht);Et.name="PopupClosedError",n(Et),st()}},100);function st(){window.removeEventListener("message",W),clearInterval(J)}window.addEventListener("message",W)})}let yt=!1;function It(r){return[...r].join(" ")}class wt{async createSession(e){return e.instantPopup?this.enableExperimentalRedirectFlow?this.executeRedirect(e.scopes):this.showPopup(e.scopes):this.authRequester(e.scopes)}async refreshSession(e){const n=await fetch(await this.buildUrl("/refresh",{optional:!0,...e&&{scope:this.joinScopesFunc(e)}}),{headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(a=>{throw new Error(`Auth refresh request failed, ${a}`)});if(!n.ok){const a=new Error(`Auth refresh request failed, ${n.statusText}`);throw a.status=n.status,a}const s=await n.json();if(s.error){const a=new Error(s.error.message);throw s.error.name&&(a.name=s.error.name),a}return await this.sessionTransform(s)}async removeSession(){const e=await fetch(await this.buildUrl("/logout"),{method:"POST",headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(n=>{throw new Error(`Logout request failed, ${n}`)});if(!e.ok){const n=new Error(`Logout request failed, ${e.statusText}`);throw n.status=e.status,n}}async showPopup(e){var n,s,a,l,O,A,L,W;const J=this.joinScopesFunc(e),st=await this.buildUrl("/start",{scope:J,origin:window.location.origin,flow:"popup"}),ht=!((s=this.popupOptions)===null||s===void 0||(n=s.size)===null||n===void 0)&&n.fullscreen?window.screen.width:((l=this.popupOptions)===null||l===void 0||(a=l.size)===null||a===void 0?void 0:a.width)||450,Et=!((A=this.popupOptions)===null||A===void 0||(O=A.size)===null||O===void 0)&&O.fullscreen?window.screen.height:((W=this.popupOptions)===null||W===void 0||(L=W.size)===null||L===void 0?void 0:L.height)||730,bt=await mt({url:st,name:`${this.provider.title} Login`,origin:new URL(st).origin,width:ht,height:Et});return await this.sessionTransform(bt)}async executeRedirect(e){const n=this.joinScopesFunc(e);return window.location.href=await this.buildUrl("/start",{scope:n,origin:window.location.origin,redirectUrl:window.location.href,flow:"redirect"}),new Promise(()=>{})}async buildUrl(e,n){const s=await this.discoveryApi.getBaseUrl("auth"),a=this.buildQueryString({...n,env:this.environment});return`${s}/${this.provider.id}${e}${a}`}buildQueryString(e){if(!e)return"";const n=Object.entries(e).map(([s,a])=>{if(typeof a=="string")return`${encodeURIComponent(s)}=${encodeURIComponent(a)}`;if(a)return encodeURIComponent(s)}).filter(Boolean).join("&");return n?`?${n}`:""}constructor(e){(0,b._)(this,"discoveryApi",void 0),(0,b._)(this,"environment",void 0),(0,b._)(this,"provider",void 0),(0,b._)(this,"joinScopesFunc",void 0),(0,b._)(this,"authRequester",void 0),(0,b._)(this,"sessionTransform",void 0),(0,b._)(this,"enableExperimentalRedirectFlow",void 0),(0,b._)(this,"popupOptions",void 0);const{configApi:n,discoveryApi:s,environment:a,provider:l,joinScopes:O=It,oauthRequestApi:A,sessionTransform:L=st=>st,popupOptions:W}=e;!yt&&!n&&(console.warn("DEPRECATION WARNING: Authentication providers require a configApi instance to configure the authentication flow. Please provide one to the authentication provider constructor."),yt=!0);var J;this.enableExperimentalRedirectFlow=n&&(J=n.getOptionalBoolean("enableExperimentalRedirectFlow"))!==null&&J!==void 0?J:!1,this.authRequester=A.createAuthRequester({provider:l,onAuthRequest:async st=>this.enableExperimentalRedirectFlow?this.executeRedirect(st):this.showPopup(st)}),this.discoveryApi=s,this.environment=a,this.provider=l,this.joinScopesFunc=O,this.sessionTransform=L,this.popupOptions=W}}function Bt(r,e){for(const n of e)if(!r.has(n))return!1;return!0}class Ut{sessionExistsAndHasScope(e,n){if(!e)return!1;if(!n||this.options.sessionScopes===void 0)return!0;const s=this.options.sessionScopes(e);return Bt(s,n)}getExtendedScope(e,n){const s=new Set(this.options.defaultScopes);if(e&&this.options.sessionScopes!==void 0){const a=this.options.sessionScopes(e);for(const l of a)s.add(l)}if(n)for(const a of n)s.add(a);return s}constructor(e){(0,b._)(this,"options",void 0),this.options=e}}var Ot=t(55309),Nt;(function(r){r.SignedIn="SignedIn",r.SignedOut="SignedOut"})(Nt||(Nt={}));const Xt=(0,Ot.y)({id:"core.auth.google"}),se=(0,Ot.y)({id:"core.auth.github"}),ie=(0,Ot.y)({id:"core.auth.okta"}),_t=(0,Ot.y)({id:"core.auth.gitlab"}),Ft=(0,Ot.y)({id:"core.auth.microsoft"}),Zt=(0,Ot.y)({id:"core.auth.onelogin"}),Ce=(0,Ot.y)({id:"core.auth.bitbucket"}),ke=(0,Ot.y)({id:"core.auth.bitbucket-server"}),Ke=(0,Ot.y)({id:"core.auth.atlassian"}),Je=(0,Ot.y)({id:"core.auth.vmware-cloud"});class Ie{setIsSignedIn(e){this.signedIn!==e&&(this.signedIn=e,this.subject.next(this.signedIn?Nt.SignedIn:Nt.SignedOut))}sessionState$(){return this.subject}constructor(){(0,b._)(this,"subject",new _(Nt.SignedOut)),(0,b._)(this,"signedIn",!1)}}class on{async getSession(e){if(this.helper.sessionExistsAndHasScope(this.currentSession,e.scopes)){if(!this.sessionShouldRefreshFunc(this.currentSession))return this.currentSession;try{const s=await this.collapsedSessionRefresh(e.scopes),a=this.sessionScopesFunc(this.currentSession),l=this.sessionScopesFunc(s);return Bt(l,a)&&(this.currentSession=s),s}catch(s){if(e.optional)return;throw s}}if(!this.currentSession&&!e.instantPopup)try{const n=await this.collapsedSessionRefresh(e.scopes);return this.currentSession=n,this.getSession(e)}catch{}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}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(this.helper.getExtendedScope(this.currentSession,e));try{const n=await this.refreshPromise;return this.stateTracker.setIsSignedIn(!0),n}finally{delete this.refreshPromise}}constructor(e){(0,b._)(this,"connector",void 0),(0,b._)(this,"helper",void 0),(0,b._)(this,"sessionScopesFunc",void 0),(0,b._)(this,"sessionShouldRefreshFunc",void 0),(0,b._)(this,"stateTracker",new Ie),(0,b._)(this,"refreshPromise",void 0),(0,b._)(this,"currentSession",void 0);const{connector:n,defaultScopes:s=new Set,sessionScopes:a,sessionShouldRefresh:l}=e;this.connector=n,this.sessionScopesFunc=a,this.sessionShouldRefreshFunc=l,this.helper=new Ut({sessionScopes:a,defaultScopes:s})}}const Ge={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class le{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=Ge,oauthRequestApi:O,defaultScopes:A=[],scopeTransform:L=ht=>ht,popupOptions:W}=e,J=new wt({configApi:n,discoveryApi:s,environment:a,provider:l,oauthRequestApi:O,sessionTransform({backstageIdentity:ht,...Et}){const bt={...Et,providerInfo:{idToken:Et.providerInfo.idToken,accessToken:Et.providerInfo.accessToken,scopes:le.normalizeScopes(L,Et.providerInfo.scope),expiresAt:Et.providerInfo.expiresInSeconds?new Date(Date.now()+Et.providerInfo.expiresInSeconds*1e3):void 0}};if(ht){var Kt;const Vt=(Kt=ht.expiresInSeconds)!==null&&Kt!==void 0?Kt:Et.providerInfo.expiresInSeconds;bt.backstageIdentity={token:ht.token,identity:ht.identity,expiresAt:Vt?new Date(Date.now()+Vt*1e3):void 0}}return bt},popupOptions:W}),st=new on({connector:J,defaultScopes:new Set(A),sessionScopes:ht=>ht.providerInfo.scopes,sessionShouldRefresh:ht=>{var Et,bt;let Kt=1/0;return!((Et=ht.providerInfo)===null||Et===void 0)&&Et.expiresAt&&(Kt=Math.min(Kt,(ht.providerInfo.expiresAt.getTime()-Date.now())/1e3)),!((bt=ht.backstageIdentity)===null||bt===void 0)&&bt.expiresAt&&(Kt=Math.min(Kt,(ht.backstageIdentity.expiresAt.getTime()-Date.now())/1e3)),Kt<60*5}});return new le({sessionManager:st,scopeTransform:L})}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(e,n){const s=le.normalizeScopes(this.scopeTransform,e),a=await this.sessionManager.getSession({...n,scopes:s});var l;return(l=a==null?void 0:a.providerInfo.accessToken)!==null&&l!==void 0?l:""}async getIdToken(e={}){const n=await this.sessionManager.getSession({...e,scopes:new Set(["openid"])});var s;return(s=n==null?void 0:n.providerInfo.idToken)!==null&&s!==void 0?s:""}async getBackstageIdentity(e={}){const n=await this.sessionManager.getSession(e);return n==null?void 0:n.backstageIdentity}async getProfile(e={}){const n=await this.sessionManager.getSession(e);return n==null?void 0:n.profile}static normalizeScopes(e,n){if(!n)return new Set;const s=Array.isArray(n)?n:n.split(/[\s|,]/).filter(Boolean);return new Set(e(s))}constructor(e){(0,b._)(this,"sessionManager",void 0),(0,b._)(this,"scopeTransform",void 0),this.sessionManager=e.sessionManager,this.scopeTransform=e.scopeTransform}}const ze={id:"google",title:"Google",icon:()=>null},He="https://www.googleapis.com/auth/";class rn{static create(e){const{configApi:n,discoveryApi:s,oauthRequestApi:a,environment:l="development",provider:O=ze,defaultScopes:A=["openid",`${He}userinfo.email`,`${He}userinfo.profile`]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:a,provider:O,environment:l,defaultScopes:A,scopeTransform(L){return L.map(W=>W==="openid"?W:W==="profile"||W==="email"?`${He}userinfo.${W}`:W.startsWith(He)?W:`${He}${W}`)}})}}const Ue={id:"microsoft",title:"Microsoft",icon:()=>null};class he{static create(e){return new he(e)}microsoftGraph(){return this.oauth2[he.MicrosoftGraphID]}static resourceForScopes(e){const n=[...new Set(e.split(" ").map(he.resourceForScope).filter(l=>l!=="openid"))];if(n.length>1)return Promise.reject(new Error(`Requested access token with scopes from multiple Azure resources: ${n.join(", ")}. Access tokens can only have a single audience.`));var s;const a=(s=n[0])!==null&&s!==void 0?s:he.MicrosoftGraphID;return Promise.resolve(a)}static resourceForScope(e){var n;const s=(n=e.match(RegExp("^(?<resourceURI>.*)\\/(?<scp>[^\\/]*)$")))===null||n===void 0?void 0:n.groups;if(s){const{resourceURI:a}=s;return a.replace(/^api:\/\//,"")}switch(e){case"email":case"openid":case"offline_access":case"profile":return"openid";default:return he.MicrosoftGraphID}}async getAccessToken(e,n){const s=e===void 0?he.MicrosoftGraphID:await he.resourceForScopes(Array.isArray(e)?e.join(" "):e);return s in this.oauth2||(this.oauth2[s]=le.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform})),this.oauth2[s].getAccessToken(e,n)}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$()}constructor(e){(0,b._)(this,"oauth2",void 0),(0,b._)(this,"configApi",void 0),(0,b._)(this,"environment",void 0),(0,b._)(this,"provider",void 0),(0,b._)(this,"oauthRequestApi",void 0),(0,b._)(this,"discoveryApi",void 0),(0,b._)(this,"scopeTransform",void 0);const{configApi:n,environment:s="development",provider:a=Ue,oauthRequestApi:l,discoveryApi:O,defaultScopes:A=["openid","offline_access","profile","email","User.Read"],scopeTransform:L=W=>W.concat("offline_access")}=e;this.configApi=n,this.environment=s,this.provider=a,this.oauthRequestApi=l,this.discoveryApi=O,this.scopeTransform=L,this.oauth2={[he.MicrosoftGraphID]:le.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform,defaultScopes:A})}}}(0,b._)(he,"MicrosoftGraphID","00000003-0000-0000-c000-000000000000");const Ve={id:"github",title:"GitHub",icon:()=>null};class Xe{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=Ve,oauthRequestApi:O,defaultScopes:A=["read:user"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:O,provider:l,environment:a,defaultScopes:A})}}const _e={id:"okta",title:"Okta",icon:()=>null},Se=new Set(["openid","profile","email","phone","address","groups","offline_access"]),j="okta.";class v{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=_e,oauthRequestApi:O,defaultScopes:A=["openid","email","profile","offline_access"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:O,provider:l,environment:a,defaultScopes:A,scopeTransform(L){return L.map(W=>Se.has(W)||W.startsWith(j)?W:`${j}${W}`)}})}}const B={id:"gitlab",title:"GitLab",icon:()=>null};class F{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=B,oauthRequestApi:O,defaultScopes:A=["read_user"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:O,provider:l,environment:a,defaultScopes:A})}}const lt={id:"onelogin",title:"onelogin",icon:()=>null},et=new Set(["openid","profile","email","phone","address","groups","offline_access"]),Dt="onelogin.";class qt{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=lt,oauthRequestApi:O}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:O,provider:l,environment:a,defaultScopes:["openid","email","profile","offline_access"],scopeTransform(A){return A.map(L=>et.has(L)||L.startsWith(Dt)?L:`${Dt}${L}`)}})}}const ee={id:"bitbucket",title:"Bitbucket",icon:()=>null};class pe{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=ee,oauthRequestApi:O,defaultScopes:A=["account"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:O,provider:l,environment:a,defaultScopes:A})}}const ve={id:"bitbucketServer",title:"Bitbucket Server",icon:()=>null};class me{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=ve,oauthRequestApi:O,defaultScopes:A=["PROJECT_ADMIN"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:O,provider:l,environment:a,defaultScopes:A})}}const ue={id:"atlassian",title:"Atlassian",icon:()=>null};class Yt{static create(e){const{configApi:n,discoveryApi:s,environment:a="development",provider:l=ue,oauthRequestApi:O}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:O,provider:l,environment:a})}}const Te={id:"vmwareCloudServices",title:"VMware Cloud",icon:()=>null};class Le{static create(e){const{configApi:n,discoveryApi:s,oauthRequestApi:a,environment:l="development",provider:O=Te,defaultScopes:A=["openid"]}=e;return le.create({configApi:n,discoveryApi:s,oauthRequestApi:a,provider:O,environment:l,defaultScopes:A})}}var zt=t(12935),oe=t(57405),ce=t(65461),$n=t(36017),xo=t(99303),we=t(39837);const Nn=(0,Ot.y)({id:"core.storage"});var Wn=t(70795),sn=t(16009);const Me=(0,Ot.y)({id:"core.oauthrequest"});var Co=t(96824),qe=t(70835),So=t(10288),kn=t.n(So),bo=t(52964),Qt=t(46195),tn=t(54241);const dn=Qt.z.lazy(()=>Qt.z.object({rule:Qt.z.string(),resourceType:Qt.z.string(),params:Qt.z.record(Qt.z.any()).optional()}).or(Qt.z.object({anyOf:Qt.z.array(dn).nonempty()})).or(Qt.z.object({allOf:Qt.z.array(dn).nonempty()})).or(Qt.z.object({not:dn}))),Kn=Qt.z.object({result:Qt.z.literal(tn.b.ALLOW).or(Qt.z.literal(tn.b.DENY))}),Oo=Qt.z.union([Qt.z.object({result:Qt.z.literal(tn.b.ALLOW).or(Qt.z.literal(tn.b.DENY))}),Qt.z.object({result:Qt.z.literal(tn.b.CONDITIONAL),pluginId:Qt.z.string(),resourceType:Qt.z.string(),conditions:dn})]),Po=(r,e)=>Qt.z.object({items:Qt.z.array(Qt.z.intersection(Qt.z.object({id:Qt.z.string()}),r)).refine(n=>n.length===e.size&&n.every(({id:s})=>e.has(s)),{message:"Items in response do not match request"})});class To{async authorize(e,n){return this.makeRequest(e,Kn,n)}async authorizeConditional(e,n){return this.makeRequest(e,Oo,n)}async makeRequest(e,n,s){if(!this.enabled)return e.map(J=>({result:tn.b.ALLOW}));const a={items:e.map(J=>({id:bo.A(),...J}))},l=await this.discovery.getBaseUrl("permission"),O=await kn()(`${l}/authorize`,{method:"POST",body:JSON.stringify(a),headers:{...this.getAuthorizationHeader(s==null?void 0:s.token),"content-type":"application/json"}});if(!O.ok)throw await qe.o.fromResponse(O);const A=await O.json(),W=Po(n,new Set(a.items.map(({id:J})=>J))).parse(A).items.reduce((J,st)=>(J[st.id]=st,J),{});return a.items.map(J=>W[J.id])}getAuthorizationHeader(e){return e?{Authorization:`Bearer ${e}`}:{}}constructor(e){(0,b._)(this,"enabled",void 0),(0,b._)(this,"discovery",void 0),this.discovery=e.discovery;var n;this.enabled=(n=e.config.getOptionalBoolean("permission.enabled"))!==null&&n!==void 0?n:!1}}class An{static create(e){const{config:n,discovery:s,identity:a}=e,l=new To({discovery:s,config:n});return new An(l,a)}async authorize(e){return(await this.permissionClient.authorize([e],await this.identityApi.getCredentials()))[0]}constructor(e,n){(0,b._)(this,"permissionClient",void 0),(0,b._)(this,"identityApi",void 0),this.permissionClient=e,this.identityApi=n}}const wo=[(0,zt.b)({api:oe.I,deps:{configApi:ce.U},factory:({configApi:r})=>V.compile(`${r.getString("backend.baseUrl")}/api/{{ pluginId }}`)}),(0,zt.b)({api:$n.k,deps:{},factory:()=>new nt}),(0,zt.b)({api:xo.c,deps:{},factory:()=>new ct}),(0,zt.b)({api:we.m,deps:{alertApi:$n.k},factory:({alertApi:r})=>{const e=new pt(r,new Pt);return it.forward(e,{hidden:!1}),e}}),(0,zt.b)({api:Nn,deps:{errorApi:we.m},factory:({errorApi:r})=>at.create({errorApi:r})}),(0,zt.b)({api:Wn.a,deps:{configApi:ce.U,identityApi:sn.K,discoveryApi:oe.I},factory:({configApi:r,identityApi:e,discoveryApi:n})=>ut({middleware:[gt.resolvePluginProtocol({discoveryApi:n}),gt.injectIdentityAuth({identityApi:e,config:r})]})}),(0,zt.b)({api:Me,deps:{},factory:()=>new z}),(0,zt.b)({api:Xt,deps:{discoveryApi:oe.I,oauthRequestApi:Me,configApi:ce.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>rn.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,zt.b)({api:Ft,deps:{discoveryApi:oe.I,oauthRequestApi:Me,configApi:ce.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>he.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,zt.b)({api:se,deps:{discoveryApi:oe.I,oauthRequestApi:Me,configApi:ce.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Xe.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["read:user"],environment:n.getOptionalString("auth.environment")})}),(0,zt.b)({api:ie,deps:{discoveryApi:oe.I,oauthRequestApi:Me,configApi:ce.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>v.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,zt.b)({api:_t,deps:{discoveryApi:oe.I,oauthRequestApi:Me,configApi:ce.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>F.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,zt.b)({api:Zt,deps:{discoveryApi:oe.I,oauthRequestApi:Me,configApi:ce.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>qt.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,zt.b)({api:Ce,deps:{discoveryApi:oe.I,oauthRequestApi:Me,configApi:ce.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>pe.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["account"],environment:n.getOptionalString("auth.environment")})}),(0,zt.b)({api:ke,deps:{discoveryApi:oe.I,oauthRequestApi:Me,configApi:ce.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>me.create({configApi:n,discoveryApi:r,oauthRequestApi:e,defaultScopes:["REPO_READ"]})}),(0,zt.b)({api:Ke,deps:{discoveryApi:oe.I,oauthRequestApi:Me,configApi:ce.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Yt.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,zt.b)({api:Je,deps:{discoveryApi:oe.I,oauthRequestApi:Me,configApi:ce.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:n})=>Le.create({configApi:n,discoveryApi:r,oauthRequestApi:e,environment:n.getOptionalString("auth.environment")})}),(0,zt.b)({api:Co.x,deps:{discovery:oe.I,identity:sn.K,config:ce.U},factory:({config:r,discovery:e,identity:n})=>An.create({config:r,discovery:e,identity:n})})];var xn=t(14451),Cn=t(27799),zn=t(94389),Ro=t(20947),Io=t(20473),Do=t(45917),Lo=t(39347),Mo=t(63309),jo=t(82451),Bo=t(85121),Hn=t(17400),Uo=t(42226),Fo=t(69550),Vn=t(52755),Gn=t(89350),$o=t(8911),Sn=t(33602),bn=t(48108),No=t(77225),Yn=t(55700),Qn=t(71865);const Zn={brokenImage:Cn.A,catalog:$o.A,scaffolder:Ro.A,techdocs:Io.A,search:Do.A,chat:Lo.A,dashboard:Mo.A,docs:jo.A,email:Bo.A,github:Uo.A,group:Sn.A,help:Fo.A,"kind:api":Hn.A,"kind:component":Gn.A,"kind:domain":xn.A,"kind:group":Sn.A,"kind:location":Vn.A,"kind:system":zn.A,"kind:user":bn.A,"kind:resource":Yn.A,"kind:template":Qn.A,user:bn.A,warning:No.A};var Wo=t(58733),ko=t(55288),Ko=t(91360),zo=t(50868),On=t(12285),Ho=t(65730);const Pn=(0,ko.A)({productionPrefix:"jss4-"});function Jn(r){const{children:e,theme:n,noCssBaseline:s=!1}=r,a=n.getTheme("v4"),l=n.getTheme("v5");let O;s||(O=(0,i.jsx)(Wo.Ay,{}));let A=(0,i.jsxs)(i.Fragment,{children:[O,e]});return a&&(A=(0,i.jsx)(Ko.Ay,{generateClassName:Pn,children:(0,i.jsx)(zo.A,{theme:a,children:A})})),l&&(A=(0,i.jsx)(On.A,{injectFirst:!0,children:(0,i.jsx)(Ho.A,{theme:l,children:A})})),A}const Xn={light:{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:{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 Lt=t(96324),fe=t(87081),h=t(33284),I=t(98392),U=t(75679);const N={wave:`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")`,wave2:`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")`,round:`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")`},Z={darkGrey:["#171717","#383838"],marineBlue:["#006D8F","#0049A1"],veryBlue:["#0027AF","#270094"],rubyRed:["#98002B","#8D1134"],toastyOrange:["#BE2200","#A41D00"],purpleSky:["#8912CA","#3E00EA"],eveningSea:["#00FFF2","#035355"],teal:["#005B4B"],pinkSea:["#C8077A","#C2297D"],greens:["#4BB8A5","#187656"]};function X(r){const{colors:e,shape:n,options:s}=r,l=`linear-gradient(90deg, ${(e.length===1?[e[0],e[0]]:e).join(", ")})`,O=`${n}, ${l}`;var A;const L=(A=s==null?void 0:s.fontColor)!==null&&A!==void 0?A:"#FFFFFF";return{colors:e,shape:n,backgroundImage:O,fontColor:L}}const dt={home:X({colors:Z.teal,shape:N.wave}),documentation:X({colors:Z.pinkSea,shape:N.wave2}),tool:X({colors:Z.purpleSky,shape:N.round}),service:X({colors:Z.marineBlue,shape:N.wave}),website:X({colors:Z.veryBlue,shape:N.wave}),library:X({colors:Z.rubyRed,shape:N.wave}),other:X({colors:Z.darkGrey,shape:N.wave}),app:X({colors:Z.toastyOrange,shape:N.wave}),apis:X({colors:Z.teal,shape:N.wave2}),card:X({colors:Z.greens,shape:N.wave})},St=16,jt='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif',$t="home",Gt={htmlFontSize:St,fontFamily:jt,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}};function Wt(r){const{palette:e,htmlFontSize:n=St,fontFamily:s=jt,defaultPageTheme:a=$t,pageTheme:l=dt,typography:O}=r;if(!l[a])throw new Error(`${a} is not defined in pageTheme.`);return Gt.htmlFontSize=n,Gt.fontFamily=s,{palette:e,typography:O!=null?O:Gt,page:l[a],getPageTheme:({themeId:A})=>{var L;return(L=l[A])!==null&&L!==void 0?L:l[a]}}}var Rt=t(67936);const de={MuiCssBaseline:{styleOverrides:r=>({html:{height:"100%",fontFamily:r.typography.fontFamily},body:{height:"100%",fontFamily:r.typography.fontFamily,overscrollBehaviorY:"none",fontSize:"0.875rem",lineHeight:1.43},a:{color:"inherit",textDecoration:"none"}})},MuiGrid:{defaultProps:{spacing:2}},MuiSwitch:{defaultProps:{color:"primary"}},MuiTableRow:{styleOverrides:{root:({theme:r})=>({"&:nth-of-type(odd)":{backgroundColor:r.palette.background.default}}),hover:{"&:hover":{cursor:"pointer"}},head:({theme:r})=>({"&:nth-of-type(odd)":{backgroundColor:r.palette.background.paper}})}},MuiTableCell:{styleOverrides:{root:({theme:r})=>({wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:r.spacing(3,2,3,2.5),borderBottom:0}),sizeSmall:({theme:r})=>({padding:r.spacing(1.5,2,1.5,2.5)}),head:({theme:r})=>({wordBreak:"break-word",overflow:"hidden",color:r.palette.textSubtle,fontWeight:"normal",lineHeight:"1"})}},MuiTabs:{styleOverrides:{root:{minHeight:24}}},MuiTab:{styleOverrides:{root:({theme:r})=>({color:r.palette.link,minHeight:24,textTransform:"initial",letterSpacing:"0.07em","&:hover":{color:(0,Rt.e$)(r.palette.link,.3),background:(0,Rt.a)(r.palette.link,.95)},[r.breakpoints.up("md")]:{minWidth:120,fontSize:r.typography.pxToRem(14),fontWeight:500}}),textColorPrimary:({theme:r})=>({color:r.palette.link})}},MuiTableSortLabel:{styleOverrides:{root:{color:"inherit","&:hover":{color:"inherit"},"&:focus":{color:"inherit"},"&.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:r})=>({marginRight:r.spacing(1),marginBottom:r.spacing(1)}),label:({theme:r})=>({lineHeight:r.spacing(2.5),fontWeight:r.typography.fontWeightMedium,fontSize:r.spacing(1.75)}),labelSmall:({theme:r})=>({fontSize:r.spacing(1.5)}),deleteIcon:({theme:r})=>({width:r.spacing(3),height:r.spacing(3),margin:r.spacing(0,.75,0,-.75)}),deleteIconSmall:({theme:r})=>({width:r.spacing(2),height:r.spacing(2),margin:r.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"}}}},ye=r=>(...e)=>{const n=e.length===0?[1]:e,s=(a,l)=>typeof a=="string"?a:l*a;return n.map(a=>{const l=s(a,r);return typeof l=="number"?`${l}px`:l}).join(" ")};function Jt(r,e){if(!e||typeof e=="string")return;const n=typeof e=="function"?e(r):e;if(n)return{"@global":n}}function kt(r,e){if(!(!e||typeof e=="string")){if(typeof e=="object"){const n={...r},s=r.spacing(1);return typeof s=="number"&&(n.spacing=ye(s)),Object.fromEntries(Object.entries(e).map(([a,l])=>typeof l=="function"?[a,l({theme:n})]:[a,l]))}return e}}const ae=/^&.Mui-([\w-]+)$/;function Ee(r){let e=r;if(!r||typeof r!="object")return e;for(const n of Object.keys(r)){const s=r[n];if(!(!s||typeof s!="object"))for(const a of Object.keys(s)){const l=a,O=l.match(ae);if(O){const[,A]=O,{[l]:L,...W}=s;L&&(e={...e,[n]:W,[A]:L})}}}return e}function Mt(r,e={}){const n={},s={};for(const a of Object.keys(e)){const l=e[a];l&&("styleOverrides"in l&&(a==="MuiCssBaseline"?n[a]=Jt(r,l.styleOverrides):n[a]=Ee(kt(r,l.styleOverrides))),"defaultProps"in l&&(s[a]=l.defaultProps))}return{overrides:n,props:s}}var Ht=new WeakMap;class te{getTheme(e){return(0,Lt._)(this,Ht).get(e)}constructor(e,n){(0,fe._)(this,Ht,{writable:!0,value:new Map}),(0,h._)(this,Ht,new Map),e&&(0,Lt._)(this,Ht).set("v4",e),n&&(0,Lt._)(this,Ht).set("v5",n)}}function Ae(r){const e=Wt(r),n={...de,...r.components},s=(0,U.A)({...e,components:n}),a=Mt(s,n),l={...(0,I.A)(e),...a};return new te(l,s)}function je(r){const e=adaptV4Theme(r),n=createTheme(r);return new te(n,createV5Theme(e))}const Fe={light:Ae({palette:Xn.light}),dark:Ae({palette:Xn.dark})};var ge=t(75962),$e=t(87145);const re=[{id:"light",title:"Light Theme",variant:"light",icon:(0,i.jsx)($e.A,{}),Provider:({children:r})=>(0,i.jsx)(Jn,{theme:Fe.light,children:r})},{id:"dark",title:"Dark Theme",variant:"dark",icon:(0,i.jsx)(ge.A,{}),Provider:({children:r})=>(0,i.jsx)(Jn,{theme:Fe.dark,children:r})}];var Tn=t(91638),Vo=t(39067),Go=t.n(Vo);class fs{get(e){for(const n of this.holders){const s=n.get(e);if(s)return s}}constructor(...e){(0,b._)(this,"holders",void 0),this.holders=e}}var _n=t(43836),qn=t(10602);const fr=(0,_n.tK)("api-context"),Yo=r=>{var e;const{apis:n,children:s}=r,a=(e=(0,u.useContext)(fr))===null||e===void 0?void 0:e.atVersion(1),l=a?new fs(n,a):n;return(0,i.jsx)(fr.Provider,{value:(0,qn.B)({1:l}),children:s})};Yo.propTypes={apis:Go().shape({get:Go().func.isRequired}).isRequired,children:Go().node};var gs=t(46108),ps=t.n(gs),vs=t(48875),ms=t.n(vs);const ys=/^[a-z][a-z0-9]*(?:[-_][a-z][a-z0-9]*)*$/i;function wn(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function Qo(r){if(r===null)return"null";if(Array.isArray(r))return"array";const e=typeof r;return e==="number"&&isNaN(r)?"nan":e==="string"&&r===""?"empty-string":e}const Ne={type(r,e,n,s){return`Invalid type in config for key '${r}' in '${e}', got ${n}, wanted ${s}`},missing(r){return`Missing required config value at '${r}'`},convert(r,e,n){return`Unable to convert config value for key '${r}' in '${e}' to a ${n}`}};class un{static fromConfigs(e){return e.length===0?new un(void 0):e.reduce((n,{data:s,context:a,filteredKeys:l,deprecatedKeys:O})=>{const A=new un(s,a,n);if(A.filteredKeys=l,O)for(const{key:L,description:W}of O)console.warn(`The configuration key '${L}' of ${a} is deprecated and may be removed soon. ${W||""}`);return A},void 0)}has(e){var n;if(this.readValue(e)!==void 0)return!0;var a;return(a=(n=this.fallback)===null||n===void 0?void 0:n.has(e))!==null&&a!==void 0?a:!1}keys(){var e;const n=this.data?Object.keys(this.data):[];var s;const a=(s=(e=this.fallback)===null||e===void 0?void 0:e.keys())!==null&&s!==void 0?s:[];return[...new Set([...n,...a])]}get(e){const n=this.getOptional(e);if(n===void 0)throw new Error(Ne.missing(this.fullKey(e!=null?e:"")));return n}getOptional(e){var n;const s=ps()(this.readValue(e)),a=(n=this.fallback)===null||n===void 0?void 0:n.getOptional(e);if(s===void 0){if(0)var l;return a}else if(a===void 0)return s;return ms()({},{value:a},{value:s},(O,A)=>!wn(A)||!wn(O)?A:void 0).value}getConfig(e){const n=this.getOptionalConfig(e);if(n===void 0)throw new Error(Ne.missing(this.fullKey(e)));return n}getOptionalConfig(e){var n;const s=this.readValue(e),a=(n=this.fallback)===null||n===void 0?void 0:n.getOptionalConfig(e);if(wn(s))return this.copy(s,e,a);if(s!==void 0)throw new TypeError(Ne.type(this.fullKey(e),this.context,Qo(s),"object"));return a}getConfigArray(e){const n=this.getOptionalConfigArray(e);if(n===void 0)throw new Error(Ne.missing(this.fullKey(e)));return n}getOptionalConfigArray(e){const n=this.readConfigValue(e,a=>{if(!Array.isArray(a))return{expected:"object-array"};for(const[l,O]of a.entries())if(!wn(O))return{expected:"object-array",value:O,key:`${e}[${l}]`};return!0});if(!n){if(0)var s;return}return n.map((a,l)=>this.copy(a,`${e}[${l}]`))}getNumber(e){const n=this.getOptionalNumber(e);if(n===void 0)throw new Error(Ne.missing(this.fullKey(e)));return n}getOptionalNumber(e){const n=this.readConfigValue(e,a=>typeof a=="number"||typeof a=="string"||{expected:"number"});if(typeof n=="number"||n===void 0)return n;const s=Number(n);if(!Number.isFinite(s))throw new Error(Ne.convert(this.fullKey(e),this.context,"number"));return s}getBoolean(e){const n=this.getOptionalBoolean(e);if(n===void 0)throw new Error(Ne.missing(this.fullKey(e)));return n}getOptionalBoolean(e){const n=this.readConfigValue(e,a=>typeof a=="boolean"||typeof a=="number"||typeof a=="string"||{expected:"boolean"});if(typeof n=="boolean"||n===void 0)return n;const s=String(n).trim();if(/^(?:y|yes|true|1|on)$/i.test(s))return!0;if(/^(?:n|no|false|0|off)$/i.test(s))return!1;throw new Error(Ne.convert(this.fullKey(e),this.context,"boolean"))}getString(e){const n=this.getOptionalString(e);if(n===void 0)throw new Error(Ne.missing(this.fullKey(e)));return n}getOptionalString(e){return this.readConfigValue(e,n=>typeof n=="string"&&n!==""||{expected:"string"})}getStringArray(e){const n=this.getOptionalStringArray(e);if(n===void 0)throw new Error(Ne.missing(this.fullKey(e)));return n}getOptionalStringArray(e){return this.readConfigValue(e,n=>{if(!Array.isArray(n))return{expected:"string-array"};for(const[s,a]of n.entries())if(typeof a!="string"||a==="")return{expected:"string-array",value:a,key:`${e}[${s}]`};return!0})}fullKey(e){return`${this.prefix}${this.prefix?".":""}${e}`}copy(e,n,s){const a=new un(e,this.context,s,this.fullKey(n));return a.filteredKeys=this.filteredKeys,a}readConfigValue(e,n){const s=this.readValue(e);if(s===void 0){var a;if(0)var l;return(a=this.fallback)===null||a===void 0?void 0:a.readConfigValue(e,n)}const O=n(s);if(O!==!0){const{key:A=e,value:L=s,expected:W}=O;throw new TypeError(Ne.type(this.fullKey(A),this.context,Qo(L),W))}return s}readValue(e){const n=e?e.split("."):[];for(const a of n)if(!ys.test(a))throw new TypeError(`Invalid config key '${e}'`);if(this.data===void 0)return;let s=this.data;for(const[a,l]of n.entries())if(wn(s))s=s[l];else if(s!==void 0){const O=this.fullKey(n.slice(0,a).join("."));throw new TypeError(Ne.type(O,this.context,Qo(s),"object"))}return s}constructor(e,n="mock-config",s,a=""){(0,b._)(this,"data",void 0),(0,b._)(this,"context",void 0),(0,b._)(this,"fallback",void 0),(0,b._)(this,"prefix",void 0),(0,b._)(this,"filteredKeys",void 0),(0,b._)(this,"notifiedFilteredKeys",void 0),this.data=e,this.context=n,this.fallback=s,this.prefix=a,this.notifiedFilteredKeys=new Set}}const Rn="theme";class to{static createWithStorage(e){const n=new to(e);if(!window.localStorage)return n;var s;const a=(s=window.localStorage.getItem(Rn))!==null&&s!==void 0?s:void 0;return n.setActiveThemeId(a),n.activeThemeId$().subscribe(l=>{l?window.localStorage.setItem(Rn,l):window.localStorage.removeItem(Rn)}),window.addEventListener("storage",l=>{if(l.key===Rn){var O;const A=(O=localStorage.getItem(Rn))!==null&&O!==void 0?O:void 0;n.setActiveThemeId(A)}}),n}getInstalledThemes(){return this.themes.slice()}activeThemeId$(){return this.subject}getActiveThemeId(){return this.activeThemeId}setActiveThemeId(e){this.activeThemeId=e,this.subject.next(e)}constructor(e){(0,b._)(this,"themes",void 0),(0,b._)(this,"activeThemeId",void 0),(0,b._)(this,"subject",void 0),this.themes=e,this.subject=new _(void 0)}}var hn=t(63636);function gr(r){if(r.length<3)throw new Error(`The '${r}' feature flag must have a minimum length of three characters.`);if(r.length>150)throw new Error(`The '${r}' feature flag must not exceed 150 characters.`);if(!r.match(/^[a-z]+[a-z0-9-]+$/))throw new Error(`The '${r}' feature flag must start with a lowercase letter and only contain lowercase letters, numbers and hyphens. Examples: feature-flag-one, alpha, release-2020`)}class Es{registerFlag(e){gr(e.name),this.registeredFeatureFlags.push(e)}getRegisteredFlags(){return this.registeredFeatureFlags.slice()}isActive(e){return this.flags||(this.flags=this.load()),this.flags.get(e)===hn.S.Active}save(e){this.flags||(this.flags=this.load()),e.merge||this.flags.clear();for(const[s,a]of Object.entries(e.states))this.flags.set(s,a);const n=Array.from(this.flags.entries()).filter(([,s])=>s===hn.S.Active);window.localStorage.setItem("featureFlags",JSON.stringify(Object.fromEntries(n)))}load(){try{const e=window.localStorage.getItem("featureFlags");if(!e)return new Map;const n=JSON.parse(e);if(typeof n!="object"||n===null||Array.isArray(n))return new Map;const s=Object.entries(n).filter(([a,l])=>(gr(a),l===hn.S.Active));return new Map(s)}catch{return new Map}}constructor(){(0,b._)(this,"registeredFeatureFlags",[]),(0,b._)(this,"flags",void 0)}}const eo=(0,Ot.y)({id:"core.apptheme"}),pr=(0,Ot.y)({id:"core.applanguage"});var As=t(56038);class Zo{static validateFactories(e,n){for(const s of n){const a=[s],l=new Set;for(;a.length;){const O=a.shift(),A=e.get(O);if(A)for(const L of Object.values(A.deps)){if(L.id===s.id)throw new Error(`Circular dependency of api factory for ${s}`);l.has(L)||(l.add(L),a.push(L))}}}}get(e){return this.load(e)}load(e,n=[]){const s=this.apis.get(e.id);if(s)return s;const a=this.factories.get(e);if(!a)return;if(n.includes(a.api))throw new Error(`Circular dependency of api factory for ${a.api}`);const l=this.loadDeps(e,a.deps,[...n,a.api]),O=a.factory(l);return this.apis.set(e.id,O),O}loadDeps(e,n,s){const a={};for(const l in n)if(n.hasOwnProperty(l)){const O=n[l],A=this.load(O,s);if(!A)throw new Error(`No API factory available for dependency ${O} of dependent ${e}`);a[l]=A}return a}constructor(e){(0,b._)(this,"factories",void 0),(0,b._)(this,"apis",void 0),this.factories=e,this.apis=new Map}}var Jo;(function(r){r[r.default=10]="default",r[r.app=50]="app",r[r.static=100]="static"})(Jo||(Jo={}));class xs{register(e,n){const s=Jo[e],a=this.factories.get(n.api.id);return a&&a.priority>=s?!1:(this.factories.set(n.api.id,{priority:s,factory:n}),!0)}get(e){const n=this.factories.get(e.id);if(n)return n.factory}getAllApis(){const e=new Set;for(const{factory:n}of this.factories.values())e.add(n.api);return e}constructor(){(0,b._)(this,"factories",new Map)}}function Cs(r){const e={};for(const s in r.collectors)r.collectors.hasOwnProperty(s)&&(e[s]=r.collectors[s]());const n=[{node:u.Children.toArray(r.root),parent:void 0,contexts:{}}];for(;n.length!==0;){const{node:s,parent:a,contexts:l}=n.shift();u.Children.forEach(s,O=>{if(!(0,u.isValidElement)(O))return;const A={};for(const L in e)if(e.hasOwnProperty(L)){const W=e[L];A[L]=W.visit(W.accumulator,O,a,l[L])}for(const L of r.discoverers){const W=L(O);W&&n.push({node:W,parent:O,contexts:A})}})}return Object.fromEntries(Object.entries(e).map(([s,a])=>[s,a.accumulator]))}function no(r,e){return()=>({accumulator:r(),visit:e})}function Ss(r){var e;return(e=r.props)===null||e===void 0?void 0:e.children}function bs(r){var e,n;if(!((e=r.props)===null||e===void 0)&&e.path&&(!((n=r.props)===null||n===void 0)&&n.element)){var s;return(s=r.props)===null||s===void 0?void 0:s.element}}var Re=t(19402);const Os=no(()=>new Set,(r,e)=>{const n=(0,Re.E)(e,"core.plugin");n&&r.add(n)});var In=t(72427);const vr=r=>{const{children:e}=r,n=(0,In.gf)(hn.B),s="with"in r?n.isActive(r.with):!n.isActive(r.without);return(0,i.jsx)(i.Fragment,{children:s?e:null})};(0,Re.h)(vr,"core.featureFlagged",!0);const oo={caseSensitive:!1,path:"*",element:"match-all",routeRefs:new Set,plugins:new Set};function ro(r){const e=r;if(e!=null&&e.type){var n,s;return(s=(n=e.type.displayName)!==null&&n!==void 0?n:e.type.name)!==null&&s!==void 0?s:String(e.type)}return String(e)}const mr=r=>{const e=new Set;return r&&e.add(r),e};function yr(r,e=new Array){return u.Children.forEach(r,n=>{if(!(0,u.isValidElement)(n))return;const s=(0,Re.E)(n,"core.mountPoint");if(s){const a=(0,Re.E)(n,"core.plugin");e.push({routeRef:s,plugin:a})}yr(n.props.children,e)}),e}const Ps=no(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,s)=>{var a,l;if(s!=null&&s.isElementAncestor)return s;if((n==null?void 0:n.props.element)===e)return{...s,isElementAncestor:!0};const O=(a=e.props)===null||a===void 0?void 0:a.path,A=(0,Re.E)(e,"core.mountPoint");if(A&&O)throw new Error(`Path property may not be set directly on a routable extension "${ro(e)}"`);var L;const W=(L=s==null||(l=s.obj)===null||l===void 0?void 0:l.children)!==null&&L!==void 0?L:r.objects;if(O!==void 0){if(typeof O!="string")throw new Error(`Element path must be a string at "${ro(e)}"`);const bt=O.startsWith("/")?O.slice(1):O,Kt=e.props.element;if((0,Re.E)(e,"core.gatherMountPoints")){var J;if(Kt)throw new Error(`Mount point gatherers may not have an element prop "${ro(e)}"`);const Vt={path:bt,element:"gathered",routeRefs:new Set,caseSensitive:!!(!((J=e.props)===null||J===void 0)&&J.caseSensitive),children:[oo],plugins:new Set};return W.push(Vt),{obj:Vt,gatherPath:bt,routeRef:s==null?void 0:s.routeRef,gatherRouteRef:s==null?void 0:s.routeRef}}if(Kt){var st;const[Vt,...ne]=yr(Kt);if(ne.length>0)throw new Error(`Route element with path "${O}" may not contain multiple routable extensions`);if(!Vt)return s;const{routeRef:xe,plugin:Ze}=Vt,Fn={path:bt,element:"mounted",routeRefs:new Set([xe]),caseSensitive:!!(!((st=e.props)===null||st===void 0)&&st.caseSensitive),children:[oo],plugins:mr(Ze)};return W.push(Fn),r.paths.set(xe,bt),r.parents.set(xe,s==null?void 0:s.routeRef),{obj:Fn,routeRef:xe!=null?xe:s==null?void 0:s.routeRef,gatherPath:bt,gatherRouteRef:s==null?void 0:s.gatherRouteRef}}}if(A){var ht;if((s==null?void 0:s.gatherPath)===void 0)throw new Error(`Routable extension "${ro(e)}" with mount point "${A}" must be assigned a path`);s==null||(ht=s.obj)===null||ht===void 0||ht.routeRefs.add(A);const bt=(0,Re.E)(e,"core.plugin");if(bt){var Et;s==null||(Et=s.obj)===null||Et===void 0||Et.plugins.add(bt)}return r.paths.set(A,s.gatherPath),r.parents.set(A,s==null?void 0:s.gatherRouteRef),{...s,routeRef:A}}return s}),Ts=no(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,n,s)=>{var a,l,O;if((n==null?void 0:n.props.element)===e)return s;let A=s==null?void 0:s.obj,L=s==null?void 0:s.routeRef,W=s==null?void 0:s.sticky;const J=(a=e.props)===null||a===void 0?void 0:a.path;var st;const ht=(st=A==null?void 0:A.children)!==null&&st!==void 0?st:r.objects,Et=!!(!((l=e.props)===null||l===void 0)&&l.caseSensitive);let bt=s==null?void 0:s.path;if((0,Re.E)(e,"core.gatherMountPoints")){if(!J)throw new Error("Mount point gatherer must have a path");bt=J}const Kt=(O=e.props)===null||O===void 0?void 0:O.element;let Vt=(0,Re.E)(e,"core.mountPoint");if(!Vt&&(0,u.isValidElement)(Kt)&&(Vt=(0,Re.E)(Kt,"core.mountPoint")),Vt){let Ze=J;if(bt&&(Ze?bt=void 0:Ze=bt),!Ze)throw new Error("Mounted routable extension must have a path");r.paths.set(Vt,Ze),L&&W?(r.parents.set(Vt,L),J&&(L=Vt,W=!1)):(r.parents.set(Vt,L),L=Vt),J?(A={caseSensitive:Et,path:J,element:"mounted",routeRefs:new Set([Vt]),children:[oo],plugins:mr((0,Re.E)(e.props.element,"core.plugin"))},ht.push(A)):A==null||A.routeRefs.add(Vt)}if((0,Re.E)(e,"core.gatherMountPoints")&&(W=!0),(0,Re.E)(e,"core.gatherMountPoints")){if(!J)throw new Error("Mount point gatherer must have a path");if(!Vt){var xe;A={caseSensitive:Et,path:J,element:"gathered",routeRefs:new Set,children:[oo],plugins:(s==null||(xe=s.obj)===null||xe===void 0?void 0:xe.plugins)||new Set},ht.push(A)}}return{obj:A,path:bt,routeRef:L,sticky:W}}),ws=no(()=>new Set,(r,e)=>{if(e.type===vr){const n=e.props;r.add("with"in n?n.with:n.without)}});var Dn=t(74808),Rs=t(63544);const Ln=(0,Rs.Q)("route-ref-type",()=>Symbol("route-ref-type"));function Er(r){return r[Ln]==="absolute"}function Ar(r){return r[Ln]==="sub"}function Is(r){return r[Ln]==="external"}function so(...r){const e=r.join("/").replace(/\/\/+/g,"/");return e!=="/"&&e.endsWith("/")?e.slice(0,-1):e}var Ds=t(46155),Ls=t.n(Ds);function Ms(r,e,n){let s,a="";if(Er(r))s=r;else if(Ar(r))s=r.parent,a=r.path;else if(Is(r)){const A=n.get(r);if(!A)return[void 0,""];if(Er(A))s=A;else if(Ar(A))s=A.parent,a=A.path;else throw new Error(`ExternalRouteRef was bound to invalid target, ${A}`)}else throw r[Ln]?new Error(`Unknown or invalid route ref type, ${r[Ln]}`):new Error(`Unknown object passed to useRouteRef, got ${r}`);if(!s)return[void 0,""];const l=e.get(s);if(l===void 0)return[void 0,""];const O=so(l,a);return[s,O]}function js(r,e,n,s,a){var l;const O=(l=(0,Dn.ue)(a,e))!==null&&l!==void 0?l:[],A=Array();let L=-1;for(let st=r;st&&(L=O.findIndex(ht=>ht.route.routeRefs.has(st)),L===-1);st=s.get(st))A.unshift(st);A.length===0&&(L-=1);const W=L===-1?"":O[L].pathname,J=A.slice(0,-1).map(st=>{const ht=n.get(st);if(ht===void 0)throw new Error(`No path for ${st}`);if(ht.includes(":"))throw new Error(`Cannot route to ${r} with parent ${st} as it has parameters`);return ht});return`${so(W,...J)}/`}class Bs{resolve(e,n){const[s,a]=Ms(e,this.routePaths,this.routeBindings);if(!s)return;let l;typeof n=="string"?l=this.trimPath(n):n.pathname?l={...n,pathname:this.trimPath(n.pathname)}:l=n;const O=this.appBasePath+js(s,l,this.routePaths,this.routeParents,this.routeObjects);return(...[L])=>{const W=L&&Ls()(L,J=>typeof J=="string"?J.replaceAll(/[&?#;\/]/g,st=>encodeURIComponent(st)):J);return so(O,(0,Dn.tW)(a,W))}}trimPath(e){return e&&(e.startsWith(this.appBasePath)?e.slice(this.appBasePath.length):e)}constructor(e,n,s,a,l){(0,b._)(this,"routePaths",void 0),(0,b._)(this,"routeParents",void 0),(0,b._)(this,"routeObjects",void 0),(0,b._)(this,"routeBindings",void 0),(0,b._)(this,"appBasePath",void 0),this.routePaths=e,this.routeParents=n,this.routeObjects=s,this.routeBindings=a,this.appBasePath=l}}const Us=(0,_n.tK)("routing-context"),Fs=({routePaths:r,routeParents:e,routeObjects:n,routeBindings:s,basePath:a="",children:l})=>{const O=new Bs(r,e,n,s,a),A=(0,qn.B)({1:O});return(0,i.jsx)(Us.Provider,{value:A,children:l})};function $s(r,e){const n=new Set(e.values());n.delete(void 0);for(const s of e.keys()){if(n.has(s))continue;let a=s,l="";for(;a;){const A=r.get(a);if(A===void 0)throw new Error(`No path for ${a}`);l=so(A,l),a=e.get(a)}const O=l.match(/:(\w+)/g);if(O){for(let A=0;A<O.length;A++)for(let L=A+1;L<O.length;L++)if(O[L]===O[A])throw new Error(`Parameter ${O[L]} is duplicated in path ${l}`)}}}function Ns(r,e){for(const n of e)if(n.externalRoutes){for(const[s,a]of Object.entries(n.externalRoutes))if(!a.optional&&!r.has(a))throw new Error(`External route '${s}' of the '${n.getId()}' plugin must be bound to a target route. See https://backstage.io/link?bind-routes for details.`)}}const Ws=(0,_n.tK)("app-context"),ks=({appContext:r,children:e})=>{const n=(0,qn.B)({1:r});return(0,i.jsx)(Ws.Provider,{value:n,children:e})};function xr(r){return new Error(`Tried to access IdentityApi ${r} before app was loaded`)}function Xo(r){console.warn(`WARNING: Call to ${r} is deprecated and will break in the future`)}class Ks{setTarget(e,n){this.target=e,this.signOutTargetUrl=n.signOutTargetUrl,this.resolveTarget(e)}getUserId(){if(!this.target)throw xr("getUserId");if(!this.target.getUserId)throw new Error("IdentityApi does not implement getUserId");return Xo("getUserId"),this.target.getUserId()}getProfile(){if(!this.target)throw xr("getProfile");if(!this.target.getProfile)throw new Error("IdentityApi does not implement getProfile");return Xo("getProfile"),this.target.getProfile()}async getProfileInfo(){return this.waitForTarget.then(e=>e.getProfileInfo())}async getBackstageIdentity(){const e=await this.waitForTarget.then(n=>n.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 new Error("IdentityApi does not implement getIdToken");return Xo("getIdToken"),e.getIdToken()})}async signOut(){await this.waitForTarget.then(e=>e.signOut()),window.location.href=this.signOutTargetUrl}constructor(){(0,b._)(this,"target",void 0),(0,b._)(this,"waitForTarget",void 0),(0,b._)(this,"resolveTarget",()=>{}),(0,b._)(this,"signOutTargetUrl","/"),this.waitForTarget=new Promise(e=>{this.resolveTarget=e})}}var zs=t(45145);function Hs(r,e,n){if(r!==void 0){const a=n.find(l=>l.id===r);if(a)return a}if(e){const a=n.find(l=>l.variant==="dark");if(a)return a}const s=n.find(a=>a.variant==="light");return s||n[0]}const Vs=()=>{const r=(0,u.useMemo)(()=>window.matchMedia("(prefers-color-scheme: dark)"),[]),[e,n]=(0,u.useState)(r.matches);return(0,u.useEffect)(()=>{const s=a=>{n(a.matches)};return r.addListener(s),()=>{r.removeListener(s)}},[r]),e};function Cr({children:r}){const e=(0,In.gf)(eo),n=(0,zs.A)(e.activeThemeId$(),e.getActiveThemeId()),s=window.matchMedia?Vs():!1,a=Hs(n,s,e.getInstalledThemes());if(!a)throw new Error("App has no themes");return(0,i.jsx)(a.Provider,{children:r})}const Sr=async()=>Gs();function Gs(r="__APP_INJECTED_RUNTIME_CONFIG__"){const e=[{context:"app-config.yaml",data:{app:{title:"Techdocs Preview App",baseUrl:"http://localhost:3000"},backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}}}];if(!e)throw new Error("No static configuration provided");if(!Array.isArray(e))throw new Error("Static configuration has invalid format");const n=e.slice();if(r!=="__app_injected_runtime_config__".toLocaleUpperCase("en-US"))try{const a=JSON.parse(r);Array.isArray(a)?n.push(...a):n.push({data:a,context:"env"})}catch(a){throw new Error(`Failed to load runtime configuration, ${a}`)}const s=window.__APP_CONFIG__;return s&&n.push({context:"window",data:s}),n}class Ys{add(e,n){return this.apis.push([e.id,n]),n}build(){return new fn(new Map(this.apis))}constructor(){(0,b._)(this,"apis",[])}}class fn{static builder(){return new Ys}static from(e){return new fn(new Map(e.map(([n,s])=>[n.id,s])))}static with(e,n){return new fn(new Map([[e.id,n]]))}with(e,n){return new fn(new Map([...this.apis,[e.id,n]]))}get(e){return this.apis.get(e.id)}constructor(e){(0,b._)(this,"apis",void 0),this.apis=e}}function Qs(r){const e=new Map;return r&&r({bind:(s,a)=>{for(const[l,O]of Object.entries(a)){const A=s[l];if(!A)throw new Error(`Key ${l} is not an existing external route`);if(!O&&!A.optional)throw new Error(`External route ${l} is required but was undefined`);O&&e.set(A,O)}}}),e}function Mn(){const[r]=(0,y.AV)((0,i.jsx)(y.qh,{index:!0,element:(0,i.jsx)("div",{})}));return!r.index}const br=(0,u.createContext)(void 0);var Or=t(82266),Pr=t(93368),Zs=t(25862);const Js=(r,e)=>{try{const n=(0,Dn.ue)(e,{pathname:r}),s=n==null?void 0:n.filter(L=>{var W;return(L==null||(W=L.route.routeRefs)===null||W===void 0?void 0:W.size)>0}).pop(),a=s==null?void 0:s.route;if(!a||a.path===""&&r!=="/")return;let l;a.routeRefs.size===1&&(l=a.routeRefs.values().next().value);let O;a.plugins.size===1&&(O=a.plugins.values().next().value);const A=Object.entries((s==null?void 0:s.params)||{}).reduce((L,[W,J])=>(J!==void 0&&W!=="*"&&(L[W]=J),L),{});return{extension:"App",pluginId:(O==null?void 0:O.getId())||"root",...l?{routeRef:l.id}:{},_routeNodeType:a.element,params:A}}catch{return}},Xs=({pathname:r,search:e,hash:n,attributes:s})=>{const a=(0,Pr.s)();return(0,u.useEffect)(()=>{a.captureEvent("navigate",`${r}${e}${n}`,{attributes:s})},[a,r,e,n,s]),null},io=({routeObjects:r})=>{const{pathname:e,search:n,hash:s}=(0,y.zy)(),{params:a,...l}=Js(e,r)||{params:{}};return(0,i.jsx)(Zs.Ig,{attributes:l,children:(0,i.jsx)(Xs,{pathname:e,search:n,hash:s,attributes:a})})};function _s(r){return Mn()?_o(r):""}function _o(r){var e;let{pathname:n}=new URL((e=r.getOptionalString("app.baseUrl"))!==null&&e!==void 0?e:"/","http://sample.dev");return n=n.replace(/\/*$/,""),n}function Tr({component:r,appIdentityProxy:e,children:n}){const[s,a]=(0,u.useState)(),l=(0,In.gf)(ce.U),O=_o(l);return s?(e.setTarget(s,{signOutTargetUrl:O||"/"}),(0,i.jsx)(i.Fragment,{children:n})):(0,i.jsx)(r,{onSignInSuccess:a})}function wr(r){const{Router:e,SignInPage:n}=(0,Or.n)().getComponents(),s=(0,In.gf)(ce.U),a=_o(s),l=`${a}/*`,O=(0,u.useContext)(br);if(!O)throw new Error("AppRouter must be rendered within the AppProvider");const{routeObjects:A,appIdentityProxy:L}=O;return n?Mn()?(0,i.jsxs)(e,{children:[(0,i.jsx)(io,{routeObjects:A}),(0,i.jsx)(Tr,{component:n,appIdentityProxy:L,children:(0,i.jsx)(y.BV,{children:(0,i.jsx)(y.qh,{path:l,element:(0,i.jsx)(i.Fragment,{children:r.children})})})})]}):(0,i.jsxs)(e,{basename:a,children:[(0,i.jsx)(io,{routeObjects:A}),(0,i.jsx)(Tr,{component:n,appIdentityProxy:L,children:r.children})]}):(L.setTarget({getUserId:()=>"guest",getIdToken:async()=>{},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:a||"/"}),Mn()?(0,i.jsxs)(e,{children:[(0,i.jsx)(io,{routeObjects:A}),(0,i.jsx)(y.BV,{children:(0,i.jsx)(y.qh,{path:l,element:(0,i.jsx)(i.Fragment,{children:r.children})})})]}):(0,i.jsxs)(e,{basename:a,children:[(0,i.jsx)(io,{routeObjects:A}),r.children]}))}(0,Re.h)(wr,"core.type","AppRouter");const jn="language",Ye="en";var Bn=new WeakMap,gn=new WeakMap,ao=new WeakMap;class lo{static create(e){var n;const s=(n=e==null?void 0:e.availableLanguages)!==null&&n!==void 0?n:[Ye];if(s.length!==new Set(s).size)throw new Error(`Supported languages may not contain duplicates, got '${s.join("', '")}'`);if(!s.includes(Ye))throw new Error(`Supported languages must include '${Ye}'`);var a;const l=(a=e==null?void 0:e.defaultLanguage)!==null&&a!==void 0?a:Ye;if(!s.includes(l))throw new Error(`Initial language must be one of the supported languages, got '${l}'`);return new lo(s,l)}static createWithStorage(e){const n=lo.create(e);if(!window.localStorage)return n;const s=window.localStorage.getItem(jn),{languages:a}=n.getAvailableLanguages();return s&&a.includes(s)&&n.setLanguage(s),n.language$().subscribe(({language:l})=>{l!==window.localStorage.getItem(jn)&&window.localStorage.setItem(jn,l)}),window.addEventListener("storage",l=>{if(l.key===jn){var O;const A=(O=localStorage.getItem(jn))!==null&&O!==void 0?O:void 0;A&&n.setLanguage(A)}}),n}getAvailableLanguages(){return{languages:(0,Lt._)(this,Bn).slice()}}setLanguage(e){const n=e!=null?e:Ye;if(n!==(0,Lt._)(this,gn)){if(n&&!(0,Lt._)(this,Bn).includes(n))throw new Error(`Failed to change language to '${n}', available languages are '${(0,Lt._)(this,Bn).join("', '")}'`);(0,h._)(this,gn,n),(0,Lt._)(this,ao).next({language:n})}}getLanguage(){return{language:(0,Lt._)(this,gn)}}language$(){return(0,Lt._)(this,ao)}constructor(e,n){(0,fe._)(this,Bn,{writable:!0,value:void 0}),(0,fe._)(this,gn,{writable:!0,value:void 0}),(0,fe._)(this,ao,{writable:!0,value:void 0}),(0,h._)(this,Bn,e),(0,h._)(this,gn,n),(0,h._)(this,ao,new _({language:(0,Lt._)(this,gn)}))}}var We=t(75944),an=t(91196),qs=t(47304),ti=t(99833),Rr=t(93184);function Ir(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==null))}var pn=new WeakMap,co=new WeakMap,vn=new WeakMap,uo=new WeakSet;class ei{addTranslationResource(e){const n=(0,ti.Y)(e);for(const s of n.resources){const a=(0,We._)(this,uo,qo).call(this,s.language,n.id);(0,Lt._)(this,vn).has(a)||(0,Lt._)(this,vn).set(a,s.loader)}}needsLoading(e,n){const s=(0,We._)(this,uo,qo).call(this,e,n);return(0,Lt._)(this,vn).get(s)?!(0,Lt._)(this,pn).has(s):!1}async load(e,n){const s=(0,We._)(this,uo,qo).call(this,e,n),a=(0,Lt._)(this,vn).get(s);if(!a||(0,Lt._)(this,pn).has(s))return;const l=(0,Lt._)(this,co).get(s);if(l){await l;return}const O=a().then(A=>{this.onLoad({language:e,namespace:n,messages:A.messages}),(0,Lt._)(this,pn).add(s)},A=>{throw(0,Lt._)(this,pn).add(s),A});(0,Lt._)(this,co).set(s,O),await O}constructor(e){(0,an._)(this,uo),(0,b._)(this,"onLoad",void 0),(0,fe._)(this,pn,{writable:!0,value:void 0}),(0,fe._)(this,co,{writable:!0,value:void 0}),(0,fe._)(this,vn,{writable:!0,value:void 0}),this.onLoad=e,(0,h._)(this,pn,new Set),(0,h._)(this,co,new Map),(0,h._)(this,vn,new Map)}}function qo(r,e){return`${r}/${e}`}var Un=new WeakMap,mn=new WeakMap,ln=new WeakMap,tr=new WeakMap,ho=new WeakMap,Dr=new WeakSet,fo=new WeakSet,er=new WeakSet;class nr{static create(e){const{languages:n}=e.languageApi.getAvailableLanguages(),s=(0,qs.Q_)({fallbackLng:Ye,supportedLngs:n,interpolation:{escapeValue:!1},ns:[],defaultNS:!1,fallbackNS:!1,initImmediate:!1});if(s.init(),!s.isInitialized)throw new Error("i18next was unexpectedly not initialized");const{language:a}=e.languageApi.getLanguage();a!==Ye&&s.changeLanguage(a);const l=new ei(L=>{s.addResourceBundle(L.language,L.namespace,Ir(L.messages),!1,!0)}),O=(e==null?void 0:e.resources)||[];for(let L=O.length-1;L>=0;L--){const W=O[L];W.$$type==="@backstage/TranslationResource"?l.addTranslationResource(W):W.$$type==="@backstage/TranslationMessages"&&s.addResourceBundle(Ye,W.id,Ir(W.messages),!0,!1)}const A=new nr(s,l,e.languageApi.getLanguage().language);return e.languageApi.language$().subscribe(({language:L})=>{(0,We._)(A,Dr,ni).call(A,L)}),A}getTranslation(e){const n=(0,Rr.v)(e);return(0,We._)(this,er,Lr).call(this,n),(0,We._)(this,fo,or).call(this,n)}translation$(e){const n=(0,Rr.v)(e);return(0,We._)(this,er,Lr).call(this,n),new(k())(s=>{let a={};const l=()=>{a={};const A=a;(0,Lt._)(this,mn).load((0,Lt._)(this,ln),n.id).then(()=>{if(A===a){const L=(0,We._)(this,fo,or).call(this,n);L.ready&&s.next(L)}},L=>{A===a&&s.error(Array.isArray(L)?L[0]:L)})},O=()=>{const A=(0,We._)(this,fo,or).call(this,n);A.ready?s.next(A):l()};return(0,Lt._)(this,mn).needsLoading((0,Lt._)(this,ln),n.id)&&l(),(0,Lt._)(this,ho).add(O),()=>{(0,Lt._)(this,ho).delete(O)}})}constructor(e,n,s){(0,an._)(this,Dr),(0,an._)(this,fo),(0,an._)(this,er),(0,fe._)(this,Un,{writable:!0,value:void 0}),(0,fe._)(this,mn,{writable:!0,value:void 0}),(0,fe._)(this,ln,{writable:!0,value:void 0}),(0,fe._)(this,tr,{writable:!0,value:new Set}),(0,fe._)(this,ho,{writable:!0,value:new Set}),(0,h._)(this,Un,e),(0,h._)(this,mn,n),(0,h._)(this,ln,s)}}function ni(r){(0,Lt._)(this,ln)!==r&&((0,h._)(this,ln,r),(0,Lt._)(this,Un).changeLanguage(r),(0,Lt._)(this,ho).forEach(e=>e()))}function or(r){return(0,Lt._)(this,mn).needsLoading((0,Lt._)(this,ln),r.id)?{ready:!1}:{ready:!0,t:(0,Lt._)(this,Un).getFixedT(null,r.id)}}function Lr(r){if((0,Lt._)(this,tr).has(r.id))return;(0,Lt._)(this,tr).add(r.id);const e=r.getDefaultMessages();(0,Lt._)(this,Un).addResourceBundle(Ye,r.id,e,!0,!1);const n=r.getDefaultResource();n&&(0,Lt._)(this,mn).addTranslationResource(n)}function Mr(r){const e=new URL(r);return e.protocol=document.location.protocol,e.hostname=document.location.hostname,e.port=document.location.port,e.toString().replace(/\/$/,"")}function oi(r){const e=un.fromConfigs(r),n=e.getOptionalString("app.baseUrl"),s=e.getOptionalString("backend.baseUrl");let a=r,l,O;if(n&&s){const A=new URL(n).origin,L=new URL(s).origin;if(A===L){const W=Mr(s);s!==W&&(l=W)}}if(n){const A=Mr(n);n!==A&&(O=A)}return(O||l)&&(a=a.concat({data:{app:O&&{baseUrl:O},backend:l&&{baseUrl:l}},context:"relative-resolver"})),a}function ri(r,e,n){var s;const a=!!r,l=(0,Tn.default)(r||(()=>Promise.resolve([])));let O;if(a&&l.loading){const{Progress:W}=e;O=(0,i.jsx)(W,{})}else if(l.error){const{BootErrorPage:W}=e;O=(0,i.jsx)(W,{step:"load-config",error:l.error})}const{ThemeProvider:A=Cr}=e;return O?{node:(0,i.jsx)(Yo,{apis:fn.with(eo,n),children:(0,i.jsx)(A,{children:O})})}:{api:un.fromConfigs(!((s=l.value)===null||s===void 0)&&s.length?oi(l.value):[])}}class si{getPlugins(){return this.app.getPlugins()}getSystemIcon(e){return this.app.getSystemIcon(e)}getSystemIcons(){return this.app.getSystemIcons()}getComponents(){return this.app.getComponents()}constructor(e){(0,b._)(this,"app",void 0),this.app=e}}var rr=new WeakMap;class ii{getPlugins(){return Array.from(this.plugins)}getSystemIcon(e){return this.icons[e]}getSystemIcons(){return this.icons}getComponents(){return this.components}createRoot(e){const n=this.getProvider();return()=>(0,i.jsx)(n,{children:e})}getProvider(){if((0,Lt._)(this,rr))throw new Error("app.getProvider() or app.createRoot() has already been called, and can only be called once");(0,h._)(this,rr,!0);const e=new si(this);let n=!1;return({children:a})=>{const l=(0,u.useRef)(!0),O=(0,u.useMemo)(()=>to.createWithStorage(this.themes),[]),{routing:A,featureFlags:L,routeBindings:W}=(0,u.useMemo)(()=>{const bt=Mn();bt&&console.warn(`
4
- DEPRECATION WARNING: React Router Beta is deprecated and support for it will be removed in a future release.
5
- Please migrate to use React Router v6 stable.
6
- See https://backstage.io/docs/tutorials/react-router-stable-migration
7
- `);const Kt=Cs({root:a,discoverers:[Ss,bs],collectors:{routing:bt?Ts:Ps,collectedPlugins:Os,featureFlags:ws}});return Kt.collectedPlugins.forEach(Vt=>this.plugins.add(Vt)),this.verifyPlugins(this.plugins),this.getApiHolder(),{...Kt,routeBindings:Qs(this.bindRoutes)}},[a]);n||(n=!0,$s(A.paths,A.parents),Ns(W,this.plugins));const J=ri(this.configLoader,this.components,O),st="api"in J;if(st){const{api:bt}=J;this.configApi=bt}if("node"in J)return J.node;if(st&&l.current){l.current=!1;const bt=this.getApiHolder().get(hn.B);if(bt){for(const ne of this.featureFlags)bt.registerFlag({...ne,pluginId:""});for(const ne of this.plugins.values())if("getFeatureFlags"in ne)for(const xe of ne.getFeatureFlags())bt.registerFlag({name:xe.name,pluginId:ne.getId()});else for(const xe of ne.output())xe.type==="feature-flag"&&bt.registerFlag({name:xe.name,pluginId:ne.getId()});const Kt=bt.getRegisteredFlags(),Vt=new Set(Kt.map(ne=>ne.name));for(const ne of L)Vt.has(ne)||bt.registerFlag({name:ne,pluginId:""})}}const{ThemeProvider:ht=Cr,Progress:Et}=this.components;return(0,i.jsx)(Yo,{apis:this.getApiHolder(),children:(0,i.jsx)(ks,{appContext:e,children:(0,i.jsx)(ht,{children:(0,i.jsx)(Fs,{routePaths:A.paths,routeParents:A.parents,routeObjects:A.objects,routeBindings:W,basePath:_s(J.api),children:(0,i.jsx)(br.Provider,{value:{routeObjects:A.objects,appIdentityProxy:this.appIdentityProxy},children:(0,i.jsx)(u.Suspense,{fallback:(0,i.jsx)(Et,{}),children:a})})})})})})}}getRouter(){return wr}getApiHolder(){if(this.apiHolder){for(const e of this.plugins)for(const n of e.getApis())this.apiFactoryRegistry.get(n.api)||this.apiFactoryRegistry.register("default",n);return Zo.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder}this.apiFactoryRegistry.register("static",{api:eo,deps:{},factory:()=>to.createWithStorage(this.themes)}),this.apiFactoryRegistry.register("static",{api:ce.U,deps:{},factory:()=>{if(!this.configApi)throw new Error("Tried to access config API before config was loaded");return this.configApi}}),this.apiFactoryRegistry.register("static",{api:sn.K,deps:{},factory:()=>this.appIdentityProxy}),this.apiFactoryRegistry.register("static",{api:pr,deps:{},factory:()=>this.appLanguageApi}),this.apiFactoryRegistry.register("default",{api:As.J,deps:{languageApi:pr},factory:({languageApi:e})=>nr.create({languageApi:e,resources:this.translationResources})}),this.apiFactoryRegistry.register("default",{api:hn.B,deps:{},factory:()=>new Es});for(const e of this.defaultApis)this.apiFactoryRegistry.register("default",e);for(const e of this.plugins)for(const n of e.getApis())if(!this.apiFactoryRegistry.register("default",n))throw new Error(`Plugin ${e.getId()} tried to register duplicate or forbidden API factory for ${n.api}`);for(const e of this.apis)if(!this.apiFactoryRegistry.register("app",e))throw new Error(`Duplicate or forbidden API factory for ${e.api} in app`);return Zo.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder=new Zo(this.apiFactoryRegistry),this.apiHolder}verifyPlugins(e){const n=new Set;for(const s of e){const a=s.getId();if(n.has(a))throw new Error(`Duplicate plugin found '${a}'`);n.add(a)}}constructor(e){var n,s,a;(0,b._)(this,"apiHolder",void 0),(0,b._)(this,"configApi",void 0),(0,b._)(this,"apis",void 0),(0,b._)(this,"icons",void 0),(0,b._)(this,"plugins",void 0),(0,b._)(this,"featureFlags",void 0),(0,b._)(this,"components",void 0),(0,b._)(this,"themes",void 0),(0,b._)(this,"configLoader",void 0),(0,b._)(this,"defaultApis",void 0),(0,b._)(this,"bindRoutes",void 0),(0,b._)(this,"appLanguageApi",void 0),(0,b._)(this,"translationResources",void 0),(0,b._)(this,"appIdentityProxy",new Ks),(0,b._)(this,"apiFactoryRegistry",void 0),(0,fe._)(this,rr,{writable:!0,value:!1});var l;this.apis=(l=e.apis)!==null&&l!==void 0?l:[],this.icons=e.icons;var O;this.plugins=new Set((O=e.plugins)!==null&&O!==void 0?O:[]);var A;this.featureFlags=(A=e.featureFlags)!==null&&A!==void 0?A:[],this.components=e.components,this.themes=e.themes;var L;this.configLoader=(L=e.configLoader)!==null&&L!==void 0?L:Sr;var W;this.defaultApis=(W=e.defaultApis)!==null&&W!==void 0?W:[],this.bindRoutes=e.bindRoutes,this.apiFactoryRegistry=new xs,this.appLanguageApi=lo.createWithStorage({defaultLanguage:(n=e.__experimentalTranslations)===null||n===void 0?void 0:n.defaultLanguage,availableLanguages:(s=e.__experimentalTranslations)===null||s===void 0?void 0:s.availableLanguages});var J;this.translationResources=(J=(a=e.__experimentalTranslations)===null||a===void 0?void 0:a.resources)!==null&&J!==void 0?J:[]}}function ai(r){return new ii(r)}function li(r){var e,n,s,a;return ai({...r,apis:(e=r==null?void 0:r.apis)!==null&&e!==void 0?e:[],bindRoutes:r==null?void 0:r.bindRoutes,components:{...D,...r==null?void 0:r.components},configLoader:r==null?void 0:r.configLoader,defaultApis:wo,icons:{...Zn,...r==null?void 0:r.icons},plugins:(n=r==null?void 0:r.plugins)!==null&&n!==void 0?n:[],featureFlags:(s=r==null?void 0:r.featureFlags)!==null&&s!==void 0?s:[],themes:(a=r==null?void 0:r.themes)!==null&&a!==void 0?a:re})}var go=t(82442);let jr=!1;const Br=r=>{const e=(0,Or.n)(),{NotFoundErrorPage:n}=e.getComponents(),s=(0,u.useMemo)(()=>Mn(),[]),l=[...(0,go.O)(r.children,O=>O.getElements().flatMap(A=>{let L=A.props.path;if(L==="")return[];var W;L=(W=L==null?void 0:L.replace(/\/\*$/,""))!==null&&W!==void 0?W:"/";let J=s?A:A.props.element;return!s&&!J&&(J=A,jr||(console.warn("DEPRECATION WARNING: All elements within <FlatRoutes> must be of type <Route> with an element prop. Existing usages of <Navigate key=[path] to=[to] /> should be replaced with <Route path=[path] element={<Navigate to=[to] />} />."),jr=!0)),[{path:L,element:J,children:A.props.children?[{path:L==="/"?"/":"*",element:A.props.children}]:void 0}]}).sort((A,L)=>L.path.localeCompare(A.path)).map(A=>({...A,path:A.path==="/"?"/":`${A.path}/*`}))),{path:"*",element:(0,i.jsx)(n,{})}];return(0,y.Ye)(l)};(0,Re.h)(Br,"core.type","FlatRoutes");var en=t(6820),ci=t(78692),di=t(86519);function Ur(r){return!r.cursor}function Wa(r){return!Ur(r)}const be="catalog";var Oe=t(94214);class ui{async analyzeLocation(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/analyze-location").expand({});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}async createLocation(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/locations{?dryRun}").expand({...e.query});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}async deleteEntityByUid(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/entities/by-uid/{uid}").expand({uid:e.path.uid});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"DELETE"})}async deleteLocation(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/locations/{id}").expand({id:e.path.id});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"DELETE"})}async getEntities(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/entities{?fields,limit,filter*,offset,after,order*}").expand({...e.query});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntitiesByQuery(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/entities/by-query{?fields,limit,orderField*,cursor,filter*,fullTextFilterTerm,fullTextFilterFields}").expand({...e.query});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntitiesByRefs(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/entities/by-refs").expand({});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}async getEntityAncestryByName(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/entities/by-name/{kind}/{namespace}/{name}/ancestry").expand({kind:e.path.kind,namespace:e.path.namespace,name:e.path.name});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntityByName(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/entities/by-name/{kind}/{namespace}/{name}").expand({kind:e.path.kind,namespace:e.path.namespace,name:e.path.name});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntityByUid(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/entities/by-uid/{uid}").expand({uid:e.path.uid});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getEntityFacets(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/entity-facets{?facet*,filter*}").expand({...e.query});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getLocation(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/locations/{id}").expand({id:e.path.id});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getLocationByEntity(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/locations/by-entity/{kind}/{namespace}/{name}").expand({kind:e.path.kind,namespace:e.path.namespace,name:e.path.name});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async getLocations(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/locations").expand({});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"GET"})}async refreshEntity(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/refresh").expand({});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}async validateEntity(e,n){const s=await this.discoveryApi.getBaseUrl(be),l=Oe.parse("/validate-entity").expand({});return await this.fetchApi.fetch(`${s}${l}`,{headers:{"Content-Type":"application/json",...(n==null?void 0:n.token)&&{Authorization:`Bearer ${n==null?void 0:n.token}`}},method:"POST",body:JSON.stringify(e.body)})}constructor(e){(0,b._)(this,"discoveryApi",void 0),(0,b._)(this,"fetchApi",void 0),this.discoveryApi=e.discoveryApi,this.fetchApi=e.fetchApi||{fetch:kn()}}}class hi{async getEntityAncestors(e,n){return await this.requestRequired(await this.apiClient.getEntityAncestryByName({path:(0,en.KU)(e.entityRef)},n))}async getLocationById(e,n){return await this.requestOptional(await this.apiClient.getLocation({path:{id:e}},n))}async getLocationByEntity(e,n){return await this.requestOptional(await this.apiClient.getLocationByEntity({path:(0,en.KU)(e)},n))}async getEntities(e,n){const{filter:s=[],fields:a=[],order:l,offset:O,limit:A,after:L}=e!=null?e:{},W=[];if(l)for(const ht of[l].flat())ht&&W.push(`${ht.order}:${ht.field}`);const J=await this.requestRequired(await this.apiClient.getEntities({query:{fields:a,limit:A,filter:this.getFilterValue(s),offset:O,after:L,order:l?W:void 0}},n)),st=(ht,Et)=>{var bt,Kt;if(((bt=ht.metadata)===null||bt===void 0?void 0:bt.name)===void 0||ht.kind===void 0||((Kt=Et.metadata)===null||Kt===void 0?void 0:Kt.name)===void 0||Et.kind===void 0)return 0;const Vt=(0,en.U2)(ht),ne=(0,en.U2)(Et);return Vt<ne?-1:Vt>ne?1:0};return{items:J.sort(st)}}async getEntitiesByRefs(e,n){const s=await this.apiClient.getEntitiesByRefs({body:e},n);if(!s.ok)throw await qe.o.fromResponse(s);const{items:a}=await s.json();return{items:a.map(l=>l!=null?l:void 0)}}async queryEntities(e={},n){const s={};if(Ur(e)){var a,l;const{fields:O=[],filter:A,limit:L,orderFields:W,fullTextFilter:J}=e;s.filter=this.getFilterValue(A),L!==void 0&&(s.limit=L),W!==void 0&&(s.orderField=(Array.isArray(W)?W:[W]).map(({field:ht,order:Et})=>`${ht},${Et}`)),O.length&&(s.fields=O);const st=J==null||(a=J.term)===null||a===void 0?void 0:a.trim();st&&(s.fullTextFilterTerm=st),!(J==null||(l=J.fields)===null||l===void 0)&&l.length&&(s.fullTextFilterFields=J.fields)}else{const{fields:O=[],limit:A,cursor:L}=e;s.cursor=L,A!==void 0&&(s.limit=A),O.length&&(s.fields=O)}return this.apiClient.getEntitiesByQuery({query:s},n).then(O=>O.json())}async getEntityByRef(e,n){return this.requestOptional(await this.apiClient.getEntityByName({path:(0,en.KU)(e)},n))}async getEntityByName(e,n){const{kind:s,namespace:a="default",name:l}=e;return this.requestOptional(await this.apiClient.getEntityByName({path:{kind:s,namespace:a,name:l}},n))}async refreshEntity(e,n){const s=await this.apiClient.refreshEntity({body:{entityRef:e}},n);if(s.status!==200)throw new Error(await s.text())}async getEntityFacets(e,n){const{filter:s=[],facets:a}=e;return await this.requestOptional(await this.apiClient.getEntityFacets({query:{facet:a,filter:this.getFilterValue(s)}},n))}async addLocation(e,n){const{type:s="url",target:a,dryRun:l}=e,O=await this.apiClient.createLocation({body:{type:s,target:a},query:{dryRun:l?"true":void 0}},n);if(O.status!==201)throw new Error(await O.text());const{location:A,entities:L,exists:W}=await O.json();if(!A)throw new Error(`Location wasn't added: ${a}`);return{location:A,entities:L,exists:W}}async getLocationByRef(e,n){return(await this.requestRequired(await this.apiClient.getLocations({},n))).map(a=>a.data).find(a=>e===(0,ci.KL)(a))}async removeLocationById(e,n){await this.requestIgnored(await this.apiClient.deleteLocation({path:{id:e}},n))}async removeEntityByUid(e,n){await this.requestIgnored(await this.apiClient.deleteEntityByUid({path:{uid:e}},n))}async validateEntity(e,n,s){const a=await this.apiClient.validateEntity({body:{entity:e,location:n}},s);if(a.ok)return{valid:!0};if(a.status!==400)throw await qe.o.fromResponse(a);const{errors:l=[]}=await a.json();return{valid:!1,errors:l}}async requestIgnored(e){if(!e.ok)throw await qe.o.fromResponse(e)}async requestRequired(e){if(!e.ok)throw await qe.o.fromResponse(e);return e.json()}async requestOptional(e){if(!e.ok){if(e.status===404)return;throw await qe.o.fromResponse(e)}return await e.json()}getFilterValue(e=[]){const n=[];for(const s of[e].flat()){const a=[];for(const[l,O]of Object.entries(s))for(const A of[O].flat())A===di.c?a.push(l):typeof A=="string"&&a.push(`${l}=${A}`);a.length&&n.push(a.join(","))}return n}constructor(e){(0,b._)(this,"apiClient",void 0),this.apiClient=new ui(e)}}var Fr=t(7341),fi=t(18),gi=t(82292),$r=t(29207),yn=t(95203),pi=t(9803),Be=t(88758),vi=t(54560),En=t(45250);async function mi({storageApi:r}){const e=r.forBucket("settings"),n=r.forBucket("starredEntities"),s=e.snapshot("starredEntities").value;if(!(0,En.isArray)(s))return;var a;const l=new Set((a=n.snapshot("entityRefs").value)!==null&&a!==void 0?a:[]);s.filter(En.isString).map(O=>O.split(":")).filter(O=>O.length===4&&O[0]==="entity").map(([O,A,L,W])=>(0,en.U2)({kind:A,namespace:L,name:W})).forEach(O=>l.add(O)),await n.set("entityRefs",Array.from(l)),await e.remove("starredEntities")}class yi{async toggleStarred(e){this.starredEntities.has(e)?this.starredEntities.delete(e):this.starredEntities.add(e),await this.settingsStore.set("entityRefs",Array.from(this.starredEntities))}starredEntitie$(){return this.observable}notifyChanges(){for(const e of this.subscribers)e.next(new Set(this.starredEntities))}constructor(e){(0,b._)(this,"settingsStore",void 0),(0,b._)(this,"starredEntities",void 0),(0,b._)(this,"subscribers",new Set),(0,b._)(this,"observable",new(k())(s=>(s.next(new Set(this.starredEntities)),this.subscribers.add(s),()=>{this.subscribers.delete(s)}))),mi(e).then(),this.settingsStore=e.storageApi.forBucket("starredEntities");var n;this.starredEntities=new Set((n=this.settingsStore.snapshot("entityRefs").value)!==null&&n!==void 0?n:[]),this.settingsStore.observe$("entityRefs").subscribe({next:s=>{var a;this.starredEntities=new Set((a=s.value)!==null&&a!==void 0?a:[]),this.notifyChanges()}})}}function sr(r){const{years:e=0,months:n=0,weeks:s=0,days:a=0,hours:l=0,minutes:O=0,seconds:A=0,milliseconds:L=0}=r;return((((e*365+n*30+s*7+a)*24+l)*60+O)*60+A)*1e3+L}var Ei=t(25033),Ai=t.n(Ei),xi=t(25295),Ci=t.n(xi),Si=t(88083);const bi={seconds:10},Oi={milliseconds:50},Pi={api:Hn.A,component:Gn.A,system:zn.A,resource:Yn.A,domain:xn.A,location:Vn.A,user:bn.A,group:Sn.A,template:Qn.A};function Nr(r){return{async:r.async,render:({entityRef:e,entity:n,context:s})=>({snapshot:(0,Si.T)(n||e,s),loadEntity:r.async})}}var po=new WeakMap,ir=new WeakMap,vo=new WeakMap,ar=new WeakMap,mo=new WeakMap,Wr=new WeakSet,kr=new WeakSet,Kr=new WeakSet;class yo{static createLocal(){return new yo({renderer:Nr({async:!1})})}static create(e){return new yo(e)}forEntity(e,n){const{entityRef:s,kind:a,entity:l,needsLoad:O}=(0,We._)(this,Wr,Ti).call(this,e),A=J=>{const{snapshot:st}=(0,Lt._)(this,mo).render({entityRef:s,loading:J.loading,entity:J.entity,context:n||{}});return{...st,entityRef:s,Icon:(0,We._)(this,Kr,Ri).call(this,st.Icon,a)}};let L;try{L=A({loading:O,entity:l})}catch{L={primaryTitle:s,entityRef:s}}const W=O?new(k())(J=>{let st=!1;return Promise.resolve().then(()=>{var ht;return(ht=(0,Lt._)(this,vo))===null||ht===void 0?void 0:ht.load(s)}).then(ht=>{if(!st&&ht&&ht.metadata.etag!==(l==null?void 0:l.metadata.etag)){const Et=A({loading:!1,entity:ht});J.next(Et)}}).catch(()=>{}).finally(()=>{st||J.complete()}),()=>{st=!0}}):void 0;return{snapshot:L,update$:W}}constructor(e){(0,an._)(this,Wr),(0,an._)(this,kr),(0,an._)(this,Kr),(0,fe._)(this,po,{writable:!0,value:void 0}),(0,fe._)(this,ir,{writable:!0,value:void 0}),(0,fe._)(this,vo,{writable:!0,value:void 0}),(0,fe._)(this,ar,{writable:!0,value:void 0}),(0,fe._)(this,mo,{writable:!0,value:void 0});var n;const s=(n=e.cacheTtl)!==null&&n!==void 0?n:bi;var a;const l=(a=e.batchDelay)!==null&&a!==void 0?a:Oi;var O;const A=(O=e.renderer)!==null&&O!==void 0?O:Nr({async:!0}),L={};Object.entries(Pi).forEach(([J,st])=>{L[J.toLocaleLowerCase("en-US")]=st});var W;if(Object.entries((W=e.kindIcons)!==null&&W!==void 0?W:{}).forEach(([J,st])=>{L[J.toLocaleLowerCase("en-US")]=st}),A.async){if(!e.catalogApi)throw new TypeError("Asynchronous rendering requires a catalog API");(0,h._)(this,vo,(0,We._)(this,kr,wi).call(this,{cacheTtl:s,batchDelay:l,renderer:A,catalogApi:e.catalogApi}))}(0,h._)(this,ir,sr(s)),(0,h._)(this,po,new Map),(0,h._)(this,ar,L),(0,h._)(this,mo,A)}}function Ti(r){if(typeof r!="string")return{entity:r,kind:r.kind,entityRef:(0,en.U2)(r),needsLoad:!1};const e=(0,Lt._)(this,po).get(r),n=e==null?void 0:e.entity,a=(!e||Date.now()-e.updatedAt>(0,Lt._)(this,ir))&&(0,Lt._)(this,mo).async!==!1&&(0,Lt._)(this,vo)!==void 0;return{entity:n,kind:(0,en.KU)(r).kind,entityRef:r,needsLoad:a}}function wi(r){const e=sr(r.cacheTtl),n=sr(r.batchDelay);return new(Ai())(async s=>{const{items:a}=await r.catalogApi.getEntitiesByRefs({entityRefs:s}),l=Date.now();return s.forEach((O,A)=>{(0,Lt._)(this,po).set(O,{updatedAt:l,entity:a[A]})}),a},{name:"DefaultEntityPresentationApi",cacheMap:new(Ci())(e),maxBatchSize:100,batchScheduleFn:n?s=>setTimeout(s,n):void 0})}function Ri(r,e){return r||(r===!1?!1:(0,Lt._)(this,ar)[e.toLocaleLowerCase("en-US")])}const De=(0,pi.i)({id:"catalog",apis:[(0,zt.b)({api:Fr.v,deps:{discoveryApi:oe.I,fetchApi:Wn.a},factory:({discoveryApi:r,fetchApi:e})=>new hi({discoveryApi:r,fetchApi:e})}),(0,zt.b)({api:fi.a,deps:{storageApi:Nn},factory:({storageApi:r})=>new yi({storageApi:r})}),(0,zt.b)({api:gi.n,deps:{catalogApi:Fr.v},factory:({catalogApi:r})=>yo.create({catalogApi:r})})],routes:{catalogIndex:yn.rQ,catalogEntity:$r.s},externalRoutes:{createComponent:yn.qP,viewTechDoc:yn.UJ,createFromTemplate:yn.Zg,unregisterRedirect:yn.pS}}),ka=De.provide((0,Be.QJ)({name:"CatalogIndexPage",component:()=>Promise.all([t.e(3720),t.e(5011),t.e(1600)]).then(t.bind(t,71600)).then(r=>r.CatalogPage),mountPoint:yn.rQ})),Ii=De.provide((0,Be.QJ)({name:"CatalogEntityPage",component:()=>t.e(4516).then(t.bind(t,54516)).then(r=>r.CatalogEntityPage),mountPoint:$r.s})),Ka=De.provide((0,Be.NC)({name:"EntityAboutCard",component:{lazy:()=>Promise.all([t.e(3720),t.e(5977),t.e(1833)]).then(t.bind(t,61833)).then(r=>r.AboutCard)}})),za=De.provide((0,Be.NC)({name:"EntityLinksCard",component:{lazy:()=>t.e(8307).then(t.bind(t,18307)).then(r=>r.EntityLinksCard)}})),Ha=De.provide((0,Be.NC)({name:"EntityLabelsCard",component:{lazy:()=>t.e(3182).then(t.bind(t,63182)).then(r=>r.EntityLabelsCard)}})),Va=De.provide((0,Be.NC)({name:"EntityHasSystemsCard",component:{lazy:()=>t.e(9652).then(t.bind(t,9652)).then(r=>r.HasSystemsCard)}})),Ga=De.provide((0,Be.NC)({name:"EntityHasComponentsCard",component:{lazy:()=>t.e(2420).then(t.bind(t,52420)).then(r=>r.HasComponentsCard)}})),Ya=De.provide((0,Be.NC)({name:"EntityHasSubcomponentsCard",component:{lazy:()=>t.e(8384).then(t.bind(t,78384)).then(r=>r.HasSubcomponentsCard)}})),Qa=De.provide((0,Be.NC)({name:"EntityHasResourcesCard",component:{lazy:()=>t.e(6271).then(t.bind(t,56271)).then(r=>r.HasResourcesCard)}})),Za=De.provide((0,Be.NC)({name:"EntityDependsOnComponentsCard",component:{lazy:()=>t.e(3632).then(t.bind(t,3632)).then(r=>r.DependsOnComponentsCard)}})),Ja=De.provide((0,Be.NC)({name:"EntityDependencyOfComponentsCard",component:{lazy:()=>t.e(124).then(t.bind(t,124)).then(r=>r.DependencyOfComponentsCard)}})),Xa=De.provide((0,Be.NC)({name:"EntityDependsOnResourcesCard",component:{lazy:()=>t.e(287).then(t.bind(t,20287)).then(r=>r.DependsOnResourcesCard)}})),_a=De.provide((0,Be.NC)({name:"RelatedEntitiesCard",component:{lazy:()=>t.e(2401).then(t.bind(t,52401)).then(r=>r.RelatedEntitiesCard)}})),qa=De.provide((0,vi.ec)({name:"CatalogSearchResultListItem",component:()=>t.e(1297).then(t.bind(t,61297)).then(r=>r.CatalogSearchResultListItem),predicate:r=>r.type==="software-catalog"}));var zr=t(43320),Hr=t(26679);class Di{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){return`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(e,n){const a=`${await this.getApiOrigin()}/${n}`,l=await fetch(`${a.endsWith("/")?a:`${a}/`}index.html`);if(l.status===404)throw new Error("Page not found");return l.text()}async syncEntityDocs(e){return"cached"}async getBaseUrl(e,n,s){const a=await this.getApiOrigin();return new URL(e,`${a}/${s}`).toString()}constructor({configApi:e,discoveryApi:n,identityApi:s}){(0,b._)(this,"configApi",void 0),(0,b._)(this,"discoveryApi",void 0),(0,b._)(this,"identityApi",void 0),this.configApi=e,this.discoveryApi=n,this.identityApi=s}}class Li{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getEntityMetadata(e){return{apiVersion:"backstage.io/v1alpha1",kind:"Component",metadata:{name:"local"},spec:{owner:"test",lifecycle:"experimental"}}}async getTechDocsMetadata(e){return{site_name:"Live preview environment",site_description:""}}constructor({configApi:e,discoveryApi:n,identityApi:s}){(0,b._)(this,"configApi",void 0),(0,b._)(this,"discoveryApi",void 0),(0,b._)(this,"identityApi",void 0),this.configApi=e,this.discoveryApi=n,this.identityApi=s}}const Mi=[(0,zt.b)({api:Hr.s,deps:{configApi:ce.U,discoveryApi:oe.I,identityApi:sn.K},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new Di({configApi:r,discoveryApi:e,identityApi:n})}),(0,zt.b)({api:Hr.l,deps:{configApi:ce.U,discoveryApi:oe.I,identityApi:sn.K},factory:({configApi:r,discoveryApi:e,identityApi:n})=>new Li({configApi:r,discoveryApi:e,identityApi:n})}),(0,zt.b)({api:zr.Y,deps:{configApi:ce.U},factory:({configApi:r})=>zr.L.fromConfig(r)})],ji={backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}},Bi={backend:{baseUrl:"http://localhost:7007"},techdocs:{builder:"external"}};async function Ui(){const r=await fetch("/.detect");return r.ok?(await r.text()).trim()==="techdocs-cli-server":!1}async function Fi(){const r=await Sr(),e=await Ui();return[...r,{context:"detected",data:e?ji:Bi}]}var Qe=t(58837),$i=t(3210);const Ni=(0,Qe.A)({svg:{width:"auto",height:30},path:{fill:"#7df3e1"}});var Wi=()=>{const r=Ni();return(0,i.jsx)("svg",{className:r.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2079.95 456.05",children:(0,i.jsx)("path",{className:r.path,d:"M302.9,180a80.62,80.62,0,0,0,13.44-10.37c.8-.77,1.55-1.54,2.31-2.31a81.89,81.89,0,0,0,7.92-9.37,62.37,62.37,0,0,0,6.27-10.77,48.6,48.6,0,0,0,4.36-16.4c1.49-19.39-10-38.67-35.62-54.22L198.42,14,78.16,129.22l-78.29,75,108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.69,49.69,0,0,0-6.8-8.87,89.78,89.78,0,0,0,19.28,2.15H259a85.09,85.09,0,0,0,31-5.79A80.88,80.88,0,0,0,302.9,180Zm-100.59,59.8c-19.32,18.51-50.4,21.24-75.7,5.9l-75.13-45.6,67.44-64.65,76.42,46.39C222.88,198.57,221.36,221.6,202.31,239.84Zm8.94-82.21L140.6,114.74,205,53l69.37,42.11c25.94,15.73,29.31,37.05,10.55,55A60.71,60.71,0,0,1,211.25,157.63Zm29.86,190c-19.57,18.75-46.17,29.08-74.88,29.08a123.84,123.84,0,0,1-64.11-18.19L-.13,296.51v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.85,87.85,0,0,1,241.11,347.67Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,257.52V282.2l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.79A86.86,86.86,0,0,1,241.11,308.68Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,218.54v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.12,19.68-41.49v-1.82A87.14,87.14,0,0,1,241.11,269.7Zm83.69,25.74a94.16,94.16,0,0,1-60.19,25.86h0V348a81.6,81.6,0,0,0,51.73-22.37c14-13.38,21.15-28.11,21-42.64v-2.2A95.14,95.14,0,0,1,324.8,295.44Zm-83.69,91.21c-19.57,18.75-46.17,29.09-74.88,29.09a123.76,123.76,0,0,1-64.11-18.2L-.13,335.49v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.35,87.35,0,0,1,241.11,386.65Zm85.75-210.21c-.68.69-1.35,1.38-2.06,2.05a99.19,99.19,0,0,1-22.23,15.69,94.53,94.53,0,0,1-26.24,8.71,97.84,97.84,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a52.7,52.7,0,0,1,1.13,12V231h.05A84.48,84.48,0,0,0,290,225.47a80.83,80.83,0,0,0,26.38-16.82c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,62.85,62.85,0,0,0,6.29-10.78,48.5,48.5,0,0,0,4.32-16.44c.09-1.23.2-2.47.19-3.7v-2c-.72,1-1.48,2.06-2.26,3.09A98,98,0,0,1,326.86,176.44Zm0,77.92c-.68.7-1.3,1.41-2,2.1a94.09,94.09,0,0,1-60.19,25.85h0V309h0a81.65,81.65,0,0,0,51.73-22.37,73.51,73.51,0,0,0,16.48-22.49,48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A95.81,95.81,0,0,1,326.82,254.36Zm0-39c-.68.7-1.3,1.41-2,2.1a92.22,92.22,0,0,1-10.62,8.65,93.53,93.53,0,0,1-11.63,7,95.63,95.63,0,0,1-37.94,10.18h-.05l0,26.67h0a81.63,81.63,0,0,0,51.73-22.37c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,63.16,63.16,0,0,0,6.29-10.77,48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A98.19,98.19,0,0,1,326.82,215.38Zm241-88.84q7.94,0,17.09.17t18.12,1a139.3,139.3,0,0,1,16.74,2.57,42.78,42.78,0,0,1,13.3,5.14,64.27,64.27,0,0,1,20.54,19.89Q662,168,662,186.54q0,19.54-9.49,33.78t-27.1,21.09v.68q22.78,4.82,34.87,20.58t12.08,38.4a72.62,72.62,0,0,1-4.83,26.06,65.29,65.29,0,0,1-14.33,22.46,71.57,71.57,0,0,1-23.47,15.78q-14,6-32.28,6H478.38V126.54Zm9,105.27q28,0,40.21-9.78t12.26-29.31q0-13-4.14-20.58a29.47,29.47,0,0,0-11.4-11.66A45,45,0,0,0,597,155.17a161.2,161.2,0,0,0-20.19-1.2h-65.6v77.84Zm16.57,112.13q21.74,0,34-11.66T639.59,300q0-12-4.48-19.88a34.85,34.85,0,0,0-11.91-12.52,50.14,50.14,0,0,0-17.09-6.52,105,105,0,0,0-20-1.88H511.17v84.7Zm274.79,26.74q-7.61,4.45-21.06,4.46-11.4,0-18.12-6.34t-6.74-20.75a70.17,70.17,0,0,1-28.13,20.75,97.87,97.87,0,0,1-57.65,3.6,53.51,53.51,0,0,1-18.82-8.58A41.19,41.19,0,0,1,705,348.56q-4.65-9.42-4.66-22.8,0-15.09,5.18-24.69a44.92,44.92,0,0,1,13.64-15.6,62.63,62.63,0,0,1,19.33-9.09q10.88-3.08,22.27-5.14,12.08-2.4,23-3.6a128,128,0,0,0,19.16-3.43c5.53-1.48,9.89-3.65,13.12-6.51s4.83-7,4.83-12.52q0-9.6-3.62-15.43a24.94,24.94,0,0,0-9.32-8.92,38.38,38.38,0,0,0-12.78-4.11,96.54,96.54,0,0,0-14-1q-18.63,0-31.07,7T736.6,249.29H707.26q.69-16.46,6.9-27.77a52.21,52.21,0,0,1,16.57-18.35,70,70,0,0,1,23.65-10.11A125.51,125.51,0,0,1,782.86,190a168.63,168.63,0,0,1,24,1.72,63.26,63.26,0,0,1,21.58,7A41.23,41.23,0,0,1,844,213.59q5.87,9.57,5.87,25v91q0,10.26,1.21,15.05t8.11,4.79a35.57,35.57,0,0,0,9-1.37Zm-47.64-90.87c-3.69,2.74-8.52,4.72-14.5,6s-12.26,2.27-18.82,3.07-13.17,1.71-19.85,2.73a73.7,73.7,0,0,0-18,4.94,32.62,32.62,0,0,0-12.94,9.73q-5,6.32-5,17.23a23.31,23.31,0,0,0,2.94,12.11,24.11,24.11,0,0,0,7.59,8,32,32,0,0,0,10.88,4.44,60.94,60.94,0,0,0,13.11,1.36q14.5,0,24.86-3.92a52.49,52.49,0,0,0,16.91-9.9,39.1,39.1,0,0,0,9.67-13,32.53,32.53,0,0,0,3.11-13.14ZM1002.07,225q-11.05-9.25-29.69-9.26-15.89,0-26.58,5.83A47.29,47.29,0,0,0,928.71,237a64.66,64.66,0,0,0-9.15,22.12A119.83,119.83,0,0,0,916.8,285a98.22,98.22,0,0,0,2.93,24,64.18,64.18,0,0,0,9.15,20.74,46.2,46.2,0,0,0,16.23,14.58q10,5.49,23.82,5.48,21.75,0,34-11.31t15-31.89h30q-4.83,32.91-24.68,50.75t-54,17.83q-20.37,0-36.07-6.52A69.86,69.86,0,0,1,907,350.11a79.92,79.92,0,0,1-15.88-28.63A118.64,118.64,0,0,1,885.73,285a129.41,129.41,0,0,1,5.18-37.21,85.63,85.63,0,0,1,15.71-30.17A73.46,73.46,0,0,1,933,197.35Q948.91,190,970,190a108.54,108.54,0,0,1,28.48,3.6,69.59,69.59,0,0,1,23.48,11.15,61,61,0,0,1,16.74,19q6.55,11.49,8.29,27.26h-30.38Q1013.11,234.21,1002.07,225Zm109.77-98.41v145l81.47-77.49h39.36l-70.77,64.46,75.95,112.82h-37.29l-61.1-92.59-27.62,25.38v67.21H1082.5V126.54Zm170.54,205.22a31.07,31.07,0,0,0,10.87,10.63,49,49,0,0,0,15.19,5.66,87.06,87.06,0,0,0,17.44,1.71,109.18,109.18,0,0,0,14.5-1,53.22,53.22,0,0,0,14-3.78,26.27,26.27,0,0,0,10.53-8q4.14-5.32,4.14-13.55,0-11.31-8.63-17.14a73.69,73.69,0,0,0-21.58-9.43q-12.94-3.6-28.13-6.52a146,146,0,0,1-28.14-8.23A58.16,58.16,0,0,1,1261,267.13q-8.64-9.6-8.63-26.75,0-13.38,6-23a49.26,49.26,0,0,1,15.53-15.61,71.76,71.76,0,0,1,21.4-8.91A99.41,99.41,0,0,1,1319,190a141.31,141.31,0,0,1,28,2.58,64.85,64.85,0,0,1,22.62,8.91,46.16,46.16,0,0,1,15.7,17.15q5.87,10.8,6.91,26.91h-29.35q-.69-8.57-4.48-14.23a29.36,29.36,0,0,0-9.67-9.08,44.16,44.16,0,0,0-12.94-5,67.68,67.68,0,0,0-14.33-1.54,87.29,87.29,0,0,0-13.29,1,45.28,45.28,0,0,0-12.26,3.6,24.49,24.49,0,0,0-9,6.86q-3.46,4.29-3.46,11.14a16.32,16.32,0,0,0,5.36,12.52,42.75,42.75,0,0,0,13.63,8.23,120,120,0,0,0,18.64,5.48q10.37,2.24,20.72,4.63,11,2.4,21.57,5.83A70.74,70.74,0,0,1,1382,284.1a44.55,44.55,0,0,1,13.12,14.23q5,8.58,5,21.26,0,16.13-6.73,26.75a52.5,52.5,0,0,1-17.61,17.14,73.89,73.89,0,0,1-24.51,9.09,146.3,146.3,0,0,1-27.1,2.57,126.24,126.24,0,0,1-28.31-3.09A69.56,69.56,0,0,1,1272,361.94a51.74,51.74,0,0,1-16.57-18.52q-6.21-11.49-6.9-27.95h29.34A32.65,32.65,0,0,0,1282.38,331.76Zm226.46-137.67v25.72h-35.56V329.88a31.37,31.37,0,0,0,.87,8.23,8.42,8.42,0,0,0,3.28,4.8,14.61,14.61,0,0,0,6.73,2.23,99.19,99.19,0,0,0,11.22.51h13.46v25.72H1486.4a105.8,105.8,0,0,1-19.5-1.55,28.65,28.65,0,0,1-13.12-5.65,24.09,24.09,0,0,1-7.42-11.66q-2.43-7.54-2.42-19.89V219.81h-30.38V194.09h30.38V140.94h29.34v53.15ZM1699.4,370.68q-7.61,4.45-21.06,4.46-11.4,0-18.12-6.34t-6.74-20.75a70.17,70.17,0,0,1-28.13,20.75,97.87,97.87,0,0,1-57.65,3.6,53.51,53.51,0,0,1-18.82-8.58,41.19,41.19,0,0,1-12.6-15.26q-4.65-9.42-4.66-22.8,0-15.09,5.18-24.69a44.92,44.92,0,0,1,13.64-15.6,62.63,62.63,0,0,1,19.33-9.09q10.88-3.08,22.27-5.14,12.07-2.4,23-3.6a128,128,0,0,0,19.16-3.43c5.53-1.48,9.89-3.65,13.12-6.51s4.83-7,4.83-12.52q0-9.6-3.62-15.43a24.94,24.94,0,0,0-9.32-8.92,38.38,38.38,0,0,0-12.78-4.11,96.54,96.54,0,0,0-14-1q-18.63,0-31.07,7t-13.46,26.57h-29.34q.67-16.46,6.9-27.77A52.21,52.21,0,0,1,1562,203.17a70,70,0,0,1,23.65-10.11,125.51,125.51,0,0,1,28.48-3.09,168.63,168.63,0,0,1,24,1.72,63.26,63.26,0,0,1,21.58,7,41.23,41.23,0,0,1,15.53,14.89q5.87,9.57,5.87,25v91q0,10.26,1.21,15.05t8.11,4.79a35.57,35.57,0,0,0,9-1.37Zm-47.64-90.87c-3.69,2.74-8.52,4.72-14.5,6s-12.26,2.27-18.82,3.07-13.17,1.71-19.85,2.73a73.7,73.7,0,0,0-17.95,4.94,32.62,32.62,0,0,0-12.94,9.73q-5,6.32-5,17.23a23.31,23.31,0,0,0,2.94,12.11,24.11,24.11,0,0,0,7.59,8,32,32,0,0,0,10.88,4.44,60.94,60.94,0,0,0,13.11,1.36q14.51,0,24.86-3.92a52.49,52.49,0,0,0,16.91-9.9,39.1,39.1,0,0,0,9.67-13,32.53,32.53,0,0,0,3.11-13.14Zm208.85,141.62q-20,21.6-62.83,21.6a122.11,122.11,0,0,1-25.37-2.74,78,78,0,0,1-23.48-8.92,54.41,54.41,0,0,1-17.43-16.11q-6.91-10-7.6-24.35h29.35a21.47,21.47,0,0,0,5,13.38,36.67,36.67,0,0,0,11.4,8.91,55.52,55.52,0,0,0,14.67,5,79.51,79.51,0,0,0,15.19,1.55q14.49,0,24.51-5A46,46,0,0,0,1840.59,401a56.53,56.53,0,0,0,9.49-21.09,117.46,117.46,0,0,0,2.94-27.09V341.19h-.7q-7.59,16.46-23,24.18a71.8,71.8,0,0,1-32.63,7.71q-20,0-34.86-7.2A72.88,72.88,0,0,1,1737,346.51a82.13,82.13,0,0,1-15-28.46,116.62,116.62,0,0,1-5-34.47,133.92,133.92,0,0,1,4.14-32.4A88.17,88.17,0,0,1,1735,221a75.49,75.49,0,0,1,25.55-22.29q15.87-8.75,39-8.75a66.21,66.21,0,0,1,31.07,7.38,52.13,52.13,0,0,1,22.09,22.11h.35V194.09h27.61V356.28Q1880.63,399.83,1860.61,421.43Zm-37.46-79.72a47.94,47.94,0,0,0,16.4-15.78,71.89,71.89,0,0,0,9.15-22.11,106.77,106.77,0,0,0,2.93-24.69,96.71,96.71,0,0,0-2.76-23,64,64,0,0,0-8.8-20.4,45.76,45.76,0,0,0-15.71-14.57q-9.66-5.49-23.47-5.49-14.16,0-24.17,5.32a46.77,46.77,0,0,0-16.4,14.23,60.14,60.14,0,0,0-9.32,20.57,99.69,99.69,0,0,0-2.93,24.35,120.63,120.63,0,0,0,2.42,24,67.5,67.5,0,0,0,8.28,21.77,46.37,46.37,0,0,0,15.54,15.78q9.66,6,24.16,6T1823.15,341.71Zm228,18.34q-20,15.09-50.41,15.09-21.4,0-37.11-6.86a73.16,73.16,0,0,1-26.41-19.2,81.52,81.52,0,0,1-16-29.49,141.12,141.12,0,0,1-6-37.38,106.1,106.1,0,0,1,6.21-37A88.56,88.56,0,0,1,1938.8,216a79.09,79.09,0,0,1,26.58-19.2A81.66,81.66,0,0,1,1999,190q23.82,0,39.53,9.78a78,78,0,0,1,25.2,24.86,98.18,98.18,0,0,1,13.12,32.91,140.6,140.6,0,0,1,2.93,34h-133.6a70,70,0,0,0,2.76,22.12,49.9,49.9,0,0,0,10,18.51A49.1,49.1,0,0,0,1976.6,345q10.7,4.82,25.2,4.8,18.65,0,30.55-8.57t15.71-26.06h29Q2071.18,345,2051.17,360.05Zm-7.08-113.84a50,50,0,0,0-10.7-16,53.1,53.1,0,0,0-56.62-10.63,47.48,47.48,0,0,0-15.71,10.81,51.69,51.69,0,0,0-10.35,15.94,60.18,60.18,0,0,0-4.49,19.37h102.53A59.47,59.47,0,0,0,2044.09,246.21ZM302.9,180a80.62,80.62,0,0,0,13.44-10.37c.8-.77,1.55-1.54,2.31-2.31a81.89,81.89,0,0,0,7.92-9.37,62.37,62.37,0,0,0,6.27-10.77,48.6,48.6,0,0,0,4.36-16.4c1.49-19.39-10-38.67-35.62-54.22L198.42,14,78.16,129.22l-78.29,75,108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.69,49.69,0,0,0-6.8-8.87,89.78,89.78,0,0,0,19.28,2.15H259a85.09,85.09,0,0,0,31-5.79A80.88,80.88,0,0,0,302.9,180Zm-100.59,59.8c-19.32,18.51-50.4,21.24-75.7,5.9l-75.13-45.6,67.44-64.65,76.42,46.39C222.88,198.57,221.36,221.6,202.31,239.84Zm8.94-82.21L140.6,114.74,205,53l69.37,42.11c25.94,15.73,29.31,37.05,10.55,55A60.71,60.71,0,0,1,211.25,157.63Zm29.86,190c-19.57,18.75-46.17,29.08-74.88,29.08a123.84,123.84,0,0,1-64.11-18.19L-.13,296.51v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.85,87.85,0,0,1,241.11,347.67Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,257.52V282.2l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.79A86.86,86.86,0,0,1,241.11,308.68Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.84,123.84,0,0,1-64.11-18.19L-.13,218.54v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.12,19.68-41.49v-1.82A87.14,87.14,0,0,1,241.11,269.7Zm83.69,25.74a94.16,94.16,0,0,1-60.19,25.86h0V348a81.6,81.6,0,0,0,51.73-22.37c14-13.38,21.15-28.11,21-42.64v-2.2A95.14,95.14,0,0,1,324.8,295.44Zm-83.69,91.21c-19.57,18.75-46.17,29.09-74.88,29.09a123.76,123.76,0,0,1-64.11-18.2L-.13,335.49v24.67l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.35,87.35,0,0,1,241.11,386.65Zm85.75-210.21c-.68.69-1.35,1.38-2.06,2.05a99.19,99.19,0,0,1-22.23,15.69,94.53,94.53,0,0,1-26.24,8.71,97.84,97.84,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a52.7,52.7,0,0,1,1.13,12V231h.05A84.48,84.48,0,0,0,290,225.47a80.83,80.83,0,0,0,26.38-16.82c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,62.85,62.85,0,0,0,6.29-10.78,48.5,48.5,0,0,0,4.32-16.44c.09-1.23.2-2.47.19-3.7v-2c-.72,1-1.48,2.06-2.26,3.09A98,98,0,0,1,326.86,176.44Zm0,77.92c-.68.7-1.3,1.41-2,2.1a94.09,94.09,0,0,1-60.19,25.85h0V309h0a81.65,81.65,0,0,0,51.73-22.37,73.51,73.51,0,0,0,16.48-22.49,48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A95.81,95.81,0,0,1,326.82,254.36Zm0-39c-.68.7-1.3,1.41-2,2.1a92.22,92.22,0,0,1-10.62,8.65,93.53,93.53,0,0,1-11.63,7,95.63,95.63,0,0,1-37.94,10.18h-.05l0,26.67h0a81.63,81.63,0,0,0,51.73-22.37c.81-.77,1.51-1.56,2.27-2.34a82,82,0,0,0,7.92-9.38,63.16,63.16,0,0,0,6.29-10.77,48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7v-2.2c-.74,1.08-1.47,2.16-2.27,3.22A98.19,98.19,0,0,1,326.82,215.38Z"})})};const ki=(0,Qe.A)({svg:{width:"auto",height:28},path:{fill:"#7df3e1"}});var Ki=()=>{const r=ki();return(0,i.jsx)("svg",{className:r.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 337.46 428.5",children:(0,i.jsx)("path",{className:r.path,d:"M303,166.05a80.69,80.69,0,0,0,13.45-10.37c.79-.77,1.55-1.53,2.3-2.3a83.12,83.12,0,0,0,7.93-9.38A63.69,63.69,0,0,0,333,133.23a48.58,48.58,0,0,0,4.35-16.4c1.49-19.39-10-38.67-35.62-54.22L198.56,0,78.3,115.23,0,190.25l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.69,19.16-18.36,25.52-42.12,13.7-61.87a49.22,49.22,0,0,0-6.8-8.87A89.17,89.17,0,0,0,259,178.29h.15a85.08,85.08,0,0,0,31-5.79A80.88,80.88,0,0,0,303,166.05ZM202.45,225.86c-19.32,18.51-50.4,21.23-75.7,5.9L51.61,186.15l67.45-64.64,76.41,46.38C223,184.58,221.49,207.61,202.45,225.86Zm8.93-82.22-70.65-42.89L205.14,39,274.51,81.1c25.94,15.72,29.31,37,10.55,55A60.69,60.69,0,0,1,211.38,143.64Zm29.86,190c-19.57,18.75-46.17,29.09-74.88,29.09a123.73,123.73,0,0,1-64.1-18.2L0,282.52v24.67L108.6,373.1a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A87.27,87.27,0,0,1,241.24,333.68Zm0-39c-19.57,18.75-46.17,29.08-74.88,29.08a123.81,123.81,0,0,1-64.1-18.19L0,243.53v24.68l108.6,65.91a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.81,66.42-25.69,12.88-12.34,20-27.13,19.68-41.5v-1.78A87.27,87.27,0,0,1,241.24,294.7Zm0-39c-19.57,18.76-46.17,29.09-74.88,29.09a123.81,123.81,0,0,1-64.1-18.19L0,204.55v24.68l108.6,65.91a111.59,111.59,0,0,0,57.76,16.41c24.92,0,48.8-8.8,66.42-25.68,12.88-12.35,20-27.13,19.68-41.5v-1.82A86.09,86.09,0,0,1,241.24,255.71Zm83.7,25.74a94.15,94.15,0,0,1-60.2,25.86h0V334a81.6,81.6,0,0,0,51.74-22.37c14-13.38,21.14-28.11,21-42.64v-2.19A94.92,94.92,0,0,1,324.94,281.45Zm-83.7,91.21c-19.57,18.76-46.17,29.09-74.88,29.09a123.73,123.73,0,0,1-64.1-18.2L0,321.5v24.68l108.6,65.9a111.6,111.6,0,0,0,57.76,16.42c24.92,0,48.8-8.8,66.42-25.69,12.88-12.34,20-27.13,19.68-41.49v-1.79A86.29,86.29,0,0,1,241.24,372.66ZM327,162.45c-.68.69-1.35,1.38-2.05,2.06a94.37,94.37,0,0,1-10.64,8.65,91.35,91.35,0,0,1-11.6,7,94.53,94.53,0,0,1-26.24,8.71,97.69,97.69,0,0,1-14.16,1.57c.5,1.61.9,3.25,1.25,4.9a53.27,53.27,0,0,1,1.14,12V217h.05a84.41,84.41,0,0,0,25.35-5.55,81,81,0,0,0,26.39-16.82c.8-.77,1.5-1.56,2.26-2.34a82.08,82.08,0,0,0,7.93-9.38A63.76,63.76,0,0,0,333,172.17a48.55,48.55,0,0,0,4.32-16.45c.09-1.23.2-2.47.19-3.7V150q-1.08,1.54-2.25,3.09A96.73,96.73,0,0,1,327,162.45Zm0,77.92c-.69.7-1.31,1.41-2,2.1a94.2,94.2,0,0,1-60.2,25.86h0l0,26.67h0a81.6,81.6,0,0,0,51.74-22.37A73.51,73.51,0,0,0,333,250.13a48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.47.19-3.71v-2.19c-.74,1.07-1.46,2.15-2.27,3.21A95.68,95.68,0,0,1,327,240.37Zm0-39c-.69.7-1.31,1.41-2,2.1a93.18,93.18,0,0,1-10.63,8.65,91.63,91.63,0,0,1-11.63,7,95.47,95.47,0,0,1-37.94,10.18h0V256h0a81.65,81.65,0,0,0,51.74-22.37c.8-.77,1.5-1.56,2.26-2.34a82.08,82.08,0,0,0,7.93-9.38A63.76,63.76,0,0,0,333,211.15a48.56,48.56,0,0,0,4.32-16.44c.09-1.24.2-2.48.19-3.71v-2.2c-.74,1.08-1.46,2.16-2.27,3.22A95.68,95.68,0,0,1,327,201.39Z"})})},Pe=t(72664);const Vr={isOpen:!1,setOpen:()=>{}},Gr=(0,u.createContext)(Vr),Yr=(0,_n.tK)("sidebar-open-state-context");function Qr(r){const{children:e,value:n}=r;return(0,i.jsx)(Gr.Provider,{value:n,children:(0,i.jsx)(Yr.Provider,{value:(0,qn.B)({1:n}),children:e})})}const lr=()=>{const r=(0,u.useContext)(Yr),e=(0,u.useContext)(Gr);if(r===void 0)return e||Vr;const n=r.atVersion(1);if(n===void 0)throw new Error("No context found for version 1.");return n};var Zr=t(72072),Jr=t(73524),nn=t(10394),Xr=t(5893),zi=t(53373),cn=t.n(zi),Hi=t(1125),_r=t(29365),Vi=t(73845),cr=t(72501),Gi=t(32881),Yi=t(27326),Qi=t(13085);const qr=(0,u.createContext)({selectedMenuItemIndex:-1,setSelectedMenuItemIndex:()=>{}});var dr=t(34435);const Zi=(0,Qe.A)(r=>({root:{flexGrow:0,margin:r.spacing(0,2),color:r.palette.navigation.color},selected:e=>({color:`${r.palette.navigation.selectedColor}!important`,borderTop:`solid ${e.sidebarConfig.selectedIndicatorWidth}px ${r.palette.navigation.indicator}`,marginTop:"-1px"}),label:{display:"none"}})),Ji=r=>{const{to:e,label:n,icon:s,value:a}=r,{sidebarConfig:l}=(0,u.useContext)(Pe.yY),O=Zi({sidebarConfig:l}),A=(0,y.zy)(),{selectedMenuItemIndex:L,setSelectedMenuItemIndex:W}=(0,u.useContext)(qr),J=(ht,Et)=>{W(Et===L?-1:Et)},st=a===L&&L>=0||a!==L&&!(L>=0)&&e===A.pathname;return(0,i.jsx)(Qi.A,{"aria-label":n,label:n,icon:s,component:Zr.N_,to:e||A.pathname,onChange:J,value:a,selected:st,classes:O})},ts=r=>{const{children:e,to:n,label:s,icon:a,value:l}=r,{isMobile:O}=(0,dr.Ut)();return O?(0,i.jsx)(Ji,{to:n,label:s,icon:a,value:l}):(0,i.jsx)(i.Fragment,{children:e})},es=(0,Qe.A)(r=>({root:{position:"fixed",backgroundColor:r.palette.navigation.background,color:r.palette.navigation.color,bottom:0,left:0,right:0,zIndex:r.zIndex.snackbar,borderTop:"1px solid #383838","@media print":{display:"none"}},overlay:e=>({background:r.palette.navigation.background,width:"100%",bottom:`${e.sidebarConfig.mobileSidebarHeight}px`,height:`calc(100% - ${e.sidebarConfig.mobileSidebarHeight}px)`,flex:"0 1 auto",overflow:"auto"}),overlayHeader:{display:"flex",color:r.palette.navigation.color,alignItems:"center",justifyContent:"space-between",padding:r.spacing(2,3)},overlayHeaderClose:{color:r.palette.navigation.color},marginMobileSidebar:e=>({marginBottom:`${e.sidebarConfig.mobileSidebarHeight}px`})})),Xi=r=>(0,En.orderBy)(r,({props:{priority:e}})=>Number.isInteger(e)?e:-1,"desc"),_i=u.createElement(ts).type,qi=({children:r,label:e="Menu",open:n,onClose:s})=>{const{sidebarConfig:a}=(0,u.useContext)(Pe.yY),l=es({sidebarConfig:a});return(0,i.jsxs)(Vi.Ay,{anchor:"bottom",open:n,onClose:s,ModalProps:{BackdropProps:{classes:{root:l.marginMobileSidebar}}},classes:{root:l.marginMobileSidebar,paperAnchorBottom:l.overlay},children:[(0,i.jsxs)(nn.A,{className:l.overlayHeader,children:[(0,i.jsx)(cr.A,{variant:"h3",children:e}),(0,i.jsx)(_r.A,{onClick:s,classes:{root:l.overlayHeaderClose},children:(0,i.jsx)(Gi.A,{})})]}),(0,i.jsx)(nn.A,{component:"nav",children:r})]})},ta=r=>{const{sidebarConfig:e}=(0,u.useContext)(Pe.yY),{children:n}=r,s=es({sidebarConfig:e}),a=(0,y.zy)(),[l,O]=(0,u.useState)(-1);(0,u.useEffect)(()=>{O(-1)},[a.pathname]);let A=(0,go.O)(n,W=>W.getElements().filter(J=>J.type===_i));if(n)A.length?A=Xi(A):A.push((0,i.jsx)(ts,{icon:(0,i.jsx)(Yi.A,{}),children:n},"default_menu"));else return null;const L=l>=0&&!A[l].props.to;return(0,i.jsx)(Qr,{value:{isOpen:!0,setOpen:()=>{}},children:(0,i.jsxs)(qr.Provider,{value:{selectedMenuItemIndex:l,setSelectedMenuItemIndex:O},children:[(0,i.jsx)(qi,{label:A[l]&&A[l].props.label,open:L,onClose:()=>O(-1),children:A[l]&&A[l].props.children}),(0,i.jsx)(Hi.A,{className:s.root,"data-testid":"mobile-sidebar-root",component:"nav",children:A})]})})};var ea=t(87849),na=t(10315);const ns=(0,Qe.A)(r=>({drawer:{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",left:0,top:0,bottom:0,zIndex:r.zIndex.appBar,background:r.palette.navigation.background,overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",transition:r.transitions.create("width",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.shortest}),"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"},"@media print":{display:"none"}},drawerWidth:e=>({width:e.sidebarConfig.drawerWidthClosed}),drawerOpen:e=>({width:e.sidebarConfig.drawerWidthOpen,transition:r.transitions.create("width",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.shorter})}),visuallyHidden:{top:0,position:"absolute",zIndex:1e3,transform:"translateY(-200%)","&:focus":{transform:"translateY(5px)"}}}),{name:"BackstageSidebar"});var os;(function(r){r[r.Closed=0]="Closed",r[r.Idle=1]="Idle",r[r.Open=2]="Open"})(os||(os={}));const oa=r=>{const{sidebarConfig:e}=(0,u.useContext)(Pe.yY),{openDelayMs:n=e.defaultOpenDelayMs,closeDelayMs:s=e.defaultCloseDelayMs,disableExpandOnHover:a,children:l}=r,O=ns({sidebarConfig:e}),A=(0,Xr.A)(ne=>ne.breakpoints.down("md"),{noSsr:!0}),[L,W]=(0,u.useState)(0),J=(0,u.useRef)(),{isPinned:st,toggleSidebarPinState:ht}=(0,dr.Ut)(),Et=()=>{st||a||(J.current&&(clearTimeout(J.current),J.current=void 0),L!==2&&!A&&(J.current=window.setTimeout(()=>{J.current=void 0,W(2)},n),W(1)))},bt=()=>{st||a||(J.current&&(clearTimeout(J.current),J.current=void 0),L===1?W(0):L===2&&(J.current=window.setTimeout(()=>{J.current=void 0,W(0)},s)))},Kt=L===2&&!A||st,Vt=ne=>{ne?(W(2),ht()):(W(0),ht())};return(0,i.jsxs)("nav",{style:{},"aria-label":"sidebar nav",children:[(0,i.jsx)(sa,{}),(0,i.jsx)(Qr,{value:{isOpen:Kt,setOpen:Vt},children:(0,i.jsx)(nn.A,{className:O.root,"data-testid":"sidebar-root",onMouseEnter:a?()=>{}:Et,onFocus:a?()=>{}:Et,onMouseLeave:a?()=>{}:bt,onBlur:a?()=>{}:bt,children:(0,i.jsx)(nn.A,{className:cn()(O.drawer,O.drawerWidth,{[O.drawerOpen]:Kt}),children:l})})})]})},ra=r=>{var e;const n=(0,Pe.Rv)((e=r.sidebarOptions)!==null&&e!==void 0?e:{});var s;const a=(0,Pe.i8)((s=r.submenuOptions)!==null&&s!==void 0?s:{}),{children:l,disableExpandOnHover:O,openDelayMs:A,closeDelayMs:L}=r,{isMobile:W}=(0,dr.Ut)();return W?(0,i.jsx)(ta,{children:l}):(0,i.jsx)(Pe.yY.Provider,{value:{sidebarConfig:n,submenuConfig:a},children:(0,i.jsx)(oa,{openDelayMs:A,closeDelayMs:L,disableExpandOnHover:O,children:l})})};function sa(){const{sidebarConfig:r}=(0,u.useContext)(Pe.yY),{focusContent:e,contentRef:n}=(0,Jr.H)(),s=ns({sidebarConfig:r}),{t:a}=(0,ea.i)(na.O);return n!=null&&n.current?(0,i.jsx)(E.A,{onClick:e,variant:"contained",className:cn()(s.visuallyHidden),children:a("skipToContent")}):null}var ia=t(94509),Eo=t(44209),aa=t(79065),la=t(55704),rs=t(62248);const ca=(0,Qe.A)(r=>({root:{zIndex:1e3,position:"relative",overflow:"visible",width:r.spacing(7)+1},drawer:e=>{var n,s;return{display:"flex",flexFlow:"column nowrap",alignItems:"flex-start",position:"fixed",[r.breakpoints.up("sm")]:{marginLeft:e.left,transition:r.transitions.create("margin-left",{easing:r.transitions.easing.sharp,duration:r.transitions.duration.shortest})},top:0,bottom:0,padding:0,background:(s=(n=r.palette.navigation.submenu)===null||n===void 0?void 0:n.background)!==null&&s!==void 0?s:"#404040",overflowX:"hidden",msOverflowStyle:"none",scrollbarWidth:"none",cursor:"default",width:e.submenuConfig.drawerWidthClosed,transitionDelay:`${e.submenuConfig.defaultOpenDelayMs}ms`,"& > *":{flexShrink:0},"&::-webkit-scrollbar":{display:"none"}}},drawerOpen:e=>({width:e.submenuConfig.drawerWidthOpen,[r.breakpoints.down("xs")]:{width:"100%",position:"relative",paddingLeft:r.spacing(3),left:0,top:0}}),title:{fontSize:r.typography.h5.fontSize,fontWeight:r.typography.fontWeightMedium,color:r.palette.common.white,padding:r.spacing(2.5),[r.breakpoints.down("xs")]:{display:"none"}}}),{name:"BackstageSidebarSubmenu"}),da=r=>{const{isOpen:e}=lr(),{sidebarConfig:n,submenuConfig:s}=(0,u.useContext)(Pe.yY),a=e?n.drawerWidthOpen:n.drawerWidthClosed,l=ca({left:a,submenuConfig:s}),{isHoveredOn:O}=(0,u.useContext)(Pe.U1),[A,L]=(0,u.useState)(!1);return(0,u.useEffect)(()=>{L(O)},[O]),(0,i.jsxs)(nn.A,{className:cn()(l.drawer,{[l.drawerOpen]:A}),children:[(0,i.jsx)(cr.A,{variant:"h5",component:"span",className:l.title,children:r.title}),r.children]})};var ua=t(45810),ss=t.n(ua);function is(r,e,n=!1){const s=new URLSearchParams(e.search).toString(),a=ss().parse(s),l=new URLSearchParams(r.search).toString(),O=ss().parse(l),A=n?En.isEqual:En.isMatch;return(0,En.isEqual)(e.pathname,r.pathname)&&A(O,a)}const ha=r=>(0,Qe.A)(e=>{var n,s,a,l;return{root:{color:e.palette.navigation.color,display:"flex",flexFlow:"row nowrap",alignItems:"center",height:48,cursor:"pointer"},buttonItem:{background:"none",border:"none",width:"100%",margin:0,padding:0,textAlign:"inherit",font:"inherit",textTransform:"none"},closed:{width:r.drawerWidthClosed,justifyContent:"center"},open:{[e.breakpoints.up("sm")]:{width:r.drawerWidthOpen}},highlightable:{"&:hover":{background:(a=(n=e.palette.navigation.navItem)===null||n===void 0?void 0:n.hoverBackground)!==null&&a!==void 0?a:"#404040"}},highlighted:{background:(l=(s=e.palette.navigation.navItem)===null||s===void 0?void 0:s.hoverBackground)!==null&&l!==void 0?l:"#404040"},label:{fontWeight:"bold",whiteSpace:"nowrap",lineHeight:"auto",flex:"3 1 auto",width:"110px",overflow:"hidden","text-overflow":"ellipsis"},iconContainer:{boxSizing:"border-box",height:"100%",width:r.iconContainerWidth,marginRight:-e.spacing(2),display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"0"},searchRoot:{marginBottom:12},searchField:{color:"#b5b5b5",fontWeight:e.typography.fontWeightBold,fontSize:e.typography.fontSize},searchFieldHTMLInput:{padding:e.spacing(2,0,2)},searchContainer:{width:r.drawerWidthOpen-r.iconContainerWidth},secondaryAction:{width:e.spacing(6),textAlign:"center",marginRight:e.spacing(1)},closedItemIcon:{width:"100%",justifyContent:"center"},submenuArrow:{display:"flex"},expandButton:{background:"none",border:"none",color:e.palette.navigation.color,width:"100%",cursor:"pointer",position:"relative",height:48},arrows:{position:"absolute",right:10},selected:{"&$root":{borderLeft:`solid ${r.selectedIndicatorWidth}px ${e.palette.navigation.indicator}`,color:e.palette.navigation.selectedColor},"&$closed":{width:r.drawerWidthClosed},"& $closedItemIcon":{paddingRight:r.selectedIndicatorWidth},"& $iconContainer":{marginLeft:-r.selectedIndicatorWidth}}}},{name:"BackstageSidebarItem"});function Ao(r){return(0,u.useMemo)(()=>ha(r),[r])()}const fa=(r,e)=>(0,go.O)(r.props.children,n=>{let s=!1;return n.getElements().forEach(({props:{to:a,dropdownItems:l}})=>{if(!s){if(l!=null&&l.length){l.forEach(({to:O})=>s=s||is(e,(0,Dn.o1)(O)));return}a&&(s=is(e,(0,Dn.o1)(a)))}}),s},[e.pathname]);function ur(r){return r.to===void 0}const ga=u.createElement(da).type,pa=u.forwardRef(function({to:e,end:n,style:s,className:a,activeStyle:l,caseSensitive:O,activeClassName:A="active","aria-current":L="page",...W},J){let{pathname:st}=(0,y.zy)(),{pathname:ht}=(0,y.x$)(e);O||(st=st.toLocaleLowerCase("en-US"),ht=ht.toLocaleLowerCase("en-US"));let Et=st===ht;!Et&&!n&&(Et=st.startsWith(`${ht}/`));const bt=Et?L:void 0;return(0,i.jsx)(f.N_,{...W,to:e,ref:J,"aria-current":bt,style:{...s,...Et?l:void 0},className:cn()([typeof a!="function"?a:void 0,Et?A:void 0])})}),as=(0,u.forwardRef)((r,e)=>{const{icon:n,text:s,hasNotifications:a=!1,hasSubmenu:l=!1,disableHighlight:O=!1,onClick:A,noTrack:L,children:W,className:J,...st}=r,{sidebarConfig:ht}=(0,u.useContext)(Pe.yY),Et=Ao(ht),{isOpen:bt}=lr(),Kt=!bt&&l?{display:"flex",marginLeft:"20px"}:{lineHeight:"0"},Vt=(0,i.jsxs)(nn.A,{style:Kt,children:[(0,i.jsx)(n,{fontSize:"small"}),!bt&&l?(0,i.jsx)(rs.A,{fontSize:"small"}):(0,i.jsx)(i.Fragment,{})]}),ne=(0,i.jsx)(ia.A,{color:"secondary",variant:"dot",overlap:"circular",invisible:!a,className:cn()({[Et.closedItemIcon]:!bt}),children:Vt}),xe=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(nn.A,{"data-testid":"login-button",className:Et.iconContainer,children:ne}),s&&(0,i.jsx)(cr.A,{variant:"subtitle2",component:"span",className:Et.label,children:s}),(0,i.jsx)("div",{className:Et.secondaryAction,children:W})]}),Ze=bt?xe:ne,Fn={onClick:A,className:cn()(J,Et.root,bt?Et.open:Et.closed,ur(r)&&Et.buttonItem,{[Et.highlightable]:!O})},us=(0,Pr.s)(),{pathname:hr}=(0,y.x$)(!ur(r)&&r.to?r.to:""),hs=(0,u.useCallback)(Ua=>{if(!L){const Fa="click",$a=s!=null?s:"Sidebar Item",Na=hr?{attributes:{to:hr}}:void 0;us.captureEvent(Fa,$a,Na)}A==null||A(Ua)},[us,s,hr,L,A]);return ur(r)?(0,i.jsx)(E.A,{role:"button","aria-label":s,...Fn,ref:e,onClick:hs,children:Ze}):(0,i.jsx)(pa,{...Fn,activeClassName:Et.selected,to:r.to?r.to:"",ref:e,"aria-label":s||r.to,...st,onClick:hs,children:Ze})}),va=({children:r,...e})=>{const{sidebarConfig:n}=(0,u.useContext)(Pe.yY),s=Ao(n),[a,l]=(0,u.useState)(!1),O=(0,y.zy)(),A=fa(r,O),L=(0,Xr.A)(ht=>ht.breakpoints.down("sm")),W=()=>{l(!0)},J=()=>{l(!1)},st=()=>L?a?(0,i.jsx)(la.A,{fontSize:"small",className:s.submenuArrow}):(0,i.jsx)(aa.A,{fontSize:"small",className:s.submenuArrow}):!a&&(0,i.jsx)(rs.A,{fontSize:"small",className:s.submenuArrow});return(0,i.jsx)(Pe.U1.Provider,{value:{isHoveredOn:a,setIsHoveredOn:l},children:(0,i.jsxs)("div",{"data-testid":"item-with-submenu",onMouseLeave:J,onTouchStart:a?J:W,onMouseEnter:W,className:cn()(a&&s.highlighted),children:[(0,i.jsx)(as,{hasSubmenu:!0,className:A?s.selected:"",...e,children:st()}),a&&r]})})},ls=(0,u.forwardRef)((r,e)=>{const[n]=(0,go.O)(r.children,s=>s.getElements().filter(a=>a.type===ga));return n?(0,i.jsx)(va,{...r,children:n}):(0,i.jsx)(as,{...r,ref:e})});function nl(r){const{sidebarConfig:e}=useContext(SidebarConfigContext),[n,s]=useState(""),a=Ao(e),l=r.icon?r.icon:SearchIcon,O=()=>{r.onSearch(n),s("")},A=st=>{st.key==="Enter"&&(st.preventDefault(),O())},L=st=>{s(st.target.value)},W=st=>{st.preventDefault(),st.stopPropagation()},J=st=>{O(),st.preventDefault()};return _jsx(Box,{className:a.searchRoot,children:_jsx(ls,{icon:l,to:r.to,onClick:J,disableHighlight:!0,children:_jsx(TextField,{placeholder:"Search",value:n,onClick:W,onChange:L,onKeyDown:A,className:a.searchContainer,InputProps:{disableUnderline:!0,className:a.searchField},inputProps:{className:a.searchFieldHTMLInput}})})})}const ol=(0,Eo.A)("div")({flex:1},{name:"BackstageSidebarSpace"}),rl=(0,Eo.A)("div")({height:8},{name:"BackstageSidebarSpacer"}),ma=(0,Eo.A)("hr")(({theme:r})=>({height:1,width:"100%",background:"#383838",border:"none",margin:r.spacing(1.2,0)}),{name:"BackstageSidebarDivider"}),ya=r=>({overflowY:"auto","&::-webkit-scrollbar":{backgroundColor:r.palette.background.default,width:"5px",borderRadius:"5px"},"&::-webkit-scrollbar-thumb":{backgroundColor:r.palette.text.secondary,borderRadius:"5px"}}),sl=(0,Eo.A)("div")(({theme:r})=>{const e=ya(r);return{flex:"0 1 auto",overflowX:"hidden",width:"calc(100% - 5px)",minHeight:"48px",overflowY:"hidden","@media (hover: none)":e,"&:hover":e}}),il=()=>{const{sidebarConfig:r}=useContext(SidebarConfigContext),e=Ao(r),{isOpen:n,setOpen:s}=useSidebarOpenState();if(useMediaQuery(O=>O.breakpoints.down("md"),{noSsr:!0}))return null;const l=()=>{s(!n)};return _jsx(Button,{role:"button",onClick:l,className:e.expandButton,"aria-label":"Expand Sidebar","data-testid":"sidebar-expand-button",children:_jsx(Box,{className:e.arrows,children:n?_jsx(DoubleArrowLeft,{}):_jsx(DoubleArrowRight,{})})})},Ea=(0,Qe.A)({root:{width:Pe.hC.drawerWidthClosed,height:3*Pe.hC.logoHeight,display:"flex",flexFlow:"row nowrap",alignItems:"center",marginBottom:-14},link:{width:Pe.hC.drawerWidthClosed,marginLeft:24}}),Aa=()=>{const r=Ea(),{isOpen:e}=lr();return(0,i.jsx)("div",{className:r.root,children:(0,i.jsx)(Zr.N_,{to:"/docs/default/component/local/",underline:"none",className:r.link,children:e?(0,i.jsx)(Wi,{}):(0,i.jsx)(Ki,{})})})},xa=({children:r})=>(0,i.jsxs)(Jr.G,{children:[(0,i.jsxs)(ra,{children:[(0,i.jsx)(Aa,{}),(0,i.jsx)(ma,{}),(0,i.jsx)(ls,{icon:$i.A,to:"/docs/default/component/local",text:"Docs Preview"})]}),r]});var Ca=t(71677),Sa=t(62437),ba=t(55484),Oa=t(45061),Pa=t(16203);const Ta=(0,Qe.A)(r=>({headerIcon:{color:r.palette.common.white,width:"32px",height:"32px"},content:{backgroundColor:r.palette.background.default},contentToolbar:{display:"flex",justifyContent:"flex-end",padding:0}}));var cs;(function(r){r.LIGHT="light",r.DARK="dark"})(cs||(cs={}));const wa=()=>{const r=(0,In.gf)(eo),e=Ta(),[n,s]=(0,u.useState)(r.getActiveThemeId()==="dark"?"dark":"light"),a={light:{icon:ba.A,title:"Dark theme"},dark:{icon:Sa.A,title:"Light theme"}},{title:l,icon:O}=a[n],A=()=>{s(L=>{const W=L==="light"?"dark":"light";return r.setActiveThemeId(W),W})};return(0,i.jsx)(nn.A,{display:"flex",alignItems:"center",mr:2,children:(0,i.jsx)(Ca.Ay,{title:l,arrow:!0,children:(0,i.jsx)(_r.A,{size:"small",onClick:A,children:(0,i.jsx)(O,{className:e.headerIcon})})})})},Ra=()=>(0,i.jsxs)(g.Wj,{children:[(0,i.jsx)(Oa.T,{}),(0,i.jsx)(Pa.p,{withSearch:!1})]}),Ia=(0,i.jsx)(Ra,{}),ds=li({apis:Mi,configLoader:Fi,plugins:Object.values(o)}),Da=ds.getProvider(),La=ds.getRouter(),Ma=g.Ju.provide((0,d.Hr)({name:"ThemeToggleAddon",component:wa,location:m.e.Header})),ja=(0,i.jsxs)(Br,{children:[(0,i.jsx)(y.C5,{to:"/docs/default/component/local/"},"/"),(0,i.jsx)(y.qh,{path:"/catalog/:namespace/:kind/:name",element:(0,i.jsx)(Ii,{})}),(0,i.jsx)(y.qh,{path:"/docs",element:(0,i.jsx)(g.$j,{}),children:(0,i.jsx)(c.K,{})}),(0,i.jsxs)(y.qh,{path:"/docs/:namespace/:kind/:name/*",element:(0,i.jsx)(g.Wj,{}),children:[Ia,(0,i.jsx)(d.po,{children:(0,i.jsx)(Ma,{})})]})]});var Ba=()=>(0,i.jsx)(Da,{children:(0,i.jsx)(La,{children:(0,i.jsx)(xa,{children:ja})})});x.createRoot(document.getElementById("root")).render((0,i.jsx)(Ba,{}))},43836:function(Y,w,t){"use strict";t.d(w,{qO:function(){return x},tK:function(){return u}});var o=t(14041),i=t(63544);function u(g){return(0,i.Q)(g,()=>(0,o.createContext)(void 0))}function x(g){return(0,o.useContext)(u(g))}function y(g){return{set(c){globalThis[`__@backstage/${g}__`]=createContext(createVersionedValueMap(c))},reset(){delete globalThis[`__@backstage/${g}__`]}}}},10602:function(Y,w,t){"use strict";t.d(w,{B:function(){return o}});function o(i){Object.freeze(i);const u={atVersion(x){return i[x]}};return Object.defineProperty(u,"$map",{configurable:!0,enumerable:!0,get(){return i}}),u}},63544:function(Y,w,t){"use strict";t.d(w,{Q:function(){return x}});function o(){return typeof window!="undefined"&&window.Math===Math?window:typeof self!="undefined"&&self.Math===Math?self:Function("return this")()}const i=o(),u=y=>`__@backstage/${y}__`;function x(y,g){const c=u(y);let d=i[c];return d||(d=g(),i[c]=d,d)}},7341:function(Y,w,t){"use strict";t.d(w,{v:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"plugin.catalog.service"})},82292:function(Y,w,t){"use strict";t.d(w,{n:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"plugin.catalog.entity-presentation"})},88083:function(Y,w,t){"use strict";t.d(w,{T:function(){return y}});var o=t(6820),i=t(72348),u=t(46123),x=t.n(u);function y(d,m){const{kind:E,namespace:S,name:p,title:C,description:f,displayName:R,type:P}=g(d),T=(0,o.U2)({kind:E||"unknown",namespace:S||i.oQ,name:p||"unknown"}),M=c({kind:E,namespace:S,name:p,context:m}),D=[R,C,M].find(K=>K&&typeof K=="string"),b=[D!==T?T:void 0,P,f].filter(K=>K&&typeof K=="string").join(" | ");return{entityRef:T,primaryTitle:D,secondaryTitle:b||void 0,Icon:void 0}}function g(d){if(typeof d=="string"){let m=d.indexOf(":");const E=d.indexOf("/");E!==-1&&E<m&&(m=-1);const S=m===-1?void 0:d.slice(0,m),p=E===-1?void 0:d.slice(m+1,E),C=d.slice(Math.max(m+1,E+1));return{kind:S,namespace:p,name:C}}if(typeof d=="object"&&d!==null){const m=[x()(d,"kind")].find(P=>P&&typeof P=="string"),E=[x()(d,"metadata.namespace"),x()(d,"namespace")].find(P=>P&&typeof P=="string"),S=[x()(d,"metadata.name"),x()(d,"name")].find(P=>P&&typeof P=="string"),p=[x()(d,"metadata.title")].find(P=>P&&typeof P=="string"),C=[x()(d,"metadata.description")].find(P=>P&&typeof P=="string"),f=[x()(d,"spec.profile.displayName")].find(P=>P&&typeof P=="string"),R=[x()(d,"spec.type")].find(P=>P&&typeof P=="string");return{kind:m,namespace:E,name:S,title:p,description:C,displayName:f,type:R}}return{}}function c(d){var m,E,S,p,C;const f=((m=d.kind)===null||m===void 0?void 0:m.toLocaleLowerCase("en-US"))||"unknown",R=d.namespace||i.oQ,P=d.name||"unknown",T=(S=d.context)===null||S===void 0||(E=S.defaultKind)===null||E===void 0?void 0:E.toLocaleLowerCase("en-US"),M=(C=d.context)===null||C===void 0||(p=C.defaultNamespace)===null||p===void 0?void 0:p.toLocaleLowerCase("en-US");let D=P;return(M&&R.toLocaleLowerCase("en-US")!==M||R!==i.oQ)&&(D=`${R}/${D}`),T&&f.toLocaleLowerCase("en-US")!==T&&(D=`${f}:${D}`),D}},3169:function(Y,w,t){"use strict";t.d(w,{f:function(){return c}});var o=t(6820),i=t(72427),u=t(14041),x=t(82292),y=t(88083);function g(d,m,E){const[S,p]=(0,u.useState)(d);return(0,u.useEffect)(()=>{p(d);const C=m==null?void 0:m.subscribe({next:f=>{p(f)},complete:()=>{C==null||C.unsubscribe()}});return()=>{C==null||C.unsubscribe()}},E),S}function c(d,m){const S=(0,i.Q2)().get(x.n),p=[S,JSON.stringify(d),JSON.stringify(m||null)],C=(0,u.useMemo)(()=>S?S.forEntity(typeof d=="string"||"metadata"in d?d:(0,o.U2)(d),m):{snapshot:(0,y.T)(d,m)},p);return g(C.snapshot,C.update$,[C])}},18:function(Y,w,t){"use strict";t.d(w,{a:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"catalog-react.starred-entities"})},54203:function(Y,w,t){"use strict";t.d(w,{GI:function(){return C}});var o=t(31085),i=t(14041),u=t(5893),x=t(54917),y=t(64947),g=t(73845),c=t(10394),d=t(72501),m=t(42899),E=t(65859);const S=f=>{var R;const P=(0,u.A)(K=>{var V,tt;return K.breakpoints.down((tt=(V=f.options)===null||V===void 0?void 0:V.drawerBreakpoint)!==null&&tt!==void 0?tt:"md")}),T=(0,x.A)(),[M,D]=(0,i.useState)(!1);var b;return P?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y.A,{style:{marginTop:T.spacing(1),marginLeft:T.spacing(1)},onClick:()=>D(!0),startIcon:(0,o.jsx)(E.A,{}),children:"Filters"}),(0,o.jsx)(g.Ay,{open:M,onClose:()=>D(!1),anchor:(b=(R=f.options)===null||R===void 0?void 0:R.drawerAnchor)!==null&&b!==void 0?b:"left",disableAutoFocus:!0,keepMounted:!0,variant:"temporary",children:(0,o.jsxs)(c.A,{m:2,children:[(0,o.jsx)(d.A,{variant:"h6",component:"h2",style:{marginBottom:T.spacing(1)},children:"Filters"}),f.children]})})]}):(0,o.jsx)(m.A,{item:!0,lg:2,children:f.children})},p=f=>(0,o.jsx)(m.A,{item:!0,xs:12,lg:10,children:f.children}),C=f=>(0,o.jsx)(m.A,{container:!0,style:{position:"relative"},children:f.children});C.Filters=S,C.Content=p},50207:function(Y,w,t){"use strict";t.d(w,{y:function(){return Q}});var o=t(31085),i=t(58837),u=t(10394),x=t(72501),y=t(6924),g=t(20577),c=t(14041),d=t(72427),m=t(91638),E=t(7341),S=t(69076),p=t(86901),C=t(44148),f=t(41260);const R=(0,o.jsx)(f.A,{fontSize:"small"}),P=(0,o.jsx)(C.A,{fontSize:"small"});function T({selected:H}){return(0,o.jsx)(S.A,{icon:R,checkedIcon:P,checked:H})}const M=(0,c.memo)(H=>{const{selected:_,value:nt,availableOptions:ct,showCounts:pt}=H,Pt=pt?`${nt} (${ct==null?void 0:ct[nt]})`:nt;return(0,o.jsx)(p.A,{control:(0,o.jsx)(T,{selected:_}),label:Pt,onClick:it=>it.preventDefault()})});var D=t(16249),b=t(53373),K=t.n(b);const V=(0,i.A)({input:{}},{name:"CatalogReactEntityAutocompletePickerInput"});function tt(H){const _=V();return(0,o.jsx)(D.A,{variant:"outlined",...H,className:K()(_.input,H.className)})}var k=t(21405);const G=(0,i.A)({root:{},label:{}},{name:"CatalogReactEntityAutocompletePicker"});function Q(H){var _;const{label:nt,name:ct,path:pt,showCounts:Pt,Filter:it,InputProps:vt,initialSelectedOptions:at=[]}=H,ut=G(),{updateFilters:ft,filters:q,queryParameters:{[ct]:At}}=(0,k.nK)(),xt=(0,d.gf)(E.v),{value:ot}=(0,m.default)(async()=>{var yt;const It=pt,{facets:wt}=await xt.getEntityFacets({facets:[It],filter:(yt=q.kind)===null||yt===void 0?void 0:yt.getCatalogFilters()});return Object.fromEntries(wt[It].map(({value:Bt,count:Ut})=>[Bt,Ut]))},[q.kind]),rt=(0,c.useMemo)(()=>[At].flat().filter(Boolean),[At]);var gt;const[Tt,Ct]=(0,c.useState)(rt.length?rt:(gt=(_=q[ct])===null||_===void 0?void 0:_.values)!==null&&gt!==void 0?gt:at);(0,c.useEffect)(()=>{rt.length&&Ct(rt)},[rt]);const $=Object.keys(ot!=null?ot:{}),z=Tt.length&&$.length;(0,c.useEffect)(()=>{ft({[ct]:z?new it(Tt):void 0})},[ct,z,Tt,it,ft]);const mt=q[ct];return mt&&typeof mt=="object"&&!("values"in mt)||!$.length||$.length<=1?null:(0,o.jsx)(u.A,{className:ut.root,pb:1,pt:1,children:(0,o.jsxs)(x.A,{className:ut.label,variant:"button",component:"label",children:[nt,(0,o.jsx)(g.Ay,{multiple:!0,disableCloseOnSelect:!0,options:$,value:Tt,onChange:(yt,It)=>Ct(It),renderOption:(yt,{selected:It})=>(0,o.jsx)(M,{selected:It,value:yt,availableOptions:ot,showCounts:!!Pt}),size:"small",popupIcon:(0,o.jsx)(y.A,{"data-testid":`${String(ct)}-picker-expand`}),renderInput:yt=>(0,o.jsx)(tt,{...yt,...vt})})]})})}},72987:function(Y,w,t){"use strict";t.d(w,{t:function(){return xt}});var o=t(31085),i=t(6820),u=t(58837),x=t(86901),y=t(10394),g=t(69076),c=t(71677),d=t(72501),m=t(16249),E=t(44148),S=t(41260),p=t(6924),C=t(20577),f=t(14041),R=t(21405),P=t(92822),T=t(92367),M=t(48108),D=t(47966),b=t(90184),K=t(72427),V=t(5030),tt=t(7341);function k({enabled:ot}){const rt=(0,K.gf)(tt.v),[gt]=(0,f.useState)(async()=>{if(!ot)return[];const Tt="relations.ownedBy";return rt.getEntityFacets({facets:[Tt]}).then(Ct=>Ct.facets[Tt].map($=>$.value).map($=>{const{kind:z,name:mt,namespace:yt}=(0,i.KU)($);return{apiVersion:"backstage.io/v1beta1",kind:z,metadata:{name:mt,namespace:yt}}}).sort(($,z)=>($.metadata.namespace||"").localeCompare(z.metadata.namespace||"","en-US")||$.metadata.name.localeCompare(z.metadata.name,"en-US")||$.kind.localeCompare(z.kind,"en-US"))).catch(()=>[])});return(0,V.default)(async(Tt,Ct)=>{const $=await gt;if(!$)return{items:[]};var z;const mt=(z=Ct==null?void 0:Ct.limit)!==null&&z!==void 0?z:20,{text:yt,start:It}=G(Tt),wt=$.filter(Ut=>_(yt,Ut)),Bt=It+mt;return{items:wt.slice(0,Bt),...H({entities:wt,limit:Bt,payload:{text:yt,start:Bt}})}},[gt],{loading:!0,value:{items:[]}})}function G(ot){return Q(ot)&&ot.cursor?JSON.parse(atob(ot.cursor)):{text:ot.text||"",start:0}}function Q(ot){return!!ot.cursor}function H({entities:ot,limit:rt,payload:gt}){return ot.length>rt?{cursor:btoa(JSON.stringify(gt))}:{}}function _(ot,rt){var gt;const Tt=ot.trim();return rt.kind.includes(Tt)||((gt=rt.metadata.namespace)===null||gt===void 0?void 0:gt.includes(Tt))||rt.metadata.name.includes(Tt)}function nt(){const ot=(0,K.gf)(tt.v);return(0,V.default)(async(rt,gt)=>{const Tt=rt,Ct=rt;var $;const z=($=gt==null?void 0:gt.limit)!==null&&$!==void 0?$:20;if(Ct.cursor){const yt=await ot.queryEntities({cursor:Ct.cursor,limit:z});return{cursor:yt.pageInfo.nextCursor,items:[...Ct.items,...yt.items]}}const mt=await ot.queryEntities({fullTextFilter:{term:Tt.text||"",fields:["metadata.name","kind","spec.profile.displayname","metadata.title"]},filter:{kind:["User","Group"]},orderFields:[{field:"metadata.name",order:"asc"}],limit:z});return{cursor:mt.pageInfo.nextCursor,items:mt.items}},[],{loading:!0})}var ct=t(76842);function pt({mode:ot,initialSelectedOwnersRefs:rt}){const gt=ot==="owners-only",Tt=nt(),Ct=k({enabled:gt}),[$,z]=gt?Ct:Tt;return[$,z,Pt({enabled:!gt,initialSelectedOwnersRefs:rt})]}function Pt({enabled:ot,initialSelectedOwnersRefs:rt}){const gt=(0,f.useRef)({}),Tt=(0,K.gf)(tt.v),[,Ct]=(0,V.default)(async()=>{(await Tt.getEntitiesByRefs({entityRefs:rt})).items.forEach(z=>{z&&(gt.current[(0,i.U2)(z)]=z)})},[]);return(0,ct.u)(()=>{ot&&rt.length>0&&Ct()}),{getEntity:$=>gt.current[$],setEntity:$=>{gt.current[(0,i.U2)($)]=$}}}var it=t(7031),vt=t(3169);const at=(0,u.A)({root:{},label:{},input:{},fullWidth:{width:"100%"},boxLabel:{width:"100%",textOverflow:"ellipsis",overflow:"hidden"}},{name:"CatalogReactEntityOwnerPicker"}),ut=(0,it.A)(ot=>({label:{width:"100%"},root:{width:"90%"}}),{name:"FixedWidthFormControlLabel"})(x.A),ft=(0,o.jsx)(S.A,{fontSize:"small"}),q=(0,o.jsx)(E.A,{fontSize:"small"});function At(ot){const rt=at(),gt=ot.entity.kind.toLocaleLowerCase("en-US")==="group",{primaryTitle:Tt}=(0,vt.f)(ot.entity);return(0,o.jsx)(y.A,{className:rt.fullWidth,children:(0,o.jsx)(ut,{className:rt.fullWidth,control:(0,o.jsx)(g.A,{icon:ft,checkedIcon:q,checked:ot.isSelected}),onClick:Ct=>Ct.preventDefault(),label:(0,o.jsx)(c.Ay,{title:Tt,children:(0,o.jsxs)(y.A,{display:"flex",alignItems:"center",children:[gt?(0,o.jsx)(D.A,{fontSize:"small"}):(0,o.jsx)(M.A,{fontSize:"small"}),"\xA0",(0,o.jsx)(y.A,{className:rt.boxLabel,children:(0,o.jsx)(d.A,{noWrap:!0,children:Tt})})]})})})})}const xt=ot=>{var rt,gt;const Tt=at(),{mode:Ct="owners-only"}=ot||{},{updateFilters:$,filters:z,queryParameters:{owners:mt}}=(0,R.nK)(),[yt,It]=(0,f.useState)(""),wt=(0,f.useMemo)(()=>[mt].flat().filter(Boolean),[mt]);var Bt;const[Ut,Ot]=(0,f.useState)(wt.length?wt:(Bt=(rt=z.owners)===null||rt===void 0?void 0:rt.values)!==null&&Bt!==void 0?Bt:[]),[{value:Nt,loading:Xt},se,ie]=pt({mode:Ct,initialSelectedOwnersRefs:Ut});(0,T.s)(()=>se({text:yt}),[yt,se],250);const _t=(Nt==null?void 0:Nt.items)||[];return(0,f.useEffect)(()=>{if(wt.length){const Ft=new P.N9(wt);Ot(Ft.values)}},[wt]),(0,f.useEffect)(()=>{$({owners:Ut.length?new P.N9(Ut):void 0})},[Ut,$]),["user","group"].includes(((gt=z.kind)===null||gt===void 0?void 0:gt.value.toLocaleLowerCase("en-US"))||"")?null:(0,o.jsx)(y.A,{className:Tt.root,pb:1,pt:1,children:(0,o.jsxs)(d.A,{className:Tt.label,variant:"button",component:"label",children:["Owner",(0,o.jsx)(C.Ay,{multiple:!0,disableCloseOnSelect:!0,loading:Xt,options:_t,value:Ut,getOptionSelected:(Ft,Zt)=>typeof Zt=="string"?(0,i.U2)(Ft)===Zt:Ft===Zt,getOptionLabel:Ft=>{const Zt=typeof Ft=="string"?ie.getEntity(Ft)||(0,i.KU)(Ft,{defaultKind:"group",defaultNamespace:"default"}):Ft;return(0,b.Z)(Zt,(0,b.S)(Zt))},onChange:(Ft,Zt)=>{It(""),Ot(Zt.map(Ce=>{const ke=typeof Ce=="string"?Ce:(0,i.U2)(Ce);return typeof Ce!="string"&&ie.setEntity(Ce),ke}))},filterOptions:Ft=>Ft,renderOption:(Ft,{selected:Zt})=>(0,o.jsx)(At,{entity:Ft,isSelected:Zt}),size:"small",popupIcon:(0,o.jsx)(p.A,{"data-testid":"owner-picker-expand"}),renderInput:Ft=>(0,o.jsx)(m.A,{...Ft,className:Tt.input,onChange:Zt=>{It(Zt.currentTarget.value)},variant:"outlined"}),ListboxProps:{onScroll:Ft=>{const Zt=Ft.currentTarget;Math.abs(Zt.scrollHeight-Zt.clientHeight-Zt.scrollTop)<1&&(Nt!=null&&Nt.cursor)&&se({items:Nt.items,cursor:Nt.cursor})},"data-testid":"owner-picker-listbox"}})]})})}},8859:function(Y,w,t){"use strict";t.d(w,{z:function(){return f}});var o=t(31085),i=t(6820),u=t(72348),x=t(72072),y=t(9222),g=t(14041),c=t(29207),d=t(58837),m=t(10394),E=t(71677),S=t(3169);const p=(0,d.A)(P=>({root:{display:"inline-flex",alignItems:"center"},icon:{marginRight:P.spacing(.5),color:P.palette.text.secondary,lineHeight:0}}),{name:"CatalogReactEntityDisplayName"}),C=P=>{const{entityRef:T,hideIcon:M,disableTooltip:D,defaultKind:b,defaultNamespace:K}=P,V=p(),{primaryTitle:tt,secondaryTitle:k,Icon:G}=(0,S.f)(T,{defaultKind:b,defaultNamespace:K});let Q=(0,o.jsx)(o.Fragment,{children:tt});return Q=(0,o.jsxs)(m.A,{component:"span",className:V.root,children:[G&&!M?(0,o.jsx)(m.A,{component:"span",className:V.icon,children:(0,o.jsx)(G,{fontSize:"inherit"})}):null,Q]}),k&&!D&&(Q=(0,o.jsx)(E.Ay,{enterDelay:1500,title:k,children:Q})),Q},f=(0,g.forwardRef)((P,T)=>{const{entityRef:M,defaultKind:D,defaultNamespace:b,title:K,children:V,hideIcon:tt,...k}=P,G=R(P.entityRef);var Q;const H=(Q=V!=null?V:K)!==null&&Q!==void 0?Q:(0,o.jsx)(C,{entityRef:M,defaultKind:D,defaultNamespace:b,hideIcon:tt});return(0,o.jsx)(x.N_,{...k,ref:T,to:G,children:H})});function R(P){const T=(0,y.S)(c.s);let M,D,b;if(typeof P=="string"){const tt=(0,i.KU)(P);M=tt.kind,D=tt.namespace,b=tt.name}else"metadata"in P?(M=P.kind,D=P.metadata.namespace,b=P.metadata.name):(M=P.kind,D=P.namespace,b=P.name);M=M.toLocaleLowerCase("en-US");var K;D=(K=D==null?void 0:D.toLocaleLowerCase("en-US"))!==null&&K!==void 0?K:u.oQ;const V={kind:encodeURIComponent(M),namespace:encodeURIComponent(D),name:encodeURIComponent(b)};return T(V)}},34428:function(Y,w,t){"use strict";t.d(w,{i:function(){return y}});var o=t(31085),i=t(6820),u=t(14041),x=t(8859);function y(g){const{entityRefs:c,hideIcons:d,...m}=g;return(0,o.jsx)(o.Fragment,{children:c.map((E,S)=>{const p=typeof E=="string"?E:(0,i.U2)(E);return(0,o.jsxs)(u.Fragment,{children:[S>0&&", ",(0,o.jsx)(x.z,{...m,entityRef:E,hideIcon:d})]},`${S}.${p}`)})})}},90184:function(Y,w,t){"use strict";t.d(w,{S:function(){return x},Z:function(){return y}});var o=t(72348),i=t(46123),u=t.n(i);function x(g,c){const d=c==null?void 0:c.defaultKind;let m,E,S;return"metadata"in g?(m=g.kind,E=g.metadata.namespace,S=g.metadata.name):(m=g.kind,E=g.namespace,S=g.name),(E===void 0||E==="")&&(E=o.oQ),(c==null?void 0:c.defaultNamespace)!==void 0?(c==null?void 0:c.defaultNamespace)===E&&(E=void 0):E===o.oQ&&(E=void 0),m=m.toLocaleLowerCase("en-US"),m=d&&d.toLocaleLowerCase("en-US")===m?void 0:m,`${m?`${m}:`:""}${E?`${E}/`:""}${S}`}function y(g,c){for(const d of["spec.profile.displayName","metadata.title"]){const m=u()(g,d);if(m&&typeof m=="string")return m}return c}},91035:function(Y,w,t){"use strict";t.d(w,{m:function(){return c}});var o=t(31085),i=t(58837),u=t(14041),x=t(92822),y=t(50207);const g=(0,i.A)({input:{}},{name:"CatalogReactEntityTagPicker"}),c=d=>{const m=g();return(0,o.jsx)(y.y,{label:"Tags",name:"tags",path:"metadata.tags",Filter:x.q_,showCounts:d.showCounts,InputProps:{className:m.input}})}},67626:function(Y,w,t){"use strict";t.d(w,{y:function(){return Pt}});var o=t(31085),i=t(72427),u=t(65461),x=t(58837),y=t(40703),g=t(72501),c=t(58007),d=t(26343),m=t(46423),E=t(5951),S=t(65569),p=t(9684),C=t(80109),f=t(14041),R=t(92822),P=t(21405),T=t(16009),M=t(45250),D=t(91638),b=t(7341),K=t(26796),V=t(5030),tt=t(71910);function k(){const it=(0,i.gf)(T.K),vt=(0,i.gf)(b.v),{filters:at}=(0,P.nK)(),{value:ut,loading:ft}=(0,D.default)(async()=>(await it.getBackstageIdentity()).ownershipEntityRefs,[]),{user:q,owners:At,...xt}=at,ot=(0,K.$3)((0,M.compact)(Object.values(xt))),[{value:rt,loading:gt},Tt]=(0,V.default)(async $=>{const z=G($.owners,$.ownershipEntityRefs);if(z===void 0)return 0;const{["metadata.name"]:mt,...yt}=$.filter.filter,{totalItems:It}=await vt.queryEntities({...$.filter,filter:{...yt,"relations.ownedBy":z},limit:0});return It},[],{loading:!0});return(0,tt.A)(()=>{Object.keys(ot.filter).length!==0&&ut!==void 0&&Tt({ownershipEntityRefs:ut,owners:At,filter:ot})},[ut,At,ot]),{count:rt,loading:ft||gt,filter:(0,f.useMemo)(()=>R.tN.owned(ut!=null?ut:[]),[ut]),ownershipEntityRefs:ut}}function G(it,vt){if(vt===void 0)return;var at;const ut=(at=it==null?void 0:it.values)!==null&&at!==void 0?at:[];if(ut.length){const ft=(0,M.intersection)(ut,vt);return ft.length===0?void 0:ft}return vt}function Q(){const it=(0,i.gf)(b.v),{filters:vt}=(0,P.nK)(),at=(0,f.useRef)(),ut=(0,f.useMemo)(()=>{const{user:At,...xt}=vt,ot=(0,M.compact)(Object.values(xt)),rt=(0,K.$3)(ot),gt={...rt,limit:0};return Object.keys(rt.filter).length===0?(at.current=void 0,at.current):(0,M.isEqual)(gt,at.current)?at.current:(at.current=gt,gt)},[vt]),{value:ft,loading:q}=(0,D.default)(async()=>{if(ut===void 0)return 0;const{totalItems:At}=await it.queryEntities(ut);return At},[ut]);return{count:ft,loading:q}}var H=t(6820),_=t(56889);function nt(){const it=(0,i.gf)(b.v),{filters:vt}=(0,P.nK)(),{starredEntities:at}=(0,_.I)(),ut=(0,f.useRef)(),ft=(0,f.useMemo)(()=>{const{user:ot,...rt}=vt,gt=(0,M.compact)(Object.values(rt)),Tt=(0,K.$3)(gt),$={...Tt,filter:{...Tt.filter,["metadata.name"]:Array.from(at).map(z=>(0,H.KU)(z).name)},limit:1e3};return(0,M.isEqual)($,ut.current)?ut.current:(ut.current=$,$)},[vt,at]),{value:q,loading:At}=(0,D.default)(async()=>at.size?(await it.queryEntities(ft)).items.map(rt=>(0,H.U2)({kind:rt.kind,namespace:rt.metadata.namespace,name:rt.metadata.name})).filter(rt=>at.has(rt)).length:0,[ft,at]),xt=(0,f.useMemo)(()=>R.tN.starred(Array.from(at)),[at]);return{count:q,loading:At,filter:xt}}const ct=(0,x.A)(it=>({root:{backgroundColor:"rgba(0, 0, 0, .11)",boxShadow:"none",margin:it.spacing(1,0,1,0)},title:{margin:it.spacing(1,0,0,1),textTransform:"uppercase",fontSize:12,fontWeight:"bold"},listIcon:{minWidth:30,color:it.palette.text.primary},menuItem:{minHeight:it.spacing(6)},groupWrapper:{margin:it.spacing(1,1,2,1)}}),{name:"CatalogReactUserListPicker"});function pt(it){return[{name:"Personal",items:[{id:"owned",label:"Owned",icon:p.A},{id:"starred",label:"Starred",icon:C.A}]},{name:it!=null?it:"Company",items:[{id:"all",label:"All"}]}]}const Pt=it=>{const{initialFilter:vt,availableFilters:at}=it,ut=ct(),ft=(0,i.gf)(u.U);var q;const At=(q=ft.getOptionalString("organization.name"))!==null&&q!==void 0?q:"Company",{filters:xt,updateFilters:ot,queryParameters:{kind:rt,user:gt}}=(0,P.nK)(),Tt=["starred","all"],Ct=pt(At).map(ie=>({...ie,items:ie.items.filter(({id:_t})=>["group","user"].some(Ft=>Ft===rt)?Tt.includes(_t):!at||at.includes(_t))})).filter(({items:ie})=>!!ie.length),{count:$,loading:z,filter:mt}=k(),{count:yt}=Q(),{count:It,filter:wt,loading:Bt}=nt(),Ut=(0,f.useMemo)(()=>[gt].flat()[0],[gt]),[Ot,Nt]=(0,f.useState)(Ut!=null?Ut:vt),Xt=(0,f.useMemo)(()=>({all:yt,starred:It,owned:$}),[It,$,yt]);(0,f.useEffect)(()=>{Ut&&Nt(Ut)},[Ut]);const se=z||Bt;return(0,f.useEffect)(()=>{!se&&Ot&&Ot!=="all"&&Xt[Ot]===0&&Nt("all")},[se,Xt,Ot,Nt]),(0,f.useEffect)(()=>{if(!Ot||se)return;ot({user:Ot==="owned"?mt:Ot==="starred"?wt:R.tN.all()})},[Ot,wt,mt,ot,se]),(0,o.jsx)(y.A,{className:ut.root,children:Ct.map(ie=>(0,o.jsxs)(f.Fragment,{children:[(0,o.jsx)(g.A,{variant:"subtitle2",component:"span",className:ut.title,children:ie.name}),(0,o.jsx)(y.A,{className:ut.groupWrapper,children:(0,o.jsx)(c.A,{disablePadding:!0,dense:!0,role:"menu","aria-label":ie.name,children:ie.items.map(_t=>{var Ft,Zt;return(0,o.jsxs)(d.A,{role:"none presentation",divider:!0,onClick:()=>Nt(_t.id),selected:_t.id===((Ft=xt.user)===null||Ft===void 0?void 0:Ft.value),className:ut.menuItem,disabled:Xt[_t.id]===0,"data-testid":`user-picker-${_t.id}`,tabIndex:0,ContainerProps:{role:"menuitem"},children:[_t.icon&&(0,o.jsx)(m.A,{className:ut.listIcon,children:(0,o.jsx)(_t.icon,{fontSize:"small"})}),(0,o.jsx)(E.A,{children:(0,o.jsxs)(g.A,{variant:"body1",children:[_t.label," "]})}),(0,o.jsx)(S.A,{children:(Zt=Xt[_t.id])!==null&&Zt!==void 0?Zt:"-"})]},_t.id)})})})]},ie.name))})}},92822:function(Y,w,t){"use strict";t.d(w,{I5:function(){return E},Kf:function(){return f},N9:function(){return m},V3:function(){return d},gM:function(){return y},gZ:function(){return C},mT:function(){return R},qA:function(){return g},q_:function(){return c},tN:function(){return p},z:function(){return S}});var o=t(18990),i=t(51372),u=t(6820),x=t(67871);class y{getCatalogFilters(){return{kind:this.value}}toQueryValue(){return this.value}constructor(T){(0,o._)(this,"value",void 0),this.value=T}}class g{getTypes(){return Array.isArray(this.value)?this.value:[this.value]}getCatalogFilters(){return{"spec.type":this.getTypes()}}toQueryValue(){return this.getTypes()}constructor(T){(0,o._)(this,"value",void 0),this.value=T}}class c{filterEntity(T){return this.values.every(M=>{var D;return((D=T.metadata.tags)!==null&&D!==void 0?D:[]).includes(M)})}getCatalogFilters(){return{"metadata.tags":this.values}}toQueryValue(){return this.values}constructor(T){(0,o._)(this,"values",void 0),this.values=T}}class d{filterEntity(T){const M=this.toUpperArray(this.value.split(/\s/)),D=this.toUpperArray([T.metadata.tags]),b=this.toUpperArray([T.metadata.name,T.metadata.title]);for(const K of M)if(D.every(V=>V!==K)&&b.every(V=>!V.includes(K)))return!1;return!0}getFullTextFilters(){return{term:this.value,fields:["metadata.name","metadata.title","spec.profile.displayName"]}}toUpperArray(T){return T.flat().filter(M=>!!M).map(M=>M.toLocaleUpperCase("en-US"))}constructor(T){(0,o._)(this,"value",void 0),this.value=T}}class m{getCatalogFilters(){return{"relations.ownedBy":this.values}}filterEntity(T){return this.values.some(M=>(0,x.t)(T,i.vv).some(D=>(0,u.U2)(D)===M))}toQueryValue(){return this.values}constructor(T){(0,o._)(this,"values",void 0),this.values=T.reduce((M,D)=>{try{return M.push((0,u.U2)((0,u.KU)(D,{defaultKind:"Group"}))),M}catch{return M}},[])}}class E{getCatalogFilters(){return{"spec.lifecycle":this.values}}filterEntity(T){return this.values.some(M=>{var D;return((D=T.spec)===null||D===void 0?void 0:D.lifecycle)===M})}toQueryValue(){return this.values}constructor(T){(0,o._)(this,"values",void 0),this.values=T}}class S{getCatalogFilters(){return{"metadata.namespace":this.values}}filterEntity(T){return this.values.some(M=>T.metadata.namespace===M)}toQueryValue(){return this.values}constructor(T){(0,o._)(this,"values",void 0),this.values=T}}class p{static owned(T){return new p("owned",T)}static all(){return new p("all")}static starred(T){return new p("starred",T)}getCatalogFilters(){if(this.value==="owned"){var T;return{"relations.ownedBy":(T=this.refs)!==null&&T!==void 0?T:[]}}if(this.value==="starred"){var M,D;return{"metadata.name":(D=(M=this.refs)===null||M===void 0?void 0:M.map(b=>(0,u.KU)(b).name))!==null&&D!==void 0?D:[]}}return{}}filterEntity(T){if(this.value==="starred"){var M,D;return(D=(M=this.refs)===null||M===void 0?void 0:M.includes((0,u.U2)(T)))!==null&&D!==void 0?D:!0}if(this.value==="owned"){var b;const V=(0,x.t)(T,i.vv);var K;return(K=(b=this.refs)===null||b===void 0?void 0:b.some(tt=>V.some(k=>(0,u.U2)(k)===tt)))!==null&&K!==void 0?K:!1}return!0}toQueryValue(){return this.value}constructor(T,M){(0,o._)(this,"value",void 0),(0,o._)(this,"refs",void 0),this.value=T,this.refs=M}}class C{filterEntity(T){switch(this.value){case"owned":return this.isOwnedEntity(T);case"starred":return this.isStarredEntity(T);default:return!0}}toQueryValue(){return this.value}constructor(T,M,D){(0,o._)(this,"value",void 0),(0,o._)(this,"isOwnedEntity",void 0),(0,o._)(this,"isStarredEntity",void 0),this.value=T,this.isOwnedEntity=M,this.isStarredEntity=D}}class f{getCatalogFilters(){return this.value?{"metadata.annotations.backstage.io/orphan":String(this.value)}:{}}filterEntity(T){var M;const D=(M=T.metadata.annotations)===null||M===void 0?void 0:M["backstage.io/orphan"];return D!==void 0&&this.value.toString()===D}constructor(T){(0,o._)(this,"value",void 0),this.value=T}}class R{filterEntity(T){var M,D;const b=(T==null||(D=T.status)===null||D===void 0||(M=D.items)===null||M===void 0?void 0:M.length)>0;return b!==void 0&&this.value===b}constructor(T){(0,o._)(this,"value",void 0),this.value=T}}},21405:function(Y,w,t){"use strict";t.d(w,{B9:function(){return R},nK:function(){return P}});var o=t(31085),i=t(45250),u=t.n(i),x=t(45810),y=t.n(x),g=t(14041),c=t(18690),d=t(5030),m=t(16983),E=t(10009),S=t(7341),p=t(26796),C=t(72427);const f=(0,g.createContext)(void 0),R=T=>{const M=(0,E.default)(),D=(0,C.gf)(S.v),[b,K]=(0,g.useState)({}),V=(0,c.zy)(),tt=T.pagination===!0||typeof T.pagination=="object",k=T.pagination&&typeof T.pagination=="object"&&typeof T.pagination.limit=="number"?T.pagination.limit:20,{queryParameters:G,cursor:Q}=(0,g.useMemo)(()=>{const ft=y().parse(V.search,{ignoreQueryPrefix:!0});var q;return{queryParameters:(q=ft.filters)!==null&&q!==void 0?q:{},cursor:typeof ft.cursor=="string"?ft.cursor:void 0}},[V]),[H,_]=(0,g.useState)(Q),[nt,ct]=(0,g.useState)(()=>({appliedFilters:{},entities:[],backendEntities:[],pageInfo:tt?{}:void 0})),[{loading:pt,error:Pt},it]=(0,d.default)(async()=>{const ft=(0,i.compact)(Object.values(b)),q=Object.keys(b).reduce((xt,ot)=>{const rt=b[ot];return rt!=null&&rt.toQueryValue&&(xt[ot]=rt.toQueryValue()),xt},{});if(tt)if(H){if(H!==nt.appliedCursor){const xt=(0,p.be)(ft),ot=await D.queryEntities({cursor:H,limit:k});ct({appliedFilters:b,appliedCursor:H,backendEntities:ot.items,entities:ot.items.filter(xt),pageInfo:ot.pageInfo})}}else{const xt=(0,p.be)(ft),ot=(0,p.$3)(ft),rt=(0,p.$3)((0,i.compact)(Object.values(nt.appliedFilters)));if(!(0,i.isEqual)(rt,ot)){const gt=await D.queryEntities({...ot,limit:k,orderFields:[{field:"metadata.name",order:"asc"}]});ct({appliedFilters:b,backendEntities:gt.items,entities:gt.items.filter(xt),pageInfo:gt.pageInfo})}}else{const xt=(0,p.be)(ft),ot=(0,p.Rr)(ft),rt=(0,p.Rr)((0,i.compact)(Object.values(nt.appliedFilters)));if((0,i.isEqual)(rt,ot))ct({appliedFilters:b,backendEntities:nt.backendEntities,entities:nt.backendEntities.filter(xt)});else{const gt=await D.getEntities({filter:ot});ct({appliedFilters:b,backendEntities:gt.items,entities:gt.items.filter(xt)})}}if(M()){var At;const xt=y().parse(V.search,{ignoreQueryPrefix:!0}),ot=y().stringify({...xt,filters:q,cursor:H},{addQueryPrefix:!0,arrayFormat:"repeat"}),rt=`${window.location.pathname}${ot}`;(At=window.history)===null||At===void 0||At.replaceState(null,document.title,rt)}},[D,G,b,nt,H,tt],{loading:!0});(0,m.A)(it,10,[b,H]);const vt=(0,g.useCallback)(ft=>{_(void 0),K(q=>{const At=typeof ft=="function"?ft(q):ft;return{...q,...At}})},[]),at=(0,g.useMemo)(()=>{var ft,q;if(!tt)return;const At=(ft=nt.pageInfo)===null||ft===void 0?void 0:ft.prevCursor,xt=(q=nt.pageInfo)===null||q===void 0?void 0:q.nextCursor;return{prev:At?()=>_(At):void 0,next:xt?()=>_(xt):void 0}},[tt,nt.pageInfo]),ut=(0,g.useMemo)(()=>({filters:nt.appliedFilters,entities:nt.entities,backendEntities:nt.backendEntities,updateFilters:vt,queryParameters:G,loading:pt,error:Pt,pageInfo:at}),[nt,vt,G,pt,Pt,at]);return(0,o.jsx)(f.Provider,{value:ut,children:T.children})};function P(){const T=(0,g.useContext)(f);if(!T)throw new Error("useEntityList must be used within EntityListProvider");return T}},56889:function(Y,w,t){"use strict";t.d(w,{I:function(){return c}});var o=t(6820),i=t(72427),u=t(14041),x=t(45145),y=t(18);function g(d){return typeof d=="string"?d:(0,o.U2)(d)}function c(){const d=(0,i.gf)(y.a),m=(0,x.A)((0,u.useMemo)(()=>d.starredEntitie$(),[d]),new Set),E=(0,u.useCallback)(p=>m.has(g(p)),[m]),S=(0,u.useCallback)(p=>d.toggleStarred(g(p)).then(),[d]);return{starredEntities:m,toggleStarredEntity:S,isStarredEntity:E}}},29207:function(Y,w,t){"use strict";t.d(w,{s:function(){return u}});var o=t(34569),i=t(63544);const u=(0,i.Q)("catalog:entity-route-ref",()=>(0,o.H)({id:"catalog:entity",params:["namespace","kind","name"]}));function x(y){var g,c;return{kind:y.kind.toLocaleLowerCase("en-US"),namespace:(c=(g=y.metadata.namespace)===null||g===void 0?void 0:g.toLocaleLowerCase("en-US"))!==null&&c!==void 0?c:DEFAULT_NAMESPACE,name:y.metadata.name}}},26796:function(Y,w,t){"use strict";t.d(w,{$3:function(){return u},Rr:function(){return x},be:function(){return y}});var o=t(92822);function i(g){return!!g.getFullTextFilters}function u(g){var c;const d=g.reduce((E,S)=>({...E,...S.getCatalogFilters?S.getCatalogFilters():{}}),{}),m=(c=g.find(i))===null||c===void 0?void 0:c.getFullTextFilters();return{filter:d,fullTextFilter:m}}function x(g){const c={};return g.forEach(d=>{var m;d instanceof o.q_||d instanceof o.N9||d instanceof o.I5||d instanceof o.z||d instanceof o.tN||d instanceof o.Kf||d instanceof o.V3||d instanceof o.gZ||Object.assign(c,((m=d.getCatalogFilters)===null||m===void 0?void 0:m.call(d))||{})}),c}function y(g){return c=>g.every(d=>!d.filterEntity||d.filterEntity(c))}},67871:function(Y,w,t){"use strict";t.d(w,{t:function(){return i}});var o=t(6820);function i(u,x,y){var g;let c=(u==null||(g=u.relations)===null||g===void 0?void 0:g.filter(d=>d.type===x).map(d=>(0,o.KU)(d.targetRef)))||[];return y!=null&&y.kind&&(c=c.filter(d=>d.kind.toLocaleLowerCase("en-US")===y.kind.toLocaleLowerCase("en-US"))),c}},95203:function(Y,w,t){"use strict";t.d(w,{qP:function(){return d},Zg:function(){return E},rQ:function(){return p},pS:function(){return S},UJ:function(){return m}});var o=t(18990),i=t(59598);let u=i.b,x=u;class y{toString(){return`routeRef{type=external,id=${this.id}}`}constructor(f,R,P){(0,o._)(this,"id",void 0),(0,o._)(this,"params",void 0),(0,o._)(this,"optional",void 0),(0,o._)(this,x,void 0),this.id=f,this.params=R,this.optional=P,this[u]="external"}}function g(C){var f;return new y(C.id,(f=C.params)!==null&&f!==void 0?f:[],!!C.optional)}var c=t(34569);const d=g({id:"create-component",optional:!0}),m=g({id:"view-techdoc",optional:!0,params:["namespace","kind","name"]}),E=g({id:"create-from-template",optional:!0,params:["namespace","templateName"]}),S=g({id:"catalog:unregister-redirect",optional:!0}),p=(0,c.H)({id:"catalog"})},54241:function(Y,w,t){"use strict";t.d(w,{b:function(){return o}});var o;(function(i){i.DENY="DENY",i.ALLOW="ALLOW",i.CONDITIONAL="CONDITIONAL"})(o||(o={}))},96824:function(Y,w,t){"use strict";t.d(w,{x:function(){return i}});var o=t(55309);const i=(0,o.y)({id:"plugin.permission.api"})},70734:function(Y,w,t){"use strict";t.d(w,{e:function(){return y}});var o=t(31085),i=t(14041),u=t(58837);const x=(0,u.A)(()=>({highlight:{}}),{name:"BackstageHighlightedSearchResultText"}),y=g=>{const{text:c,preTag:d,postTag:m}=g,E=x(),S=(0,i.useMemo)(()=>c.split(new RegExp(`(${d}.+?${m})`)),[m,d,c]);return(0,o.jsx)(o.Fragment,{children:S.map((p,C)=>p.includes(d)?(0,o.jsx)("mark",{className:E.highlight,children:p.replace(new RegExp(`${d}|${m}`,"g"),"")},C):p)})}},54560:function(Y,w,t){"use strict";t.d(w,{ec:function(){return m}});var o=t(31085),i=t(14041),u=t(93368),x=t(88758),y=t(8109);const g="search.results.list.items.extensions.v1",c=(p,C)=>{for(const f of p){if(!isValidElement(f))continue;const R=getComponentData(f,g);if(R!=null&&R(C))return cloneElement(f,{rank:C.rank,highlight:C.highlight,result:C.document,...f.props})}return null},d=p=>{const{rank:C,result:f,noTrack:R,children:P,alignItems:T="flex-start",...M}=p,D=(0,u.s)(),b=(0,i.useCallback)(()=>{R||f&&D.captureEvent("discover",f.title,{attributes:{to:f.location},value:C})},[C,f,R,D]);return(0,o.jsx)(y.A,{divider:!0,alignItems:T,onClickCapture:b,...M,children:P})},m=p=>{const{name:C,component:f,predicate:R=()=>!0}=p;return(0,x.zZ)({name:C,component:{lazy:()=>f().then(P=>T=>(0,o.jsx)(d,{rank:T.rank,result:T.result,noTrack:T.noTrack,children:(0,i.createElement)(P,T)}))},data:{[g]:R}})},E=p=>{const C=useElementFilter(p,f=>f.selectByComponentData({key:g}).getElements(),[p]);return useCallback((f,R)=>{const P=c(C,f);return _jsx(Fragment,{children:P!=null?P:_jsx(d,{rank:f.rank,result:f.document,children:_jsx(DefaultResultListItem,{rank:f.rank,highlight:f.highlight,result:f.document})})},R)},[C])},S=p=>{const{results:C,children:f,...R}=p,P=E(f);return _jsx(List,{...R,children:C.map(P)})}},72020:function(Y,w,t){"use strict";t.d(w,{AF:function(){return d},Hr:function(){return S},Wm:function(){return c},YR:function(){return R},po:function(){return m}});var o=t(31085),i=t(14041),u=t(18690),x=t(19402),y=t(88758),g=t(82442);const c="techdocs.addons.addon.v1",d="techdocs.addons.wrapper.v1",m=()=>null;(0,x.h)(m,d,!0);const E=P=>`${c}.${P.toLocaleLowerCase("en-US")}`;function S(P){const{name:T,component:M}=P;return(0,y.zZ)({name:T,component:{sync:D=>(0,o.jsx)(M,{...D})},data:{[c]:P,[E(T)]:!0}})}const p=(P,T)=>P.selectByComponentData({key:T}).getElements()[0],C=P=>P.selectByComponentData({key:d}).selectByComponentData({key:c}),f=P=>P.selectByComponentData({key:d}).findComponentData({key:c}),R=()=>{const P=(0,u.P1)(),T=(0,g.O)(P,C),M=(0,g.O)(P,f),D=(0,i.useCallback)(V=>{if(!T||!V)return null;const tt=E(V.name);var k;return(k=p(T,tt))!==null&&k!==void 0?k:null},[T]),b=(0,i.useCallback)(V=>{const tt=M.find(k=>k.name===V);return tt?D(tt):null},[M,D]),K=(0,i.useCallback)(V=>{const tt=M.filter(k=>k.location===V);return tt.length?tt.map(D):null},[M,D]);return{renderComponentByName:b,renderComponentsByLocation:K}}},26679:function(Y,w,t){"use strict";t.d(w,{l:function(){return i},s:function(){return u}});var o=t(55309);const i=(0,o.y)({id:"plugin.techdocs.service"}),u=(0,o.y)({id:"plugin.techdocs.storageservice"})},86892:function(Y,w,t){"use strict";t.d(w,{R:function(){return P},V:function(){return T}});var o=t(31085),i=t(14041),u=t(91638),x=t(38282),y=t(6820),g=t(43836),c=t(10602),d=t(72427),m=t(65461),E=t(25862),S=t(26679);function p(M,D){return D.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")||(M.kind=M.kind.toLocaleLowerCase(),M.name=M.name.toLocaleLowerCase(),M.namespace=M.namespace.toLocaleLowerCase()),M}const C=(M,D)=>(0,y.U2)(M)===(0,y.U2)(D),f={title:"",subtitle:"",setTitle:()=>{},setSubtitle:()=>{},setShadowRoot:()=>{},metadata:{loading:!0},entityMetadata:{loading:!0},entityRef:{kind:"",name:"",namespace:""}},R=(0,g.tK)("techdocs-reader-page-context"),P=(0,i.memo)(M=>{const{entityRef:D,children:b}=M,K=(0,d.gf)(S.l),V=(0,d.gf)(m.U),tt=(0,u.default)(async()=>K.getEntityMetadata(D),[D]),k=(0,x.A)(async()=>K.getTechDocsMetadata(D),[D]),[G,Q]=(0,i.useState)(f.title),[H,_]=(0,i.useState)(f.subtitle),[nt,ct]=(0,i.useState)(f.shadowRoot);(0,i.useEffect)(()=>{nt&&!k.value&&!k.loading&&k.retry()},[k.value,k.loading,nt,k.retry,k]);const pt={metadata:k,entityRef:p(D,V),entityMetadata:tt,shadowRoot:nt,setShadowRoot:ct,title:G,setTitle:Q,subtitle:H,setSubtitle:_},Pt=(0,c.B)({1:pt});return(0,o.jsx)(E.Ig,{attributes:{entityRef:(0,y.U2)(D)},children:(0,o.jsx)(R.Provider,{value:Pt,children:b instanceof Function?b(pt):b})})},(M,D)=>C(M.entityRef,D.entityRef)),T=()=>{const M=(0,i.useContext)(R);if(M===void 0)return f;const D=M.atVersion(1);if(D===void 0)throw new Error("No context found for version 1.");return D}},99730:function(Y,w,t){"use strict";t.d(w,{e:function(){return o}});const o=Object.freeze({Header:"Header",Subheader:"Subheader",Settings:"Settings",PrimarySidebar:"PrimarySidebar",SecondarySidebar:"SecondarySidebar",Content:"Content"})},95768:function(Y,w,t){"use strict";t.d(w,{V:function(){return o}});function o(i,u){return u.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")?i:i.toLocaleLowerCase("en-US")}},85920:function(Y,w,t){"use strict";t.d(w,{K:function(){return k}});var o=t(31085),i=t(14041),u=t(26280),x=t(59428),y=t(3851),g=t(21405),c=t(54203),d=t(67626),m=t(72987),E=t(91035),S=t(81859),p=t(86519);class C{getCatalogFilters(){return{"metadata.annotations.backstage.io/techdocs-ref":p.c}}}const f=()=>{const{updateFilters:G}=(0,g.nK)();return(0,i.useEffect)(()=>{G({techdocs:new C})},[G]),null};var R=t(51100),P=t(45250),T=t(88640),M=t(77310),D=t(56889),b=t(27125),K=t(84295),V=t(42717);const tt=G=>{var Q;const{columns:H,actions:_,options:nt}=G,{loading:ct,error:pt,entities:Pt,filters:it}=(0,g.nK)(),{isStarredEntity:vt,toggleStarredEntity:at}=(0,D.I)(),[,ut]=(0,R.A)();var ft;const q=(0,P.capitalize)((ft=(Q=it.user)===null||Q===void 0?void 0:Q.value)!==null&&ft!==void 0?ft:"all"),At=[K.f.createCopyDocsUrlAction(ut),K.f.createStarEntityAction(vt,at)];return pt?(0,o.jsx)(T.B,{severity:"error",title:"Could not load available documentation.",children:(0,o.jsx)(M.z,{language:"text",text:pt.toString()})}):(0,o.jsx)(b.o,{title:q,entities:Pt,loading:ct,actions:_||At,columns:H,options:nt})};tt.columns=V.B,tt.actions=K.f;const k=G=>{const{initialFilter:Q="owned",columns:H,actions:_}=G;return(0,o.jsx)(S.S,{children:(0,o.jsxs)(u.U,{children:[(0,o.jsx)(x.d,{title:"",children:(0,o.jsx)(y.Y,{children:"Discover documentation in your ecosystem."})}),(0,o.jsx)(g.B9,{children:(0,o.jsxs)(c.GI,{children:[(0,o.jsxs)(c.GI.Filters,{children:[(0,o.jsx)(f,{}),(0,o.jsx)(d.y,{initialFilter:Q}),(0,o.jsx)(m.t,{}),(0,o.jsx)(E.m,{})]}),(0,o.jsx)(c.GI.Content,{children:(0,o.jsx)(tt,{actions:_,columns:H})})]})})]})})}},27125:function(Y,w,t){"use strict";t.d(w,{o:function(){return T}});var o=t(31085),i=t(14041),u=t(51100),x=t(9222),y=t(72427),g=t(65461),c=t(51372),d=t(67871),m=t(90184),E=t(82779),S=t(14209),p=t(44186),C=t(73896),f=t(84295),R=t(42717),P=t(95768);const T=M=>{const{entities:D,title:b,loading:K,columns:V,actions:tt,options:k}=M,[,G]=(0,u.A)(),Q=(0,x.S)(E.Oc),H=(0,y.gf)(g.U);if(!D)return null;const _=D.map(it=>{const vt=(0,d.t)(it,c.vv);var at;return{entity:it,resolved:{docsUrl:Q({namespace:(0,P.V)((at=it.metadata.namespace)!==null&&at!==void 0?at:"default",H),kind:(0,P.V)(it.kind,H),name:(0,P.V)(it.metadata.name,H)}),ownedByRelations:vt,ownedByRelationsTitle:vt.map(ut=>(0,m.S)(ut,{defaultKind:"group"})).join(", ")}}}),nt=[R.B.createNameColumn(),R.B.createOwnerColumn(),R.B.createKindColumn(),R.B.createTypeColumn()],ct=[f.f.createCopyDocsUrlAction(G)],pt=20,Pt=_&&_.length>pt;return(0,o.jsx)(o.Fragment,{children:K||_&&_.length>0?(0,o.jsx)(S.X,{isLoading:K,options:{paging:Pt,pageSize:pt,search:!0,actionsColumnIndex:-1,...k},data:_,columns:V||nt,actions:tt||ct,title:b?`${b} (${_.length})`:`All (${_.length})`}):(0,o.jsx)(p.p,{missing:"data",title:"No documents to show",description:"Create your own document. Check out our Getting Started Information",action:(0,o.jsx)(C.z,{color:"primary",to:"https://backstage.io/docs/features/techdocs/getting-started",variant:"contained",children:"DOCS"})})})};T.columns=R.B,T.actions=f.f},84295:function(Y,w,t){"use strict";t.d(w,{f:function(){return d}});var o=t(31085),i=t(14041),u=t(55290),x=t(80430),y=t(80109),g=t(15303);const c=(0,x.A)({root:{color:"#f3ba37"}})(y.A),d={createCopyDocsUrlAction(m){return E=>({icon:()=>(0,o.jsx)(u.A,{fontSize:"small"}),tooltip:"Click to copy documentation link to clipboard",onClick:()=>m(`${window.location.origin}${E.resolved.docsUrl}`)})},createStarEntityAction(m,E){return S=>{const p=S.entity,C=m(p);return{cellStyle:{paddingLeft:"1em"},icon:()=>C?(0,o.jsx)(c,{}):(0,o.jsx)(g.A,{}),tooltip:C?"Remove from favorites":"Add to favorites",onClick:()=>E(p)}}}}},42717:function(Y,w,t){"use strict";t.d(w,{B:function(){return E}});var o=t(31085),i=t(14041),u=t(10394),x=t(58837);const y=(0,x.A)(S=>({value:{marginBottom:S.spacing(.75)},subvalue:{color:S.palette.textSubtle,fontWeight:"normal"}}),{name:"BackstageSubvalueCell"});function g(S){const{value:p,subvalue:C}=S,f=y();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.A,{className:f.value,children:p}),(0,o.jsx)(u.A,{className:f.subvalue,children:C})]})}var c=t(72072),d=t(34428);function m(S){return S.metadata.title||S.metadata.name}const E={createNameColumn(){return{title:"Document",field:"entity.metadata.name",highlight:!0,render:S=>(0,o.jsx)(g,{value:(0,o.jsx)(c.N_,{to:S.resolved.docsUrl,children:m(S.entity)}),subvalue:S.entity.metadata.description})}},createOwnerColumn(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:S})=>(0,o.jsx)(d.i,{entityRefs:S.ownedByRelations,defaultKind:"group"})}},createKindColumn(){return{title:"Kind",field:"entity.kind"}},createTypeColumn(){return{title:"Type",field:"entity.spec.type"}}}},81859:function(Y,w,t){"use strict";t.d(w,{S:function(){return g}});var o=t(31085),i=t(14041),u=t(27155),x=t(72427),y=t(65461);const g=c=>{const{children:d}=c,m=(0,x.gf)(y.U);var E;const S=`Documentation available in ${(E=m.getOptionalString("organization.name"))!==null&&E!==void 0?E:"Backstage"}`;return(0,o.jsx)(u.d,{title:"Documentation",subtitle:S,themeId:"documentation",children:d})}},39278:function(Y,w,t){"use strict";t.d(w,{$j:function(){return K},Wj:function(){return V},Ju:function(){return T}});var o=t(26679),i=t(18990),u=t(70835),x=t(97142),y=t(50165);class g{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getTechDocsMetadata(G){const{kind:Q,namespace:H,name:_}=G,ct=`${await this.getApiOrigin()}/metadata/techdocs/${H}/${Q}/${_}`,pt=await this.fetchApi.fetch(`${ct}`);if(!pt.ok)throw await u.o.fromResponse(pt);return await pt.json()}async getEntityMetadata(G){const{kind:Q,namespace:H,name:_}=G,ct=`${await this.getApiOrigin()}/metadata/entity/${H}/${Q}/${_}`,pt=await this.fetchApi.fetch(`${ct}`);if(!pt.ok)throw await u.o.fromResponse(pt);return await pt.json()}constructor(G){(0,i._)(this,"configApi",void 0),(0,i._)(this,"discoveryApi",void 0),(0,i._)(this,"fetchApi",void 0),this.configApi=G.configApi,this.discoveryApi=G.discoveryApi,this.fetchApi=G.fetchApi}}class c{async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){var G;return(G=this.configApi.getOptionalString("techdocs.storageUrl"))!==null&&G!==void 0?G:`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getString("techdocs.builder")}async getEntityDocs(G,Q){const{kind:H,namespace:_,name:nt}=G,pt=`${await this.getStorageUrl()}/${_}/${H}/${nt}/${Q}`,Pt=await this.fetchApi.fetch(`${pt.endsWith("/")?pt:`${pt}/`}index.html`);let it="";switch(Pt.status){case 404:throw it="Page not found. ",Q||(it+="This could be because there is no index.md file in the root of the docs directory of this repository."),new x.m_(it);case 500:throw it="Could not generate documentation or an error in the TechDocs backend. ",new Error(it);default:break}return Pt.text()}async syncEntityDocs(G,Q=()=>{}){const{kind:H,namespace:_,name:nt}=G,pt=`${await this.getApiOrigin()}/sync/${_}/${H}/${nt}`,{token:Pt}=await this.identityApi.getCredentials();return new Promise((it,vt)=>{const at=new y.EventSourcePolyfill(pt,{withCredentials:!0,headers:Pt?{Authorization:`Bearer ${Pt}`}:{}});at.addEventListener("log",ut=>{ut.data&&Q(JSON.parse(ut.data))}),at.addEventListener("finish",ut=>{let ft=!1;ut.data&&({updated:ft}=JSON.parse(ut.data)),it(ft?"updated":"cached")}),at.onerror=ut=>{switch(at.close(),ut.status){case 404:vt(new x.m_(ut.message));return;default:vt(new Error(ut.data));return}}})}async getBaseUrl(G,Q,H){const{kind:_,namespace:nt,name:ct}=Q,Pt=`${await this.getApiOrigin()}/static/docs/${nt}/${_}/${ct}/${H}`;return new URL(G,Pt.endsWith("/")?Pt:`${Pt}/`).toString()}constructor(G){(0,i._)(this,"configApi",void 0),(0,i._)(this,"discoveryApi",void 0),(0,i._)(this,"identityApi",void 0),(0,i._)(this,"fetchApi",void 0),this.configApi=G.configApi,this.discoveryApi=G.discoveryApi,this.identityApi=G.identityApi,this.fetchApi=G.fetchApi}}var d=t(82779),m=t(9803),E=t(12935),S=t(65461),p=t(57405),C=t(16009),f=t(70795),R=t(88758),P=t(54560);const T=(0,m.i)({id:"techdocs",apis:[(0,E.b)({api:o.s,deps:{configApi:S.U,discoveryApi:p.I,identityApi:C.K,fetchApi:f.a},factory:({configApi:k,discoveryApi:G,identityApi:Q,fetchApi:H})=>new c({configApi:k,discoveryApi:G,identityApi:Q,fetchApi:H})}),(0,E.b)({api:o.l,deps:{configApi:S.U,discoveryApi:p.I,fetchApi:f.a},factory:({configApi:k,discoveryApi:G,fetchApi:Q})=>new g({configApi:k,discoveryApi:G,fetchApi:Q})})],routes:{root:d.rQ,docRoot:d.Oc,entityContent:d.Ri}}),M=T.provide((0,R.QJ)({name:"TechdocsPage",component:()=>t.e(9605).then(t.bind(t,29605)).then(k=>k.Router),mountPoint:d.rQ})),D=T.provide((0,R.QJ)({name:"EntityTechdocsContent",component:()=>t.e(9605).then(t.bind(t,29605)).then(k=>k.EmbeddedDocsRouter),mountPoint:d.Ri})),b=T.provide((0,R.QJ)({name:"TechDocsCustomHome",component:()=>t.e(4487).then(t.bind(t,94487)).then(k=>k.TechDocsCustomHome),mountPoint:d.rQ})),K=T.provide((0,R.QJ)({name:"TechDocsIndexPage",component:()=>t.e(5788).then(t.bind(t,85788)).then(k=>k.TechDocsIndexPage),mountPoint:d.rQ})),V=T.provide((0,R.QJ)({name:"TechDocsReaderPage",component:()=>t.e(4036).then(t.bind(t,84036)).then(k=>k.TechDocsReaderPage),mountPoint:d.Oc})),tt=T.provide((0,P.ec)({name:"TechDocsSearchResultListItem",component:()=>Promise.resolve().then(t.bind(t,27698)).then(k=>k.TechDocsSearchResultListItem),predicate:k=>k.type==="techdocs"}))},16203:function(Y,w,t){"use strict";t.d(w,{p:function(){return Lt}});var o=t(31085),i=t(14041),u=t(58837),x=t(42899),y=t(86892),g=t(9394),c=t(22856),d=t(91360),m=t(68146);const E="TECH_DOCS_SHADOW_DOM_STYLE_LOAD",S=h=>{(0,i.useEffect)(()=>{if(!h)return()=>{};const I=h.querySelectorAll('head > link[rel="stylesheet"]');var U;let N=(U=I==null?void 0:I.length)!==null&&U!==void 0?U:0;const Z=new CustomEvent(E);if(!N)return h.dispatchEvent(Z),()=>{};const X=()=>{--N===0&&h.dispatchEvent(Z)};return I==null||I.forEach(dt=>{dt.addEventListener("load",X)}),()=>{I==null||I.forEach(dt=>{dt.removeEventListener("load",X)})}},[h])},p=h=>{const[I,U]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!h)return()=>{};U(!0);const N=h.style;N.setProperty("opacity","0");const Z=()=>{U(!1),N.setProperty("opacity","1")};return h.addEventListener(E,Z),()=>{h.removeEventListener(E,Z)}},[h]),I},C=h=>{const{element:I,onAppend:U,children:N}=h,[Z,X]=(0,i.useState)((0,g.vt)({...(0,c.A)(),insertionPoint:void 0}));S(I);const dt=p(I),St=(0,i.useCallback)(jt=>{if(!I||!jt)return;X((0,g.vt)({...(0,c.A)(),insertionPoint:I.querySelector("head")||void 0}));let $t=jt.shadowRoot;$t||($t=jt.attachShadow({mode:"open"})),$t.replaceChildren(I),typeof U=="function"&&U($t)},[I,U]);return(0,o.jsxs)(o.Fragment,{children:[dt&&(0,o.jsx)(m.k,{}),(0,o.jsxs)(d.Ay,{jss:Z,sheetsManager:new Map,children:[(0,o.jsx)("div",{ref:St,"data-testid":"techdocs-native-shadowroot"}),N]})]})};var f=t(12784);const R=()=>{const{shadowRoot:h}=(0,y.V)();return h},P=h=>{const I=R();return I?h.map(U=>I==null?void 0:I.querySelectorAll(U)).filter(U=>U.length).map(U=>Array.from(U)).flat():[]},T=h=>h.toString()&&h.rangeCount&&h.getRangeAt(0).getBoundingClientRect().top,M=(h=0)=>{const I=R(),[U,N]=useState(null),Z=useMemo(()=>debounce(()=>{const X=I,dt=X.getSelection?X.getSelection():document.getSelection();dt&&T(dt)?N(dt):N(null)},h),[I,N,h]);return useEffect(()=>(window.document.addEventListener("selectionchange",Z),()=>{Z.cancel(),window.document.removeEventListener("selectionchange",Z)}),[Z]),U};var D=t(12173),b=t(26280),K=t(45250),V=t(91638),tt=t(50193),k=t(43836),G=t(10602),Q=t(72427),H=t(93368),_=t(25862),nt=t(65461),ct=t(55309);const pt=(0,ct.y)({id:"plugin.search.queryservice"});class Pt{query(){return Promise.resolve(this.mockedResults||{results:[]})}constructor(I){_define_property(this,"mockedResults",void 0),this.mockedResults=I}}const it=(0,k.tK)("search-context"),vt=()=>{const h=(0,i.useContext)(it);if(!h)throw new Error("useSearch must be used within a SearchContextProvider");const I=h.atVersion(1);if(!I)throw new Error("No SearchContext v1 found");return I},at=()=>(0,i.useContext)(it)!==void 0,ut={term:"",types:[],filters:{},pageLimit:void 0,pageCursor:void 0},ft=(h=ut)=>{var I,U,N,Z;const X=(0,Q.gf)(pt),dt=(0,H.s)(),[St,jt]=(0,i.useState)(h.term),[$t,Gt]=(0,i.useState)(h.types),[Wt,Rt]=(0,i.useState)(h.filters),[de,ye]=(0,i.useState)(h.pageLimit),[Jt,kt]=(0,i.useState)(h.pageCursor),ae=(0,tt.A)(St),Ee=(0,tt.A)(Wt),Mt=(0,V.default)(async()=>{const ge=await X.query({term:St,types:$t,filters:Wt,pageLimit:de,pageCursor:Jt});if(St){var $e,re;dt.captureEvent("search",St,{value:(re=($e=Mt.value)===null||$e===void 0?void 0:$e.numberOfResults)!==null&&re!==void 0?re:void 0})}return ge},[St,$t,Wt,de,Jt]),Ht=!Mt.loading&&!Mt.error&&((I=Mt.value)===null||I===void 0?void 0:I.nextPageCursor),te=!Mt.loading&&!Mt.error&&((U=Mt.value)===null||U===void 0?void 0:U.previousPageCursor),Ae=(0,i.useCallback)(()=>{var ge;kt((ge=Mt.value)===null||ge===void 0?void 0:ge.nextPageCursor)},[(N=Mt.value)===null||N===void 0?void 0:N.nextPageCursor]),je=(0,i.useCallback)(()=>{var ge;kt((ge=Mt.value)===null||ge===void 0?void 0:ge.previousPageCursor)},[(Z=Mt.value)===null||Z===void 0?void 0:Z.previousPageCursor]);return(0,i.useEffect)(()=>{ae!==void 0&&St!==ae&&kt(void 0)},[St,ae,kt]),(0,i.useEffect)(()=>{Ee!==void 0&&!(0,K.isEqual)(Wt,Ee)&&kt(void 0)},[Wt,Ee,kt]),{result:Mt,term:St,setTerm:jt,types:$t,setTypes:Gt,filters:Wt,setFilters:Rt,pageLimit:de,setPageLimit:ye,pageCursor:Jt,setPageCursor:kt,fetchNextPage:Ht?Ae:void 0,fetchPreviousPage:te?je:void 0}},q=h=>{const{initialState:I,children:U}=h,N=ft(I);return(0,o.jsx)(_.Ig,{attributes:{searchTypes:N.types.sort().join(",")},children:(0,o.jsx)(it.Provider,{value:(0,G.B)({1:N}),children:U})})},At=h=>{const{initialState:I,inheritParentContextIfAvailable:U,children:N}=h,Z=at(),X=(0,Q.gf)(nt.U),dt=I!=null?I:{},St=X.has("search.query.pageLimit")?{pageLimit:X.getNumber("search.query.pageLimit")}:{},jt={...ut,...dt,...St};return Z&&U?(0,o.jsx)(o.Fragment,{children:N}):(0,o.jsx)(q,{initialState:jt,children:N})};var xt=t(78467),ot=t(20577),rt=t(34839),gt=t(29365),Tt=t(16249),Ct=t(64947),$=t(45917),z=t(16983);function mt(h){return(0,i.forwardRef)((I,U)=>(0,o.jsx)(At,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(h,{...I,ref:U})}))}const yt=mt((0,i.forwardRef)((h,I)=>{const{onChange:U,onKeyDown:N=()=>{},onClear:Z=()=>{},onSubmit:X=()=>{},debounceTime:dt=200,clearButton:St=!0,fullWidth:jt=!0,value:$t,label:Gt,placeholder:Wt,inputProps:Rt={},InputProps:de={},endAdornment:ye,...Jt}=h,kt=(0,Q.gf)(nt.U),[ae,Ee]=(0,i.useState)(""),Mt=(0,i.useRef)("");(0,i.useEffect)(()=>{Ee(re=>re===Mt.current?String($t):re)},[$t,Mt]),(0,z.A)(()=>{Mt.current=ae,U(ae)},dt,[ae]);const Ht=(0,i.useCallback)(re=>{Ee(re.target.value)},[Ee]),te=(0,i.useCallback)(re=>{N&&N(re),X&&re.key==="Enter"&&X()},[N,X]),Ae=(0,i.useCallback)(()=>{Mt.current="",U(""),Ee(""),Z&&Z()},[U,Z]),je=Gt?void 0:"Search",Fe=Wt!=null?Wt:`Search in ${kt.getOptionalString("app.title")||"Backstage"}`,ge=(0,o.jsx)(rt.A,{position:"start",children:(0,o.jsx)(gt.A,{"aria-label":"Query",size:"small",disabled:!0,children:(0,o.jsx)($.A,{})})}),$e=(0,o.jsx)(rt.A,{position:"end",children:(0,o.jsx)(Ct.A,{"aria-label":"Clear",size:"small",onClick:Ae,onKeyDown:re=>{re.key==="Enter"&&re.stopPropagation()},children:"Clear"})});return(0,o.jsx)(Tt.A,{id:"search-bar-text-field","data-testid":"search-bar-next",variant:"outlined",margin:"normal",inputRef:I,value:ae,label:Gt,placeholder:Fe,InputProps:{startAdornment:ge,endAdornment:St?$e:ye,...de},inputProps:{"aria-label":je,...Rt},fullWidth:jt,onChange:Ht,onKeyDown:te,...Jt})})),It=mt((0,i.forwardRef)((h,I)=>{const{value:U="",onChange:N,...Z}=h,{term:X,setTerm:dt}=vt();(0,i.useEffect)(()=>{U&&dt(String(U))},[U,dt]);const St=(0,i.useCallback)(jt=>{N?N(jt):dt(jt)},[N,dt]);return(0,o.jsx)(_.Ig,{attributes:{pluginId:"search",extension:"SearchBar"},children:(0,o.jsx)(yt,{...Z,ref:I,value:X,onChange:St})})})),wt=(0,u.A)(h=>({loading:{right:h.spacing(1),position:"absolute"}})),Bt=h=>I=>(0,o.jsx)(At,{inheritParentContextIfAvailable:!0,children:(0,o.jsx)(h,{...I})}),Ut=()=>{const h=wt();return(0,o.jsx)(xt.A,{className:h.loading,"data-testid":"search-autocomplete-progressbar",color:"inherit",size:20})},Ot=Bt(function(I){const{loading:U,value:N,onChange:Z=()=>{},options:X=[],getOptionLabel:dt=Mt=>String(Mt),inputPlaceholder:St,inputDebounceTime:jt,freeSolo:$t=!0,fullWidth:Gt=!0,clearOnBlur:Wt=!1,"data-testid":Rt="search-autocomplete",...de}=I,{setTerm:ye}=vt(),Jt=(0,i.useCallback)(Mt=>Mt?typeof Mt=="string"?Mt:dt(Mt):"",[dt]),kt=(0,i.useMemo)(()=>Jt(N),[N,Jt]),ae=(0,i.useCallback)((Mt,Ht,te,Ae)=>{ye(Jt(Ht)),Z(Mt,Ht,te,Ae)},[Jt,ye,Z]),Ee=(0,i.useCallback)(({InputProps:{ref:Mt,className:Ht,endAdornment:te},InputLabelProps:Ae,...je})=>(0,o.jsx)(It,{...je,ref:Mt,clearButton:!1,value:kt,placeholder:St,debounceTime:jt,endAdornment:U?(0,o.jsx)(Ut,{}):te,InputProps:{className:Ht}}),[U,kt,St,jt]);return(0,o.jsx)(ot.Ay,{...de,"data-testid":Rt,value:N,onChange:ae,options:X,getOptionLabel:dt,renderInput:Ee,freeSolo:$t,fullWidth:Gt,clearOnBlur:Wt})});var Nt=t(18690),Xt=t(27698);const se=h=>h==null?void 0:h.document,ie=h=>{const{entityId:I,entityTitle:U,debounceTime:N=150}=h,[Z,X]=(0,i.useState)(!1),dt=(0,Nt.Zp)(),{setFilters:St,result:{loading:jt,value:$t}}=vt(),[Gt,Wt]=(0,i.useState)([]);(0,i.useEffect)(()=>{let kt=!0;if(kt&&$t){const ae=$t.results.slice(0,10);Wt(ae)}return()=>{kt=!1}},[jt,$t]);const{kind:Rt,name:de,namespace:ye}=I;(0,i.useEffect)(()=>{St(kt=>({...kt,kind:Rt,namespace:ye,name:de}))},[Rt,ye,de,St]);const Jt=(kt,ae)=>{if(se(ae)){const{location:Ee}=ae.document;dt(Ee)}};return(0,o.jsx)(Ot,{"data-testid":"techdocs-search-bar",size:"small",open:Z,getOptionLabel:()=>"",filterOptions:kt=>kt,onClose:()=>{X(!1)},onFocus:()=>{X(!0)},onChange:Jt,blurOnSelect:!0,noOptionsText:"No results found",value:null,options:Gt,renderOption:({document:kt,highlight:ae})=>(0,o.jsx)(Xt.TechDocsSearchResultListItem,{result:kt,lineClamp:3,asListItem:!1,asLink:!1,title:kt.title,highlight:ae}),loading:jt,inputDebounceTime:N,inputPlaceholder:`Search ${U||I.name} docs`,freeSolo:!1})},_t=h=>{const I={term:"",types:["techdocs"],pageCursor:"",filters:h.entityId};return(0,o.jsx)(At,{initialState:I,children:(0,o.jsx)(ie,{...h})})};var Ft=t(74219),Zt=t(82266);const Ce=(0,i.lazy)(()=>Promise.all([t.e(3308),t.e(9234)]).then(t.bind(t,99234)).then(h=>({default:h.RealLogViewer})));function ke(h){const{Progress:I}=(0,Zt.n)().getComponents();return(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(I,{}),children:(0,o.jsx)(Ce,{...h})})}var Ke=t(12398),Je=t(72501),Ie=t(73845),on=t(32881);const Ge=(0,u.A)(h=>(0,Ke.A)({paper:{width:"100%",[h.breakpoints.up("sm")]:{width:"75%"},[h.breakpoints.up("md")]:{width:"50%"},padding:h.spacing(2.5)},root:{height:"100%",overflow:"hidden"},logs:{background:h.palette.background.default}})),le=({buildLog:h,onClose:I})=>{const U=Ge(),N=h.length===0?"Waiting for logs...":h.join(`
8
- `);return(0,o.jsxs)(x.A,{container:!0,direction:"column",className:U.root,spacing:0,wrap:"nowrap",children:[(0,o.jsxs)(x.A,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",spacing:0,wrap:"nowrap",children:[(0,o.jsx)(Je.A,{variant:"h5",children:"Build Details"}),(0,o.jsx)(gt.A,{title:"Close the drawer",onClick:I,color:"inherit",children:(0,o.jsx)(on.A,{})},"dismiss")]}),(0,o.jsx)(x.A,{item:!0,xs:!0,children:(0,o.jsx)(ke,{text:N,classes:{root:U.logs}})})]})},ze=({buildLog:h})=>{const I=Ge(),[U,N]=(0,i.useState)(!1);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Ct.A,{color:"inherit",onClick:()=>N(!0),children:"Show Build Logs"}),(0,o.jsx)(Ie.Ay,{classes:{paper:I.paper},anchor:"right",open:U,onClose:()=>N(!1),children:(0,o.jsx)(le,{buildLog:h,onClose:()=>N(!1)})})]})},He=({errorMessage:h})=>{const I=(0,Q.gf)(nt.U).getOptionalString("techdocs.builder"),U=(0,H.s)(),{entityRef:N}=(0,y.V)(),Z=(0,Nt.zy)();(0,i.useEffect)(()=>{const{pathname:dt,search:St,hash:jt}=Z;U.captureEvent("not-found",`${dt}${St}${jt}`,{attributes:N})},[U,N,Z]);let X="";return I!=="local"&&(X="Note that techdocs.builder is not set to 'local' in your config, which means this Backstage app will not generate docs if they are not found. Make sure the project's docs are generated and published by some external process (e.g. CI/CD pipeline). Or change techdocs.builder to 'local' to generate docs from this Backstage instance."),(0,o.jsx)(D.M,{status:"404",statusMessage:h||"Documentation not found",additionalInfo:X})};var rn=t(38282),Ue=t(26679);function he({contentLoading:h,content:I,activeSyncState:U}){return h||U==="BUILD_READY_RELOAD"||!I&&U==="CHECKING"?"CHECKING":!I&&U==="BUILDING"?"INITIAL_BUILD":I?U==="BUILDING"?"CONTENT_STALE_REFRESHING":U==="BUILD_READY"?"CONTENT_STALE_READY":U==="ERROR"?"CONTENT_STALE_ERROR":"CONTENT_FRESH":"CONTENT_NOT_FOUND"}function Ve(h,I){const U={...h};switch(I.type){case"sync":I.state==="CHECKING"&&(U.buildLog=[]),U.activeSyncState=I.state,U.syncError=I.syncError;break;case"contentLoading":U.contentLoading=!0,U.contentError=void 0;break;case"content":typeof I.path=="string"&&(U.path=I.path),U.contentLoading=!1,U.content=I.content,U.contentError=I.contentError;break;case"buildLog":U.buildLog=U.buildLog.concat(I.log);break;default:throw new Error}return["BUILD_READY","BUILD_READY_RELOAD"].includes(U.activeSyncState)&&["contentLoading","content"].includes(I.type)&&(U.activeSyncState="UP_TO_DATE",U.buildLog=[]),U}function Xe(h,I,U,N){var Z,X;const[dt,St]=(0,i.useReducer)(Ve,{activeSyncState:"CHECKING",path:N,contentLoading:!0,buildLog:[]}),jt=(0,Q.gf)(Ue.s),{retry:$t}=(0,rn.A)(async()=>{St({type:"contentLoading"});try{const Rt=await jt.getEntityDocs({kind:h,namespace:I,name:U},N);return St({type:"content",content:Rt,path:N}),Rt}catch(Rt){St({type:"content",contentError:Rt,path:N})}},[jt,h,I,U,N]),Gt=(0,i.useRef)({content:void 0,reload:()=>{}});return Gt.current={content:dt.content,reload:$t},(0,V.default)(async()=>{St({type:"sync",state:"CHECKING"});const Rt=setTimeout(()=>{St({type:"sync",state:"BUILDING"})},1e3);try{switch(await jt.syncEntityDocs({kind:h,namespace:I,name:U},ye=>{St({type:"buildLog",log:ye})})){case"updated":Gt.current.content?St({type:"sync",state:"BUILD_READY"}):(Gt.current.reload(),St({type:"sync",state:"BUILD_READY_RELOAD"}));break;case"cached":St({type:"sync",state:"UP_TO_DATE"});break;default:St({type:"sync",state:"ERROR",syncError:new Error("Unexpected return state")});break}}catch(de){St({type:"sync",state:"ERROR",syncError:de})}finally{clearTimeout(Rt)}},[h,U,I,jt,St,Gt]),{state:(0,i.useMemo)(()=>he({activeSyncState:dt.activeSyncState,contentLoading:dt.contentLoading,content:dt.content}),[dt.activeSyncState,dt.content,dt.contentLoading]),contentReload:$t,path:dt.path,content:dt.content,contentErrorMessage:(Z=dt.contentError)===null||Z===void 0?void 0:Z.toString(),syncErrorMessage:(X=dt.syncError)===null||X===void 0?void 0:X.toString(),buildLog:dt.buildLog}}const _e=(0,i.createContext)({}),Se=()=>(0,i.useContext)(_e),j=h=>{const{children:I}=h,{"*":U=""}=(0,Nt.g)(),{entityRef:N}=(0,y.V)(),{kind:Z,namespace:X,name:dt}=N,St=Xe(Z,X,dt,U);return(0,o.jsx)(_e.Provider,{value:St,children:I instanceof Function?I(St):I})},v=h=>I=>(0,o.jsx)(j,{children:(0,o.jsx)(h,{...I})}),B=(0,u.A)(h=>({root:{marginBottom:h.spacing(2)},message:{wordBreak:"break-word",overflowWrap:"anywhere"}})),F=()=>{let h=null;const I=B(),{state:U,contentReload:N,contentErrorMessage:Z,syncErrorMessage:X,buildLog:dt}=Se();return U==="INITIAL_BUILD"&&(h=(0,o.jsx)(Ft.A,{classes:{root:I.root},variant:"outlined",severity:"info",icon:(0,o.jsx)(xt.A,{size:"24px"}),action:(0,o.jsx)(ze,{buildLog:dt}),children:"Documentation is accessed for the first time and is being prepared. The subsequent loads are much faster."})),U==="CONTENT_STALE_REFRESHING"&&(h=(0,o.jsx)(Ft.A,{variant:"outlined",severity:"info",icon:(0,o.jsx)(xt.A,{size:"24px"}),action:(0,o.jsx)(ze,{buildLog:dt}),classes:{root:I.root},children:"A newer version of this documentation is being prepared and will be available shortly."})),U==="CONTENT_STALE_READY"&&(h=(0,o.jsx)(Ft.A,{variant:"outlined",severity:"success",action:(0,o.jsx)(Ct.A,{color:"inherit",onClick:()=>N(),children:"Refresh"}),classes:{root:I.root},children:"A newer version of this documentation is now available, please refresh to view."})),U==="CONTENT_STALE_ERROR"&&(h=(0,o.jsxs)(Ft.A,{variant:"outlined",severity:"error",action:(0,o.jsx)(ze,{buildLog:dt}),classes:{root:I.root,message:I.message},children:["Building a newer version of this documentation failed."," ",X]})),U==="CONTENT_NOT_FOUND"&&(h=(0,o.jsxs)(o.Fragment,{children:[X&&(0,o.jsxs)(Ft.A,{variant:"outlined",severity:"error",action:(0,o.jsx)(ze,{buildLog:dt}),classes:{root:I.root,message:I.message},children:["Building a newer version of this documentation failed."," ",X]}),(0,o.jsx)(He,{errorMessage:Z})]})),h};var lt=t(54917),et=t(5893),Dt=t(43320),qt=t(71651),ee=t.n(qt);const pe=/main\.[A-Fa-f0-9]{8}\.min\.css$/,ve=/^https:\/\/fonts\.googleapis\.com/,me=/^https:\/\/fonts\.gstatic\.com/,ue=h=>h.nodeName==="LINK",Yt=h=>{const I=(h==null?void 0:h.getAttribute("href"))||"",U=I.match(pe),N=I.match(ve),Z=I.match(me);return U||N||Z},Te=h=>(ue(h)&&!Yt(h)&&h.remove(),h),Le=h=>h.nodeName==="IFRAME",zt=(h,I)=>{const U=h.getAttribute("src")||"";try{const{host:N}=new URL(U);return I.includes(N)}catch{return!1}},oe=h=>I=>(Le(I)&&!zt(I,h)&&I.remove(),I),ce=()=>{const h=(0,Q.gf)(nt.U);return(0,i.useMemo)(()=>h.getOptionalConfig("techdocs.sanitizer"),[h])},$n=()=>{const h=ce();return(0,i.useCallback)(async I=>{const U=h==null?void 0:h.getOptionalStringArray("allowedIframeHosts");ee().addHook("beforeSanitizeElements",Te);const N=["link"];return U&&(N.push("iframe"),ee().addHook("beforeSanitizeElements",oe(U))),ee().sanitize(I.outerHTML,{ADD_TAGS:N,FORBID_TAGS:["style"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0})},[h])};var xo=t(34435),we=t(268),Nn=({theme:h})=>`
9
- /*================== Variables ==================*/
10
- /*
11
- As the MkDocs output is rendered in shadow DOM, the CSS variable definitions on the root selector are not applied. Instead, they have to be applied on :host.
12
- As there is no way to transform the served main*.css yet (for example in the backend), we have to copy from main*.css and modify them.
13
- */
14
-
15
- :host {
16
- /* FONT */
17
- --md-default-fg-color: ${h.palette.text.primary};
18
- --md-default-fg-color--light: ${h.palette.text.secondary};
19
- --md-default-fg-color--lighter: ${(0,we.a)(h.palette.text.secondary,.7)};
20
- --md-default-fg-color--lightest: ${(0,we.a)(h.palette.text.secondary,.3)};
21
-
22
- /* BACKGROUND */
23
- --md-default-bg-color:${h.palette.background.default};
24
- --md-default-bg-color--light: ${h.palette.background.paper};
25
- --md-default-bg-color--lighter: ${(0,we.a)(h.palette.background.paper,.7)};
26
- --md-default-bg-color--lightest: ${(0,we.a)(h.palette.background.paper,.3)};
27
-
28
- /* PRIMARY */
29
- --md-primary-fg-color: ${h.palette.primary.main};
30
- --md-primary-fg-color--light: ${h.palette.primary.light};
31
- --md-primary-fg-color--dark: ${h.palette.primary.dark};
32
- --md-primary-bg-color: ${h.palette.primary.contrastText};
33
- --md-primary-bg-color--light: ${(0,we.a)(h.palette.primary.contrastText,.7)};
34
-
35
- /* ACCENT */
36
- --md-accent-fg-color: var(--md-primary-fg-color);
37
-
38
- /* SHADOW */
39
- --md-shadow-z1: ${h.shadows[1]};
40
- --md-shadow-z2: ${h.shadows[2]};
41
- --md-shadow-z3: ${h.shadows[3]};
42
-
43
- /* EXTENSIONS */
44
- --md-admonition-fg-color: var(--md-default-fg-color);
45
- --md-admonition-bg-color: var(--md-default-bg-color);
46
- /* Admonitions and others are using SVG masks to define icons. These masks are defined as CSS variables. */
47
- --md-admonition-icon--note: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-1.84 1.83 3.75 3.75M3 17.25V21h3.75L17.81 9.93l-3.75-3.75L3 17.25z"/></svg>');
48
- --md-admonition-icon--abstract: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 5h16v2H4V5m0 4h16v2H4V9m0 4h16v2H4v-2m0 4h10v2H4v-2z"/></svg>');
49
- --md-admonition-icon--info: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 9h-2V7h2m0 10h-2v-6h2m-1-9A10 10 0 002 12a10 10 0 0010 10 10 10 0 0010-10A10 10 0 0012 2z"/></svg>');
50
- --md-admonition-icon--tip: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.55 11.2c-.23-.3-.5-.56-.76-.82-.65-.6-1.4-1.03-2.03-1.66C13.3 7.26 13 4.85 13.91 3c-.91.23-1.75.75-2.45 1.32-2.54 2.08-3.54 5.75-2.34 8.9.04.1.08.2.08.33 0 .22-.15.42-.35.5-.22.1-.46.04-.64-.12a.83.83 0 01-.15-.17c-1.1-1.43-1.28-3.48-.53-5.12C5.89 10 5 12.3 5.14 14.47c.04.5.1 1 .27 1.5.14.6.4 1.2.72 1.73 1.04 1.73 2.87 2.97 4.84 3.22 2.1.27 4.35-.12 5.96-1.6 1.8-1.66 2.45-4.32 1.5-6.6l-.13-.26c-.2-.46-.47-.87-.8-1.25l.05-.01m-3.1 6.3c-.28.24-.73.5-1.08.6-1.1.4-2.2-.16-2.87-.82 1.19-.28 1.89-1.16 2.09-2.05.17-.8-.14-1.46-.27-2.23-.12-.74-.1-1.37.18-2.06.17.38.37.76.6 1.06.76 1 1.95 1.44 2.2 2.8.04.14.06.28.06.43.03.82-.32 1.72-.92 2.27h.01z"/></svg>');
51
- --md-admonition-icon--success: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2m-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
52
- --md-admonition-icon--question: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.07 11.25l-.9.92C13.45 12.89 13 13.5 13 15h-2v-.5c0-1.11.45-2.11 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41a2 2 0 00-2-2 2 2 0 00-2 2H8a4 4 0 014-4 4 4 0 014 4 3.2 3.2 0 01-.93 2.25M13 19h-2v-2h2M12 2A10 10 0 002 12a10 10 0 0010 10 10 10 0 0010-10c0-5.53-4.5-10-10-10z"/></svg>');
53
- --md-admonition-icon--warning: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13 14h-2v-4h2m0 8h-2v-2h2M1 21h22L12 2 1 21z"/></svg>');
54
- --md-admonition-icon--failure: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12 6.47 2 12 2m3.59 5L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41 15.59 7z"/></svg>');
55
- --md-admonition-icon--danger: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.5 20l4.86-9.73H13V4l-5 9.73h3.5V20M12 2c2.75 0 5.1 1 7.05 2.95C21 6.9 22 9.25 22 12s-1 5.1-2.95 7.05C17.1 21 14.75 22 12 22s-5.1-1-7.05-2.95C3 17.1 2 14.75 2 12s1-5.1 2.95-7.05C6.9 3 9.25 2 12 2z"/></svg>');
56
- --md-admonition-icon--bug: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 12h-4v-2h4m0 6h-4v-2h4m6-6h-2.81a5.985 5.985 0 00-1.82-1.96L17 4.41 15.59 3l-2.17 2.17a6.002 6.002 0 00-2.83 0L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8z"/></svg>');
57
- --md-admonition-icon--example: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 13v-2h14v2H7m0 6v-2h14v2H7M7 7V5h14v2H7M3 8V5H2V4h2v4H3m-1 9v-1h3v4H2v-1h2v-.5H3v-1h1V17H2m2.25-7a.75.75 0 01.75.75c0 .2-.08.39-.21.52L3.12 13H5v1H2v-.92L4 11H2v-1h2.25z"/></svg>');
58
- --md-admonition-icon--quote: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 17h3l2-4V7h-6v6h3M6 17h3l2-4V7H5v6h3l-2 4z"/></svg>');
59
- --md-footnotes-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.42L5.83 13H21V7h-2z"/></svg>');
60
- --md-details-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>');
61
- --md-tasklist-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/></svg>');
62
- --md-tasklist-icon--checked: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
63
- --md-nav-icon--prev: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>');
64
- --md-nav-icon--next: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42z"/></svg>');
65
- --md-toc-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 9h14V7H3v2m0 4h14v-2H3v2m0 4h14v-2H3v2m16 0h2v-2h-2v2m0-10v2h2V7h-2m0 6h2v-2h-2v2z"/></svg>');
66
- --md-clipboard-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12V1z"/></svg>');
67
- --md-search-result-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h7c-.41-.25-.8-.56-1.14-.9-.33-.33-.61-.7-.86-1.1H6V4h7v5h5v1.18c.71.16 1.39.43 2 .82V8l-6-6m6.31 16.9c1.33-2.11.69-4.9-1.4-6.22-2.11-1.33-4.91-.68-6.22 1.4-1.34 2.11-.69 4.89 1.4 6.22 1.46.93 3.32.93 4.79.02L22 23.39 23.39 22l-3.08-3.1m-3.81.1a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5 2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5z"/></svg>');
68
- --md-source-forks-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M5 3.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm0 2.122a2.25 2.25 0 1 0-1.5 0v.878A2.25 2.25 0 0 0 5.75 8.5h1.5v2.128a2.251 2.251 0 1 0 1.5 0V8.5h1.5a2.25 2.25 0 0 0 2.25-2.25v-.878a2.25 2.25 0 1 0-1.5 0v.878a.75.75 0 0 1-.75.75h-4.5A.75.75 0 0 1 5 6.25v-.878zm3.75 7.378a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0zm3-8.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5z"/></svg>');
69
- --md-source-repositories-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 1 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 0 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5v-9zm10.5-1V9h-8c-.356 0-.694.074-1 .208V2.5a1 1 0 0 1 1-1h8zM5 12.25v3.25a.25.25 0 0 0 .4.2l1.45-1.087a.25.25 0 0 1 .3 0L8.6 15.7a.25.25 0 0 0 .4-.2v-3.25a.25.25 0 0 0-.25-.25h-3.5a.25.25 0 0 0-.25.25z"/></svg>');
70
- --md-source-stars-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M8 .25a.75.75 0 0 1 .673.418l1.882 3.815 4.21.612a.75.75 0 0 1 .416 1.279l-3.046 2.97.719 4.192a.75.75 0 0 1-1.088.791L8 12.347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75 0 0 1-.564-.41L8 2.694v.001z"/></svg>');
71
- --md-source-version-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M2.5 7.775V2.75a.25.25 0 0 1 .25-.25h5.025a.25.25 0 0 1 .177.073l6.25 6.25a.25.25 0 0 1 0 .354l-5.025 5.025a.25.25 0 0 1-.354 0l-6.25-6.25a.25.25 0 0 1-.073-.177zm-1.5 0V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.75 1.75 0 0 1 1 7.775zM6 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"/></svg>');
72
- --md-version-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="m310.6 246.6-127.1 128c-7.1 6.3-15.3 9.4-23.5 9.4s-16.38-3.125-22.63-9.375l-127.1-128C.224 237.5-2.516 223.7 2.438 211.8S19.07 192 32 192h255.1c12.94 0 24.62 7.781 29.58 19.75s3.12 25.75-6.08 34.85z"/></svg>');
73
- }
74
-
75
- :host > * {
76
- /* CODE */
77
- --md-code-fg-color: ${h.palette.text.primary};
78
- --md-code-bg-color: ${h.palette.background.paper};
79
- --md-code-hl-color: ${(0,we.X4)(h.palette.warning.main,.5)};
80
- --md-code-hl-keyword-color: ${h.palette.type==="dark"?h.palette.primary.light:h.palette.primary.dark};
81
- --md-code-hl-function-color: ${h.palette.type==="dark"?h.palette.secondary.light:h.palette.secondary.dark};
82
- --md-code-hl-string-color: ${h.palette.type==="dark"?h.palette.success.light:h.palette.success.dark};
83
- --md-code-hl-number-color: ${h.palette.type==="dark"?h.palette.error.light:h.palette.error.dark};
84
- --md-code-hl-constant-color: var(--md-code-hl-function-color);
85
- --md-code-hl-special-color: var(--md-code-hl-function-color);
86
- --md-code-hl-name-color: var(--md-code-fg-color);
87
- --md-code-hl-comment-color: var(--md-default-fg-color--light);
88
- --md-code-hl-generic-color: var(--md-default-fg-color--light);
89
- --md-code-hl-variable-color: var(--md-default-fg-color--light);
90
- --md-code-hl-operator-color: var(--md-default-fg-color--light);
91
- --md-code-hl-punctuation-color: var(--md-default-fg-color--light);
92
-
93
- /* TYPESET */
94
- --md-typeset-font-size: 1rem;
95
- --md-typeset-color: var(--md-default-fg-color);
96
- --md-typeset-a-color: ${h.palette.link};
97
- --md-typeset-table-color: ${h.palette.text.primary};
98
- --md-typeset-del-color: ${h.palette.type==="dark"?(0,we.X4)(h.palette.error.dark,.5):(0,we.X4)(h.palette.error.light,.5)};
99
- --md-typeset-ins-color: ${h.palette.type==="dark"?(0,we.X4)(h.palette.success.dark,.5):(0,we.X4)(h.palette.success.light,.5)};
100
- --md-typeset-mark-color: ${h.palette.type==="dark"?(0,we.X4)(h.palette.warning.dark,.5):(0,we.X4)(h.palette.warning.light,.5)};
101
- }
102
-
103
- @media screen and (max-width: 76.1875em) {
104
- :host > * {
105
- /* TYPESET */
106
- --md-typeset-font-size: .9rem;
107
- }
108
- }
109
-
110
- @media screen and (max-width: 600px) {
111
- :host > * {
112
- /* TYPESET */
113
- --md-typeset-font-size: .7rem;
114
- }
115
- }
116
- `,Wn=({theme:h})=>`
117
- /*================== Reset ==================*/
118
-
119
- body {
120
- --md-text-color: var(--md-default-fg-color);
121
- --md-text-link-color: var(--md-accent-fg-color);
122
- --md-text-font-family: ${h.typography.fontFamily};
123
- font-family: var(--md-text-font-family);
124
- background-color: unset;
125
- }
126
- `;const sn="224px";var Me=({theme:h,sidebar:I})=>`
127
- /*================== Layout ==================*/
128
-
129
- /* mkdocs material v9 compat */
130
- .md-nav__title {
131
- color: var(--md-default-fg-color);
132
- }
133
-
134
- .md-grid {
135
- max-width: 100%;
136
- margin: 0;
137
- }
138
-
139
- .md-nav {
140
- font-size: calc(var(--md-typeset-font-size) * 0.9);
141
- }
142
- .md-nav__link {
143
- display: flex;
144
- align-items: center;
145
- justify-content: space-between;
146
- }
147
- .md-nav__icon {
148
- height: 20px !important;
149
- width: 20px !important;
150
- margin-left:${h.spacing(1)}px;
151
- }
152
- .md-nav__icon svg {
153
- margin: 0;
154
- width: 20px !important;
155
- height: 20px !important;
156
- }
157
- .md-nav__icon:after {
158
- width: 20px !important;
159
- height: 20px !important;
160
- }
161
-
162
- .md-nav__item--active > .md-nav__link, a.md-nav__link--active {
163
- text-decoration: underline;
164
- color: var(--md-typeset-a-color);
165
- }
166
-
167
- .md-main__inner {
168
- margin-top: 0;
169
- }
170
-
171
- .md-sidebar {
172
- bottom: 75px;
173
- position: fixed;
174
- width: 16rem;
175
- overflow-y: auto;
176
- overflow-x: hidden;
177
- scrollbar-color: rgb(193, 193, 193) #eee;
178
- scrollbar-width: thin;
179
- }
180
- .md-sidebar .md-sidebar__scrollwrap {
181
- width: calc(12.1rem);
182
- }
183
- .md-sidebar--secondary {
184
- right: ${h.spacing(3)}px;
185
- }
186
- .md-sidebar::-webkit-scrollbar {
187
- width: 5px;
188
- }
189
- .md-sidebar::-webkit-scrollbar-button {
190
- width: 5px;
191
- height: 5px;
192
- }
193
- .md-sidebar::-webkit-scrollbar-track {
194
- background: #eee;
195
- border: 1 px solid rgb(250, 250, 250);
196
- box-shadow: 0px 0px 3px #dfdfdf inset;
197
- border-radius: 3px;
198
- }
199
- .md-sidebar::-webkit-scrollbar-thumb {
200
- width: 5px;
201
- background: rgb(193, 193, 193);
202
- border: transparent;
203
- border-radius: 3px;
204
- }
205
- .md-sidebar::-webkit-scrollbar-thumb:hover {
206
- background: rgb(125, 125, 125);
207
- }
208
-
209
- .md-content {
210
- max-width: calc(100% - 16rem * 2);
211
- margin-left: 16rem;
212
- margin-bottom: 50px;
213
- }
214
-
215
- .md-footer {
216
- position: fixed;
217
- bottom: 0px;
218
- pointer-events: none;
219
- }
220
-
221
- .md-footer-nav__link, .md-footer__link {
222
- pointer-events: all;
223
- }
224
-
225
- .md-footer__title {
226
- background-color: unset;
227
- }
228
- .md-footer-nav__link, .md-footer__link {
229
- width: 16rem;
230
- }
231
-
232
- .md-dialog {
233
- background-color: unset;
234
- }
235
-
236
- @media screen and (min-width: 76.25em) {
237
- .md-sidebar {
238
- height: auto;
239
- }
240
- }
241
-
242
- @media screen and (max-width: 76.1875em) {
243
- .md-nav {
244
- transition: none !important;
245
- background-color: var(--md-default-bg-color)
246
- }
247
- .md-nav--primary .md-nav__title {
248
- cursor: auto;
249
- color: var(--md-default-fg-color);
250
- font-weight: 700;
251
- white-space: normal;
252
- line-height: 1rem;
253
- height: auto;
254
- display: flex;
255
- flex-flow: column;
256
- row-gap: 1.6rem;
257
- padding: 1.2rem .8rem .8rem;
258
- background-color: var(--md-default-bg-color);
259
- }
260
- .md-nav--primary .md-nav__title~.md-nav__list {
261
- box-shadow: none;
262
- }
263
- .md-nav--primary .md-nav__title ~ .md-nav__list > :first-child {
264
- border-top: none;
265
- }
266
- .md-nav--primary .md-nav__title .md-nav__button {
267
- display: none;
268
- }
269
- .md-nav--primary .md-nav__title .md-nav__icon {
270
- color: var(--md-default-fg-color);
271
- position: static;
272
- height: auto;
273
- margin: 0 0 0 -0.2rem;
274
- }
275
- .md-nav--primary > .md-nav__title [for="none"] {
276
- padding-top: 0;
277
- }
278
- .md-nav--primary .md-nav__item {
279
- border-top: none;
280
- }
281
- .md-nav--primary :is(.md-nav__title,.md-nav__item) {
282
- font-size : var(--md-typeset-font-size);
283
- }
284
- .md-nav .md-source {
285
- display: none;
286
- }
287
-
288
- .md-sidebar {
289
- height: 100%;
290
- }
291
- .md-sidebar--primary {
292
- width: 12.1rem !important;
293
- z-index: 200;
294
- left: ${I.isPinned?`calc(-12.1rem + ${sn})`:"calc(-12.1rem + 72px)"} !important;
295
- }
296
- .md-sidebar--secondary:not([hidden]) {
297
- display: none;
298
- }
299
-
300
- .md-content {
301
- max-width: 100%;
302
- margin-left: 0;
303
- }
304
-
305
- .md-header__button {
306
- margin: 0.4rem 0;
307
- margin-left: 0.4rem;
308
- padding: 0;
309
- }
310
-
311
- .md-overlay {
312
- left: 0;
313
- }
314
-
315
- .md-footer {
316
- position: static;
317
- padding-left: 0;
318
- }
319
- .md-footer-nav__link {
320
- /* footer links begin to overlap at small sizes without setting width */
321
- width: 50%;
322
- }
323
- }
324
-
325
- @media screen and (max-width: 600px) {
326
- .md-sidebar--primary {
327
- left: -12.1rem !important;
328
- width: 12.1rem;
329
- }
330
- }
331
-
332
-
333
- @media print {
334
- .md-sidebar,
335
- #toggle-sidebar {
336
- display: none;
337
- }
338
-
339
- .md-content {
340
- margin: 0;
341
- width: 100%;
342
- max-width: 100%;
343
- }
344
- }
345
- `;const Co=["h1","h2","h3","h4","h5","h6"];var qe=({theme:h})=>`
346
- /*================== Typeset ==================*/
347
-
348
- .md-typeset {
349
- font-size: var(--md-typeset-font-size);
350
- }
351
-
352
- ${Co.reduce((I,U)=>{var N;const Z=(N=h.typography.htmlFontSize)!==null&&N!==void 0?N:16,X=h.typography[U],{lineHeight:dt,fontFamily:St,fontWeight:jt,fontSize:$t}=X,Gt=Wt=>{let Rt=1;return typeof Wt=="number"&&(Rt=Wt/Z*.6),typeof Wt=="string"&&(Rt=Wt.replace("rem","")),`calc(${Rt} * var(--md-typeset-font-size))`};return I.concat(`
353
- .md-typeset ${U} {
354
- color: var(--md-default-fg-color);
355
- line-height: ${dt};
356
- font-family: ${St};
357
- font-weight: ${jt};
358
- font-size: ${Gt($t)};
359
- }
360
- `)},"")}
361
-
362
- .md-typeset .md-content__button {
363
- color: var(--md-default-fg-color);
364
- }
365
-
366
- .md-typeset hr {
367
- border-bottom: 0.05rem dotted ${h.palette.divider};
368
- }
369
-
370
- .md-typeset details {
371
- font-size: var(--md-typeset-font-size) !important;
372
- }
373
- .md-typeset details summary {
374
- padding-left: 2.5rem !important;
375
- }
376
- .md-typeset details summary:before,
377
- .md-typeset details summary:after {
378
- top: 50% !important;
379
- width: 20px !important;
380
- height: 20px !important;
381
- transform: rotate(0deg) translateY(-50%) !important;
382
- }
383
- .md-typeset details[open] > summary:after {
384
- transform: rotate(90deg) translateX(-50%) !important;
385
- }
386
-
387
- .md-typeset blockquote {
388
- color: var(--md-default-fg-color--light);
389
- border-left: 0.2rem solid var(--md-default-fg-color--light);
390
- }
391
-
392
- .md-typeset table:not([class]) {
393
- font-size: var(--md-typeset-font-size);
394
- border: 1px solid var(--md-default-fg-color);
395
- border-bottom: none;
396
- border-collapse: collapse;
397
- }
398
- .md-typeset table:not([class]) th {
399
- font-weight: bold;
400
- }
401
- .md-typeset table:not([class]) td, .md-typeset table:not([class]) th {
402
- border-bottom: 1px solid var(--md-default-fg-color);
403
- }
404
-
405
- .md-typeset pre > code::-webkit-scrollbar-thumb {
406
- background-color: hsla(0, 0%, 0%, 0.32);
407
- }
408
- .md-typeset pre > code::-webkit-scrollbar-thumb:hover {
409
- background-color: hsla(0, 0%, 0%, 0.87);
410
- }
411
-
412
- .md-typeset code {
413
- word-break: keep-all;
414
- }
415
- `,So=()=>`
416
- /*================== Animations ==================*/
417
- /*
418
- Disable CSS animations on link colors as they lead to issues in dark mode.
419
- The dark mode color theme is applied later and theirfore there is always an animation from light to dark mode when navigation between pages.
420
- */
421
- .md-dialog, .md-nav__link, .md-footer__link, .md-typeset a, .md-typeset a::before, .md-typeset .headerlink {
422
- transition: none;
423
- }
424
- `,kn=({theme:h})=>`
425
- /*================== Extensions ==================*/
426
-
427
- /* HIGHLIGHT */
428
- .highlight .md-clipboard:after {
429
- content: unset;
430
- }
431
-
432
- .highlight .nx {
433
- color: ${h.palette.type==="dark"?"#ff53a3":"#ec407a"};
434
- }
435
-
436
- /* CODE HILITE */
437
- .codehilite .gd {
438
- background-color: ${h.palette.type==="dark"?"rgba(248,81,73,0.65)":"#fdd"};
439
- }
440
-
441
- .codehilite .gi {
442
- background-color: ${h.palette.type==="dark"?"rgba(46,160,67,0.65)":"#dfd"};
443
- }
444
-
445
- /* TABBED */
446
- .tabbed-set>input:nth-child(1):checked~.tabbed-labels>:nth-child(1),
447
- .tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),
448
- .tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),
449
- .tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),
450
- .tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),
451
- .tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),
452
- .tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),
453
- .tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),
454
- .tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9),
455
- .tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),
456
- .tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),
457
- .tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),
458
- .tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),
459
- .tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),
460
- .tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),
461
- .tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),
462
- .tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),
463
- .tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),
464
- .tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),
465
- .tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20) {
466
- color: var(--md-accent-fg-color);
467
- border-color: var(--md-accent-fg-color);
468
- }
469
-
470
- /* TASK-LIST */
471
- .task-list-control .task-list-indicator::before {
472
- background-color: ${h.palette.action.disabledBackground};
473
- }
474
- .task-list-control [type="checkbox"]:checked + .task-list-indicator:before {
475
- background-color: ${h.palette.success.main};
476
- }
477
-
478
- /* ADMONITION */
479
- .admonition {
480
- font-size: var(--md-typeset-font-size) !important;
481
- }
482
- .admonition .admonition-title {
483
- padding-left: 2.5rem !important;
484
- }
485
-
486
- .admonition .admonition-title:before {
487
- top: 50% !important;
488
- width: 20px !important;
489
- height: 20px !important;
490
- transform: translateY(-50%) !important;
491
- }
492
- `;const bo=[Nn,Wn,Me,qe,So,kn],Qt=()=>(0,xo.Ut)(),tn=()=>{const h=Qt(),I=(0,lt.A)();return(0,i.useMemo)(()=>{const U={theme:I,sidebar:h};return bo.reduce((N,Z)=>N+Z(U),"")},[I,h])},dn=()=>{const h=tn();return(0,i.useCallback)(I=>(I.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${h}</style>`),I),[h])},Kn=async(h,I)=>{let U;if(typeof h=="string")U=new DOMParser().parseFromString(h,"text/html").documentElement;else if(h instanceof Element)U=h;else throw new Error("dom is not a recognized type");for(const N of I)U=await N(U);return U},Oo=(h,I,U)=>{const N=h==="src"&&I.endsWith(".svg"),Z=!I.match(/^([a-z]*:)?\/\//i),X=I.startsWith(U);return N&&(Z||X)},Po=({techdocsStorageApi:h,entityId:I,path:U})=>async N=>{const Z=await h.getApiOrigin(),X=async(dt,St)=>{for(const jt of dt)if(jt.hasAttribute(St)){const $t=jt.getAttribute(St);if(!$t)return;const Gt=await h.getBaseUrl($t,I,U);if(Oo(St,$t,Z))try{const Rt=await(await fetch(Gt,{credentials:"include"})).text();jt.setAttribute(St,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(Rt)))}`)}catch{jt.setAttribute("alt",`Error: ${$t}`)}else jt.setAttribute(St,Gt)}};return await Promise.all([X(N.querySelectorAll("img"),"src"),X(N.querySelectorAll("script"),"src"),X(N.querySelectorAll("source"),"src"),X(N.querySelectorAll("link"),"href"),X(N.querySelectorAll("a[download]"),"href")]),N},To=()=>h=>(((U,N)=>{Array.from(U).filter(Z=>Z.hasAttribute(N)).forEach(Z=>{const X=Z.getAttribute(N);if(X){X.match(/^https?:\/\//i)&&Z.setAttribute("target","_blank");try{const dt=An(window.location.href);Z.setAttribute(N,new URL(X,dt).toString())}catch{Z.replaceWith(Z.textContent||X)}}})})(Array.from(h.getElementsByTagName("a")),"href"),h);function An(h){const I=new URL(h);return!I.pathname.endsWith("/")&&!I.pathname.endsWith(".html")&&(I.pathname+="/"),I.toString()}var wo=t(27326);let xn;xn=Promise.resolve().then(t.t.bind(t,25873,19));function Cn(h,I){xn.then(U=>{"createRoot"in U?U.createRoot(I).render(h):U.render(h,I)})}const zn=()=>h=>{const I=h.querySelector('.md-header label[for="__drawer"]'),U=h.querySelector("article");if(!I||!U)return h;const N=I.cloneNode();return Cn(i.createElement(wo.A),N),N.id="toggle-sidebar",N.title="Toggle Sidebar",N.classList.add("md-content__button"),N.style.setProperty("padding","0 0 0 5px"),N.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),U==null||U.prepend(N),h},Ro=()=>h=>{var I;return(I=h.querySelector(".md-header"))===null||I===void 0||I.remove(),h},Io=()=>h=>{var I,U;return(I=h.querySelector(".md-footer .md-copyright"))===null||I===void 0||I.remove(),(U=h.querySelector(".md-footer-copyright"))===null||U===void 0||U.remove(),h};var Do=t(36021),Lo=t(90292),Mo=t(52536),jo=t.n(Mo);const Bo=h=>I=>{var U;const N=I.querySelector('[title="Edit this page"]');if(!N||!N.href)return I;const Z=new URL(N.href),X=h.byUrl(Z);if((X==null?void 0:X.type)!=="github"&&(X==null?void 0:X.type)!=="gitlab")return I;const dt=((U=I.querySelector("article>h1"))===null||U===void 0?void 0:U.childNodes[0].textContent)||"",St=encodeURIComponent(`Documentation Feedback: ${dt}`),jt=encodeURIComponent(`Page source:
493
- ${N.href}
494
-
495
- Feedback:`),$t=(X==null?void 0:X.type)==="github"?(0,Do.F)(Z.href,"blob"):Z.href,Gt=jo()($t),Wt=`/${Gt.organization}/${Gt.name}`,Rt=N.cloneNode();switch(X==null?void 0:X.type){case"gitlab":Rt.href=`${Z.origin}${Wt}/issues/new?issue[title]=${St}&issue[description]=${jt}`;break;case"github":Rt.href=`${Z.origin}${Wt}/issues/new?title=${St}&body=${jt}`;break;default:return I}return Cn(i.createElement(Lo.A),Rt),Rt.style.paddingLeft="5px",Rt.title="Leave feedback for this page",Rt.id="git-feedback-link",N==null||N.insertAdjacentElement("beforebegin",Rt),I},Hn=()=>h=>(setTimeout(()=>{const I=h==null?void 0:h.querySelectorAll("li.md-nav__item--active");I.length!==0&&(I.forEach(N=>{const Z=N==null?void 0:N.querySelector("input");Z!=null&&Z.checked||Z==null||Z.click()}),I[I.length-1].scrollIntoView())},200),h);var Uo=t(7031),Fo=t(71677),Vn=t(10437),Gn=t(50868),$o=t(51100);const Sn=(0,Uo.A)(h=>({tooltip:{fontSize:"inherit",color:h.palette.text.primary,margin:0,padding:h.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(Fo.Ay),bn=()=>(0,o.jsx)(Vn.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"})}),No=({text:h})=>{const[I,U]=(0,i.useState)(!1),[,N]=(0,$o.A)(),Z=(0,i.useCallback)(()=>{N(h),U(!0)},[h,N]),X=(0,i.useCallback)(()=>{U(!1)},[U]);return(0,o.jsx)(Sn,{title:"Copied to clipboard",placement:"left",open:I,onClose:X,leaveDelay:1e3,children:(0,o.jsx)(gt.A,{style:{color:"inherit"},className:"md-clipboard md-icon",onClick:Z,children:(0,o.jsx)(bn,{})})})},Yn=h=>I=>{const U=I.querySelectorAll("pre > code");for(const Z of U){var N;const X=Z.textContent||"",dt=document.createElement("div");Z==null||(N=Z.parentElement)===null||N===void 0||N.prepend(dt),Cn((0,o.jsx)(Gn.A,{theme:h,children:(0,o.jsx)(No,{text:X})}),dt)}return I},Qn=({baseUrl:h,onClick:I})=>U=>(Array.from(U.getElementsByTagName("a")).forEach(N=>{N.addEventListener("click",Z=>{const dt=N.getAttribute("href");dt&&dt.startsWith(h)&&!N.hasAttribute("download")&&(Z.preventDefault(),I(Z,dt))})}),U),Zn=({onLoading:h,onLoaded:I})=>U=>(h(),U.addEventListener(E,function N(){I(),U.removeEventListener(E,N)}),U);function Wo(h,I){const U=new URL(I),N=`${U.origin}${U.pathname.replace(/\/$/,"")}`,Z=h.replace(N,"").replace(/^\/+/,""),X=new URL(`http://localhost/${Z}`);return`${X.pathname}${X.search}${X.hash}`}function ko(){const h=(0,Nt.Zp)(),U=(0,Q.gf)(nt.U).getOptionalString("app.baseUrl");return(0,i.useCallback)(Z=>{let X=Z;if(U)try{X=Wo(Z,U)}catch{}h(X)},[h,U])}const Ko="screen and (max-width: 76.1875em)",zo=h=>{const I=ko(),U=(0,lt.A)(),N=(0,et.A)(Ko),Z=$n(),X=dn(),dt=(0,H.s)(),St=(0,Q.gf)(Ue.s),jt=(0,Q.gf)(Dt.Y),{state:$t,path:Gt,content:Wt}=Se(),[Rt,de]=(0,i.useState)(null),ye=p(Rt),Jt=(0,i.useCallback)(()=>{if(!Rt)return;Rt.querySelectorAll(".md-sidebar").forEach(Ht=>{if(N)Ht.style.top="0px";else{var te;const ge=(te=document)===null||te===void 0?void 0:te.querySelector(".techdocs-reader-page");var Ae;const $e=(Ae=ge==null?void 0:ge.getBoundingClientRect().top)!==null&&Ae!==void 0?Ae:0;var je;let re=(je=Rt.getBoundingClientRect().top)!==null&&je!==void 0?je:0;const Tn=Rt.querySelector(".md-container > .md-tabs");var Fe;const Vo=(Fe=Tn==null?void 0:Tn.getBoundingClientRect().height)!==null&&Fe!==void 0?Fe:0;re<$e&&(re=$e),Ht.style.top=`${Math.max(re,0)+Vo}px`}Ht.style.setProperty("opacity","1")})},[Rt,N]);(0,i.useEffect)(()=>(window.addEventListener("resize",Jt),window.addEventListener("scroll",Jt,!0),()=>{window.removeEventListener("resize",Jt),window.removeEventListener("scroll",Jt,!0)}),[Rt,Jt]);const kt=(0,i.useCallback)(()=>{if(!Rt)return;const Mt=Rt.querySelector(".md-footer");Mt&&(Mt.style.width=`${Rt.getBoundingClientRect().width}px`)},[Rt]);(0,i.useEffect)(()=>(window.addEventListener("resize",kt),()=>{window.removeEventListener("resize",kt)}),[Rt,kt]),(0,i.useEffect)(()=>{ye||(kt(),Jt())},[$t,ye,kt,Jt]);const ae=(0,i.useCallback)((Mt,Ht)=>Kn(Mt,[Z,Po({techdocsStorageApi:St,entityId:h,path:Ht}),To(),zn(),Ro(),Io(),Bo(jt),X]),[h,jt,St,Z,X]),Ee=(0,i.useCallback)(async Mt=>Kn(Mt,[Hn(),Yn(U),Qn({baseUrl:window.location.origin,onClick:(Ht,te)=>{var Ae;const je=Ht.ctrlKey||Ht.metaKey,Fe=new URL(te),ge=((Ae=Ht.target)===null||Ae===void 0?void 0:Ae.innerText)||te,$e=te.replace(window.location.origin,"");if(dt.captureEvent("click",ge,{attributes:{to:$e}}),Fe.hash)if(je)window.open(te,"_blank");else{var re;I(te),Mt==null||(re=Mt.querySelector(`[id="${Fe.hash.slice(1)}"]`))===null||re===void 0||re.scrollIntoView()}else je?window.open(te,"_blank"):I(te)}}),Zn({onLoading:()=>{},onLoaded:()=>{var Ht;(Ht=Mt.querySelector(".md-nav__title"))===null||Ht===void 0||Ht.removeAttribute("for")}}),Zn({onLoading:()=>{Array.from(Mt.querySelectorAll(".md-sidebar")).forEach(te=>{te.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[U,I,dt]);return(0,i.useEffect)(()=>{if(!Wt)return()=>{};let Mt=!0;return ae(Wt,Gt).then(async Ht=>{if(!(Ht!=null&&Ht.innerHTML)||!Mt)return;window.scroll({top:0});const te=await Ee(Ht);de(te)}),()=>{Mt=!1}},[Wt,Gt,ae,Ee]),Rt};var On=t(41883),Ho=t(72020),Pn=t(99730);const Jn=()=>{const h=(0,Ho.YR)(),{shadowRoot:I}=(0,y.V)(),U=I==null?void 0:I.querySelector('[data-md-component="content"]'),N=I==null?void 0:I.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let Z=N==null?void 0:N.querySelector('[data-techdocs-addons-location="primary sidebar"]');Z||(Z=document.createElement("div"),Z.setAttribute("data-techdocs-addons-location","primary sidebar"),N==null||N.prepend(Z));const X=I==null?void 0:I.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let dt=X==null?void 0:X.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return dt||(dt=document.createElement("div"),dt.setAttribute("data-techdocs-addons-location","secondary sidebar"),X==null||X.prepend(dt)),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(On.A,{container:Z,children:h.renderComponentsByLocation(Pn.e.PrimarySidebar)}),(0,o.jsx)(On.A,{container:U,children:h.renderComponentsByLocation(Pn.e.Content)}),(0,o.jsx)(On.A,{container:dt,children:h.renderComponentsByLocation(Pn.e.SecondarySidebar)})]})},Xn=(0,u.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Lt=v(h=>{var I;const{withSearch:U=!0,onReady:N}=h,Z=Xn(),{entityMetadata:{value:X,loading:dt},entityRef:St,setShadowRoot:jt}=(0,y.V)(),$t=zo(St),Gt=window.location.pathname,Wt=window.location.hash,Rt=p($t),[de]=P([`[id="${Wt.slice(1)}"]`]);(0,i.useEffect)(()=>{if(!Rt)if(Wt)de&&de.scrollIntoView();else{var Jt,kt;(kt=document)===null||kt===void 0||(Jt=kt.querySelector("header"))===null||Jt===void 0||Jt.scrollIntoView()}},[Gt,Wt,de,Rt]);const ye=(0,i.useCallback)(Jt=>{jt(Jt),N instanceof Function&&N()},[jt,N]);return dt===!1&&!X?(0,o.jsx)(D.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):$t?(0,o.jsx)(b.U,{children:(0,o.jsxs)(x.A,{container:!0,children:[(0,o.jsx)(x.A,{xs:12,item:!0,children:(0,o.jsx)(F,{})}),U&&(0,o.jsx)(x.A,{className:Z.search,xs:"auto",item:!0,children:(0,o.jsx)(_t,{entityId:St,entityTitle:X==null||(I=X.metadata)===null||I===void 0?void 0:I.title})}),(0,o.jsx)(x.A,{xs:12,item:!0,children:(0,o.jsx)(C,{element:$t,onAppend:ye,children:(0,o.jsx)(Jn,{})})})]})}):(0,o.jsx)(b.U,{children:(0,o.jsx)(x.A,{container:!0,children:(0,o.jsx)(x.A,{xs:12,item:!0,children:(0,o.jsx)(F,{})})})})}),fe=null},45061:function(Y,w,t){"use strict";t.d(w,{T:function(){return nt}});var o=t(31085),i=t(14041),u=t(93285),x=t(42899),y=t(4387),g=t(54917),c=t(13660),d=t(72020),m=t(86892),E=t(99730),S=t(67871),p=t(8859),C=t(34428),f=t(51372),R=t(58837),P=t(268),T=t(72501),M=t(72072);const D=(0,R.A)(ct=>({root:{textAlign:"left"},label:{color:ct.page.fontColor,fontWeight:ct.typography.fontWeightBold,letterSpacing:0,fontSize:ct.typography.fontSize,marginBottom:ct.spacing(1)/2,lineHeight:1},value:{color:(0,P.X4)(ct.page.fontColor,.8),fontSize:ct.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),b=({value:ct,className:pt,typographyRootComponent:Pt})=>(0,o.jsx)(T.A,{component:Pt!=null?Pt:typeof ct=="string"?"p":"span",className:pt,children:ct});function K(ct){const{label:pt,value:Pt,url:it,contentTypograpyRootComponent:vt}=ct,at=D(),ut=(0,o.jsx)(b,{className:at.value,value:Pt||"<Unknown>",typographyRootComponent:vt});return(0,o.jsx)(x.A,{item:!0,children:(0,o.jsxs)(T.A,{component:"span",className:at.root,children:[(0,o.jsx)(T.A,{className:at.label,children:pt}),it?(0,o.jsx)(M.N_,{to:it,children:ut}):ut]})})}var V=t(69814),tt=t(72427),k=t(65461),G=t(9222),Q=t(45250),H=t(82779);const _=(0,o.jsx)(y.A,{animation:"wave",variant:"text",height:40}),nt=ct=>{const{palette:{common:{white:pt}}}=(0,g.A)(),{children:Pt}=ct,it=(0,d.YR)(),vt=(0,tt.gf)(k.U),{title:at,setTitle:ut,subtitle:ft,setSubtitle:q,entityRef:At,metadata:{value:xt,loading:ot},entityMetadata:{value:rt,loading:gt}}=(0,m.V)();(0,i.useEffect)(()=>{xt&&(ut(xt.site_name),q(()=>{let{site_description:Ot}=xt;return(!Ot||Ot==="None")&&(Ot=""),Ot}))},[xt,ut,q]);const Tt=vt.getOptional("app.title")||"Backstage",Ct=[at,ft,Tt].filter(Boolean).join(" | "),{locationMetadata:$,spec:z}=rt||{},mt=z==null?void 0:z.lifecycle,yt=rt?(0,S.t)(rt,f.vv):[],It=(0,G.S)(H.rQ)(),wt=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(K,{label:(0,Q.capitalize)((rt==null?void 0:rt.kind)||"entity"),value:(0,o.jsx)(p.z,{color:"inherit",entityRef:At,title:rt==null?void 0:rt.metadata.title,defaultKind:"Component"})}),yt.length>0&&(0,o.jsx)(K,{label:"Owner",value:(0,o.jsx)(C.i,{color:"inherit",entityRefs:yt,defaultKind:"group"})}),mt?(0,o.jsx)(K,{label:"Lifecycle",value:String(mt)}):null,$&&$.type!=="dir"&&$.type!=="file"?(0,o.jsx)(K,{label:"",value:(0,o.jsxs)(x.A,{container:!0,direction:"column",alignItems:"center",style:{color:pt},children:[(0,o.jsx)(x.A,{style:{padding:0},item:!0,children:(0,o.jsx)(c.A,{style:{marginTop:"-25px"}})}),(0,o.jsx)(x.A,{style:{padding:0},item:!0,children:"Source"})]}),url:$.target}):null]});return!gt&&rt===void 0||!ot&&xt===void 0?null:(0,o.jsxs)(V.Y,{type:"Documentation",typeLink:It,title:at||_,subtitle:ft===""?void 0:ft||_,children:[(0,o.jsx)(u.A,{titleTemplate:"%s",children:(0,o.jsx)("title",{children:Ct})}),wt,Pt,it.renderComponentsByLocation(E.e.Header)]})}},82779:function(Y,w,t){"use strict";t.d(w,{Oc:function(){return u},Ri:function(){return x},rQ:function(){return i}});var o=t(34569);const i=(0,o.H)({id:"techdocs:index-page"}),u=(0,o.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),x=(0,o.H)({id:"techdocs:catalog-reader-view"})},27698:function(Y,w,t){"use strict";t.r(w),t.d(w,{TechDocsSearchResultListItem:function(){return E}});var o=t(31085),i=t(14041),u=t(58837),x=t(5951),y=t(46423),g=t(72501),c=t(72072),d=t(70734);const m=(0,u.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),E=S=>{const{result:p,highlight:C,lineClamp:f=5,asListItem:R=!0,asLink:P=!0,title:T,icon:M}=S,D=m(),b=({children:tt})=>P?(0,o.jsx)(c.N_,{noTrack:!0,to:p.location,children:tt}):(0,o.jsx)(o.Fragment,{children:tt}),K=()=>{const tt=C!=null&&C.fields.title?(0,o.jsx)(d.e,{text:C.fields.title,preTag:C.preTag,postTag:C.postTag}):p.title,k=C!=null&&C.fields.entityTitle?(0,o.jsx)(d.e,{text:C.fields.entityTitle,preTag:C.preTag,postTag:C.postTag}):p.entityTitle,G=C!=null&&C.fields.name?(0,o.jsx)(d.e,{text:C.fields.name,preTag:C.preTag,postTag:C.postTag}):p.name;return p?(0,o.jsx)(x.A,{className:D.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,o.jsx)(b,{children:T||(0,o.jsxs)(o.Fragment,{children:[tt," | ",k!=null?k:G," docs"]})}),secondary:(0,o.jsx)(g.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:f,overflow:"hidden"},color:"textSecondary",variant:"body2",children:C!=null&&C.fields.text?(0,o.jsx)(d.e,{text:C.fields.text,preTag:C.preTag,postTag:C.postTag}):p.text})}):null},V=({children:tt})=>R?(0,o.jsxs)(o.Fragment,{children:[M&&(0,o.jsx)(y.A,{children:typeof M=="function"?M(p):M}),(0,o.jsx)("div",{className:D.flexContainer,children:tt})]}):(0,o.jsx)(o.Fragment,{children:tt});return(0,o.jsx)(V,{children:(0,o.jsx)(K,{})})}},86973:function(){}},function(Y){var w=function(o){return Y(Y.s=o)};Y.O(0,[1751,1888,235,6587,2754,9669,1975,5042,7400,4121],function(){return w(56041)});var t=Y.O()}]);})();
496
-
497
- //# sourceMappingURL=main.76ed602b.js.map