@techdocs/cli 1.8.19-next.2 → 1.8.20-next.0
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.
- package/CHANGELOG.md +22 -0
- package/dist/embedded-app/.config-schema.json +45 -427
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/index.html.tmpl +1 -1
- package/dist/embedded-app/static/{124.6a72bb60.chunk.js → 124.b47d39f0.chunk.js} +3 -3
- package/dist/embedded-app/static/124.b47d39f0.chunk.js.map +1 -0
- package/dist/embedded-app/static/{1297.56016a00.chunk.js → 1297.bdbb2ab3.chunk.js} +2 -2
- package/dist/embedded-app/static/{1297.56016a00.chunk.js.map → 1297.bdbb2ab3.chunk.js.map} +1 -1
- package/dist/embedded-app/static/2177.9af93c36.chunk.js +4 -0
- package/dist/embedded-app/static/2177.9af93c36.chunk.js.map +1 -0
- package/dist/embedded-app/static/{2401.5800894a.chunk.js → 2401.35bcb315.chunk.js} +4 -4
- package/dist/embedded-app/static/2401.35bcb315.chunk.js.map +1 -0
- package/dist/embedded-app/static/{2420.ec71550f.chunk.js → 2420.860e0793.chunk.js} +3 -3
- package/dist/embedded-app/static/2420.860e0793.chunk.js.map +1 -0
- package/dist/embedded-app/static/{287.cb167bf5.chunk.js → 287.47551c87.chunk.js} +3 -3
- package/dist/embedded-app/static/287.47551c87.chunk.js.map +1 -0
- package/dist/embedded-app/static/{3182.c93f3ad2.chunk.js → 3182.98e9d2a1.chunk.js} +2 -2
- package/dist/embedded-app/static/{3182.c93f3ad2.chunk.js.map → 3182.98e9d2a1.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{3632.79d8d08e.chunk.js → 3632.9a960ad0.chunk.js} +3 -3
- package/dist/embedded-app/static/3632.9a960ad0.chunk.js.map +1 -0
- package/dist/embedded-app/static/5184.a71ad88e.chunk.js +3 -0
- package/dist/embedded-app/static/5184.a71ad88e.chunk.js.map +1 -0
- package/dist/embedded-app/static/5724.3b064b18.chunk.js +4 -0
- package/dist/embedded-app/static/5724.3b064b18.chunk.js.map +1 -0
- package/dist/embedded-app/static/{6271.a9677342.chunk.js → 6271.eb3d4c17.chunk.js} +3 -3
- package/dist/embedded-app/static/6271.eb3d4c17.chunk.js.map +1 -0
- package/dist/embedded-app/static/{6415.fdd76cbd.chunk.js → 6415.f399ab03.chunk.js} +4 -4
- package/dist/embedded-app/static/6415.f399ab03.chunk.js.map +1 -0
- package/dist/embedded-app/static/{8307.59399604.chunk.js → 8307.39e989c7.chunk.js} +2 -2
- package/dist/embedded-app/static/{8307.59399604.chunk.js.map → 8307.39e989c7.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{8384.e7a39178.chunk.js → 8384.1a62b18a.chunk.js} +4 -4
- package/dist/embedded-app/static/8384.1a62b18a.chunk.js.map +1 -0
- package/dist/embedded-app/static/9605.7441e12c.chunk.js +11 -0
- package/dist/embedded-app/static/9605.7441e12c.chunk.js.map +1 -0
- package/dist/embedded-app/static/{9652.1693197c.chunk.js → 9652.4e8f3b00.chunk.js} +3 -3
- package/dist/embedded-app/static/9652.4e8f3b00.chunk.js.map +1 -0
- package/dist/embedded-app/static/main.500b1c12.js +533 -0
- package/dist/embedded-app/static/main.500b1c12.js.map +1 -0
- package/dist/embedded-app/static/{module-material-ui.91ae9db1.js → module-material-ui.116dde6e.js} +2 -2
- package/dist/embedded-app/static/module-material-ui.116dde6e.js.map +1 -0
- package/dist/embedded-app/static/{runtime.835725b1.js → runtime.500b1c12.js} +2 -2
- package/dist/embedded-app/static/{runtime.835725b1.js.map → runtime.500b1c12.js.map} +1 -1
- package/dist/embedded-app/static/{vendor.835725b1.js → vendor.500b1c12.js} +1 -1
- package/dist/embedded-app/static/{vendor.835725b1.js.map → vendor.500b1c12.js.map} +1 -1
- package/dist/index.cjs.js +1 -1
- package/package.json +35 -35
- package/dist/embedded-app/static/124.6a72bb60.chunk.js.map +0 -1
- package/dist/embedded-app/static/2177.75b21fde.chunk.js +0 -4
- package/dist/embedded-app/static/2177.75b21fde.chunk.js.map +0 -1
- package/dist/embedded-app/static/2401.5800894a.chunk.js.map +0 -1
- package/dist/embedded-app/static/2420.ec71550f.chunk.js.map +0 -1
- package/dist/embedded-app/static/287.cb167bf5.chunk.js.map +0 -1
- package/dist/embedded-app/static/3632.79d8d08e.chunk.js.map +0 -1
- package/dist/embedded-app/static/5724.6bcea8b5.chunk.js +0 -4
- package/dist/embedded-app/static/5724.6bcea8b5.chunk.js.map +0 -1
- package/dist/embedded-app/static/6271.a9677342.chunk.js.map +0 -1
- package/dist/embedded-app/static/6415.fdd76cbd.chunk.js.map +0 -1
- package/dist/embedded-app/static/8115.92c30e65.chunk.js +0 -3
- package/dist/embedded-app/static/8115.92c30e65.chunk.js.map +0 -1
- package/dist/embedded-app/static/8384.e7a39178.chunk.js.map +0 -1
- package/dist/embedded-app/static/9605.65ef8158.chunk.js +0 -11
- package/dist/embedded-app/static/9605.65ef8158.chunk.js.map +0 -1
- package/dist/embedded-app/static/9652.1693197c.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.835725b1.js +0 -510
- package/dist/embedded-app/static/main.835725b1.js.map +0 -1
- package/dist/embedded-app/static/module-material-ui.91ae9db1.js.map +0 -1
|
@@ -1,510 +0,0 @@
|
|
|
1
|
-
(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8792],{86519:(G,b,t)=>{"use strict";t.d(b,{c:()=>n});const n=Symbol.for("CATALOG_FILTER_EXISTS_0e15b590c0b343a2bae3e787e84c2111")},72348:(G,b,t)=>{"use strict";t.d(b,{P:()=>d,_P:()=>a,oQ:()=>n});const n="default",a="backstage.io/view-url",d="backstage.io/edit-url",x="kubernetes.io/api-server",m="kubernetes.io/api-server-certificate-authority",h="kubernetes.io/auth-provider"},6820:(G,b,t)=>{"use strict";t.d(b,{KU:()=>x,U2:()=>m,sM:()=>d});var n=t(72348);function a(h){let u=h.indexOf(":");const p=h.indexOf("/");p!==-1&&p<u&&(u=-1);const g=u===-1?void 0:h.slice(0,u),v=p===-1?void 0:h.slice(u+1,p),y=h.slice(Math.max(u+1,p+1));if(g===""||v===""||y==="")throw new TypeError(`Entity reference "${h}" was not on the form [<kind>:][<namespace>/]<name>`);return{kind:g,namespace:v,name:y}}function d(h){return{kind:h.kind,namespace:h.metadata.namespace||n.oQ,name:h.metadata.name}}function x(h,u){if(!h)throw new Error("Entity reference must not be empty");const p=u?.defaultKind,g=u?.defaultNamespace||n.oQ;let v,y,A;if(typeof h=="string"){const T=a(h);v=T.kind??p,y=T.namespace??g,A=T.name}else v=h.kind??p,y=h.namespace??g,A=h.name;if(v)if(y){if(!A){const T=JSON.stringify(h);throw new Error(`Entity reference ${T} had missing or empty name`)}}else{const T=JSON.stringify(h);throw new Error(`Entity reference ${T} had missing or empty namespace`)}else{const T=JSON.stringify(h);throw new Error(`Entity reference ${T} had missing or empty kind (e.g. did not start with "component:" or similar)`)}return{kind:v,namespace:y,name:A}}function m(h){let u,p,g;return"metadata"in h?(u=h.kind,p=h.metadata.namespace??n.oQ,g=h.metadata.name):(u=h.kind,p=h.namespace??n.oQ,g=h.name),`${u.toLocaleLowerCase("en-US")}:${p.toLocaleLowerCase("en-US")}/${g.toLocaleLowerCase("en-US")}`}},51372:(G,b,t)=>{"use strict";t.d(b,{fT:()=>p,jn:()=>T,nC:()=>u,sA:()=>O,vv:()=>n});const n="ownedBy",a="ownerOf",d="consumesApi",x="apiConsumedBy",m="providesApi",h="apiProvidedBy",u="dependsOn",p="dependencyOf",g="parentOf",v="childOf",y="memberOf",A="hasMember",T="partOf",O="hasPart"},17736:(G,b,t)=>{"use strict";t.d(b,{Eo:()=>n,I4:()=>d});const n="backstage.io/managed-by-location",a="backstage.io/managed-by-origin-location",d="backstage.io/source-location"},78692:(G,b,t)=>{"use strict";t.d(b,{Cr:()=>h,KL:()=>m,aY:()=>x});var n=t(6820),a=t(17736);const d=/^[\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(u){if(typeof u!="string")throw new TypeError(`Unable to parse location ref '${u}', unexpected argument ${typeof u}`);const p=u.indexOf(":");if(p<0)throw new TypeError(`Unable to parse location ref '${u}', expected '<type>:<target>', e.g. 'url:https://host/path'`);const g=u.substring(0,p).trim(),v=u.substring(p+1).trim();if(!g||!v)throw new TypeError(`Unable to parse location ref '${u}', expected '<type>:<target>', e.g. 'url:https://host/path'`);if(g==="http"||g==="https")throw new TypeError(`Invalid location ref '${u}', please prefix it with 'url:', e.g. 'url:${u}'`);if(d.test(v))throw new TypeError(`Invalid location ref '${u}', target is a javascript: URL`);return{type:g,target:v}}function m(u){const{type:p,target:g}=u;if(p){if(!g)throw new TypeError("Unable to stringify location ref, empty target")}else throw new TypeError("Unable to stringify location ref, empty type");if(d.test(g))throw new TypeError(`Invalid location ref '${p}:${g}', target is a javascript: URL`);return`${p}:${g}`}function h(u){const p=u.metadata?.annotations?.[a.I4]??u.metadata?.annotations?.[a.Eo];if(!p)throw new Error(`Entity '${(0,n.U2)(u)}' is missing location`);return x(p)}},77310:(G,b,t)=>{"use strict";t.d(b,{z:()=>g});var n=t(31085),a=t(10394),d=t(54917),x=t(14041),m=t(69578),h=t(40697),u=t(25577),p=t(37916);function g(v){const{text:y,language:A,showLineNumbers:T=!1,highlightedNumbers:O,customStyle:R,showCopyCodeButton:S=!1}=v,j=(0,d.A)(),k=j.palette.type==="dark"?h.A:u.A,L=j.palette.type==="dark"?"#256bf3":"#e6ffed";return(0,n.jsxs)(a.A,{position:"relative",children:[(0,n.jsx)(m.A,{customStyle:R,language:A,style:k,showLineNumbers:T,wrapLines:!0,lineNumberStyle:{color:j.palette.textVerySubtle},lineProps:X=>O?.includes(X)?{style:{backgroundColor:L}}:{},children:y}),S&&(0,n.jsx)(a.A,{position:"absolute",top:0,right:0,children:(0,n.jsx)(p.l,{text:y})})]})}},37916:(G,b,t)=>{"use strict";t.d(b,{l:()=>y});var n=t(31085),a=t(72427),d=t(39837),x=t(29365),m=t(71677),h=t(99594),u=t(14041),p=t(36338),g=t(10315),v=t(87849);function y(A){const{t:T}=(0,v.i)(g.O),{text:O,tooltipDelay:R=1e3,tooltipText:S=T("copyTextButton.tooltipText"),"aria-label":j="Copy text"}=A,k=(0,a.gf)(d.m),[L,X]=(0,u.useState)(!1),[{error:Y},W]=(0,p.A)();(0,u.useEffect)(()=>{Y&&k.post(Y)},[Y,k]);const Q=K=>{K.stopPropagation(),X(!0),W(O)};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(m.Ay,{id:"copy-test-tooltip",title:S,placement:"top",leaveDelay:R,onClose:()=>X(!1),open:L,children:(0,n.jsx)(x.A,{onClick:Q,"aria-label":j,children:(0,n.jsx)(h.A,{})})})})}},44186:(G,b,t)=>{"use strict";t.d(b,{p:()=>T});var n=t(31085),a=t(42899),d=t(58837),x=t(72501),m=t(14041);const h=t.p+"static/missingAnnotation.67f79e98..svg",u=t.p+"static/noInformation.4b426325..svg",p=t.p+"static/createComponent.975d1e1e..svg",g=t.p+"static/noBuild.1715fa71..svg",v=(0,d.A)({generalImg:{width:"95%",zIndex:2,position:"relative",left:"50%",top:"50%",transform:"translate(-50%, 15%)"}},{name:"BackstageEmptyStateImage"}),y=({missing:O})=>{const R=v();switch(O){case"field":return(0,n.jsx)("img",{src:h,className:R.generalImg,alt:"annotation is missing"});case"info":return(0,n.jsx)("img",{src:u,alt:"no Information",className:R.generalImg});case"content":return(0,n.jsx)("img",{src:p,alt:"create Component",className:R.generalImg});case"data":return(0,n.jsx)("img",{src:g,alt:"no Build",className:R.generalImg});default:return null}},A=(0,d.A)(O=>({root:{backgroundColor:O.palette.background.default,padding:O.spacing(2,0,0,0)},action:{marginTop:O.spacing(2)},imageContainer:{position:"relative"}}),{name:"BackstageEmptyState"});function T(O){const{title:R,description:S,missing:j,action:k}=O,L=A();return(0,n.jsxs)(a.A,{container:!0,direction:"row",justifyContent:"space-around",alignItems:"flex-start",className:L.root,spacing:2,children:[(0,n.jsx)(a.A,{item:!0,xs:12,md:6,children:(0,n.jsxs)(a.A,{container:!0,direction:"column",children:[(0,n.jsx)(a.A,{item:!0,xs:!0,children:(0,n.jsx)(x.A,{variant:"h5",children:R})}),(0,n.jsx)(a.A,{item:!0,xs:!0,children:(0,n.jsx)(x.A,{variant:"body1",children:S})}),(0,n.jsx)(a.A,{item:!0,xs:!0,className:L.action,children:k})]})}),(0,n.jsx)(a.A,{item:!0,xs:12,md:6,className:L.imageContainer,children:typeof j=="string"?(0,n.jsx)(y,{missing:j}):j.customImage})]})}},22020:(G,b,t)=>{"use strict";t.d(b,{b:()=>y});var n=t(31085),a=t(58837),d=t(58007),x=t(8109),m=t(5951),h=t(14041),u=t(37916),p=t(88640);const g=(0,a.A)(A=>({text:{fontFamily:"monospace",whiteSpace:"pre",overflowX:"auto",marginRight:A.spacing(2)},divider:{margin:A.spacing(2)}}),{name:"BackstageErrorPanel"}),v=({error:A,message:T,stack:O,children:R})=>{const S=g();return(0,n.jsxs)(d.A,{dense:!0,children:[(0,n.jsxs)(x.A,{alignItems:"flex-start",children:[(0,n.jsx)(m.A,{classes:{secondary:S.text},primary:"Error",secondary:A}),(0,n.jsx)(u.l,{text:A})]}),(0,n.jsxs)(x.A,{alignItems:"flex-start",children:[(0,n.jsx)(m.A,{classes:{secondary:S.text},primary:"Message",secondary:T}),(0,n.jsx)(u.l,{text:T})]}),O&&(0,n.jsxs)(x.A,{alignItems:"flex-start",children:[(0,n.jsx)(m.A,{classes:{secondary:S.text},primary:"Stack Trace",secondary:O}),(0,n.jsx)(u.l,{text:O})]}),R]})};function y(A){const{title:T,error:O,defaultExpanded:R,titleFormat:S,children:j}=A;return(0,n.jsx)(p.B,{severity:"error",title:T??O.message,defaultExpanded:R,titleFormat:S,children:(0,n.jsx)(v,{error:O.name,message:O.message,stack:O.stack,children:j})})}},18956:(G,b,t)=>{"use strict";t.d(b,{m:()=>u});var n=t(31085),a=t(14041),d=t(72501),x=t(58837),m=t(31129);const h=(0,x.A)(g=>({icon:{color:"#f3ba37",cursor:"pointer"},iconBorder:{color:g.palette.text.primary,cursor:"pointer"}}),{name:"BackstageFavoriteToggleIcon"});function u(g){const{isFavorite:v}=g,y=h();return(0,n.jsx)(d.A,{component:"span",className:v?y.icon:y.iconBorder,children:v?(0,n.jsx)(m.Gg,{}):(0,n.jsx)(m.KG,{})})}function p(g){const{id:v,title:y,isFavorite:A,onToggle:T,...O}=g;return _jsx(Tooltip,{id:v,title:y,children:_jsx(IconButton,{"aria-label":y,id:v,onClick:()=>T(!A),...O,children:_jsx(u,{isFavorite:A})})})}},72072:(G,b,t)=>{"use strict";t.d(b,{N_:()=>K});var n=t(31085),a=t(72427),d=t(65461),x=t(93368),m=t(49203),h=t(58837),u=t(72501),p=t(53373),g=t.n(p),v=t(45250),y=t.n(v),A=t(14041),T=t(18690),O=t(73970);function R(){const[H]=(0,T.AV)((0,n.jsx)(T.qh,{index:!0,element:(0,n.jsx)("div",{})}));return!H.index}const S=(0,h.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"}),j=H=>/^([a-z+.-]+):/.test(H),k=/^[\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,L=window.open;if(L&&!L.__backstage){const H=function(...V){const tt=String(V[0]);if(k.test(tt))throw new Error("Rejected window.open() with a javascript: URL as a security precaution");return L.apply(this,V)};H.__backstage=!0,window.open=H}const X=()=>{try{return(0,a.gf)(d.U).getOptionalString("app.baseUrl")}catch{return}},Y=()=>{const H="http://sample.dev",Z=X()??"/",{pathname:V}=new URL(Z,H);return(0,v.trimEnd)(V,"/")},W=H=>{let Z=String(H);const V=Y(),tt=j(Z),_=Z.startsWith(V);return!tt&&!_&&(Z=V.concat(Z)),Z},Q=H=>H instanceof Array?H.map(Q).join(" ").trim():typeof H=="object"&&H?Q(H?.props?.children):["string","number"].includes(typeof H)?String(H):"",K=A.forwardRef(({onClick:H,noTrack:Z,...V},tt)=>{const _=S(),ct=(0,x.s)(),ht=R()?W(V.to):V.to,mt=Q(V.children)||ht,Et=j(ht),xt=Et&&!!/^https?:/.exec(ht);if(k.test(ht))throw new Error("Link component rejected javascript: URL as a security precaution");const At=lt=>{H?.(lt),Z||ct.captureEvent("click",mt,{attributes:{to:ht}})};return Et?(0,n.jsxs)(m.A,{...xt?{target:"_blank",rel:"noopener"}:{},...V,...V["aria-label"]?{"aria-label":`${V["aria-label"]}, Opens in a new window`}:{},ref:tt,href:ht,onClick:At,className:g()(_.externalLink,V.className),children:[V.children,(0,n.jsx)(u.A,{component:"span",className:_.visuallyHidden,children:", Opens in a new window"})]}):(0,n.jsx)(m.A,{...V,ref:tt,component:O.N_,to:ht,onClick:At})})},73896:(G,b,t)=>{"use strict";t.d(b,{z:()=>h});var n=t(31085),a=t(64947),d=t(14041),x=t(72072);const m=d.forwardRef((p,g)=>(0,n.jsx)(x.N_,{ref:g,...p,color:"initial"})),h=d.forwardRef((p,g)=>(0,n.jsx)(a.A,{ref:g,component:m,...p})),u=null},4650:(G,b,t)=>{"use strict";t.d(b,{h:()=>y});var n=t(31085),a=t(58837),d=t(45872),x=t(61125),m=t(14041),h=t(77310);const u=(0,a.A)(A=>({markdown:{"& table":{borderCollapse:"collapse",border:`1px solid ${A.palette.border}`},"& th, & td":{border:`1px solid ${A.palette.border}`,padding:A.spacing(1)},"& td":{wordBreak:"break-word",overflow:"hidden",verticalAlign:"middle",lineHeight:"1",margin:0,padding:A.spacing(3,2,3,2.5),borderBottom:0},"& th":{backgroundColor:A.palette.background.paper},"& tr":{backgroundColor:A.palette.background.paper},"& tr:nth-child(odd)":{backgroundColor:A.palette.background.default},"& a":{color:A.palette.link},"& img":{maxWidth:"100%"}}}),{name:"BackstageMarkdownContent"}),p=(A,T)=>T?typeof T=="string"?A+T:m.Children.toArray(T.props.children).reduce(p,A):A,g=({level:A,children:T})=>{const S=m.Children.toArray(T).reduce(p,"").toLocaleLowerCase("en-US").replace(/\W/g,"-");return m.createElement(`h${A}`,{id:S},T)},v={code:({inline:A,className:T,children:O,...R})=>{const S=String(O).replace(/\n+$/,""),j=/language-(\w+)/.exec(T||"");return!A&&j?(0,n.jsx)(h.z,{language:j[1],text:S}):(0,n.jsx)("code",{className:T,...R,children:O})},h1:g,h2:g,h3:g,h4:g,h5:g,h6:g};function y(A){const{content:T,dialect:O="gfm",linkTarget:R,transformLinkUri:S,transformImageUri:j,className:k}=A,L=u();return(0,n.jsx)(d.$,{remarkPlugins:O==="gfm"?[x.A]:[],className:`${L.markdown} ${k??""}`.trim(),children:T,components:v,linkTarget:R,transformLinkUri:S,transformImageUri:j})}},68146:(G,b,t)=>{"use strict";t.d(b,{k:()=>h});var n=t(31085),a=t(10394),d=t(88951),x=t(54917),m=t(14041);function h(u){const p=(0,x.A)(),[g,v]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{const y=setTimeout(()=>v(!0),p.transitions.duration.short);return()=>clearTimeout(y)},[p.transitions.duration.short]),g?(0,n.jsx)(d.A,{...u,"data-testid":"progress"}):(0,n.jsx)(a.A,{display:"none"})}},66917:(G,b,t)=>{"use strict";t.d(b,{w:()=>K});var n=t(31085),a=t(10394),d=t(69076),x=t(67720),m=t(95061),h=t(41857),u=t(48543),p=t(26343),g=t(3596),v=t(87051),y=t(12398),A=t(58837),T=t(72501),O=t(14041),R=t(10437);const S=(0,A.A)(H=>(0,y.A)({icon:{position:"absolute",right:H.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageClosedDropdown"}),k=()=>{const H=S();return(0,n.jsx)(R.A,{className:H.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M7.5 8L6 9.5L12.0703 15.5703L18.1406 9.5L16.6406 8L12.0703 12.5703L7.5 8Z",fill:"currentColor"})})},L=(0,A.A)(H=>(0,y.A)({icon:{position:"absolute",right:H.spacing(.5),pointerEvents:"none",color:"#616161"}}),{name:"BackstageOpenedDropdown"}),Y=()=>{const H=L();return(0,n.jsx)(R.A,{className:H.icon,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M16.5 16L18 14.5L11.9297 8.42969L5.85938 14.5L7.35938 16L11.9297 11.4297L16.5 16Z",fill:"currentColor"})})},W=(0,v.A)(H=>(0,y.A)({root:{"label + &":{marginTop:H.spacing(3)},"&.Mui-focused > div[role=button]":{borderColor:H.palette.primary.main}},input:{borderRadius:H.shape.borderRadius,position:"relative",backgroundColor:H.palette.background.paper,border:"1px solid #ced4da",fontSize:H.typography.body1.fontSize,padding:H.spacing(1.25,3.25,1.25,1.5),transition:H.transitions.create(["border-color","box-shadow"]),"&:focus":{background:H.palette.background.paper,borderRadius:H.shape.borderRadius}}}),{name:"BackstageSelectInputBase"})(h.A),Q=(0,A.A)(H=>(0,y.A)({formControl:{margin:H.spacing(1,0)},label:{transform:"initial",fontWeight:"bold",fontSize:H.typography.body2.fontSize,fontFamily:H.typography.fontFamily,color:H.palette.text.primary,"&.Mui-focused":{color:H.palette.text.primary}},formLabel:{transform:"initial",fontWeight:"bold",fontSize:H.typography.body2.fontSize,fontFamily:H.typography.fontFamily,color:H.palette.text.primary,"&.Mui-focused":{color:H.palette.text.primary}},chips:{display:"flex",flexWrap:"wrap"},chip:{margin:2},checkbox:{},root:{display:"flex",flexDirection:"column"}}),{name:"BackstageSelect"});function K(H){const{multiple:Z,items:V,label:tt,placeholder:_,selected:ct,onChange:ht,triggerReset:mt,native:Et=!1,disabled:xt=!1,margin:At,"data-testid":lt="select"}=H,Ct=Q(),[yt,Tt]=(0,O.useState)(ct||(Z?[]:"")),[bt,It]=(0,O.useState)(!1);(0,O.useEffect)(()=>{Tt(Z?[]:"")},[mt,Z]),(0,O.useEffect)(()=>{Tt(ct||(Z?[]:""))},[ct,Z]);const zt=M=>{Tt(M.target.value),ht(M.target.value)},Ht=M=>{if(xt){M.preventDefault();return}It($=>Z&&!(M.target instanceof HTMLElement)?!0:!$)},gt=()=>{It(!1)},Dt=M=>()=>{const $=yt.filter(nt=>nt!==M);Tt($),ht($)};return(0,n.jsx)(a.A,{className:Ct.root,children:(0,n.jsxs)(m.A,{className:Ct.formControl,children:[(0,n.jsx)(u.A,{className:Ct.formLabel,children:tt}),(0,n.jsxs)(g.A,{"aria-label":tt,value:yt,native:Et,disabled:xt,"data-testid":lt,displayEmpty:!0,multiple:Z,margin:At,onChange:zt,open:bt,onOpen:Ht,onClose:gt,input:(0,n.jsx)(W,{}),label:tt,renderValue:M=>Z&&yt.length!==0?(0,n.jsx)(a.A,{className:Ct.chips,children:M.map($=>{const nt=V.find(ot=>ot.value===$);return nt?(0,n.jsx)(x.A,{label:nt?.label,clickable:!0,onDelete:Dt($),className:Ct.chip},nt?.value):!1})}):(0,n.jsx)(T.A,{children:yt.length===0?_||"":V.find($=>$.value===M)?.label}),IconComponent:()=>bt?(0,n.jsx)(Y,{}):(0,n.jsx)(k,{}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null},children:[!!_&&!Z&&(0,n.jsx)(p.A,{value:[],children:_}),Et?V&&V.map(M=>(0,n.jsx)("option",{value:M.value,children:M.label},M.value)):V&&V.map(M=>(0,n.jsxs)(p.A,{value:M.value,children:[Z&&(0,n.jsx)(d.A,{color:"primary",checked:yt.includes(M.value)||!1,className:Ct.checkbox}),M.label]},M.value))]})]})})}},27586:(G,b,t)=>{"use strict";t.d(b,{Y:()=>H});var n=t(31085),a=t(82266),d=t(10394),x=t(64947),m=t(93453),h=t(29365),u=t(46423),p=t(5951),g=t(26343),v=t(28233),y=t(55197),A=t(58837),T=t(72501),O=t(5893),R=t(14041),S=t(10795),j=t(31129),k=t(72072),L=t(10315),X=t(87849);const Y=(0,A.A)({popoverList:{minWidth:260,maxWidth:400},menuItem:{whiteSpace:"normal"}},{name:"BackstageSupportButton"}),W=({icon:Z})=>{const V=(0,a.n)(),tt=Z?V.getSystemIcon(Z)??j.NT:j.NT;return(0,n.jsx)(tt,{})},Q=({link:Z})=>(0,n.jsx)(k.N_,{to:Z.url,children:Z.title??Z.url}),K=({item:Z})=>(0,n.jsxs)(g.A,{button:!1,children:[(0,n.jsx)(u.A,{children:(0,n.jsx)(W,{icon:Z.icon})}),(0,n.jsx)(p.A,{primary:Z.title,secondary:Z.links?.reduce((V,tt,_)=>[...V,_>0&&(0,n.jsx)("br",{},_),(0,n.jsx)(Q,{link:tt},tt.url)],[])})]});function H(Z){const{t:V}=(0,X.i)(L.O),{title:tt,items:_,children:ct}=Z,{items:ht}=(0,S.l)(),[mt,Et]=(0,R.useState)(!1),[xt,At]=(0,R.useState)(null),lt=Y(),Ct=(0,O.A)(bt=>bt.breakpoints.down("sm")),yt=bt=>{At(bt.currentTarget),Et(!0)},Tt=()=>{Et(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{display:"flex",ml:1,children:Ct?(0,n.jsx)(h.A,{color:"primary",size:"small",onClick:yt,"data-testid":"support-button","aria-label":"Support",children:(0,n.jsx)(j.NT,{})}):(0,n.jsx)(x.A,{"data-testid":"support-button","aria-label":"Support",color:"primary",onClick:yt,startIcon:(0,n.jsx)(j.NT,{}),children:V("supportButton.title")})}),(0,n.jsxs)(y.Ay,{"data-testid":"support-button-popover",open:mt,anchorEl:xt,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:Tt,children:[(0,n.jsxs)(v.A,{className:lt.popoverList,autoFocusItem:!!xt,children:[tt&&(0,n.jsx)(g.A,{button:!1,alignItems:"flex-start",className:lt.menuItem,children:(0,n.jsx)(T.A,{variant:"subtitle1",children:tt})}),R.Children.map(ct,(bt,It)=>(0,n.jsx)(g.A,{button:!1,alignItems:"flex-start",className:lt.menuItem,children:bt},`child-${It}`)),(_??ht).map((bt,It)=>(0,n.jsx)(K,{item:bt},`item-${It}`))]}),(0,n.jsx)(m.A,{children:(0,n.jsx)(x.A,{color:"primary",onClick:Tt,"aria-label":"Close",children:V("supportButton.close")})})]})]})}},14209:(G,b,t)=>{"use strict";t.d(b,{X:()=>Ht});var n=t(31085),a=t(25301),d=t(10394),x=t(29365),m=t(87051),h=t(58837),u=t(54917),p=t(72501),g=t(83313),v=t(89019),y=t(62461),A=t(68887),T=t(63798),O=t(64704),R=t(6774),S=t(75625),j=t(65859),k=t(5416),L=t(33494),X=t(80113),Y=t(26229),W=t(46802),Q=t(45250),K=t(14041),H=t(64947),Z=t(66917),V=t(10315),tt=t(87849);const _=(0,h.A)(M=>({root:{height:"100%",width:"315px",display:"flex",flexDirection:"column",marginRight:M.spacing(3)},value:{fontWeight:"bold",fontSize:18},header:{display:"flex",alignItems:"center",height:M.spacing(7.5),justifyContent:"space-between",borderBottom:`1px solid ${M.palette.grey[500]}`},filters:{display:"flex",flexDirection:"column","& > *":{marginTop:M.spacing(2)}}}),{name:"BackstageTableFilters"}),ct=M=>{const $=_(),{onChangeFilters:nt}=M,{t:ot}=(0,tt.i)(V.O),[pt,ut]=(0,K.useState)({...M.selectedFilters}),[vt,wt]=(0,K.useState)(!1),Bt=()=>{ut({}),wt(Ut=>!Ut)};return(0,K.useEffect)(()=>{nt(pt)},[pt,nt]),(0,n.jsxs)(d.A,{className:$.root,children:[(0,n.jsxs)(d.A,{className:$.header,children:[(0,n.jsx)(d.A,{className:$.value,children:ot("table.filter.title")}),(0,n.jsx)(H.A,{color:"primary",onClick:Bt,children:ot("table.filter.clearAll")})]}),(0,n.jsx)(d.A,{className:$.filters,children:M.filters?.length&&M.filters.map(Ut=>(0,n.jsx)(Z.w,{triggerReset:vt,...Ut.element,selected:pt[Ut.element.label],onChange:Wt=>ut({...pt,[Ut.element.label]:Wt})},Ut.element.label))})]})};var ht=t(78467);function mt(M){return(0,n.jsx)("tbody",{"data-testid":"loading-indicator",children:(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:M.colSpan,children:(0,n.jsx)(d.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:"15rem"},children:(0,n.jsx)(ht.A,{size:"5rem"})})})})})}const Et={Add:(0,K.forwardRef)((M,$)=>(0,n.jsx)(g.A,{...M,ref:$})),Check:(0,K.forwardRef)((M,$)=>(0,n.jsx)(y.A,{...M,ref:$})),Clear:(0,K.forwardRef)((M,$)=>(0,n.jsx)(O.A,{...M,ref:$})),Delete:(0,K.forwardRef)((M,$)=>(0,n.jsx)(R.A,{...M,ref:$})),DetailPanel:(0,K.forwardRef)((M,$)=>(0,n.jsx)(T.A,{...M,ref:$})),Edit:(0,K.forwardRef)((M,$)=>(0,n.jsx)(S.A,{...M,ref:$})),Export:(0,K.forwardRef)((M,$)=>(0,n.jsx)(Y.A,{...M,ref:$})),Filter:(0,K.forwardRef)((M,$)=>(0,n.jsx)(j.A,{...M,ref:$})),FirstPage:(0,K.forwardRef)((M,$)=>(0,n.jsx)(k.A,{...M,ref:$})),LastPage:(0,K.forwardRef)((M,$)=>(0,n.jsx)(L.A,{...M,ref:$})),NextPage:(0,K.forwardRef)((M,$)=>(0,n.jsx)(T.A,{...M,ref:$})),PreviousPage:(0,K.forwardRef)((M,$)=>(0,n.jsx)(A.A,{...M,ref:$})),ResetSearch:(0,K.forwardRef)((M,$)=>(0,n.jsx)(O.A,{...M,ref:$})),Search:(0,K.forwardRef)((M,$)=>(0,n.jsx)(j.A,{...M,ref:$})),SortArrow:(0,K.forwardRef)((M,$)=>(0,n.jsx)(v.A,{...M,ref:$})),ThirdStateCheck:(0,K.forwardRef)((M,$)=>(0,n.jsx)(X.A,{...M,ref:$})),ViewColumn:(0,K.forwardRef)((M,$)=>(0,n.jsx)(W.A,{...M,ref:$}))};function xt(M,$){const nt=$.split(".");let ot=M[nt[0]];for(let pt=1;pt<nt.length;++pt){if(ot===void 0)return ot;const ut=nt[pt];ot=ot[ut]}return ot}const At=(0,m.A)(M=>({header:{padding:M.spacing(1,2,1,2.5),borderTop:`1px solid ${M.palette.grey.A100}`,borderBottom:`1px solid ${M.palette.grey.A100}`,fontWeight:M.typography.fontWeightBold,position:"static",wordBreak:"normal",textTransform:"uppercase"}}),{name:"BackstageTableHeader"})(a.rV),lt=(0,m.A)(M=>({root:{padding:M.spacing(3,0,2.5,2.5)},title:{"& > h6":{fontWeight:M.typography.fontWeightBold}},searchField:{paddingRight:M.spacing(2)}}),{name:"BackstageTableToolbar"})(a.Nb),Ct=(0,h.A)(M=>({root:{display:"flex",alignItems:"center",justifyContent:"space-between"},title:{fontWeight:M.typography.fontWeightBold,fontSize:18,whiteSpace:"nowrap"}}),{name:"BackstageTableFiltersContainer"}),yt=(0,h.A)(()=>({root:{display:"flex",alignItems:"start"}}),{name:"BackstageTable"});function Tt(M,$){return M.map(nt=>{const ot=nt.headerStyle??{};let pt=nt.cellStyle||{};if(nt.highlight)if(ot.color=$.palette.textContrast,typeof pt=="object")pt.fontWeight=$.typography.fontWeightBold;else{const ut=pt;pt=(vt,wt,Bt)=>({...ut(vt,wt,Bt),fontWeight:$.typography.fontWeightBold})}return{...nt,headerStyle:ot,cellStyle:pt}})}function bt(M,$){return(0,Q.transform)(M,(nt,ot,pt)=>{(0,Q.isEqual)(ot,$[pt])||(nt[pt]=ot)})}const It={search:"",filtersOpen:!1,filters:{}};function zt(M){const{toolbarRef:$,setSearch:nt,hasFilters:ot,selectedFiltersLength:pt,toggleFilters:ut}=M,vt=Ct(),wt=(0,K.useCallback)(Bt=>{M.onSearchChanged(Bt),nt(Bt)},[M,nt]);return ot?(0,n.jsxs)(d.A,{className:vt.root,children:[(0,n.jsxs)(d.A,{className:vt.root,children:[(0,n.jsx)(x.A,{onClick:ut,"aria-label":"filter list",children:(0,n.jsx)(j.A,{})}),(0,n.jsxs)(p.A,{className:vt.title,children:["Filters (",pt,")"]})]}),(0,n.jsx)(lt,{...M,ref:$,onSearchChanged:wt})]}):(0,n.jsx)(lt,{...M,ref:$,onSearchChanged:wt})}function Ht(M){const{data:$,columns:nt,emptyContent:ot,options:pt,title:ut,subtitle:vt,localization:wt,filters:Bt,initialState:Ut,onStateChange:Wt,components:ie,isLoading:ce,...pe}=M,Jt=yt(),se=(0,u.A)(),Ae={...It,...Ut},[Vt,qt]=(0,K.useState)(Ae.filtersOpen),Te=(0,K.useCallback)(()=>qt(le=>!le),[qt]),[Qt,qe]=(0,K.useState)(Ae.filters),[xe,De]=(0,K.useState)(Ae.search);(0,K.useEffect)(()=>{if(Wt){const le=bt({search:xe,filtersOpen:Vt,filters:Qt},It);Wt(le)}},[xe,Vt,Qt,Wt]);const Ge=(0,K.useCallback)(le=>nt.find(Qe=>Qe.title===le)?.field,[nt]),ge=(0,K.useMemo)(()=>{if(typeof $=="function"||!Qt)return $;const le=Object.values(Qt);return $&&le.flat().length?$.filter(nn=>!!Object.entries(Qt).filter(([,We])=>!!We.length).every(([We,I])=>{const l=xt(nn,Ge(We));return Array.isArray(l)&&Array.isArray(I)?l.some(E=>I.includes(E)):Array.isArray(l)?l.includes(I):Array.isArray(I)?I.includes(l):l===I})):$},[$,Qt,Ge]),Ye=Object.values(Qt).flat().length,tn=!!Bt?.length,an=(0,K.useCallback)(le=>(0,n.jsx)(zt,{setSearch:De,hasFilters:tn,selectedFiltersLength:Ye,toggleFilters:Te,...le}),[Te,tn,Ye,De]),en=typeof $!="function"&&$.length===0,Le=nt.length,ke=(0,K.useMemo)(()=>gt({hasNoRows:en,emptyContent:ot,columnCount:Le,loading:ce}),[en,ot,Le,ce]);return(0,n.jsxs)(d.A,{className:Jt.root,children:[Vt&&$&&typeof $!="function"&&Bt?.length&&(0,n.jsx)(ct,{filters:Dt(Bt,$,nt),selectedFilters:Qt,onChangeFilters:qe}),(0,n.jsx)(a.Ay,{components:{Header:At,Body:ke,Toolbar:an,...ie},options:pt,columns:Tt(nt,se),icons:Et,title:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.A,{variant:"h5",component:"h2",children:ut}),vt&&(0,n.jsx)(p.A,{color:"textSecondary",variant:"body1",children:vt})]}),data:ge,style:{width:"100%"},localization:{toolbar:{searchPlaceholder:"Filter",searchTooltip:"Filter"},...wt},...pe})]})}Ht.icons=Object.freeze(Et);function gt({columnCount:M,emptyContent:$,hasNoRows:nt,loading:ot}){return pt=>ot?(0,n.jsx)(mt,{colSpan:M}):$&&nt?(0,n.jsx)("tbody",{children:(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:M,children:$})})}):(0,n.jsx)(a.C6,{...pt})}function Dt(M,$,nt){const ot=ut=>{const vt=new Set,wt=Bt=>{Bt!=null&&vt.add(Bt)};return $&&$.forEach(Bt=>{const Ut=xt(Bt,nt.find(Wt=>Wt.title===ut)?.field);Array.isArray(Ut)?Ut.forEach(wt):wt(Ut)}),vt},pt=ut=>({placeholder:"All results",label:ut.column,multiple:ut.type==="multiple-select",items:[...ot(ut.column)].sort().map(vt=>({label:vt,value:vt}))});return M.map(ut=>({type:ut.type,element:pt(ut)}))}},88640:(G,b,t)=>{"use strict";t.d(b,{B:()=>X});var n=t(31085),a=t(268),d=t(58837),x=t(8973),m=t(29655),h=t(91567),u=t(42899),p=t(72501),g=t(9181),v=t(6924),y=t(14041),A=t(4650);const T=(Y,W)=>(W.palette.type==="light"?a.e$:a.a)(W.palette[Y].light,.6),O=(Y,W)=>(W.palette.type==="light"?a.a:a.e$)(W.palette[Y].light,.9),R=(0,d.A)(Y=>({root:{marginRight:Y.spacing(1),fill:({severity:W})=>T(W,Y)}})),S=({severity:Y})=>{const W=R({severity:Y});return(0,n.jsx)(g.A,{classes:W})},j=({severity:Y})=>{const W=R({severity:Y});return(0,n.jsx)(v.A,{classes:W})},k=(0,d.A)(Y=>({panel:{backgroundColor:({severity:W})=>O(W,Y),color:({severity:W})=>T(W,Y),verticalAlign:"middle"},summary:{display:"flex",flexDirection:"row"},summaryText:{color:({severity:W})=>T(W,Y),fontWeight:Y.typography.fontWeightBold},markdownContent:{"& p":{display:"inline"}},message:{width:"100%",display:"block",color:({severity:W})=>T(W,Y),backgroundColor:({severity:W})=>O(W,Y)},details:{width:"100%",display:"block",color:Y.palette.textContrast,backgroundColor:Y.palette.background.default,border:`1px solid ${Y.palette.border}`,padding:Y.spacing(2),fontFamily:"sans-serif"}}),{name:"BackstageWarningPanel"}),L=Y=>Y.charAt(0).toLocaleUpperCase("en-US")+Y.slice(1);function X(Y){const{severity:W="warning",title:Q,titleFormat:K,message:H,children:Z,defaultExpanded:V}=Y,tt=k({severity:W}),_=L(W)+(Q?`: ${Q}`:"");return(0,n.jsxs)(x.A,{defaultExpanded:V??!1,className:tt.panel,role:"alert",children:[(0,n.jsxs)(m.A,{expandIcon:(0,n.jsx)(j,{severity:W}),className:tt.summary,children:[(0,n.jsx)(S,{severity:W}),(0,n.jsx)(p.A,{className:tt.summaryText,variant:"subtitle1",children:K==="markdown"?(0,n.jsx)(A.h,{content:_,className:tt.markdownContent}):_})]}),(H||Z)&&(0,n.jsx)(h.A,{children:(0,n.jsxs)(u.A,{container:!0,children:[H&&(0,n.jsx)(u.A,{item:!0,xs:12,children:(0,n.jsx)(p.A,{className:tt.message,variant:"body1",children:H})}),Z&&(0,n.jsx)(u.A,{item:!0,xs:12,className:tt.details,children:Z})]})})]})}},10795:(G,b,t)=>{"use strict";t.d(b,{l:()=>h});var n=t(72427),a=t(65461),d=t(10315),x=t(87849);const m=()=>{const{t:u}=(0,x.i)(d.O);return{url:"https://github.com/backstage/backstage/issues",items:[{title:u("supportConfig.default.title"),icon:"warning",links:[{title:u("supportConfig.default.linkTitle"),url:"https://github.com/backstage/backstage/blob/master/app-config.yaml"}]}]}};function h(){const g=(0,n.Q2)().get(a.U)?.getOptionalConfig("app.support"),v=m();return g?{url:g.getString("url"),items:g.getConfigArray("items").flatMap(y=>({title:y.getString("title"),icon:y.getOptionalString("icon"),links:(y.getOptionalConfigArray("links")??[]).flatMap(A=>({url:A.getString("url"),title:A.getOptionalString("title")??""}))}))}:v}},31129:(G,b,t)=>{"use strict";t.d(b,{Gg:()=>j,KG:()=>k,NT:()=>O,z9:()=>m});var n=t(31085),a=t(82266),d=t(27799),x=t(14041);function m(L){const{id:X,Fallback:Y=d.A,...W}=L,K=(0,a.n)().getSystemIcon(X)??Y;return(0,n.jsx)(K,{...W})}function h(L){return _jsx(m,{id:"brokenImage",...L})}function u(L){return _jsx(m,{id:"catalog",...L})}function p(L){return _jsx(m,{id:"chat",...L})}function g(L){return _jsx(m,{id:"dashboard",...L})}function v(L){return _jsx(m,{id:"docs",...L})}function y(L){return _jsx(m,{id:"email",...L})}function A(L){return _jsx(m,{id:"github",...L})}function T(L){return _jsx(m,{id:"group",...L})}function O(L){return(0,n.jsx)(m,{id:"help",...L})}function R(L){return _jsx(m,{id:"user",...L})}function S(L){return _jsx(m,{id:"warning",...L})}function j(L){return(0,n.jsx)(m,{id:"star",...L})}function k(L){return(0,n.jsx)(m,{id:"unstarred",...L})}},26280:(G,b,t)=>{"use strict";t.d(b,{U:()=>u});var n=t(31085),a=t(58837),d=t(53373),x=t.n(d),m=t(14041);const h=(0,a.A)(p=>({root:{gridArea:"pageContent",minWidth:0,paddingTop:p.spacing(3),paddingBottom:p.spacing(3),paddingLeft:p.spacing(2),paddingRight:p.spacing(2),[p.breakpoints.up("sm")]:{paddingLeft:p.spacing(3),paddingRight:p.spacing(3)}},stretch:{display:"flex",flexDirection:"column",flexGrow:1},noPadding:{padding:0}}),{name:"BackstageContent"});function u(p){const{className:g,stretch:v,noPadding:y,children:A,...T}=p,O=h();return(0,n.jsx)("article",{...T,className:x()(O.root,g,{[O.stretch]:v,[O.noPadding]:y}),children:A})}},59428:(G,b,t)=>{"use strict";t.d(b,{d:()=>g});var n=t(31085),a=t(10394),d=t(58837),x=t(72501),m=t(14041),h=t(93285);const u=v=>(0,d.A)(y=>({container:{width:"100%",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",alignItems:"center",marginBottom:y.spacing(2),textAlign:v.textAlign},leftItemsBox:{flex:"1 1 auto",minWidth:0,overflow:"visible"},rightItemsBox:{flex:"0 1 auto",display:"flex",flexDirection:"row",flexWrap:"wrap",alignItems:"center",marginLeft:y.spacing(1),minWidth:0,overflow:"visible"},description:{},title:{display:"inline-flex",marginBottom:0}}),{name:"BackstageContentHeader"}),p=({title:v,className:y})=>(0,n.jsx)(x.A,{variant:"h4",component:"h2",className:y,"data-testid":"header-title",children:v});function g(v){const{description:y,title:A,titleComponent:T=void 0,children:O,textAlign:R="left"}=v,S=u({textAlign:R})(),j=T||(0,n.jsx)(p,{title:A,className:S.title});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.m,{title:A}),(0,n.jsxs)(a.A,{className:S.container,children:[(0,n.jsxs)(a.A,{className:S.leftItemsBox,children:[j,y&&(0,n.jsx)(x.A,{className:S.description,variant:"body2",children:y})]}),(0,n.jsx)(a.A,{className:S.rightItemsBox,children:O})]})]})}},12173:(G,b,t)=>{"use strict";t.d(b,{M:()=>k});var n=t(31085),a=t(42899),d=t(58837),x=t(72501),m=t(14041),h=t(18690),u=t(72072),p=t(10795);const g=t.p+"static/mic-drop.fe3ef4d0..svg",v=(0,d.A)(L=>({micDrop:{maxWidth:"60%",bottom:L.spacing(2),right:L.spacing(2),[L.breakpoints.down("xs")]:{maxWidth:"96%",bottom:"unset",right:"unset",margin:L.spacing(10,"auto",4)}}}),{name:"BackstageErrorPageMicDrop"}),y=()=>{const L=v();return(0,n.jsx)("img",{src:g,className:L.micDrop,alt:"Girl dropping mic from her hands"})};var A=t(77310),T=t(87849),O=t(10315);const R=(0,d.A)(L=>({title:{paddingBottom:L.spacing(5),[L.breakpoints.down("xs")]:{paddingBottom:L.spacing(4),fontSize:L.typography.h3.fontSize}}}),{name:"BackstageErrorPageStackDetails"});function S(L){const{stack:X}=L,Y=R(),{t:W}=(0,T.i)(O.O),[Q,K]=(0,m.useState)(!1);return Q?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.A,{variant:"h6",className:Y.title,children:(0,n.jsx)(u.N_,{to:"#",onClick:()=>K(!1),children:W("errorPage.showLessDetails")})}),(0,n.jsx)(A.z,{text:X,language:"text",showCopyCodeButton:!0,showLineNumbers:!0})]}):(0,n.jsx)(x.A,{variant:"h6",className:Y.title,children:(0,n.jsx)(u.N_,{to:"#",onClick:()=>K(!0),children:W("errorPage.showMoreDetails")})})}const j=(0,d.A)(L=>({container:{padding:L.spacing(8),[L.breakpoints.down("xs")]:{padding:L.spacing(2)}},title:{paddingBottom:L.spacing(5),[L.breakpoints.down("xs")]:{paddingBottom:L.spacing(4),fontSize:L.typography.h3.fontSize}},subtitle:{color:L.palette.textSubtle}}),{name:"BackstageErrorPage"});function k(L){const{status:X="",statusMessage:Y,additionalInfo:W,supportUrl:Q,stack:K}=L,H=j(),Z=(0,h.Zp)(),V=(0,p.l)(),{t:tt}=(0,T.i)(O.O);return(0,n.jsxs)(a.A,{container:!0,className:H.container,children:[(0,n.jsxs)(a.A,{item:!0,xs:12,sm:8,md:4,children:[(0,n.jsx)(x.A,{"data-testid":"error",variant:"body1",className:H.subtitle,children:tt("errorPage.subtitle",{status:X,statusMessage:Y})}),(0,n.jsx)(x.A,{variant:"body1",className:H.subtitle,children:W}),(0,n.jsx)(x.A,{variant:"h2",className:H.title,children:tt("errorPage.title")}),(0,n.jsxs)(x.A,{variant:"h6",className:H.title,children:[(0,n.jsx)(u.N_,{to:"#","data-testid":"go-back-link",onClick:()=>Z(-1),children:tt("errorPage.goBack")}),"... or please"," ",(0,n.jsx)(u.N_,{to:Q||V.url,children:"contact support"})," if you think this is a bug."]}),K&&(0,n.jsx)(S,{stack:K})]}),(0,n.jsx)(y,{})]})}},69814:(G,b,t)=>{"use strict";t.d(b,{Y:()=>Z});var n=t(31085),a=t(72427),d=t(65461),x=t(10394),m=t(42899),h=t(58837),u=t(71677),p=t(72501),g=t(14041),v=t(93285),y=t(72072),A=t(45634),T=t(58007),O=t(8109),R=t(55197),S=t(87051);const j=(0,S.A)({root:{textDecoration:"underline",cursor:"pointer"}},{name:"BackstageBreadcrumbsClickableText"})(p.A),k=(0,S.A)({root:{textDecoration:"underline",color:"inherit"}},{name:"BackstageBreadcrumbsStyledBox"})(x.A),L=(0,S.A)({root:{fontStyle:"italic"}},{name:"BreadcrumbsCurrentPage"})(x.A);function X(V){const{children:tt,..._}=V,[ct,ht]=g.useState(null),mt=g.Children.toArray(tt),[Et,xt,...At]=mt,lt=At.length?At.pop():mt[mt.length-1],Ct=mt.length>3,yt=It=>{ht(It.currentTarget)},Tt=()=>{ht(null)},bt=!!ct;return(0,n.jsxs)(g.Fragment,{children:[(0,n.jsxs)(A.A,{"aria-label":"breadcrumb",..._,children:[mt.length>1&&(0,n.jsx)(k,{clone:!0,children:Et}),mt.length>2&&(0,n.jsx)(k,{clone:!0,children:xt}),Ct&&(0,n.jsx)(j,{onClick:yt,children:"..."}),(0,n.jsx)(L,{children:lt})]}),(0,n.jsx)(R.Ay,{open:bt,anchorEl:ct,onClose:Tt,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},children:(0,n.jsx)(T.A,{children:At.map((It,zt)=>(0,n.jsx)(O.A,{button:!0,children:(0,n.jsx)(k,{clone:!0,children:It})},zt))})})]})}var Y=t(73524);const W=(0,h.A)(V=>({header:{gridArea:"pageHeader",padding:V.spacing(3),width:"100%",boxShadow:V.shadows[4],position:"relative",zIndex:100,display:"flex",flexDirection:"row",alignItems:"center",backgroundImage:V.page.backgroundImage,backgroundPosition:"center",backgroundSize:"cover",[V.breakpoints.down("sm")]:{flexWrap:"wrap"}},leftItemsBox:{maxWidth:"100%",flexGrow:1},rightItemsBox:{width:"auto",alignItems:"center"},title:{color:V.page.fontColor,wordBreak:"break-word",fontSize:V.typography.h3.fontSize,marginBottom:0},subtitle:{color:V.page.fontColor,opacity:.8,display:"inline-block",marginTop:V.spacing(1),maxWidth:"75ch"},type:{textTransform:"uppercase",fontSize:11,opacity:.8,marginBottom:V.spacing(1),color:V.page.fontColor},breadcrumb:{color:V.page.fontColor},breadcrumbType:{fontSize:"inherit",opacity:.7,marginRight:-V.spacing(.3),marginBottom:V.spacing(.3)},breadcrumbTitle:{fontSize:"inherit",marginLeft:-V.spacing(.3),marginBottom:V.spacing(.3)}}),{name:"BackstageHeader"}),Q=({type:V,typeLink:tt,classes:_,pageTitle:ct})=>V?tt?(0,n.jsxs)(X,{className:_.breadcrumb,children:[(0,n.jsx)(y.N_,{to:tt,children:V}),(0,n.jsx)(p.A,{children:ct})]}):(0,n.jsx)(p.A,{className:_.type,children:V}):null,K=({pageTitle:V,classes:tt,tooltip:_})=>{const{contentRef:ct}=(0,Y.H)(),ht=(0,n.jsx)(p.A,{ref:ct,tabIndex:-1,className:tt.title,variant:"h1",children:V});return _?(0,n.jsx)(u.Ay,{title:_,placement:"top-start",children:ht}):ht},H=({classes:V,subtitle:tt})=>tt?typeof tt!="string"?(0,n.jsx)(n.Fragment,{children:tt}):(0,n.jsx)(p.A,{className:V.subtitle,variant:"subtitle2",component:"span",children:tt}):null;function Z(V){const{children:tt,pageTitleOverride:_,style:ct,subtitle:ht,title:mt,tooltip:Et,type:xt,typeLink:At}=V,lt=W(),yt=(0,a.gf)(d.U).getOptionalString("app.title")||"Backstage",Tt=_||mt,bt=mt||_,It=`${Tt} | %s | ${yt}`,zt=`${Tt} | ${yt}`;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.m,{titleTemplate:It,defaultTitle:zt}),(0,n.jsxs)("header",{style:ct,className:lt.header,children:[(0,n.jsxs)(x.A,{className:lt.leftItemsBox,children:[(0,n.jsx)(Q,{classes:lt,type:xt,typeLink:At,pageTitle:bt}),(0,n.jsx)(K,{classes:lt,pageTitle:bt,tooltip:Et}),(0,n.jsx)(H,{classes:lt,subtitle:ht})]}),(0,n.jsx)(m.A,{container:!0,className:lt.rightItemsBox,spacing:4,children:tt})]})]})}},24504:(G,b,t)=>{"use strict";t.d(b,{Y:()=>h});var n=t(31085),a=t(14041),d=t(58837),x=t(50868);const m=(0,d.A)(u=>({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",[u.breakpoints.down("xs")]:{height:"100%"},"@media print":{display:"block",height:"auto",overflowY:"inherit"}}}),{name:"BackstagePage"});function h(u){const{themeId:p,children:g}=u,v=m();return(0,n.jsx)(x.A,{theme:y=>({...y,page:y.getPageTheme({themeId:p})}),children:(0,n.jsx)("main",{className:v.root,children:g})})}},27155:(G,b,t)=>{"use strict";t.d(b,{d:()=>m});var n=t(31085),a=t(14041),d=t(69814),x=t(24504);function m(h){const{themeId:u,children:p,...g}=h;return(0,n.jsxs)(x.Y,{themeId:u,children:[(0,n.jsx)(d.Y,{...g}),p]})}},73524:(G,b,t)=>{"use strict";t.d(b,{G:()=>A,H:()=>T});var n=t(31085),a=t(10394),d=t(58837),x=t(5893),m=t(14041),h=t(72664),u;(function(O){O.SIDEBAR_PIN_STATE="sidebarPinState"})(u||(u={}));const p={getSidebarPinState(){let O;try{O=JSON.parse(window.localStorage.getItem("sidebarPinState")||"true")}catch{return!0}return!!O},setSidebarPinState(O){return window.localStorage.setItem("sidebarPinState",JSON.stringify(O))}};var g=t(34435);const v=(0,d.A)(O=>({root:{width:"100%",transition:"padding-left 0.1s ease-out",isolation:"isolate",[O.breakpoints.up("sm")]:{paddingLeft:R=>R.isPinned?R.sidebarConfig.drawerWidthOpen:R.sidebarConfig.drawerWidthClosed},[O.breakpoints.down("xs")]:{paddingBottom:R=>R.sidebarConfig.mobileSidebarHeight},"@media print":{padding:"0px !important"}},content:{zIndex:0,isolation:"isolate","&:focus":{outline:0}}}),{name:"BackstageSidebarPage"}),y=(0,m.createContext)({content:{contentRef:void 0}});function A(O){const[R,S]=(0,m.useState)(()=>p.getSidebarPinState()),{sidebarConfig:j}=(0,m.useContext)(h.yY),k=(0,m.useRef)(null),L=(0,m.useMemo)(()=>({content:{contentRef:k}}),[k]);(0,m.useEffect)(()=>{p.setSidebarPinState(R)},[R]);const X=(0,x.A)(Q=>Q.breakpoints.down("xs"),{noSsr:!0}),Y=()=>S(!R),W=v({isPinned:R,sidebarConfig:j});return(0,n.jsx)(g.qj,{value:{isPinned:R,toggleSidebarPinState:Y,isMobile:X},children:(0,n.jsx)(y.Provider,{value:L,children:(0,n.jsx)(a.A,{className:W.root,children:O.children})})})}function T(){const{content:O}=(0,m.useContext)(y);return{focusContent:(0,m.useCallback)(()=>{O?.contentRef?.current?.focus()},[O]),contentRef:O?.contentRef}}},34435:(G,b,t)=>{"use strict";t.d(b,{Ut:()=>g,qj:()=>p});var n=t(31085),a=t(43836),d=t(10602),x=t(14041);const m={isPinned:!0,toggleSidebarPinState:()=>{},isMobile:!1},h=(0,x.createContext)(m),u=(0,a.tK)("sidebar-pin-state-context");function p(v){const{children:y,value:A}=v;return(0,n.jsx)(h.Provider,{value:A,children:(0,n.jsx)(u.Provider,{value:(0,d.B)({1:A}),children:y})})}const g=()=>{const v=(0,x.useContext)(u),y=(0,x.useContext)(h);if(v===void 0)return y||m;const A=v.atVersion(1);if(A===void 0)throw new Error("No context found for version 1.");return A}},72664:(G,b,t)=>{"use strict";t.d(b,{Rv:()=>h,U1:()=>y,hC:()=>m,i8:()=>p,yY:()=>v});var n=t(14041);const a=72,d=24,x=18,m={drawerWidthClosed:a,drawerWidthOpen:224,defaultOpenDelayMs:100,defaultCloseDelayMs:0,defaultFadeDuration:200,logoHeight:32,iconContainerWidth:a,iconSize:a-d*2,iconPadding:d,selectedIndicatorWidth:3,userBadgePadding:x,userBadgeDiameter:a-x*2,mobileSidebarHeight:56},h=A=>({...m,...A,iconContainerWidth:m.drawerWidthClosed,iconSize:m.drawerWidthClosed-m.iconPadding*2,userBadgeDiameter:m.drawerWidthClosed-m.userBadgePadding*2}),u={drawerWidthClosed:0,drawerWidthOpen:202,defaultOpenDelayMs:m.defaultOpenDelayMs+200},p=A=>({...u,...A}),g="@backstage/core/sidebar-intro-dismissed",v=(0,n.createContext)({sidebarConfig:m,submenuConfig:u}),y=(0,n.createContext)({isHoveredOn:!1,setIsHoveredOn:()=>{}})},10315:(G,b,t)=>{"use strict";t.d(b,{O:()=>a});var n=t(93184);const a=(0,n.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"},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:(G,b,t)=>{"use strict";t.d(b,{Ig:()=>u,pn:()=>h});var n=t(31085),a=t(43836),d=t(10602),x=t(14041);const m=(0,a.tK)("analytics-context"),h=()=>{const g=(0,x.useContext)(m);if(g===void 0)return{routeRef:"unknown",pluginId:"root",extension:"App"};const v=g.atVersion(1);if(v===void 0)throw new Error("No context found for version 1.");return v},u=g=>{const{attributes:v,children:y}=g,T={...h(),...v},O=(0,d.B)({1:T});return(0,n.jsx)(m.Provider,{value:O,children:y})};function p(g,v){const y=A=>_jsx(u,{attributes:v,children:_jsx(g,{...A})});return y.displayName=`WithAnalyticsContext(${g.displayName||g.name||"Component"})`,y}},67237:(G,b,t)=>{"use strict";t.d(b,{J:()=>x,t:()=>d});var n=t(63544);const a=(0,n.Q)("core-plugin-api:analytics-tracker-events",()=>({mostRecentGatheredNavigation:void 0,mostRecentRoutableExtensionRender:void 0,beforeUnloadRegistered:!1})),d="_ROUTABLE-EXTENSION-RENDERED";class x{analyticsApi;context;constructor(h,u={routeRef:"unknown",pluginId:"root",extension:"App"}){this.analyticsApi=h,this.context=u,a.beforeUnloadRegistered||(addEventListener("beforeunload",()=>{a.mostRecentGatheredNavigation&&(this.analyticsApi.captureEvent({...a.mostRecentGatheredNavigation,...a.mostRecentRoutableExtensionRender}),a.mostRecentGatheredNavigation=void 0,a.mostRecentRoutableExtensionRender=void 0)},{once:!0,passive:!0}),a.beforeUnloadRegistered=!0)}setContext(h){this.context=h}captureEvent(h,u,{value:p,attributes:g}={}){const{_routeNodeType:v,...y}=this.context;if(h===d){a.mostRecentGatheredNavigation&&(a.mostRecentRoutableExtensionRender={context:{...y,extension:"App"}});return}if(a.mostRecentGatheredNavigation){try{this.analyticsApi.captureEvent({...a.mostRecentGatheredNavigation,...a.mostRecentRoutableExtensionRender})}catch(A){console.warn("Error during analytics event capture. %o",A)}a.mostRecentGatheredNavigation=void 0,a.mostRecentRoutableExtensionRender=void 0}if(h==="navigate"&&v==="gathered"&&y.pluginId==="root"){a.mostRecentGatheredNavigation={action:h,subject:u,value:p,attributes:g,context:y};return}try{this.analyticsApi.captureEvent({action:h,subject:u,value:p,attributes:g,context:y})}catch(A){console.warn("Error during analytics event capture. %o",A)}}}},93368:(G,b,t)=>{"use strict";t.d(b,{s:()=>u});var n=t(25862),a=t(72427),d=t(99303),x=t(14041),m=t(67237);function h(){try{return(0,a.gf)(d.c)}catch{return{captureEvent:()=>{}}}}function u(){const p=(0,x.useRef)(null),g=(0,n.pn)(),v=h();function y(){return p.current===null&&(p.current=new m.J(v)),p.current}const A=y();return A.setContext(g),A}},36017:(G,b,t)=>{"use strict";t.d(b,{k:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.alert"})},99303:(G,b,t)=>{"use strict";t.d(b,{c:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.analytics"})},65461:(G,b,t)=>{"use strict";t.d(b,{U:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.config"})},57405:(G,b,t)=>{"use strict";t.d(b,{I:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.discovery"})},39837:(G,b,t)=>{"use strict";t.d(b,{m:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.error"})},63636:(G,b,t)=>{"use strict";t.d(b,{B:()=>d,S:()=>a});var n=t(55309),a;(function(x){x[x.None=0]="None",x[x.Active=1]="Active"})(a||(a={}));const d=(0,n.y)({id:"core.featureflags"})},70795:(G,b,t)=>{"use strict";t.d(b,{a:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.fetch"})},16009:(G,b,t)=>{"use strict";t.d(b,{K:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.identity"})},56038:(G,b,t)=>{"use strict";t.d(b,{J:()=>a});var n=t(55309);const a=(0,n.y)({id:"core.translation"})},55309:(G,b,t)=>{"use strict";t.d(b,{y:()=>a});class n{config;constructor(x){if(this.config=x,!x.id.split(".").flatMap(h=>h.split("-")).every(h=>h.match(/^[a-z][a-z0-9]*$/)))throw new Error(`API id must only contain period separated lowercase alphanum tokens with dashes, got '${x.id}'`)}get id(){return this.config.id}get T(){throw new Error(`tried to read ApiRef.T of ${this}`)}toString(){return`apiRef{${this.config.id}}`}}function a(d){return new n(d)}},12935:(G,b,t)=>{"use strict";t.d(b,{b:()=>n});function n(a,d){return"id"in a?{api:a,deps:{},factory:()=>d}:a}},72427:(G,b,t)=>{"use strict";t.d(b,{Q2:()=>m,gf:()=>h});var n=t(31085),a=t(14041),d=t(43836),x=t(97142);function m(){const p=(0,d.qO)("api-context");if(!p)throw new x.EH("API context is not available");const g=p.atVersion(1);if(!g)throw new x.EH("ApiContext v1 not available");return g}function h(p){const v=m().get(p);if(!v)throw new x.EH(`No implementation available for ${p}`);return v}function u(p){return function(v){const y=T=>{const O=m(),R={};for(const S in p)if(p.hasOwnProperty(S)){const j=p[S],k=O.get(j);if(!k)throw new NotImplementedError(`No implementation available for ${j}`);R[S]=k}return _jsx(v,{...T,...R})},A=v.displayName||v.name||"Component";return y.displayName=`withApis(${A})`,y}}},82266:(G,b,t)=>{"use strict";t.d(b,{n:()=>a});var n=t(43836);const a=()=>{const d=(0,n.qO)("app-context");if(!d)throw new Error("App context is not available");const x=d.atVersion(1);if(!x)throw new Error("AppContext v1 not available");return x}},19402:(G,b,t)=>{"use strict";t.d(b,{E:()=>m,h:()=>x});var n=t(63544);const a=(0,n.Q)("component-data-store",()=>new WeakMap),d="__backstage_data";function x(h,u,p){const g=h;let v=g[d]??a.get(h);if(v||(v={map:new Map},Object.defineProperty(g,d,{enumerable:!1,configurable:!0,writable:!1,value:v}),a.set(h,v)),v.map.has(u)){const y=h.displayName||h.name;throw new Error(`Attempted to attach duplicate data "${u}" to component "${y}"`)}v.map.set(u,p)}function m(h,u){if(!h)return;const p=h.type;if(!p)return;const g=p[d]??a.get(p);if(g)return g.map.get(u)}},88758:(G,b,t)=>{"use strict";t.d(b,{NC:()=>y,zZ:()=>A,QJ:()=>v});var n=t(31085),a=t(14041),d=t(93368),x=t(25862),m=t(82266),h=t(9222),u=t(19402);class p extends a.Component{static getDerivedStateFromError(O){return{error:O}}state={error:void 0};handleErrorReset=()=>{this.setState({error:void 0})};render(){const{error:O}=this.state,{app:R,plugin:S}=this.props,{ErrorBoundaryFallback:j}=R.getComponents();return O?(0,n.jsx)(j,{error:O,resetError:this.handleErrorReset,plugin:S}):this.props.children}}var g=t(67237);function v(T){const{component:O,mountPoint:R,name:S}=T;return A({component:{lazy:()=>O().then(j=>{const k=X=>{const Y=(0,d.s)();try{(0,h.S)(R)}catch(W){if(typeof W=="object"&&W!==null){const{message:Q}=W;if(typeof Q=="string"&&Q.startsWith("No path for "))throw new Error(`Routable extension component with mount point ${R} was not discovered in the app element tree. Routable extension components may not be rendered by other components and must be directly available as an element within the App provider component.`)}throw W}return(0,a.useEffect)(()=>{Y.captureEvent(g.t,"")},[Y]),(0,n.jsx)(j,{...X})},L=S||j.displayName||j.name||"LazyComponent";return k.displayName=`RoutableExtension(${L})`,k},j=>L=>{const X=(0,m.n)(),{BootErrorPage:Y}=X.getComponents();return(0,n.jsx)(Y,{step:"load-chunk",error:j})})},data:{"core.mountPoint":R},name:S})}function y(T){const{component:O,name:R}=T;return A({component:O,name:R})}function A(T){const{data:O={},name:R}=T;R||console.warn("Declaring extensions without name is DEPRECATED. Make sure that all usages of createReactExtension, createComponentExtension and createRoutableExtension provide a name.");let S;if("lazy"in T.component){const k=T.component.lazy;S=(0,a.lazy)(()=>k().then(L=>({default:L})))}else S=T.component.sync;const j=R||S.displayName||S.name||"Component";return{expose(k){const L=X=>{const Y=(0,m.n)(),{Progress:W}=Y.getComponents(),Q=O?.["core.mountPoint"];return(0,n.jsx)(a.Suspense,{fallback:(0,n.jsx)(W,{}),children:(0,n.jsx)(p,{app:Y,plugin:k,children:(0,n.jsx)(x.Ig,{attributes:{pluginId:k.getId(),...R&&{extension:R},...Q&&{routeRef:Q.id}},children:(0,n.jsx)(S,{...X})})})})};(0,u.h)(L,"core.plugin",k),(0,u.h)(L,"core.extensionName",R);for(const[X,Y]of Object.entries(O))(0,u.h)(L,X,Y);return L.displayName=`Extension(${j})`,L}}}},82442:(G,b,t)=>{"use strict";t.d(b,{O:()=>u});var n=t(14041),a=t(19402),d=t(72427),x=t(63636);function m(p,g,v,y){return n.Children.toArray(p).flatMap(A=>{if(!(0,n.isValidElement)(A))return[];if(A.type===n.Fragment)return m(A.props.children,g,v,y);if((0,a.E)(A,"core.featureFlagged")){const T=A.props;return("with"in T?g.isActive(T.with):!g.isActive(T.without))?m(A.props.children,g,v,y):[]}if(v===void 0||v(A))return[A];if(y)throw new Error(y);return m(A.props.children,g,v,y)})}class h{node;featureFlagsApi;constructor(g,v){this.node=g,this.featureFlagsApi=v}selectByComponentData(g){const v=m(this.node,this.featureFlagsApi,y=>(0,a.E)(y,g.key)!==void 0,g.withStrictError);return new h(v,this.featureFlagsApi)}findComponentData(g){return m(this.node,this.featureFlagsApi,y=>(0,a.E)(y,g.key)!==void 0).map(y=>(0,a.E)(y,g.key)).filter(y=>y!==void 0)}getElements(){return m(this.node,this.featureFlagsApi)}}function u(p,g,v=[]){const y=(0,d.gf)(x.B),A=new h(p,y);return(0,n.useMemo)(()=>g(A),[p,...v])}},9803:(G,b,t)=>{"use strict";t.d(b,{i:()=>a});class n{config;constructor(x){this.config=x}getId(){return this.config.id}getApis(){return this.config.apis??[]}getFeatureFlags(){return this.config.featureFlags?.slice()??[]}get routes(){return this.config.routes??{}}get externalRoutes(){return this.config.externalRoutes??{}}provide(x){return x.expose(this)}toString(){return`plugin{${this.config.id}}`}}function a(d){return new n(d)}},34569:(G,b,t)=>{"use strict";t.d(b,{H:()=>x});var n=t(59598);let a=n.b;class d{id;params;[a];constructor(h,u){this.id=h,this.params=u,this[a]="absolute"}get title(){return this.id}toString(){return`routeRef{type=absolute,id=${this.id}}`}}function x(m){return new d(m.id,m.params??[])}},59598:(G,b,t)=>{"use strict";t.d(b,{b:()=>a});var n=t(63544);const a=(0,n.Q)("route-ref-type",()=>Symbol("route-ref-type"))},9222:(G,b,t)=>{"use strict";t.d(b,{S:()=>x});var n=t(14041),a=t(18690),d=t(43836);function x(m){const{pathname:h}=(0,a.zy)(),u=(0,d.qO)("routing-context");if(!u)throw new Error("Routing context is not available");const p=u.atVersion(1),g=(0,n.useMemo)(()=>p&&p.resolve(m,{pathname:h}),[p,m,h]);if(!u)throw new Error("useRouteRef used outside of routing context");if(!p)throw new Error("RoutingContext v1 not available");const v="optional"in m&&m.optional;if(!g&&!v)throw new Error(`No path for ${m}`);return g}},93184:(G,b,t)=>{"use strict";t.d(b,{h:()=>x,v:()=>m});var n=t(99833);function a(h){const u=new Array;function p(g,v){for(const[y,A]of Object.entries(g))typeof A=="string"?u.push([v+y,A]):p(A,`${v}${y}.`)}return p(h,""),Object.fromEntries(u)}class d{#t;#n;#e;constructor(u){this.#t=u.id,this.#n=a(u.messages)}$$type="@backstage/TranslationRef";version="v1";get id(){return this.#t}get T(){throw new Error("Not implemented")}getDefaultMessages(){return this.#n}setDefaultResource(u){this.#e=u}getDefaultResource(){return this.#e}toString(){return`TranslationRef{id=${this.id}}`}}function x(h){const u=new d(h);return h.translations&&u.setDefaultResource((0,n.o)({ref:u,translations:h.translations})),u}function m(h){const u=h;if(u.$$type!=="@backstage/TranslationRef")throw new Error(`Invalid translation ref, bad type '${u.$$type}'`);if(u.version!=="v1")throw new Error(`Invalid translation ref, bad version '${u.version}'`);return u}},99833:(G,b,t)=>{"use strict";t.d(b,{Y:()=>n,o:()=>a});function n(d){const x=d;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 a(d){return{$$type:"@backstage/TranslationResource",version:"v1",id:d.ref.id,resources:Object.entries(d.translations).map(([x,m])=>({language:x,loader:()=>m().then(h=>{const u=h.default;return{messages:u?.$$type==="@backstage/TranslationMessages"?u.messages:u}})}))}}},87849:(G,b,t)=>{"use strict";t.d(b,{i:()=>h});var n=t(14041),a=t(72427),d=t(39837),x=t(56038);const m=new WeakSet,h=u=>{const p=(0,a.gf)(d.m),g=(0,a.gf)(x.J),[v,y]=(0,n.useState)(()=>g.getTranslation(u)),A=(0,n.useMemo)(()=>g.translation$(u),[g,u]),T=(0,n.useCallback)(R=>{if(!m.has(u)){const S=`Failed to load translation resource '${u.id}'; caused by ${R}`;console.error(S),p.post(new Error(S)),m.add(u)}},[p,u]);(0,n.useEffect)(()=>{const R=A.subscribe({next(S){S.ready&&y(S)},error(S){T(S)}});return()=>{R.unsubscribe()}},[A,T]);const O=(0,n.useRef)(!0);if((0,n.useEffect)(()=>{O.current?O.current=!1:y(g.getTranslation(u))},[g,u]),!v.ready)throw new Promise(R=>{const S=A.subscribe({next(j){j.ready&&(S.unsubscribe(),R())},error(j){S.unsubscribe(),T(j),R()}})});return{t:v.t}}},70835:(G,b,t)=>{"use strict";t.d(b,{o:()=>d});var n=t(59750);async function a(x){try{const m=await x.text();if(m){if(x.headers.get("content-type")?.startsWith("application/json"))try{const h=JSON.parse(m);if(h.error&&h.response)return h}catch{}return{error:{name:"Error",message:`Request failed with status ${x.status} ${x.statusText}, ${m}`},response:{statusCode:x.status}}}}catch{}return{error:{name:"Error",message:`Request failed with status ${x.status} ${x.statusText}`},response:{statusCode:x.status}}}class d extends Error{response;body;cause;statusCode;statusText;static async fromResponse(m){const h=await a(m),u=h.response.statusCode||m.status,p=m.statusText,g=`Request failed with ${u} ${p}`,v=(0,n.cy)(h.error);return new d({message:g,response:m,data:h,cause:v,statusCode:u,statusText:p})}constructor(m){super(m.message),this.name="ResponseError",this.response=m.response,this.body=m.data,this.cause=m.cause,this.statusCode=m.statusCode,this.statusText=m.statusText}}},93007:(G,b,t)=>{"use strict";t.d(b,{b:()=>n});function n(d){if(typeof d!="object"||d===null||Array.isArray(d))return!1;const x=d;return!(typeof x.name!="string"||x.name===""||typeof x.message!="string")}function a(d){if(typeof d!="object"||d===null||Array.isArray(d))throw new Error(`Encountered invalid error, not an object, got '${d}'`);const x=d;if(typeof x.name!="string"||x.name==="")throw new Error(`Encountered error object without a name, got '${d}'`);if(typeof x.message!="string")throw new Error(`Encountered error object without a message, got '${d}'`)}},97142:(G,b,t)=>{"use strict";t.d(b,{m_:()=>u,EH:()=>v});var n=t(93007),a=t(59750);class d extends Error{cause;constructor(O,R){let S=O;if(R!==void 0){const j=(0,a.M5)(R);S?S+=`; caused by ${j}`:S=`caused by ${j}`}super(S),Error.captureStackTrace?.(this,this.constructor),(!this.name||this.name==="Error")&&this.constructor.name!=="Error"&&(this.name=this.constructor.name),this.cause=(0,n.b)(R)?R:void 0}}class x extends null{name="InputError"}class m extends null{name="AuthenticationError"}class h extends null{name="NotAllowedError"}class u extends d{name="NotFoundError"}class p extends null{name="ConflictError"}class g extends null{name="NotModifiedError"}class v extends d{name="NotImplementedError"}class y extends null{}class A extends d{constructor(O,R){super(O,R),this.name=(0,n.b)(R)?R.name:"Error"}}},59750:(G,b,t)=>{"use strict";t.d(b,{M5:()=>h,cy:()=>m});var n=t(69655),a=t.n(n),d=t(93007);function x(u,p){const v={name:"Unknown",message:"<no reason given>",...serializeErrorInternal(u)};return p?.includeStack||delete v.stack,v}function m(u){const p=(0,n.deserializeError)(u);return u.stack||(p.stack=void 0),p}function h(u){if((0,d.b)(u)){const p=String(u);return p!=="[object Object]"?p:`${u.name}: ${u.message}`}return`unknown error '${u}'`}},3347:(G,b,t)=>{"use strict";t.d(b,{L:()=>nn,Y:()=>We});var n=t(59869);const a="amazonaws.com";function d(I){const l=I.getOptionalString("endpoint"),E=I.getOptionalBoolean("s3ForcePathStyle")??!1;let U,et;if(l){try{const Xt=new URL(l);U=Xt.host,et=Xt.pathname}catch{throw new Error(`invalid awsS3 integration config, endpoint '${l}' is not a valid URL`)}if(et!=="/")throw new Error(`invalid awsS3 integration config, endpoints cannot contain path, got '${l}'`)}else U=a;const at=I.getOptionalString("accessKeyId"),ft=I.getOptionalString("secretAccessKey")?.trim(),Kt=I.getOptionalString("roleArn"),Gt=I.getOptionalString("externalId");return{host:U,endpoint:l,s3ForcePathStyle:E,accessKeyId:at,secretAccessKey:ft,roleArn:Kt,externalId:Gt}}function x(I){const l=I.map(d);return l.some(E=>E.host===a)||l.push({host:a}),l}class m{integrationConfig;static factory=({config:l})=>{const E=x(l.getOptionalConfigArray("integrations.awsS3")??[]);return(0,n.oS)(E.map(U=>new m(U)),U=>U.config.host)};get type(){return"awsS3"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}constructor(l){this.integrationConfig=l}resolveUrl(l){return(0,n.ku)(l)}resolveEditUrl(l){return l}}const h="console.aws.amazon.com";function u(I){const l=I.getOptionalString("accessKeyId"),E=I.getOptionalString("secretAccessKey")?.trim(),U=I.getOptionalString("roleArn"),et=I.getOptionalString("externalId"),at=I.getString("region");return{host:I.getOptionalString("host")||`${at}.${h}`,accessKeyId:l,secretAccessKey:E,roleArn:U,externalId:et,region:at}}function p(I){return I.map(u)}class g{integrationConfig;static factory=({config:l})=>{const E=p(l.getOptionalConfigArray("integrations.awsCodeCommit")??[]);return(0,n.oS)(E.map(U=>new g(U)),U=>U.config.host)};get type(){return"awsCodeCommit"}get config(){return this.integrationConfig}get title(){return this.integrationConfig.host}constructor(l){this.integrationConfig=l}resolveUrl(l){return(0,n.ku)(l)}resolveEditUrl(l){const U=new URL(l).pathname.match(/^\/codesuite\/codecommit\/repositories\/([^\/]+)\//);if(!U)throw new Error("");const[,et]=U;return v(l,et,"edit")}}function v(I,l,E){const U=E==="edit"?"files/edit":E;return I.replace(new RegExp(`/codesuite/codecommit/repositories/${l}/(browse|files/edit)/`),`/codesuite/codecommit/repositories/${l}/${U}/`)}const y="GB";class A{static fromRepoUrl(l){const E=new URL(l);let U,et,at;const ft=E.pathname.split("/").map(Lt=>decodeURIComponent(Lt));if(ft[2]==="_git"?(U=ft[1],et=at=ft[3]):ft[3]==="_git"?(U=ft[1],et=ft[2],at=ft[4]):ft[4]==="_git"&&(U=`${ft[1]}/${ft[2]}`,et=ft[3],at=ft[5]),!U||!et||!at)throw new Error("Azure URL must point to a git repository");const Kt=E.searchParams.get("path")??void 0;let Gt;const Xt=E.searchParams.get("version");if(Xt){if(Xt.slice(0,2)!=="GB")throw new Error("Azure URL version must point to a git branch");Gt=Xt.slice(2)}return new A(E.origin,U,et,at,Kt,Gt)}#t;#n;#e;#s;#r;#o;constructor(l,E,U,et,at,ft){this.#t=l,this.#n=E,this.#e=U,this.#s=et,this.#r=at,this.#o=ft}#a=(...l)=>{const E=new URL(this.#t);return E.pathname=l.map(U=>encodeURIComponent(U)).join("/"),E};toRepoUrl(){let l;return this.#e===this.#s?l=this.#a(this.#n,"_git",this.#s):l=this.#a(this.#n,this.#e,"_git",this.#s),this.#r&&l.searchParams.set("path",this.#r),this.#o&&l.searchParams.set("version",y+this.#o),l.toString()}toFileUrl(){if(!this.#r)throw new Error("Azure URL must point to a specific path to be able to download a file");const l=this.#a(this.#n,this.#e,"_apis","git","repositories",this.#s,"items");return l.searchParams.set("api-version","6.0"),l.searchParams.set("path",this.#r),this.#o&&l.searchParams.set("version",this.#o),l.toString()}toArchiveUrl(){const l=this.#a(this.#n,this.#e,"_apis","git","repositories",this.#s,"items");return l.searchParams.set("recursionLevel","full"),l.searchParams.set("download","true"),l.searchParams.set("api-version","6.0"),this.#r&&l.searchParams.set("scopePath",this.#r),this.#o&&l.searchParams.set("version",this.#o),l.toString()}toCommitsUrl(){const l=this.#a(this.#n,this.#e,"_apis","git","repositories",this.#s,"commits");return l.searchParams.set("api-version","6.0"),this.#o&&l.searchParams.set("searchCriteria.itemVersion.version",this.#o),l.toString()}getOwner(){return this.#n}getProject(){return this.#e}getRepo(){return this.#s}getPath(){return this.#r}getRef(){return this.#o}}const T="dev.azure.com",O=["clientId","clientSecret","tenantId","personalAccessToken"],R=new Map([["ClientSecret",["clientId","clientSecret","tenantId"]],["ManagedIdentity",["clientId"]],["PersonalAccessToken",["personalAccessToken"]]]);function S(I){for(const l of R.entries()){const[E,U]=l,et=O.filter(at=>!U.includes(at));if(U.every(at=>I[at]!==void 0)&&et.every(at=>I[at]===void 0))return{kind:E,organizations:I.organizations,...U.reduce((at,ft)=>(at[ft]=I[ft],at),{})}}throw new Error("is not a valid credential")}function j(I){const l=I.getOptionalString("host")??T;let E=I.getOptionalConfigArray("credentials")?.map(at=>({organizations:at.getOptionalStringArray("organizations"),personalAccessToken:at.getOptionalString("personalAccessToken")?.trim(),tenantId:at.getOptionalString("tenantId"),clientId:at.getOptionalString("clientId"),clientSecret:at.getOptionalString("clientSecret")?.trim()}));const U=I.getOptionalString("token")?.trim();if(I.getOptional("credential")!==void 0&&I.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'credential' and 'credentials' cannot be used together. Use 'credentials' instead.");if(I.getOptional("token")!==void 0&&I.getOptional("credentials")!==void 0)throw new Error("Invalid Azure integration config, 'token' and 'credentials' cannot be used together. Use 'credentials' instead.");if(U!==void 0){const at=[{personalAccessToken:U}];E=E?.concat(at)??at}if(I.getOptional("credential")!==void 0){const at=[{organizations:I.getOptionalStringArray("credential.organizations"),token:I.getOptionalString("credential.token")?.trim(),tenantId:I.getOptionalString("credential.tenantId"),clientId:I.getOptionalString("credential.clientId"),clientSecret:I.getOptionalString("credential.clientSecret")?.trim()}];E=E?.concat(at)??at}if(!(0,n.HO)(l))throw new Error(`Invalid Azure integration config, '${l}' is not a valid host`);let et;if(E!==void 0){const at=E?.reduce((ft,Kt,Gt)=>{let Xt;try{S(Kt)}catch(Lt){Xt=Lt.message}return Xt!==void 0&&ft.push(`credential at position ${Gt+1} ${Xt}`),ft},Array.of()).concat(Object.entries(E.filter(ft=>ft.organizations!==void 0&&ft.organizations.length>0).reduce((ft,Kt,Gt)=>(Kt.organizations?.forEach(Xt=>{ft[Xt]||(ft[Xt]=[]),ft[Xt].push(Gt+1)}),ft),{})).filter(([ft,Kt])=>Kt.length>1).reduce((ft,[Kt,Gt])=>(ft.push(`organization ${Kt} is specified multiple times in credentials at positions ${Gt.slice(0,Gt.length-1).join(", ")} and ${Gt[Gt.length-1]}`),ft),Array.of()));if(at?.length>0)throw new Error(`Invalid Azure integration config for ${l}: ${at.join("; ")}`);if(et=E.map(ft=>S(ft)),et.some(ft=>ft.kind!=="PersonalAccessToken")&&l!==T)throw new Error(`Invalid Azure integration config for ${l}, only personal access tokens can be used with hosts other than ${T}`);if(et.filter(ft=>ft.organizations===void 0||ft.organizations.length===0).length>1)throw new Error(`Invalid Azure integration config for ${l}, you cannot specify multiple credentials without organizations`)}return{host:l,credentials:et}}function k(I){const l=I.map(j);return l.some(E=>E.host===T)||l.push({host:T}),l}class L{integrationConfig;static factory=({config:l})=>{const E=k(l.getOptionalConfigArray("integrations.azure")??[]);return(0,n.oS)(E.map(U=>new L(U)),U=>U.config.host)};constructor(l){this.integrationConfig=l}get type(){return"azure"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(l){const{url:E,base:U}=l;if((0,n.AY)(E))return E;try{const et=A.fromRepoUrl(U),at=new URL(U),ft=new URL(`https://a.com${et.getPath()??""}`),Kt=new URL(E,ft).pathname;return at.searchParams.set("path",Kt),l.lineNumber&&(at.searchParams.set("line",String(l.lineNumber)),at.searchParams.set("lineEnd",String(l.lineNumber+1)),at.searchParams.set("lineStartColumn","1"),at.searchParams.set("lineEndColumn","1")),at.toString()}catch{return new URL(E,U).toString()}}resolveEditUrl(l){return l}}var X=t(52536),Y=t.n(X);const W="bitbucket.org",Q="https://api.bitbucket.org/2.0";function K(I){const l=W,E=Q,U=I.getString("username"),et=I.getString("appPassword")?.trim();return{host:l,apiBaseUrl:E,username:U,appPassword:et}}function H(I){const l=I.map(K);return l.length===0&&l.push({host:W,apiBaseUrl:Q}),l}class Z{integrationConfig;static factory=({config:l})=>{const E=H(l.getOptionalConfigArray("integrations.bitbucketCloud")??[]);return(0,n.oS)(E.map(U=>new Z(U)),U=>U.config.host)};constructor(l){this.integrationConfig=l}get type(){return"bitbucketCloud"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(l){const E=(0,n.ku)(l);if(l.lineNumber){const U=new URL(E);return U.hash=`lines-${l.lineNumber}`,U.toString()}return E}resolveEditUrl(l){const E=Y()(l),U=new URL(l);return U.searchParams.set("mode","edit"),U.searchParams.set("at",E.ref),U.toString()}}var V=t(45250);const tt="bitbucket.org",_="https://api.bitbucket.org/2.0";function ct(I){const l=I.getOptionalString("host")??tt;let E=I.getOptionalString("apiBaseUrl");const U=I.getOptionalString("token")?.trim(),et=I.getOptionalString("username"),at=I.getOptionalString("appPassword")?.trim();if(!(0,n.HO)(l))throw new Error(`Invalid Bitbucket integration config, '${l}' is not a valid host`);return E?E=(0,V.trimEnd)(E,"/"):l===tt?E=_:E=`https://${l}/rest/api/1.0`,{host:l,apiBaseUrl:E,token:U,username:et,appPassword:at}}function ht(I){const l=I.map(ct);return l.some(E=>E.host===tt)||l.push({host:tt,apiBaseUrl:_}),l}class mt{integrationConfig;static factory=({config:l})=>{const E=ht(l.getOptionalConfigArray("integrations.bitbucket")??[...l.getOptionalConfigArray("integrations.bitbucketCloud")??[],...l.getOptionalConfigArray("integrations.bitbucketServer")??[]]);return(0,n.oS)(E.map(U=>new mt(U)),U=>U.config.host)};constructor(l){this.integrationConfig=l}get type(){return"bitbucket"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(l){const E=(0,n.ku)(l);if(!l.lineNumber)return E;const U=new URL(E);return this.integrationConfig.host==="bitbucket.org"?U.hash=`lines-${l.lineNumber}`:U.hash=`${l.lineNumber}`,U.toString()}resolveEditUrl(l){const E=Y()(l),U=new URL(l);return U.searchParams.set("mode","edit"),U.searchParams.set("spa","0"),U.searchParams.set("at",E.ref),U.toString()}}function Et(I){const l=I.getString("host");let E=I.getOptionalString("apiBaseUrl");const U=I.getOptionalString("token")?.trim(),et=I.getOptionalString("username"),at=I.getOptionalString("password");if(!(0,n.HO)(l))throw new Error(`Invalid Bitbucket Server integration config, '${l}' is not a valid host`);return E?E=(0,V.trimEnd)(E,"/"):E=`https://${l}/rest/api/1.0`,{host:l,apiBaseUrl:E,token:U,username:et,password:at}}function xt(I){return I.map(Et)}class At{integrationConfig;static factory=({config:l})=>{const E=xt(l.getOptionalConfigArray("integrations.bitbucketServer")??[]);return(0,n.oS)(E.map(U=>new At(U)),U=>U.config.host)};constructor(l){this.integrationConfig=l}get type(){return"bitbucketServer"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(l){const E=(0,n.ku)(l);if(l.lineNumber){const U=new URL(E);return U.hash=l.lineNumber.toString(),U.toString()}return E}resolveEditUrl(l){return l.includes("?")?l.substring(0,l.indexOf("?")):l}}function lt(I){const l=I.getString("host");let E=I.getOptionalString("baseUrl"),U=I.getOptionalString("cloneUrl"),et=I.getString("gitilesBaseUrl");const at=I.getOptionalString("username"),ft=I.getOptionalString("password")?.trim();if((0,n.HO)(l)){if(E&&!(0,n.AY)(E))throw new Error(`Invalid Gerrit integration config, '${E}' is not a valid baseUrl`);if(U&&!(0,n.AY)(U))throw new Error(`Invalid Gerrit integration config, '${U}' is not a valid cloneUrl`);if(!(0,n.AY)(et))throw new Error(`Invalid Gerrit integration config, '${et}' is not a valid gitilesBaseUrl`)}else throw new Error(`Invalid Gerrit integration config, '${l}' is not a valid host`);return E?E=(0,V.trimEnd)(E,"/"):E=`https://${l}`,et?et=(0,V.trimEnd)(et,"/"):et=`https://${l}`,U?U=(0,V.trimEnd)(U,"/"):U=E,{host:l,baseUrl:E,cloneUrl:U,gitilesBaseUrl:et,username:at,password:ft}}function Ct(I){return I.map(lt)}var yt=t(1048).hp;const Tt=")]}'";function bt(I,l){const E=new URL(I.gitilesBaseUrl),U=new URL(l),at=U.pathname.substring(U.pathname.startsWith("/a/")?2:0).replace(E.pathname,"").split("/").filter(_t=>!!_t),ft=at.indexOf("+");if(ft<=0)throw new Error(`Unable to parse project from url: ${l}`);const Kt=trimStart(at.slice(0,ft).join("/"),"/"),Gt=at.indexOf("heads");if(Gt<=0)throw new Error(`Unable to parse branch from url: ${l}`);const Xt=at[Gt+1],Lt=at.slice(Gt+2).join("/");return{branch:Xt,filePath:Lt===""?"/":Lt,project:Kt}}function It(I,l){const E=new URL(I.gitilesBaseUrl),U=new URL(l),at=(0,V.trimStart)(U.pathname.substring(U.pathname.startsWith("/a/")?2:0).replace(E.pathname,""),"/").split("/").filter(Nt=>!!Nt),ft=(0,V.takeWhile)(at,Nt=>Nt!=="+");if(ft.length===0)throw new Error(`Unable to parse gitiles url: ${l}`);const Kt=at.slice(ft.length+1),Gt=(0,V.join)(ft,"/");if(Kt.length>0&&Kt[0]==="HEAD"){const Nt=Kt.shift(),fe=(0,V.join)(Kt,"/");return{project:Gt,ref:Nt,refType:"head",path:fe||"/",basePath:(0,V.trimEnd)(l.replace(fe,""),"/")}}if(Kt.length>0&&Kt[0].length===40){const Nt=Kt.shift(),fe=(0,V.join)(Kt,"/");return{project:Gt,ref:Nt,refType:"sha",path:fe||"/",basePath:(0,V.trimEnd)(l.replace(fe,""),"/")}}const Xt=(0,V.join)(Kt,"/"),_t=/^refs\/(?<refsReference>heads|tags)\/(?<ref>.*?)(\/|$)/.exec(Xt);if(_t){const Nt=_t[0];let fe;const{refsReference:Be,ref:Pe}=_t.groups||{},Ke=Xt.replace(Nt,"");switch(Be){case"heads":fe="branch";break;case"tags":fe="tag";break;default:throw new Error(`Unable to parse gitiles url: ${l}`)}return{project:Gt,ref:Pe,refType:fe,path:Ke||"/",basePath:(0,V.trimEnd)(l.replace(Ke,""),"/")}}throw new Error(`Unable to parse gitiles : ${l}`)}function zt(I,l,E,U){return`${I.gitilesBaseUrl}/${l}/+/refs/heads/${E}/${trimStart(U,"/")}`}function Ht(I,l,E,U){const et=U==="/"||U===""?".tar.gz":`/${U}.tar.gz`;return`${Dt(I)}/${l}/+archive/refs/heads/${E}${et}`}function gt(I){return I.password?"/a/":"/"}function Dt(I){if(!I.baseUrl||!I.gitilesBaseUrl)throw new Error("Unexpected Gerrit config values. baseUrl or gitilesBaseUrl not set.");if(I.gitilesBaseUrl.startsWith(I.baseUrl))return I.gitilesBaseUrl.replace(I.baseUrl.concat("/"),I.baseUrl.concat(gt(I)));if(I.password)throw new Error("Since the baseUrl (Gerrit) is not part of the gitilesBaseUrl, an authentication URL could not be constructed.");return I.gitilesBaseUrl}function M(I,l){const{branch:E,project:U}=bt(I,l);return`${I.baseUrl}${gt(I)}projects/${encodeURIComponent(U)}/branches/${E}`}function $(I,l){const{project:E}=bt(I,l);return`${I.cloneUrl}${gt(I)}${E}`}function nt(I,l){const{branch:E,filePath:U,project:et}=bt(I,l);return`${I.baseUrl}${gt(I)}projects/${encodeURIComponent(et)}/branches/${E}/files/${encodeURIComponent(U)}/content`}function ot(I){return`${I.baseUrl}${gt(I)}projects/`}function pt(I){const l={};if(!I.password)return l;const E=yt.from(`${I.username}:${I.password}`,"utf8");return l.Authorization=`Basic ${E.toString("base64")}`,{headers:l}}async function ut(I){const l=await I.text();if(l.startsWith(Tt))try{return JSON.parse(l.slice(Tt.length))}catch(E){throw new Error(`Invalid response from Gerrit: ${l.slice(0,10)} - ${E}`)}throw new Error(`Gerrit JSON body prefix missing. Found: ${l.slice(0,10)}`)}class vt{integrationConfig;static factory=({config:l})=>{const E=Ct(l.getOptionalConfigArray("integrations.gerrit")??[]);return(0,n.oS)(E.map(U=>new vt(U)),U=>U.config.host)};constructor(l){this.integrationConfig=l}get type(){return"gerrit"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(l){const{url:E,base:U,lineNumber:et}=l;let at;if(E.startsWith("/")){const{basePath:ft}=It(this.config,U);return ft+E}return E?at=new URL(E,U):at=new URL(U),et&&(at.hash=et.toString()),at.toString()}resolveEditUrl(l){return l}}var wt=t(36021);const Bt="gitlab.com",Ut="https://gitlab.com/api/v4";function Wt(I){const l=I.getString("host");let E=I.getOptionalString("apiBaseUrl");const U=I.getOptionalString("token")?.trim();let et=I.getOptionalString("baseUrl");if(E?E=(0,V.trimEnd)(E,"/"):l===Bt&&(E=Ut),et?et=(0,V.trimEnd)(et,"/"):et=`https://${l}`,(0,n.HO)(l)){if(!E||!(0,n.AY)(E))throw new Error(`Invalid GitLab integration config, '${E}' is not a valid apiBaseUrl`);if(!(0,n.AY)(et))throw new Error(`Invalid GitLab integration config, '${et}' is not a valid baseUrl`)}else throw new Error(`Invalid GitLab integration config, '${l}' is not a valid host`);return{host:l,token:U,apiBaseUrl:E,baseUrl:et}}function ie(I){const l=I.map(Wt);return l.some(E=>E.host===Bt)||l.push({host:Bt,apiBaseUrl:Ut,baseUrl:`https://${Bt}`}),l}function ce(I){let l="";return I.host!==Bt&&(l=new URL(I.baseUrl).pathname),trimEnd(l,"/")}class pe{integrationConfig;static factory=({config:l})=>{const E=ie(l.getOptionalConfigArray("integrations.gitlab")??[]);return(0,n.oS)(E.map(U=>new pe(U)),U=>U.config.host)};constructor(l){this.integrationConfig=l}get type(){return"gitlab"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(l){return(0,n.ku)(l)}resolveEditUrl(l){return Jt(l,"edit")}}function Jt(I,l){return I.replace(/\/\-\/(blob|tree|edit)\//,`/-/${l}/`)}function se(I){const l=I.getString("host");let E=I.getOptionalString("baseUrl");const U=I.getOptionalString("username"),et=I.getOptionalString("password")?.trim();if((0,n.HO)(l)){if(E&&!(0,n.AY)(E))throw new Error(`Invalid Gitea integration config, '${E}' is not a valid baseUrl`)}else throw new Error(`Invalid Gitea integration config, '${l}' is not a valid host`);return E?E=(0,V.trimEnd)(E,"/"):E=`https://${l}`,{host:l,baseUrl:E,username:U,password:et}}var Ae=t(1048).hp;function Vt(I,l){const E=xe(I,l);return`${E.url}/${E.owner}/${E.name}/_edit/${E.ref}/${E.path}`}function qt(I,l){const E=xe(I,l);return`${E.url}/api/v1/repos/${E.owner}/${E.name}/contents/${E.path}?ref=${E.ref}`}function Te(I,l){const E=xe(I,l);return`${E.url}/api/v1/repos/${E.owner}/${E.name}/archive/${E.ref}.tar.gz`}function Qt(I,l){const E=xe(I,l);return`${E.url}/api/v1/repos/${E.owner}/${E.name}/git/commits/${E.ref}`}function qe(I){const l={},{username:E,password:U}=I;return U?(E?l.Authorization=`basic ${Ae.from(`${E}:${U}`).toString("base64")}`:l.Authorization=`token ${U}`,{headers:l}):l}function xe(I,l){const E=I.baseUrl??`https://${I.host}`;try{const[U,et,at,ft,Kt,Gt,...Xt]=l.replace(E,"").split("/"),Lt=Xt.join("/").replace(/^\//,"");return{url:E,owner:et,name:at,ref:Gt,path:Lt}}catch(U){throw new Error(`Incorrect URL: ${l}, ${U}`)}}class De{config;static factory=({config:l})=>{const U=(l.getOptionalConfigArray("integrations.gitea")??[]).map(et=>se(et));return(0,n.oS)(U.map(et=>new De(et)),et=>et.config.host)};constructor(l){this.config=l}get type(){return"gitea"}get title(){return this.config.host}resolveUrl(l){return(0,n.ku)(l)}resolveEditUrl(l){return Vt(this.config,l)}}function Ge(I){const l=I.getString("host"),E=I.getOptionalString("token"),U=I.getOptionalString("apiKey");if(!(0,n.HO)(l))throw new Error(`Invalid Harness Code integration config, '${l}' is not a valid host`);return{host:l,apiKey:U,token:E}}function ge(I,l){const E=Le(I,l);return`${E.baseUrl}/ng/account/${E.accountId}/module/code${E.orgName!==""?`/orgs/${E.orgName}`:""}${E.projectName!==""?`/projects/${E.projectName}`:""}/repos/${E.repoName}/files/${E.branch}/~/${E.path}`}function Ye(I,l){const E=Le(I,l);return`${E.baseUrl}/gateway/code/api/v1/repos/${E.accountId}/${E.orgName}${E.projectName!==""?`/${E.projectName}/`:"/"}${E.repoName}/+/raw/${E.path}?routingId=${E.accountId}&git_ref=refs/heads/${E.refString}`}function tn(I,l){const E=Le(I,l);return`${E.baseUrl}/gateway/code/api/v1/repos/${E.accountId}/${E.orgName}${E.projectName!==""?`/${E.projectName}/`:"/"}${E.repoName}/+/archive/${E.branch}.zip?routingId=${E.accountId}`}function an(I,l){const E=Le(I,l);return`${E.baseUrl}/gateway/code/api/v1/repos/${E.accountId}/${E.orgName}${E.projectName!==""?`/${E.projectName}/`:"/"}${E.repoName}/+/content?routingId=${E.accountId}&include_commit=true&git_ref=refs/heads/${E.branch}`}function en(I){const l={},{token:E,apiKey:U}=I;return U?l["x-api-key"]=U:E&&(l.Authorization=`Bearer ${E}`),{headers:l}}function Le(I,l){const E=`https://${I.host}`;try{const U=new URL(l),et=U.pathname.split("/").filter(re=>re!==""),at=U.pathname.split("/"),ft=et.findIndex(re=>re==="account")+1,Kt=et[ft],Gt=et.findIndex(re=>re==="orgs"),Xt=Gt!==-1?et[Gt+1]:"",Lt=et.findIndex(re=>re==="projects"),_t=Lt!==-1?et[Lt+1]:"",Nt=et.findIndex(re=>re==="repos")+1,fe=et[Nt],Be=at.slice(at.findIndex(re=>re==="files"||re==="edit")+1),Pe=Be.findIndex(re=>re==="~"),Ke=Be.slice(0,Pe).join("/"),oe=Pe!==-1?Be.slice(Pe+1).join("/").replace(/^\//,""):"";return{baseUrl:E,accountId:Kt,orgName:Xt,projectName:_t,refString:Ke,path:oe,repoName:fe,refDashStr:Be.slice(0,Pe).join("-"),branch:Pe!==-1?Be.slice(0,Pe).join("/"):Be.join("/")}}catch(U){throw new Error(`Incorrect URL: ${l}, ${U}`)}}class ke{config;static factory=({config:l})=>{const U=(l.getOptionalConfigArray("integrations.harness")??[]).map(et=>Ge(et));return(0,n.oS)(U.map(et=>new ke(et)),et=>et.config.host)};constructor(l){this.config=l}get type(){return"harness"}get title(){return this.config.host}resolveUrl(l){return(0,n.ku)(l)}resolveEditUrl(l){return ge(this.config,l)}}class le{byType;static fromConfig(l){return new le({awsS3:m.factory({config:l}),awsCodeCommit:g.factory({config:l}),azure:L.factory({config:l}),bitbucket:mt.factory({config:l}),bitbucketCloud:Z.factory({config:l}),bitbucketServer:At.factory({config:l}),gerrit:vt.factory({config:l}),github:wt.U.factory({config:l}),gitlab:pe.factory({config:l}),gitea:De.factory({config:l}),harness:ke.factory({config:l})})}constructor(l){this.byType=l}get awsS3(){return this.byType.awsS3}get awsCodeCommit(){return this.byType.awsCodeCommit}get azure(){return this.byType.azure}get bitbucket(){return this.byType.bitbucket}get bitbucketCloud(){return this.byType.bitbucketCloud}get bitbucketServer(){return this.byType.bitbucketServer}get gerrit(){return this.byType.gerrit}get github(){return this.byType.github}get gitlab(){return this.byType.gitlab}get gitea(){return this.byType.gitea}get harness(){return this.byType.harness}list(){return Object.values(this.byType).flatMap(l=>l.list())}byUrl(l){let E=Object.values(this.byType).map(U=>U.byUrl(l)).filter(Boolean);if(E.length>1){const U=E.filter(et=>!(et instanceof mt));U.length!==0&&(E=U)}return E[0]}byHost(l){return Object.values(this.byType).map(E=>E.byHost(l)).find(Boolean)}resolveUrl(l){const E=this.byUrl(l.base);return E?E.resolveUrl(l):(0,n.ku)(l)}resolveEditUrl(l){const E=this.byUrl(l);return E?E.resolveEditUrl(l):l}}var Qe=t(55309);class nn{static fromConfig(l){return le.fromConfig(l)}}const We=(0,Qe.y)({id:"integration.scmintegrations"})},36021:(G,b,t)=>{"use strict";t.d(b,{U:()=>p,F:()=>g});var n=t(59869),a=t(45250);const d="github.com",x="https://api.github.com",m="https://raw.githubusercontent.com";function h(v){const y=v.getOptionalString("host")??d;let A=v.getOptionalString("apiBaseUrl"),T=v.getOptionalString("rawBaseUrl");const O=v.getOptionalString("token")?.trim(),R=v.getOptionalConfigArray("apps")?.map(S=>({appId:S.getNumber("appId"),clientId:S.getString("clientId"),clientSecret:S.getString("clientSecret"),webhookSecret:S.getString("webhookSecret"),privateKey:S.getString("privateKey"),allowedInstallationOwners:S.getOptionalStringArray("allowedInstallationOwners")}));if(!(0,n.HO)(y))throw new Error(`Invalid GitHub integration config, '${y}' is not a valid host`);return A?A=(0,a.trimEnd)(A,"/"):y===d&&(A=x),T?T=(0,a.trimEnd)(T,"/"):y===d&&(T=m),{host:y,apiBaseUrl:A,rawBaseUrl:T,token:O,apps:R}}function u(v){const y=v.map(h);return y.some(A=>A.host===d)||y.push({host:d,apiBaseUrl:x,rawBaseUrl:m}),y}class p{integrationConfig;static factory=({config:y})=>{const A=u(y.getOptionalConfigArray("integrations.github")??[]);return(0,n.oS)(A.map(T=>new p(T)),T=>T.config.host)};constructor(y){this.integrationConfig=y}get type(){return"github"}get title(){return this.integrationConfig.host}get config(){return this.integrationConfig}resolveUrl(y){return g((0,n.ku)(y),"tree")}resolveEditUrl(y){return g(y,"edit")}parseRateLimitInfo(y){return{isRateLimited:y.status===429||y.status===403&&y.headers.get("x-ratelimit-remaining")==="0"}}}function g(v,y){return v.replace(/\/\/([^/]+)\/([^/]+)\/([^/]+)\/(blob|tree|edit)\//,(A,T,O,R)=>`//${T}/${O}/${R}/${y}/`)}},59869:(G,b,t)=>{"use strict";t.d(b,{AY:()=>h,HO:()=>m,ku:()=>p,oS:()=>u});var n=t(52536),a=t.n(n),d=t(45250),x=t.n(d);function m(v){const y=new URL("http://example.com");return y.host=v,y.host===v}function h(v){try{return new URL(v),!0}catch{return!1}}function u(v,y){return{list(){return v},byUrl(A){try{const T=typeof A=="string"?new URL(A):A;return v.find(O=>y(O)===T.host)}catch{return}},byHost(A){return v.find(T=>y(T)===A)}}}function p(v){const{url:y,base:A,lineNumber:T}=v;try{return new URL(y),y}catch{}let O;if(y.startsWith("/")){const{href:R,filepath:S}=a()(A);O=new URL(R);const j=(0,d.trimEnd)(O.pathname.substring(0,O.pathname.length-S.length),"/");O.pathname=`${j}${y}`}else O=new URL(y,A);return O.search=new URL(A).search,T&&(O.hash=`L${T}`),O.toString()}function g(v){beforeAll(()=>v.listen({onUnhandledRequest:"error"})),afterAll(()=>v.close()),afterEach(()=>v.resetHandlers())}},85318:(G,b,t)=>{"use strict";var n={};t.r(n),t.d(n,{TechDocsPlugin:()=>h.Ju});var a=t(31085),d=t(14041),x=t(25873),m=t(18690),h=t(39278),u=t(85920),p=t(72020),g=t(99730),v=t(64947),y=t(12173),A=t(22020),T=t(68146),O=t(73970);function R({children:r}){return(0,m.Ri)()?(0,a.jsx)(a.Fragment,{children:r}):(0,a.jsx)(m.fS,{children:r})}const S=()=>(0,a.jsx)(y.M,{status:"404",statusMessage:"PAGE NOT FOUND"}),j=({step:r,error:e})=>{let s="";return r==="load-config"?s=`The configuration failed to load, someone should have a look at this error: ${e.message}`:r==="load-chunk"&&(s=`Lazy loaded chunk failed to load, try to reload the page: ${e.message}`),(0,a.jsx)(R,{children:(0,a.jsx)(y.M,{statusMessage:s,stack:e.stack})})},k=({error:r,resetError:e,plugin:s})=>(0,a.jsx)(A.b,{title:`Error in ${s?.getId()}`,defaultExpanded:!0,error:r,children:(0,a.jsx)(v.A,{variant:"outlined",onClick:e,children:"Retry"})}),L={Progress:T.k,Router:O.Kd,NotFoundErrorPage:S,BootErrorPage:j,ErrorBoundaryFallback:k},X="Invalid discovery URL pattern,";class Y{parts;static compile(e){const s=e.split(/\{\{\s*pluginId\s*\}\}/),o=s.join("pluginId");let i;try{i=new URL(o)}catch{throw new Error(`${X} URL '${o}' is invalid`)}if(i.hash)throw new Error(`${X} URL must not have a hash`);if(i.search)throw new Error(`${X} URL must not have a query`);if(o.endsWith("/"))throw new Error(`${X} URL must not end with a slash`);return new Y(s)}constructor(e){this.parts=e}async getBaseUrl(e){return this.parts.join(encodeURIComponent(e))}}var W=t(96403),Q=t.n(W);class K{isClosed=!1;terminatingError;observable=new(Q())(e=>this.isClosed?(this.terminatingError?e.error(this.terminatingError):e.complete(),()=>{}):(this.subscribers.add(e),()=>{this.subscribers.delete(e)}));subscribers=new Set;[Symbol.observable](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.subscribers.forEach(s=>s.next(e))}error(e){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(s=>s.error(e))}complete(){if(this.isClosed)throw new Error("PublishSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,s,o){const i=typeof e=="function"?{next:e,error:s,complete:o}:e;return this.observable.subscribe(i)}}class H{isClosed;currentValue;terminatingError;observable;constructor(e){this.isClosed=!1,this.currentValue=e,this.terminatingError=void 0,this.observable=new(Q())(s=>this.isClosed?(this.terminatingError?s.error(this.terminatingError):s.complete(),()=>{}):(s.next(this.currentValue),this.subscribers.add(s),()=>{this.subscribers.delete(s)}))}subscribers=new Set;[Symbol.observable](){return this}get closed(){return this.isClosed}next(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.currentValue=e,this.subscribers.forEach(s=>s.next(e))}error(e){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.terminatingError=e,this.subscribers.forEach(s=>s.error(e))}complete(){if(this.isClosed)throw new Error("BehaviorSubject is closed");this.isClosed=!0,this.subscribers.forEach(e=>e.complete())}subscribe(e,s,o){const i=typeof e=="function"?{next:e,error:s,complete:o}:e;return this.observable.subscribe(i)}}class Z{subject=new K;post(e){this.subject.next(e)}alert$(){return this.subject}}class V{captureEvent(e){}}class tt{alertApi;errorApi;constructor(e,s){this.alertApi=e,this.errorApi=s}post(e,s){return s?.hidden||this.alertApi.post({message:e.message,severity:"error"}),this.errorApi.post(e,s)}error$(){return this.errorApi.error$()}}class _{subject=new K;post(e,s){this.subject.next({error:e,context:s})}error$(){return this.subject}}class ct{static forward(e,s){window.addEventListener("unhandledrejection",o=>{e.post(o.reason,s)})}}const ht=new Map;class mt{namespace;errorApi;constructor(e,s){this.namespace=e,this.errorApi=s,this.subscribers=new Set,this.observable=new(Q())(o=>(this.subscribers.add(o),()=>{this.subscribers.delete(o)}))}static hasSubscribed=!1;static create(e){return new mt(e.namespace??"",e.errorApi)}static addStorageEventListener(){window.addEventListener("storage",e=>{for(const[s,o]of ht.entries())e.key?.startsWith(s)&&o.handleStorageChange(e.key)})}get(e){return this.snapshot(e).value}snapshot(e){let s,o="absent";try{const i=localStorage.getItem(this.getKeyName(e));i&&(s=JSON.parse(i,(c,P)=>(typeof P=="object"&&P!==null&&Object.freeze(P),P)),o="present")}catch{this.errorApi.post(new Error(`Error when parsing JSON config from storage for: ${e}`))}return{key:e,value:s,presence:o}}forBucket(e){const s=`${this.namespace}/${e}`;return ht.has(s)||ht.set(s,new mt(s,this.errorApi)),ht.get(s)}async set(e,s){localStorage.setItem(this.getKeyName(e),JSON.stringify(s)),this.notifyChanges(e)}async remove(e){localStorage.removeItem(this.getKeyName(e)),this.notifyChanges(e)}observe$(e){return mt.hasSubscribed||(mt.addStorageEventListener(),mt.hasSubscribed=!0),this.observable.filter(({key:s})=>s===e)}handleStorageChange(e){if(!e?.startsWith(this.namespace))return;const s=e?.slice(`${this.namespace}/`.length);s.includes("/")||this.notifyChanges(decodeURIComponent(s))}getKeyName(e){return`${this.namespace}/${encodeURIComponent(e)}`}notifyChanges(e){const s=this.snapshot(e);for(const o of this.subscribers)o.next(s)}subscribers;observable}function Et(r){let e=r.baseImplementation||t.g.fetch;const s=[r.middleware??[]].flat().reverse();for(const o of s)e=o.apply(e);return{fetch:e}}class xt{identityApi;allowUrl;headerName;headerValue;static create(e){const s=At(e),o=e.header?.name||"authorization",i=e.header?.value||(c=>`Bearer ${c}`);return new xt(e.identityApi,s,o,i)}constructor(e,s,o,i){this.identityApi=e,this.allowUrl=s,this.headerName=o,this.headerValue=i}apply(e){return async(s,o)=>{const i=new Request(s,o),{token:c}=await this.identityApi.getCredentials();return i.headers.get(this.headerName)||typeof c!="string"||!c||!this.allowUrl(i.url)?e(s,o):(i.headers.set(this.headerName,this.headerValue(c)),e(i))}}}function At(r){return r.allowUrl?r.allowUrl:r.urlPrefixAllowlist?lt(r.urlPrefixAllowlist):r.config?lt([r.config.getString("backend.baseUrl")]):()=>!1}function lt(r){const e=r.map(s=>s.replace(/\/$/,""));return s=>e.some(o=>s===o||s.startsWith(`${o}/`))}function Ct(r,e){return!e||e==="/"?r:`${r.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}class yt{discoveryApi;constructor(e){this.discoveryApi=e}apply(e){return async(s,o)=>{const i=new Request(s,o),c="plugin://";if(!i.url.startsWith(c))return e(s,o);const{hostname:P,pathname:C,search:D,hash:z,username:q,password:it}=new URL(`http://${i.url.substring(c.length)}`);let st=await this.discoveryApi.getBaseUrl(P);if(q||it){const Pt=new URL(st),Yt=`${q}${it?`:${it}`:""}@`;st=`${Pt.protocol}//${Yt}${Pt.host}${Pt.pathname}`}const dt=`${Ct(st,C)}${D}${z}`;return e(dt,typeof s=="string"||Tt(s)?o:s)}}}function Tt(r){return typeof r=="object"&&r?.constructor===URL}class bt{static resolvePluginProtocol(e){return new yt(e.discoveryApi)}static injectIdentityAuth(e){return xt.create(e)}constructor(){}}function It(r,e){for(const s of e)if(!r.has(s))return!1;return!0}function zt(r,...e){const s=new Set(r);for(const o of e)for(const i of o)s.add(i);return s}class Ht{requests=[];subject=new H(this.getCurrentPending());request(e){return new Promise((s,o)=>{this.requests.push({scopes:e,resolve:s,reject:o}),this.subject.next(this.getCurrentPending())})}resolve(e,s){this.requests=this.requests.filter(o=>It(e,o.scopes)?(o.resolve(s),!1):!0),this.subject.next(this.getCurrentPending())}reject(e){this.requests.forEach(s=>s.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((s,o)=>zt(s,o.scopes),this.requests[0].scopes);return{scopes:e,resolve:s=>{e&&this.resolve(e,s)},reject:s=>{e&&this.reject(s)}}}}class gt{subject=new H([]);currentRequests=[];handlerCount=0;createAuthRequester(e){const s=new Ht,o=this.handlerCount;return this.handlerCount++,s.pending().subscribe({next:i=>{const c=this.currentRequests.slice(),P=this.makeAuthRequest(i,e);P?c[o]=P:delete c[o],this.currentRequests=c,this.subject.next(c.filter(Boolean))}}),i=>s.request(i)}makeAuthRequest(e,s){const{scopes:o}=e;if(o)return{provider:s.provider,trigger:async()=>{const i=await s.onAuthRequest(o);e.resolve(i)},reject:()=>{const i=new Error("Login failed, rejected by user");i.name="RejectedError",e.reject(i)}}}authRequest$(){return this.subject}}function Dt(r){return new Promise((e,s)=>{const o=r.width||500,i=r.height||700,c=window.screen.width/2-o/2,P=window.screen.height/2-i/2,C=window.open(r.url,r.name,`menubar=no,location=no,resizable=no,scrollbars=no,status=no,width=${o},height=${i},top=${P},left=${c}`);let D="";if(!C||typeof C.closed>"u"||C.closed){const st=new Error("Failed to open auth popup.");st.name="PopupRejectedError",s(st);return}const z=st=>{if(st.source!==C||st.origin!==r.origin)return;const{data:dt}=st;if(dt.type==="config_info"){D=dt.targetOrigin;return}if(dt.type!=="authorization_response")return;const Pt=dt;if("error"in Pt){const Yt=new Error(Pt.error.message);Yt.name=Pt.error.name,s(Yt)}else e(Pt.response);it()},q=setInterval(()=>{if(C.closed){const st=`Login failed, ${D&&D!==window.location.origin?`Incorrect app origin, expected ${D}`:"popup was closed"}`,dt=new Error(st);dt.name="PopupClosedError",s(dt),it()}},100);function it(){window.removeEventListener("message",z),clearInterval(q)}window.addEventListener("message",z)})}let M=!1;function $(r){return[...r].join(" ")}class nt{discoveryApi;environment;provider;joinScopesFunc;authRequester;sessionTransform;enableExperimentalRedirectFlow;popupOptions;constructor(e){const{configApi:s,discoveryApi:o,environment:i,provider:c,joinScopes:P=$,oauthRequestApi:C,sessionTransform:D=q=>q,popupOptions:z}=e;!M&&!s&&(console.warn("DEPRECATION WARNING: Authentication providers require a configApi instance to configure the authentication flow. Please provide one to the authentication provider constructor."),M=!0),this.enableExperimentalRedirectFlow=s?s.getOptionalBoolean("enableExperimentalRedirectFlow")??!1:!1,this.authRequester=C.createAuthRequester({provider:c,onAuthRequest:async q=>this.enableExperimentalRedirectFlow?this.executeRedirect(q):this.showPopup(q)}),this.discoveryApi=o,this.environment=i,this.provider=c,this.joinScopesFunc=P,this.sessionTransform=D,this.popupOptions=z}async createSession(e){return e.instantPopup?this.enableExperimentalRedirectFlow?this.executeRedirect(e.scopes):this.showPopup(e.scopes):this.authRequester(e.scopes)}async refreshSession(e){const s=await fetch(await this.buildUrl("/refresh",{optional:!0,...e&&{scope:this.joinScopesFunc(e)}}),{headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(i=>{throw new Error(`Auth refresh request failed, ${i}`)});if(!s.ok){const i=new Error(`Auth refresh request failed, ${s.statusText}`);throw i.status=s.status,i}const o=await s.json();if(o.error){const i=new Error(o.error.message);throw o.error.name&&(i.name=o.error.name),i}return await this.sessionTransform(o)}async removeSession(){const e=await fetch(await this.buildUrl("/logout"),{method:"POST",headers:{"x-requested-with":"XMLHttpRequest"},credentials:"include"}).catch(s=>{throw new Error(`Logout request failed, ${s}`)});if(!e.ok){const s=new Error(`Logout request failed, ${e.statusText}`);throw s.status=e.status,s}}async showPopup(e){const s=this.joinScopesFunc(e),o=await this.buildUrl("/start",{scope:s,origin:window.location.origin,flow:"popup"}),i=this.popupOptions?.size?.fullscreen?window.screen.width:this.popupOptions?.size?.width||450,c=this.popupOptions?.size?.fullscreen?window.screen.height:this.popupOptions?.size?.height||730,P=await Dt({url:o,name:`${this.provider.title} Login`,origin:new URL(o).origin,width:i,height:c});return await this.sessionTransform(P)}async executeRedirect(e){const s=this.joinScopesFunc(e);return window.location.href=await this.buildUrl("/start",{scope:s,origin:window.location.origin,redirectUrl:window.location.href,flow:"redirect"}),new Promise(()=>{})}async buildUrl(e,s){const o=await this.discoveryApi.getBaseUrl("auth"),i=this.buildQueryString({...s,env:this.environment});return`${o}/${this.provider.id}${e}${i}`}buildQueryString(e){if(!e)return"";const s=Object.entries(e).map(([o,i])=>{if(typeof i=="string")return`${encodeURIComponent(o)}=${encodeURIComponent(i)}`;if(i)return encodeURIComponent(o)}).filter(Boolean).join("&");return s?`?${s}`:""}}function ot(r,e){for(const s of e)if(!r.has(s))return!1;return!0}class pt{options;constructor(e){this.options=e}sessionExistsAndHasScope(e,s){if(!e)return!1;if(!s||this.options.sessionScopes===void 0)return!0;const o=this.options.sessionScopes(e);return ot(o,s)}getExtendedScope(e,s){const o=new Set(this.options.defaultScopes);if(e&&this.options.sessionScopes!==void 0){const i=this.options.sessionScopes(e);for(const c of i)o.add(c)}if(s)for(const i of s)o.add(i);return o}}var ut=t(55309),vt;(function(r){r.SignedIn="SignedIn",r.SignedOut="SignedOut"})(vt||(vt={}));const wt=(0,ut.y)({id:"core.auth.google"}),Bt=(0,ut.y)({id:"core.auth.github"}),Ut=(0,ut.y)({id:"core.auth.okta"}),Wt=(0,ut.y)({id:"core.auth.gitlab"}),ie=(0,ut.y)({id:"core.auth.microsoft"}),ce=(0,ut.y)({id:"core.auth.onelogin"}),pe=(0,ut.y)({id:"core.auth.bitbucket"}),Jt=(0,ut.y)({id:"core.auth.bitbucket-server"}),se=(0,ut.y)({id:"core.auth.atlassian"}),Ae=(0,ut.y)({id:"core.auth.vmware-cloud"});class Vt{subject=new H(vt.SignedOut);signedIn=!1;setIsSignedIn(e){this.signedIn!==e&&(this.signedIn=e,this.subject.next(this.signedIn?vt.SignedIn:vt.SignedOut))}sessionState$(){return this.subject}}class qt{connector;helper;sessionScopesFunc;sessionShouldRefreshFunc;stateTracker=new Vt;refreshPromise;currentSession;constructor(e){const{connector:s,defaultScopes:o=new Set,sessionScopes:i,sessionShouldRefresh:c}=e;this.connector=s,this.sessionScopesFunc=i,this.sessionShouldRefreshFunc=c,this.helper=new pt({sessionScopes:i,defaultScopes:o})}async getSession(e){if(this.helper.sessionExistsAndHasScope(this.currentSession,e.scopes)){if(!this.sessionShouldRefreshFunc(this.currentSession))return this.currentSession;try{const o=await this.collapsedSessionRefresh(e.scopes),i=this.sessionScopesFunc(this.currentSession),c=this.sessionScopesFunc(o);return ot(c,i)&&(this.currentSession=o),o}catch(o){if(e.optional)return;throw o}}if(!this.currentSession&&!e.instantPopup)try{const s=await this.collapsedSessionRefresh(e.scopes);return this.currentSession=s,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 s=await this.refreshPromise;return this.stateTracker.setIsSignedIn(!0),s}finally{delete this.refreshPromise}}}const Te={id:"oauth2",title:"Your Identity Provider",icon:()=>null};class Qt{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=Te,oauthRequestApi:P,defaultScopes:C=[],scopeTransform:D=st=>st,popupOptions:z}=e,q=new nt({configApi:s,discoveryApi:o,environment:i,provider:c,oauthRequestApi:P,sessionTransform({backstageIdentity:st,...dt}){const Pt={...dt,providerInfo:{idToken:dt.providerInfo.idToken,accessToken:dt.providerInfo.accessToken,scopes:Qt.normalizeScopes(D,dt.providerInfo.scope),expiresAt:dt.providerInfo.expiresInSeconds?new Date(Date.now()+dt.providerInfo.expiresInSeconds*1e3):void 0}};return st&&(Pt.backstageIdentity={token:st.token,identity:st.identity,expiresAt:st.expiresInSeconds?new Date(Date.now()+st.expiresInSeconds*1e3):void 0}),Pt},popupOptions:z}),it=new qt({connector:q,defaultScopes:new Set(C),sessionScopes:st=>st.providerInfo.scopes,sessionShouldRefresh:st=>{let dt=1/0;return st.providerInfo?.expiresAt&&(dt=Math.min(dt,(st.providerInfo.expiresAt.getTime()-Date.now())/1e3)),st.backstageIdentity?.expiresAt&&(dt=Math.min(dt,(st.backstageIdentity.expiresAt.getTime()-Date.now())/1e3)),dt<60*5}});return new Qt({sessionManager:it,scopeTransform:D})}sessionManager;scopeTransform;constructor(e){this.sessionManager=e.sessionManager,this.scopeTransform=e.scopeTransform}async signIn(){await this.getAccessToken()}async signOut(){await this.sessionManager.removeSession()}sessionState$(){return this.sessionManager.sessionState$()}async getAccessToken(e,s){const o=Qt.normalizeScopes(this.scopeTransform,e);return(await this.sessionManager.getSession({...s,scopes:o}))?.providerInfo.accessToken??""}async getIdToken(e={}){return(await this.sessionManager.getSession({...e,scopes:new Set(["openid"])}))?.providerInfo.idToken??""}async getBackstageIdentity(e={}){return(await this.sessionManager.getSession(e))?.backstageIdentity}async getProfile(e={}){return(await this.sessionManager.getSession(e))?.profile}static normalizeScopes(e,s){if(!s)return new Set;const o=Array.isArray(s)?s:s.split(/[\s|,]/).filter(Boolean);return new Set(e(o))}}const qe={id:"google",title:"Google",icon:()=>null},xe="https://www.googleapis.com/auth/";class De{static create(e){const{configApi:s,discoveryApi:o,oauthRequestApi:i,environment:c="development",provider:P=qe,defaultScopes:C=["openid",`${xe}userinfo.email`,`${xe}userinfo.profile`]}=e;return Qt.create({configApi:s,discoveryApi:o,oauthRequestApi:i,provider:P,environment:c,defaultScopes:C,scopeTransform(D){return D.map(z=>z==="openid"?z:z==="profile"||z==="email"?`${xe}userinfo.${z}`:z.startsWith(xe)?z:`${xe}${z}`)}})}}const Ge={id:"microsoft",title:"Microsoft",icon:()=>null};class ge{oauth2;configApi;environment;provider;oauthRequestApi;discoveryApi;scopeTransform;static MicrosoftGraphID="00000003-0000-0000-c000-000000000000";static create(e){return new ge(e)}constructor(e){const{configApi:s,environment:o="development",provider:i=Ge,oauthRequestApi:c,discoveryApi:P,defaultScopes:C=["openid","offline_access","profile","email","User.Read"],scopeTransform:D=z=>z.concat("offline_access")}=e;this.configApi=s,this.environment=o,this.provider=i,this.oauthRequestApi=c,this.discoveryApi=P,this.scopeTransform=D,this.oauth2={[ge.MicrosoftGraphID]:Qt.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform,defaultScopes:C})}}microsoftGraph(){return this.oauth2[ge.MicrosoftGraphID]}static resourceForScopes(e){const s=[...new Set(e.split(" ").map(ge.resourceForScope).filter(i=>i!=="openid"))];if(s.length>1)return Promise.reject(new Error(`Requested access token with scopes from multiple Azure resources: ${s.join(", ")}. Access tokens can only have a single audience.`));const o=s[0]??ge.MicrosoftGraphID;return Promise.resolve(o)}static resourceForScope(e){const s=e.match(/^(?<resourceURI>.*)\/(?<scp>[^\/]*)$/)?.groups;if(s){const{resourceURI:o}=s;return o.replace(/^api:\/\//,"")}switch(e){case"email":case"openid":case"offline_access":case"profile":return"openid";default:return ge.MicrosoftGraphID}}async getAccessToken(e,s){const o=e===void 0?ge.MicrosoftGraphID:await ge.resourceForScopes(Array.isArray(e)?e.join(" "):e);return o in this.oauth2||(this.oauth2[o]=Qt.create({configApi:this.configApi,discoveryApi:this.discoveryApi,oauthRequestApi:this.oauthRequestApi,provider:this.provider,environment:this.environment,scopeTransform:this.scopeTransform})),this.oauth2[o].getAccessToken(e,s)}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$()}}const Ye={id:"github",title:"GitHub",icon:()=>null};class tn{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=Ye,oauthRequestApi:P,defaultScopes:C=["read:user"]}=e;return Qt.create({configApi:s,discoveryApi:o,oauthRequestApi:P,provider:c,environment:i,defaultScopes:C})}}const an={id:"okta",title:"Okta",icon:()=>null},en=new Set(["openid","profile","email","phone","address","groups","offline_access"]),Le="okta.";class ke{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=an,oauthRequestApi:P,defaultScopes:C=["openid","email","profile","offline_access"]}=e;return Qt.create({configApi:s,discoveryApi:o,oauthRequestApi:P,provider:c,environment:i,defaultScopes:C,scopeTransform(D){return D.map(z=>en.has(z)||z.startsWith(Le)?z:`${Le}${z}`)}})}}const le={id:"gitlab",title:"GitLab",icon:()=>null};class Qe{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=le,oauthRequestApi:P,defaultScopes:C=["read_user"]}=e;return Qt.create({configApi:s,discoveryApi:o,oauthRequestApi:P,provider:c,environment:i,defaultScopes:C})}}const nn={id:"onelogin",title:"onelogin",icon:()=>null},We=new Set(["openid","profile","email","phone","address","groups","offline_access"]),I="onelogin.";class l{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=nn,oauthRequestApi:P}=e;return Qt.create({configApi:s,discoveryApi:o,oauthRequestApi:P,provider:c,environment:i,defaultScopes:["openid","email","profile","offline_access"],scopeTransform(C){return C.map(D=>We.has(D)||D.startsWith(I)?D:`${I}${D}`)}})}}const E={id:"bitbucket",title:"Bitbucket",icon:()=>null};class U{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=E,oauthRequestApi:P,defaultScopes:C=["account"]}=e;return Qt.create({configApi:s,discoveryApi:o,oauthRequestApi:P,provider:c,environment:i,defaultScopes:C})}}const et={id:"bitbucketServer",title:"Bitbucket Server",icon:()=>null};class at{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=et,oauthRequestApi:P,defaultScopes:C=["PROJECT_ADMIN"]}=e;return Qt.create({configApi:s,discoveryApi:o,oauthRequestApi:P,provider:c,environment:i,defaultScopes:C})}}const ft={id:"atlassian",title:"Atlassian",icon:()=>null};class Kt{static create(e){const{configApi:s,discoveryApi:o,environment:i="development",provider:c=ft,oauthRequestApi:P}=e;return Qt.create({configApi:s,discoveryApi:o,oauthRequestApi:P,provider:c,environment:i})}}const Gt={id:"vmwareCloudServices",title:"VMware Cloud",icon:()=>null};class Xt{static create(e){const{configApi:s,discoveryApi:o,oauthRequestApi:i,environment:c="development",provider:P=Gt,defaultScopes:C=["openid"]}=e;return Qt.create({configApi:s,discoveryApi:o,oauthRequestApi:i,provider:P,environment:c,defaultScopes:C})}}var Lt=t(12935),_t=t(57405),Nt=t(65461),fe=t(36017),Be=t(99303),Pe=t(39837);const Ke=(0,ut.y)({id:"core.storage"});var oe=t(70795),re=t(16009);const Me=(0,ut.y)({id:"core.oauthrequest"});var qn=t(96824),Ze=t(70835),ts=t(10288),mn=t.n(ts),wn=t(52964),Zt=t(46195),sn=t(54241);const yn=Zt.z.lazy(()=>Zt.z.object({rule:Zt.z.string(),resourceType:Zt.z.string(),params:Zt.z.record(Zt.z.any()).optional()}).or(Zt.z.object({anyOf:Zt.z.array(yn).nonempty()})).or(Zt.z.object({allOf:Zt.z.array(yn).nonempty()})).or(Zt.z.object({not:yn}))),es=Zt.z.object({result:Zt.z.literal(sn.b.ALLOW).or(Zt.z.literal(sn.b.DENY))}),ns=Zt.z.union([Zt.z.object({result:Zt.z.literal(sn.b.ALLOW).or(Zt.z.literal(sn.b.DENY))}),Zt.z.object({result:Zt.z.literal(sn.b.CONDITIONAL),pluginId:Zt.z.string(),resourceType:Zt.z.string(),conditions:yn})]),ss=(r,e)=>Zt.z.object({items:Zt.z.array(Zt.z.intersection(Zt.z.object({id:Zt.z.string()}),r)).refine(s=>s.length===e.size&&s.every(({id:o})=>e.has(o)),{message:"Items in response do not match request"})});class rs{enabled;discovery;constructor(e){this.discovery=e.discovery,this.enabled=e.config.getOptionalBoolean("permission.enabled")??!1}async authorize(e,s){return this.makeRequest(e,es,s)}async authorizeConditional(e,s){return this.makeRequest(e,ns,s)}async makeRequest(e,s,o){if(!this.enabled)return e.map(q=>({result:sn.b.ALLOW}));const i={items:e.map(q=>({id:wn.A(),...q}))},c=await this.discovery.getBaseUrl("permission"),P=await mn()(`${c}/authorize`,{method:"POST",body:JSON.stringify(i),headers:{...this.getAuthorizationHeader(o?.token),"content-type":"application/json"}});if(!P.ok)throw await Ze.o.fromResponse(P);const C=await P.json(),z=ss(s,new Set(i.items.map(({id:q})=>q))).parse(C).items.reduce((q,it)=>(q[it.id]=it,q),{});return i.items.map(q=>z[q.id])}getAuthorizationHeader(e){return e?{Authorization:`Bearer ${e}`}:{}}}class cn{permissionClient;identityApi;constructor(e,s){this.permissionClient=e,this.identityApi=s}static create(e){const{config:s,discovery:o,identity:i}=e,c=new rs({discovery:o,config:s});return new cn(c,i)}async authorize(e){return(await this.permissionClient.authorize([e],await this.identityApi.getCredentials()))[0]}}const os=[(0,Lt.b)({api:_t.I,deps:{configApi:Nt.U},factory:({configApi:r})=>Y.compile(`${r.getString("backend.baseUrl")}/api/{{ pluginId }}`)}),(0,Lt.b)({api:fe.k,deps:{},factory:()=>new Z}),(0,Lt.b)({api:Be.c,deps:{},factory:()=>new V}),(0,Lt.b)({api:Pe.m,deps:{alertApi:fe.k},factory:({alertApi:r})=>{const e=new tt(r,new _);return ct.forward(e,{hidden:!1}),e}}),(0,Lt.b)({api:Ke,deps:{errorApi:Pe.m},factory:({errorApi:r})=>mt.create({errorApi:r})}),(0,Lt.b)({api:oe.a,deps:{configApi:Nt.U,identityApi:re.K,discoveryApi:_t.I},factory:({configApi:r,identityApi:e,discoveryApi:s})=>Et({middleware:[bt.resolvePluginProtocol({discoveryApi:s}),bt.injectIdentityAuth({identityApi:e,config:r})]})}),(0,Lt.b)({api:Me,deps:{},factory:()=>new gt}),(0,Lt.b)({api:wt,deps:{discoveryApi:_t.I,oauthRequestApi:Me,configApi:Nt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>De.create({configApi:s,discoveryApi:r,oauthRequestApi:e,environment:s.getOptionalString("auth.environment")})}),(0,Lt.b)({api:ie,deps:{discoveryApi:_t.I,oauthRequestApi:Me,configApi:Nt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>ge.create({configApi:s,discoveryApi:r,oauthRequestApi:e,environment:s.getOptionalString("auth.environment")})}),(0,Lt.b)({api:Bt,deps:{discoveryApi:_t.I,oauthRequestApi:Me,configApi:Nt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>tn.create({configApi:s,discoveryApi:r,oauthRequestApi:e,defaultScopes:["read:user"],environment:s.getOptionalString("auth.environment")})}),(0,Lt.b)({api:Ut,deps:{discoveryApi:_t.I,oauthRequestApi:Me,configApi:Nt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>ke.create({configApi:s,discoveryApi:r,oauthRequestApi:e,environment:s.getOptionalString("auth.environment")})}),(0,Lt.b)({api:Wt,deps:{discoveryApi:_t.I,oauthRequestApi:Me,configApi:Nt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>Qe.create({configApi:s,discoveryApi:r,oauthRequestApi:e,environment:s.getOptionalString("auth.environment")})}),(0,Lt.b)({api:ce,deps:{discoveryApi:_t.I,oauthRequestApi:Me,configApi:Nt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>l.create({configApi:s,discoveryApi:r,oauthRequestApi:e,environment:s.getOptionalString("auth.environment")})}),(0,Lt.b)({api:pe,deps:{discoveryApi:_t.I,oauthRequestApi:Me,configApi:Nt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>U.create({configApi:s,discoveryApi:r,oauthRequestApi:e,defaultScopes:["account"],environment:s.getOptionalString("auth.environment")})}),(0,Lt.b)({api:Jt,deps:{discoveryApi:_t.I,oauthRequestApi:Me,configApi:Nt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>at.create({configApi:s,discoveryApi:r,oauthRequestApi:e,defaultScopes:["REPO_READ"]})}),(0,Lt.b)({api:se,deps:{discoveryApi:_t.I,oauthRequestApi:Me,configApi:Nt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>Kt.create({configApi:s,discoveryApi:r,oauthRequestApi:e,environment:s.getOptionalString("auth.environment")})}),(0,Lt.b)({api:Ae,deps:{discoveryApi:_t.I,oauthRequestApi:Me,configApi:Nt.U},factory:({discoveryApi:r,oauthRequestApi:e,configApi:s})=>Xt.create({configApi:s,discoveryApi:r,oauthRequestApi:e,environment:s.getOptionalString("auth.environment")})}),(0,Lt.b)({api:qn.x,deps:{discovery:_t.I,identity:re.K,config:Nt.U},factory:({config:r,discovery:e,identity:s})=>cn.create({config:r,discovery:e,identity:s})})];var In=t(14451),as=t(27799),vn=t(94389),is=t(20947),Dn=t(20473),ln=t(45917),cs=t(39347),ls=t(63309),ds=t(82451),us=t(85121),Ln=t(17400),hs=t(42226),ps=t(69550),Mn=t(52755),jn=t(89350),gs=t(8911),En=t(33602),An=t(48108),fs=t(77225),Bn=t(55700),Un=t(71865),ms=t(80109),ys=t(15303);const vs={brokenImage:as.A,catalog:gs.A,scaffolder:is.A,techdocs:Dn.A,search:ln.A,chat:cs.A,dashboard:ls.A,docs:ds.A,email:us.A,github:hs.A,group:En.A,help:ps.A,"kind:api":Ln.A,"kind:component":jn.A,"kind:domain":In.A,"kind:group":En.A,"kind:location":Mn.A,"kind:system":vn.A,"kind:user":An.A,"kind:resource":Bn.A,"kind:template":Un.A,user:An.A,warning:fs.A,star:ms.A,unstarred:ys.A};var Es=t(58733),As=t(55288),xs=t(91360),Cs=t(50868),bs=t(12285),$n=t(87271),Ss=t(64636);Ss.A.configure(r=>`v5-${r}`);const Os=(0,As.A)({productionPrefix:"jss4-"});function Fn(r){const{children:e,theme:s,noCssBaseline:o=!1}=r,i=s.getTheme("v4"),c=s.getTheme("v5");let P;o||(P=(0,a.jsx)(Es.Ay,{}));let C=(0,a.jsxs)(a.Fragment,{children:[P,e]});return i&&(C=(0,a.jsx)(xs.Ay,{generateClassName:Os,children:(0,a.jsx)(Cs.A,{theme:i,children:C})})),c&&(C=(0,a.jsx)(bs.A,{injectFirst:!0,children:(0,a.jsx)($n.A,{theme:c,children:C})})),C}const Nn={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 xn=t(98392),Ts=t(17161);const Re={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")`},Ue={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 $e(r){const{colors:e,shape:s,options:o}=r,c=`linear-gradient(90deg, ${(e.length===1?[e[0],e[0]]:e).join(", ")})`,P=`${s}, ${c}`,C=o?.fontColor??"#FFFFFF";return{colors:e,shape:s,backgroundImage:P,fontColor:C}}const Ps={home:$e({colors:Ue.teal,shape:Re.wave}),documentation:$e({colors:Ue.pinkSea,shape:Re.wave2}),tool:$e({colors:Ue.purpleSky,shape:Re.round}),service:$e({colors:Ue.marineBlue,shape:Re.wave}),website:$e({colors:Ue.veryBlue,shape:Re.wave}),library:$e({colors:Ue.rubyRed,shape:Re.wave}),other:$e({colors:Ue.darkGrey,shape:Re.wave}),app:$e({colors:Ue.toastyOrange,shape:Re.wave}),apis:$e({colors:Ue.teal,shape:Re.wave2}),card:$e({colors:Ue.greens,shape:Re.wave})},Rs=16,f='"Helvetica Neue", Helvetica, Roboto, Arial, sans-serif',w="home",B={htmlFontSize:Rs,fontFamily:f,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 F(r){const{palette:e,htmlFontSize:s=Rs,fontFamily:o=f,defaultPageTheme:i=w,pageTheme:c=Ps,typography:P}=r;if(!c[i])throw new Error(`${i} is not defined in pageTheme.`);return B.htmlFontSize=s,B.fontFamily=o,{palette:e,typography:P??B,page:c[i],getPageTheme:({themeId:C})=>c[C]??c[i]}}var N=t(80012);const J={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,"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:r.palette.background.paper,width:"1em"},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:r.palette.textVerySubtle,border:`3px solid ${r.palette.background.paper}`},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:r.palette.mode==="dark"?(0,N.a)(r.palette.textVerySubtle,.2):(0,N.e$)(r.palette.textVerySubtle,.2)},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:r.palette.mode==="dark"?(0,N.a)(r.palette.textVerySubtle,.2):(0,N.e$)(r.palette.textVerySubtle,.2)}},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,N.e$)(r.palette.link,.3),background:(0,N.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"}}}},rt=r=>(...e)=>{const s=e.length===0?[1]:e,o=(i,c)=>typeof i=="string"?i:c*i;return s.map(i=>{const c=o(i,r);return typeof c=="number"?`${c}px`:c}).join(" ")};function St(r,e){if(!e||typeof e=="string")return;const s=typeof e=="function"?e(r):e;if(s)return{"@global":s}}function Ot(r,e){if(!(!e||typeof e=="string")){if(typeof e=="object"){const s={...r},o=r.spacing(1);return typeof o=="number"&&(s.spacing=rt(o)),Object.fromEntries(Object.entries(e).map(([i,c])=>typeof c=="function"?[i,c({theme:s})]:[i,c]))}return e}}const Mt=/^&.Mui-([\w-]+)$/;function Rt(r){let e=r;if(!r||typeof r!="object")return e;for(const s of Object.keys(r)){const o=r[s];if(!(!o||typeof o!="object"))for(const i of Object.keys(o)){const c=i,P=c.match(Mt);if(P){const[,C]=P,{[c]:D,...z}=o;D&&(e={...e,[s]:z,[C]:D})}}}return e}function $t(r,e={}){const s={},o={};for(const i of Object.keys(e)){const c=e[i];c&&("styleOverrides"in c&&(i==="MuiCssBaseline"?s[i]=St(r,c.styleOverrides):s[i]=Rt(Ot(r,c.styleOverrides))),"defaultProps"in c&&(o[i]=c.defaultProps))}return{overrides:s,props:o}}class jt{#t=new Map;constructor(e,s){this.#t=new Map,e&&this.#t.set("v4",e),s&&this.#t.set("v5",s)}getTheme(e){return this.#t.get(e)}}function de(r){const e=F(r),s={...J,...r.components},o=(0,Ts.A)({...e,components:s}),i=$t(o,s),c={...(0,xn.A)(e),...i};return new jt(c,o)}function ue(r){const e=adaptV4Theme(r),s=createTheme(r);return new jt(s,createV5Theme(e))}const kt={light:de({palette:Nn.light}),dark:de({palette:Nn.dark})};var me=t(75962),te=t(87145);const ae=[{id:"light",title:"Light Theme",variant:"light",icon:(0,a.jsx)(te.A,{}),Provider:({children:r})=>(0,a.jsx)(Fn,{theme:kt.light,children:r})},{id:"dark",title:"Dark Theme",variant:"dark",icon:(0,a.jsx)(me.A,{}),Provider:({children:r})=>(0,a.jsx)(Fn,{theme:kt.dark,children:r})}];var Ft=t(73466),ee=t(39067),ne=t.n(ee);class Fe{holders;constructor(...e){this.holders=e}get(e){for(const s of this.holders){const o=s.get(e);if(o)return o}}}var Ce=t(43836),ze=t(10602);const Je=(0,Ce.tK)("api-context"),Xe=r=>{const{apis:e,children:s}=r,o=(0,d.useContext)(Je)?.atVersion(1),i=o?new Fe(e,o):e;return(0,a.jsx)(Je.Provider,{value:(0,ze.B)({1:i}),children:s})};Xe.propTypes={apis:ne().shape({get:ne().func.isRequired}).isRequired,children:ne().node};const kn=/^[a-z][a-z0-9]*(?:[-_][a-z][a-z0-9]*)*$/i;function he(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function ws(r){return typeof r!="object"||r===null?r:Array.isArray(r)?r.map(ws):Object.fromEntries(Object.entries(r).map(([e,s])=>[e,ws(s)]))}function Cn(r,e){if(r===null)return;if(r===void 0)return e===void 0?void 0:Cn(e);if(typeof r!="object"||Array.isArray(r))return r;const s=he(e)?e:{},o={};for(const i of new Set([...Object.keys(r),...Object.keys(s)])){const c=Cn(r[i],s[i]);c!==void 0&&(o[i]=c)}return o}function Is(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,s,o){return`Invalid type in config for key '${r}' in '${e}', got ${s}, wanted ${o}`},missing(r,e){return`Missing required config value at '${r}' in '${e}'`},convert(r,e,s){return`Unable to convert config value for key '${r}' in '${e}' to a ${s}`}};class dn{data;context;fallback;prefix;filteredKeys;notifiedFilteredKeys;static fromConfigs(e){return e.length===0?new dn(void 0):e.reduce((s,{data:o,context:i,filteredKeys:c,deprecatedKeys:P})=>{const C=new dn(o,i,s);if(C.filteredKeys=c,P)for(const{key:D,description:z}of P)console.warn(`The configuration key '${D}' of ${i} is deprecated and may be removed soon. ${z||""}`);return C},void 0)}constructor(e,s="mock-config",o,i=""){this.data=e,this.context=s,this.fallback=o,this.prefix=i,this.notifiedFilteredKeys=new Set}has(e){const s=this.readValue(e);return s===null?!1:s!==void 0?!0:this.fallback?.has(e)??!1}keys(){const e=this.data?Object.keys(this.data):[],s=this.fallback?.keys()??[];return[...new Set([...e,...s])].filter(o=>this.data?.[o]!==null)}get(e){const s=this.getOptional(e);if(s===void 0)throw new Error(Ne.missing(this.fullKey(e??""),this.context));return s}getOptional(e){const s=ws(this.readValue(e)),o=this.fallback?.getOptional(e);if(s!==null)return s===void 0?Cn(o):o===void 0?Cn(s):Cn(s,o)}getConfig(e){const s=this.getOptionalConfig(e);if(s===void 0)throw new Error(Ne.missing(this.fullKey(e),this.context));return s}getOptionalConfig(e){const s=this.readValue(e),o=this.fallback?.getOptionalConfig(e);if(he(s))return this.copy(s,e,o);if(s!==null){if(s!==void 0)throw new TypeError(Ne.type(this.fullKey(e),this.context,Is(s),"object"));return o}}getConfigArray(e){const s=this.getOptionalConfigArray(e);if(s===void 0)throw new Error(Ne.missing(this.fullKey(e),this.context));return s}getOptionalConfigArray(e){const s=this.readConfigValue(e,o=>{if(!Array.isArray(o))return{expected:"object-array"};for(const[i,c]of o.entries())if(!he(c))return{expected:"object-array",value:c,key:`${e}[${i}]`};return!0});if(s)return s.map((o,i)=>this.copy(o,`${e}[${i}]`))}getNumber(e){const s=this.getOptionalNumber(e);if(s===void 0)throw new Error(Ne.missing(this.fullKey(e),this.context));return s}getOptionalNumber(e){const s=this.readConfigValue(e,i=>typeof i=="number"||typeof i=="string"||{expected:"number"});if(typeof s=="number"||s===void 0)return s;const o=Number(s);if(!Number.isFinite(o))throw new Error(Ne.convert(this.fullKey(e),this.context,"number"));return o}getBoolean(e){const s=this.getOptionalBoolean(e);if(s===void 0)throw new Error(Ne.missing(this.fullKey(e),this.context));return s}getOptionalBoolean(e){const s=this.readConfigValue(e,i=>typeof i=="boolean"||typeof i=="number"||typeof i=="string"||{expected:"boolean"});if(typeof s=="boolean"||s===void 0)return s;const o=String(s).trim();if(/^(?:y|yes|true|1|on)$/i.test(o))return!0;if(/^(?:n|no|false|0|off)$/i.test(o))return!1;throw new Error(Ne.convert(this.fullKey(e),this.context,"boolean"))}getString(e){const s=this.getOptionalString(e);if(s===void 0)throw new Error(Ne.missing(this.fullKey(e),this.context));return s}getOptionalString(e){return this.readConfigValue(e,s=>typeof s=="string"&&s!==""||{expected:"string"})}getStringArray(e){const s=this.getOptionalStringArray(e);if(s===void 0)throw new Error(Ne.missing(this.fullKey(e),this.context));return s}getOptionalStringArray(e){return this.readConfigValue(e,s=>{if(!Array.isArray(s))return{expected:"string-array"};for(const[o,i]of s.entries())if(typeof i!="string"||i==="")return{expected:"string-array",value:i,key:`${e}[${o}]`};return!0})}fullKey(e){return`${this.prefix}${this.prefix?".":""}${e}`}copy(e,s,o){const i=new dn(e,this.context,o,this.fullKey(s));return i.filteredKeys=this.filteredKeys,i}readConfigValue(e,s){const o=this.readValue(e);if(o===void 0)return this.fallback?.readConfigValue(e,s);if(o===null)return;const i=s(o);if(i!==!0){const{key:c=e,value:P=o,expected:C}=i;throw new TypeError(Ne.type(this.fullKey(c),this.context,Is(P),C))}return o}readValue(e){const s=e?e.split("."):[];for(const i of s)if(!kn.test(i))throw new TypeError(`Invalid config key '${e}'`);if(this.data===void 0)return;let o=this.data;for(const[i,c]of s.entries())if(he(o))o=o[c];else if(o!=null){const P=this.fullKey(s.slice(0,i).join("."));throw new TypeError(Ne.type(P,this.context,Is(o),"object"))}return o}}const bn="theme";class Wn{themes;static createWithStorage(e){const s=new Wn(e);if(!window.localStorage)return s;const o=window.localStorage.getItem(bn)??void 0;return s.setActiveThemeId(o),s.activeThemeId$().subscribe(i=>{i?window.localStorage.setItem(bn,i):window.localStorage.removeItem(bn)}),window.addEventListener("storage",i=>{if(i.key===bn){const c=localStorage.getItem(bn)??void 0;s.setActiveThemeId(c)}}),s}activeThemeId;subject;constructor(e){this.themes=e,this.subject=new H(void 0)}getInstalledThemes(){return this.themes.slice()}activeThemeId$(){return this.subject}getActiveThemeId(){return this.activeThemeId}setActiveThemeId(e){this.activeThemeId=e,this.subject.next(e)}}var un=t(63636);function Ks(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 Fr{registeredFeatureFlags=[];flags;registerFlag(e){Ks(e.name),this.registeredFeatureFlags.push(e)}getRegisteredFlags(){return this.registeredFeatureFlags.slice()}isActive(e){return this.flags||(this.flags=this.load()),this.flags.get(e)===un.S.Active}save(e){this.flags||(this.flags=this.load()),e.merge||this.flags.clear();for(const[o,i]of Object.entries(e.states))this.flags.set(o,i);const s=Array.from(this.flags.entries()).filter(([,o])=>o===un.S.Active);window.localStorage.setItem("featureFlags",JSON.stringify(Object.fromEntries(s)))}load(){try{const e=window.localStorage.getItem("featureFlags");if(!e)return new Map;const s=JSON.parse(e);if(typeof s!="object"||s===null||Array.isArray(s))return new Map;const o=Object.entries(s).filter(([i,c])=>(Ks(i),c===un.S.Active));return new Map(o)}catch{return new Map}}}const Kn=(0,ut.y)({id:"core.apptheme"}),zs=(0,ut.y)({id:"core.applanguage"});var Nr=t(56038),Ds;(function(r){r[r.default=10]="default",r[r.app=50]="app",r[r.static=100]="static"})(Ds||(Ds={}));class kr{factories=new Map;register(e,s){const o=Ds[e],i=this.factories.get(s.api.id);return i&&i.priority>=o?!1:(this.factories.set(s.api.id,{priority:o,factory:s}),!0)}get(e){const s=this.factories.get(e.id);if(s)return s.factory}getAllApis(){const e=new Set;for(const{factory:s}of this.factories.values())e.add(s.api);return e}}class Ls{factories;static validateFactories(e,s){for(const o of s){const i=[o],c=new Set;for(;i.length;){const P=i.shift(),C=e.get(P);if(C)for(const D of Object.values(C.deps)){if(D.id===o.id)throw new Error(`Circular dependency of api factory for ${o}`);c.has(D)||(c.add(D),i.push(D))}}}}apis;constructor(e){this.factories=e,this.apis=new Map}get(e){return this.load(e)}load(e,s=[]){const o=this.apis.get(e.id);if(o)return o;const i=this.factories.get(e);if(!i)return;if(s.includes(i.api))throw new Error(`Circular dependency of api factory for ${i.api}`);const c=this.loadDeps(e,i.deps,[...s,i.api]),P=i.factory(c);return this.apis.set(e.id,P),P}loadDeps(e,s,o){const i={};for(const c in s)if(s.hasOwnProperty(c)){const P=s[c],C=this.load(P,o);if(!C)throw new Error(`No API factory available for dependency ${P} of dependent ${e}`);i[c]=C}return i}}function Wr(r){const e={};for(const o in r.collectors)r.collectors.hasOwnProperty(o)&&(e[o]=r.collectors[o]());const s=[{node:d.Children.toArray(r.root),parent:void 0,contexts:{}}];for(;s.length!==0;){const{node:o,parent:i,contexts:c}=s.shift();d.Children.forEach(o,P=>{if(!(0,d.isValidElement)(P))return;const C={};for(const D in e)if(e.hasOwnProperty(D)){const z=e[D];C[D]=z.visit(z.accumulator,P,i,c[D])}for(const D of r.discoverers){const z=D(P);z&&s.push({node:z,parent:P,contexts:C})}})}return Object.fromEntries(Object.entries(e).map(([o,i])=>[o,i.accumulator]))}function zn(r,e){return()=>({accumulator:r(),visit:e})}function Kr(r){return r.props?.children}function zr(r){if(r.props?.path&&r.props?.element)return r.props?.element}var be=t(19402);const Hr=zn(()=>new Set,(r,e)=>{const s=(0,be.E)(e,"core.plugin");s&&r.add(s)});var Sn=t(72427);const Hs=r=>{const{children:e}=r,s=(0,Sn.gf)(un.B),o="with"in r?s.isActive(r.with):!s.isActive(r.without);return(0,a.jsx)(a.Fragment,{children:o?e:null})};(0,be.h)(Hs,"core.featureFlagged",!0);const Hn={caseSensitive:!1,path:"*",element:"match-all",routeRefs:new Set,plugins:new Set};function Vn(r){const e=r;return e?.type?e.type.displayName??e.type.name??String(e.type):String(e)}const Vs=r=>{const e=new Set;return r&&e.add(r),e};function Gs(r,e=new Array){return d.Children.forEach(r,s=>{if(!(0,d.isValidElement)(s))return;const o=(0,be.E)(s,"core.mountPoint");if(o){const i=(0,be.E)(s,"core.plugin");e.push({routeRef:o,plugin:i})}Gs(s.props.children,e)}),e}const Vr=zn(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,s,o)=>{if(o?.isElementAncestor)return o;if(s?.props.element===e)return{...o,isElementAncestor:!0};const i=e.props?.path,c=(0,be.E)(e,"core.mountPoint");if(c&&i)throw new Error(`Path property may not be set directly on a routable extension "${Vn(e)}"`);const P=o?.obj?.children??r.objects;if(i!==void 0){if(typeof i!="string")throw new Error(`Element path must be a string at "${Vn(e)}"`);const C=i.startsWith("/")?i.slice(1):i,D=e.props.element;if((0,be.E)(e,"core.gatherMountPoints")){if(D)throw new Error(`Mount point gatherers may not have an element prop "${Vn(e)}"`);const z={path:C,element:"gathered",routeRefs:new Set,caseSensitive:!!e.props?.caseSensitive,children:[Hn],plugins:new Set};return P.push(z),{obj:z,gatherPath:C,routeRef:o?.routeRef,gatherRouteRef:o?.routeRef}}if(D){const[z,...q]=Gs(D);if(q.length>0)throw new Error(`Route element with path "${i}" may not contain multiple routable extensions`);if(!z)return o;const{routeRef:it,plugin:st}=z,dt={path:C,element:"mounted",routeRefs:new Set([it]),caseSensitive:!!e.props?.caseSensitive,children:[Hn],plugins:Vs(st)};return P.push(dt),r.paths.set(it,C),r.parents.set(it,o?.routeRef),{obj:dt,routeRef:it??o?.routeRef,gatherPath:C,gatherRouteRef:o?.gatherRouteRef}}}if(c){if(o?.gatherPath===void 0)throw new Error(`Routable extension "${Vn(e)}" with mount point "${c}" must be assigned a path`);o?.obj?.routeRefs.add(c);const C=(0,be.E)(e,"core.plugin");return C&&o?.obj?.plugins.add(C),r.paths.set(c,o.gatherPath),r.parents.set(c,o?.gatherRouteRef),{...o,routeRef:c}}return o}),Gr=zn(()=>({paths:new Map,parents:new Map,objects:new Array}),(r,e,s,o)=>{if(s?.props.element===e)return o;let i=o?.obj,c=o?.routeRef,P=o?.sticky;const C=e.props?.path,D=i?.children??r.objects,z=!!e.props?.caseSensitive;let q=o?.path;if((0,be.E)(e,"core.gatherMountPoints")){if(!C)throw new Error("Mount point gatherer must have a path");q=C}const it=e.props?.element;let st=(0,be.E)(e,"core.mountPoint");if(!st&&(0,d.isValidElement)(it)&&(st=(0,be.E)(it,"core.mountPoint")),st){let Pt=C;if(q&&(Pt?q=void 0:Pt=q),!Pt)throw new Error("Mounted routable extension must have a path");r.paths.set(st,Pt),c&&P?(r.parents.set(st,c),C&&(c=st,P=!1)):(r.parents.set(st,c),c=st),C?(i={caseSensitive:z,path:C,element:"mounted",routeRefs:new Set([st]),children:[Hn],plugins:Vs((0,be.E)(e.props.element,"core.plugin"))},D.push(i)):i?.routeRefs.add(st)}if((0,be.E)(e,"core.gatherMountPoints")&&(P=!0),(0,be.E)(e,"core.gatherMountPoints")){if(!C)throw new Error("Mount point gatherer must have a path");st||(i={caseSensitive:z,path:C,element:"gathered",routeRefs:new Set,children:[Hn],plugins:o?.obj?.plugins||new Set},D.push(i))}return{obj:i,path:q,routeRef:c,sticky:P}}),Yr=zn(()=>new Set,(r,e)=>{if(e.type===Hs){const s=e.props;r.add("with"in s?s.with:s.without)}});var On=t(74808),Qr=t(63544);const Tn=(0,Qr.Q)("route-ref-type",()=>Symbol("route-ref-type"));function Ys(r){return r[Tn]==="absolute"}function Qs(r){return r[Tn]==="sub"}function Zr(r){return r[Tn]==="external"}function Gn(...r){const e=r.join("/").replace(/\/\/+/g,"/");return e!=="/"&&e.endsWith("/")?e.slice(0,-1):e}var Jr=t(46155),Xr=t.n(Jr);function _r(r,e,s){let o,i="";if(Ys(r))o=r;else if(Qs(r))o=r.parent,i=r.path;else if(Zr(r)){const C=s.get(r);if(!C)return[void 0,""];if(Ys(C))o=C;else if(Qs(C))o=C.parent,i=C.path;else throw new Error(`ExternalRouteRef was bound to invalid target, ${C}`)}else throw r[Tn]?new Error(`Unknown or invalid route ref type, ${r[Tn]}`):new Error(`Unknown object passed to useRouteRef, got ${r}`);if(!o)return[void 0,""];const c=e.get(o);if(c===void 0)return[void 0,""];const P=Gn(c,i);return[o,P]}function qr(r,e,s,o,i){const c=(0,On.ue)(i,e)??[],P=Array();let C=-1;for(let q=r;q&&(C=c.findIndex(it=>it.route.routeRefs.has(q)),C===-1);q=o.get(q))P.unshift(q);P.length===0&&(C-=1);const D=C===-1?"":c[C].pathname,z=P.slice(0,-1).map(q=>{const it=s.get(q);if(it===void 0)throw new Error(`No path for ${q}`);if(it.includes(":"))throw new Error(`Cannot route to ${r} with parent ${q} as it has parameters`);return it});return`${Gn(D,...z)}/`}class to{routePaths;routeParents;routeObjects;routeBindings;appBasePath;constructor(e,s,o,i,c){this.routePaths=e,this.routeParents=s,this.routeObjects=o,this.routeBindings=i,this.appBasePath=c}resolve(e,s){const[o,i]=_r(e,this.routePaths,this.routeBindings);if(!o)return;let c;typeof s=="string"?c=this.trimPath(s):s.pathname?c={...s,pathname:this.trimPath(s.pathname)}:c=s;const P=this.appBasePath+qr(o,c,this.routePaths,this.routeParents,this.routeObjects);return(...[D])=>{const z=D&&Xr()(D,q=>typeof q=="string"?q.replaceAll(/[&?#;\/]/g,it=>encodeURIComponent(it)):q);return Gn(P,(0,On.tW)(i,z))}}trimPath(e){return e&&(e.startsWith(this.appBasePath)?e.slice(this.appBasePath.length):e)}}const eo=(0,Ce.tK)("routing-context"),no=({routePaths:r,routeParents:e,routeObjects:s,routeBindings:o,basePath:i="",children:c})=>{const P=new to(r,e,s,o,i),C=(0,ze.B)({1:P});return(0,a.jsx)(eo.Provider,{value:C,children:c})};function so(r,e){const s=new Set(e.values());s.delete(void 0);for(const o of e.keys()){if(s.has(o))continue;let i=o,c="";for(;i;){const C=r.get(i);if(C===void 0)throw new Error(`No path for ${i}`);c=Gn(C,c),i=e.get(i)}const P=c.match(/:(\w+)/g);if(P){for(let C=0;C<P.length;C++)for(let D=C+1;D<P.length;D++)if(P[D]===P[C])throw new Error(`Parameter ${P[D]} is duplicated in path ${c}`)}}}function ro(r,e){for(const s of e)if(s.externalRoutes){for(const[o,i]of Object.entries(s.externalRoutes))if(!i.optional&&!r.has(i))throw new Error(`External route '${o}' of the '${s.getId()}' plugin must be bound to a target route. See https://backstage.io/link?bind-routes for details.`)}}const oo=(0,Ce.tK)("app-context"),ao=({appContext:r,children:e})=>{const s=(0,ze.B)({1:r});return(0,a.jsx)(oo.Provider,{value:s,children:e})},Zs="app",io=`${Zs}-auth-cookie-expires-at`,co=5*6e4,Js=5e3,lo=2,uo=5*6e4;function ho({discoveryApi:r,fetchApi:e,errorApi:s}){let o=!1,i,c=!0,P=Js;const C="BroadcastChannel"in window?new BroadcastChannel(io):void 0,D=st=>{const dt=(1+3*Math.random())*6e4;return Math.max(st-Date.now(),co)-dt},z=async()=>{try{const dt=`${await r.getBaseUrl(Zs)}/.backstage/auth/v1/cookie`,Pt=await e.fetch(dt,{credentials:"include"});if(!Pt.ok)throw new Error(`Request failed with status ${Pt.status} ${Pt.statusText}, see request towards ${dt} for more details`);const Yt=await Pt.json();if(!Yt.expiresAt)throw new Error("No expiration date in response");const Oe=Date.parse(Yt.expiresAt);if(Number.isNaN(Oe))throw new Error("Invalid expiration date in response");c=!0,C?.postMessage({action:"COOKIE_REFRESH_SUCCESS",payload:{expiresAt:new Date(Oe).toISOString()}}),it(D(Oe))}catch(st){c?(c=!1,P=Js):(P=Math.min(uo,P*lo),console.error("Session cookie refresh failed",st),s.post(new Error("Session refresh failed, see developer console for details"))),it(P)}},q=st=>{const{data:dt}=st;if(!(dt===null||typeof dt!="object")&&"action"in dt&&dt.action==="COOKIE_REFRESH_SUCCESS"){const Pt=Date.parse(dt.payload.expiresAt);if(Number.isNaN(Pt)){console.warn("Received invalid expiration from session refresh channel");return}it(D(Pt))}};function it(st){o||(i&&clearTimeout(i),i=setTimeout(z,st))}return C?.addEventListener("message",q),z(),()=>{o=!0,i&&clearTimeout(i),C?.removeEventListener("message",q),C?.close()}}function Xs(r){return new Error(`Tried to access IdentityApi ${r} before app was loaded`)}function Ms(r){console.warn(`WARNING: Call to ${r} is deprecated and will break in the future`)}class po{target;waitForTarget;resolveTarget=()=>{};signOutTargetUrl="/";#t;constructor(){this.waitForTarget=new Promise(e=>{this.resolveTarget=e})}setTarget(e,s){this.target=e,this.signOutTargetUrl=s.signOutTargetUrl,this.resolveTarget(e)}getUserId(){if(!this.target)throw Xs("getUserId");if(!this.target.getUserId)throw new Error("IdentityApi does not implement getUserId");return Ms("getUserId"),this.target.getUserId()}getProfile(){if(!this.target)throw Xs("getProfile");if(!this.target.getProfile)throw new Error("IdentityApi does not implement getProfile");return Ms("getProfile"),this.target.getProfile()}async getProfileInfo(){return this.waitForTarget.then(e=>e.getProfileInfo())}async getBackstageIdentity(){const e=await this.waitForTarget.then(s=>s.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 Ms("getIdToken"),e.getIdToken()})}async signOut(){await this.waitForTarget.then(e=>e.signOut()),await this.#t?.(),window.location.href=this.signOutTargetUrl}enableCookieAuth(e){if(this.#t)return;const s=ho(e);this.#t=async()=>{s();const o=await e.discoveryApi.getBaseUrl("app");try{await fetch(`${o}/.backstage/auth/v1/cookie`,{method:"DELETE",credentials:"include"})}catch{}}}}var go=t(1394);function fo(r,e,s){if(r!==void 0){const i=s.find(c=>c.id===r);if(i)return i}if(e){const i=s.find(c=>c.variant==="dark");if(i)return i}const o=s.find(i=>i.variant==="light");return o||s[0]}const mo=()=>{const r=(0,d.useMemo)(()=>window.matchMedia("(prefers-color-scheme: dark)"),[]),[e,s]=(0,d.useState)(r.matches);return(0,d.useEffect)(()=>{const o=i=>{s(i.matches)};return r.addListener(o),()=>{r.removeListener(o)}},[r]),e};function _s({children:r}){const e=(0,Sn.gf)(Kn),s=(0,go.A)(e.activeThemeId$(),e.getActiveThemeId()),o=window.matchMedia?mo():!1,i=fo(s,o,e.getInstalledThemes());if(!i)throw new Error("App has no themes");return(0,a.jsx)(i.Provider,{children:r})}const qs=async()=>yo();function yo(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 s=e.slice(),o=document.querySelectorAll('script[type="backstage.io/config"]');if(o.length>0)for(const c of o)try{const P=c.textContent;if(!P)throw new Error("tag is empty");let C;try{C=JSON.parse(P)}catch(D){throw new Error(`failed to parse config; ${D}`)}if(!Array.isArray(C))throw new Error("data is not an array");s.push(...C)}catch(P){throw new Error(`Failed to load config from script tag, ${P.message}`)}else if(r!=="__app_injected_runtime_config__".toLocaleUpperCase("en-US"))try{const c=JSON.parse(r);Array.isArray(c)?s.push(...c):s.push({data:c,context:"env"})}catch(c){throw new Error(`Failed to load runtime configuration, ${c}`)}const i=window.__APP_CONFIG__;return i&&s.push({context:"window",data:i}),s}class vo{apis=[];add(e,s){return this.apis.push([e.id,s]),s}build(){return new hn(new Map(this.apis))}}class hn{apis;static builder(){return new vo}static from(e){return new hn(new Map(e.map(([s,o])=>[s.id,o])))}static with(e,s){return new hn(new Map([[e.id,s]]))}constructor(e){this.apis=e}with(e,s){return new hn(new Map([...this.apis,[e.id,s]]))}get(e){return this.apis.get(e.id)}}function Eo(r){const e=new Map,s=new Map;for(const o of r){for(const[i,c]of Object.entries(o.routes??{})){const P=`${o.getId()}.${i}`;if(e.has(P))throw new Error(`Unexpected duplicate route '${P}'`);e.set(P,c)}for(const[i,c]of Object.entries(o.externalRoutes??{})){const P=`${o.getId()}.${i}`;if(s.has(P))throw new Error(`Unexpected duplicate external route '${P}'`);s.set(P,c)}}return{routes:e,externalRoutes:s}}function Ao(r,e,s){const o=Eo(s),i=new Map;r&&r({bind:(D,z)=>{for(const[q,it]of Object.entries(z)){const st=D[q];if(!st)throw new Error(`Key ${q} is not an existing external route`);if(!it&&!st.optional)throw new Error(`External route ${q} is required but was undefined`);it&&i.set(st,it)}}});const c=e.getOptionalConfig("app.routes.bindings")?.get(),P=new Set;if(c)for(const[C,D]of Object.entries(c)){if(!xo(D))throw new Error(`Invalid config at app.routes.bindings['${C}'], value must be a non-empty string or false`);const z=o.externalRoutes.get(C);if(!z)throw new Error(`Invalid config at app.routes.bindings, '${C}' is not a valid external route`);if(D===!1)P.add(z),i.delete(z);else if(!i.has(z)){const q=o.routes.get(D);if(!q)throw new Error(`Invalid config at app.routes.bindings['${C}'], '${D}' is not a valid route`);i.set(z,q)}}for(const C of o.externalRoutes.values())if(!i.has(C)&&!P.has(C)){const D="getDefaultTarget"in C?C.getDefaultTarget():void 0;if(D){const z=o.routes.get(D);z&&i.set(C,z)}}return i}function xo(r){return!!(r===!1||typeof r=="string"&&r)}function Pn(){const[r]=(0,m.AV)((0,a.jsx)(m.qh,{index:!0,element:(0,a.jsx)("div",{})}));return!r.index}const tr=(0,d.createContext)(void 0);var er=t(82266),nr=t(93368),Co=t(25862);const bo=(r,e)=>{try{const o=(0,On.ue)(e,{pathname:r})?.filter(D=>D?.route.routeRefs?.size>0).pop(),i=o?.route;if(!i||i.path===""&&r!=="/")return;let c;i.routeRefs.size===1&&(c=i.routeRefs.values().next().value);let P;i.plugins.size===1&&(P=i.plugins.values().next().value);const C=Object.entries(o?.params||{}).reduce((D,[z,q])=>(q!==void 0&&z!=="*"&&(D[z]=q),D),{});return{extension:"App",pluginId:P?.getId()||"root",...c?{routeRef:c.id}:{},_routeNodeType:i.element,params:C}}catch{return}},So=({pathname:r,search:e,hash:s,attributes:o})=>{const i=(0,nr.s)();return(0,d.useEffect)(()=>{i.captureEvent("navigate",`${r}${e}${s}`,{attributes:o})},[i,r,e,s,o]),null},Yn=({routeObjects:r})=>{const{pathname:e,search:s,hash:o}=(0,m.zy)(),{params:i,...c}=bo(e,r)||{params:{}};return(0,a.jsx)(Co.Ig,{attributes:c,children:(0,a.jsx)(So,{pathname:e,search:s,hash:o,attributes:i})})};function Oo(r){return Pn()?js(r):""}function js(r){let{pathname:e}=new URL(r.getOptionalString("app.baseUrl")??"/","http://sample.dev");return e=e.replace(/\/*$/,""),e}function sr({component:r,appIdentityProxy:e,children:s}){const[o,i]=(0,d.useState)(),c=(0,Sn.gf)(Nt.U),P=js(c);return o?(e.setTarget(o,{signOutTargetUrl:P||"/"}),(0,a.jsx)(a.Fragment,{children:s})):(0,a.jsx)(r,{onSignInSuccess:i})}function rr(r){const{Router:e,SignInPage:s}=(0,er.n)().getComponents(),o=(0,Sn.gf)(Nt.U),i=js(o),c=`${i}/*`,P=(0,d.useContext)(tr);if(!P)throw new Error("AppRouter must be rendered within the AppProvider");const{routeObjects:C,appIdentityProxy:D}=P;return s?Pn()?(0,a.jsxs)(e,{children:[(0,a.jsx)(Yn,{routeObjects:C}),(0,a.jsx)(sr,{component:s,appIdentityProxy:D,children:(0,a.jsx)(m.BV,{children:(0,a.jsx)(m.qh,{path:c,element:(0,a.jsx)(a.Fragment,{children:r.children})})})})]}):(0,a.jsxs)(e,{basename:i,children:[(0,a.jsx)(Yn,{routeObjects:C}),(0,a.jsx)(sr,{component:s,appIdentityProxy:D,children:r.children})]}):(D.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:i||"/"}),Pn()?(0,a.jsxs)(e,{children:[(0,a.jsx)(Yn,{routeObjects:C}),(0,a.jsx)(m.BV,{children:(0,a.jsx)(m.qh,{path:c,element:(0,a.jsx)(a.Fragment,{children:r.children})})})]}):(0,a.jsxs)(e,{basename:i,children:[(0,a.jsx)(Yn,{routeObjects:C}),r.children]}))}(0,be.h)(rr,"core.type","AppRouter");const Rn="language",He="en";class Qn{static create(e){const s=e?.availableLanguages??[He];if(s.length!==new Set(s).size)throw new Error(`Supported languages may not contain duplicates, got '${s.join("', '")}'`);if(!s.includes(He))throw new Error(`Supported languages must include '${He}'`);const o=e?.defaultLanguage??He;if(!s.includes(o))throw new Error(`Initial language must be one of the supported languages, got '${o}'`);return new Qn(s,o)}static createWithStorage(e){const s=Qn.create(e);if(!window.localStorage)return s;const o=window.localStorage.getItem(Rn),{languages:i}=s.getAvailableLanguages();return o&&i.includes(o)&&s.setLanguage(o),s.language$().subscribe(({language:c})=>{c!==window.localStorage.getItem(Rn)&&window.localStorage.setItem(Rn,c)}),window.addEventListener("storage",c=>{if(c.key===Rn){const P=localStorage.getItem(Rn)??void 0;P&&s.setLanguage(P)}}),s}#t;#n;#e;constructor(e,s){this.#t=e,this.#n=s,this.#e=new H({language:this.#n})}getAvailableLanguages(){return{languages:this.#t.slice()}}setLanguage(e){const s=e??He;if(s!==this.#n){if(s&&!this.#t.includes(s))throw new Error(`Failed to change language to '${s}', available languages are '${this.#t.join("', '")}'`);this.#n=s,this.#e.next({language:s})}}getLanguage(){return{language:this.#n}}language$(){return this.#e}}var To=t(47304),Po=t(99833),or=t(93184);function ar(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==null))}class Ro{onLoad;#t;#n;#e;constructor(e){this.onLoad=e,this.#t=new Set,this.#n=new Map,this.#e=new Map}addTranslationResource(e){const s=(0,Po.Y)(e);for(const o of s.resources){const i=this.#s(o.language,s.id);this.#e.has(i)||this.#e.set(i,o.loader)}}#s(e,s){return`${e}/${s}`}needsLoading(e,s){const o=this.#s(e,s);return this.#e.get(o)?!this.#t.has(o):!1}async load(e,s){const o=this.#s(e,s),i=this.#e.get(o);if(!i||this.#t.has(o))return;const c=this.#n.get(o);if(c){await c;return}const P=i().then(C=>{this.onLoad({language:e,namespace:s,messages:C.messages}),this.#t.add(o)},C=>{throw this.#t.add(o),C});this.#n.set(o,P),await P}}class Bs{static create(e){const{languages:s}=e.languageApi.getAvailableLanguages(),o=(0,To.Q_)({fallbackLng:He,supportedLngs:s,interpolation:{escapeValue:!1},ns:[],defaultNS:!1,fallbackNS:!1,initImmediate:!1});if(o.init(),!o.isInitialized)throw new Error("i18next was unexpectedly not initialized");const{language:i}=e.languageApi.getLanguage();i!==He&&o.changeLanguage(i);const c=new Ro(D=>{o.addResourceBundle(D.language,D.namespace,ar(D.messages),!1,!0)}),P=e?.resources||[];for(let D=P.length-1;D>=0;D--){const z=P[D];z.$$type==="@backstage/TranslationResource"?c.addTranslationResource(z):z.$$type==="@backstage/TranslationMessages"&&o.addResourceBundle(He,z.id,ar(z.messages),!0,!1)}const C=new Bs(o,c,e.languageApi.getLanguage().language);return e.languageApi.language$().subscribe(({language:D})=>{C.#o(D)}),C}#t;#n;#e;#s=new Set;#r=new Set;constructor(e,s,o){this.#t=e,this.#n=s,this.#e=o}getTranslation(e){const s=(0,or.v)(e);return this.#i(s),this.#a(s)}translation$(e){const s=(0,or.v)(e);return this.#i(s),new(Q())(o=>{let i={};const c=()=>{i={};const C=i;this.#n.load(this.#e,s.id).then(()=>{if(C===i){const D=this.#a(s);D.ready&&o.next(D)}},D=>{C===i&&o.error(Array.isArray(D)?D[0]:D)})},P=()=>{const C=this.#a(s);C.ready?o.next(C):c()};return this.#n.needsLoading(this.#e,s.id)&&c(),this.#r.add(P),()=>{this.#r.delete(P)}})}#o(e){this.#e!==e&&(this.#e=e,this.#t.changeLanguage(e),this.#r.forEach(s=>s()))}#a(e){return this.#n.needsLoading(this.#e,e.id)?{ready:!1}:{ready:!0,t:this.#t.getFixedT(null,e.id)}}#i(e){if(this.#s.has(e.id))return;this.#s.add(e.id);const s=e.getDefaultMessages();this.#t.addResourceBundle(He,e.id,s,!0,!1);const o=e.getDefaultResource();o&&this.#n.addTranslationResource(o)}}function ir(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 wo(r){const e=dn.fromConfigs(r),s=e.getOptionalString("app.baseUrl"),o=e.getOptionalString("backend.baseUrl");let i=r,c,P;if(s&&o){const C=new URL(s).origin,D=new URL(o).origin;if(C===D){const z=ir(o);o!==z&&(c=z)}}if(s){const C=ir(s);s!==C&&(P=C)}return(P||c)&&(i=i.concat({data:{app:P&&{baseUrl:P},backend:c&&{baseUrl:c}},context:"relative-resolver"})),i}function Io(){return(document.querySelector('meta[name="backstage-app-mode"]')?.getAttribute("content")??"public")==="protected"}function Do(r,e,s){const o=!!r,i=(0,Ft.A)(r||(()=>Promise.resolve([])));let c;if(o&&i.loading){const{Progress:D}=e;c=(0,a.jsx)(D,{})}else if(i.error){const{BootErrorPage:D}=e;c=(0,a.jsx)(D,{step:"load-config",error:i.error})}const{ThemeProvider:P=_s}=e;return c?{node:(0,a.jsx)(Xe,{apis:hn.with(Kn,s),children:(0,a.jsx)(P,{children:c})})}:{api:dn.fromConfigs(i.value?.length?wo(i.value):[])}}class Lo{app;constructor(e){this.app=e}getPlugins(){return this.app.getPlugins()}getSystemIcon(e){return this.app.getSystemIcon(e)}getSystemIcons(){return this.app.getSystemIcons()}getComponents(){return this.app.getComponents()}}class Mo{apiHolder;configApi;apis;icons;plugins;featureFlags;components;themes;configLoader;defaultApis;bindRoutes;appLanguageApi;translationResources;appIdentityProxy=new po;apiFactoryRegistry;constructor(e){this.apis=e.apis??[],this.icons=e.icons,this.plugins=new Set(e.plugins??[]),this.featureFlags=e.featureFlags??[],this.components=e.components,this.themes=e.themes,this.configLoader=e.configLoader??qs,this.defaultApis=e.defaultApis??[],this.bindRoutes=e.bindRoutes,this.apiFactoryRegistry=new kr,this.appLanguageApi=Qn.createWithStorage({defaultLanguage:e.__experimentalTranslations?.defaultLanguage,availableLanguages:e.__experimentalTranslations?.availableLanguages}),this.translationResources=e.__experimentalTranslations?.resources??[]}getPlugins(){return Array.from(this.plugins)}getSystemIcon(e){return this.icons[e]}getSystemIcons(){return this.icons}getComponents(){return this.components}createRoot(e){const s=this.getProvider();return()=>(0,a.jsx)(s,{children:e})}#t=!1;getProvider(){if(this.#t)throw new Error("app.getProvider() or app.createRoot() has already been called, and can only be called once");this.#t=!0;const e=new Lo(this);let s,o;return({children:c})=>{const P=(0,d.useRef)(!0),C=(0,d.useMemo)(()=>Wn.createWithStorage(this.themes),[]),{routing:D,featureFlags:z}=(0,d.useMemo)(()=>{const Yt=Pn();Yt&&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 Oe=Wr({root:c,discoverers:[Kr,zr],collectors:{routing:Yt?Gr:Vr,collectedPlugins:Hr,featureFlags:Yr}});return Oe.collectedPlugins.forEach(je=>this.plugins.add(je)),this.verifyPlugins(this.plugins),this.getApiHolder(),Oe},[c]),q=Do(this.configLoader,this.components,C),it="api"in q;if(it){const{api:Yt}=q;this.configApi=Yt}if("node"in q)return q.node;if(o)throw o;if(!s)try{s=Ao(this.bindRoutes,q.api,this.plugins),so(D.paths,D.parents),ro(s,this.plugins)}catch(Yt){throw o=Yt,Yt}if(it&&P.current){P.current=!1;const Yt=this.getApiHolder().get(un.B);if(Yt){for(const Ie of this.featureFlags)Yt.registerFlag({...Ie,pluginId:""});for(const Ie of this.plugins.values())if("getFeatureFlags"in Ie)for(const on of Ie.getFeatureFlags())Yt.registerFlag({name:on.name,pluginId:Ie.getId()});else for(const on of Ie.output())on.type==="feature-flag"&&Yt.registerFlag({name:on.name,pluginId:Ie.getId()});const Oe=Yt.getRegisteredFlags(),je=new Set(Oe.map(Ie=>Ie.name));for(const Ie of z)je.has(Ie)||Yt.registerFlag({name:Ie,pluginId:""})}}const{ThemeProvider:st=_s,Progress:dt}=this.components,Pt=this.getApiHolder();if(Io()){const Yt=Pt.get(Pe.m),Oe=Pt.get(oe.a),je=Pt.get(_t.I);if(!Yt||!Oe||!je)throw new Error("App is running in protected mode but missing required APIs");this.appIdentityProxy.enableCookieAuth({errorApi:Yt,fetchApi:Oe,discoveryApi:je})}return(0,a.jsx)(Xe,{apis:Pt,children:(0,a.jsx)(ao,{appContext:e,children:(0,a.jsx)(st,{children:(0,a.jsx)(no,{routePaths:D.paths,routeParents:D.parents,routeObjects:D.objects,routeBindings:s,basePath:Oo(q.api),children:(0,a.jsx)(tr.Provider,{value:{routeObjects:D.objects,appIdentityProxy:this.appIdentityProxy},children:(0,a.jsx)(d.Suspense,{fallback:(0,a.jsx)(dt,{}),children:c})})})})})})}}getRouter(){return rr}getApiHolder(){if(this.apiHolder){for(const e of this.plugins)for(const s of e.getApis())this.apiFactoryRegistry.get(s.api)||this.apiFactoryRegistry.register("default",s);return Ls.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder}this.apiFactoryRegistry.register("static",{api:Kn,deps:{},factory:()=>Wn.createWithStorage(this.themes)}),this.apiFactoryRegistry.register("static",{api:Nt.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:re.K,deps:{},factory:()=>this.appIdentityProxy}),this.apiFactoryRegistry.register("static",{api:zs,deps:{},factory:()=>this.appLanguageApi}),this.apiFactoryRegistry.register("default",{api:Nr.J,deps:{languageApi:zs},factory:({languageApi:e})=>Bs.create({languageApi:e,resources:this.translationResources})}),this.apiFactoryRegistry.register("default",{api:un.B,deps:{},factory:()=>new Fr});for(const e of this.defaultApis)this.apiFactoryRegistry.register("default",e);for(const e of this.plugins)for(const s of e.getApis())if(!this.apiFactoryRegistry.register("default",s))throw new Error(`Plugin ${e.getId()} tried to register duplicate or forbidden API factory for ${s.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 Ls.validateFactories(this.apiFactoryRegistry,this.apiFactoryRegistry.getAllApis()),this.apiHolder=new Ls(this.apiFactoryRegistry),this.apiHolder}verifyPlugins(e){const s=new Set;for(const o of e){const i=o.getId();if(s.has(i))throw new Error(`Duplicate plugin found '${i}'`);s.add(i)}}}function jo(r){return new Mo(r)}function Bo(r){return jo({...r,apis:r?.apis??[],bindRoutes:r?.bindRoutes,components:{...L,...r?.components},configLoader:r?.configLoader,defaultApis:os,icons:{...vs,...r?.icons},plugins:r?.plugins??[],featureFlags:r?.featureFlags??[],themes:r?.themes??ae})}var Zn=t(82442);let cr=!1;const lr=r=>{const e=(0,er.n)(),{NotFoundErrorPage:s}=e.getComponents(),o=(0,d.useMemo)(()=>Pn(),[]),c=[...(0,Zn.O)(r.children,P=>P.getElements().flatMap(C=>{let D=C.props.path;if(D==="")return[];D=D?.replace(/\/\*$/,"")??"/";let z=o?C:C.props.element;return!o&&!z&&(z=C,cr||(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] />} />."),cr=!0)),[{path:D,element:z,children:C.props.children?[{path:D==="/"?"/":"*",element:C.props.children}]:void 0}]}).sort((C,D)=>D.path.localeCompare(C.path)).map(C=>({...C,path:C.path==="/"?"/":`${C.path}/*`}))),{path:"*",element:(0,a.jsx)(s,{})}];return(0,m.Ye)(c)};(0,be.h)(lr,"core.type","FlatRoutes");var pn=t(6820),Uo=t(78692),$o=t(86519);function Fo(r){return!r.cursor}const ye="catalog";var ve=t(94214);class No{discoveryApi;fetchApi;constructor(e){this.discoveryApi=e.discoveryApi,this.fetchApi=e.fetchApi||{fetch:mn()}}async analyzeLocation(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.parse("/analyze-location").expand({});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"POST",body:JSON.stringify(e.body)})}async createLocation(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.parse("/locations{?dryRun}").expand({...e.query});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"POST",body:JSON.stringify(e.body)})}async deleteEntityByUid(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.parse("/entities/by-uid/{uid}").expand({uid:e.path.uid});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"DELETE"})}async deleteLocation(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.parse("/locations/{id}").expand({id:e.path.id});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"DELETE"})}async getEntities(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.parse("/entities{?fields,limit,filter*,offset,after,order*}").expand({...e.query});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"GET"})}async getEntitiesByQuery(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.parse("/entities/by-query{?fields,limit,offset,orderField*,cursor,filter*,fullTextFilterTerm,fullTextFilterFields}").expand({...e.query});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"GET"})}async getEntitiesByRefs(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.parse("/entities/by-refs/{?filter*}").expand({...e.query});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"POST",body:JSON.stringify(e.body)})}async getEntityAncestryByName(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.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(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"GET"})}async getEntityByName(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.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(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"GET"})}async getEntityByUid(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.parse("/entities/by-uid/{uid}").expand({uid:e.path.uid});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"GET"})}async getEntityFacets(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.parse("/entity-facets{?facet*,filter*}").expand({...e.query});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"GET"})}async getLocation(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.parse("/locations/{id}").expand({id:e.path.id});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"GET"})}async getLocationByEntity(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.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(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"GET"})}async getLocations(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.parse("/locations").expand({});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"GET"})}async refreshEntity(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.parse("/refresh").expand({});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"POST",body:JSON.stringify(e.body)})}async validateEntity(e,s){const o=await this.discoveryApi.getBaseUrl(ye),c=ve.parse("/validate-entity").expand({});return await this.fetchApi.fetch(`${o}${c}`,{headers:{"Content-Type":"application/json",...s?.token&&{Authorization:`Bearer ${s?.token}`}},method:"POST",body:JSON.stringify(e.body)})}}class ko{apiClient;constructor(e){this.apiClient=new No(e)}async getEntityAncestors(e,s){return await this.requestRequired(await this.apiClient.getEntityAncestryByName({path:(0,pn.KU)(e.entityRef)},s))}async getLocationById(e,s){return await this.requestOptional(await this.apiClient.getLocation({path:{id:e}},s))}async getLocationByEntity(e,s){return await this.requestOptional(await this.apiClient.getLocationByEntity({path:(0,pn.KU)(e)},s))}async getEntities(e,s){const{filter:o=[],fields:i=[],order:c,offset:P,limit:C,after:D}=e??{},z=[];if(c)for(const it of[c].flat())it&&z.push(`${it.order}:${it.field}`);return{items:await this.requestRequired(await this.apiClient.getEntities({query:{fields:i,limit:C,filter:this.getFilterValue(o),offset:P,after:D,order:c?z:void 0}},s))}}async getEntitiesByRefs(e,s){const o=await this.apiClient.getEntitiesByRefs({body:{entityRefs:e.entityRefs,fields:e.fields},query:{filter:this.getFilterValue(e.filter)}},s);if(!o.ok)throw await Ze.o.fromResponse(o);const{items:i}=await o.json();return{items:i.map(c=>c??void 0)}}async queryEntities(e={},s){const o={};if(Fo(e)){const{fields:i=[],filter:c,limit:P,offset:C,orderFields:D,fullTextFilter:z}=e;o.filter=this.getFilterValue(c),P!==void 0&&(o.limit=P),C!==void 0&&(o.offset=C),D!==void 0&&(o.orderField=(Array.isArray(D)?D:[D]).map(({field:it,order:st})=>`${it},${st}`)),i.length&&(o.fields=i);const q=z?.term?.trim();q&&(o.fullTextFilterTerm=q),z?.fields?.length&&(o.fullTextFilterFields=z.fields)}else{const{fields:i=[],limit:c,cursor:P}=e;o.cursor=P,c!==void 0&&(o.limit=c),i.length&&(o.fields=i)}return this.apiClient.getEntitiesByQuery({query:o},s).then(i=>i.json())}async getEntityByRef(e,s){return this.requestOptional(await this.apiClient.getEntityByName({path:(0,pn.KU)(e)},s))}async getEntityByName(e,s){const{kind:o,namespace:i="default",name:c}=e;return this.requestOptional(await this.apiClient.getEntityByName({path:{kind:o,namespace:i,name:c}},s))}async refreshEntity(e,s){const o=await this.apiClient.refreshEntity({body:{entityRef:e}},s);if(o.status!==200)throw new Error(await o.text())}async getEntityFacets(e,s){const{filter:o=[],facets:i}=e;return await this.requestOptional(await this.apiClient.getEntityFacets({query:{facet:i,filter:this.getFilterValue(o)}},s))}async addLocation(e,s){const{type:o="url",target:i,dryRun:c}=e,P=await this.apiClient.createLocation({body:{type:o,target:i},query:{dryRun:c?"true":void 0}},s);if(P.status!==201)throw new Error(await P.text());const{location:C,entities:D,exists:z}=await P.json();if(!C)throw new Error(`Location wasn't added: ${i}`);return{location:C,entities:D,exists:z}}async getLocationByRef(e,s){return(await this.requestRequired(await this.apiClient.getLocations({},s))).map(i=>i.data).find(i=>e===(0,Uo.KL)(i))}async removeLocationById(e,s){await this.requestIgnored(await this.apiClient.deleteLocation({path:{id:e}},s))}async removeEntityByUid(e,s){await this.requestIgnored(await this.apiClient.deleteEntityByUid({path:{uid:e}},s))}async validateEntity(e,s,o){const i=await this.apiClient.validateEntity({body:{entity:e,location:s}},o);if(i.ok)return{valid:!0};if(i.status!==400)throw await Ze.o.fromResponse(i);const{errors:c=[]}=await i.json();return{valid:!1,errors:c}}async requestIgnored(e){if(!e.ok)throw await Ze.o.fromResponse(e)}async requestRequired(e){if(!e.ok)throw await Ze.o.fromResponse(e);return e.json()}async requestOptional(e){if(!e.ok){if(e.status===404)return;throw await Ze.o.fromResponse(e)}return await e.json()}getFilterValue(e=[]){const s=[];for(const o of[e].flat()){const i=[];for(const[c,P]of Object.entries(o))for(const C of[P].flat())C===$o.c?i.push(c):typeof C=="string"&&i.push(`${c}=${C}`);i.length&&s.push(i.join(","))}return s}}var dr=t(7341),Wo=t(18),Ko=t(82292),ur=t(29207),gn=t(95203),zo=t(9803),we=t(88758),Ho=t(54560),fn=t(45250);async function Vo({storageApi:r}){const e=r.forBucket("settings"),s=r.forBucket("starredEntities"),o=e.snapshot("starredEntities").value;if(!(0,fn.isArray)(o))return;const i=new Set(s.snapshot("entityRefs").value??[]);o.filter(fn.isString).map(c=>c.split(":")).filter(c=>c.length===4&&c[0]==="entity").map(([c,P,C,D])=>(0,pn.U2)({kind:P,namespace:C,name:D})).forEach(c=>i.add(c)),await s.set("entityRefs",Array.from(i)),await e.remove("starredEntities")}class Go{settingsStore;starredEntities;constructor(e){Vo(e).then(),this.settingsStore=e.storageApi.forBucket("starredEntities"),this.starredEntities=new Set(this.settingsStore.snapshot("entityRefs").value??[]),this.settingsStore.observe$("entityRefs").subscribe({next:s=>{this.starredEntities=new Set(s.value??[]),this.notifyChanges()}})}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}subscribers=new Set;observable=new(Q())(e=>(e.next(new Set(this.starredEntities)),this.subscribers.add(e),()=>{this.subscribers.delete(e)}));notifyChanges(){for(const e of this.subscribers)e.next(new Set(this.starredEntities))}}function Us(r){const{years:e=0,months:s=0,weeks:o=0,days:i=0,hours:c=0,minutes:P=0,seconds:C=0,milliseconds:D=0}=r;return((((e*365+s*30+o*7+i)*24+c)*60+P)*60+C)*1e3+D}var Yo=t(25033),Qo=t.n(Yo),Zo=t(25295),Jo=t.n(Zo),Xo=t(88083);const _o={seconds:10},qo={milliseconds:50},ta={api:Ln.A,component:jn.A,system:vn.A,resource:Bn.A,domain:In.A,location:Mn.A,user:An.A,group:En.A,template:Un.A};function hr(r){return{async:r.async,render:({entityRef:e,entity:s,context:o})=>({snapshot:(0,Xo.T)(s||e,o),loadEntity:r.async})}}class Jn{static createLocal(){return new Jn({renderer:hr({async:!1})})}static create(e){return new Jn(e)}#t;#n;#e;#s;#r;constructor(e){const s=e.cacheTtl??_o,o=e.batchDelay??qo,i=e.renderer??hr({async:!0}),c={};if(Object.entries(ta).forEach(([P,C])=>{c[P.toLocaleLowerCase("en-US")]=C}),Object.entries(e.kindIcons??{}).forEach(([P,C])=>{c[P.toLocaleLowerCase("en-US")]=C}),i.async){if(!e.catalogApi)throw new TypeError("Asynchronous rendering requires a catalog API");this.#e=this.#a({cacheTtl:s,batchDelay:o,renderer:i,catalogApi:e.catalogApi})}this.#n=Us(s),this.#t=new Map,this.#s=c,this.#r=i}forEntity(e,s){const{entityRef:o,kind:i,entity:c,needsLoad:P}=this.#o(e),C=st=>{const{snapshot:dt}=this.#r.render({entityRef:o,loading:st.loading,entity:st.entity,context:s||{}});return{...dt,entityRef:o,Icon:this.#i(dt.Icon,i)}};let D;try{D=C({loading:P,entity:c})}catch{D={primaryTitle:o,entityRef:o}}if(!P)return{snapshot:D,promise:Promise.resolve(D)};const z=Promise.resolve().then(()=>this.#e?.load(o)).then(st=>C({loading:!1,entity:st??c})).catch(()=>{}),q=new(Q())(st=>{let dt=!1;return z.then(Pt=>{Pt&&st.next(Pt)}).finally(()=>{dt||st.complete()}),()=>{dt=!0}}),it=z.then(st=>st??D);return{snapshot:D,update$:q,promise:it}}#o(e){if(typeof e!="string")return{entity:e,kind:e.kind,entityRef:(0,pn.U2)(e),needsLoad:!1};const s=this.#t.get(e),o=s?.entity,c=(!s||Date.now()-s.updatedAt>this.#n)&&this.#r.async!==!1&&this.#e!==void 0;return{entity:o,kind:(0,pn.KU)(e).kind,entityRef:e,needsLoad:c}}#a(e){const s=Us(e.cacheTtl),o=Us(e.batchDelay);return new(Qo())(async i=>{const{items:c}=await e.catalogApi.getEntitiesByRefs({entityRefs:i,fields:["kind","metadata.name","metadata.namespace","metadata.title","metadata.description","spec.profile.displayName","spec.type"]}),P=Date.now();return i.forEach((C,D)=>{this.#t.set(C,{updatedAt:P,entity:c[D]})}),c},{name:"DefaultEntityPresentationApi",cacheMap:new(Jo())(s),maxBatchSize:100,batchScheduleFn:o?i=>setTimeout(i,o):void 0})}#i(e,s){return e||(e===!1?!1:this.#s[s.toLocaleLowerCase("en-US")])}}const Se=(0,zo.i)({id:"catalog",apis:[(0,Lt.b)({api:dr.v,deps:{discoveryApi:_t.I,fetchApi:oe.a},factory:({discoveryApi:r,fetchApi:e})=>new ko({discoveryApi:r,fetchApi:e})}),(0,Lt.b)({api:Wo.a,deps:{storageApi:Ke},factory:({storageApi:r})=>new Go({storageApi:r})}),(0,Lt.b)({api:Ko.n,deps:{catalogApi:dr.v},factory:({catalogApi:r})=>Jn.create({catalogApi:r})})],routes:{catalogIndex:gn.rQ,catalogEntity:ur.s},externalRoutes:{createComponent:gn.qP,viewTechDoc:gn.UJ,createFromTemplate:gn.Zg,unregisterRedirect:gn.pS}}),ui=Se.provide((0,we.QJ)({name:"CatalogIndexPage",component:()=>Promise.all([t.e(3720),t.e(8115),t.e(2177)]).then(t.bind(t,62177)).then(r=>r.CatalogPage),mountPoint:gn.rQ})),ea=Se.provide((0,we.QJ)({name:"CatalogEntityPage",component:()=>t.e(4516).then(t.bind(t,54516)).then(r=>r.CatalogEntityPage),mountPoint:ur.s})),hi=Se.provide((0,we.NC)({name:"EntityAboutCard",component:{lazy:()=>Promise.all([t.e(3720),t.e(1902),t.e(5724)]).then(t.bind(t,65724)).then(r=>r.AboutCard)}})),pi=Se.provide((0,we.NC)({name:"EntityLinksCard",component:{lazy:()=>t.e(8307).then(t.bind(t,18307)).then(r=>r.EntityLinksCard)}})),gi=Se.provide((0,we.NC)({name:"EntityLabelsCard",component:{lazy:()=>t.e(3182).then(t.bind(t,63182)).then(r=>r.EntityLabelsCard)}})),fi=Se.provide((0,we.NC)({name:"EntityHasSystemsCard",component:{lazy:()=>t.e(9652).then(t.bind(t,9652)).then(r=>r.HasSystemsCard)}})),mi=Se.provide((0,we.NC)({name:"EntityHasComponentsCard",component:{lazy:()=>t.e(2420).then(t.bind(t,52420)).then(r=>r.HasComponentsCard)}})),yi=Se.provide((0,we.NC)({name:"EntityHasSubcomponentsCard",component:{lazy:()=>t.e(8384).then(t.bind(t,78384)).then(r=>r.HasSubcomponentsCard)}})),vi=Se.provide((0,we.NC)({name:"EntityHasSubdomainsCard",component:{lazy:()=>t.e(6415).then(t.bind(t,46415)).then(r=>r.HasSubdomainsCard)}})),Ei=Se.provide((0,we.NC)({name:"EntityHasResourcesCard",component:{lazy:()=>t.e(6271).then(t.bind(t,56271)).then(r=>r.HasResourcesCard)}})),Ai=Se.provide((0,we.NC)({name:"EntityDependsOnComponentsCard",component:{lazy:()=>t.e(3632).then(t.bind(t,3632)).then(r=>r.DependsOnComponentsCard)}})),xi=Se.provide((0,we.NC)({name:"EntityDependencyOfComponentsCard",component:{lazy:()=>t.e(124).then(t.bind(t,124)).then(r=>r.DependencyOfComponentsCard)}})),Ci=Se.provide((0,we.NC)({name:"EntityDependsOnResourcesCard",component:{lazy:()=>t.e(287).then(t.bind(t,20287)).then(r=>r.DependsOnResourcesCard)}})),bi=Se.provide((0,we.NC)({name:"RelatedEntitiesCard",component:{lazy:()=>t.e(2401).then(t.bind(t,52401)).then(r=>r.RelatedEntitiesCard)}})),Si=Se.provide((0,Ho.ec)({name:"CatalogSearchResultListItem",component:()=>t.e(1297).then(t.bind(t,61297)).then(r=>r.CatalogSearchResultListItem),predicate:r=>r.type==="software-catalog"}));var pr=t(3347),gr=t(26679);class na{configApi;discoveryApi;identityApi;constructor({configApi:e,discoveryApi:s,identityApi:o}){this.configApi=e,this.discoveryApi=s,this.identityApi=o}async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){return`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getOptionalString("techdocs.builder")||"local"}async getEntityDocs(e,s){const i=`${await this.getApiOrigin()}/${s}`,c=await fetch(`${i.endsWith("/")?i:`${i}/`}index.html`);if(c.status===404)throw new Error("Page not found");return c.text()}async syncEntityDocs(e){return"cached"}async getBaseUrl(e,s,o){const i=await this.getApiOrigin();return new URL(e,`${i}/${o}`).toString()}}class sa{configApi;discoveryApi;identityApi;constructor({configApi:e,discoveryApi:s,identityApi:o}){this.configApi=e,this.discoveryApi=s,this.identityApi=o}async getCookie(){return{expiresAt:new Date(Date.now()+6e5).toISOString()}}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:""}}}const ra=[(0,Lt.b)({api:gr.s,deps:{configApi:Nt.U,discoveryApi:_t.I,identityApi:re.K},factory:({configApi:r,discoveryApi:e,identityApi:s})=>new na({configApi:r,discoveryApi:e,identityApi:s})}),(0,Lt.b)({api:gr.l,deps:{configApi:Nt.U,discoveryApi:_t.I,identityApi:re.K},factory:({configApi:r,discoveryApi:e,identityApi:s})=>new sa({configApi:r,discoveryApi:e,identityApi:s})}),(0,Lt.b)({api:pr.Y,deps:{configApi:Nt.U},factory:({configApi:r})=>pr.L.fromConfig(r)})],oa={backend:{baseUrl:"http://localhost:3000"},techdocs:{builder:"external"}},aa={backend:{baseUrl:"http://localhost:7007"},techdocs:{builder:"external"}};async function ia(){const r=await fetch("/.detect");return r.ok?(await r.text()).trim()==="techdocs-cli-server":!1}async function ca(){const r=await qs(),e=await ia();return[...r,{context:"detected",data:e?oa:aa}]}var Ve=t(58837),la=t(3210);const da=(0,Ve.A)({svg:{width:"auto",height:30},path:{fill:"#7df3e1"}}),ua=()=>{const r=da();return(0,a.jsx)("svg",{className:r.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2079.95 456.05",children:(0,a.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"})})},ha=(0,Ve.A)({svg:{width:"auto",height:28},path:{fill:"#7df3e1"}}),pa=()=>{const r=ha();return(0,a.jsx)("svg",{className:r.svg,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 337.46 428.5",children:(0,a.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"})})};var Ee=t(72664);const fr={isOpen:!1,setOpen:()=>{}},mr=(0,d.createContext)(fr),yr=(0,Ce.tK)("sidebar-open-state-context");function vr(r){const{children:e,value:s}=r;return(0,a.jsx)(mr.Provider,{value:s,children:(0,a.jsx)(yr.Provider,{value:(0,ze.B)({1:s}),children:e})})}const $s=()=>{const r=(0,d.useContext)(yr),e=(0,d.useContext)(mr);if(r===void 0)return e||fr;const s=r.atVersion(1);if(s===void 0)throw new Error("No context found for version 1.");return s};var Er=t(72072),Ar=t(73524),_e=t(10394),xr=t(5893),ga=t(53373),rn=t.n(ga),fa=t(1125),Cr=t(29365),ma=t(73845),Fs=t(72501),ya=t(32881),va=t(27326),Ea=t(13085);const br=(0,d.createContext)({selectedMenuItemIndex:-1,setSelectedMenuItemIndex:()=>{}});var Ns=t(34435);const Aa=(0,Ve.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"}})),xa=r=>{const{to:e,label:s,icon:o,value:i}=r,{sidebarConfig:c}=(0,d.useContext)(Ee.yY),P=Aa({sidebarConfig:c}),C=(0,m.zy)(),{selectedMenuItemIndex:D,setSelectedMenuItemIndex:z}=(0,d.useContext)(br),q=(st,dt)=>{z(dt===D?-1:dt)},it=i===D&&D>=0||i!==D&&!(D>=0)&&e===C.pathname;return(0,a.jsx)(Ea.A,{"aria-label":s,label:s,icon:o,component:Er.N_,to:e||C.pathname,onChange:q,value:i,selected:it,classes:P})},Sr=r=>{const{children:e,to:s,label:o,icon:i,value:c}=r,{isMobile:P}=(0,Ns.Ut)();return P?(0,a.jsx)(xa,{to:s,label:o,icon:i,value:c}):(0,a.jsx)(a.Fragment,{children:e})},Or=(0,Ve.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`})})),Ca=r=>(0,fn.orderBy)(r,({props:{priority:e}})=>Number.isInteger(e)?e:-1,"desc"),ba=d.createElement(Sr).type,Sa=({children:r,label:e="Menu",open:s,onClose:o})=>{const{sidebarConfig:i}=(0,d.useContext)(Ee.yY),c=Or({sidebarConfig:i});return(0,a.jsxs)(ma.Ay,{anchor:"bottom",open:s,onClose:o,ModalProps:{BackdropProps:{classes:{root:c.marginMobileSidebar}}},classes:{root:c.marginMobileSidebar,paperAnchorBottom:c.overlay},children:[(0,a.jsxs)(_e.A,{className:c.overlayHeader,children:[(0,a.jsx)(Fs.A,{variant:"h3",children:e}),(0,a.jsx)(Cr.A,{onClick:o,classes:{root:c.overlayHeaderClose},children:(0,a.jsx)(ya.A,{})})]}),(0,a.jsx)(_e.A,{component:"nav",children:r})]})},Oa=r=>{const{sidebarConfig:e}=(0,d.useContext)(Ee.yY),{children:s}=r,o=Or({sidebarConfig:e}),i=(0,m.zy)(),[c,P]=(0,d.useState)(-1);(0,d.useEffect)(()=>{P(-1)},[i.pathname]);let C=(0,Zn.O)(s,z=>z.getElements().filter(q=>q.type===ba));if(s)C.length?C=Ca(C):C.push((0,a.jsx)(Sr,{icon:(0,a.jsx)(va.A,{}),children:s},"default_menu"));else return null;const D=c>=0&&!C[c].props.to;return(0,a.jsx)(vr,{value:{isOpen:!0,setOpen:()=>{}},children:(0,a.jsxs)(br.Provider,{value:{selectedMenuItemIndex:c,setSelectedMenuItemIndex:P},children:[(0,a.jsx)(Sa,{label:C[c]&&C[c].props.label,open:D,onClose:()=>P(-1),children:C[c]&&C[c].props.children}),(0,a.jsx)(fa.A,{className:o.root,"data-testid":"mobile-sidebar-root",component:"nav",children:C})]})})};var Ta=t(87849),Pa=t(10315);const Tr=(0,Ve.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 Pr;(function(r){r[r.Closed=0]="Closed",r[r.Idle=1]="Idle",r[r.Open=2]="Open"})(Pr||(Pr={}));const Ra=r=>{const{sidebarConfig:e}=(0,d.useContext)(Ee.yY),{openDelayMs:s=e.defaultOpenDelayMs,closeDelayMs:o=e.defaultCloseDelayMs,disableExpandOnHover:i,children:c}=r,P=Tr({sidebarConfig:e}),C=(0,xr.A)(je=>je.breakpoints.down("md"),{noSsr:!0}),[D,z]=(0,d.useState)(0),q=(0,d.useRef)(),{isPinned:it,toggleSidebarPinState:st}=(0,Ns.Ut)(),dt=()=>{it||i||(q.current&&(clearTimeout(q.current),q.current=void 0),D!==2&&!C&&(q.current=window.setTimeout(()=>{q.current=void 0,z(2)},s),z(1)))},Pt=()=>{it||i||(q.current&&(clearTimeout(q.current),q.current=void 0),D===1?z(0):D===2&&(q.current=window.setTimeout(()=>{q.current=void 0,z(0)},o)))},Yt=D===2&&!C||it,Oe=je=>{je?(z(2),st()):(z(0),st())};return(0,a.jsxs)("nav",{style:{},"aria-label":"sidebar nav",children:[(0,a.jsx)(Ia,{}),(0,a.jsx)(vr,{value:{isOpen:Yt,setOpen:Oe},children:(0,a.jsx)(_e.A,{className:P.root,"data-testid":"sidebar-root",onMouseEnter:i?()=>{}:dt,onFocus:i?()=>{}:dt,onMouseLeave:i?()=>{}:Pt,onBlur:i?()=>{}:Pt,children:(0,a.jsx)(_e.A,{className:rn()(P.drawer,P.drawerWidth,{[P.drawerOpen]:Yt}),children:c})})})]})},wa=r=>{const e=(0,Ee.Rv)(r.sidebarOptions??{}),s=(0,Ee.i8)(r.submenuOptions??{}),{children:o,disableExpandOnHover:i,openDelayMs:c,closeDelayMs:P}=r,{isMobile:C}=(0,Ns.Ut)();return C?(0,a.jsx)(Oa,{children:o}):(0,a.jsx)(Ee.yY.Provider,{value:{sidebarConfig:e,submenuConfig:s},children:(0,a.jsx)(Ra,{openDelayMs:c,closeDelayMs:P,disableExpandOnHover:i,children:o})})};function Ia(){const{sidebarConfig:r}=(0,d.useContext)(Ee.yY),{focusContent:e,contentRef:s}=(0,Ar.H)(),o=Tr({sidebarConfig:r}),{t:i}=(0,Ta.i)(Pa.O);return s?.current?(0,a.jsx)(v.A,{onClick:e,variant:"contained",className:rn()(o.visuallyHidden),children:i("skipToContent")}):null}var Da=t(94509),Xn=t(44209),La=t(79065),Ma=t(55704),Rr=t(62248);const ja=(0,Ve.A)(r=>({root:{zIndex:1e3,position:"relative",overflow:"visible",width:r.spacing(7)+1},drawer:e=>({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:r.palette.navigation.submenu?.background??"#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.navigation.color,padding:r.spacing(2.5),[r.breakpoints.down("xs")]:{display:"none"}}}),{name:"BackstageSidebarSubmenu"}),Ba=r=>{const{isOpen:e}=$s(),{sidebarConfig:s,submenuConfig:o}=(0,d.useContext)(Ee.yY),i=e?s.drawerWidthOpen:s.drawerWidthClosed,c=ja({left:i,submenuConfig:o}),{isHoveredOn:P}=(0,d.useContext)(Ee.U1),[C,D]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{D(P)},[P]),(0,a.jsxs)(_e.A,{className:rn()(c.drawer,{[c.drawerOpen]:C}),children:[(0,a.jsx)(Fs.A,{variant:"h5",component:"span",className:c.title,children:r.title}),r.children]})};var Ua=t(45810),wr=t.n(Ua);function Ir(r,e,s=!1){const o=new URLSearchParams(e.search).toString(),i=wr().parse(o),c=new URLSearchParams(r.search).toString(),P=wr().parse(c),C=s?fn.isEqual:fn.isMatch;return(0,fn.isEqual)(e.pathname,r.pathname)&&C(P,i)}const $a=r=>(0,Ve.A)(e=>({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:e.palette.navigation.navItem?.hoverBackground??"#404040"}},highlighted:{background:e.palette.navigation.navItem?.hoverBackground??"#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 _n(r){return(0,d.useMemo)(()=>$a(r),[r])()}const Fa=(r,e)=>(0,Zn.O)(r.props.children,s=>{let o=!1;return s.getElements().forEach(({props:{to:i,dropdownItems:c}})=>{if(!o){if(c?.length){c.forEach(({to:P})=>o=o||Ir(e,(0,On.o1)(P)));return}i&&(o=Ir(e,(0,On.o1)(i)))}}),o},[e.pathname]);function ks(r){return r.to===void 0}const Na=d.createElement(Ba).type,ka=d.forwardRef(function({to:e,end:s,style:o,className:i,activeStyle:c,caseSensitive:P,activeClassName:C="active","aria-current":D="page",...z},q){let{pathname:it}=(0,m.zy)(),{pathname:st}=(0,m.x$)(e);P||(it=it.toLocaleLowerCase("en-US"),st=st.toLocaleLowerCase("en-US"));let dt=it===st;!dt&&!s&&(dt=it.startsWith(`${st}/`));const Pt=dt?D:void 0;return(0,a.jsx)(O.N_,{...z,to:e,ref:q,"aria-current":Pt,style:{...o,...dt?c:void 0},className:rn()([typeof i!="function"?i:void 0,dt?C:void 0])})}),Dr=(0,d.forwardRef)((r,e)=>{const{icon:s,text:o,hasNotifications:i=!1,hasSubmenu:c=!1,disableHighlight:P=!1,onClick:C,noTrack:D,children:z,className:q,...it}=r,{sidebarConfig:st}=(0,d.useContext)(Ee.yY),dt=_n(st),{isOpen:Pt}=$s(),Yt=!Pt&&c?{display:"flex",marginLeft:"20px"}:{lineHeight:"0"},Oe=(0,a.jsxs)(_e.A,{style:Yt,children:[(0,a.jsx)(s,{fontSize:"small"}),!Pt&&c?(0,a.jsx)(Rr.A,{fontSize:"small"}):(0,a.jsx)(a.Fragment,{})]}),je=(0,a.jsx)(Da.A,{color:"secondary",variant:"dot",overlap:"circular",invisible:!i,className:rn()({[dt.closedItemIcon]:!Pt}),children:Oe}),Ie=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(_e.A,{"data-testid":"login-button",className:dt.iconContainer,children:je}),o&&(0,a.jsx)(Fs.A,{variant:"subtitle2",component:"span",className:dt.label,children:o}),(0,a.jsx)("div",{className:dt.secondaryAction,children:z})]}),on=Pt?Ie:je,Br={onClick:C,className:rn()(q,dt.root,Pt?dt.open:dt.closed,ks(r)&&dt.buttonItem,{[dt.highlightable]:!P})},Ur=(0,nr.s)(),{pathname:Ws}=(0,m.x$)(!ks(r)&&r.to?r.to:""),$r=(0,d.useCallback)(ii=>{if(!D){const ci="click",li=o??"Sidebar Item",di=Ws?{attributes:{to:Ws}}:void 0;Ur.captureEvent(ci,li,di)}C?.(ii)},[Ur,o,Ws,D,C]);return ks(r)?(0,a.jsx)(v.A,{role:"button","aria-label":o,...Br,ref:e,onClick:$r,children:on}):(0,a.jsx)(ka,{...Br,activeClassName:dt.selected,to:r.to?r.to:"",ref:e,"aria-label":o||r.to,...it,onClick:$r,children:on})}),Wa=({children:r,...e})=>{const{sidebarConfig:s}=(0,d.useContext)(Ee.yY),o=_n(s),[i,c]=(0,d.useState)(!1),P=(0,m.zy)(),C=Fa(r,P),D=(0,xr.A)(st=>st.breakpoints.down("sm")),z=()=>{c(!0)},q=()=>{c(!1)},it=()=>D?i?(0,a.jsx)(Ma.A,{fontSize:"small",className:o.submenuArrow}):(0,a.jsx)(La.A,{fontSize:"small",className:o.submenuArrow}):!i&&(0,a.jsx)(Rr.A,{fontSize:"small",className:o.submenuArrow});return(0,a.jsx)(Ee.U1.Provider,{value:{isHoveredOn:i,setIsHoveredOn:c},children:(0,a.jsxs)("div",{"data-testid":"item-with-submenu",onMouseLeave:q,onTouchStart:i?q:z,onMouseEnter:z,className:rn()(i&&o.highlighted),children:[(0,a.jsx)(Dr,{hasSubmenu:!0,className:C?o.selected:"",...e,children:it()}),i&&r]})})},Lr=(0,d.forwardRef)((r,e)=>{const[s]=(0,Zn.O)(r.children,o=>o.getElements().filter(i=>i.type===Na));return s?(0,a.jsx)(Wa,{...r,children:s}):(0,a.jsx)(Dr,{...r,ref:e})});function Pi(r){const{sidebarConfig:e}=useContext(SidebarConfigContext),[s,o]=useState(""),i=_n(e),c=r.icon?r.icon:SearchIcon,P=()=>{r.onSearch(s),o("")},C=it=>{it.key==="Enter"&&(it.preventDefault(),P())},D=it=>{o(it.target.value)},z=it=>{it.preventDefault(),it.stopPropagation()},q=it=>{P(),it.preventDefault()};return _jsx(Box,{className:i.searchRoot,children:_jsx(Lr,{icon:c,to:r.to,onClick:q,disableHighlight:!0,children:_jsx(TextField,{placeholder:"Search",value:s,onClick:z,onChange:D,onKeyDown:C,className:i.searchContainer,InputProps:{disableUnderline:!0,className:i.searchField},inputProps:{className:i.searchFieldHTMLInput}})})})}const Ri=(0,Xn.A)("div")({flex:1},{name:"BackstageSidebarSpace"}),wi=(0,Xn.A)("div")({height:8},{name:"BackstageSidebarSpacer"}),Ka=(0,Xn.A)("hr")(({theme:r})=>({height:1,width:"100%",background:"#383838",border:"none",margin:r.spacing(1.2,0)}),{name:"BackstageSidebarDivider"}),za=r=>({overflowY:"auto","&::-webkit-scrollbar":{backgroundColor:r.palette.background.default,width:"5px",borderRadius:"5px"},"&::-webkit-scrollbar-thumb":{backgroundColor:r.palette.text.secondary,borderRadius:"5px"}}),Ii=(0,Xn.A)("div")(({theme:r})=>{const e=za(r);return{flex:"0 1 auto",overflowX:"hidden",width:"100%",minHeight:"48px",overflowY:"hidden","@media (hover: none)":e,"&:hover":e}}),Di=()=>{const{sidebarConfig:r}=useContext(SidebarConfigContext),e=_n(r),{isOpen:s,setOpen:o}=useSidebarOpenState();if(useMediaQuery(P=>P.breakpoints.down("md"),{noSsr:!0}))return null;const c=()=>{o(!s)};return _jsx(Button,{role:"button",onClick:c,className:e.expandButton,"aria-label":"Expand Sidebar","data-testid":"sidebar-expand-button",children:_jsx(Box,{className:e.arrows,children:s?_jsx(DoubleArrowLeft,{}):_jsx(DoubleArrowRight,{})})})},Ha=(0,Ve.A)({root:{width:Ee.hC.drawerWidthClosed,height:3*Ee.hC.logoHeight,display:"flex",flexFlow:"row nowrap",alignItems:"center",marginBottom:-14},link:{width:Ee.hC.drawerWidthClosed,marginLeft:24}}),Va=()=>{const r=Ha(),{isOpen:e}=$s();return(0,a.jsx)("div",{className:r.root,children:(0,a.jsx)(Er.N_,{to:"/docs/default/component/local/",underline:"none",className:r.link,children:e?(0,a.jsx)(ua,{}):(0,a.jsx)(pa,{})})})},Ga=({children:r})=>(0,a.jsxs)(Ar.G,{children:[(0,a.jsxs)(wa,{children:[(0,a.jsx)(Va,{}),(0,a.jsx)(Ka,{}),(0,a.jsx)(Lr,{icon:la.A,to:"/docs/default/component/local",text:"Docs Preview"})]}),r]});var Ya=t(71677),Qa=t(62437),Za=t(55484),Ja=t(45061),Xa=t(81215);const _a=(0,Ve.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 Mr;(function(r){r.LIGHT="light",r.DARK="dark"})(Mr||(Mr={}));const qa=()=>{const r=(0,Sn.gf)(Kn),e=_a(),[s,o]=(0,d.useState)(r.getActiveThemeId()==="dark"?"dark":"light"),i={light:{icon:Za.A,title:"Dark theme"},dark:{icon:Qa.A,title:"Light theme"}},{title:c,icon:P}=i[s],C=()=>{o(D=>{const z=D==="light"?"dark":"light";return r.setActiveThemeId(z),z})};return(0,a.jsx)(_e.A,{display:"flex",alignItems:"center",mr:2,children:(0,a.jsx)(Ya.Ay,{title:c,arrow:!0,children:(0,a.jsx)(Cr.A,{size:"small",onClick:C,children:(0,a.jsx)(P,{className:e.headerIcon})})})})},ti=()=>(0,a.jsxs)(h.Wj,{children:[(0,a.jsx)(Ja.T,{}),(0,a.jsx)(Xa.p,{withSearch:!1})]}),ei=(0,a.jsx)(ti,{}),jr=Bo({apis:ra,configLoader:ca,plugins:Object.values(n)}),ni=jr.getProvider(),si=jr.getRouter(),ri=h.Ju.provide((0,p.Hr)({name:"ThemeToggleAddon",component:qa,location:g.e.Header})),oi=(0,a.jsxs)(lr,{children:[(0,a.jsx)(m.C5,{to:"/docs/default/component/local/"},"/"),(0,a.jsx)(m.qh,{path:"/catalog/:namespace/:kind/:name",element:(0,a.jsx)(ea,{})}),(0,a.jsx)(m.qh,{path:"/docs",element:(0,a.jsx)(h.$j,{}),children:(0,a.jsx)(u.K,{})}),(0,a.jsxs)(m.qh,{path:"/docs/:namespace/:kind/:name/*",element:(0,a.jsx)(h.Wj,{}),children:[ei,(0,a.jsx)(p.po,{children:(0,a.jsx)(ri,{})})]})]}),ai=()=>(0,a.jsx)(ni,{children:(0,a.jsx)(si,{children:(0,a.jsx)(Ga,{children:oi})})});x.createRoot(document.getElementById("root")).render((0,a.jsx)(ai,{}))},43836:(G,b,t)=>{"use strict";t.d(b,{qO:()=>x,tK:()=>d});var n=t(14041),a=t(63544);function d(h){return(0,a.Q)(h,()=>(0,n.createContext)(void 0))}function x(h){return(0,n.useContext)(d(h))}function m(h){return{set(u){globalThis[`__@backstage/${h}__`]=createContext(createVersionedValueMap(u))},reset(){delete globalThis[`__@backstage/${h}__`]}}}},10602:(G,b,t)=>{"use strict";t.d(b,{B:()=>n});function n(a){Object.freeze(a);const d={atVersion(x){return a[x]}};return Object.defineProperty(d,"$map",{configurable:!0,enumerable:!0,get(){return a}}),d}},63544:(G,b,t)=>{"use strict";t.d(b,{Q:()=>x});function n(){return typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")()}const a=n(),d=m=>`__@backstage/${m}__`;function x(m,h){const u=d(m);let p=a[u];return p||(p=h(),a[u]=p,p)}},7341:(G,b,t)=>{"use strict";t.d(b,{v:()=>a});var n=t(55309);const a=(0,n.y)({id:"plugin.catalog.service"})},82292:(G,b,t)=>{"use strict";t.d(b,{n:()=>a});var n=t(55309);const a=(0,n.y)({id:"plugin.catalog.entity-presentation"})},88083:(G,b,t)=>{"use strict";t.d(b,{T:()=>m});var n=t(6820),a=t(72348),d=t(46123),x=t.n(d);function m(g,v){const{kind:y,namespace:A,name:T,title:O,description:R,displayName:S,type:j}=u(g),k=(0,n.U2)({kind:y||"unknown",namespace:A||a.oQ,name:T||"unknown"}),L=p({kind:y,namespace:A,name:T,context:v}),X=[S,O,L].find(W=>W&&typeof W=="string"),Y=[X!==k?k:void 0,j,R].filter(W=>W&&typeof W=="string").join(" | ");return{entityRef:k,primaryTitle:X,secondaryTitle:Y||void 0,Icon:void 0}}const h=g=>!!g&&typeof g=="string";function u(g){if(typeof g=="string"){let v=g.indexOf(":");const y=g.indexOf("/");y!==-1&&y<v&&(v=-1);const A=v===-1?void 0:g.slice(0,v),T=y===-1?void 0:g.slice(v+1,y),O=g.slice(Math.max(v+1,y+1));return{kind:A,namespace:T,name:O}}if(typeof g=="object"&&g!==null){const v=[x()(g,"kind")].find(h),y=[x()(g,"metadata.namespace"),x()(g,"namespace")].find(h),A=[x()(g,"metadata.name"),x()(g,"name")].find(h),T=[x()(g,"metadata.title")].find(h),O=[x()(g,"metadata.description")].find(h),R=[x()(g,"spec.profile.displayName")].find(h),S=[x()(g,"spec.type")].find(h);return{kind:v,namespace:y,name:A,title:T,description:O,displayName:R,type:S}}return{}}function p(g){const v=g.kind?.toLocaleLowerCase("en-US")||"unknown",y=g.namespace||a.oQ,A=g.name||"unknown",T=g.context?.defaultKind?.toLocaleLowerCase("en-US"),O=g.context?.defaultNamespace?.toLocaleLowerCase("en-US");let R=A;return(O&&y.toLocaleLowerCase("en-US")!==O||y!==a.oQ)&&(R=`${y}/${R}`),T&&v.toLocaleLowerCase("en-US")!==T&&(R=`${v}:${R}`),R}},3169:(G,b,t)=>{"use strict";t.d(b,{f:()=>u});var n=t(6820),a=t(72427),d=t(14041),x=t(82292),m=t(88083);function h(p,g,v){const[y,A]=(0,d.useState)(p);return(0,d.useEffect)(()=>{A(p);const T=g?.subscribe({next:O=>{A(O)},complete:()=>{T?.unsubscribe()}});return()=>{T?.unsubscribe()}},v),y}function u(p,g){const y=(0,a.Q2)().get(x.n),A=[y,JSON.stringify(p),JSON.stringify(g||null)],T=(0,d.useMemo)(()=>{if(!y){const O=(0,m.T)(p,g);return{snapshot:O,promise:Promise.resolve(O)}}return y.forEntity(typeof p=="string"||"metadata"in p?p:(0,n.U2)(p),g)},A);return h(T.snapshot,T.update$,[T])}},18:(G,b,t)=>{"use strict";t.d(b,{a:()=>a});var n=t(55309);const a=(0,n.y)({id:"catalog-react.starred-entities"})},54203:(G,b,t)=>{"use strict";t.d(b,{GI:()=>R});var n=t(31085),a=t(14041),d=t(10394),x=t(64947),m=t(73845),h=t(42899),u=t(72501),p=t(5893),g=t(54917),v=t(65859),y=t(64630),A=t(87849);const T=S=>{const j=(0,p.A)(W=>W.breakpoints.down(S.options?.drawerBreakpoint??"md")),k=(0,g.A)(),[L,X]=(0,a.useState)(!1),{t:Y}=(0,A.i)(y.j);return j?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.A,{style:{marginTop:k.spacing(1),marginLeft:k.spacing(1)},onClick:()=>X(!0),startIcon:(0,n.jsx)(v.A,{}),children:Y("catalogFilter.buttonTitle")}),(0,n.jsx)(m.Ay,{open:L,onClose:()=>X(!1),anchor:S.options?.drawerAnchor??"left",disableAutoFocus:!0,keepMounted:!0,variant:"temporary",children:(0,n.jsxs)(d.A,{m:2,children:[(0,n.jsx)(u.A,{variant:"h6",component:"h2",style:{marginBottom:k.spacing(1)},children:Y("catalogFilter.title")}),S.children]})})]}):(0,n.jsx)(h.A,{item:!0,lg:2,children:S.children})},O=S=>(0,n.jsx)(h.A,{item:!0,xs:12,lg:10,children:S.children}),R=S=>(0,n.jsx)(h.A,{container:!0,style:{position:"relative"},children:S.children});R.Filters=T,R.Content=O},50207:(G,b,t)=>{"use strict";t.d(b,{y:()=>V});var n=t(31085),a=t(10394),d=t(72501),x=t(58837),m=t(6924),h=t(20577),u=t(14041),p=t(72427),g=t(73466),v=t(7341),y=t(69076),A=t(86901),T=t(44148),O=t(41260);const R=(0,n.jsx)(O.A,{fontSize:"small"}),S=(0,n.jsx)(T.A,{fontSize:"small"});function j({selected:tt}){return(0,n.jsx)(y.A,{icon:R,checkedIcon:S,checked:tt})}const k=(0,u.memo)(tt=>{const{selected:_,value:ct,availableOptions:ht,showCounts:mt}=tt,Et=mt?`${ct} (${ht?.[ct]})`:ct;return(0,n.jsx)(A.A,{control:(0,n.jsx)(j,{selected:_}),label:Et,onClick:xt=>xt.preventDefault()})});var L=t(16249),X=t(53373),Y=t.n(X);const W=(0,x.A)({input:{}},{name:"CatalogReactEntityAutocompletePickerInput"});function Q(tt){const _=W();return(0,n.jsx)(L.A,{variant:"outlined",...tt,className:Y()(_.input,tt.className)})}var K=t(21405),H=t(26796);const Z=(0,x.A)({root:{},label:{}},{name:"CatalogReactEntityAutocompletePicker"});function V(tt){const{label:_,name:ct,path:ht,showCounts:mt,Filter:Et,InputProps:xt,initialSelectedOptions:At=[],filtersForAvailableValues:lt=["kind"]}=tt,Ct=Z(),{updateFilters:yt,filters:Tt,queryParameters:{[ct]:bt}}=(0,K.nK)(),It=(0,p.gf)(v.v),zt=lt.map(pt=>Tt[pt]),{value:Ht}=(0,g.A)(async()=>{const pt=ht,{facets:ut}=await It.getEntityFacets({facets:[pt],filter:(0,H.Rr)(zt.filter(Boolean))});return Object.fromEntries(ut[pt].map(({value:vt,count:wt})=>[vt,wt]))},[...zt]),gt=(0,u.useMemo)(()=>[bt].flat().filter(Boolean),[bt]),[Dt,M]=(0,u.useState)(gt.length?gt:Tt[ct]?.values??At);(0,u.useEffect)(()=>{gt.length&&M(gt)},[gt]);const $=Object.keys(Ht??{}),nt=Dt.length&&$.length;(0,u.useEffect)(()=>{yt({[ct]:nt?new Et(Dt):void 0})},[ct,nt,Dt,Et,yt]);const ot=Tt[ct];return ot&&typeof ot=="object"&&!("values"in ot)||!$.length?null:(0,n.jsx)(a.A,{className:Ct.root,pb:1,pt:1,children:(0,n.jsxs)(d.A,{className:Ct.label,variant:"button",component:"label",children:[_,(0,n.jsx)(h.Ay,{PopperComponent:pt=>(0,n.jsx)("div",{...pt,children:pt.children}),multiple:!0,disableCloseOnSelect:!0,options:$,value:Dt,onChange:(pt,ut)=>M(ut),renderOption:(pt,{selected:ut})=>(0,n.jsx)(k,{selected:ut,value:pt,availableOptions:Ht,showCounts:!!mt}),size:"small",popupIcon:(0,n.jsx)(m.A,{"data-testid":`${String(ct)}-picker-expand`}),renderInput:pt=>(0,n.jsx)(Q,{...pt,...xt})})]})})}},72987:(G,b,t)=>{"use strict";t.d(b,{t:()=>Dt});var n=t(31085),a=t(6820),d=t(10394),x=t(69076),m=t(86901),h=t(16249),u=t(72501),p=t(71677),g=t(58837),v=t(44148),y=t(41260),A=t(6924),T=t(20577),O=t(14041),R=t(21405),S=t(92822),j=t(92367),k=t(48108),L=t(47966),X=t(90184),Y=t(72427),W=t(87290),Q=t(7341),K=t(46123),H=t.n(K);const Z=M=>typeof M=="string"?M:void 0;function V({enabled:M}){const $=(0,Y.gf)(Q.v),[nt]=(0,O.useState)(async()=>{if(!M)return[];const ot="relations.ownedBy",ut=(await $.getEntityFacets({facets:[ot]})).facets[ot]?.map(vt=>vt.value)??[];return $.getEntitiesByRefs({entityRefs:ut}).then(vt=>vt.items.filter(wt=>wt!==void 0).map(wt=>wt).sort((wt,Bt)=>(wt.metadata.namespace||"").localeCompare(Bt.metadata.namespace||"","en-US")||(Z(H()(wt,"spec.profile.displayName"))||wt.metadata.title||wt.metadata.name).localeCompare(Z(H()(Bt,"spec.profile.displayName"))||Bt.metadata.title||Bt.metadata.name,"en-US")||wt.kind.localeCompare(Bt.kind,"en-US"))).then(vt=>vt).catch(()=>[])});return(0,W.A)(async(ot,pt)=>{const ut=await nt;if(!ut)return{items:[]};const vt=pt?.limit??20,{text:wt,start:Bt}=tt(ot),Ut=ut.filter(ie=>ht(wt,ie)),Wt=Bt+vt;return{items:Ut.slice(0,Wt),...ct({entities:Ut,limit:Wt,payload:{text:wt,start:Wt}})}},[nt],{loading:!0,value:{items:[]}})}function tt(M){return _(M)&&M.cursor?JSON.parse(atob(M.cursor)):{text:M.text||"",start:0}}function _(M){return!!M.cursor}function ct({entities:M,limit:$,payload:nt}){return M.length>$?{cursor:btoa(JSON.stringify(nt))}:{}}function ht(M,$){const nt=M.trim();return $.kind.includes(nt)||$.metadata.namespace?.includes(nt)||$.metadata.name.includes(nt)||$.metadata.title?.includes(nt)||H()($,"spec.profile.displayName")?.includes(nt)}function mt(){const M=(0,Y.gf)(Q.v);return(0,W.A)(async($,nt)=>{const ot=$,pt=$,ut=nt?.limit??20;if(pt.cursor){const wt=await M.queryEntities({cursor:pt.cursor,limit:ut});return{cursor:wt.pageInfo.nextCursor,items:[...pt.items,...wt.items]}}const vt=await M.queryEntities({fullTextFilter:{term:ot.text||"",fields:["metadata.name","kind","spec.profile.displayname","metadata.title"]},filter:{kind:["User","Group"]},orderFields:[{field:"metadata.name",order:"asc"}],limit:ut});return{cursor:vt.pageInfo.nextCursor,items:vt.items}},[],{loading:!0})}var Et=t(76842);function xt({mode:M,initialSelectedOwnersRefs:$}){const nt=M==="owners-only",ot=mt(),pt=V({enabled:nt}),[ut,vt]=nt?pt:ot;return[ut,vt,At({enabled:!nt,initialSelectedOwnersRefs:$})]}function At({enabled:M,initialSelectedOwnersRefs:$}){const nt=(0,O.useRef)({}),ot=(0,Y.gf)(Q.v),[,pt]=(0,W.A)(async()=>{(await ot.getEntitiesByRefs({entityRefs:$})).items.forEach(vt=>{vt&&(nt.current[(0,a.U2)(vt)]=vt)})},[]);return(0,Et.u)(()=>{M&&$.length>0&&pt()}),{getEntity:ut=>nt.current[ut],setEntity:ut=>{nt.current[(0,a.U2)(ut)]=ut}}}var lt=t(87051),Ct=t(3169),yt=t(64630),Tt=t(87849);const bt=(0,g.A)({root:{},label:{},input:{},fullWidth:{width:"100%"},boxLabel:{width:"100%",textOverflow:"ellipsis",overflow:"hidden"}},{name:"CatalogReactEntityOwnerPicker"}),It=(0,lt.A)(M=>({label:{width:"100%"},root:{width:"90%"}}),{name:"FixedWidthFormControlLabel"})(m.A),zt=(0,n.jsx)(y.A,{fontSize:"small"}),Ht=(0,n.jsx)(v.A,{fontSize:"small"});function gt(M){const $=bt(),nt=M.entity.kind.toLocaleLowerCase("en-US")==="group",{primaryTitle:ot}=(0,Ct.f)(M.entity);return(0,n.jsx)(d.A,{className:$.fullWidth,children:(0,n.jsx)(It,{className:$.fullWidth,control:(0,n.jsx)(x.A,{icon:zt,checkedIcon:Ht,checked:M.isSelected}),onClick:pt=>pt.preventDefault(),label:(0,n.jsx)(p.Ay,{title:ot,children:(0,n.jsxs)(d.A,{display:"flex",alignItems:"center",children:[nt?(0,n.jsx)(L.A,{fontSize:"small"}):(0,n.jsx)(k.A,{fontSize:"small"}),"\xA0",(0,n.jsx)(d.A,{className:$.boxLabel,children:(0,n.jsx)(u.A,{noWrap:!0,children:ot})})]})})})})}const Dt=M=>{const $=bt(),{mode:nt="owners-only"}=M||{},{updateFilters:ot,filters:pt,queryParameters:{owners:ut}}=(0,R.nK)(),[vt,wt]=(0,O.useState)(""),{t:Bt}=(0,Tt.i)(yt.j),Ut=(0,O.useMemo)(()=>[ut].flat().filter(Boolean),[ut]),[Wt,ie]=(0,O.useState)(Ut.length?Ut:pt.owners?.values??[]),[{value:ce,loading:pe},Jt,se]=xt({mode:nt,initialSelectedOwnersRefs:Wt});(0,j.s)(()=>Jt({text:vt}),[vt,Jt],250);const Ae=ce?.items||[];return(0,O.useEffect)(()=>{if(Ut.length){const Vt=new S.N9(Ut);ie(Vt.values)}},[Ut]),(0,O.useEffect)(()=>{ot({owners:Wt.length?new S.N9(Wt):void 0})},[Wt,ot]),["user","group"].includes(pt.kind?.value.toLocaleLowerCase("en-US")||"")?null:(0,n.jsx)(d.A,{className:$.root,pb:1,pt:1,children:(0,n.jsxs)(u.A,{className:$.label,variant:"button",component:"label",children:[Bt("entityOwnerPicker.title"),(0,n.jsx)(T.Ay,{PopperComponent:Vt=>(0,n.jsx)("div",{...Vt,children:Vt.children}),multiple:!0,disableCloseOnSelect:!0,loading:pe,options:Ae,value:Wt,getOptionSelected:(Vt,qt)=>typeof qt=="string"?(0,a.U2)(Vt)===qt:Vt===qt,getOptionLabel:Vt=>{const qt=typeof Vt=="string"?se.getEntity(Vt)||(0,a.KU)(Vt,{defaultKind:"group",defaultNamespace:"default"}):Vt;return(0,X.Z)(qt,(0,X.S)(qt))},onChange:(Vt,qt)=>{wt(""),ie(qt.map(Te=>{const Qt=typeof Te=="string"?Te:(0,a.U2)(Te);return typeof Te!="string"&&se.setEntity(Te),Qt}))},filterOptions:Vt=>Vt,renderOption:(Vt,{selected:qt})=>(0,n.jsx)(gt,{entity:Vt,isSelected:qt}),size:"small",popupIcon:(0,n.jsx)(A.A,{"data-testid":"owner-picker-expand"}),renderInput:Vt=>(0,n.jsx)(h.A,{...Vt,className:$.input,onChange:qt=>{wt(qt.currentTarget.value)},variant:"outlined"}),ListboxProps:{onScroll:Vt=>{const qt=Vt.currentTarget;Math.abs(qt.scrollHeight-qt.clientHeight-qt.scrollTop)<1&&ce?.cursor&&Jt({items:ce.items,cursor:ce.cursor})},"data-testid":"owner-picker-listbox"}})]})})}},8859:(G,b,t)=>{"use strict";t.d(b,{z:()=>O});var n=t(31085),a=t(6820),d=t(72348),x=t(72072),m=t(9222),h=t(14041),u=t(29207),p=t(10394),g=t(71677),v=t(58837),y=t(3169);const A=(0,v.A)(S=>({root:{display:"inline-flex",alignItems:"center"},icon:{marginRight:S.spacing(.5),color:S.palette.text.secondary,"& svg":{verticalAlign:"middle"}}}),{name:"CatalogReactEntityDisplayName"}),T=S=>{const{entityRef:j,hideIcon:k,disableTooltip:L,defaultKind:X,defaultNamespace:Y}=S,W=A(),{primaryTitle:Q,secondaryTitle:K,Icon:H}=(0,y.f)(j,{defaultKind:X,defaultNamespace:Y});let Z=(0,n.jsx)(n.Fragment,{children:Q});return Z=(0,n.jsxs)(p.A,{component:"span",className:W.root,children:[H&&!k?(0,n.jsx)(p.A,{component:"span",className:W.icon,children:(0,n.jsx)(H,{fontSize:"inherit"})}):null,Z]}),K&&!L&&(Z=(0,n.jsx)(g.Ay,{enterDelay:1500,title:K,children:Z})),Z},O=(0,h.forwardRef)((S,j)=>{const{entityRef:k,defaultKind:L,defaultNamespace:X,title:Y,children:W,hideIcon:Q,...K}=S,H=R(S.entityRef),Z=W??Y??(0,n.jsx)(T,{entityRef:k,defaultKind:L,defaultNamespace:X,hideIcon:Q});return(0,n.jsx)(x.N_,{...K,ref:j,to:H,children:Z})});function R(S){const j=(0,m.S)(u.s);let k,L,X;if(typeof S=="string"){const W=(0,a.KU)(S);k=W.kind,L=W.namespace,X=W.name}else"metadata"in S?(k=S.kind,L=S.metadata.namespace,X=S.metadata.name):(k=S.kind,L=S.namespace,X=S.name);k=k.toLocaleLowerCase("en-US"),L=L?.toLocaleLowerCase("en-US")??d.oQ;const Y={kind:encodeURIComponent(k),namespace:encodeURIComponent(L),name:encodeURIComponent(X)};return j(Y)}},34428:(G,b,t)=>{"use strict";t.d(b,{i:()=>m});var n=t(31085),a=t(6820),d=t(14041),x=t(8859);function m(h){const{entityRefs:u,hideIcons:p,...g}=h;return(0,n.jsx)(n.Fragment,{children:u.map((v,y)=>{const A=typeof v=="string"?v:(0,a.U2)(v);return(0,n.jsxs)(d.Fragment,{children:[y>0&&", ",(0,n.jsx)(x.z,{...g,entityRef:v,hideIcon:p})]},`${y}.${A}`)})})}},90184:(G,b,t)=>{"use strict";t.d(b,{S:()=>x,Z:()=>m});var n=t(72348),a=t(46123),d=t.n(a);function x(h,u){const p=u?.defaultKind;let g,v,y;return"metadata"in h?(g=h.kind,v=h.metadata.namespace,y=h.metadata.name):(g=h.kind,v=h.namespace,y=h.name),(v===void 0||v==="")&&(v=n.oQ),u?.defaultNamespace!==void 0?u?.defaultNamespace===v&&(v=void 0):v===n.oQ&&(v=void 0),g=g.toLocaleLowerCase("en-US"),g=p&&p.toLocaleLowerCase("en-US")===g?void 0:g,`${g?`${g}:`:""}${v?`${v}/`:""}${y}`}function m(h,u){for(const p of["spec.profile.displayName","metadata.title"]){const g=d()(h,p);if(g&&typeof g=="string")return g}return u}},91035:(G,b,t)=>{"use strict";t.d(b,{m:()=>g});var n=t(31085),a=t(58837),d=t(14041),x=t(92822),m=t(50207),h=t(64630),u=t(87849);const p=(0,a.A)({input:{}},{name:"CatalogReactEntityTagPicker"}),g=v=>{const y=p(),{t:A}=(0,u.i)(h.j);return(0,n.jsx)(m.y,{label:A("entityTagPicker.title"),name:"tags",path:"metadata.tags",Filter:x.q_,showCounts:v.showCounts,InputProps:{className:y.input}})}},67626:(G,b,t)=>{"use strict";t.d(b,{y:()=>xt});var n=t(31085),a=t(72427),d=t(65461),x=t(40703),m=t(58007),h=t(46423),u=t(65569),p=t(5951),g=t(26343),v=t(72501),y=t(58837),A=t(9684),T=t(31129),O=t(14041),R=t(92822),S=t(21405),j=t(16009),k=t(45250),L=t(73466),X=t(7341),Y=t(26796),W=t(87290),Q=t(48899);function K(){const At=(0,a.gf)(j.K),lt=(0,a.gf)(X.v),{filters:Ct}=(0,S.nK)(),{value:yt,loading:Tt}=(0,L.A)(async()=>(await At.getBackstageIdentity()).ownershipEntityRefs,[]),{user:bt,owners:It,...zt}=Ct,Ht=(0,Y.$3)((0,k.compact)(Object.values(zt))),[{value:gt,loading:Dt},M]=(0,W.A)(async nt=>{const ot=H(nt.owners,nt.ownershipEntityRefs);if(ot===void 0)return 0;const{["metadata.name"]:pt,...ut}=nt.filter.filter,{totalItems:vt}=await lt.queryEntities({...nt.filter,filter:{...ut,"relations.ownedBy":ot},limit:0});return vt},[],{loading:!0});return(0,Q.A)(()=>{Object.keys(Ht.filter).length!==0&&yt!==void 0&&M({ownershipEntityRefs:yt,owners:It,filter:Ht})},[yt,It,Ht]),{count:gt,loading:Tt||Dt,filter:(0,O.useMemo)(()=>R.tN.owned(yt??[]),[yt]),ownershipEntityRefs:yt}}function H(At,lt){if(lt===void 0)return;const Ct=At?.values??[];if(Ct.length){const yt=(0,k.intersection)(Ct,lt);return yt.length===0?void 0:yt}return lt}function Z(){const At=(0,a.gf)(X.v),{filters:lt}=(0,S.nK)(),Ct=(0,O.useRef)(),yt=(0,O.useMemo)(()=>{const{user:It,...zt}=lt,Ht=(0,k.compact)(Object.values(zt)),gt=(0,Y.$3)(Ht),Dt={...gt,limit:0};return Object.keys(gt.filter).length===0?(Ct.current=void 0,Ct.current):(0,k.isEqual)(Dt,Ct.current)?Ct.current:(Ct.current=Dt,Dt)},[lt]),{value:Tt,loading:bt}=(0,L.A)(async()=>{if(yt===void 0)return 0;const{totalItems:It}=await At.queryEntities(yt);return It},[yt]);return{count:Tt,loading:bt}}var V=t(6820),tt=t(56889);function _(){const At=(0,a.gf)(X.v),{filters:lt}=(0,S.nK)(),{starredEntities:Ct}=(0,tt.I)(),yt=(0,O.useRef)(),Tt=(0,O.useMemo)(()=>{const{user:Ht,...gt}=lt,Dt=(0,k.compact)(Object.values(gt)),M=(0,Y.$3)(Dt),nt={...M,filter:{...M.filter,["metadata.name"]:Array.from(Ct).map(ot=>(0,V.KU)(ot).name)},limit:1e3};return(0,k.isEqual)(nt,yt.current)?yt.current:(yt.current=nt,nt)},[lt,Ct]),{value:bt,loading:It}=(0,L.A)(async()=>Ct.size?(await At.queryEntities(Tt)).items.map(gt=>(0,V.U2)({kind:gt.kind,namespace:gt.metadata.namespace,name:gt.metadata.name})).filter(gt=>Ct.has(gt)).length:0,[Tt,Ct]),zt=(0,O.useMemo)(()=>R.tN.starred(Array.from(Ct)),[Ct]);return{count:bt,loading:It,filter:zt}}var ct=t(87849),ht=t(64630);const mt=(0,y.A)(At=>({root:{backgroundColor:"rgba(0, 0, 0, .11)",boxShadow:"none",margin:At.spacing(1,0,1,0)},title:{margin:At.spacing(1,0,0,1),textTransform:"uppercase",fontSize:12,fontWeight:"bold"},listIcon:{minWidth:30,color:At.palette.text.primary},menuItem:{minHeight:At.spacing(6)},groupWrapper:{margin:At.spacing(1,1,2,1)}}),{name:"CatalogReactUserListPicker"});function Et(At,lt){return[{name:lt("userListPicker.personalFilter.title"),items:[{id:"owned",label:lt("userListPicker.personalFilter.ownedLabel"),icon:A.A},{id:"starred",label:lt("userListPicker.personalFilter.starredLabel"),icon:T.Gg}]},{name:At,items:[{id:"all",label:lt("userListPicker.orgFilterAllLabel")}]}]}const xt=At=>{const{initialFilter:lt,availableFilters:Ct}=At,yt=mt(),Tt=(0,a.gf)(d.U),{t:bt}=(0,ct.i)(ht.j),It=Tt.getOptionalString("organization.name")??bt("userListPicker.defaultOrgName"),{filters:zt,updateFilters:Ht,queryParameters:{kind:gt,user:Dt}}=(0,S.nK)(),M=["starred","all"],$=Et(It,bt).map(Jt=>({...Jt,items:Jt.items.filter(({id:se})=>["group","user"].some(Ae=>Ae===gt)?M.includes(se):!Ct||Ct.includes(se))})).filter(({items:Jt})=>!!Jt.length),{count:nt,loading:ot,filter:pt}=K(),{count:ut}=Z(),{count:vt,filter:wt,loading:Bt}=_(),Ut=(0,O.useMemo)(()=>[Dt].flat()[0],[Dt]),[Wt,ie]=(0,O.useState)(Ut??lt),ce=(0,O.useMemo)(()=>({all:ut,starred:vt,owned:nt}),[vt,nt,ut]);(0,O.useEffect)(()=>{Ut&&ie(Ut)},[Ut]);const pe=ot||Bt;return(0,O.useEffect)(()=>{!pe&&Wt&&Wt!=="all"&&ce[Wt]===0&&ie("all")},[pe,ce,Wt,ie]),(0,O.useEffect)(()=>{if(!Wt||pe)return;Ht({user:Wt==="owned"?pt:Wt==="starred"?wt:R.tN.all()})},[Wt,wt,pt,Ht,pe]),(0,n.jsx)(x.A,{className:yt.root,children:$.map(Jt=>(0,n.jsxs)(O.Fragment,{children:[(0,n.jsx)(v.A,{variant:"subtitle2",component:"span",className:yt.title,children:Jt.name}),(0,n.jsx)(x.A,{className:yt.groupWrapper,children:(0,n.jsx)(m.A,{disablePadding:!0,dense:!0,role:"menu","aria-label":Jt.name,children:Jt.items.map((se,Ae)=>(0,n.jsxs)(g.A,{role:"none presentation",divider:Ae!==Jt.items.length-1,onClick:()=>ie(se.id),selected:se.id===zt.user?.value,className:yt.menuItem,disabled:ce[se.id]===0,"data-testid":`user-picker-${se.id}`,tabIndex:0,ContainerProps:{role:"menuitem"},children:[se.icon&&(0,n.jsx)(h.A,{className:yt.listIcon,children:(0,n.jsx)(se.icon,{fontSize:"small"})}),(0,n.jsx)(p.A,{children:(0,n.jsxs)(v.A,{variant:"body1",children:[se.label," "]})}),(0,n.jsx)(u.A,{children:ce[se.id]??"-"})]},se.id))})})]},Jt.name))})}},92822:(G,b,t)=>{"use strict";t.d(b,{I5:()=>g,Kf:()=>T,N9:()=>p,V3:()=>u,gM:()=>x,gZ:()=>A,mT:()=>O,qA:()=>m,q_:()=>h,tN:()=>y,z:()=>v});var n=t(6820),a=t(51372),d=t(67871);class x{value;constructor(S){this.value=S}getCatalogFilters(){return{kind:this.value}}toQueryValue(){return this.value}}class m{value;constructor(S){this.value=S}getTypes(){return Array.isArray(this.value)?this.value:[this.value]}getCatalogFilters(){return{"spec.type":this.getTypes()}}toQueryValue(){return this.getTypes()}}class h{values;constructor(S){this.values=S}filterEntity(S){return this.values.every(j=>(S.metadata.tags??[]).includes(j))}getCatalogFilters(){return{"metadata.tags":this.values}}toQueryValue(){return this.values}}class u{value;constructor(S){this.value=S}filterEntity(S){const j=this.toUpperArray(this.value.split(/\s/)),k=this.toUpperArray([S.metadata.tags]),L=this.toUpperArray([S.metadata.name,S.metadata.title]);for(const X of j)if(k.every(Y=>Y!==X)&&L.every(Y=>!Y.includes(X)))return!1;return!0}getFullTextFilters(){return{term:this.value,fields:["metadata.name","metadata.title","spec.profile.displayName"]}}toQueryValue(){return this.value}toUpperArray(S){return S.flat().filter(j=>!!j).map(j=>j.toLocaleUpperCase("en-US"))}}class p{values;constructor(S){this.values=S.reduce((j,k)=>{try{return j.push((0,n.U2)((0,n.KU)(k,{defaultKind:"Group"}))),j}catch{return j}},[])}getCatalogFilters(){return{"relations.ownedBy":this.values}}filterEntity(S){return this.values.some(j=>(0,d.t)(S,a.vv).some(k=>(0,n.U2)(k)===j))}toQueryValue(){return this.values}}class g{values;constructor(S){this.values=S}getCatalogFilters(){return{"spec.lifecycle":this.values}}filterEntity(S){return this.values.some(j=>S.spec?.lifecycle===j)}toQueryValue(){return this.values}}class v{values;constructor(S){this.values=S}getCatalogFilters(){return{"metadata.namespace":this.values}}filterEntity(S){return this.values.some(j=>S.metadata.namespace===j)}toQueryValue(){return this.values}}class y{value;refs;constructor(S,j){this.value=S,this.refs=j}static owned(S){return new y("owned",S)}static all(){return new y("all")}static starred(S){return new y("starred",S)}getCatalogFilters(){return this.value==="owned"?{"relations.ownedBy":this.refs??[]}:this.value==="starred"?{"metadata.name":this.refs?.map(S=>(0,n.KU)(S).name)??[]}:{}}filterEntity(S){if(this.value==="starred")return this.refs?.includes((0,n.U2)(S))??!0;if(this.value==="owned"){const j=(0,d.t)(S,a.vv);return this.refs?.some(k=>j.some(L=>(0,n.U2)(L)===k))??!1}return!0}toQueryValue(){return this.value}}class A{value;isOwnedEntity;isStarredEntity;constructor(S,j,k){this.value=S,this.isOwnedEntity=j,this.isStarredEntity=k}filterEntity(S){switch(this.value){case"owned":return this.isOwnedEntity(S);case"starred":return this.isStarredEntity(S);default:return!0}}toQueryValue(){return this.value}}class T{value;constructor(S){this.value=S}getCatalogFilters(){return this.value?{"metadata.annotations.backstage.io/orphan":String(this.value)}:{}}filterEntity(S){const j=S.metadata.annotations?.["backstage.io/orphan"];return j!==void 0&&this.value.toString()===j}}class O{value;constructor(S){this.value=S}filterEntity(S){const j=S?.status?.items?.length>0;return j!==void 0&&this.value===j}}},21405:(G,b,t)=>{"use strict";t.d(b,{B9:()=>R,nK:()=>S});var n=t(31085),a=t(45250),d=t.n(a),x=t(45810),m=t.n(x),h=t(14041),u=t(18690),p=t(87290),g=t(22771),v=t(71581),y=t(7341),A=t(26796),T=t(72427);const O=(0,h.createContext)(void 0),R=j=>{const k=(0,v.A)(),L=(0,T.gf)(y.v),[X,Y]=(0,h.useState)({}),W=(0,u.zy)(),K=j.pagination===!0?"cursor":typeof j.pagination=="object"?j.pagination.mode??"cursor":"none",H=typeof j.pagination=="object"?j.pagination.limit??20:20,{queryParameters:Z,cursor:V,offset:tt,limit:_}=(0,h.useMemo)(()=>{const gt=m().parse(W.search,{ignoreQueryPrefix:!0});let Dt=H;if(typeof gt.limit=="string"){const $=Number.parseInt(gt.limit,10);isNaN($)||(Dt=$)}const M=typeof gt.offset=="string"&&K==="offset"?Number.parseInt(gt.offset,10):void 0;return{queryParameters:gt.filters??{},cursor:typeof gt.cursor=="string"&&K==="cursor"?gt.cursor:void 0,offset:K==="offset"&&M&&!isNaN(M)?M:void 0,limit:Dt}},[K,W.search,H]),[ct,ht]=(0,h.useState)(V),[mt,Et]=(0,h.useState)(tt),[xt,At]=(0,h.useState)(_),[lt,Ct]=(0,h.useState)(()=>({appliedFilters:{},entities:[],backendEntities:[],pageInfo:K==="cursor"?{}:void 0,offset:mt,limit:xt})),[{loading:yt,error:Tt},bt]=(0,p.A)(async()=>{const gt=(0,a.compact)(Object.values(X)),Dt=Object.keys(X).reduce((M,$)=>{const nt=X[$];return nt?.toQueryValue&&(M[$]=nt.toQueryValue()),M},{});if(K!=="none")if(ct){if(ct!==lt.appliedCursor){const M=(0,A.be)(gt),$=await L.queryEntities({cursor:ct,limit:xt});Ct({appliedFilters:X,appliedCursor:ct,backendEntities:$.items,entities:$.items.filter(M),pageInfo:$.pageInfo,totalItems:$.totalItems})}}else{const M=(0,A.be)(gt),$=(0,A.$3)(gt),nt=(0,A.$3)((0,a.compact)(Object.values(lt.appliedFilters)));if(K==="offset"||!(0,a.isEqual)(nt,$)){const ot=await L.queryEntities({...$,limit:xt,offset:mt,orderFields:[{field:"metadata.name",order:"asc"}]});Ct({appliedFilters:X,backendEntities:ot.items,entities:ot.items.filter(M),pageInfo:ot.pageInfo,totalItems:ot.totalItems,limit:xt,offset:mt})}}else{const M=(0,A.be)(gt),$=(0,A.Rr)(gt),nt=(0,A.Rr)((0,a.compact)(Object.values(lt.appliedFilters)));if((0,a.isEqual)(nt,$)){const ot=lt.backendEntities.filter(M);Ct({appliedFilters:X,backendEntities:lt.backendEntities,entities:ot,totalItems:ot.length})}else{const ot=await L.getEntities({filter:$}),pt=ot.items.filter(M);Ct({appliedFilters:X,backendEntities:ot.items,entities:pt,totalItems:pt.length})}}if(k()){const M=m().parse(W.search,{ignoreQueryPrefix:!0}),$=m().stringify({...M,filters:Dt,cursor:ct,offset:mt,limit:xt},{addQueryPrefix:!0,arrayFormat:"repeat"}),nt=`${window.location.pathname}${$}`;window.history?.replaceState(null,document.title,nt)}},[L,Z,X,lt,ct,K,xt,mt],{loading:!0});(0,g.A)(bt,10,[X,ct,xt,mt]);const It=(0,h.useCallback)(gt=>{ht(void 0),Y(Dt=>{const M=typeof gt=="function"?gt(Dt):gt;return{...Dt,...M}})},[]),zt=(0,h.useMemo)(()=>{if(K!=="cursor")return;const gt=lt.pageInfo?.prevCursor,Dt=lt.pageInfo?.nextCursor;return{prev:gt?()=>ht(gt):void 0,next:Dt?()=>ht(Dt):void 0}},[K,lt.pageInfo]),Ht=(0,h.useMemo)(()=>({filters:lt.appliedFilters,entities:lt.entities,backendEntities:lt.backendEntities,updateFilters:It,queryParameters:Z,loading:yt,error:Tt,pageInfo:zt,totalItems:lt.totalItems,limit:xt,offset:mt,setLimit:At,setOffset:Et,paginationMode:K}),[lt,It,Z,yt,Tt,zt,xt,mt,K,At,Et]);return(0,n.jsx)(O.Provider,{value:Ht,children:j.children})};function S(){const j=(0,h.useContext)(O);if(!j)throw new Error("useEntityList must be used within EntityListProvider");return j}},56889:(G,b,t)=>{"use strict";t.d(b,{I:()=>u});var n=t(6820),a=t(72427),d=t(14041),x=t(1394),m=t(18);function h(p){return typeof p=="string"?p:(0,n.U2)(p)}function u(){const p=(0,a.gf)(m.a),g=(0,x.A)((0,d.useMemo)(()=>p.starredEntitie$(),[p]),new Set),v=(0,d.useCallback)(A=>g.has(h(A)),[g]),y=(0,d.useCallback)(A=>p.toggleStarred(h(A)).then(),[p]);return{starredEntities:g,toggleStarredEntity:y,isStarredEntity:v}}},29207:(G,b,t)=>{"use strict";t.d(b,{s:()=>d});var n=t(34569),a=t(63544);const d=(0,a.Q)("catalog:entity-route-ref",()=>(0,n.H)({id:"catalog:entity",params:["namespace","kind","name"]}));function x(m){return{kind:m.kind.toLocaleLowerCase("en-US"),namespace:m.metadata.namespace?.toLocaleLowerCase("en-US")??DEFAULT_NAMESPACE,name:m.metadata.name}}},64630:(G,b,t)=>{"use strict";t.d(b,{j:()=>a});var n=t(93184);const a=(0,n.h)({id:"catalog-react",messages:{catalogFilter:{title:"Filters",buttonTitle:"Filters"},entityKindPicker:{title:"Kind",errorMessage:"Failed to load entity kinds"},entityLifecyclePicker:{title:"Lifecycle"},entityNamespacePicker:{title:"Namespace"},entityOwnerPicker:{title:"Owner"},entityProcessingStatusPicker:{title:"Processing Status"},entityTagPicker:{title:"Tags"},entityPeekAheadPopover:{title:"Drill into the entity to see all of the tags.",emailCardAction:{title:"Email {{email}}",subTitle:"mailto {{email}}"},entityCardActionsTitle:"Show details"},entitySearchBar:{placeholder:"Search"},entityTypePicker:{title:"Type",errorMessage:"Failed to load entity types",optionAllTitle:"all"},favoriteEntity:{addToFavorites:"Add to favorites",removeFromFavorites:"Remove from favorites"},inspectEntityDialog:{title:"Entity Inspector",closeButtonTitle:"Close",ancestryPage:{title:"Ancestry"},colocatedPage:{title:"Colocated",description:"These are the entities that are colocated with this entity - as in, they originated from the same data source (e.g. came from the same YAML file), or from the same origin (e.g. the originally registered URL).",alertNoLocation:"Entity had no location information.",alertNoEntity:"There were no other entities on this location."},jsonPage:{title:"Entity as JSON",description:"This is the raw entity data as received from the catalog, on JSON form."},overviewPage:{title:"Overview"},yamlPage:{title:"Entity as YAML",description:"This is the raw entity data as received from the catalog, on YAML form."}},unregisterEntityDialog:{title:"Are you sure you want to unregister this entity?",cancelButtonTitle:"Cancel",deleteButtonTitle:"Delete Entity",deleteEntitySuccessMessage:"Removed entity {{entityName}}",bootstrapState:{title:'You cannot unregister this entity, since it originates from a protected Backstage configuration (location "{{location}}"). If you believe this is in error, please contact the {{appTitle}} integrator.',advancedDescription:"You have the option to delete the entity itself from the catalog. Note that this should only be done if you know that the catalog file has been deleted at, or moved from, its origin location. If that is not the case, the entity will reappear shortly as the next refresh round is performed by the catalog.",advancedOptions:"Advanced Options"},onlyDeleteStateTitle:"This entity does not seem to originate from a registered location. You therefore only have the option to delete it outright from the catalog.",unregisterState:{title:"This action will unregister the following entities:",subTitle:"Located at the following location:",description:"To undo, just re-register the entity in {{appTitle}}.",unregisterButtonTitle:"Unregister Location",advancedOptions:"Advanced Options",advancedDescription:"You also have the option to delete the entity itself from the catalog. Note that this should only be done if you know that the catalog file has been deleted at, or moved from, its origin location. If that is not the case, the entity will reappear shortly as the next refresh round is performed by the catalog."},errorStateTitle:"Internal error: Unknown state"},userListPicker:{defaultOrgName:"Company",personalFilter:{title:"Personal",ownedLabel:"Owned",starredLabel:"Starred"},orgFilterAllLabel:"All"}}})},26796:(G,b,t)=>{"use strict";t.d(b,{$3:()=>d,Rr:()=>x,be:()=>m});var n=t(92822);function a(h){return!!h.getFullTextFilters}function d(h){const u=h.reduce((g,v)=>({...g,...v.getCatalogFilters?v.getCatalogFilters():{}}),{}),p=h.find(a)?.getFullTextFilters();return{filter:u,fullTextFilter:p}}function x(h){const u={};return h.forEach(p=>{p instanceof n.q_||p instanceof n.N9||p instanceof n.I5||p instanceof n.z||p instanceof n.tN||p instanceof n.Kf||p instanceof n.V3||p instanceof n.gZ||Object.assign(u,p.getCatalogFilters?.()||{})}),u}function m(h){return u=>h.every(p=>!p.filterEntity||p.filterEntity(u))}},67871:(G,b,t)=>{"use strict";t.d(b,{t:()=>a});var n=t(6820);function a(d,x,m){let h=d?.relations?.filter(u=>u.type===x).map(u=>(0,n.KU)(u.targetRef))||[];return m?.kind&&(h=h.filter(u=>u.kind.toLocaleLowerCase("en-US")===m.kind.toLocaleLowerCase("en-US"))),h}},95203:(G,b,t)=>{"use strict";t.d(b,{qP:()=>h,Zg:()=>p,rQ:()=>v,pS:()=>g,UJ:()=>u});var n=t(59598);let a=n.b;class d{id;params;optional;defaultTarget;[a];constructor(A,T,O,R){this.id=A,this.params=T,this.optional=O,this.defaultTarget=R,this[a]="external"}toString(){return`routeRef{type=external,id=${this.id}}`}getDefaultTarget(){return this.defaultTarget}}function x(y){return new d(y.id,y.params??[],!!y.optional,y?.defaultTarget)}var m=t(34569);const h=x({id:"create-component",optional:!0,defaultTarget:"scaffolder.createComponent"}),u=x({id:"view-techdoc",optional:!0,params:["namespace","kind","name"],defaultTarget:"techdocs.docRoot"}),p=x({id:"create-from-template",optional:!0,params:["namespace","templateName"],defaultTarget:"scaffolder.selectedTemplate"}),g=x({id:"catalog:unregister-redirect",optional:!0}),v=(0,m.H)({id:"catalog"})},54241:(G,b,t)=>{"use strict";t.d(b,{b:()=>n});var n;(function(a){a.DENY="DENY",a.ALLOW="ALLOW",a.CONDITIONAL="CONDITIONAL"})(n||(n={}))},96824:(G,b,t)=>{"use strict";t.d(b,{x:()=>a});var n=t(55309);const a=(0,n.y)({id:"plugin.permission.api"})},70734:(G,b,t)=>{"use strict";t.d(b,{e:()=>m});var n=t(31085),a=t(14041),d=t(58837);const x=(0,d.A)(()=>({highlight:{}}),{name:"BackstageHighlightedSearchResultText"}),m=h=>{const{text:u,preTag:p,postTag:g}=h,v=x(),y=(0,a.useMemo)(()=>u.split(new RegExp(`(${p}.+?${g})`)),[g,p,u]);return(0,n.jsx)(n.Fragment,{children:y.map((A,T)=>A.includes(p)?(0,n.jsx)("mark",{className:v.highlight,children:A.replace(new RegExp(`${p}|${g}`,"g"),"")},T):A)})}},54560:(G,b,t)=>{"use strict";t.d(b,{ec:()=>g});var n=t(31085),a=t(14041),d=t(93368),x=t(88758),m=t(8109);const h="search.results.list.items.extensions.v1",u=(A,T)=>{for(const O of A)if(!(!isValidElement(O)||!getComponentData(O,h)?.(T)))return cloneElement(O,{rank:T.rank,highlight:T.highlight,result:T.document,...O.props});return null},p=A=>{const{rank:T,result:O,noTrack:R,children:S,alignItems:j="flex-start",...k}=A,L=(0,d.s)(),X=(0,a.useCallback)(()=>{R||O&&L.captureEvent("discover",O.title,{attributes:{to:O.location},value:T})},[T,O,R,L]);return(0,n.jsx)(m.A,{divider:!0,alignItems:j,onClickCapture:X,...k,children:S})},g=A=>{const{name:T,component:O,predicate:R=()=>!0}=A;return(0,x.zZ)({name:T,component:{lazy:()=>O().then(S=>j=>(0,n.jsx)(p,{rank:j.rank,result:j.result,noTrack:j.noTrack,children:(0,a.createElement)(S,j)}))},data:{[h]:R}})},v=A=>{const T=useElementFilter(A,O=>O.selectByComponentData({key:h}).getElements(),[A]);return useCallback((O,R)=>{const S=u(T,O);return _jsx(Fragment,{children:S??_jsx(p,{rank:O.rank,result:O.document,children:_jsx(DefaultResultListItem,{rank:O.rank,highlight:O.highlight,result:O.document})})},R)},[T])},y=A=>{const{results:T,children:O,...R}=A,S=v(O);return _jsx(List,{...R,children:T.map(S)})}},86202:(G,b,t)=>{"use strict";t.d(b,{A:()=>n,G:()=>a});const n="backstage.io/techdocs-ref",a="backstage.io/techdocs-entity"},72020:(G,b,t)=>{"use strict";t.d(b,{AF:()=>p,Hr:()=>y,Wm:()=>u,YR:()=>R,po:()=>g});var n=t(31085),a=t(14041),d=t(18690),x=t(19402),m=t(88758),h=t(82442);const u="techdocs.addons.addon.v1",p="techdocs.addons.wrapper.v1",g=()=>null;(0,x.h)(g,p,!0);const v=S=>`${u}.${S.toLocaleLowerCase("en-US")}`;function y(S){const{name:j,component:k}=S;return(0,m.zZ)({name:j,component:{sync:L=>(0,n.jsx)(k,{...L})},data:{[u]:S,[v(j)]:!0}})}const A=(S,j)=>S.selectByComponentData({key:j}).getElements()[0],T=S=>S.selectByComponentData({key:p}).selectByComponentData({key:u}),O=S=>S.selectByComponentData({key:p}).findComponentData({key:u}),R=()=>{const S=(0,d.P1)(),j=(0,h.O)(S,T),k=(0,h.O)(S,O),L=(0,a.useCallback)(W=>{if(!j||!W)return null;const Q=v(W.name);return A(j,Q)??null},[j]),X=(0,a.useCallback)(W=>{const Q=k.find(K=>K.name===W);return Q?L(Q):null},[k,L]),Y=(0,a.useCallback)(W=>{const Q=k.filter(K=>K.location===W);return Q.length?Q.map(L):null},[k,L]);return{renderComponentByName:X,renderComponentsByLocation:Y}}},26679:(G,b,t)=>{"use strict";t.d(b,{l:()=>a,s:()=>d});var n=t(55309);const a=(0,n.y)({id:"plugin.techdocs.service"}),d=(0,n.y)({id:"plugin.techdocs.storageservice"})},86892:(G,b,t)=>{"use strict";t.d(b,{R:()=>S,V:()=>j});var n=t(31085),a=t(14041),d=t(73466),x=t(28966),m=t(6820),h=t(43836),u=t(10602),p=t(72427),g=t(65461),v=t(25862),y=t(26679);function A(k,L){return L.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")||(k.kind=k.kind.toLocaleLowerCase(),k.name=k.name.toLocaleLowerCase(),k.namespace=k.namespace.toLocaleLowerCase()),k}const T=(k,L)=>(0,m.U2)(k)===(0,m.U2)(L),O={title:"",subtitle:"",setTitle:()=>{},setSubtitle:()=>{},setShadowRoot:()=>{},metadata:{loading:!0},entityMetadata:{loading:!0},entityRef:{kind:"",name:"",namespace:""}},R=(0,h.tK)("techdocs-reader-page-context"),S=(0,a.memo)(k=>{const{entityRef:L,children:X}=k,Y=(0,p.gf)(y.l),W=(0,p.gf)(g.U),Q=(0,d.A)(async()=>Y.getEntityMetadata(L),[L]),K=(0,x.A)(async()=>Y.getTechDocsMetadata(L),[L]),[H,Z]=(0,a.useState)(O.title),[V,tt]=(0,a.useState)(O.subtitle),[_,ct]=(0,a.useState)(O.shadowRoot);(0,a.useEffect)(()=>{_&&!K.value&&!K.loading&&K.retry()},[K.value,K.loading,_,K.retry,K]);const ht={metadata:K,entityRef:A(L,W),entityMetadata:Q,shadowRoot:_,setShadowRoot:ct,title:H,setTitle:Z,subtitle:V,setSubtitle:tt},mt=(0,u.B)({1:ht});return(0,n.jsx)(v.Ig,{attributes:{entityRef:(0,m.U2)(L)},children:(0,n.jsx)(R.Provider,{value:mt,children:X instanceof Function?X(ht):X})})},(k,L)=>T(k.entityRef,L.entityRef)),j=()=>{const k=(0,a.useContext)(R);if(k===void 0)return O;const L=k.atVersion(1);if(L===void 0)throw new Error("No context found for version 1.");return L}},99730:(G,b,t)=>{"use strict";t.d(b,{e:()=>n});const n=Object.freeze({Header:"Header",Subheader:"Subheader",Settings:"Settings",PrimarySidebar:"PrimarySidebar",SecondarySidebar:"SecondarySidebar",Content:"Content"})},95768:(G,b,t)=>{"use strict";t.d(b,{V:()=>n});function n(a,d){return d.getOptionalBoolean("techdocs.legacyUseCaseSensitiveTripletPaths")?a:a.toLocaleLowerCase("en-US")}},85920:(G,b,t)=>{"use strict";t.d(b,{K:()=>H});var n=t(31085),a=t(14041),d=t(26280),x=t(59428),m=t(27586),h=t(21405),u=t(54203),p=t(67626),g=t(72987),v=t(91035),y=t(81859),A=t(86519),T=t(86202);class O{getCatalogFilters(){return{[`metadata.annotations.${T.A}`]:A.c}}}const R=()=>{const{updateFilters:Z}=(0,h.nK)();return(0,a.useEffect)(()=>{Z({techdocs:new O})},[Z]),null};var S=t(36338),j=t(45250),k=t(88640),L=t(77310),X=t(56889),Y=t(27125),W=t(84295),Q=t(42717);const K=Z=>{const{columns:V,actions:tt,options:_}=Z,{loading:ct,error:ht,entities:mt,filters:Et}=(0,h.nK)(),{isStarredEntity:xt,toggleStarredEntity:At}=(0,X.I)(),[,lt]=(0,S.A)(),Ct=(0,j.capitalize)(Et.user?.value??"all"),yt=[W.f.createCopyDocsUrlAction(lt),W.f.createStarEntityAction(xt,At)];return ht?(0,n.jsx)(k.B,{severity:"error",title:"Could not load available documentation.",children:(0,n.jsx)(L.z,{language:"text",text:ht.toString()})}):(0,n.jsx)(Y.o,{title:Ct,entities:mt,loading:ct,actions:tt||yt,columns:V,options:_})};K.columns=Q.B,K.actions=W.f;const H=Z=>{const{initialFilter:V="owned",columns:tt,actions:_,ownerPickerMode:ct}=Z;return(0,n.jsx)(y.S,{children:(0,n.jsxs)(d.U,{children:[(0,n.jsx)(x.d,{title:"",children:(0,n.jsx)(m.Y,{children:"Discover documentation in your ecosystem."})}),(0,n.jsx)(h.B9,{children:(0,n.jsxs)(u.GI,{children:[(0,n.jsxs)(u.GI.Filters,{children:[(0,n.jsx)(R,{}),(0,n.jsx)(p.y,{initialFilter:V}),(0,n.jsx)(g.t,{mode:ct}),(0,n.jsx)(v.m,{})]}),(0,n.jsx)(u.GI.Content,{children:(0,n.jsx)(K,{actions:_,columns:tt})})]})})]})})}},27125:(G,b,t)=>{"use strict";t.d(b,{o:()=>k});var n=t(31085),a=t(14041),d=t(36338),x=t(9222),m=t(72427),h=t(65461),u=t(51372),p=t(67871),g=t(90184),v=t(82779),y=t(14209),A=t(44186),T=t(73896),O=t(84295),R=t(42717),S=t(95768);const j=[R.B.createTitleColumn({hidden:!0}),R.B.createNameColumn(),R.B.createOwnerColumn(),R.B.createKindColumn(),R.B.createTypeColumn()],k=L=>{const{entities:X,title:Y,loading:W,columns:Q,actions:K,options:H}=L,[,Z]=(0,d.A)(),V=(0,x.S)(v.Oc),tt=(0,m.gf)(h.U);if(!X)return null;const _=X.map(Et=>{const xt=(0,p.t)(Et,u.vv);return{entity:Et,resolved:{docsUrl:V({namespace:(0,S.V)(Et.metadata.namespace??"default",tt),kind:(0,S.V)(Et.kind,tt),name:(0,S.V)(Et.metadata.name,tt)}),ownedByRelations:xt,ownedByRelationsTitle:xt.map(At=>(0,g.S)(At,{defaultKind:"group"})).join(", ")}}}),ct=[O.f.createCopyDocsUrlAction(Z)],ht=20,mt=_&&_.length>ht;return(0,n.jsx)(n.Fragment,{children:W||_&&_.length>0?(0,n.jsx)(y.X,{isLoading:W,options:{paging:mt,pageSize:ht,search:!0,actionsColumnIndex:-1,...H},data:_,columns:Q||j,actions:K||ct,title:Y?`${Y} (${_.length})`:`All (${_.length})`}):(0,n.jsx)(A.p,{missing:"data",title:"No documents to show",description:"Create your own document. Check out our Getting Started Information",action:(0,n.jsx)(T.z,{color:"primary",to:"https://backstage.io/docs/features/techdocs/getting-started",variant:"contained",children:"DOCS"})})})};k.columns=R.B,k.actions=O.f},84295:(G,b,t)=>{"use strict";t.d(b,{f:()=>m});var n=t(31085),a=t(14041),d=t(55290),x=t(18956);const m={createCopyDocsUrlAction(h){return u=>({icon:()=>(0,n.jsx)(d.A,{fontSize:"small"}),tooltip:"Click to copy documentation link to clipboard",onClick:()=>h(`${window.location.origin}${u.resolved.docsUrl}`)})},createStarEntityAction(h,u){return p=>{const g=p.entity,v=h(g);return{cellStyle:{paddingLeft:"1em"},icon:()=>(0,n.jsx)(x.m,{isFavorite:v}),tooltip:v?"Remove from favorites":"Add to favorites",onClick:()=>u(g)}}}}},42717:(G,b,t)=>{"use strict";t.d(b,{B:()=>v});var n=t(31085),a=t(14041),d=t(10394),x=t(58837);const m=(0,x.A)(y=>({value:{marginBottom:y.spacing(.75)},subvalue:{color:y.palette.textSubtle,fontWeight:"normal"}}),{name:"BackstageSubvalueCell"});function h(y){const{value:A,subvalue:T}=y,O=m();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{className:O.value,children:A}),(0,n.jsx)(d.A,{className:O.subvalue,children:T})]})}var u=t(72072),p=t(34428);function g(y){return y.metadata.title||y.metadata.name}const v={createTitleColumn(y){return{...v.createNameColumn(),field:"entity.metadata.title",hidden:y?.hidden}},createNameColumn(){return{title:"Document",field:"entity.metadata.name",highlight:!0,searchable:!0,defaultSort:"asc",customSort:(y,A)=>{const T=g(y.entity).toLocaleLowerCase(),O=g(A.entity).toLocaleLowerCase();return T.localeCompare(O)},render:y=>(0,n.jsx)(h,{value:(0,n.jsx)(u.N_,{to:y.resolved.docsUrl,children:g(y.entity)}),subvalue:y.entity.metadata.description})}},createOwnerColumn(){return{title:"Owner",field:"resolved.ownedByRelationsTitle",render:({resolved:y})=>(0,n.jsx)(p.i,{entityRefs:y.ownedByRelations,defaultKind:"group"})}},createKindColumn(){return{title:"Kind",field:"entity.kind"}},createTypeColumn(){return{title:"Type",field:"entity.spec.type"}}}},81859:(G,b,t)=>{"use strict";t.d(b,{S:()=>h});var n=t(31085),a=t(14041),d=t(27155),x=t(72427),m=t(65461);const h=u=>{const{children:p}=u,v=`Documentation available in ${(0,x.gf)(m.U).getOptionalString("organization.name")??"Backstage"}`;return(0,n.jsx)(d.d,{title:"Documentation",subtitle:v,themeId:"documentation",children:p})}},39278:(G,b,t)=>{"use strict";t.d(b,{$j:()=>L,Wj:()=>X,Ju:()=>R});var n=t(26679),a=t(70835),d=t(97142),x=t(92110);class m{configApi;discoveryApi;fetchApi;constructor(Q){this.configApi=Q.configApi,this.discoveryApi=Q.discoveryApi,this.fetchApi=Q.fetchApi}async getCookie(){const K=`${await this.getApiOrigin()}/cookie`,H=await this.fetchApi.fetch(`${K}`,{credentials:"include"});if(!H.ok)throw await a.o.fromResponse(H);return await H.json()}async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getTechDocsMetadata(Q){const{kind:K,namespace:H,name:Z}=Q,tt=`${await this.getApiOrigin()}/metadata/techdocs/${H}/${K}/${Z}`,_=await this.fetchApi.fetch(`${tt}`);if(!_.ok)throw await a.o.fromResponse(_);return await _.json()}async getEntityMetadata(Q){const{kind:K,namespace:H,name:Z}=Q,tt=`${await this.getApiOrigin()}/metadata/entity/${H}/${K}/${Z}`,_=await this.fetchApi.fetch(`${tt}`);if(!_.ok)throw await a.o.fromResponse(_);return await _.json()}}class h{configApi;discoveryApi;fetchApi;constructor(Q){this.configApi=Q.configApi,this.discoveryApi=Q.discoveryApi,this.fetchApi=Q.fetchApi}async getApiOrigin(){return await this.discoveryApi.getBaseUrl("techdocs")}async getStorageUrl(){return this.configApi.getOptionalString("techdocs.storageUrl")??`${await this.discoveryApi.getBaseUrl("techdocs")}/static/docs`}async getBuilder(){return this.configApi.getOptionalString("techdocs.builder")||"local"}async getEntityDocs(Q,K){const{kind:H,namespace:Z,name:V}=Q,_=`${await this.getStorageUrl()}/${Z}/${H}/${V}/${K}`,ct=await this.fetchApi.fetch(`${_.endsWith("/")?_:`${_}/`}index.html`);let ht="";switch(ct.status){case 404:throw ht="Page not found. ",K||(ht+="This could be because there is no index.md file in the root of the docs directory of this repository."),new d.m_(ht);case 500:throw ht="Could not generate documentation or an error in the TechDocs backend. ",new Error(ht);default:break}return ct.text()}async syncEntityDocs(Q,K=()=>{}){const{kind:H,namespace:Z,name:V}=Q,_=`${await this.getApiOrigin()}/sync/${Z}/${H}/${V}`;return new Promise((ct,ht)=>{const mt=new AbortController;(0,x.y)(_,{fetch:this.fetchApi.fetch,signal:mt.signal,onmessage(Et){if(Et.event==="log")Et.data&&K(JSON.parse(Et.data));else if(Et.event==="finish"){let xt=!1;Et.data&&({updated:xt}=JSON.parse(Et.data)),ct(xt?"updated":"cached")}else Et.event==="error"&&ht(new Error(Et.data))},onerror(Et){mt.abort(),ht(Et)}})})}async getBaseUrl(Q,K,H){const{kind:Z,namespace:V,name:tt}=K,ct=`${await this.getApiOrigin()}/static/docs/${V}/${Z}/${tt}/${H}`;return new URL(Q,ct.endsWith("/")?ct:`${ct}/`).toString()}}var u=t(82779),p=t(9803),g=t(12935),v=t(65461),y=t(57405),A=t(70795),T=t(88758),O=t(54560);const R=(0,p.i)({id:"techdocs",apis:[(0,g.b)({api:n.s,deps:{configApi:v.U,discoveryApi:y.I,fetchApi:A.a},factory:({configApi:W,discoveryApi:Q,fetchApi:K})=>new h({configApi:W,discoveryApi:Q,fetchApi:K})}),(0,g.b)({api:n.l,deps:{configApi:v.U,discoveryApi:y.I,fetchApi:A.a},factory:({configApi:W,discoveryApi:Q,fetchApi:K})=>new m({configApi:W,discoveryApi:Q,fetchApi:K})})],routes:{root:u.rQ,docRoot:u.Oc,entityContent:u.Ri}}),S=R.provide((0,T.QJ)({name:"TechdocsPage",component:()=>t.e(9605).then(t.bind(t,29605)).then(W=>W.Router),mountPoint:u.rQ})),j=R.provide((0,T.QJ)({name:"EntityTechdocsContent",component:()=>t.e(9605).then(t.bind(t,29605)).then(W=>W.EmbeddedDocsRouter),mountPoint:u.Ri})),k=R.provide((0,T.QJ)({name:"TechDocsCustomHome",component:()=>t.e(4487).then(t.bind(t,94487)).then(W=>W.TechDocsCustomHome),mountPoint:u.rQ})),L=R.provide((0,T.QJ)({name:"TechDocsIndexPage",component:()=>t.e(5788).then(t.bind(t,85788)).then(W=>W.TechDocsIndexPage),mountPoint:u.rQ})),X=R.provide((0,T.QJ)({name:"TechDocsReaderPage",component:()=>t.e(4036).then(t.bind(t,84036)).then(W=>W.TechDocsReaderPage),mountPoint:u.Oc})),Y=R.provide((0,O.ec)({name:"TechDocsSearchResultListItem",component:()=>Promise.resolve().then(t.bind(t,27698)).then(W=>W.TechDocsSearchResultListItem),predicate:W=>W.type==="techdocs"}))},81215:(G,b,t)=>{"use strict";t.d(b,{p:()=>Ps});var n=t(31085),a=t(14041),d=t(42899),x=t(58837),m=t(86892),h=t(9394),u=t(91360),p=t(22856),g=t(68146);const v="TECH_DOCS_SHADOW_DOM_STYLE_LOAD",y=f=>{(0,a.useEffect)(()=>{if(!f)return()=>{};const w=f.querySelectorAll('head > link[rel="stylesheet"]');let B=w?.length??0;const F=new CustomEvent(v);if(!B)return f.dispatchEvent(F),()=>{};const N=()=>{--B===0&&f.dispatchEvent(F)};return w?.forEach(J=>{J.addEventListener("load",N)}),()=>{w?.forEach(J=>{J.removeEventListener("load",N)})}},[f])},A=f=>{const[w,B]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(!f)return()=>{};B(!0);const F=f.style;F.setProperty("opacity","0");const N=()=>{B(!1),F.setProperty("opacity","1")};return f.addEventListener(v,N),()=>{f.removeEventListener(v,N)}},[f]),w},T=f=>{const{element:w,onAppend:B,children:F}=f,[N,J]=(0,a.useState)((0,h.vt)({...(0,p.A)(),insertionPoint:void 0}));y(w);const rt=A(w),St=(0,a.useCallback)(Ot=>{if(!w||!Ot)return;J((0,h.vt)({...(0,p.A)(),insertionPoint:w.querySelector("head")||void 0}));let Mt=Ot.shadowRoot;Mt||(Mt=Ot.attachShadow({mode:"open"})),Mt.replaceChildren(w),typeof B=="function"&&B(Mt)},[w,B]);return(0,n.jsxs)(n.Fragment,{children:[rt&&(0,n.jsx)(g.k,{}),(0,n.jsxs)(u.Ay,{jss:N,sheetsManager:new Map,children:[(0,n.jsx)("div",{ref:St,"data-testid":"techdocs-native-shadowroot"}),F]})]})};var O=t(12784);const R=()=>{const{shadowRoot:f}=(0,m.V)();return f},S=f=>{const w=R(),[B,F]=(0,a.useState)(w?.firstChild);return(0,a.useEffect)(()=>{let N;return w&&(N=new MutationObserver(()=>{F(w?.firstChild)}),N.observe(w,{attributes:!0,characterData:!0,childList:!0,subtree:!0})),()=>N?.disconnect()},[w]),!B||!(B instanceof HTMLElement)?[]:f.map(N=>B.querySelectorAll(N)).filter(N=>N.length).map(N=>Array.from(N)).flat()},j=f=>f.toString()&&f.rangeCount&&f.getRangeAt(0).getBoundingClientRect().top,k=(f=0)=>{const w=R(),[B,F]=useState(null),N=useMemo(()=>debounce(()=>{const J=w,rt=J.getSelection?J.getSelection():document.getSelection();rt&&j(rt)?F(rt):F(null)},f),[w,F,f]);return useEffect(()=>(window.document.addEventListener("selectionchange",N),()=>{N.cancel(),window.document.removeEventListener("selectionchange",N)}),[N]),B};var L=t(12173),X=t(26280),Y=t(45250),W=t(73466),Q=t(5877),K=t(43836),H=t(10602),Z=t(72427),V=t(93368),tt=t(25862),_=t(65461),ct=t(55309);const ht=(0,ct.y)({id:"plugin.search.queryservice"});class mt{mockedResults;constructor(w){this.mockedResults=w}query(){return Promise.resolve(this.mockedResults||{results:[]})}}const Et=(0,K.tK)("search-context"),xt=()=>{const f=(0,a.useContext)(Et);if(!f)throw new Error("useSearch must be used within a SearchContextProvider");const w=f.atVersion(1);if(!w)throw new Error("No SearchContext v1 found");return w},At=()=>(0,a.useContext)(Et)!==void 0,lt={term:"",types:[],filters:{},pageLimit:void 0,pageCursor:void 0},Ct=(f=lt)=>{const w=(0,Z.gf)(ht),B=(0,V.s)(),[F,N]=(0,a.useState)(f.term),[J,rt]=(0,a.useState)(f.types),[St,Ot]=(0,a.useState)(f.filters),[Mt,Rt]=(0,a.useState)(f.pageLimit),[$t,jt]=(0,a.useState)(f.pageCursor),de=(0,Q.A)(F),ue=(0,Q.A)(St),kt=(0,W.A)(async()=>{const ne=await w.query({term:F,types:J,filters:St,pageLimit:Mt,pageCursor:$t});return F&&B.captureEvent("search",F,{value:kt.value?.numberOfResults??void 0}),ne},[F,J,St,Mt,$t]),me=!kt.loading&&!kt.error&&kt.value?.nextPageCursor,te=!kt.loading&&!kt.error&&kt.value?.previousPageCursor,ae=(0,a.useCallback)(()=>{jt(kt.value?.nextPageCursor)},[kt.value?.nextPageCursor]),Ft=(0,a.useCallback)(()=>{jt(kt.value?.previousPageCursor)},[kt.value?.previousPageCursor]);return(0,a.useEffect)(()=>{de!==void 0&&F!==de&&jt(void 0)},[F,de,jt]),(0,a.useEffect)(()=>{ue!==void 0&&!(0,Y.isEqual)(St,ue)&&jt(void 0)},[St,ue,jt]),{result:kt,term:F,setTerm:N,types:J,setTypes:rt,filters:St,setFilters:Ot,pageLimit:Mt,setPageLimit:Rt,pageCursor:$t,setPageCursor:jt,fetchNextPage:me?ae:void 0,fetchPreviousPage:te?Ft:void 0}},yt=f=>{const{initialState:w,children:B}=f,F=Ct(w);return(0,n.jsx)(tt.Ig,{attributes:{searchTypes:F.types.sort().join(",")},children:(0,n.jsx)(Et.Provider,{value:(0,H.B)({1:F}),children:B})})},Tt=f=>{const{initialState:w,inheritParentContextIfAvailable:B,children:F}=f,N=At(),J=(0,Z.gf)(_.U),rt=w??{},St=J.has("search.query.pageLimit")?{pageLimit:J.getNumber("search.query.pageLimit")}:{},Ot={...lt,...rt,...St};return N&&B?(0,n.jsx)(n.Fragment,{children:F}):(0,n.jsx)(yt,{initialState:Ot,children:F})};var bt=t(78467),It=t(20577),zt=t(82266),Ht=t(29365),gt=t(34839),Dt=t(16249),M=t(64947),$=t(45917),nt=t(22771);const ot=(0,a.forwardRef)((f,w)=>{const{onChange:B,onKeyDown:F=()=>{},onClear:N=()=>{},onSubmit:J=()=>{},debounceTime:rt=200,clearButton:St=!0,fullWidth:Ot=!0,value:Mt,label:Rt,placeholder:$t,inputProps:jt={},InputProps:de={},endAdornment:ue,...kt}=f,me=(0,Z.gf)(_.U),[te,ae]=(0,a.useState)(""),Ft=(0,a.useRef)("");(0,a.useEffect)(()=>{ae(he=>he===Ft.current?String(Mt):he)},[Mt,Ft]),(0,nt.A)(()=>{Ft.current=te,B(te)},rt,[te]);const ee=(0,a.useCallback)(he=>{ae(he.target.value)},[ae]),ne=(0,a.useCallback)(he=>{F&&F(he),J&&he.key==="Enter"&&J()},[F,J]),Fe=(0,a.useCallback)(()=>{Ft.current="",B(""),ae(""),N&&N()},[B,N]),Ce=Rt?void 0:"Search",ze=$t??`Search in ${me.getOptionalString("app.title")||"Backstage"}`,Je=(0,zt.n)().getSystemIcon("search")||$.A,Xe=(0,n.jsx)(gt.A,{position:"start",children:(0,n.jsx)(Ht.A,{"aria-label":"Query",size:"small",disabled:!0,children:(0,n.jsx)(Je,{})})}),kn=(0,n.jsx)(gt.A,{position:"end",children:(0,n.jsx)(M.A,{"aria-label":"Clear",size:"small",onClick:Fe,onKeyDown:he=>{he.key==="Enter"&&he.stopPropagation()},children:"Clear"})});return(0,n.jsx)(Tt,{inheritParentContextIfAvailable:!0,children:(0,n.jsx)(Dt.A,{id:"search-bar-text-field","data-testid":"search-bar-next",variant:"outlined",margin:"normal",inputRef:w,value:te,label:Rt,placeholder:ze,InputProps:{startAdornment:Xe,endAdornment:St?kn:ue,...de},inputProps:{"aria-label":Ce,...jt},fullWidth:Ot,onChange:ee,onKeyDown:ne,...kt})})}),pt=(0,a.forwardRef)((f,w)=>{const{value:B="",onChange:F,...N}=f,{term:J,setTerm:rt}=xt();(0,a.useEffect)(()=>{B&&rt(String(B))},[B,rt]);const St=(0,a.useCallback)(Ot=>{F?F(Ot):rt(Ot)},[F,rt]);return(0,n.jsx)(Tt,{inheritParentContextIfAvailable:!0,children:(0,n.jsx)(tt.Ig,{attributes:{pluginId:"search",extension:"SearchBar"},children:(0,n.jsx)(ot,{...N,ref:w,value:J,onChange:St})})})}),ut=(0,x.A)(f=>({loading:{right:f.spacing(1),position:"absolute"}})),vt=f=>w=>(0,n.jsx)(Tt,{inheritParentContextIfAvailable:!0,children:(0,n.jsx)(f,{...w})}),wt=()=>{const f=ut();return(0,n.jsx)(bt.A,{className:f.loading,"data-testid":"search-autocomplete-progressbar",color:"inherit",size:20})},Bt=vt(function(w){const{loading:B,value:F,onChange:N=()=>{},options:J=[],getOptionLabel:rt=Ft=>String(Ft),inputPlaceholder:St,inputDebounceTime:Ot,freeSolo:Mt=!0,fullWidth:Rt=!0,clearOnBlur:$t=!1,"data-testid":jt="search-autocomplete",...de}=w,{setTerm:ue}=xt(),kt=(0,a.useCallback)(Ft=>Ft?typeof Ft=="string"?Ft:rt(Ft):"",[rt]),me=(0,a.useMemo)(()=>kt(F),[F,kt]),te=(0,a.useCallback)((Ft,ee,ne,Fe)=>{ue(kt(ee)),N(Ft,ee,ne,Fe)},[kt,ue,N]),ae=(0,a.useCallback)(({InputProps:{ref:Ft,className:ee,endAdornment:ne},InputLabelProps:Fe,...Ce})=>(0,n.jsx)(pt,{...Ce,ref:Ft,clearButton:!1,value:me,placeholder:St,debounceTime:Ot,endAdornment:B?(0,n.jsx)(wt,{}):ne,InputProps:{className:ee}}),[B,me,St,Ot]);return(0,n.jsx)(It.Ay,{...de,"data-testid":jt,value:F,onChange:te,options:J,getOptionLabel:rt,renderInput:ae,freeSolo:Mt,fullWidth:Rt,clearOnBlur:$t})});var Ut=t(18690),Wt=t(27698);const ie=f=>f?.document,ce=f=>{const{entityId:w,entityTitle:B,debounceTime:F=150}=f,[N,J]=(0,a.useState)(!1),rt=(0,Ut.Zp)(),{setFilters:St,term:Ot,result:{loading:Mt,value:Rt}}=xt(),[$t,jt]=(0,a.useState)([]);(0,a.useEffect)(()=>{let te=!0;if(te&&Rt){const ae=Rt.results.slice(0,10);jt(ae)}return()=>{te=!1}},[Mt,Rt]);const{kind:de,name:ue,namespace:kt}=w;(0,a.useEffect)(()=>{St(te=>({...te,kind:de,namespace:kt,name:ue}))},[de,kt,ue,St]);const me=(te,ae)=>{if(ie(ae)){const{location:Ft}=ae.document;rt(Ft)}};return(0,n.jsx)(Bt,{"data-testid":"techdocs-search-bar",size:"small",open:N&&!!Ot,getOptionLabel:()=>"",filterOptions:te=>te,onClose:()=>{J(!1)},onOpen:()=>{J(!0)},onChange:me,blurOnSelect:!0,noOptionsText:"No results found",value:null,options:$t,renderOption:({document:te,highlight:ae})=>(0,n.jsx)(Wt.TechDocsSearchResultListItem,{result:te,lineClamp:3,asListItem:!1,asLink:!1,title:te.title,highlight:ae}),loading:Mt,inputDebounceTime:F,inputPlaceholder:`Search ${B||w.name} docs`,freeSolo:!1})},pe=f=>{const w={term:"",types:["techdocs"],pageCursor:"",filters:f.entityId};return(0,n.jsx)(Tt,{initialState:w,children:(0,n.jsx)(ce,{...f})})};var Jt=t(74219);const se=(0,a.lazy)(()=>Promise.all([t.e(3308),t.e(9234)]).then(t.bind(t,99234)).then(f=>({default:f.RealLogViewer})));function Ae(f){const{Progress:w}=(0,zt.n)().getComponents();return(0,n.jsx)(a.Suspense,{fallback:(0,n.jsx)(w,{}),children:(0,n.jsx)(se,{...f})})}var Vt=t(73845),qt=t(72501),Te=t(12398),Qt=t(32881);const qe=(0,x.A)(f=>(0,Te.A)({paper:{width:"100%",[f.breakpoints.up("sm")]:{width:"75%"},[f.breakpoints.up("md")]:{width:"50%"},padding:f.spacing(2.5)},root:{height:"100%",overflow:"hidden"},logs:{background:f.palette.background.default}})),xe=({buildLog:f,onClose:w})=>{const B=qe(),F=f.length===0?"Waiting for logs...":f.join(`
|
|
8
|
-
`);return(0,n.jsxs)(d.A,{container:!0,direction:"column",className:B.root,spacing:0,wrap:"nowrap",children:[(0,n.jsxs)(d.A,{item:!0,container:!0,justifyContent:"space-between",alignItems:"center",spacing:0,wrap:"nowrap",children:[(0,n.jsx)(qt.A,{variant:"h5",children:"Build Details"}),(0,n.jsx)(Ht.A,{title:"Close the drawer",onClick:w,color:"inherit",children:(0,n.jsx)(Qt.A,{})},"dismiss")]}),(0,n.jsx)(d.A,{item:!0,xs:!0,children:(0,n.jsx)(Ae,{text:F,classes:{root:B.logs}})})]})},De=({buildLog:f})=>{const w=qe(),[B,F]=(0,a.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(M.A,{color:"inherit",onClick:()=>F(!0),children:"Show Build Logs"}),(0,n.jsx)(Vt.Ay,{classes:{paper:w.paper},anchor:"right",open:B,onClose:()=>F(!1),children:(0,n.jsx)(xe,{buildLog:f,onClose:()=>F(!1)})})]})},Ge=({errorMessage:f})=>{const w=(0,Z.gf)(_.U).getOptionalString("techdocs.builder"),B=(0,V.s)(),{entityRef:F}=(0,m.V)(),N=(0,Ut.zy)();(0,a.useEffect)(()=>{const{pathname:rt,search:St,hash:Ot}=N;B.captureEvent("not-found",`${rt}${St}${Ot}`,{attributes:F})},[B,F,N]);let J="";return[void 0,"local"].includes(w)||(J="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,n.jsx)(L.M,{status:"404",statusMessage:f||"Documentation not found",additionalInfo:J})};var ge=t(28966),Ye=t(26679);function tn({contentLoading:f,content:w,activeSyncState:B}){return f||B==="BUILD_READY_RELOAD"||!w&&B==="CHECKING"?"CHECKING":!w&&B==="BUILDING"?"INITIAL_BUILD":w?B==="BUILDING"?"CONTENT_STALE_REFRESHING":B==="BUILD_READY"?"CONTENT_STALE_READY":B==="ERROR"?"CONTENT_STALE_ERROR":"CONTENT_FRESH":"CONTENT_NOT_FOUND"}function an(f,w){const B={...f};switch(w.type){case"sync":w.state==="CHECKING"&&(B.buildLog=[]),B.activeSyncState=w.state,B.syncError=w.syncError;break;case"contentLoading":B.contentLoading=!0,B.contentError=void 0;break;case"content":typeof w.path=="string"&&(B.path=w.path),B.contentLoading=!1,B.content=w.content,B.contentError=w.contentError;break;case"buildLog":B.buildLog=B.buildLog.concat(w.log);break;default:throw new Error}return["BUILD_READY","BUILD_READY_RELOAD"].includes(B.activeSyncState)&&["contentLoading","content"].includes(w.type)&&(B.activeSyncState="UP_TO_DATE",B.buildLog=[]),B}function en(f,w,B,F){const[N,J]=(0,a.useReducer)(an,{activeSyncState:"CHECKING",path:F,contentLoading:!0,buildLog:[]}),rt=(0,Z.gf)(Ye.s),{retry:St}=(0,ge.A)(async()=>{J({type:"contentLoading"});try{const Rt=await rt.getEntityDocs({kind:f,namespace:w,name:B},F);return J({type:"content",content:Rt,path:F}),Rt}catch(Rt){J({type:"content",contentError:Rt,path:F})}},[rt,f,w,B,F]),Ot=(0,a.useRef)({content:void 0,reload:()=>{}});return Ot.current={content:N.content,reload:St},(0,W.A)(async()=>{J({type:"sync",state:"CHECKING"});const Rt=setTimeout(()=>{J({type:"sync",state:"BUILDING"})},1e3);try{switch(await rt.syncEntityDocs({kind:f,namespace:w,name:B},jt=>{J({type:"buildLog",log:jt})})){case"updated":Ot.current.content?J({type:"sync",state:"BUILD_READY"}):(Ot.current.reload(),J({type:"sync",state:"BUILD_READY_RELOAD"}));break;case"cached":J({type:"sync",state:"UP_TO_DATE"});break;default:J({type:"sync",state:"ERROR",syncError:new Error("Unexpected return state")});break}}catch($t){J({type:"sync",state:"ERROR",syncError:$t})}finally{clearTimeout(Rt)}},[f,B,w,rt,J,Ot]),{state:(0,a.useMemo)(()=>tn({activeSyncState:N.activeSyncState,contentLoading:N.contentLoading,content:N.content}),[N.activeSyncState,N.content,N.contentLoading]),contentReload:St,path:N.path,content:N.content,contentErrorMessage:N.contentError?.toString(),syncErrorMessage:N.syncError?.toString(),buildLog:N.buildLog}}const Le=(0,a.createContext)({}),ke=()=>(0,a.useContext)(Le),le=f=>{const{children:w}=f,{"*":B=""}=(0,Ut.g)(),{entityRef:F}=(0,m.V)(),{kind:N,namespace:J,name:rt}=F,St=en(N,J,rt,B);return(0,n.jsx)(Le.Provider,{value:St,children:w instanceof Function?w(St):w})},Qe=f=>w=>(0,n.jsx)(le,{children:(0,n.jsx)(f,{...w})}),nn=(0,x.A)(f=>({root:{marginBottom:f.spacing(2)},message:{wordBreak:"break-word",overflowWrap:"anywhere"}})),We=()=>{let f=null;const w=nn(),{state:B,contentReload:F,contentErrorMessage:N,syncErrorMessage:J,buildLog:rt}=ke();return B==="INITIAL_BUILD"&&(f=(0,n.jsx)(Jt.A,{classes:{root:w.root},variant:"outlined",severity:"info",icon:(0,n.jsx)(bt.A,{size:"24px"}),action:(0,n.jsx)(De,{buildLog:rt}),children:"Documentation is accessed for the first time and is being prepared. The subsequent loads are much faster."})),B==="CONTENT_STALE_REFRESHING"&&(f=(0,n.jsx)(Jt.A,{variant:"outlined",severity:"info",icon:(0,n.jsx)(bt.A,{size:"24px"}),action:(0,n.jsx)(De,{buildLog:rt}),classes:{root:w.root},children:"A newer version of this documentation is being prepared and will be available shortly."})),B==="CONTENT_STALE_READY"&&(f=(0,n.jsx)(Jt.A,{variant:"outlined",severity:"success",action:(0,n.jsx)(M.A,{color:"inherit",onClick:()=>F(),children:"Refresh"}),classes:{root:w.root},children:"A newer version of this documentation is now available, please refresh to view."})),B==="CONTENT_STALE_ERROR"&&(f=(0,n.jsxs)(Jt.A,{variant:"outlined",severity:"error",action:(0,n.jsx)(De,{buildLog:rt}),classes:{root:w.root,message:w.message},children:["Building a newer version of this documentation failed."," ",J]})),B==="CONTENT_NOT_FOUND"&&(f=(0,n.jsxs)(n.Fragment,{children:[J&&(0,n.jsxs)(Jt.A,{variant:"outlined",severity:"error",action:(0,n.jsx)(De,{buildLog:rt}),classes:{root:w.root,message:w.message},children:["Building a newer version of this documentation failed."," ",J]}),(0,n.jsx)(Ge,{errorMessage:N})]})),f};var I=t(5893),l=t(54917),E=t(3347),U=t(71651),et=t.n(U);const at=/main\.[A-Fa-f0-9]{8}\.min\.css$/,ft=/^https:\/\/fonts\.googleapis\.com/,Kt=/^https:\/\/fonts\.gstatic\.com/,Gt=f=>f.nodeName==="LINK",Xt=f=>{const w=f?.getAttribute("href")||"",B=w.match(at),F=w.match(ft),N=w.match(Kt);return B||F||N},Lt=f=>(Gt(f)&&!Xt(f)&&f.remove(),f),_t=f=>f.nodeName==="IFRAME",Nt=(f,w)=>{const B=f.getAttribute("src")||"";try{const{host:F}=new URL(B);return w.includes(F)}catch{return!1}},fe=f=>w=>(_t(w)&&!Nt(w,f)&&w.remove(),w),Be=()=>{const f=(0,Z.gf)(_.U);return(0,a.useMemo)(()=>f.getOptionalConfig("techdocs.sanitizer"),[f])},Pe=()=>{const f=Be();return(0,a.useCallback)(async w=>{const B=f?.getOptionalStringArray("allowedIframeHosts");et().addHook("beforeSanitizeElements",Lt);const F=["link","meta"];return B&&(F.push("iframe"),et().addHook("beforeSanitizeElements",fe(B))),et().addHook("uponSanitizeElement",(N,J)=>{J.tagName==="meta"&&(N.getAttribute("http-equiv")==="refresh"&&N.getAttribute("content")?.includes("url=")||N.parentNode?.removeChild(N))}),et().addHook("uponSanitizeAttribute",(N,J)=>{N.tagName!=="meta"&&(J.attrName==="http-equiv"||J.attrName==="content")&&N.removeAttribute(J.attrName)}),et().sanitize(w.outerHTML,{ADD_TAGS:F,FORBID_TAGS:["style"],ADD_ATTR:["http-equiv","content"],WHOLE_DOCUMENT:!0,RETURN_DOM:!0})},[f])};var Ke=t(34435),oe=t(268);const re=({theme:f})=>`
|
|
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: ${f.palette.text.primary};
|
|
18
|
-
--md-default-fg-color--light: ${f.palette.text.secondary};
|
|
19
|
-
--md-default-fg-color--lighter: ${(0,oe.a)(f.palette.text.secondary,.7)};
|
|
20
|
-
--md-default-fg-color--lightest: ${(0,oe.a)(f.palette.text.secondary,.3)};
|
|
21
|
-
|
|
22
|
-
/* BACKGROUND */
|
|
23
|
-
--md-default-bg-color:${f.palette.background.default};
|
|
24
|
-
--md-default-bg-color--light: ${f.palette.background.paper};
|
|
25
|
-
--md-default-bg-color--lighter: ${(0,oe.a)(f.palette.background.paper,.7)};
|
|
26
|
-
--md-default-bg-color--lightest: ${(0,oe.a)(f.palette.background.paper,.3)};
|
|
27
|
-
|
|
28
|
-
/* PRIMARY */
|
|
29
|
-
--md-primary-fg-color: ${f.palette.primary.main};
|
|
30
|
-
--md-primary-fg-color--light: ${f.palette.primary.light};
|
|
31
|
-
--md-primary-fg-color--dark: ${f.palette.primary.dark};
|
|
32
|
-
--md-primary-bg-color: ${f.palette.primary.contrastText};
|
|
33
|
-
--md-primary-bg-color--light: ${(0,oe.a)(f.palette.primary.contrastText,.7)};
|
|
34
|
-
|
|
35
|
-
/* ACCENT */
|
|
36
|
-
--md-accent-fg-color: var(--md-primary-fg-color);
|
|
37
|
-
--md-accent-fg-color--transparent: ${(0,oe.X4)(f.palette.primary.main,.1)};
|
|
38
|
-
--md-accent-bg-color: var(--md-primary-bg-color);
|
|
39
|
-
--md-accent-bg-color--light: var(--md-primary-bg-color--light);
|
|
40
|
-
|
|
41
|
-
/* SHADOW */
|
|
42
|
-
--md-shadow-z1: ${f.shadows[1]};
|
|
43
|
-
--md-shadow-z2: ${f.shadows[2]};
|
|
44
|
-
--md-shadow-z3: ${f.shadows[3]};
|
|
45
|
-
|
|
46
|
-
/* EXTENSIONS */
|
|
47
|
-
--md-admonition-fg-color: var(--md-default-fg-color);
|
|
48
|
-
--md-admonition-bg-color: var(--md-default-bg-color);
|
|
49
|
-
/* Admonitions and others are using SVG masks to define icons. These masks are defined as CSS variables. */
|
|
50
|
-
--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>');
|
|
51
|
-
--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>');
|
|
52
|
-
--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>');
|
|
53
|
-
--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>');
|
|
54
|
-
--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>');
|
|
55
|
-
--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>');
|
|
56
|
-
--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>');
|
|
57
|
-
--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>');
|
|
58
|
-
--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>');
|
|
59
|
-
--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>');
|
|
60
|
-
--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>');
|
|
61
|
-
--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>');
|
|
62
|
-
--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>');
|
|
63
|
-
--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>');
|
|
64
|
-
--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>');
|
|
65
|
-
--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>');
|
|
66
|
-
--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>');
|
|
67
|
-
--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>');
|
|
68
|
-
--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>');
|
|
69
|
-
--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>');
|
|
70
|
-
--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>');
|
|
71
|
-
--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>');
|
|
72
|
-
--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>');
|
|
73
|
-
--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>');
|
|
74
|
-
--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>');
|
|
75
|
-
--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>');
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
:host > * {
|
|
79
|
-
/* CODE */
|
|
80
|
-
--md-code-fg-color: ${f.palette.text.primary};
|
|
81
|
-
--md-code-bg-color: ${f.palette.background.paper};
|
|
82
|
-
--md-code-hl-color: ${(0,oe.X4)(f.palette.warning.main,.5)};
|
|
83
|
-
--md-code-hl-color--light: var(--md-code-hl-color);
|
|
84
|
-
--md-code-hl-keyword-color: ${f.palette.type==="dark"?f.palette.primary.light:f.palette.primary.dark};
|
|
85
|
-
--md-code-hl-function-color: ${f.palette.type==="dark"?f.palette.secondary.light:f.palette.secondary.dark};
|
|
86
|
-
--md-code-hl-string-color: ${f.palette.type==="dark"?f.palette.success.light:f.palette.success.dark};
|
|
87
|
-
--md-code-hl-number-color: ${f.palette.type==="dark"?f.palette.error.light:f.palette.error.dark};
|
|
88
|
-
--md-code-hl-constant-color: var(--md-code-hl-function-color);
|
|
89
|
-
--md-code-hl-special-color: var(--md-code-hl-function-color);
|
|
90
|
-
--md-code-hl-name-color: var(--md-code-fg-color);
|
|
91
|
-
--md-code-hl-comment-color: var(--md-default-fg-color--light);
|
|
92
|
-
--md-code-hl-generic-color: var(--md-default-fg-color--light);
|
|
93
|
-
--md-code-hl-variable-color: var(--md-default-fg-color--light);
|
|
94
|
-
--md-code-hl-operator-color: var(--md-default-fg-color--light);
|
|
95
|
-
--md-code-hl-punctuation-color: var(--md-default-fg-color--light);
|
|
96
|
-
|
|
97
|
-
/* TYPESET */
|
|
98
|
-
--md-typeset-font-size: 1rem;
|
|
99
|
-
--md-typeset-color: var(--md-default-fg-color);
|
|
100
|
-
--md-typeset-a-color: ${f.palette.link};
|
|
101
|
-
--md-typeset-table-color: ${f.palette.text.primary};
|
|
102
|
-
--md-typeset-table-color--light: ${(0,oe.X4)(f.palette.text.primary,.05)};
|
|
103
|
-
--md-typeset-del-color: ${f.palette.type==="dark"?(0,oe.X4)(f.palette.error.dark,.5):(0,oe.X4)(f.palette.error.light,.5)};
|
|
104
|
-
--md-typeset-ins-color: ${f.palette.type==="dark"?(0,oe.X4)(f.palette.success.dark,.5):(0,oe.X4)(f.palette.success.light,.5)};
|
|
105
|
-
--md-typeset-mark-color: ${f.palette.type==="dark"?(0,oe.X4)(f.palette.warning.dark,.5):(0,oe.X4)(f.palette.warning.light,.5)};
|
|
106
|
-
--md-typeset-kbd-color: var(--md-code-bg-color);
|
|
107
|
-
--md-typeset-kbd-accent-color var(--md-code-bg-color);
|
|
108
|
-
--md-typeset-kbd-border-color: var(--md-default-fg-color--light);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@media screen and (max-width: 76.1875em) {
|
|
112
|
-
:host > * {
|
|
113
|
-
/* TYPESET */
|
|
114
|
-
--md-typeset-font-size: .9rem;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@media screen and (max-width: 600px) {
|
|
119
|
-
:host > * {
|
|
120
|
-
/* TYPESET */
|
|
121
|
-
--md-typeset-font-size: .7rem;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
--md-footer-bg-color: var(--md-default-bg-color);
|
|
126
|
-
--md-footer-bg-color--dark: var(--md-default-bg-color);
|
|
127
|
-
`,Me=({theme:f})=>`
|
|
128
|
-
/*================== Reset ==================*/
|
|
129
|
-
|
|
130
|
-
body {
|
|
131
|
-
--md-text-color: var(--md-default-fg-color);
|
|
132
|
-
--md-text-link-color: var(--md-accent-fg-color);
|
|
133
|
-
--md-text-font-family: ${f.typography.fontFamily};
|
|
134
|
-
font-family: var(--md-text-font-family);
|
|
135
|
-
background-color: unset;
|
|
136
|
-
}
|
|
137
|
-
`,qn="224px",Ze=({theme:f,sidebar:w})=>`
|
|
138
|
-
/*================== Layout ==================*/
|
|
139
|
-
|
|
140
|
-
/* mkdocs material v9 compat */
|
|
141
|
-
.md-nav__title {
|
|
142
|
-
color: var(--md-default-fg-color);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.md-grid {
|
|
146
|
-
max-width: 100%;
|
|
147
|
-
margin: 0;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.md-nav {
|
|
151
|
-
font-size: calc(var(--md-typeset-font-size) * 0.9);
|
|
152
|
-
}
|
|
153
|
-
.md-nav__link {
|
|
154
|
-
display: flex;
|
|
155
|
-
align-items: center;
|
|
156
|
-
justify-content: space-between;
|
|
157
|
-
}
|
|
158
|
-
.md-nav__icon {
|
|
159
|
-
height: 20px !important;
|
|
160
|
-
width: 20px !important;
|
|
161
|
-
margin-left:${f.spacing(1)}px;
|
|
162
|
-
}
|
|
163
|
-
.md-nav__icon svg {
|
|
164
|
-
margin: 0;
|
|
165
|
-
width: 20px !important;
|
|
166
|
-
height: 20px !important;
|
|
167
|
-
}
|
|
168
|
-
.md-nav__icon:after {
|
|
169
|
-
width: 20px !important;
|
|
170
|
-
height: 20px !important;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.md-nav__item--active > .md-nav__link, a.md-nav__link--active {
|
|
174
|
-
text-decoration: underline;
|
|
175
|
-
color: var(--md-typeset-a-color);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.md-main__inner {
|
|
179
|
-
margin-top: 0;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.md-sidebar {
|
|
183
|
-
bottom: 75px;
|
|
184
|
-
position: fixed;
|
|
185
|
-
width: 16rem;
|
|
186
|
-
overflow-y: auto;
|
|
187
|
-
overflow-x: hidden;
|
|
188
|
-
scrollbar-color: rgb(193, 193, 193) #eee;
|
|
189
|
-
scrollbar-width: thin;
|
|
190
|
-
}
|
|
191
|
-
.md-sidebar .md-sidebar__scrollwrap {
|
|
192
|
-
width: calc(12.1rem);
|
|
193
|
-
overflow-y: hidden;
|
|
194
|
-
}
|
|
195
|
-
.md-sidebar--secondary {
|
|
196
|
-
right: ${f.spacing(3)}px;
|
|
197
|
-
}
|
|
198
|
-
.md-sidebar::-webkit-scrollbar {
|
|
199
|
-
width: 5px;
|
|
200
|
-
}
|
|
201
|
-
.md-sidebar::-webkit-scrollbar-button {
|
|
202
|
-
width: 5px;
|
|
203
|
-
height: 5px;
|
|
204
|
-
}
|
|
205
|
-
.md-sidebar::-webkit-scrollbar-track {
|
|
206
|
-
background: #eee;
|
|
207
|
-
border: 1 px solid rgb(250, 250, 250);
|
|
208
|
-
box-shadow: 0px 0px 3px #dfdfdf inset;
|
|
209
|
-
border-radius: 3px;
|
|
210
|
-
}
|
|
211
|
-
.md-sidebar::-webkit-scrollbar-thumb {
|
|
212
|
-
width: 5px;
|
|
213
|
-
background: rgb(193, 193, 193);
|
|
214
|
-
border: transparent;
|
|
215
|
-
border-radius: 3px;
|
|
216
|
-
}
|
|
217
|
-
.md-sidebar::-webkit-scrollbar-thumb:hover {
|
|
218
|
-
background: rgb(125, 125, 125);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.md-content {
|
|
222
|
-
max-width: calc(100% - 16rem * 2);
|
|
223
|
-
margin-left: 16rem;
|
|
224
|
-
margin-bottom: 50px;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.md-footer {
|
|
228
|
-
position: fixed;
|
|
229
|
-
bottom: 0px;
|
|
230
|
-
pointer-events: none;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.md-footer-nav__link, .md-footer__link {
|
|
234
|
-
pointer-events: all;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.md-footer__title {
|
|
238
|
-
background-color: unset;
|
|
239
|
-
}
|
|
240
|
-
.md-footer-nav__link, .md-footer__link {
|
|
241
|
-
width: 16rem;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
.md-dialog {
|
|
245
|
-
background-color: unset;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
@media screen and (min-width: 76.25em) {
|
|
249
|
-
.md-sidebar {
|
|
250
|
-
height: auto;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
@media screen and (max-width: 76.1875em) {
|
|
255
|
-
.md-nav {
|
|
256
|
-
transition: none !important;
|
|
257
|
-
background-color: var(--md-default-bg-color)
|
|
258
|
-
}
|
|
259
|
-
.md-nav--primary .md-nav__title {
|
|
260
|
-
cursor: auto;
|
|
261
|
-
color: var(--md-default-fg-color);
|
|
262
|
-
font-weight: 700;
|
|
263
|
-
white-space: normal;
|
|
264
|
-
line-height: 1rem;
|
|
265
|
-
height: auto;
|
|
266
|
-
display: flex;
|
|
267
|
-
flex-flow: column;
|
|
268
|
-
row-gap: 1.6rem;
|
|
269
|
-
padding: 1.2rem .8rem .8rem;
|
|
270
|
-
background-color: var(--md-default-bg-color);
|
|
271
|
-
}
|
|
272
|
-
.md-nav--primary .md-nav__title~.md-nav__list {
|
|
273
|
-
box-shadow: none;
|
|
274
|
-
}
|
|
275
|
-
.md-nav--primary .md-nav__title ~ .md-nav__list > :first-child {
|
|
276
|
-
border-top: none;
|
|
277
|
-
}
|
|
278
|
-
.md-nav--primary .md-nav__title .md-nav__button {
|
|
279
|
-
display: none;
|
|
280
|
-
}
|
|
281
|
-
.md-nav--primary .md-nav__title .md-nav__icon {
|
|
282
|
-
color: var(--md-default-fg-color);
|
|
283
|
-
position: static;
|
|
284
|
-
height: auto;
|
|
285
|
-
margin: 0 0 0 -0.2rem;
|
|
286
|
-
}
|
|
287
|
-
.md-nav--primary > .md-nav__title [for="none"] {
|
|
288
|
-
padding-top: 0;
|
|
289
|
-
}
|
|
290
|
-
.md-nav--primary .md-nav__item {
|
|
291
|
-
border-top: none;
|
|
292
|
-
}
|
|
293
|
-
.md-nav--primary :is(.md-nav__title,.md-nav__item) {
|
|
294
|
-
font-size : var(--md-typeset-font-size);
|
|
295
|
-
}
|
|
296
|
-
.md-nav .md-source {
|
|
297
|
-
display: none;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.md-sidebar {
|
|
301
|
-
height: 100%;
|
|
302
|
-
}
|
|
303
|
-
.md-sidebar--primary {
|
|
304
|
-
width: 12.1rem !important;
|
|
305
|
-
z-index: 200;
|
|
306
|
-
left: ${w.isPinned?`calc(-12.1rem + ${qn})`:"calc(-12.1rem + 72px)"} !important;
|
|
307
|
-
}
|
|
308
|
-
.md-sidebar--secondary:not([hidden]) {
|
|
309
|
-
display: none;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.md-content {
|
|
313
|
-
max-width: 100%;
|
|
314
|
-
margin-left: 0;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
.md-header__button {
|
|
318
|
-
margin: 0.4rem 0;
|
|
319
|
-
margin-left: 0.4rem;
|
|
320
|
-
padding: 0;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.md-overlay {
|
|
324
|
-
left: 0;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.md-footer {
|
|
328
|
-
position: static;
|
|
329
|
-
padding-left: 0;
|
|
330
|
-
}
|
|
331
|
-
.md-footer-nav__link {
|
|
332
|
-
/* footer links begin to overlap at small sizes without setting width */
|
|
333
|
-
width: 50%;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
@media screen and (max-width: 600px) {
|
|
338
|
-
.md-sidebar--primary {
|
|
339
|
-
left: -12.1rem !important;
|
|
340
|
-
width: 12.1rem;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
@media print {
|
|
346
|
-
.md-sidebar,
|
|
347
|
-
#toggle-sidebar {
|
|
348
|
-
display: none;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
.md-content {
|
|
352
|
-
margin: 0;
|
|
353
|
-
width: 100%;
|
|
354
|
-
max-width: 100%;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
`,ts=["h1","h2","h3","h4","h5","h6"],mn=/(em)|(rem)/gi,wn=/var\(|\)/gi,es=[re,Me,Ze,({theme:f})=>`
|
|
358
|
-
/*================== Typeset ==================*/
|
|
359
|
-
|
|
360
|
-
.md-typeset {
|
|
361
|
-
font-size: var(--md-typeset-font-size);
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
${ts.reduce((w,B)=>{const F=f.typography.htmlFontSize??16,N=f.typography[B],{lineHeight:J,fontFamily:rt,fontWeight:St,fontSize:Ot}=N,Mt=Rt=>{if(typeof Rt=="number")return Mt(`${Rt/F*.6}rem`);if(typeof Rt=="string"){if(Rt.match(wn)){const $t=window.getComputedStyle(document.body).getPropertyValue(Rt.replaceAll(wn,""));if($t!=="")return Mt($t)}else if(Rt.match(mn))return`calc(${Rt.replace(mn,"")} * var(--md-typeset-font-size))`}return Rt};return w.concat(`
|
|
365
|
-
.md-typeset ${B} {
|
|
366
|
-
color: var(--md-default-fg-color);
|
|
367
|
-
line-height: ${J};
|
|
368
|
-
font-family: ${rt};
|
|
369
|
-
font-weight: ${St};
|
|
370
|
-
font-size: ${Mt(Ot)};
|
|
371
|
-
}
|
|
372
|
-
`)},"")}
|
|
373
|
-
|
|
374
|
-
.md-typeset .md-content__button {
|
|
375
|
-
color: var(--md-default-fg-color);
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.md-typeset hr {
|
|
379
|
-
border-bottom: 0.05rem dotted ${f.palette.divider};
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.md-typeset details {
|
|
383
|
-
font-size: var(--md-typeset-font-size) !important;
|
|
384
|
-
}
|
|
385
|
-
.md-typeset details summary {
|
|
386
|
-
padding-left: 2.5rem !important;
|
|
387
|
-
}
|
|
388
|
-
.md-typeset details summary:before,
|
|
389
|
-
.md-typeset details summary:after {
|
|
390
|
-
top: 50% !important;
|
|
391
|
-
width: 20px !important;
|
|
392
|
-
height: 20px !important;
|
|
393
|
-
transform: rotate(0deg) translateY(-50%) !important;
|
|
394
|
-
}
|
|
395
|
-
.md-typeset details[open] > summary:after {
|
|
396
|
-
transform: rotate(90deg) translateX(-50%) !important;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.md-typeset blockquote {
|
|
400
|
-
color: var(--md-default-fg-color--light);
|
|
401
|
-
border-left: 0.2rem solid var(--md-default-fg-color--light);
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.md-typeset table:not([class]) {
|
|
405
|
-
font-size: var(--md-typeset-font-size);
|
|
406
|
-
border: 1px solid var(--md-default-fg-color);
|
|
407
|
-
border-bottom: none;
|
|
408
|
-
border-collapse: collapse;
|
|
409
|
-
border-radius: ${f.shape.borderRadius}px;
|
|
410
|
-
}
|
|
411
|
-
.md-typeset table:not([class]) th {
|
|
412
|
-
font-weight: bold;
|
|
413
|
-
}
|
|
414
|
-
.md-typeset table:not([class]) td, .md-typeset table:not([class]) th {
|
|
415
|
-
border-bottom: 1px solid var(--md-default-fg-color);
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
.md-typeset pre > code::-webkit-scrollbar-thumb {
|
|
419
|
-
background-color: hsla(0, 0%, 0%, 0.32);
|
|
420
|
-
}
|
|
421
|
-
.md-typeset pre > code::-webkit-scrollbar-thumb:hover {
|
|
422
|
-
background-color: hsla(0, 0%, 0%, 0.87);
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.md-typeset code {
|
|
426
|
-
word-break: keep-all;
|
|
427
|
-
}
|
|
428
|
-
`,()=>`
|
|
429
|
-
/*================== Animations ==================*/
|
|
430
|
-
/*
|
|
431
|
-
Disable CSS animations on link colors as they lead to issues in dark mode.
|
|
432
|
-
The dark mode color theme is applied later and theirfore there is always an animation from light to dark mode when navigation between pages.
|
|
433
|
-
*/
|
|
434
|
-
.md-dialog, .md-nav__link, .md-footer__link, .md-typeset a, .md-typeset a::before, .md-typeset .headerlink {
|
|
435
|
-
transition: none;
|
|
436
|
-
}
|
|
437
|
-
`,({theme:f})=>`
|
|
438
|
-
/*================== Extensions ==================*/
|
|
439
|
-
|
|
440
|
-
/* HIGHLIGHT */
|
|
441
|
-
.highlight .md-clipboard:after {
|
|
442
|
-
content: unset;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
.highlight .nx {
|
|
446
|
-
color: ${f.palette.type==="dark"?"#ff53a3":"#ec407a"};
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/* CODE HILITE */
|
|
450
|
-
.codehilite .gd {
|
|
451
|
-
background-color: ${f.palette.type==="dark"?"rgba(248,81,73,0.65)":"#fdd"};
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
.codehilite .gi {
|
|
455
|
-
background-color: ${f.palette.type==="dark"?"rgba(46,160,67,0.65)":"#dfd"};
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
/* TABBED */
|
|
459
|
-
.tabbed-set>input:nth-child(1):checked~.tabbed-labels>:nth-child(1),
|
|
460
|
-
.tabbed-set>input:nth-child(2):checked~.tabbed-labels>:nth-child(2),
|
|
461
|
-
.tabbed-set>input:nth-child(3):checked~.tabbed-labels>:nth-child(3),
|
|
462
|
-
.tabbed-set>input:nth-child(4):checked~.tabbed-labels>:nth-child(4),
|
|
463
|
-
.tabbed-set>input:nth-child(5):checked~.tabbed-labels>:nth-child(5),
|
|
464
|
-
.tabbed-set>input:nth-child(6):checked~.tabbed-labels>:nth-child(6),
|
|
465
|
-
.tabbed-set>input:nth-child(7):checked~.tabbed-labels>:nth-child(7),
|
|
466
|
-
.tabbed-set>input:nth-child(8):checked~.tabbed-labels>:nth-child(8),
|
|
467
|
-
.tabbed-set>input:nth-child(9):checked~.tabbed-labels>:nth-child(9),
|
|
468
|
-
.tabbed-set>input:nth-child(10):checked~.tabbed-labels>:nth-child(10),
|
|
469
|
-
.tabbed-set>input:nth-child(11):checked~.tabbed-labels>:nth-child(11),
|
|
470
|
-
.tabbed-set>input:nth-child(12):checked~.tabbed-labels>:nth-child(12),
|
|
471
|
-
.tabbed-set>input:nth-child(13):checked~.tabbed-labels>:nth-child(13),
|
|
472
|
-
.tabbed-set>input:nth-child(14):checked~.tabbed-labels>:nth-child(14),
|
|
473
|
-
.tabbed-set>input:nth-child(15):checked~.tabbed-labels>:nth-child(15),
|
|
474
|
-
.tabbed-set>input:nth-child(16):checked~.tabbed-labels>:nth-child(16),
|
|
475
|
-
.tabbed-set>input:nth-child(17):checked~.tabbed-labels>:nth-child(17),
|
|
476
|
-
.tabbed-set>input:nth-child(18):checked~.tabbed-labels>:nth-child(18),
|
|
477
|
-
.tabbed-set>input:nth-child(19):checked~.tabbed-labels>:nth-child(19),
|
|
478
|
-
.tabbed-set>input:nth-child(20):checked~.tabbed-labels>:nth-child(20) {
|
|
479
|
-
color: var(--md-accent-fg-color);
|
|
480
|
-
border-color: var(--md-accent-fg-color);
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
/* TASK-LIST */
|
|
484
|
-
.task-list-control .task-list-indicator::before {
|
|
485
|
-
background-color: ${f.palette.action.disabledBackground};
|
|
486
|
-
}
|
|
487
|
-
.task-list-control [type="checkbox"]:checked + .task-list-indicator:before {
|
|
488
|
-
background-color: ${f.palette.success.main};
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
/* ADMONITION */
|
|
492
|
-
.admonition {
|
|
493
|
-
font-size: var(--md-typeset-font-size) !important;
|
|
494
|
-
}
|
|
495
|
-
.admonition .admonition-title {
|
|
496
|
-
padding-left: 2.5rem !important;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
.admonition .admonition-title:before {
|
|
500
|
-
top: 50% !important;
|
|
501
|
-
width: 20px !important;
|
|
502
|
-
height: 20px !important;
|
|
503
|
-
transform: translateY(-50%) !important;
|
|
504
|
-
}
|
|
505
|
-
`],ns=()=>(0,Ke.Ut)(),ss=()=>{const f=ns(),w=(0,l.A)();return(0,a.useMemo)(()=>{const B={theme:w,sidebar:f};return es.reduce((F,N)=>F+N(B),"")},[w,f])},rs=()=>{const f=ss();return(0,a.useCallback)(w=>(w.getElementsByTagName("head")[0].insertAdjacentHTML("beforeend",`<style>${f}</style>`),w),[f])},cn=async(f,w)=>{let B;if(typeof f=="string")B=new DOMParser().parseFromString(f,"text/html").documentElement;else if(f instanceof Element)B=f;else throw new Error("dom is not a recognized type");for(const F of w)B=await F(B);return B},os=(f,w,B)=>{const F=f==="src"&&w.endsWith(".svg"),N=!w.match(/^([a-z]*:)?\/\//i),J=w.startsWith(B);return F&&(N||J)},In=({techdocsStorageApi:f,entityId:w,path:B})=>async F=>{const N=await f.getApiOrigin(),J=async(rt,St)=>{for(const Ot of rt)if(Ot.hasAttribute(St)){const Mt=Ot.getAttribute(St);if(!Mt)return;const Rt=await f.getBaseUrl(Mt,w,B);if(os(St,Mt,N))try{const jt=await(await fetch(Rt,{credentials:"include"})).text();Ot.setAttribute(St,`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(jt)))}`)}catch{Ot.setAttribute("alt",`Error: ${Mt}`)}else Ot.setAttribute(St,Rt)}};return await Promise.all([J(F.querySelectorAll("img"),"src"),J(F.querySelectorAll("script"),"src"),J(F.querySelectorAll("source"),"src"),J(F.querySelectorAll("link"),"href"),J(F.querySelectorAll("a[download]"),"href")]),F},as=()=>f=>(((B,F)=>{Array.from(B).filter(N=>N.hasAttribute(F)).forEach(N=>{const J=N.getAttribute(F);if(J){J.match(/^https?:\/\//i)&&N.setAttribute("target","_blank");try{const rt=vn(window.location.href);N.setAttribute(F,new URL(J,rt).toString())}catch{N.replaceWith(N.textContent||J)}}})})(Array.from(f.getElementsByTagName("a")),"href"),f);function vn(f){const w=new URL(f);return!w.pathname.endsWith("/")&&!w.pathname.endsWith(".html")&&(w.pathname+="/"),w.toString()}var is=t(27326);let Dn;Dn=Promise.resolve().then(t.t.bind(t,25873,19));function ln(f,w){Dn.then(B=>{"createRoot"in B?B.createRoot(w).render(f):B.render(f,w)})}const cs=()=>f=>{const w=f.querySelector('.md-header label[for="__drawer"]'),B=f.querySelector("article");if(!w||!B)return f;const F=w.cloneNode();return ln(a.createElement(is.A),F),F.id="toggle-sidebar",F.title="Toggle Sidebar",F.classList.add("md-content__button"),F.style.setProperty("padding","0 0 0 5px"),F.style.setProperty("margin","0.4rem 0 0.4rem 0.4rem"),B?.prepend(F),f},ls=()=>f=>(f.querySelector(".md-header")?.remove(),f),ds=()=>f=>(f.querySelector(".md-footer .md-copyright")?.remove(),f.querySelector(".md-footer-copyright")?.remove(),f);var us=t(36021),Ln=t(90292),hs=t(52536),ps=t.n(hs);const Mn=f=>w=>{const B=w.querySelector('[title="Edit this page"]');if(!B||!B.href)return w;const F=new URL(B.href),N=f.byUrl(F);if(N?.type!=="github"&&N?.type!=="gitlab")return w;const J=w.querySelector("article>h1")?.childNodes[0].textContent||"",rt=encodeURIComponent(`Documentation Feedback: ${J}`),St=encodeURIComponent(`Page source:
|
|
506
|
-
${B.href}
|
|
507
|
-
|
|
508
|
-
Feedback:`),Ot=N?.type==="github"?(0,us.F)(F.href,"blob"):F.href,Mt=ps()(Ot),Rt=`/${Mt.organization}/${Mt.name}`,$t=B.cloneNode();switch(N?.type){case"gitlab":$t.href=`${F.origin}${Rt}/issues/new?issue[title]=${rt}&issue[description]=${St}`;break;case"github":$t.href=`${F.origin}${Rt}/issues/new?title=${rt}&body=${St}`;break;default:return w}return ln(a.createElement(Ln.A),$t),$t.style.paddingLeft="5px",$t.title="Leave feedback for this page",$t.id="git-feedback-link",B?.insertAdjacentElement("beforebegin",$t),w};var jn=t(38097);const gs=(0,x.A)(f=>({button:{color:f.palette.primary.light,textDecoration:"underline"}})),En=({message:f,handleButtonClick:w,autoHideDuration:B})=>{const F=gs(),[N,J]=(0,a.useState)(!0),rt=()=>J(!1);return(0,n.jsx)(jn.A,{open:N,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:B,color:"primary",onClose:rt,message:f,action:(0,n.jsx)(M.A,{classes:{root:F.button},size:"small",onClick:()=>{rt(),w()},children:"Redirect now"})})},An=(f,w)=>{const F=N=>{const J=vn(window.location.href),rt=new URL(N,J);if(rt.hostname!==window.location.hostname){const Ot=window.location.pathname,Mt=Ot.indexOf(w),Rt=Ot.slice(0,Mt+w.length);return new URL(Rt,J).href}return rt.href};return N=>{for(const J of Array.from(N.querySelectorAll("meta")))if(J.getAttribute("http-equiv")==="refresh"){const rt=J.getAttribute("content")?.split("url=");if(!rt||rt.length<2)return N;const St=rt[1],Ot=F(St);if(window.location.href===Ot)return N;const Mt=document.createElement("div");return ln((0,n.jsx)(En,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>f(Ot),autoHideDuration:3e3}),Mt),document.body.appendChild(Mt),setTimeout(()=>{f(Ot)},3e3),N}return N}},fs=()=>f=>(setTimeout(()=>{const w=f?.querySelectorAll("li.md-nav__item--active");w.length!==0&&(w.forEach(F=>{const N=F?.querySelector("input");N?.checked||N?.click()}),w[w.length-1].scrollIntoView())},200),f);var Bn=t(50868),Un=t(10437),ms=t(71677),ys=t(87051),vs=t(36338);const Es=(0,ys.A)(f=>({tooltip:{fontSize:"inherit",color:f.palette.text.primary,margin:0,padding:f.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(ms.Ay),As=()=>(0,n.jsx)(Un.A,{children:(0,n.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"})}),xs=({text:f})=>{const[w,B]=(0,a.useState)(!1),[,F]=(0,vs.A)(),N=(0,a.useCallback)(()=>{F(f),B(!0)},[f,F]),J=(0,a.useCallback)(()=>{B(!1)},[B]);return(0,n.jsx)(Es,{title:"Copied to clipboard",placement:"left",open:w,onClose:J,leaveDelay:1e3,children:(0,n.jsx)(Ht.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:N,children:(0,n.jsx)(As,{})})})},Cs=f=>w=>{const B=w.querySelectorAll("pre > code");for(const F of B){const N=F.textContent||"",J=document.createElement("div");F?.parentElement?.prepend(J),ln((0,n.jsx)(Bn.A,{theme:f,children:(0,n.jsx)(xs,{text:N})}),J)}return w},bs=({baseUrl:f,onClick:w})=>B=>(Array.from(B.getElementsByTagName("a")).forEach(F=>{F.addEventListener("click",N=>{const rt=F.getAttribute("href");rt&&rt.startsWith(f)&&!F.hasAttribute("download")&&(N.preventDefault(),w(N,rt))})}),B),$n=({onLoading:f,onLoaded:w})=>B=>(f(),B.addEventListener(v,function F(){w(),B.removeEventListener(v,F)}),B);function Ss(f,w){const B=new URL(w),F=`${B.origin}${B.pathname.replace(/\/$/,"")}`,N=f.replace(F,"").replace(/^\/+/,""),J=new URL(`http://localhost/${N}`);return`${J.pathname}${J.search}${J.hash}`}function Os(){const f=(0,a.useRef)((0,Ut.Zp)()),B=(0,Z.gf)(_.U).getOptionalString("app.baseUrl");return(0,a.useCallback)(N=>{let J=N;if(B)try{J=Ss(N,B)}catch{}f.current(J)},[B])}const Fn="screen and (max-width: 76.1875em)",Nn=f=>{const w=Os(),B=(0,l.A)(),F=(0,I.A)(Fn),N=Pe(),J=rs(),rt=(0,V.s)(),St=(0,Z.gf)(Ye.s),Ot=(0,Z.gf)(E.Y),{state:Mt,path:Rt,content:$t}=ke(),[jt,de]=(0,a.useState)(null),ue=A(jt),kt=(0,a.useCallback)(()=>{if(!jt)return;jt.querySelectorAll(".md-sidebar").forEach(ee=>{if(F)ee.style.top="0px";else{const Fe=document?.querySelector(".techdocs-reader-page")?.getBoundingClientRect().top??0;let Ce=jt.getBoundingClientRect().top??0;const Je=jt.querySelector(".md-container > .md-tabs")?.getBoundingClientRect().height??0;Ce<Fe&&(Ce=Fe);const Xe=Math.max(Ce,0)+Je;ee.style.top=`${Xe}px`;const he=jt.querySelector(".md-container > .md-footer")?.getBoundingClientRect().top??window.innerHeight;ee.style.height=`${he-Xe}px`}ee.style.setProperty("opacity","1")})},[jt,F]);(0,a.useEffect)(()=>(window.addEventListener("resize",kt),window.addEventListener("scroll",kt,!0),()=>{window.removeEventListener("resize",kt),window.removeEventListener("scroll",kt,!0)}),[jt,kt]);const me=(0,a.useCallback)(()=>{if(!jt)return;const Ft=jt.querySelector(".md-footer");Ft&&(Ft.style.width=`${jt.getBoundingClientRect().width}px`)},[jt]);(0,a.useEffect)(()=>(window.addEventListener("resize",me),()=>{window.removeEventListener("resize",me)}),[jt,me]),(0,a.useEffect)(()=>{ue||(me(),kt())},[Mt,ue,me,kt]);const te=(0,a.useCallback)((Ft,ee)=>cn(Ft,[N,In({techdocsStorageApi:St,entityId:f,path:ee}),as(),cs(),ls(),ds(),Mn(Ot),J]),[f,Ot,St,N,J]),ae=(0,a.useCallback)(async Ft=>cn(Ft,[An(w,f.name),fs(),Cs(B),bs({baseUrl:window.location.origin,onClick:(ee,ne)=>{const Fe=ee.ctrlKey||ee.metaKey,Ce=new URL(ne),ze=ee.target?.innerText||ne,Je=ne.replace(window.location.origin,"");rt.captureEvent("click",ze,{attributes:{to:Je}}),Ce.hash?Fe?window.open(ne,"_blank"):(w(ne),Ft?.querySelector(`[id="${Ce.hash.slice(1)}"]`)?.scrollIntoView()):Fe?window.open(ne,"_blank"):w(ne)}}),$n({onLoading:()=>{},onLoaded:()=>{Ft.querySelector(".md-nav__title")?.removeAttribute("for")}}),$n({onLoading:()=>{Array.from(Ft.querySelectorAll(".md-sidebar")).forEach(ne=>{ne.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[B,w,rt,f.name]);return(0,a.useEffect)(()=>{if(!$t)return()=>{};let Ft=!0;return te($t,Rt).then(async ee=>{if(!ee?.innerHTML||!Ft)return;window.scroll({top:0});const ne=await ae(ee);de(ne)}),()=>{Ft=!1}},[$t,Rt,te,ae]),jt};var xn=t(41883),Ts=t(72020),Re=t(99730);const Ue=()=>{const f=(0,Ts.YR)(),{shadowRoot:w}=(0,m.V)(),B=w?.querySelector('[data-md-component="content"]'),F=w?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let N=F?.querySelector('[data-techdocs-addons-location="primary sidebar"]');N||(N=document.createElement("div"),N.setAttribute("data-techdocs-addons-location","primary sidebar"),F?.prepend(N));const J=w?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let rt=J?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return rt||(rt=document.createElement("div"),rt.setAttribute("data-techdocs-addons-location","secondary sidebar"),J?.prepend(rt)),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(xn.A,{container:N,children:f.renderComponentsByLocation(Re.e.PrimarySidebar)}),(0,n.jsx)(xn.A,{container:B,children:f.renderComponentsByLocation(Re.e.Content)}),(0,n.jsx)(xn.A,{container:rt,children:f.renderComponentsByLocation(Re.e.SecondarySidebar)})]})},$e=(0,x.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Ps=Qe(f=>{const{withSearch:w=!0,onReady:B}=f,F=$e(),{entityMetadata:{value:N,loading:J},entityRef:rt,setShadowRoot:St}=(0,m.V)(),Ot=Nn(rt),Mt=window.location.pathname,Rt=window.location.hash,$t=A(Ot),[jt]=S([`[id="${Rt.slice(1)}"]`]);(0,a.useEffect)(()=>{$t||(Rt?jt&&jt.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[Mt,Rt,jt,$t]);const de=(0,a.useCallback)(ue=>{St(ue),B instanceof Function&&B()},[St,B]);return J===!1&&!N?(0,n.jsx)(L.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Ot?(0,n.jsx)(X.U,{children:(0,n.jsxs)(d.A,{container:!0,children:[(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(We,{})}),w&&(0,n.jsx)(d.A,{className:F.search,xs:"auto",item:!0,children:(0,n.jsx)(pe,{entityId:rt,entityTitle:N?.metadata?.title})}),(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(T,{element:Ot,onAppend:de,children:(0,n.jsx)(Ue,{})})})]})}):(0,n.jsx)(X.U,{children:(0,n.jsx)(d.A,{container:!0,children:(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(We,{})})})})}),Rs=null},45061:(G,b,t)=>{"use strict";t.d(b,{T:()=>tt});var n=t(31085),a=t(14041),d=t(93285),x=t(42899),m=t(4387),h=t(13660),u=t(72020),p=t(86892),g=t(99730),v=t(67871),y=t(8859),A=t(34428),T=t(51372),O=t(58837),R=t(268),S=t(72501),j=t(72072);const k=(0,O.A)(_=>({root:{textAlign:"left"},label:{color:_.page.fontColor,fontWeight:_.typography.fontWeightBold,letterSpacing:0,fontSize:_.typography.fontSize,marginBottom:_.spacing(1)/2,lineHeight:1},value:{color:(0,R.X4)(_.page.fontColor,.8),fontSize:_.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),L=({value:_,className:ct,typographyRootComponent:ht})=>(0,n.jsx)(S.A,{component:ht??(typeof _=="string"?"p":"span"),className:ct,children:_});function X(_){const{label:ct,value:ht,url:mt,contentTypograpyRootComponent:Et}=_,xt=k(),At=(0,n.jsx)(L,{className:xt.value,value:ht||"<Unknown>",typographyRootComponent:Et});return(0,n.jsx)(x.A,{item:!0,children:(0,n.jsxs)(S.A,{component:"span",className:xt.root,children:[(0,n.jsx)(S.A,{className:xt.label,children:ct}),mt?(0,n.jsx)(j.N_,{to:mt,children:At}):At]})})}var Y=t(69814),W=t(72427),Q=t(65461),K=t(9222),H=t(45250),Z=t(82779);const V=(0,n.jsx)(m.A,{animation:"wave",variant:"text",height:40}),tt=_=>{const{children:ct}=_,ht=(0,u.YR)(),mt=(0,W.gf)(Q.U),{title:Et,setTitle:xt,subtitle:At,setSubtitle:lt,entityRef:Ct,metadata:{value:yt,loading:Tt},entityMetadata:{value:bt,loading:It}}=(0,p.V)();(0,a.useEffect)(()=>{yt&&(xt(yt.site_name),lt(()=>{let{site_description:vt}=yt;return(!vt||vt==="None")&&(vt=""),vt}))},[yt,xt,lt]);const zt=mt.getOptional("app.title")||"Backstage",Ht=[Et,At,zt].filter(Boolean).join(" | "),{locationMetadata:gt,spec:Dt}=bt||{},M=Dt?.lifecycle,$=bt?(0,v.t)(bt,T.vv):[],nt=(0,K.S)(Z.rQ)(),ot=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(X,{label:(0,H.capitalize)(bt?.kind||"entity"),value:(0,n.jsx)(y.z,{color:"inherit",entityRef:Ct,title:bt?.metadata.title,defaultKind:"Component"})}),$.length>0&&(0,n.jsx)(X,{label:"Owner",value:(0,n.jsx)(A.i,{color:"inherit",entityRefs:$,defaultKind:"group"})}),M?(0,n.jsx)(X,{label:"Lifecycle",value:String(M)}):null,gt&>.type!=="dir"&>.type!=="file"?(0,n.jsx)(X,{label:"",value:(0,n.jsxs)(x.A,{container:!0,direction:"column",alignItems:"center",children:[(0,n.jsx)(x.A,{style:{padding:0},item:!0,children:(0,n.jsx)(h.A,{style:{marginTop:"-25px"}})}),(0,n.jsx)(x.A,{style:{padding:0},item:!0,children:"Source"})]}),url:gt.target}):null]});return!It&&bt===void 0||!Tt&&yt===void 0?null:(0,n.jsxs)(Y.Y,{type:"Documentation",typeLink:nt,title:Et||V,subtitle:At===""?void 0:At||V,children:[(0,n.jsx)(d.A,{titleTemplate:"%s",children:(0,n.jsx)("title",{children:Ht})}),ot,ct,ht.renderComponentsByLocation(g.e.Header)]})}},82779:(G,b,t)=>{"use strict";t.d(b,{Oc:()=>d,Ri:()=>x,rQ:()=>a});var n=t(34569);const a=(0,n.H)({id:"techdocs:index-page"}),d=(0,n.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),x=(0,n.H)({id:"techdocs:catalog-reader-view"})},27698:(G,b,t)=>{"use strict";t.r(b),t.d(b,{TechDocsSearchResultListItem:()=>v});var n=t(31085),a=t(14041),d=t(46423),x=t(5951),m=t(58837),h=t(72501),u=t(72072),p=t(70734);const g=(0,m.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),v=y=>{const{result:A,highlight:T,lineClamp:O=5,asListItem:R=!0,asLink:S=!0,title:j,icon:k}=y,L=g(),X=({children:Q})=>S?(0,n.jsx)(u.N_,{noTrack:!0,to:A.location,children:Q}):(0,n.jsx)(n.Fragment,{children:Q}),Y=()=>{const Q=T?.fields.title?(0,n.jsx)(p.e,{text:T.fields.title,preTag:T.preTag,postTag:T.postTag}):A.title,K=T?.fields.entityTitle?(0,n.jsx)(p.e,{text:T.fields.entityTitle,preTag:T.preTag,postTag:T.postTag}):A.entityTitle,H=T?.fields.name?(0,n.jsx)(p.e,{text:T.fields.name,preTag:T.preTag,postTag:T.postTag}):A.name;return A?(0,n.jsx)(x.A,{className:L.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,n.jsx)(X,{children:j||(0,n.jsxs)(n.Fragment,{children:[Q," | ",K??H," docs"]})}),secondary:(0,n.jsx)(h.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:O,overflow:"hidden"},color:"textSecondary",variant:"body2",children:T?.fields.text?(0,n.jsx)(p.e,{text:T.fields.text,preTag:T.preTag,postTag:T.postTag}):A.text})}):null},W=({children:Q})=>R?(0,n.jsxs)(n.Fragment,{children:[k&&(0,n.jsx)(d.A,{children:typeof k=="function"?k(A):k}),(0,n.jsx)("div",{className:L.flexContainer,children:Q})]}):(0,n.jsx)(n.Fragment,{children:Q});return(0,n.jsx)(W,{children:(0,n.jsx)(Y,{})})}},97184:(G,b,t)=>{const a=document.querySelector('meta[name="backstage-public-path"]')?.getAttribute("content");a&&(t.p=a)},86973:()=>{}},G=>{var b=n=>G(G.s=n);G.O(0,[1751,1888,5067,1678,235,6587,2754,9669,1975,5042,7400,4121],()=>(b(97184),b(85318)));var t=G.O()}]);})();
|
|
509
|
-
|
|
510
|
-
//# sourceMappingURL=main.835725b1.js.map
|